/* Denver Apple Investment Portal */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #000;
  --bg-secondary: #020617;
  --surface: rgba(2, 6, 23, 0.8);
  --surface-light: rgba(15, 23, 42, 0.7);
  --border: rgba(30, 41, 59, 0.8);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --amber: #fbbf24;
  --amber-light: #fcd34d;
  --yellow: #eab308;
  --emerald: #34d399;
  --rose: #fb7185;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-slide: "Plus Jakarta Sans", var(--font);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: linear-gradient(to bottom, var(--bg), var(--bg-secondary), var(--bg));
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.layout { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
.site-main { flex: 1; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.container-wide { max-width: 96rem; }
@media (min-width: 1024px) { .container { padding: 0 1.5rem; } }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Homepage header with slideshow */
.site-header-hero {
  position: relative;
  z-index: 100;
}
.header-hero {
  position: relative;
  width: 100%;
  height: clamp(14rem, 38vw, 28rem);
  overflow: hidden;
}
.header-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 75% 60% at 15% 20%, rgba(251, 191, 36, 0.45), transparent 58%),
    radial-gradient(ellipse 70% 55% at 88% 25%, rgba(56, 189, 248, 0.4), transparent 56%),
    radial-gradient(ellipse 60% 50% at 48% 92%, rgba(52, 211, 153, 0.36), transparent 58%),
    radial-gradient(ellipse 45% 42% at 78% 82%, rgba(251, 113, 133, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 48% at 30% 70%, rgba(245, 158, 11, 0.22), transparent 60%),
    linear-gradient(
      118deg,
      rgba(251, 191, 36, 0.22) 0%,
      rgba(56, 189, 248, 0.14) 40%,
      rgba(52, 211, 153, 0.16) 72%,
      rgba(251, 113, 133, 0.12) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.34) 0%,
      rgba(15, 23, 42, 0.08) 44%,
      rgba(2, 6, 23, 0.5) 100%
    );
  pointer-events: none;
  transition: filter 0.55s ease;
}
.header-slideshow:has(.slide.active.slide-tone-1) ~ .header-hero-shade {
  filter: saturate(1.35) brightness(1.06);
}
.header-slideshow:has(.slide.active.slide-tone-2) ~ .header-hero-shade {
  filter: hue-rotate(150deg) saturate(1.4) brightness(1.05);
}
.header-slideshow:has(.slide.active.slide-tone-3) ~ .header-hero-shade {
  filter: hue-rotate(85deg) saturate(1.4) brightness(1.05);
}
.header-slideshow:has(.slide.active.slide-tone-4) ~ .header-hero-shade {
  filter: hue-rotate(12deg) saturate(1.45) brightness(1.08);
}
.header-slideshow:has(.slide.active.slide-tone-5) ~ .header-hero-shade {
  filter: hue-rotate(185deg) saturate(1.3) brightness(1.05);
}
.header-slideshow:has(.slide.active.slide-tone-6) ~ .header-hero-shade {
  filter: hue-rotate(28deg) saturate(1.4) brightness(1.06);
}
.header-hero .header-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 96rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  gap: 1rem;
}
.header-hero .header-actions {
  position: relative;
}
@media (min-width: 1024px) {
  .header-hero .header-inner { padding: 0.75rem 1.5rem; }
}
.header-hero .main-nav a {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.header-hero .brand-name,
.header-hero .brand-tagline {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.header-hero .main-nav.open {
  background: rgba(2, 6, 23, 0.95);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-badge {
  background: linear-gradient(to right, var(--amber), var(--yellow));
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
.brand-name { font-size: 0.875rem; font-weight: 600; }
.brand-tagline { font-size: 0.6875rem; color: var(--text-muted); }

.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}
.main-nav a {
  font-weight: 700;
  color: #e2e8f0;
}
.main-nav a:hover { color: var(--amber-light); }
.header-actions > a.btn,
.header-actions > a.btn-outline,
.header-actions > a.btn-primary {
  font-weight: 700;
}
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(2, 6, 23, 0.98);
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .main-nav.open { position: static; flex-direction: row; background: none; padding: 0; border: none; }
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; position: relative; flex-wrap: wrap; }
.header-actions .logout-form,
.admin-topbar-actions .logout-form {
  display: inline-flex;
  margin: 0;
}
.admin-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.nav-toggle {
  display: block;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: inline-flex; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-sm { padding: 0.375rem 1rem; font-size: 0.8125rem; }
.btn-primary {
  background: linear-gradient(to right, var(--amber), var(--yellow));
  color: #000;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(51, 65, 85, 0.8);
  color: #e2e8f0;
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber-light); }
.btn:disabled {
  background: #334155;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.8);
  padding: 1rem 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.footer-links a:hover { color: var(--amber-light); }
.footer-link-admin {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a !important;
  background: linear-gradient(90deg, #fbbf24, #fcd34d);
  border: 1px solid rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25), 0 8px 20px rgba(251, 191, 36, 0.2);
}
.footer-link-admin:hover {
  color: #000 !important;
  background: linear-gradient(90deg, #fcd34d, #fbbf24);
}

/* Admin login below footer */
#admin-login,
#login {
  scroll-margin-top: 1rem;
}
.site-admin-login {
  border-top: 3px solid #fbbf24;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), rgba(2, 6, 23, 0.98));
  padding: 1.5rem 0 1.75rem;
  box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.15);
}
.site-admin-login-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(15, 23, 42, 0.88);
}
@media (min-width: 768px) {
  .site-admin-login-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }
}
.site-admin-login-label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fbbf24;
}
.site-admin-login-title {
  margin: 0.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fef3c7;
}
.site-admin-login-note {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
  max-width: 28rem;
}
.site-admin-login-form {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 768px) {
  .site-admin-login-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    max-width: 42rem;
  }
}
.site-admin-login-form .form-group label {
  font-size: 0.625rem;
}
.site-admin-login-form-page { max-width: 24rem; margin: 0 auto; }
.site-admin-login-page { text-align: center; }
.site-admin-login-banner {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fbbf24;
  text-align: center;
}

/* Typography */
.page-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.page-subtitle {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 48rem;
  line-height: 1.7;
}
@media (min-width: 640px) { .page-subtitle { font-size: 1rem; } }

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* Page layouts */
.page { padding: 2.5rem 0; }
.page-narrow { max-width: 48rem; margin: 0 auto; }
.page-medium { max-width: 64rem; margin: 0 auto; }

