/* ============ Tokens ============ */
:root {
  --bg: #060607;
  --bg-elevated: #0d0e10;
  --surface: #101113;
  --border: #1c1e21;
  --border-strong: #2a2d31;

  --text: #f2f3f4;
  --text-muted: #9aa0a8;
  --text-faint: #5c626b;

  --accent: #c08a3e;
  --accent-strong: #d69a48;
  --accent-soft: rgba(192, 138, 62, 0.14);
  --accent-ink: #1a1408;

  --emerald: #3fae6f;
  --emerald-soft: rgba(63, 174, 111, 0.16);

  --scrim: rgba(6, 6, 7, 0.35);

  --font-display: 'Outfit', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
}

[data-theme="light"] {
  --bg: #fafaf9;
  --bg-elevated: #f1f1ef;
  --surface: #ffffff;
  --border: #e4e4e1;
  --border-strong: #d3d3cf;

  --text: #17181a;
  --text-muted: #5d6169;
  --text-faint: #8a8e94;

  --accent-ink: #ffffff;
  --scrim: rgba(255, 255, 255, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

#starfield-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
[data-theme="light"] #starfield-bg { opacity: 0.35; }

main, .site-footer {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { left: 24px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* ============ Scroll reveal ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: #ffffff; color: #0a0a0b; box-shadow: 0 0 0 rgba(192, 138, 62, 0); transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.25s ease; }
.btn-primary:hover { background: var(--accent-strong); color: #1a1408; box-shadow: 0 0 0 1px rgba(192, 138, 62, 0.3), 0 8px 28px rgba(192, 138, 62, 0.35); }
[data-theme="light"] .btn-primary { background: #17181a; color: #fafaf9; }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  width: 100%;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn-lg { padding: 15px 30px; font-size: 1rem; }

.btn-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 9px 18px;
  font-size: 0.9rem;
}
.btn-panel:hover { border-color: var(--accent); }

.btn-login {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 9px 14px;
  font-size: 0.9rem;
}
.btn-login:hover { color: var(--text); }

.balance-pill {
  display: inline-flex;
  align-items: center;
  background: var(--emerald-soft);
  color: var(--emerald);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  font-family: var(--font-display);
  white-space: nowrap;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-body);
}
.account-trigger:hover { border-color: var(--accent); color: var(--text); }

.account-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.nav-dropdown-right { left: auto; right: 0; }

.dropdown-balance {
  padding: 10px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-muted);
}
.dropdown-balance strong { color: var(--accent-strong); font-family: var(--font-display); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 7, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .site-header { background: rgba(250, 250, 249, 0.75); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark { color: var(--emerald); flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-grow: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: var(--text); background: var(--bg-elevated); }
.nav-link svg { transition: transform 0.15s ease; color: var(--text-faint); }

.nav-item { position: relative; }
.nav-item.is-open .nav-link svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.nav-dropdown a:hover { background: var(--bg-elevated); color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-body);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { display: block; width: 16px; height: 1.6px; background: var(--text); border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 108px 0 0;
  overflow: hidden;
  background: transparent;
}

.hero::before {
  content: '';
  position: absolute;
  top: -22%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 1100px;
  max-width: 160vw;
  background: radial-gradient(circle,
    rgba(63, 174, 111, 0.24) 0%,
    rgba(192, 138, 62, 0.13) 38%,
    rgba(63, 174, 111, 0.05) 60%,
    transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .hero::before { opacity: 0.6; }

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 640px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 75% 85% at 50% 32%, black 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 32%, black 55%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  color: var(--text);
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 58ch;
  margin: 0 auto 32px;
}

.hero .btn-lg { margin-bottom: 28px; }

.hero-footnote {
  font-size: 0.9rem;
  color: var(--text-faint);
  margin-bottom: 64px;
}

.usecase-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: var(--scrim);
  overflow: hidden;
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.usecase-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: scroll-left 42s linear infinite;
}
.usecase-strip:hover .usecase-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .usecase-track { animation: none; }
}
.usecase-track span {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0 28px;
}
.usecase-track span::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
  margin-left: 28px;
}
.usecase-track span:last-child::after { display: none; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Stats ============ */
.stats {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }

.stat { padding: 32px 16px; text-align: center; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; }

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--emerald);
}
.stat-label { display: block; margin-top: 4px; color: var(--text-muted); font-size: 0.9rem; }

/* ============ Section shared ============ */
section { padding: 96px 0; }

.section-head { max-width: 56ch; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--text); }
.section-head p:last-child { margin-bottom: 0; }

/* ============ Features ============ */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.feature-item {
  background: var(--bg);
  padding: 32px;
  display: flex;
  gap: 16px;
  transition: background-color 0.2s ease;
}
.feature-item:hover { background: var(--bg-elevated); }
.feature-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.feature-item h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 6px; }
.feature-item p { margin: 0; font-size: 0.95rem; }

/* ============ Generic page hero (planlar, vb.) ============ */
.page-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 0 24px;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  color: var(--text);
  max-width: 780px;
  margin: 0 auto 16px;
}
.page-hero p {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============ Plans ============ */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}
.plan-card.is-featured:hover { border-color: var(--accent); }

.plan-card.is-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 40%);
  box-shadow: 0 8px 28px rgba(192, 138, 62, 0.16);
}

.plan-tag {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-card-top h3 { margin: 0; }

.plan-ram-badge {
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 4px 10px;
  border-radius: 999px;
}

.plan-card h3 { font-size: 1.2rem; color: var(--text); }
.plan-desc { font-size: 0.92rem; min-height: 2.6em; }

.plan-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 8px 0 24px;
}
.plan-price span { font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; color: var(--text-muted); }

