/* ============================================================
   RHYOLITE SYNC — UNDERGROUND APP EDITION
   Mobile-first dark volcanic design
   ============================================================ */

:root {
  --bg: #090807;
  --bg2: #0E0C0A;
  --surface: #141210;
  --surface2: #1C1A16;
  --border: #272420;
  --border2: #353128;
  --text: #EDE8E0;
  --text-dim: #9A9088;
  --text-muted: #524E4A;
  --accent: #E8520A;
  --accent-dim: rgba(232, 82, 10, 0.14);
  --accent-glow: rgba(232, 82, 10, 0.06);
  --warm: #D08840;
  --warm-dim: rgba(208, 136, 64, 0.14);
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Onest', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --pad: 20px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

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

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(9, 8, 7, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-logo-img {
  border-radius: 5px;
  display: block;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-cta:hover { background: #ff5e12; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px var(--pad) 72px;
  position: relative;
  overflow: hidden;
}

/* Prevent horizontal scroll without breaking sticky */
body { overflow-x: hidden; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(232,82,10,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 110%, rgba(208,136,64,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  margin-bottom: 28px;
}

.hero-logo-large {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  display: block;
  filter: drop-shadow(0 0 18px rgba(232,82,10,0.35)) drop-shadow(0 0 40px rgba(232,82,10,0.15));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232,82,10,0.28);
  border-radius: 100px;
  padding: 5px 13px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 9vw, 88px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-title-block { display: block; }
.hero-title-amber { color: var(--accent); }
.hero-title-teal { color: var(--warm); }

.hero-desc {
  font-size: clamp(15px, 3.8vw, 17px);
  color: var(--text-dim);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #ff5e12; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border2);
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }

.hero-trial {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  position: relative;
}

/* Fade left/right edges */
.trust-bar::before,
.trust-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.trust-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--bg2), transparent);
}
.trust-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--bg2), transparent);
}

.trust-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.trust-scroll::-webkit-scrollbar { display: none; }

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}
.trust-item:first-child { padding-left: 48px; }
.trust-item:last-child { padding-right: 48px; border-right: none; }

.trust-icon { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.trust-text { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

/* ============================================================
   SECTION BASE
   ============================================================ */

.section { padding: 60px 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-label.teal { color: var(--warm); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 6.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-dim);
}

.section-header {
  padding: 0 var(--pad);
  margin-bottom: 36px;
}

.section-header.centered { text-align: center; }

/* ============================================================
   FEATURES — numbered full-bleed rows
   ============================================================ */

.features { background: var(--bg); }

.features-list {
  display: flex;
  flex-direction: column;
}

.feature-item {
  padding: 28px var(--pad);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  position: relative;
  transition: background 0.18s;
}

.feature-item:first-child { border-top: 1px solid var(--border); }
.feature-item:hover { background: var(--surface); }

.feature-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  padding-top: 3px;
  letter-spacing: 0.05em;
}

.feature-body {}

.feature-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.feature-icon { width: 18px; height: 18px; }
.feature-icon.amber { color: var(--accent); }
.feature-icon.teal { color: var(--warm); }

.feature-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-top: 6px;
}

/* ============================================================
   HOW — vertical timeline
   ============================================================ */

.how-it-works { background: var(--bg2); }

.how-timeline {
  padding: 0 var(--pad);
  position: relative;
}

.how-timeline::before {
  content: '';
  position: absolute;
  left: calc(var(--pad) + 20px);
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border2) 15%, var(--border2) 85%, transparent);
}

.how-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 20px 0;
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-body { padding-top: 8px; }

.step-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.step-desc { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* ============================================================
   ENCRYPTION
   ============================================================ */

.encryption-section { background: var(--bg); }

.callout-box {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 var(--pad);
}

.callout-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 14px;
}

.callout-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
}