/* Cards */
.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card-sm { padding: 1rem; border-radius: var(--radius); }
.card-grid { display: grid; gap: 1rem; }
.card-grid-2 { grid-template-columns: 1fr; }
.card-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.stat-value { font-size: 1.125rem; font-weight: 600; color: var(--amber); margin-top: 0.5rem; }
.stat-value-emerald { color: var(--emerald); }
.stat-note { font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 3rem; padding: 2.5rem 0; }
@media (min-width: 1024px) {
  .hero { flex-direction: row; align-items: flex-start; padding: 4rem 0; }
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fcd34d;
}
.hero-badge-dot { width: 0.25rem; height: 0.25rem; border-radius: 50%; background: var(--emerald); }
.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero-gradient {
  background: linear-gradient(to right, #fcd34d, #facc15, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.hero-aside { width: 100%; max-width: 36rem; flex: 1; min-width: 20rem; }
.hero-login { padding: 1.5rem; }
.hero-login-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.hero-login-form .form-group label {
  font-size: 0.6875rem;
}
.hero-login-form .form-control {
  font-size: 0.875rem;
  padding: 0.625rem 0.75rem;
}
.hero-login-legal {
  font-size: 0.6875rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text-dim);
}
.hero-login-legal a:hover { color: var(--amber-light); }
.hero-login-admin {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.hero-login-admin a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
}
.hero-login-admin a:hover { color: var(--amber-light); }

.legal-document .legal-body {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #cbd5e1;
}
.text-center { text-align: center; }

/* Slideshow */
.header-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: var(--bg-secondary);
}
.slideshow {
  position: relative;
  overflow: hidden;
}
.slideshow-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.slide-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem 3.25rem;
  text-align: center;
  pointer-events: none;
}
.slide-eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-slide);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 22px rgba(255, 255, 255, 0.55),
    0 0 40px color-mix(in srgb, var(--slide-accent, #fcd34d) 55%, transparent),
    0 2px 10px rgba(0, 0, 0, 0.45);
  animation: slide-text-flash 2.8s ease-in-out infinite;
}
.slide-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow:
    0 0 2px #fff,
    0 0 14px rgba(255, 255, 255, 0.95),
    0 0 36px rgba(255, 255, 255, 0.45),
    0 0 58px color-mix(in srgb, var(--slide-accent, #fcd34d) 45%, transparent),
    0 4px 18px rgba(0, 0, 0, 0.55);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35));
}
.slide-title .slide-stat {
  display: inline-block;
  margin-right: 0.2em;
  font-family: var(--font-slide);
  font-size: 0.92em;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #ffffff 28%,
    var(--slide-accent-soft, #fef9c3) 48%,
    #ffffff 68%,
    #ffffff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 24px color-mix(in srgb, var(--slide-accent, #fcd34d) 70%, transparent));
  animation: slide-stat-shimmer 2.4s linear infinite;
}
.slide-subtitle {
  margin: 0.75rem 0 0;
  max-width: 36ch;
  font-family: var(--font-slide);
  font-size: clamp(0.95rem, 1.9vw, 1.15rem);
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
  opacity: 0.96;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.75),
    0 0 24px rgba(255, 255, 255, 0.35),
    0 2px 14px rgba(0, 0, 0, 0.55);
}
.slide-tone-1 { --slide-accent: #ffffff; --slide-accent-soft: #fef9c3; }
.slide-tone-2 { --slide-accent: #f8fafc; --slide-accent-soft: #e0f2fe; }
.slide-tone-3 { --slide-accent: #ffffff; --slide-accent-soft: #d1fae5; }
.slide-tone-4 { --slide-accent: #fffbeb; --slide-accent-soft: #fde68a; }
.slide-tone-5 { --slide-accent: #ffffff; --slide-accent-soft: #dbeafe; }
.slide-tone-6 { --slide-accent: #fff7ed; --slide-accent-soft: #fdba74; }
.slide-tone-7 { --slide-accent: #ffffff; --slide-accent-soft: #ede9fe; }
.slide-tone-8 { --slide-accent: #f0fdf4; --slide-accent-soft: #a7f3d0; }
.slide.active .slide-caption {
  animation: slide-caption-in 0.75s ease 0.15s both;
}
.slide.active .slide-title {
  animation: slide-title-pop 0.85s cubic-bezier(0.2, 0.9, 0.25, 1) 0.2s both;
}
@keyframes slide-caption-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slide-title-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35));
  }
}
@keyframes slide-text-flash {
  0%, 100% {
    opacity: 0.88;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.35);
  }
}
@keyframes slide-stat-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}
.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.65);
  color: #f8fafc;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.slideshow-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--amber);
  color: var(--amber-light);
}
.slideshow-prev { left: 0.75rem; }
.slideshow-next { right: 0.75rem; }
.slideshow-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.slideshow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(148, 163, 184, 0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slideshow-dot.active {
  background: var(--amber);
  transform: scale(1.2);
}
@media (max-width: 640px) {
  .header-hero { height: clamp(12rem, 45vw, 16rem); }
  .slide-caption { padding: 3.75rem 1rem 2.75rem; }
  .slide-eyebrow { font-size: 0.62rem; letter-spacing: 0.18em; }
  .slide-subtitle { max-width: 28ch; }
  .slideshow-btn { width: 1.75rem; height: 1.75rem; font-size: 1.25rem; }
  .hero-aside { min-width: 0; max-width: 100%; }
}

/* Testimonials slideshow (homepage, before footer) */
.testimonials-section {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(251, 191, 36, 0.18);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.08), transparent 42%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.85));
}
.testimonials-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}
.testimonials-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #f8fafc;
}
.testimonials-intro {
  margin: 0.75rem auto 0;
  max-width: 34rem;
}
.testimonials-slideshow {
  position: relative;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 20px 60px rgba(2, 6, 23, 0.55);
  overflow: hidden;
}
.testimonials-slideshow::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  z-index: 2;
  background: linear-gradient(180deg, #fbbf24, #34d399, #38bdf8, #fb7185, #a78bfa, #f59e0b, #c4b5fd, #6ee7b7);
}
.testimonials-track {
  position: relative;
  min-height: 18rem;
}
.testimonial-slide {
  position: absolute;
  inset: 0;
  padding: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.testimonial-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.testimonial-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 18rem;
  height: 100%;
}
@media (min-width: 768px) {
  .testimonial-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}
.testimonial-media {
  position: relative;
  min-height: 11rem;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.55);
  border-bottom: 1px solid rgba(251, 191, 36, 0.14);
}
@media (min-width: 768px) {
  .testimonial-media {
    min-height: 18rem;
    border-bottom: none;
    border-right: 1px solid rgba(251, 191, 36, 0.14);
  }
}
.testimonial-media img {
  width: 100%;
  height: 100%;
  min-height: 11rem;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (min-width: 768px) {
  .testimonial-media img { min-height: 18rem; }
}
.testimonial-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.75rem 2rem 3rem;
}
@media (min-width: 768px) {
  .testimonial-content {
    padding: 2.25rem 2.5rem 2.75rem;
  }
}
.testimonial-quote {
  margin: 0;
  max-width: none;
  text-align: left;
}
.testimonial-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: #e2e8f0;
}
.testimonial-slide.active .testimonial-quote {
  animation: slide-caption-in 0.75s ease 0.12s both;
}
.testimonial-author {
  text-align: left;
}
.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--slide-accent, var(--amber-light));
}
.testimonial-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.testimonials-slideshow .slideshow-btn {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(251, 191, 36, 0.35);
}
.testimonials-slideshow .slideshow-dots {
  bottom: 1rem;
}
.testimonials-disclaimer {
  margin: 1rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 0.75rem;
}
@media (max-width: 640px) {
  .testimonials-section { padding: 2rem 0 1.5rem; }
  .testimonials-track { min-height: 22rem; }
  .testimonial-split { min-height: 22rem; }
  .testimonial-content { padding: 1.5rem 2.75rem 3rem; }
}

/* Forms */
.form-card { margin-top: 1.5rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.phone-input-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(9.5rem, 11rem) 1fr;
}
@media (max-width: 480px) {
  .phone-input-row { grid-template-columns: 1fr; }
}
.phone-code-select { min-width: 0; }
.registration-code-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}
@media (max-width: 480px) {
  .registration-code-row { grid-template-columns: 1fr 1fr; }
  .registration-code-row .form-control { grid-column: 1 / -1; }
}
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.form-control {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #334155;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
}
.form-control:focus { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3); }
.form-control.field-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}
.form-control::placeholder { color: #64748b; }
input[type="file"].form-control {
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
}
textarea.form-control { resize: vertical; min-height: 7rem; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 0.5rem; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.75rem; color: #cbd5e1; }
.form-checkbox input { margin-top: 0.125rem; }

/* Alerts */
.alert {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
}
.alert-error { border: 1px solid rgba(244, 63, 94, 0.4); background: rgba(244, 63, 94, 0.1); color: #fecdd3; }
.alert-success { border: 1px solid rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); color: #a7f3d0; }
.alert-info { border: 1px solid rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.1); color: #fef3c7; }

/* App loader / preloader */
.app-loader,
.ajax-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.app-loader.is-visible,
.app-loader-page,
.ajax-loader:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.app-loader[hidden],
.ajax-loader[hidden] { display: none !important; }
.app-loader.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.app-loader-backdrop,
.ajax-loader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
}
.app-loader-card,
.ajax-loader-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  min-width: 12rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}
.app-loader-spinner {
  position: absolute;
  top: 1.35rem;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  border: 3px solid rgba(251, 191, 36, 0.2);
  border-top-color: #fbbf24;
  animation: app-spin 0.75s linear infinite;
}
.app-loader-gif,
.ajax-loader-gif {
  position: relative;
  z-index: 1;
  display: block;
  animation: app-spin 0.85s linear infinite;
}
.app-loader-label,
.ajax-loader-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fde68a;
  text-align: center;
}
body.app-loading,
body.ajax-loading { overflow: hidden; }
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}
.btn.is-loading::after {
  content: '';
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 0.45rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.1rem;
  animation: app-spin 0.65s linear infinite;
}
@keyframes app-spin {
  to { transform: rotate(360deg); }
}
@keyframes ajax-spin {
  to { transform: rotate(360deg); }
}

