:root {
  --cyan: #22d3ee;
  --purple: #9333ea;
  --purple-deep: #6d28d9;
  --bg: #030306;
  --surface: #0c0c12;
  --card: #111118;
  --border: #232330;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 80px rgba(34, 211, 238, 0.14), 0 0 120px rgba(147, 51, 234, 0.12);
  --shell-max: 1120px;
  --shell-pad: 1.5rem;
  --legal-read: 42rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--cyan);
  text-decoration-color: rgba(34, 211, 238, 0.35);
  text-underline-offset: 0.15em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: #67e8f9;
  text-decoration-color: rgba(103, 232, 249, 0.55);
}

.site-header, .site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo-image {
  display: block;
  height: 2.5rem;
  width: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.content.wide { max-width: 1100px; }

h1, h2 { line-height: 1.25; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero-logo {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto 1.25rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.hero .subheadline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.hero .supporting {
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero .cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.store-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.store-badge-link:hover {
  opacity: 0.88;
}

.store-badge-soon {
  opacity: 0.55;
  cursor: default;
}

.store-badge {
  display: block;
  height: 40px;
  width: auto;
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

.fallback-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* --- Legal & content pages --- */

.page-legal {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-legal > :not(.page-glow) {
  position: relative;
  z-index: 1;
}

.page-legal .site-header--landing {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 1.25rem var(--shell-pad);
  width: 100%;
}

.legal-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 2rem var(--shell-pad) 3.5rem;
  width: 100%;
}

.legal-document {
  max-width: var(--legal-read);
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.prose h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.875rem, 4vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.prose .legal-meta {
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #2a2a2a;
  color: var(--text-subtle);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
}

.legal-section {
  margin-bottom: 1.75rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.prose p {
  margin: 0 0 0.75rem;
  color: #cbd5e1;
  font-size: 0.9875rem;
  line-height: 1.7;
}

.prose .legal-section p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: #cbd5e1;
  font-size: 0.9875rem;
  line-height: 1.75;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li:last-child {
  margin-bottom: 0;
}

.prose a {
  color: #67e8f9;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.35);
}

.prose a:hover {
  color: var(--cyan);
  text-decoration-color: rgba(34, 211, 238, 0.7);
}

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

.prose code {
  padding: 0.15em 0.45em;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
  background: rgba(3, 3, 6, 0.8);
  color: #e2e8f0;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.875em;
}

.page-legal .site-nav a[aria-current="page"] {
  color: var(--text);
}

.page-legal .fallback-actions {
  margin-top: 1.75rem;
}

.page-legal .btn-secondary {
  color: var(--text);
}

.page-legal .site-footer--landing {
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

@media (max-width: 560px) {
  :root {
    --shell-pad: 1.25rem;
  }

  .legal-main {
    padding-top: 1.5rem;
  }
}

/* --- Landing page --- */

.page-landing {
  position: relative;
  overflow-x: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.text-gradient {
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--purple-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% -10%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 0%, rgba(147, 51, 234, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(109, 40, 217, 0.1), transparent 55%);
  z-index: 0;
}

.page-landing > :not(.page-glow) {
  position: relative;
  z-index: 1;
}

.site-header--landing {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 1.25rem var(--shell-pad);
  width: 100%;
  border-bottom: 1px solid #222;
  backdrop-filter: blur(12px);
  background: rgba(3, 3, 6, 0.72);
}

.wordmark {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--purple-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

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

.page-landing .site-nav a {
  color: var(--text-muted);
}

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

.landing-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad) 4rem;
  width: 100%;
}

.page-landing .hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0.4rem 0.875rem 0.4rem 0.625rem;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
  color: #7dd3fc;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

.page-landing .hero h1 {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin: 0 0 1.75rem;
  font-size: clamp(2.375rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.headline-line {
  color: var(--text);
}

.headline-gradient {
  background: linear-gradient(100deg, #e0f2fe 0%, var(--cyan) 35%, var(--purple) 75%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-landing .lead {
  margin: 0 0 2.75rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.8;
  max-width: 34rem;
}

.page-landing .lead em {
  color: #cbd5e1;
  font-style: normal;
  font-weight: 500;
}

.page-landing .store-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 10.5rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: rgba(12, 12, 18, 0.9);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.store-pill:hover {
  border-color: #3a3a3a;
  background: rgba(17, 17, 24, 0.95);
}

.store-pill--soon {
  opacity: 0.55;
  cursor: default;
}

.store-pill--soon:hover {
  border-color: #2a2a2a;
  background: rgba(12, 12, 18, 0.9);
}

.store-pill-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
}

.store-pill-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.store-pill-text small {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.store-pill-text strong {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-icon-preview {
  padding: 3px;
  border-radius: 24%;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.45), rgba(147, 51, 234, 0.35));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(147, 51, 234, 0.12);
}

.app-icon-crop {
  width: 110px;
  height: 110px;
  border-radius: 22%;
  overflow: hidden;
  background: #030306;
}

.app-icon {
  display: block;
  width: 110px;
  height: 165px;
  object-fit: cover;
  object-position: center top;
}

.features-section {
  margin-top: 2rem;
  padding: 3.5rem 2rem;
  border: 1px solid #1e1e1e;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(12, 12, 18, 0.85) 0%, rgba(3, 3, 6, 0.4) 100%);
}

.steps-section {
  padding: 0;
}

.section-label {
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.section-intro {
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-intro h2,
.steps-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: center;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.page-landing .features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto;
}

.page-landing .feature-card {
  padding: 1.5rem 1.5rem 1.625rem;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-md);
  background: rgba(3, 3, 6, 0.55);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-landing .feature-card:hover {
  border-color: #3d3d48;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
}

.feature-icon--blue {
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
}

.feature-icon--green {
  background: rgba(20, 184, 166, 0.12);
  color: #14b8a6;
}

.feature-icon--purple {
  background: rgba(147, 51, 234, 0.12);
  color: #a78bfa;
}

.feature-icon--yellow {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.feature-num {
  margin: 0 0 0.5rem;
  color: #475569;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.page-landing .feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-landing .feature-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #94a3b8;
}

.steps-section {
  margin: 4rem auto 0;
  max-width: 36rem;
  padding: 2.5rem 2rem;
  border: 1px solid #1e1e1e;
  border-radius: var(--radius-lg);
  background: rgba(12, 12, 18, 0.45);
}

.stepper {
  margin: 2rem 0 0;
  padding: 0 0 0 0.25rem;
  list-style: none;
}

.stepper-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 1.25rem;
  position: relative;
  padding-bottom: 2rem;
}

.stepper-item:last-child {
  padding-bottom: 0;
}

.stepper-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.9375rem;
  top: 2rem;
  bottom: 0;
  width: 2px;
  background: #2a2a2a;
}

.stepper-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
}

.stepper-item--blue .stepper-marker { background: #22d3ee; color: #030306; }
.stepper-item--green .stepper-marker { background: #14b8a6; }
.stepper-item--purple .stepper-marker { background: #9333ea; }
.stepper-item--yellow .stepper-marker { background: #fbbf24; color: #030306; }

.stepper-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.25rem;
}

.stepper-body strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.stepper-body span {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.site-footer--landing {
  max-width: var(--shell-max);
  margin: 4rem auto 0;
  padding: 2rem var(--shell-pad) 2.5rem;
  width: 100%;
  text-align: left;
}

.footer-brand {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem !important;
}

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

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

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0.75rem 0 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.social-links a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  text-decoration: none;
}

.hero-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.75rem;
}

.hero-social-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.social-links--hero {
  justify-content: center;
  margin: 0;
}

@media (max-width: 700px) {
  .page-landing .hero {
    padding-top: 2.5rem;
  }

  .features-section {
    padding: 2.5rem 1.25rem;
  }

  .steps-section {
    padding: 2rem 1.25rem;
  }

  .page-landing .features {
    grid-template-columns: 1fr;
  }

  .page-landing .store-badges {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .store-pill {
    width: min(100%, 16rem);
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .site-header--landing {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-footer--landing {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* --- Admin pages --- */

.page-admin {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-admin > :not(.page-glow) {
  position: relative;
  z-index: 1;
}

.admin-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 12rem);
}

.admin-card {
  width: min(100%, 28rem);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(17, 17, 24, 0.92);
  box-shadow: var(--shadow-glow);
}

.admin-card--wide {
  width: min(100%, 40rem);
}

.admin-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-card h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.admin-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-field {
  display: grid;
  gap: 0.4rem;
}

.admin-label {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
}

.admin-input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(3, 3, 6, 0.85);
  color: var(--text);
  font: inherit;
}

.admin-input:focus {
  outline: 2px solid rgba(34, 211, 238, 0.35);
  border-color: rgba(34, 211, 238, 0.55);
}

.admin-btn {
  margin-top: 0.25rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.admin-error {
  margin: 0;
  color: #fca5a5;
  font-size: 0.875rem;
  line-height: 1.5;
}

.admin-hint {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.admin-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.35);
}

.admin-link:hover {
  color: #67e8f9;
}

.admin-role-pill {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.admin-panel {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.admin-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.admin-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Admin dashboard shell --- */

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border);
  background: rgba(12, 12, 18, 0.9);
  backdrop-filter: blur(14px);
  padding: 1.25rem 1rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.25rem 1rem;
  border-bottom: 1px solid rgba(35, 35, 48, 0.8);
  margin-bottom: 1rem;
}

.admin-brand-title {
  display: grid;
  gap: 0.1rem;
}

.admin-brand-title strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.admin-brand-title span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.admin-nav {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(35, 35, 48, 0.8);
}

.admin-nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.2);
}

.admin-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(35, 35, 48, 0.8);
  color: var(--text);
  flex-shrink: 0;
}

.admin-sidebar-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(35, 35, 48, 0.8);
  display: grid;
  gap: 0.5rem;
}

.admin-meta {
  display: grid;
  gap: 0.1rem;
  padding: 0.15rem 0.25rem;
}

.admin-meta small {
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.admin-meta strong {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.admin-content {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--shell-pad);
  border-bottom: 1px solid var(--border);
  background: rgba(3, 3, 6, 0.75);
  backdrop-filter: blur(14px);
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.admin-title {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.admin-title h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.admin-title p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(35, 35, 48, 0.9);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.admin-icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(55, 55, 72, 0.95);
}

.admin-page {
  padding: 1.5rem var(--shell-pad) 3.5rem;
  width: 100%;
  max-width: 1100px;
}

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

.admin-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(17, 17, 24, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
  min-width: 0;
}

.admin-tile h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-tile p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(17, 17, 24, 0.72);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(35, 35, 48, 0.75);
  text-align: left;
  vertical-align: middle;
  font-size: 0.9rem;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: rgba(3, 3, 6, 0.85);
  backdrop-filter: blur(12px);
  color: var(--text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 35, 48, 0.85);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.admin-pill--warn {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

.admin-pill--bad {
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.admin-search {
  width: min(520px, 100%);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(3, 3, 6, 0.7);
  color: var(--text);
  font: inherit;
}

.admin-search:focus {
  outline: 2px solid rgba(34, 211, 238, 0.35);
  border-color: rgba(34, 211, 238, 0.55);
}

.admin-actions--users {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-field {
  display: grid;
  gap: 0.35rem;
}

.admin-field--compact {
  min-width: 9rem;
}

.admin-field-label {
  color: var(--text-subtle);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(3, 3, 6, 0.7);
  color: var(--text);
  font: inherit;
}

.admin-select:focus {
  outline: 2px solid rgba(34, 211, 238, 0.35);
  border-color: rgba(34, 211, 238, 0.55);
}

.admin-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(35, 35, 48, 0.75);
  flex-wrap: wrap;
}

.admin-table-empty {
  padding: 1rem;
}

.admin-table-sub {
  font-size: 0.8rem;
}

.admin-pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-btn--ghost {
  width: auto;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.admin-btn--ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-stat {
  display: grid;
  gap: 0.25rem;
}

.admin-stat strong {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.admin-col-12 { grid-column: span 12; }
.admin-col-8 { grid-column: span 8; }
.admin-col-6 { grid-column: span 6; }
.admin-col-4 { grid-column: span 4; }

.admin-muted {
  color: var(--text-muted);
}

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 20;
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(88vw, 320px);
    transform: translateX(-110%);
    transition: transform 0.18s ease;
    z-index: 25;
  }

  .admin-shell[data-sidebar-open="true"] .admin-sidebar {
    transform: translateX(0);
  }

  .admin-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .admin-shell[data-sidebar-open="true"] .admin-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-page {
    padding-top: 1.25rem;
  }
}