.code-window {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border2);
}
.code-dot:nth-child(1) { background: #E85555; }
.code-dot:nth-child(2) { background: #E8B040; }
.code-dot:nth-child(3) { background: #40C870; }

.code-window-label {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.code-body {
  padding: 18px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.code-line {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-dim);
  white-space: nowrap;
}

.code-comment { color: var(--text-muted); font-style: italic; }
.code-key { color: var(--warm); }
.code-enc { color: var(--text-muted); }
.code-string { color: #72C49A; }

/* ============================================================
   PRICING
   ============================================================ */

.pricing { background: var(--bg2); }

.pricing-card {
  margin: 0 var(--pad);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.pricing-card-inner { padding: 32px 24px; }

.pricing-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 6px;
}

.pricing-currency {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dim);
}

.pricing-num {
  font-family: var(--font-display);
  font-size: clamp(72px, 22vw, 108px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.pricing-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  align-self: flex-end;
  padding-bottom: 10px;
  margin-left: 4px;
}

.pricing-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-check { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.pricing-feature-text { font-size: 14px; color: var(--text-dim); }

.pricing-cta { margin-bottom: 12px; }
.pricing-cta .btn-primary { width: 100%; }

.pricing-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  padding: 28px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.footer-logo-img { opacity: 0.45; border-radius: 3px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-disclaimer {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
  width: 100%;
  margin-top: 4px;
}

/* ============================================================
   STICKY BOTTOM CTA — hidden, CTAs in hero and pricing are enough
   ============================================================ */

.sticky-cta {
  display: none !important;
}

/* ============================================================
   DESKTOP
   ============================================================ */

@media (min-width: 768px) {
  :root { --pad: 48px; }

  .nav-inner { max-width: 1140px; margin: 0 auto; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-block; }

  .hero { padding: 120px var(--pad) 100px; }
  .hero-logo-large { width: 96px; height: 96px; }
  .hero-actions { flex-direction: row; max-width: none; width: auto; }
  .btn-primary, .btn-ghost { width: auto; }

  .section { padding: 96px 0; }
  .section-header { padding: 0 var(--pad); max-width: 1140px; margin-left: auto; margin-right: auto; }

  .features-list { max-width: 1140px; margin: 0 auto; }
  .feature-item { padding: 32px var(--pad); grid-template-columns: 72px 1fr; }

  .how-timeline { max-width: 640px; margin: 0 auto; padding: 0 48px; }
  .how-timeline::before { left: calc(48px + 20px); }

  .callout-box {
    flex-direction: row;
    gap: 64px;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--pad);
  }
  .callout-text { flex: 1; }
  .code-window { flex: 1; max-width: 460px; }

  .pricing-card { max-width: 460px; margin: 0 auto; }

  .footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px var(--pad);
    gap: 12px;
  }
  .footer-top { flex-direction: row; align-items: center; }
  .footer-nav { flex: 1; justify-content: center; }
  .footer-copy { margin-left: auto; }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-main {
  min-height: calc(100svh - 56px);
  padding: 60px 0 80px;
}

.legal-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.legal-article h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
}

.legal-article h2 {
  font-family: var(--font-display);
  font-size: clamp(16px, 3.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.legal-article h1 + h2 {
  margin-top: 32px;
  padding-top: 0;
  border-top: none;
}

.legal-article h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-article p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-article strong {
  color: var(--text);
  font-weight: 600;
}

.legal-article em {
  color: var(--text-dim);
}

.legal-article ul,
.legal-article ol {
  padding-left: 1.5rem;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-article li {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

.legal-article ul li::marker { color: var(--accent); }
.legal-article ol li::marker { color: var(--accent); font-family: var(--font-mono); font-size: 12px; }

.legal-article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:hover { color: var(--warm); }

.legal-article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.legal-article blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-dim);
  font-style: italic;
}

/* Effective date badge (first p after h1) */
.legal-article h1 + p strong,
.legal-article h1 ~ p:first-of-type strong {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Mobile screens */
@media (max-width: 480px) {
  .hero-title { font-size: 7.5vw; }
}

/* Extra small screens */
@media (max-width: 380px) {
  .hero-title { font-size: 7vw; }
  .hero-logo-large { width: 64px; height: 64px; }
  .feature-item { grid-template-columns: 32px 1fr; gap: 12px; }
  .feature-num { font-size: 9px; }
  .pricing-num { font-size: 64px; }
}

@media (max-width: 767px) {
  .sticky-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px var(--pad);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(9,8,7,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border2);
    z-index: 400;
  }
  .sticky-cta .btn-primary {
    flex: 1;
    padding: 15px 16px;
  }
  .sticky-cta-label {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 1px;
  }
  .sticky-cta-price {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
  }
  .sticky-cta-note {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
  }
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-main {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px var(--pad);
  background: var(--bg);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-decoration: none;
}

.auth-logo-img {
  border-radius: 10px;
  display: block;
}

.auth-logo-name {}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
}

.auth-card::before { display: none; }

.auth-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 24px;
}

.auth-error {
  background: rgba(220, 60, 60, 0.10);
  border: 1px solid rgba(220, 60, 60, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e07070;
  margin-bottom: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

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

.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-input {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder { color: var(--text-muted); }

.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px;
}

.auth-switch {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
}

.auth-switch a {
  color: var(--accent);
}

.auth-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.auth-legal a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.form-check input[type="checkbox"] { width: 16px; height: 16px; margin-top: 1px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.form-check label { cursor: pointer; }
.form-check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */

.account-header {
  margin-bottom: 32px;
}

.account-header h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
}

.account-email {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.account-section {
  margin-bottom: 40px;
}

.account-section h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dim);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sub-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sub-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sub-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.sub-status.active {
  background: rgba(80, 200, 120, 0.12);
  color: #50c878;
  border: 1px solid rgba(80, 200, 120, 0.25);
}

.sub-status.inactive {
  background: var(--ore-soft);
  color: var(--accent);
  border: 1px solid rgba(232, 82, 10, 0.25);
}

.sub-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.sub-form { margin: 0; }

.invoice-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.invoice-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
}

.invoice-row:nth-child(even) { background: var(--surface2); }

.inv-date { color: var(--text-dim); flex: 0 0 auto; }
.inv-amount { color: var(--text); flex: 1; }
.inv-status { flex: 0 0 auto; font-size: 11px; font-weight: 500; }
.inv-paid { color: #50c878; }
.inv-pending { color: #f5a623; }
.inv-failed { color: #e05c5c; }

.account-signout {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
}

.account-empty {
  text-align: center;
  padding: 40px 0;
}

.account-loading {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   PAYMENT RESULT PAGES
   ============================================================ */

.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 8px 0;
}

.payment-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.payment-icon--success {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.payment-icon--fail {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.payment-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.payment-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 280px;
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding-top: 8px;
}

.payment-actions .btn-ghost {
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.payment-actions .btn-ghost:hover {
  color: var(--text);
  border-color: var(--border2);
}

/* ============================================================
   EMAIL VERIFICATION PAGES
   ============================================================ */

.verify-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 4px;
  background: rgba(232, 82, 10, 0.1);
  color: var(--accent);
  border: 1px solid rgba(232, 82, 10, 0.25);
}

.verify-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================================
   VERIFY EMAIL BANNER
   ============================================================ */

.verify-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(232, 82, 10, 0.08);
  border: 1px solid rgba(232, 82, 10, 0.2);
  border-radius: 10px;
  margin-bottom: 24px;
}

.verify-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.verify-banner-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verify-banner-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.verify-banner-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition: opacity 0.2s;
}

.verify-banner-btn:hover { opacity: 0.75; }