/* Progress bar */
.progress-bar {
  height: 0.5rem;
  border-radius: 9999px;
  background: #0f172a;
  overflow: hidden;
  margin-top: 1rem;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--emerald), var(--amber-light), var(--amber));
  transition: width 0.3s;
}

/* Lists */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  font-size: 0.75rem;
}
.list-stack { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }

/* FAQ */
details.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow);
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }

/* Dashboard layout */
.dashboard-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .dashboard-grid-main { grid-template-columns: 1.3fr 1fr; }
  .dashboard-grid-bottom { grid-template-columns: 1.2fr 0.8fr; }
}
.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .dashboard-header { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Calculator */
.investment-calculator {
  position: relative;
  margin-top: 1.5rem;
}
.calc-rate-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.calc-rate-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
}
.calc-rate-badge-referral {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
}
.calc-rate-badge-referral .calc-rate-value { color: #6ee7b7; }
.calc-rate-badge-referral .calc-rate-label { color: #a7f3d0; }
.calc-rate-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--amber-light);
}
.calc-rate-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde68a;
}
.calc-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.calc-widget-note {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 52rem;
}
.calc-widget-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .calc-widget-grid { grid-template-columns: 1.1fr 0.9fr; }
  .calc-widget-grid-single { grid-template-columns: 1fr; }
}
.calc-side-title {
  font-size: 0.875rem;
  font-weight: 600;
}
.calc-results-amount {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.calc-results-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .calc-results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.calc-result-card {
  padding: 0.85rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
}
.calc-result-card dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.calc-result-card dd {
  margin: 0;
}
.calc-result-card .stat-value {
  font-size: 1rem;
}
.calc-result-featured {
  grid-column: 1 / -1;
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.7));
}
.calc-result-featured .stat-value {
  font-size: 1.35rem;
}
.calc-result-sub {
  margin-top: 0.25rem !important;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.calc-referral-panel {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(6, 78, 59, 0.18);
}
.calc-referral-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #a7f3d0;
}
.calc-referral-note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.calc-results-heading {
  margin: 1rem 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.calc-results-heading-referral {
  color: #6ee7b7;
}
.calc-results-referral-note {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.calc-result-referral {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(6, 78, 59, 0.14);
}
.calc-result-referral.calc-result-featured {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.72));
}
.dash-referral-commission-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dash-referral-commission-value {
  font-size: 1.35rem;
  color: #6ee7b7;
}
.investment-calculator-compact .calc-widget-grid {
  grid-template-columns: 1fr;
}

/* User dashboard: growth curve below calculator, aligned bottom-right */
#dashCalc .calc-widget-grid {
  grid-template-columns: 1fr;
}
#dashCalc .calc-widget-side {
  margin-top: 1.25rem;
  margin-left: auto;
  width: min(100%, 28rem);
  justify-self: end;
}

/* Calculator chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 12rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(to bottom right, #020617, #0f172a, #020617);
}
.chart-bar {
  flex: 1;
  border-radius: 9999px 9999px 0 0;
  background: linear-gradient(to top, rgba(245, 158, 11, 0.7), rgba(252, 211, 77, 0.8), rgba(110, 231, 183, 0.9));
  min-height: 20%;
}

/* Utility */
.text-amber { color: var(--amber); }
.text-emerald { color: var(--emerald); }
.text-muted { color: var(--text-muted); }
.text-mono { font-family: ui-monospace, monospace; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-4 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.col-span-2 { grid-column: span 2; }
@media (max-width: 639px) { .col-span-2 { grid-column: span 1; } }

.disclaimer { font-size: 0.6875rem; color: var(--text-dim); max-width: 36rem; margin-top: 1rem; }

/* Welcome page */
.welcome-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .welcome-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
.welcome-note-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: #cbd5e1;
}
.welcome-note-body p { margin: 0; }
.pending-welcome-passport {
  display: flex;
  justify-content: flex-start;
}
.approved-success-hero {
  border-color: rgba(52, 211, 153, 0.45);
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.16), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
}
.approved-enter-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .approved-enter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .approved-enter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.approved-enter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.approved-enter-card:hover {
  border-color: color-mix(in srgb, var(--nav-accent, #fbbf24) 55%, transparent);
  background: rgba(30, 41, 59, 0.72);
  transform: translateY(-1px);
}
.approved-enter-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.approved-enter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
}
.approved-enter-note {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.approved-enter-value {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nav-accent, #fbbf24);
  font-variant-numeric: tabular-nums;
}
.dash-referral-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  word-break: break-word;
}
.dash-referral-link-row .js-referral-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.approved-profile {
  display: grid;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 720px) {
  .approved-profile {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem;
  }
}
.approved-profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 0.35rem;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.55);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.4);
}
.approved-profile-avatar .dash-profile-photo,
.approved-profile-avatar .dash-profile-initials {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.approved-profile-avatar .dash-profile-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fbbf24;
}
.approved-gift-card-rules {
  border-color: rgba(251, 191, 36, 0.35);
}
.admin-gift-ledger-grid,
.admin-approve-credit-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .admin-gift-ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-approve-credit-grid {
    grid-template-columns: minmax(8rem, 1fr) minmax(7rem, 0.8fr) auto;
    align-items: end;
  }
}
.admin-approve-credit-form {
  flex: 1 1 18rem;
}
.pending-welcome-review {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 720px) {
  .pending-welcome-review {
    grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
    gap: 1.5rem;
  }
}
.pending-welcome-submitted {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
}
.pending-welcome-submitted .welcome-detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.pending-welcome-passport-figure {
  margin: 0;
  max-width: 14rem;
}
.pending-welcome-passport-photo {
  display: block;
  width: 100%;
  max-width: 14rem;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.45);
  background: rgba(15, 23, 42, 0.9);
}
.pending-welcome-passport-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: #94a3b8;
}
.pending-welcome-passport-fallback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pending-welcome-passport-avatar {
  width: 90px;
  height: 90px;
  border-radius: 0.35rem;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.45);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pending-welcome-passport-avatar .dash-profile-photo,
.pending-welcome-passport-avatar .dash-profile-initials {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pending-welcome-passport-avatar .dash-profile-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fbbf24;
}
.pending-welcome-activate {
  padding-top: 1rem;
  border-top: 1px solid rgba(251, 191, 36, 0.22);
}
.user-support-chat-window {
  min-height: 14rem;
}
.user-support-chat-meta {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}
.chat-admin-passport {
  max-width: 7.5rem;
}
.chat-gift-upload-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .chat-gift-upload-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.chat-gift-preview {
  margin: 0;
}
.chat-gift-preview-photo {
  display: block;
  width: 100%;
  max-width: 14rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(15, 23, 42, 0.9);
}
.welcome-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}
.welcome-detail-row {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}
.welcome-detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.welcome-detail-value {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #e2e8f0;
  word-break: break-word;
}
.welcome-hero { padding: 2rem 1.5rem; }
.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.welcome-actions-note {
  margin: 0;
  flex: 1;
  min-width: 12rem;
}
.welcome-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.welcome-bottom-actions .logout-form {
  margin: 0;
}
.welcome-process {
  padding: 1.5rem;
}
.welcome-process-intro {
  margin: 0 0 1.25rem;
  max-width: 42rem;
}
.welcome-process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.welcome-process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(51, 65, 85, 0.65);
  background: rgba(15, 23, 42, 0.45);
}
.welcome-process-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(to right, var(--amber), var(--yellow));
}
.welcome-process-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
}
.welcome-process-step .stat-note {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
}
.welcome-process-footer {
  margin: 0;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
}
.mb-4 { margin-bottom: 1rem; }

