:root {
  --bg: #000000;
  --surface: #09090b;
  --surface-2: #111114;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #fafafa;
  --muted: #a1a1aa;
  --dim: #71717a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.top-spotlight {
  position: fixed;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 460px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.16s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  font-size: 0.88rem;
}

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

.btn-white-sm {
  background: #ffffff;
  color: #000000;
  padding: 8px 15px;
  font-size: 0.88rem;
}

.btn-white-sm:hover {
  background: #e4e4e7;
}

.btn-white-lg {
  background: #ffffff;
  color: #000000;
  padding: 13px 24px;
  font-size: 0.95rem;
  border-radius: 11px;
}

.btn-white-lg:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-dark-lg {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
  padding: 13px 24px;
  font-size: 0.95rem;
  border-radius: 11px;
}

.btn-dark-lg:hover {
  background: #18181b;
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-dark-full {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
  padding: 12px 20px;
  font-size: 0.94rem;
}

.btn-dark-full:hover {
  background: #18181b;
  border-color: var(--border-strong);
}

.btn-black-full {
  width: 100%;
  background: #000000;
  color: #ffffff;
  padding: 12px 20px;
  font-size: 0.94rem;
}

.btn-black-full:hover {
  background: #18181b;
}

.btn-white-full {
  width: 100%;
  background: #ffffff;
  color: #000000;
  padding: 12px 20px;
  font-size: 0.94rem;
}

.btn-white-full:hover {
  background: #e4e4e7;
}

/* Hero */
.hero {
  padding: 76px 0 40px;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 28px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.announcement-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.pill-tag {
  background: #ffffff;
  color: #000000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 580px;
  margin-bottom: 32px;
}

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

/* App Showcase */
.app-showcase {
  width: 100%;
  max-width: 820px;
}

.app-window {
  border-radius: 16px;
  text-align: left;
  position: relative;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
  will-change: transform;
}

.executor-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
  user-select: none;
  -webkit-user-drag: none;
}

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #0c0c0f;
  border-bottom: 1px solid var(--border);
}

.app-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.app-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.app-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
}

.app-tabs {
  display: flex;
  gap: 4px;
}

.app-tab {
  background: transparent;
  border: none;
  color: var(--dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.app-tab.active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.app-win-controls {
  display: flex;
  gap: 14px;
  color: var(--dim);
  font-size: 0.8rem;
  user-select: none;
}

.app-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 270px;
}

.app-sidebar {
  background: #070709;
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: 0.08em;
  padding: 0 8px 6px;
}

.sidebar-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
}

