:root {
  --bg: #0f141c;
  --bg-deep: #080c12;
  --card: #151c27;
  --card-hover: #1c2533;
  --line: #243044;
  --ink: #f4f7fb;
  --muted: #9aa8ba;
  --accent: #5eead4;
  --accent-hover: #99f6e4;
  --accent-ink: #042f2e;
  --radius: 10px;
  --font: "Inter", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg-deep);
  font-family: var(--font);
}

a { color: inherit; text-decoration: none; }

.lm-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.2rem, 4vw, 2.4rem);
  background: #080c12;
  border-bottom: 1px solid #1a2433;
}

.lm-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lm-logo img {
  width: 32px;
  height: 32px;
}

.lm-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.lm-nav a.is-active { color: #fff; }

.lm-account { position: relative; }

.lm-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #2b3a4f;
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.28rem;
  color: #fff;
  background: #121925;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.lm-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #223044;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.lm-avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.lm-account-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 30;
  width: min(320px, calc(100vw - 2.4rem));
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #121925;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
}

.lm-account-title {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.lm-account-hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.lm-account-hint code { color: #fff; }

.ref-row {
  display: flex;
  gap: 0.45rem;
}

.ref-row input {
  min-width: 0;
  flex: 1;
  height: 40px;
  padding: 0 0.7rem;
  border: 1px solid #2b3a4f;
  border-radius: 6px;
  background: #080c12;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ref-row input:focus { outline: 1px solid var(--accent); }

.ref-regen {
  flex-shrink: 0;
  height: 40px;
  padding: 0 0.8rem;
  border: 1px solid #2b3a4f;
  border-radius: 6px;
  background: #1c2533;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ref-regen:hover { background: #243044; }

.lm-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 8rem);
}

.lm-side {
  padding: 1.6rem 1.2rem 2rem 1.4rem;
  border-right: 1px solid #1a2433;
  background: #0b1018;
}

.lm-kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lm-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.lm-user strong { display: block; font-size: 0.95rem; }
.lm-user .muted { margin: 0.15rem 0 0; font-size: 0.8rem; }

.lm-side-nav {
  display: grid;
  gap: 0.2rem;
}

.lm-side-nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.lm-side-nav a:hover,
.lm-side-nav a.is-active {
  background: #151c27;
  color: #fff;
}

.lm-content { padding: 1.6rem 1.4rem 2.5rem; }

.lm-panel { margin-bottom: 2.2rem; }

.lm-panel h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}

.lm-panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.lm-lead {
  margin: 0 0 1.3rem;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.5;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: left;
  color: inherit;
}

.plan-card:hover { background: var(--card-hover); }

.plan-card .plan-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.plan-card strong {
  display: block;
  margin: 0.15rem 0 0.4rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.plan-card ul {
  margin: 0 0 0.9rem;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
  flex: 1;
}

.plan-card .lm-cta {
  margin-top: auto;
}

.plan-badge {
  align-self: flex-start;
  margin-bottom: 0.2rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subscribe-wrap {
  margin-top: 1.15rem;
  max-width: 28rem;
}

.lm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
}

.lm-cta:hover:not(:disabled) { background: var(--accent-hover); }

.lm-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.plan-status { margin: 0.65rem 0 0; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border: 1px dashed #2b3a4f;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      135deg,
      #121925 0 10px,
      #151c27 10px 20px
    );
  color: #6d7f94;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lm-dev {
  padding: 1.15rem 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.lm-dev .muted { max-width: 40rem; }

.snippet {
  margin: 1rem 0 0;
  overflow: auto;
  padding: 1rem;
  border-radius: 8px;
  background: #080c12;
  color: #e8eef6;
  font-size: 0.82rem;
  line-height: 1.55;
}

.muted { color: var(--muted); font-size: 0.95rem; }

.lm-foot {
  padding: 1.2rem clamp(1.2rem, 4vw, 2.4rem) 2rem;
  border-top: 1px solid #1a2433;
  color: #6d7f94;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .lm-shell { grid-template-columns: 1fr; }
  .lm-side {
    border-right: 0;
    border-bottom: 1px solid #1a2433;
  }
  .plan-grid,
  .thumbs { grid-template-columns: 1fr; }
}