/* Dashboard colour system (10 tones) */
.dash-page {
  position: relative;
  isolation: isolate;
  --dash-1: #fbbf24;
  --dash-2: #34d399;
  --dash-3: #38bdf8;
  --dash-4: #a78bfa;
  --dash-5: #fb923c;
  --dash-6: #22d3ee;
  --dash-7: #fb7185;
  --dash-8: #a3e635;
  --dash-9: #e879f9;
  --dash-10: #f87171;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}
.dash-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 8% -5%, rgba(251, 191, 36, 0.14), transparent 58%),
    radial-gradient(ellipse 70% 50% at 92% 8%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse 65% 45% at 50% 100%, rgba(167, 139, 250, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 85%, rgba(52, 211, 153, 0.08), transparent 55%),
    linear-gradient(180deg, #020617 0%, #030712 45%, #000 100%);
}
.dash-app-container {
  position: relative;
  padding: clamp(1rem, 2vw, 1.75rem);
  border-radius: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(155deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.82));
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 28px 90px rgba(2, 6, 23, 0.72),
    0 0 60px rgba(251, 191, 36, 0.04);
  overflow: hidden;
}
.dash-app-container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(251, 191, 36, 0.07), transparent 28%),
    linear-gradient(300deg, rgba(56, 189, 248, 0.06), transparent 32%),
    linear-gradient(20deg, rgba(232, 121, 249, 0.05), transparent 30%);
}
.dash-app-container > * {
  position: relative;
  z-index: 1;
}
.dash-app-container-user {
  border-color: rgba(251, 191, 36, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 28px 90px rgba(2, 6, 23, 0.72),
    0 0 70px rgba(251, 191, 36, 0.07),
    0 0 90px rgba(56, 189, 248, 0.05);
}
.dash-app-container-admin {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 28px 90px rgba(2, 6, 23, 0.72),
    0 0 70px rgba(167, 139, 250, 0.08),
    0 0 90px rgba(34, 211, 238, 0.05);
}
.dash-page-inner { padding-left: 0; padding-right: 0; }

.dash-tone-1 { --dash-accent: var(--dash-1); --dash-accent-soft: #fde68a; }
.dash-tone-2 { --dash-accent: var(--dash-2); --dash-accent-soft: #a7f3d0; }
.dash-tone-3 { --dash-accent: var(--dash-3); --dash-accent-soft: #bae6fd; }
.dash-tone-4 { --dash-accent: var(--dash-4); --dash-accent-soft: #ddd6fe; }
.dash-tone-5 { --dash-accent: var(--dash-5); --dash-accent-soft: #fdba74; }
.dash-tone-6 { --dash-accent: var(--dash-6); --dash-accent-soft: #a5f3fc; }
.dash-tone-7 { --dash-accent: var(--dash-7); --dash-accent-soft: #fecdd3; }
.dash-tone-8 { --dash-accent: var(--dash-8); --dash-accent-soft: #d9f99d; }
.dash-tone-9 { --dash-accent: var(--dash-9); --dash-accent-soft: #f5d0fe; }
.dash-tone-10 { --dash-accent: var(--dash-10); --dash-accent-soft: #fecaca; }

.dash-hero {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--dash-accent) 45%, transparent);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--dash-accent) 22%, transparent), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.92));
  box-shadow: 0 20px 50px color-mix(in srgb, var(--dash-accent) 18%, transparent);
}
.dash-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--dash-accent), transparent);
}
.dash-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f172a;
  background: var(--dash-accent);
}
.dash-hero-title {
  margin-top: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #f8fafc;
}
.dash-hero-meta {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
}
.dash-hero-meta strong { color: var(--dash-accent); }
.dash-hero-withdraw-row {
  margin-top: 0.85rem;
}
.dash-hero-withdraw-btn {
  font-weight: 700;
  letter-spacing: 0.04em;
}
.dash-hero-withdraw-btn.is-pending {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fcd34d;
}
.dash-hero-withdraw-btn.is-pending:hover {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.75);
  color: #fde68a;
}

.dash-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--dash-accent) 22%, #1e293b);
}
.dash-hero-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 900px) {
  .dash-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  }
}
.dash-hero-details {
  min-width: 0;
  width: 100%;
  max-width: 24rem;
  justify-self: end;
}
.dash-hero-details-box {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--dash-accent) 35%, #1e293b);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--dash-accent) 14%, transparent), transparent 55%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.88));
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.45);
  overflow-x: clip;
}
.dash-hero-details-section {
  padding: 0.85rem 0;
}
.dash-hero-details-section + .dash-hero-details-section {
  border-top: 1px solid rgba(51, 65, 85, 0.65);
}
.dash-hero-details-section:first-child {
  padding-top: 0;
}
.dash-hero-details-section:last-child {
  padding-bottom: 0;
}
.dash-hero-details .dash-user-top {
  align-items: flex-start;
}
.dash-hero-details .dash-user-top-meta {
  flex: 1;
  text-align: right;
}
.dash-hero-details .dash-profile-name,
.dash-hero-details .dash-profile-country,
.dash-hero-details .dash-stat-note {
  text-align: right;
}
.dash-hero-details .dash-live-balance {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: right;
}
.dash-hero-details .dash-live-balance-head {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.dash-live-balance-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.dash-live-balance-amount-wrap {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}
.dash-balance-withdraw-link {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #6ee7b7;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  max-width: 5.75rem;
}
.dash-withdraw-focus {
  outline: 2px solid rgba(52, 211, 153, 0.75);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.12);
}
.dash-balance-withdraw-link:hover {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.75);
  background: rgba(52, 211, 153, 0.2);
  transform: translateY(-1px);
}
.dash-balance-withdraw-link.is-pending {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.12);
}
.dash-balance-withdraw-link.is-pending:hover {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.75);
  background: rgba(251, 191, 36, 0.18);
}
.dash-hero-details .dash-live-balance-main {
  align-items: flex-start;
}
.dash-hero-details .dash-live-balance-amount-wrap,
.dash-hero-details .dash-live-balance-value,
.dash-hero-details .dash-live-balance-hour {
  text-align: right;
}
.dash-hero-details .dash-balance-withdraw-link {
  margin-top: 0.15rem;
}
.dash-hero-details .dash-email-statement-note {
  text-align: right;
}
.dash-hero-details .dash-live-balance-split {
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.dash-hero-details .dash-live-balance-split > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}
.dash-hero-details .dash-balance-amount {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}
.dash-hero-details .dash-live-split-label {
  margin-bottom: 0;
  flex-shrink: 0;
}
.dash-hero-details .dash-profile-codes {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  text-align: right;
}
.dash-hero-details .dash-profile-refcode {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.dash-top-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}
.dash-user-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.dash-user-top-meta {
  min-width: 0;
}
.dash-profile-photo-top {
  width: 90px;
  height: 90px;
  border-width: 2px;
}
.dash-profile-codes {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(51, 65, 85, 0.75);
  background: rgba(15, 23, 42, 0.55);
  max-width: 100%;
  width: 100%;
}
.header-start {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.header-user-profile {
  flex-shrink: 0;
}
.header-profile-photo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 0.35rem;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.55);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.35);
}
.header-profile-photo-wrap .dash-profile-photo,
.header-profile-photo-wrap .dash-profile-initials {
  width: 100%;
  height: 100%;
}
.header-profile-photo-wrap .dash-profile-initials {
  font-size: 0.7rem;
}
.dash-live-balance {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--dash-accent) 35%, #1e293b);
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.82));
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.45);
  max-width: 100%;
  width: 100%;
}
.dash-live-balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.dash-live-balance-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dash-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dash-live-pulse::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #34d399;
  animation: dash-live-pulse 1.4s ease-in-out infinite;
}
@keyframes dash-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.dash-live-balance-value {
  margin: 0.35rem 0 0;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fef08a;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
  min-width: 0;
}
.dash-live-balance-amount-wrap .dash-live-balance-value {
  margin-top: 0;
}
.dash-live-balance-value.is-oversized {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.15;
}
.dash-live-balance-value.is-compact {
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  line-height: 1.2;
}
.dash-live-balance-value.is-extreme {
  font-size: clamp(0.62rem, 1.1vw, 0.82rem);
  line-height: 1.25;
}
.dash-live-balance-value.is-mega {
  font-size: clamp(0.48rem, 0.85vw, 0.65rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.dash-live-balance-split strong,
.dash-balance-amount {
  font-size: 0.92rem;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
}
.dash-live-balance-split strong.is-oversized,
.dash-balance-amount.is-oversized {
  font-size: 0.78rem;
  line-height: 1.2;
}
.dash-live-balance-split strong.is-compact,
.dash-balance-amount.is-compact {
  font-size: 0.68rem;
  line-height: 1.25;
}
.dash-live-balance-split strong.is-extreme,
.dash-balance-amount.is-extreme {
  font-size: 0.58rem;
  line-height: 1.3;
}
.dash-live-balance-split strong.is-mega,
.dash-balance-amount.is-mega {
  font-size: 0.5rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.dash-live-balance-hour {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.dash-live-balance-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(51, 65, 85, 0.7);
}
.dash-live-split-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}
.dash-email-statement-note {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  font-size: 0.75rem;
  line-height: 1.5;
  color: #94a3b8;
}
.dash-email-statement-note strong {
  color: #cbd5e1;
  font-weight: 600;
}
.dash-profile-refcode {
  margin: 0;
  font-size: 0.8125rem;
  color: #cbd5e1;
}
.dash-inline-copy {
  margin-left: 0.5rem;
  vertical-align: middle;
}
.dash-account-codes {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.dash-account-code-row {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.dash-account-code-row dt {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #94a3b8;
}
.dash-account-code-row dd {
  margin: 0;
  font-size: 0.95rem;
  color: #fde68a;
  word-break: break-all;
}
.admin-user-lookup-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}
@media (max-width: 640px) {
  .admin-user-lookup-row { grid-template-columns: 1fr; }
}
.admin-lookup-result {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(15, 23, 42, 0.55);
}
.dash-referral-users {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.dash-referral-user-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(51, 65, 85, 0.75);
  background: rgba(2, 6, 23, 0.45);
}
.dash-referral-user-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.dash-referral-user-main strong {
  color: #f8fafc;
  font-size: 0.92rem;
}
.dash-referral-user-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.dash-referral-user-balance {
  font-weight: 700;
  color: #fde68a;
  font-size: 0.85rem;
}
.dash-referral-user-commission {
  font-weight: 600;
  color: #6ee7b7;
  font-size: 0.8rem;
}
.dash-hero-content { margin-top: 0; min-width: 0; }

.dash-profile-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}
.dash-profile-photo-wrap {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 0.35rem;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--dash-accent) 55%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--dash-accent) 22%, transparent);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dash-profile-initials {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--dash-accent);
}
.dash-profile-details { min-width: 0; }
.dash-profile-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}
.dash-profile-country {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: #cbd5e1;
}
.dash-profile-country-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dash-accent);
  margin-right: 0.35rem;
}