.plan-specs { margin-bottom: 28px; flex-grow: 1; }
.plan-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.plan-specs li:first-child { border-top: none; }
.plan-specs li svg { color: var(--accent); flex-shrink: 0; }
.plan-card.is-featured .plan-specs li svg { color: var(--accent-strong); }

/* ============ Plan filters + list (planlar.php) ============ */
.plan-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.plan-filters-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-right: 4px;
}
.plan-filter-group, .plan-currency-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plan-currency-group { margin-left: auto; }

.plan-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.plan-filter-chip:hover { border-color: var(--accent); color: var(--text); }
.plan-filter-chip.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.plan-currency-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 28px;
}

.plan-list { display: flex; flex-direction: column; gap: 12px; }

.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-row:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24); }
.plan-row.is-featured { border-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), var(--surface) 55%); box-shadow: 0 6px 20px rgba(192, 138, 62, 0.14); }

.plan-row-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.plan-row-flag { display: inline-flex; align-items: center; flex-shrink: 0; }
.plan-row-ram {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  flex-shrink: 0;
}
.plan-row-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-row-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.plan-row-pill-ram {
  background: var(--accent-soft);
  border-color: rgba(192, 138, 62, 0.35);
  color: var(--accent-strong);
  font-weight: 600;
}

.plan-row-buy { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.plan-row-price { text-align: right; }
.price-amount {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.price-period { font-size: 0.78rem; color: var(--text-faint); }
.plan-row-buy .btn { padding: 10px 20px; white-space: nowrap; }

@media (max-width: 720px) {
  .plan-currency-group { margin-left: 0; }
  .plan-row { flex-direction: column; align-items: stretch; }
  .plan-row-buy { justify-content: space-between; }
}

/* ============ Testimonials ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.testimonial {
  margin: 0;
  padding: 28px;
  border-left: 2px solid var(--emerald);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24); }
.testimonial p { color: var(--text); font-size: 1rem; margin-bottom: 16px; }
.testimonial cite { font-style: normal; font-size: 0.88rem; color: var(--text-faint); }

/* ============ FAQ ============ */
.faq-panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 28px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  margin-left: 16px;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; margin-bottom: 0; max-width: 62ch; }

/* ============ CTA ============ */
.cta { text-align: center; border-top: 1px solid var(--border); }
.cta h2 { color: var(--text); }
.cta p { max-width: 46ch; margin-left: auto; margin-right: auto; }
.cta-inner .btn { margin-top: 12px; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elevated); padding-top: 64px; }

.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }

.footer-brand p { max-width: 32ch; font-size: 0.92rem; margin-top: 12px; }

.footer-col h3 { font-family: var(--font-body); font-size: 0.88rem; color: var(--text-faint); font-weight: 600; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--text-faint); }

/* ============ Auth pages ============ */
.auth-section { padding: 88px 0; }

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.auth-card h1 {
  font-size: 1.6rem;
  text-align: center;
  color: var(--text);
}

.auth-sub {
  text-align: center;
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.auth-alert {
  background: rgba(214, 90, 90, 0.1);
  border: 1px solid rgba(214, 90, 90, 0.3);
  color: #e2a3a3;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.auth-alert div + div { margin-top: 6px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}
.field-hint {
  text-align: right;
  margin-top: 8px;
  font-size: 0.84rem;
}
.field-hint a { color: var(--text-faint); }
.field-hint a:hover { color: var(--accent-strong); }

/* ============ Generic table + pill (panel, admin) ============ */
.admin-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 18px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table th { color: var(--text-faint); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .03em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table-empty { text-align: center; color: var(--text-faint); padding: 40px 0 !important; white-space: normal; }
.admin-table-actions { display: flex; gap: 14px; align-items: center; }
.admin-table-actions a { color: var(--accent-strong); font-weight: 600; font-size: 0.86rem; }
.admin-table-actions form { display: inline; margin: 0; }
.admin-table-actions button {
  background: none; border: none; color: #e08787; font-size: 0.86rem;
  font-weight: 600; cursor: pointer; padding: 0; font-family: var(--font-body);
}
.admin-table-actions button:hover { text-decoration: underline; }
.admin-table-actions button.is-neutral { color: var(--accent-strong); }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; margin-left: 8px; }
.pill-accent { background: var(--accent-soft); color: var(--accent-strong); }
.pill-emerald { background: var(--emerald-soft); color: var(--emerald); }
.pill-muted { background: var(--bg-elevated); color: var(--text-faint); }

.form-actions { margin-top: 24px; }
.form-actions .btn { width: 100%; }

.auth-foot {
  text-align: center;
  margin-top: 22px;
  margin-bottom: 0;
  font-size: 0.9rem;
}
.auth-foot a { color: var(--accent-strong); font-weight: 600; }

.checkout-summary {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.checkout-summary strong { color: var(--text); font-family: var(--font-display); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hide-on-mobile { display: none; }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .main-nav.is-open { display: flex; }
  .nav-link { justify-content: space-between; width: 100%; }
  .main-nav .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; border: none; padding-left: 12px; }
  .main-nav .nav-item.is-open .nav-dropdown { display: block; }

  .nav-toggle { display: flex; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }

  .feature-list { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .balance-pill { display: none; }
  .account-name { display: none; }
  .account-trigger { padding: 5px 10px 5px 5px; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 76px 0 0; }
  .hero-footnote { margin-bottom: 40px; }
}