.sidebar-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 8px;
  border-top: 1px solid var(--border);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.app-editor {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.code-view {
  padding: 18px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #e4e4e7;
}

.ln { color: #52525b; user-select: none; margin-right: 10px; }
.cm { color: #71717a; }
.kw { color: #c084fc; }
.var { color: #f4f4f5; }
.fn { color: #60a5fa; }
.prop { color: #93c5fd; }
.str { color: #4ade80; }

.app-console {
  border-top: 1px solid var(--border);
  background: #060608;
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ts { color: var(--dim); }
.ok { color: #22c55e; font-weight: 700; }
.info { color: #60a5fa; font-weight: 700; }

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #0c0c0f;
  border-top: 1px solid var(--border);
}

.app-footer-left {
  display: flex;
  gap: 8px;
}

.kbd-hint {
  font-size: 0.72rem;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 5px;
}

.app-footer-actions {
  display: flex;
  gap: 8px;
}

.ui-btn {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.ui-btn.white {
  background: #ffffff;
  color: #000000;
}

/* Stats Strip */
.stats-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */
.features,
.pricing,
.faq,
.discord-cta {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
}

/* Bento Features */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s ease;
}

.bento-card:hover {
  border-color: var(--border-strong);
}

.bento-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--dim);
  margin-bottom: 14px;
}

.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.price-card.popular {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 18px 50px rgba(255, 255, 255, 0.12);
}

.price-card.popular::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.price-card.popular:hover::before {
  left: 150%;
}

.price-card.popular:hover {
  box-shadow: 0 28px 70px rgba(255, 255, 255, 0.22);
}

.price-card .check {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-card:hover .check {
  transform: scale(1.2);
}

.popular-pill {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #000000;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.currency {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

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

.price-card.popular .term,
.price-card.popular .plan-sub {
  color: #52525b;
}

.plan-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  font-size: 0.92rem;
}

.plan-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check {
  font-weight: 800;
}

/* FAQ */
.faq-container {
  max-width: 720px;
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.faq-item summary {
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--muted);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Discord CTA */
.discord-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.discord-box h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.discord-box p {
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--dim);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-sm {
  color: var(--text);
  font-weight: 700;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 390px;
  background: #09090b;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 28px 24px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.form-group input {
  background: #111114;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}

.form-group input:focus {
  border-color: #ffffff;
}

.modal-switch {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.link-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
}

.coming-soon-box {
  text-align: center;
}

.coming-soon-badge {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.coming-soon-box p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-center .announcement-pill {
  animation: fadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-center h1 {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.hero-center .hero-sub {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.hero-center .hero-ctas {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-center .app-showcase {
  animation: fadeIn 0.8s ease 0.32s both;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
  .app-body {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .discord-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Discord OAuth & Account Settings */
.nav-guest,
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.user-pill:hover {
  border-color: var(--border-strong);
  background: #18181b;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #27272a;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: -8px;
  margin-bottom: 18px;
}

.auth-error-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.84rem;
  margin-bottom: 14px;
}

.btn-discord {
  width: 100%;
  background: #5865f2;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 0.94rem;
  border-radius: 10px;
}

.btn-discord:hover {
  background: #4752c4;
}

.account-modal {
  max-width: 420px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
}

.account-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #27272a;
}

.account-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.account-handle {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.account-info-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.account-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.info-label {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

.info-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.plan-free {
  background: rgba(255, 255, 255, 0.1);
  color: #fafafa;
  border: 1px solid var(--border-strong);
}

.plan-paid {
  background: #ffffff;
  color: #000000;
}

.status-active {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.info-value-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text);
  text-align: right;
}

.account-logout-btn {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 11px 16px;
  font-size: 0.9rem;
}

.account-logout-btn:hover {
  border-color: var(--border-strong);
  background: #18181b;
}

/* Smooth Modal & Dashboard Animations */
.modal-backdrop.open .modal {
  animation: modalPop 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.anim-fade-up {
  animation: fadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Full-page Account Dashboard */
.dash-main {
  padding: 36px 0 72px;
  min-height: calc(100vh - 65px);
}

.dash-state-wrap {
  display: flex;
  justify-content: center;
  padding-top: 64px;
}

.dash-state-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
}

.dash-state-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dash-state-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.dash-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
  border: 2.5px solid var(--border-strong);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.user-pill-static {
  cursor: default;
}

.dash-shell {
  max-width: 1060px;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.dash-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-title-wrap h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dash-signout {
  border-radius: 999px;
  padding: 8px 18px;
}

.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-side-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
}

.dash-side-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #27272a;
}

.dash-side-meta {
  min-width: 0;
}

.dash-side-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-side-handle {
  font-size: 0.78rem;
  color: var(--dim);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.dash-nav-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.dash-nav-btn.active {
  background: #ffffff;
  color: #000000;
}

.dash-panel {
  display: none;
}

.dash-panel.active {
  display: block;
  animation: panelFade 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dash-hero-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.dash-hero-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: #27272a;
}

.dash-hero-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-hero-handle {
  font-size: 0.86rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.dash-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.dash-stat-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.dash-val-green {
  color: #4ade80;
}

.dash-stat-lbl {
  font-size: 0.78rem;
  color: var(--dim);
}

.dash-cards-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dash-card-head h3 {
  font-size: 1rem;
  font-weight: 700;
}

.dash-card-desc {
  color: var(--muted);
  font-size: 0.87rem;
  margin-bottom: 16px;
}

.dash-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.dash-kv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.85rem;
  color: var(--muted);
}

.dash-kv .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text);
}

.dash-section-head {
  margin-bottom: 18px;
}

.dash-section-head h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.dash-section-head p {
  color: var(--muted);
  font-size: 0.88rem;
}

.dash-key-form {
  display: flex;
  gap: 10px;
}

.dash-key-form input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  outline: none;
}

.dash-key-form input:focus {
  border-color: var(--border-strong);
}

.dash-inline-note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.dash-toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.dash-toggle-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.dash-toggle-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.dash-switch {
  appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #27272a;
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dash-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a1a1aa;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.dash-switch:checked {
  background: #ffffff;
  border-color: #ffffff;
}

.dash-switch:checked::after {
  transform: translateX(18px);
  background: #000000;
}

@media (max-width: 820px) {
  .dash-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dash-nav-btn {
    width: auto;
  }

  .dash-cards-two {
    grid-template-columns: 1fr;
  }
}