.dash-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--dash-accent) 42%, #1e293b);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--dash-accent) 16%, transparent), transparent 46%),
    linear-gradient(155deg, color-mix(in srgb, var(--dash-accent) 10%, rgba(15, 23, 42, 0.94)), rgba(2, 6, 23, 0.9));
  padding: 1.25rem;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--dash-accent) 12%, transparent) inset,
    0 18px 45px rgba(2, 6, 23, 0.5),
    0 0 35px color-mix(in srgb, var(--dash-accent) 8%, transparent);
}
.dash-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--dash-accent) 14%, transparent);
  filter: blur(28px);
  opacity: 0.65;
  pointer-events: none;
}
.dash-panel-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dash-accent);
}

.dash-style-stripe { border-left: 4px solid var(--dash-accent); }
.dash-style-glow { box-shadow: 0 0 0 1px color-mix(in srgb, var(--dash-accent) 30%, transparent), 0 18px 45px color-mix(in srgb, var(--dash-accent) 20%, transparent); }
.dash-style-gradient {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--dash-accent) 22%, transparent), transparent 50%),
    linear-gradient(145deg, color-mix(in srgb, var(--dash-accent) 18%, #0f172a), rgba(2, 6, 23, 0.92));
}
.dash-style-outline {
  border: 2px solid color-mix(in srgb, var(--dash-accent) 55%, transparent);
  background: rgba(2, 6, 23, 0.75);
}
.dash-style-topbar::before {
  content: "";
  display: block;
  height: 4px;
  margin: -1.25rem -1.25rem 1rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--dash-accent), transparent);
}
.dash-style-soft {
  background: color-mix(in srgb, var(--dash-accent) 10%, rgba(15, 23, 42, 0.88));
}
.dash-style-dashed {
  border-style: dashed;
  border-width: 2px;
  border-color: color-mix(in srgb, var(--dash-accent) 50%, #334155);
}
.dash-style-mesh {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--dash-accent) 12%, transparent) 0%, transparent 45%),
    rgba(15, 23, 42, 0.88);
}
.dash-style-pill .dash-panel-label {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--dash-accent) 18%, transparent);
}
.dash-style-corner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-bottom-left-radius: 100%;
  background: color-mix(in srgb, var(--dash-accent) 22%, transparent);
}
.dash-bank-transfer {
  scroll-margin-top: 5rem;
}
.dash-bank-transfer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.dash-chip-success {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}
.dash-bank-transfer-form .form-control:read-only {
  opacity: 0.9;
  cursor: default;
}
.transfer-order-form {
  margin-top: 1rem;
}
.transfer-order-meta {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.55);
}
.transfer-order-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.transfer-order-fieldset {
  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin: 0;
}
.transfer-order-fieldset legend {
  padding: 0 0.35rem;
}
.transfer-order-confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.transfer-order-confirm input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.transfer-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.transfer-order-summary {
  display: grid;
  gap: 0.5rem;
}
.transfer-order-summary-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
}
.transfer-order-summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.transfer-order-summary-row dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.transfer-order-summary-row dd {
  margin: 0;
  color: #e2e8f0;
  text-align: right;
}
.transfer-order-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.transfer-order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(51, 65, 85, 0.65);
  background: rgba(15, 23, 42, 0.45);
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}
.transfer-order-step.is-done {
  border-color: rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}
.transfer-order-step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(51, 65, 85, 0.8);
  color: #e2e8f0;
}
.transfer-order-step.is-done .transfer-order-step-num {
  background: linear-gradient(to right, var(--amber), var(--yellow));
  color: #0f172a;
}
.form-grid-span-2 {
  grid-column: 1 / -1;
}
@media (max-width: 768px) {
  .transfer-order-steps {
    grid-template-columns: 1fr;
  }
}

.dash-stat-value {
  margin-top: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dash-accent-soft, var(--dash-accent));
  text-shadow: 0 0 24px color-mix(in srgb, var(--dash-accent) 35%, transparent);
}
.dash-stat-note {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.dash-progress-rainbow {
  height: 0.625rem;
  border-radius: 9999px;
  background: #0f172a;
  overflow: hidden;
  margin-top: 1rem;
}
.dash-progress-rainbow-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--dash-1), var(--dash-5), var(--dash-2), var(--dash-6), var(--dash-4));
  transition: width 0.35s ease;
}

.dash-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--dash-accent) 25%, #1e293b);
  background: color-mix(in srgb, var(--dash-accent) 6%, rgba(2, 6, 23, 0.5));
}
.dash-list-item strong { color: #f1f5f9; font-size: 0.8125rem; }
.dash-list-item .dash-list-amount { color: var(--dash-accent); font-family: ui-monospace, monospace; font-size: 0.8125rem; }

.dash-status-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
  background: var(--dash-accent);
}

.dash-admin-kpi-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .dash-admin-kpi-grid { grid-template-columns: repeat(5, 1fr); }
}

.dash-admin-kpi {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: var(--radius);
}
.dash-admin-kpi .dash-stat-value { font-size: 1.5rem; }

.dash-pending-card {
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 0.75rem;
}

.dash-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--dash-accent);
  border: 1px solid color-mix(in srgb, var(--dash-accent) 45%, transparent);
  background: color-mix(in srgb, var(--dash-accent) 10%, transparent);
  text-decoration: none;
}
.dash-chip.is-active {
  color: #0f172a;
  background: var(--dash-accent);
  border-color: var(--dash-accent);
}

.dash-page .dashboard-header { margin-bottom: 0.25rem; }

/* Admin toggle panels */
.admin-toggle-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}
.admin-toggle-toolbar-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.admin-toggle-stack {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.admin-toggle-panel {
  margin-top: 0;
}
.admin-toggle-panel summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-toggle-panel summary::-webkit-details-marker { display: none; }
.admin-toggle-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.admin-toggle-summary-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.admin-toggle-summary-meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.admin-toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  background: var(--dash-accent);
}
.admin-toggle-chevron {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--dash-accent) 45%, transparent);
  color: var(--dash-accent);
  font-size: 0.875rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.admin-toggle-panel[open] .admin-toggle-chevron {
  transform: rotate(180deg);
  background: color-mix(in srgb, var(--dash-accent) 14%, transparent);
}
.admin-toggle-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--dash-accent) 25%, #1e293b);
}
.admin-toggle-scroll {
  max-height: 24rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.admin-toggle-scroll::-webkit-scrollbar { width: 6px; }
.admin-toggle-scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--dash-accent) 40%, #334155);
  border-radius: 9999px;
}

