:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #0c0c0c;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --text-muted: #8a8a8a;
  --text-dim: #5a5a5a;
  --accent: #ffffff;
  --radius: 12px;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  width: 90vw;
  height: 60vh;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.07), transparent 65%);
}

.nav, main, .footer { position: relative; z-index: 1; }

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: calc(14px + var(--safe-top)) 28px 14px;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 40;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  margin-right: 8px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-cta { flex-shrink: 0; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-account { min-height: 40px; padding: 0 14px; }
.nav-admin { min-height: 40px; padding: 0 14px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  touch-action: manipulation;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: wait; }

.btn-solid {
  background: var(--accent);
  color: #000;
}

.btn-solid:hover { background: #e8e8e8; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover { background: rgba(255,255,255,0.05); }

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 28px 40px;
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: none;
  white-space: nowrap;
  margin: 0 auto 18px;
}

.hero-sub {
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

/* Real Lyfe menu shell (matches in-game layout) */
.lyfe-menu {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 212px 1fr;
  min-height: 520px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.65);
  text-align: left;
  animation: panelIn 0.9s ease both;
}

.lyfe-side {
  border-right: 1px solid rgba(255,255,255,0.055);
  padding: 18px 12px 16px;
  background: #000;
}

.lyfe-brand {
  display: grid;
  place-items: center;
  padding: 8px 0 18px;
}

.lyfe-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: brightness(1.05);
}

.lyfe-group {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #5a5a5a;
  font-weight: 700;
  margin: 12px 8px 6px;
}

.lyfe-nav {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  color: #bdbdbd;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: default;
}

.lyfe-nav.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.lyfe-content {
  padding: 14px 16px 16px;
  background: #000;
  min-width: 0;
}

.lyfe-subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lyfe-sub {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #8a8a8a;
  border: 1px solid transparent;
  background: transparent;
  cursor: default;
}

.lyfe-sub.active {
  color: #fff;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

.lyfe-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lyfe-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  padding: 14px;
}

.lyfe-card h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.lyfe-toggle,
.lyfe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #d6d6d6;
  font-size: 13px;
}

.lyfe-toggle:first-of-type,
.lyfe-row:first-of-type {
  border-top: none;
}

.lyfe-toggle i {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  flex-shrink: 0;
}

.lyfe-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
}

.lyfe-toggle.on i {
  background: #fff;
  border-color: #fff;
}

.lyfe-toggle.on i::after {
  left: 18px;
  background: #000;
}

.lyfe-row strong {
  color: #fff;
  font-weight: 600;
  font-size: 12px;
}

.lyfe-slider {
  display: grid;
  grid-template-columns: 72px 1fr 28px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #d6d6d6;
  font-size: 12px;
}

.lyfe-track {
  height: 4px;
  border-radius: 999px;
  background: #1a1a1a;
  overflow: hidden;
}

.lyfe-track b {
  display: block;
  height: 100%;
  background: #fff;
}

.lyfe-slider em {
  font-style: normal;
  color: #fff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lyfe-foot {
  margin-top: 14px;
  color: #5a5a5a;
  font-size: 11px;
  letter-spacing: 0.04em;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 28px;
}

.section-head {
  max-width: 520px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.section-head p { color: var(--text-muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.feature:hover {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.035);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-wide { grid-column: span 3; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps li {
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.steps span {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.steps p { color: var(--text-muted); font-size: 0.92rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  gap: 14px;
  justify-content: center;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 28px 22px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(255,255,255,0.28);
  background: linear-gradient(180deg, #121212, #080808);
  transform: translateY(-6px);
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -0.02em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.price-currency {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #cfcfcf;
}

.price-note {
  color: #b0b0b0;
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.4;
}

.price-card ul {
  list-style: none;
  margin-bottom: 22px;
  flex: 1;
}

.price-card li {
  position: relative;
  padding: 10px 0 10px 20px;
  color: #e4e4e4;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.price-card .btn { width: 100%; }

.price-card .buy-btn + .buy-btn {
  margin-top: 8px;
}

.checkout-error {
  margin-top: 16px;
  text-align: center;
  color: #fca5a5;
  font-size: 0.92rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--text-dim);
  font-weight: 400;
}

.faq[open] summary::after { content: "–"; }

.faq p {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta-band {
  max-width: 900px;
  margin: 20px auto 60px;
  padding: 48px 28px;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(255,255,255,0.06), transparent 60%),
    #070707;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 28px calc(28px + var(--safe-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.footer-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Success page */
.success-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(40px + var(--safe-top)) 20px calc(40px + var(--safe-bottom));
}

.success-card {
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg-elevated);
  padding: 32px 26px;
  text-align: center;
}

.success-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin: 14px 0 8px;
}

.success-card .sub { color: var(--text-muted); margin-bottom: 22px; }

.key-box {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.key-box code {
  flex: 1;
  text-align: left;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #050505;
  word-break: break-all;
}

.steps-mini {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 18px 0 22px;
  padding-left: 18px;
}

.steps-mini li { margin: 6px 0; }

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 280px));
    justify-content: center;
  }
  .price-card.featured { transform: none; }
  .lyfe-menu { grid-template-columns: 1fr; max-width: 520px; min-height: 0; }
  .lyfe-side {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px;
  }
  .lyfe-brand { width: 100%; padding: 4px 0 8px; }
  .lyfe-brand img { width: 48px; height: 48px; }
  .lyfe-group { width: 100%; margin: 6px 4px 2px; }
  .lyfe-nav { width: auto; flex: 1 1 auto; min-width: 30%; }
  .lyfe-panels { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-cta { display: none; }
  .nav-admin { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .hero { padding-top: 48px; }
  .hero h1 { white-space: normal; font-size: 1.35rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .price-amount { font-size: 2.6rem; }
}

.hidden { display: none !important; }

.account-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.account-card {
  max-width: 420px;
  margin: 24px auto 0;
  padding: 32px 26px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg-elevated);
  text-align: center;
}

.account-card h1,
.account-top h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin: 12px 0 8px;
}

.account-card .sub,
.account-top .sub,
.account-hint {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px;
}

.auth-tab {
  flex: 1;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
}

.auth-tab.active {
  color: #000;
  background: #fff;
  border-color: #fff;
}

.invite-note {
  margin: 8px 0 16px !important;
  color: #8a8a8a !important;
  font-size: 0.85rem !important;
}

#plan-meta {
  margin-top: -8px;
  margin-bottom: 16px;
  color: #5a5a5a;
  font-size: 0.9rem;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  text-align: left;
}

.account-form.compact { margin-top: 14px; }

.account-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-form label span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.account-form input {
  width: 100%;
  background: #050505;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.account-form input:focus { border-color: #555; }

.form-error,
.form-msg {
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-error,
.form-msg.bad { color: #fca5a5; }
.form-msg.ok { color: #86efac; }

.account-dash { margin-top: 12px; }

.account-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}

.stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 600;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
}

.action-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.action-card > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

@media (max-width: 720px) {
  .stat-row { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr; }
  .account-top { flex-direction: column; }
}