/* Admin sidebar layout */
.admin-page-frame {
  width: 100%;
  padding: 1rem 1rem 2rem;
}
.admin-dash-frame {
  padding: 1rem;
  overflow: visible;
}
.admin-panel-focus {
  outline: 2px solid rgba(251, 191, 36, 0.75);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.12);
}
.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .admin-shell {
    grid-template-columns: 22rem minmax(0, 1fr);
    align-items: start;
  }
}
.admin-sidebar {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.94));
  padding: 1rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 22px 60px rgba(2, 6, 23, 0.65),
    0 0 50px rgba(167, 139, 250, 0.08);
}
.admin-sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #fbbf24, #38bdf8, #a78bfa, #34d399, #fb7185);
}
.admin-sidebar::after {
  content: "";
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  filter: blur(30px);
  pointer-events: none;
}
@media (min-width: 1024px) {
  .admin-sidebar {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    min-height: calc(100vh - 7rem);
  }
}
.admin-shortcut-list {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.admin-shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.admin-shortcut-item:hover {
  border-color: color-mix(in srgb, var(--nav-accent, #38bdf8) 55%, transparent);
  background: rgba(30, 41, 59, 0.72);
  transform: translateX(2px);
}
.admin-shortcut-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.admin-shortcut-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
}
.admin-shortcut-note {
  font-size: 0.65rem;
  color: #94a3b8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.admin-shortcut-value {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nav-accent, #fbbf24);
  font-variant-numeric: tabular-nums;
}
.admin-page-inner {
  padding: 0.25rem 0.25rem 1rem;
}
.admin-sidebar-scroll {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
  margin-bottom: 0.75rem;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(167, 139, 250, 0.22);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.admin-sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.admin-sidebar-brand-link:hover .admin-sidebar-title {
  color: #fbbf24;
}
.admin-sidebar-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #38bdf8, #a78bfa);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}
.admin-sidebar-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #f8fafc;
}
.admin-sidebar-user {
  margin: 0.15rem 0 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.admin-sidebar-toggle-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  flex-shrink: 0;
}
.admin-sidebar-toggle-toolbar .btn {
  flex: 1;
  font-size: 0.7rem;
  padding: 0.35rem 0.5rem;
}
.admin-sidebar-toggle-stack {
  gap: 0.55rem;
}
.admin-sidebar-toggle-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.55);
  padding: 0.55rem 0.65rem;
}
.admin-sidebar-toggle-panel .dash-panel-label {
  margin: 0;
  font-size: 0.78rem;
  color: #e2e8f0;
}
.admin-sidebar-toggle-panel .admin-toggle-summary-meta {
  color: #94a3b8;
}
.admin-sidebar-toggle-panel .admin-toggle-count {
  min-width: 1.6rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  color: #0f172a;
}
.admin-sidebar-toggle-panel .admin-toggle-body {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}
.admin-sidebar-toggle-body {
  font-size: 0.8rem;
}
.admin-sidebar-metric-stack {
  display: grid;
  gap: 0.4rem;
}
.admin-sidebar-people {
  max-height: 12rem;
}
.admin-sidebar-block {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.admin-sidebar-code-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  max-height: 11rem;
  overflow-y: auto;
}
.admin-sidebar-code-item {
  display: grid;
  gap: 0.1rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid transparent;
}
.admin-sidebar-code-item:hover {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(30, 41, 59, 0.8);
}
.admin-sidebar-code-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
}
.admin-sidebar-code-name {
  font-size: 0.65rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-sidebar-list-block {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.admin-sidebar-kpis {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.admin-sidebar-kpi {
  display: grid;
  gap: 0.12rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.admin-sidebar-kpi:hover {
  border-color: color-mix(in srgb, var(--nav-accent, #38bdf8) 55%, transparent);
  background: rgba(30, 41, 59, 0.72);
  transform: translateX(2px);
}
.admin-sidebar-kpi.is-active {
  border-color: color-mix(in srgb, var(--nav-accent, #38bdf8) 70%, transparent);
  box-shadow: inset 3px 0 0 var(--nav-accent, #38bdf8);
}
.admin-sidebar-kpi-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.admin-sidebar-kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e2e8f0;
}
.admin-sidebar-kpi-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--nav-accent, #fbbf24);
  font-variant-numeric: tabular-nums;
}
.admin-sidebar-kpi-detail {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}
.admin-sidebar-kpi-note {
  font-size: 0.68rem;
  color: #94a3b8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.admin-sidebar-summary {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.admin-sidebar-summary-grid {
  display: grid;
  gap: 0.35rem;
}
.admin-sidebar-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid transparent;
}
.admin-sidebar-summary-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
  color: #f8fafc;
}
.admin-sidebar-summary-label {
  font-size: 0.72rem;
}
.admin-sidebar-summary-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}
.admin-sidebar-lists {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.admin-sidebar-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.admin-sidebar-list-head .admin-sidebar-section-label {
  margin: 0;
}
.admin-sidebar-list-more {
  font-size: 0.68rem;
  color: #38bdf8;
  text-decoration: none;
}
.admin-sidebar-list-more:hover {
  color: #fbbf24;
}
.admin-sidebar-empty {
  margin: 0;
  font-size: 0.72rem;
  color: #94a3b8;
}
.admin-sidebar-people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  max-height: 9.5rem;
  overflow-y: auto;
}
.admin-sidebar-person {
  display: grid;
  gap: 0.1rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  background: rgba(15, 23, 42, 0.45);
}
.admin-sidebar-person:hover {
  background: rgba(30, 41, 59, 0.8);
}
.admin-sidebar-person-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
}
.admin-sidebar-person-meta {
  font-size: 0.65rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
  padding-bottom: 0.5rem;
}
.admin-sidebar-section + .admin-sidebar-section {
  margin-top: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.admin-sidebar-section-label {
  margin: 0 0 0.4rem;
  padding: 0 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}
.admin-sidebar-section-link {
  display: block;
  text-decoration: none;
  border-radius: 0.45rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.admin-sidebar-section-link:hover {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
}
.admin-sidebar-section-link.is-active {
  color: #fbbf24;
}
.admin-sidebar-sublist {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.15rem 0 0.55rem 0.55rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
  max-height: 14rem;
  overflow: auto;
}
.admin-sidebar-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.3;
}
.admin-sidebar-sublink:hover {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.12);
}
.admin-sidebar-sublink-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.admin-sidebar-sublink-status {
  flex-shrink: 0;
  font-size: 0.62rem;
  text-transform: capitalize;
  color: #64748b;
}
.admin-application-index .dash-list-item {
  align-items: center;
}
.admin-sidebar-link {
  --nav-accent: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.admin-sidebar-nav .admin-sidebar-link:nth-child(1) { --nav-accent: #fbbf24; }
.admin-sidebar-nav .admin-sidebar-link:nth-child(2) { --nav-accent: #34d399; }
.admin-sidebar-nav .admin-sidebar-link:nth-child(3) { --nav-accent: #38bdf8; }
.admin-sidebar-nav .admin-sidebar-link:nth-child(4) { --nav-accent: #fb7185; }
.admin-sidebar-nav .admin-sidebar-link:nth-child(5) { --nav-accent: #a78bfa; }
.admin-sidebar-nav .admin-sidebar-link:nth-child(6) { --nav-accent: #22d3ee; }
.admin-sidebar-nav .admin-sidebar-link:nth-child(7) { --nav-accent: #fb923c; }
.admin-sidebar-nav .admin-sidebar-link:nth-child(8) { --nav-accent: #a3e635; }
.admin-sidebar-nav .admin-sidebar-link:nth-child(9) { --nav-accent: #f87171; }
.admin-sidebar-nav .admin-sidebar-link:nth-child(10) { --nav-accent: #e879f9; }
.admin-sidebar-nav .admin-sidebar-link:nth-child(11) { --nav-accent: #67e8f9; }
.admin-sidebar-nav .admin-sidebar-link:nth-child(12) { --nav-accent: #fcd34d; }
.admin-sidebar-link:hover {
  color: #f8fafc;
  background: color-mix(in srgb, var(--nav-accent) 12%, rgba(15, 23, 42, 0.92));
  border-color: color-mix(in srgb, var(--nav-accent) 35%, transparent);
  transform: translateX(2px);
}
.admin-sidebar-link.is-active {
  color: #0f172a;
  background: linear-gradient(90deg, var(--nav-accent), color-mix(in srgb, var(--nav-accent) 65%, #fff));
  border-color: color-mix(in srgb, var(--nav-accent) 70%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--nav-accent) 25%, transparent);
}
.admin-sidebar-badge {
  min-width: 1.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-align: center;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid color-mix(in srgb, var(--nav-accent, #fbbf24) 35%, transparent);
}
.admin-sidebar-link.is-active .admin-sidebar-badge {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.62);
  border-color: transparent;
}
.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(167, 139, 250, 0.22);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}
.admin-sidebar-shortcut-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}
.admin-sidebar-lookup-row {
  display: flex;
  gap: 0.35rem;
}
.admin-sidebar-lookup-input {
  min-width: 0;
  flex: 1;
  padding: 0.4rem 0.55rem;
  font-size: 0.75rem;
}
.admin-content-wrap {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.admin-main {
  width: 100%;
}
.admin-page-head {
  border-color: rgba(167, 139, 250, 0.42) !important;
  background:
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.2), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92)) !important;
}
.dash-referral-user-item {
  border-color: color-mix(in srgb, var(--dash-3) 35%, #1e293b);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(2, 6, 23, 0.55));
}
.dash-live-balance {
  border-color: color-mix(in srgb, var(--dash-1) 45%, #1e293b);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 55%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.86));
}
.admin-sidebar-toggle {
  display: inline-flex;
}
.admin-topbar-actions .admin-sidebar-toggle,
.user-topbar-actions .user-sidebar-toggle {
  margin-bottom: 0;
}
@media (min-width: 1024px) {
  .admin-sidebar-toggle { display: none; }
}
.admin-shell.is-sidebar-open .admin-sidebar {
  display: flex;
}
@media (max-width: 1023px) {
  .admin-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(20rem, 88vw);
    max-width: 88vw;
    z-index: 1200;
    margin: 0;
    border-radius: 0 1.25rem 1.25rem 0;
    max-height: 100vh;
    min-height: 100vh;
    flex-direction: column;
  }
  .admin-shell.is-sidebar-open .admin-sidebar {
    display: flex;
  }
  .admin-shell.is-sidebar-open {
    grid-template-columns: 1fr;
  }
}

/* User account sidebar layout */
.user-page-frame {
  width: 100%;
  padding: 1rem 1rem 2rem;
}
.user-dash-frame {
  padding: 1rem;
  overflow: visible;
}
.user-page-inner {
  padding: 0.25rem 0.25rem 1rem;
}
.user-panel-focus {
  outline: 2px solid rgba(251, 191, 36, 0.75);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.12);
}
.user-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  position: relative;
}
@media (min-width: 1024px) {
  .user-shell {
    grid-template-columns: 18.5rem minmax(0, 1fr);
    align-items: start;
  }
}
.user-sidebar {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.94));
  padding: 1rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 22px 60px rgba(2, 6, 23, 0.65),
    0 0 50px rgba(251, 191, 36, 0.08);
}
.user-sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #fbbf24, #34d399, #38bdf8, #fb7185, #a78bfa);
}
.user-sidebar::after {
  content: "";
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.12);
  filter: blur(30px);
  pointer-events: none;
}
@media (min-width: 1024px) {
  .user-sidebar {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 7rem);
    display: flex;
    flex-direction: column;
  }
}
.user-sidebar-scroll {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding-right: 0.15rem;
}
.user-shortcut-list {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.user-shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.user-shortcut-item:hover {
  border-color: color-mix(in srgb, var(--nav-accent, #fbbf24) 55%, transparent);
  background: rgba(30, 41, 59, 0.72);
  transform: translateX(2px);
}
.user-shortcut-item.is-active {
  border-color: color-mix(in srgb, var(--nav-accent, #fbbf24) 70%, transparent);
  background: color-mix(in srgb, var(--nav-accent, #fbbf24) 16%, rgba(15, 23, 42, 0.9));
}
.user-shortcut-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.user-shortcut-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
}
.user-shortcut-note {
  font-size: 0.65rem;
  color: #94a3b8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.user-shortcut-value {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nav-accent, #fbbf24);
  font-variant-numeric: tabular-nums;
}
.user-sidebar-brand {
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
  position: relative;
  z-index: 1;
}
.user-sidebar-brand-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.user-sidebar-brand-link:hover .user-sidebar-title {
  color: #fbbf24;
}
.user-sidebar-avatar {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 0.35rem;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.4);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-sidebar-avatar .dash-profile-photo,
.user-sidebar-avatar .dash-profile-initials {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-sidebar-avatar .dash-profile-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fbbf24;
}
.user-sidebar-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}
.user-sidebar-meta {
  margin: 0.15rem 0 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.user-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
  padding-bottom: 0.5rem;
}
.user-sidebar-section + .user-sidebar-section {
  margin-top: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.user-sidebar-section-label {
  margin: 0 0 0.4rem;
  padding: 0 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}
.user-sidebar-section-link {
  display: block;
  text-decoration: none;
  border-radius: 0.45rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.user-sidebar-section-link:hover {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
}
.user-sidebar-section-link.is-active {
  color: #fbbf24;
}
.user-sidebar-link {
  --nav-accent: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.user-sidebar-link:hover {
  color: #f8fafc;
  background: color-mix(in srgb, var(--nav-accent) 12%, rgba(15, 23, 42, 0.92));
  border-color: color-mix(in srgb, var(--nav-accent) 35%, transparent);
  transform: translateX(2px);
}
.user-sidebar-link.is-active {
  color: #0f172a;
  background: linear-gradient(90deg, var(--nav-accent), color-mix(in srgb, var(--nav-accent) 65%, #fff));
  border-color: color-mix(in srgb, var(--nav-accent) 70%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--nav-accent) 25%, transparent);
}
.user-sidebar-badge {
  min-width: 1.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-align: center;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid color-mix(in srgb, var(--nav-accent, #fbbf24) 35%, transparent);
}
.user-sidebar-link.is-active .user-sidebar-badge {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.62);
  border-color: transparent;
}
.user-sidebar-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(251, 191, 36, 0.22);
  position: relative;
  z-index: 1;
}
.user-content-wrap {
  min-width: 0;
  position: relative;
}
.user-main {
  width: 100%;
}
.user-page-wrap {
  width: 100%;
}
.user-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.user-sidebar-toggle {
  display: inline-flex;
}
@media (min-width: 1024px) {
  .user-sidebar-toggle { display: none; }
  .user-topbar-actions .logout-form { display: none; }
}
.user-shell.is-sidebar-open .user-sidebar {
  display: flex;
}
@media (max-width: 1023px) {
  .user-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(20rem, 88vw);
    max-width: 88vw;
    z-index: 1200;
    margin: 0;
    border-radius: 0 1.25rem 1.25rem 0;
    max-height: 100vh;
    min-height: 100vh;
    flex-direction: column;
  }
  .user-shell.is-sidebar-open .user-sidebar {
    display: flex;
  }
}
#dash-balance,
#dash-investment,
#dashCalc,
#dash-referrals,
#dash-cycle,
#dash-codes,
#dash-notifications,
#dash-activity,
#dashBankTransfer {
  scroll-margin-top: 6rem;
}

/* Login earnings popup */
body.login-earnings-open { overflow: hidden; }
.login-earnings-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.login-earnings-modal[hidden] { display: none !important; }
.login-earnings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(6px);
}
.login-earnings-card {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  margin: 0;
  text-align: center;
}
.login-earnings-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.login-earnings-close:hover { color: #f8fafc; }
.login-earnings-badge {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f172a;
  background: var(--dash-accent);
}
.login-earnings-title {
  margin: 0.75rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
}
.login-earnings-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.login-earnings-total {
  margin: 0.85rem 0 0;
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  color: #6ee7b7;
  text-shadow: 0 0 30px rgba(52, 211, 153, 0.35);
  font-variant-numeric: tabular-nums;
}
.login-earnings-time {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.login-earnings-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0 0;
  text-align: left;
}
.login-earnings-breakdown div {
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(51, 65, 85, 0.75);
  background: rgba(2, 6, 23, 0.45);
}
.login-earnings-breakdown dt {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.login-earnings-breakdown dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fde68a;
}
.login-earnings-note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-chat-window {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(2, 6, 23, 0.45);
}
.admin-chat-uploads {
  padding-top: 0.25rem;
}
.admin-chat-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.75rem;
}
.admin-chat-upload-card {
  margin: 0;
  min-width: 0;
}
.admin-chat-upload-media {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(15, 23, 42, 0.9);
}
.admin-chat-upload-photo {
  display: block;
  width: 100%;
  height: 6.5rem;
  object-fit: cover;
}
.admin-chat-upload-file {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.5rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(251, 191, 36, 0.4);
  background: rgba(15, 23, 42, 0.75);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
.admin-chat-upload-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: #94a3b8;
}
.admin-chat-bubble {
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
}
.admin-chat-bubble-in {
  align-self: flex-start;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(51, 65, 85, 0.8);
}
.admin-chat-bubble-out {
  align-self: flex-end;
  color: #0f172a;
  background: linear-gradient(90deg, #fbbf24, #fcd34d);
}

.admin-account-update-form {
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
}
.admin-account-update-grid {
  display: grid;
  gap: 0.75rem;
  align-items: end;
}
@media (min-width: 768px) {
  .admin-account-update-grid {
    grid-template-columns: 1fr 1fr auto;
  }
}
.admin-user-card {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.5rem;
}

/* Left rail: social + AI assistant */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-left-rail {
  position: fixed;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9500;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.site-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem;
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.24);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.55);
}
.site-social-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: #cbd5e1;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.site-social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  flex-shrink: 0;
}
.site-social-link:hover {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.14);
  transform: translateX(2px);
}
.site-social-x:hover { color: #f8fafc; }
.site-social-instagram:hover { color: #f472b6; }
.site-social-facebook:hover { color: #60a5fa; }
.site-social-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.site-ai-chat-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 3.35rem;
  padding: 0.65rem 0.55rem;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.95));
  color: #f8fafc;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.55);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.site-ai-chat-toggle:hover {
  border-color: #38bdf8;
  transform: translateX(2px);
}
.site-ai-chat-toggle-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: linear-gradient(135deg, #38bdf8, #a78bfa);
}
.site-ai-chat-toggle-text {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-ai-chat-panel {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem 1rem 1rem 4.75rem;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(4px);
}
.site-ai-chat-panel[hidden] {
  display: none !important;
}
body.site-ai-chat-open {
  overflow: hidden;
}
.site-ai-chat-card {
  width: min(100%, 22rem);
  max-height: min(34rem, calc(100vh - 2rem));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.75);
  overflow: hidden;
}
.site-ai-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}
.site-ai-chat-eyebrow {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}
.site-ai-chat-title {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}
.site-ai-chat-close {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.site-ai-chat-close:hover { color: #fbbf24; }
.site-ai-chat-messages {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  min-height: 12rem;
}
.site-ai-chat-bubble {
  max-width: 92%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}
.site-ai-chat-bubble-assistant {
  align-self: flex-start;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(51, 65, 85, 0.75);
}
.site-ai-chat-bubble-user {
  align-self: flex-end;
  color: #0f172a;
  background: linear-gradient(90deg, #fbbf24, #fcd34d);
}
.site-ai-chat-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid rgba(56, 189, 248, 0.18);
}
.site-ai-chat-form .form-control {
  min-width: 0;
  flex: 1;
  font-size: 0.8125rem;
}
@media (max-width: 640px) {
  .site-left-rail {
    left: 0.45rem;
    top: auto;
    bottom: 1rem;
    transform: none;
  }
  .site-social-label { display: none; }
  .site-social-link {
    justify-content: center;
    padding: 0.5rem;
  }
  .site-ai-chat-panel {
    padding: 0.75rem;
    align-items: stretch;
  }
  .site-ai-chat-card {
    width: 100%;
    max-height: calc(100vh - 1.5rem);
  }
}
@media (min-width: 1024px) {
  body:has(.admin-shell) .site-left-rail,
  body:has(.user-shell) .site-left-rail {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}

/* Mobile-friendly admin & user app shells */
.app-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1180;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(3px);
}
.app-sidebar-backdrop.is-visible {
  display: block;
}
body.app-sidebar-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .user-page-frame,
  .admin-page-frame {
    padding: 0.65rem 0.75rem 1.5rem;
  }
  .user-dash-frame,
  .admin-dash-frame {
    padding: 0.65rem;
  }
  .dash-app-container {
    padding: 0.85rem;
    border-radius: 1.15rem;
  }
  .user-page-inner,
  .admin-page-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .user-topbar-actions,
  .admin-topbar-actions {
    position: sticky;
    top: 0;
    z-index: 110;
    padding: 0.55rem 0;
    margin: 0 0 0.75rem;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  }
  .user-sidebar-toggle,
  .admin-sidebar-toggle {
    min-height: 2.75rem;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
  }

  .dash-hero {
    padding: 1rem;
  }
  .dash-hero-title {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
    line-height: 1.2;
  }
  .dash-hero-meta {
    font-size: 0.78rem;
    line-height: 1.55;
    word-break: break-word;
  }
  .dash-referral-link-row a {
    word-break: break-all;
  }
  .dash-inline-copy {
    margin-top: 0.35rem;
  }
  .dash-hero-layout {
    gap: 1rem;
  }
  .dash-hero-details {
    max-width: none;
    justify-self: stretch;
  }
  .dash-hero-details .dash-user-top-meta,
  .dash-hero-details .dash-profile-name,
  .dash-hero-details .dash-profile-country,
  .dash-hero-details .dash-stat-note,
  .dash-hero-details .dash-live-balance,
  .dash-hero-details .dash-live-balance-amount-wrap,
  .dash-hero-details .dash-live-balance-value,
  .dash-hero-details .dash-live-balance-hour,
  .dash-hero-details .dash-email-statement-note,
  .dash-hero-details .dash-profile-codes,
  .dash-hero-details .dash-profile-refcode {
    text-align: left;
  }
  .dash-hero-details .dash-live-balance-head {
    justify-content: flex-start;
  }
  .dash-hero-details .dash-profile-refcode {
    align-items: flex-start;
  }
  .dash-hero-details .dash-balance-amount {
    text-align: left;
  }
  .dash-hero-details .dash-live-balance-split > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .dash-panel {
    padding: 0.9rem;
  }
  .admin-account-update-grid {
    grid-template-columns: 1fr;
  }
  .admin-account-update-grid .btn,
  .transfer-order-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .transfer-order-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .transfer-order-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .user-sidebar-link,
  .user-shortcut-item,
  .admin-sidebar-link,
  .admin-shortcut-item {
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
  }

  .table-wrap,
  .data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .data-table {
    min-width: 36rem;
  }

  #dashCalc .calc-widget-side {
    width: 100%;
    margin-left: 0;
  }

  #dash-balance,
  #dash-investment,
  #dashCalc,
  #dash-referrals,
  #dash-cycle,
  #dash-codes,
  #dash-notifications,
  #dash-activity,
  #dashBankTransfer {
    scroll-margin-top: 4.5rem;
  }

  .form-control,
  select.form-control,
  textarea.form-control,
  .admin-sidebar-lookup-input {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  body:has(.user-shell) .site-header .header-inner,
  body:has(.admin-shell) .site-header .header-inner {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.5rem 0;
  }
  body:has(.user-shell) .header-profile-photo-wrap,
  body:has(.admin-shell) .header-profile-photo-wrap {
    width: 56px;
    height: 56px;
  }
  body:has(.user-shell) .brand-tagline,
  body:has(.admin-shell) .brand-tagline {
    display: none;
  }
  body:has(.user-shell) .main-nav,
  body:has(.admin-shell) .main-nav {
    display: none !important;
  }
  body:has(.user-shell) .header-actions .btn-sm,
  body:has(.admin-shell) .header-actions .btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
  .admin-user-card .admin-account-update-grid {
    grid-template-columns: 1fr;
  }
  .flex.flex-wrap.justify-between {
    flex-direction: column;
    align-items: flex-start !important;
  }
}
