/* ============================================================
   NOVA DIGITAL — PREMIUM DESIGN SYSTEM
   Dark luxury base + glassmorphism accents
   ============================================================ */

:root {
  /* base surfaces */
  --void: #080b14;
  --bg: #0a0e1a;
  --bg-2: #0d1220;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --surface-solid: #11162a;
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --text: #f3f1ea;
  --text-muted: #a3a9bf;
  --text-soft: #6b7294;

  /* gold accent — the one bold signature */
  --gold: #0877f5;
  --gold-bright: #16d8f2;
  --gold-deep: #0754d8;
  --gold-soft-bg: rgba(8, 119, 245, 0.10);

  /* electric blue — secondary */
  --blue: #5b8def;
  --blue-bright: #8ab4ff;
  --blue-deep: #2f4ed4;
  --blue-soft-bg: rgba(91, 141, 239, 0.12);

  /* status */
  --green: #4ade80;
  --green-soft-bg: rgba(74, 222, 128, 0.12);
  --orange: #f0a855;
  --orange-soft-bg: rgba(240, 168, 85, 0.12);
  --violet: #a78bfa;
  --violet-soft-bg: rgba(167, 139, 250, 0.12);
  --red: #f87171;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-card: 0 1px 1px rgba(0, 0, 0, 0.3), 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 10px 30px -8px rgba(8, 119, 245, 0.28);
  --shadow-blue: 0 10px 30px -8px rgba(91, 141, 239, 0.4);

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100%;
}

/* subtle ambient glow across whole site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(91, 141, 239, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 110% 10%, rgba(233, 200, 121, 0.10), transparent 60%),
    radial-gradient(ellipse 800px 500px at 50% 120%, rgba(91, 141, 239, 0.08), transparent 60%);
}
body > * { position: relative; z-index: 1; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.muted { color: var(--text-muted); }
.accent {
  background: linear-gradient(120deg, var(--gold), var(--gold-bright) 50%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  color: #1a1304;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(8, 119, 245, 0.32); transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--border-strong); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--surface); border-color: var(--gold); color: var(--gold-bright); }

.btn-light {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1304;
  width: 100%;
  justify-content: center;
}
.btn-block { width: 100%; justify-content: center; }

.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-soft-bg);
  color: var(--gold);
  font-size: 9px;
}
.arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ PILL ============ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold-soft-bg);
  border: 1px solid rgba(233, 200, 121, 0.25);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.pill-light { background: var(--surface); color: var(--blue-bright); border-color: var(--border); }

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1304;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 6px 16px -4px rgba(8, 119, 245, 0.32);
}
.brand-text {
  line-height: 1.05;
  font-size: 0.95rem;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.chev { opacity: 0.6; }

.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}
.theme-toggle:hover { background: var(--gold-soft-bg); color: var(--gold-bright); border-color: rgba(233, 200, 121, 0.3); }

/* ============ HERO ============ */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 0 34px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero art / laptop mock */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.laptop {
  width: 100%;
  max-width: 430px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
.laptop-screen {
  background: linear-gradient(160deg, #0d1220 0%, #141a30 55%, #1c2550 140%);
  border-radius: 18px 18px 4px 4px;
  aspect-ratio: 16/10.5;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(233, 200, 121, 0.18);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.laptop-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(233, 200, 121, 0.12), transparent 55%);
}
.laptop-logo { display: flex; align-items: center; gap: 13px; position: relative; }
.laptop-n {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1a1304;
  font-size: 1.25rem;
  font-family: var(--font-display);
  box-shadow: 0 8px 20px -4px rgba(8, 119, 245, 0.32);
}
.laptop-brand {
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.1;
  font-family: var(--font-display);
}
.laptop-tag {
  color: var(--gold-bright);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  position: relative;
  opacity: 0.85;
}
.laptop-base {
  height: 15px;
  background: linear-gradient(180deg, #2a2f42, #171a28);
  border-radius: 0 0 10px 10px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
}
.laptop-base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 70px;
  height: 6px;
  background: #0d1220;
  border-radius: 0 0 6px 6px;
}

.float-chip {
  position: absolute;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 15px;
  box-shadow: var(--shadow-card);
  padding: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  animation: floaty 5.5s ease-in-out infinite;
}
.chip-chart { top: 4%; left: 2%; animation-delay: 0s; }
.chip-cloud { top: 10%; right: 6%; animation-delay: 0.6s; }
.chip-bolt { bottom: 10%; right: -2%; animation-delay: 1.2s; }
.chip-code { bottom: 2%; left: 10%; animation-delay: 1.8s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}
@media (prefers-reduced-motion: reduce) {
  .float-chip { animation: none; }
}

/* ============ FEATURE STRIP ============ */
.feature-strip {
  max-width: 1280px;
  margin: 64px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  background: linear-gradient(165deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature h4 { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; }
.feature p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-blue { background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep)); box-shadow: 0 6px 16px -4px rgba(91,141,239,0.5); }
.icon-indigo { background: linear-gradient(135deg, #c4a7fb, var(--violet)); box-shadow: 0 6px 16px -4px rgba(167,139,250,0.5); }
.icon-navy { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); box-shadow: 0 6px 16px -4px rgba(233,200,121,0.5); color: #1a1304; }
.icon-navy svg path { stroke: #1a1304; }
.icon-green { background: linear-gradient(135deg, #86efac, #22c55e); box-shadow: 0 6px 16px -4px rgba(74,222,128,0.5); }

/* ============ SERVICES ============ */
.services { padding: 110px 0 20px; }
.services-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.services-head h2 { font-family: var(--font-display); font-size: 2.3rem; margin: 0 0 8px; font-weight: 600; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  background: linear-gradient(165deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: rgba(233, 200, 121, 0.3); }
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-blue-soft { background: var(--blue-soft-bg); }
.icon-indigo-soft { background: var(--gold-soft-bg); }
.icon-sky-soft { background: var(--blue-soft-bg); }
.icon-violet-soft { background: var(--violet-soft-bg); }
.icon-green-soft { background: var(--green-soft-bg); }
.icon-orange-soft { background: var(--orange-soft-bg); }
.service-card h4 { margin: 0 0 5px; font-size: 1.02rem; font-weight: 600; }
.service-card p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

/* ============ CTA BANNER ============ */
.cta-banner {
  max-width: 1280px;
  margin: 80px auto 70px;
  padding: 0 32px;
}
.cta-inner {
  background: linear-gradient(120deg, #11162a, #171f3d 45%, #1c2550);
  border: 1px solid rgba(233, 200, 121, 0.25);
  border-radius: var(--radius-lg);
  padding: 54px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(8, 119, 245, 0.18), transparent 55%);
}
.cta-inner h3 { margin: 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; position: relative; max-width: 460px; }
.cta-inner .btn { position: relative; }

.footer {
  text-align: center;
  padding: 32px;
  color: var(--text-soft);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-soft);
}

/* ============ RESPONSIVE: LANDING ============ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 290px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy h1 { font-size: 2.3rem; }
}
@media (max-width: 560px) {
  .nav-inner { padding: 14px 18px; }
  .hero { padding: 48px 18px 0; }
  .feature-strip, .service-grid { grid-template-columns: 1fr; padding-left: 18px; padding-right: 18px; }
  .services-inner { padding: 0 18px; }
  .cta-banner { padding: 0 18px; }
  .cta-inner { padding: 36px 26px; flex-direction: column; align-items: flex-start; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* =====================================================
   APP / DASHBOARD LAYOUT
===================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(13, 18, 32, 0.6);
  border-right: 1px solid var(--border-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.side-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.side-link:hover { background: var(--surface); color: var(--text); }
.side-link.active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1304;
  box-shadow: var(--shadow-gold);
  font-weight: 600;
}
.side-link.logout { margin-top: auto; color: var(--text-soft); }
.side-link.logout:hover { color: var(--red); background: var(--surface); }

.upgrade-card {
  margin-top: auto;
  background: linear-gradient(160deg, rgba(8,119,245,0.10), rgba(91,141,239,0.08));
  border: 1px solid rgba(8, 119, 245, 0.18);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  backdrop-filter: blur(16px);
}
.upgrade-crown { font-size: 1.35rem; margin-bottom: 7px; }
.upgrade-card h5 { margin: 0 0 5px; font-size: 0.94rem; font-family: var(--font-display); font-weight: 600; }
.upgrade-card p { margin: 0 0 14px; font-size: 0.79rem; color: var(--text-muted); line-height: 1.45; }

/* MAIN */
.main { padding: 26px 34px 56px; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.search-box {
  flex: 1;
  max-width: 430px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  border-radius: 13px;
  padding: 11px 17px;
  color: var(--text-soft);
}
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text);
  width: 100%;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--text-soft); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn .dot {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg-2);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 6px 13px 6px 6px;
  font-size: 0.88rem;
  font-weight: 500;
}
.avatar {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1304;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.page-head h1 { margin: 0 0 5px; font-size: 1.8rem; font-weight: 600; font-family: var(--font-display); }
.date-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  border-radius: 11px;
  padding: 10px 15px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
}

/* STAT CARDS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: linear-gradient(165deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.stat-card:hover { border-color: rgba(233, 200, 121, 0.25); transform: translateY(-2px); }
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
.stat-label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 7px; }
.stat-value { font-size: 1.6rem; font-weight: 700; margin-bottom: 7px; font-family: var(--font-display); }
.stat-change { font-size: 0.78rem; font-weight: 600; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* PANELS */
.panel {
  background: linear-gradient(165deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.panel h3 { margin: 0; font-size: 1.04rem; font-family: var(--font-display); font-weight: 600; }
.view-all { font-size: 0.85rem; font-weight: 600; color: var(--gold-bright); display: inline-flex; align-items: center; gap: 4px; }

.chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.seg-control {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  padding: 3px;
  gap: 2px;
}
.seg-control button {
  border: none;
  background: transparent;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.seg-control button.active { background: var(--gold-soft-bg); color: var(--gold-bright); }

.revenue-callout { margin-bottom: 4px; }
.revenue-callout .amount { font-size: 1.4rem; font-weight: 700; margin-right: 10px; font-family: var(--font-display); color: var(--gold-bright); }
.revenue-callout .date { color: var(--text-muted); font-size: 0.82rem; }
.revenue-chart { width: 100%; height: 150px; margin-top: 8px; }
.chart-labels { display: flex; justify-content: space-between; color: var(--text-soft); font-size: 0.74rem; margin-top: 4px; }

.donut-wrap { display: flex; justify-content: center; padding: 10px 0 18px; }
.donut { width: 140px; height: 140px; }
.legend { display: flex; flex-direction: column; gap: 11px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.legend li strong { margin-left: auto; color: var(--text); }
.dot-legend { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.bottom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
thead th {
  text-align: left;
  color: var(--text-soft);
  font-weight: 600;
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
tbody td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.02); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}
.badge-green { background: var(--green-soft-bg); color: var(--green); }
.badge-orange { background: var(--orange-soft-bg); color: var(--orange); }

.upsell-panel {
  background: linear-gradient(150deg, #171322, #1e1933 50%, #2a2150);
  border: 1px solid rgba(233, 200, 121, 0.3);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.upsell-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(233, 200, 121, 0.25), transparent 55%);
}
.upsell-crown { font-size: 1.7rem; margin-bottom: 11px; position: relative; }
.upsell-panel h3 { color: #fff; margin: 0 0 9px; position: relative; }
.upsell-panel p { color: rgba(255,255,255,0.72); font-size: 0.85rem; margin: 0 0 20px; line-height: 1.55; position: relative; }
.upsell-panel .btn { position: relative; }

.empty-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.view.hidden { display: none; }

/* ============ RESPONSIVE: APP ============ */
@media (max-width: 1100px) {
  .chart-grid, .bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(0,0,0,0.5); }
  .main { padding: 20px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .search-box { max-width: none; }
  .user-chip span { display: none; }
  .topbar { flex-wrap: wrap; }
}


/* ============================================================
   NOVA DIGITAL BRAND UPDATE
   Logo: supplied cyan/blue wordmark
   Admin: white + blue + cyan palette (no gold accents)
   ============================================================ */
.brand-logo {
  display: block;
  width: 154px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}
.sidebar .brand-logo {
  width: 176px;
  max-width: 100%;
  height: 58px;
}
.brand { gap: 0; }
.brand-mark { display: none; }

/* Admin workspace switches to a bright white/blue appearance. */
body:has(.app-shell) {
  --void: #f4f8ff;
  --bg: #f4f8ff;
  --bg-2: #eaf2ff;
  --surface: rgba(255,255,255,.82);
  --surface-strong: rgba(255,255,255,.98);
  --surface-solid: #ffffff;
  --border: rgba(20,91,190,.13);
  --border-soft: rgba(20,91,190,.09);
  --border-strong: rgba(20,91,190,.22);
  --text: #10244b;
  --text-muted: #526887;
  --text-soft: #7c8eaa;
  --gold: #0877f5;
  --gold-bright: #12c9ed;
  --gold-deep: #0754d8;
  --gold-soft-bg: rgba(8,119,245,.10);
  --blue: #0877f5;
  --blue-bright: #16c9ed;
  --blue-deep: #0754d8;
  --blue-soft-bg: rgba(8,119,245,.10);
  --shadow-gold: 0 10px 30px -8px rgba(8,119,245,.25);
  color-scheme: light;
  background: #f4f8ff;
  color: #10244b;
}
body:has(.app-shell)::before {
  background:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(8,119,245,.12), transparent 60%),
    radial-gradient(ellipse 700px 500px at 110% 10%, rgba(18,201,237,.12), transparent 60%),
    radial-gradient(ellipse 800px 500px at 50% 120%, rgba(8,119,245,.07), transparent 60%);
}
.app-shell { background: transparent; }
.app-shell .sidebar {
  background: rgba(255,255,255,.94);
  border-right: 1px solid #e2ebf8;
  box-shadow: 8px 0 30px rgba(29,85,160,.035);
}
.app-shell .main { color: #10244b; }
.app-shell .side-link { color: #526887; }
.app-shell .side-link:hover,
.app-shell .side-link.active {
  color: #075edc;
  background: linear-gradient(100deg,#e7f1ff,#f0f8ff);
}
.app-shell .side-link.active { border: 1px solid #d6e8ff; }
.app-shell .panel,
.app-shell .stat-card {
  background: linear-gradient(165deg,rgba(255,255,255,.99),rgba(248,251,255,.96));
  border: 1px solid #e1eaf7;
  box-shadow: 0 9px 28px rgba(28,82,155,.075);
  backdrop-filter: blur(16px);
}
.app-shell .panel h1,
.app-shell .panel h2,
.app-shell .panel h3,
.app-shell .stat-value,
.app-shell .stat-label,
.app-shell .page-head h1 { color: #10244b; }
.app-shell .muted,
.app-shell .stat-label,
.app-shell .page-head p { color: #627895; }
.app-shell .search-box,
.app-shell .user-chip,
.app-shell .date-range,
.app-shell .seg-control {
  color: #314866;
  background: #fff;
  border-color: #dfe9f7;
  box-shadow: 0 4px 14px rgba(28,82,155,.045);
}
.app-shell .upgrade-card,
.app-shell .upsell-panel {
  background: linear-gradient(145deg,#eef6ff,#e5f2ff 55%,#f7fcff);
  border: 1px solid #cfe4ff;
  color: #102d5c;
}
.app-shell .upgrade-card p,
.app-shell .upsell-panel p { color: #526f95; }
.app-shell .btn-primary,
.app-shell .btn-light {
  background: linear-gradient(120deg,#13c9ed 0%,#0877f5 58%,#0754d8 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 9px 24px rgba(8,119,245,.24);
}
.app-shell .btn-primary:hover,
.app-shell .btn-light:hover { box-shadow: 0 12px 30px rgba(8,119,245,.30); }
.app-shell .btn-outline:hover { border-color: #0877f5; color: #0754d8; }
.app-shell .stat-icon,
.app-shell .icon-blue,
.app-shell .icon-blue-soft {
  background: linear-gradient(135deg,#dff7ff,#e5efff);
  color: #0877f5;
}
.app-shell .badge,
.app-shell .pill-light { background: #e9f3ff; color: #075edc; }
.app-shell .chart-grid line,
.app-shell .chart-grid path { stroke: #e4edf9; }
.app-shell .table-wrap th { color: #617895; }
.app-shell .table-wrap td { color: #263e5f; border-color: #e8eff8; }
.app-shell .side-nav,
.app-shell .topbar { color: #10244b; }
.app-shell .icon-btn { color: #526887; border-color: #dfe9f7; }
@media (max-width: 900px) {
  .brand-logo { width: 132px; height: 46px; }
  .sidebar .brand-logo { width: 145px; }
}


/* FINAL LOGO REPLACEMENT — use the supplied Nova Digital mark everywhere */
.laptop-logo-updated {
  width: min(78%, 250px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
}
.laptop-logo-updated img {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
}
.laptop-screen .laptop-tag { display: none !important; }
.laptop-screen .laptop-n { display: none !important; }
.laptop-screen .laptop-brand { display: none !important; }
.laptop-n {
  background: linear-gradient(135deg,#10dff0,#0878ff 58%,#0753df) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(8,119,245,.3) !important;
}
.brand-logo {
  object-fit: contain;
  object-position: left center;
}


/* GLOBAL TYPOGRAPHY LOCK — match the supplied Nova Digital dashboard reference */
:root {
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
html, body, body * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-synthesis: none;
}
button, input, select, textarea {
  font: inherit;
}
h1, h2, h3, h4, h5, h6,
.page-title, .section-title, .metric-value, .brand-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  letter-spacing: -0.025em;
}


/* ============ GLOBAL LIGHT / DARK THEME SWITCH ============ */
:root {
  color-scheme: dark;
  --void:#080b14;
  --bg:#0a0e1a;
  --bg-2:#0d1220;
  --surface:rgba(255,255,255,.035);
  --surface-strong:rgba(255,255,255,.06);
  --surface-solid:#111a2d;
  --border:rgba(255,255,255,.10);
  --border-soft:rgba(255,255,255,.07);
  --border-strong:rgba(255,255,255,.16);
  --text:#f3f7ff;
  --text-muted:#aab8cf;
  --text-soft:#8292ad;
  --gold:#0877f5;
  --gold-bright:#16d8f2;
  --gold-deep:#0754d8;
  --gold-soft-bg:rgba(8,119,245,.14);
  --shadow-card:0 1px 1px rgba(0,0,0,.22),0 18px 38px -20px rgba(0,0,0,.55);
}
html[data-theme="light"] {
  color-scheme:light;
  --void:#f7faff;
  --bg:#f4f8ff;
  --bg-2:#edf4ff;
  --surface:#ffffff;
  --surface-strong:#ffffff;
  --surface-solid:#ffffff;
  --border:#dce8f8;
  --border-soft:#e8eff9;
  --border-strong:#cbdcf3;
  --text:#10234b;
  --text-muted:#536887;
  --text-soft:#7e90aa;
  --gold:#0868f7;
  --gold-bright:#05bfe8;
  --gold-deep:#064fc8;
  --gold-soft-bg:rgba(8,104,247,.09);
  --blue:#386dff;
  --blue-bright:#6ca7ff;
  --blue-deep:#1852c9;
  --blue-soft-bg:rgba(56,109,255,.10);
  --green:#08ad79;
  --green-soft-bg:rgba(8,173,121,.10);
  --orange:#e99a25;
  --orange-soft-bg:rgba(233,154,37,.12);
  --violet:#805cff;
  --violet-soft-bg:rgba(128,92,255,.10);
  --red:#e44f62;
  --shadow-card:0 2px 4px rgba(29,79,145,.035),0 12px 28px -18px rgba(35,89,160,.20);
}
html[data-theme="light"] body {
  background:var(--bg);
  color:var(--text);
}
html[data-theme="light"] .sidebar,
html[data-theme="light"] .topbar,
html[data-theme="light"] .panel,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .metric-card,
html[data-theme="light"] .profile-panel,
html[data-theme="light"] .card,
html[data-theme="light"] .search-box,
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea {
  background:#fff;
  color:var(--text);
  border-color:var(--border);
}
html[data-theme="light"] .muted,
html[data-theme="light"] .panel-sub,
html[data-theme="light"] .field label,
html[data-theme="light"] .profile-hero p {
  color:var(--text-muted);
}
html[data-theme="light"] .side-link { color:#34496c; }
html[data-theme="light"] .side-link.active { background:#e8f1ff; color:#0868f7; }
html[data-theme="light"] .search-box input { color:#10234b; }
html[data-theme="light"] .table-wrap,
html[data-theme="light"] table { color:#10234b; }
html[data-theme="light"] th { background:#f0f5fd; color:#536887; }
html[data-theme="light"] td { border-color:#e7eef8; color:#263b5d; }
html[data-theme="light"] .upgrade-card { background:linear-gradient(145deg,#eaf3ff,#d9ebff); color:#10234b; }
html[data-theme="light"] .profile-photo { color:#fff; }
html[data-theme="light"] .form-note { color:#7e90aa; }

.nd-theme-toggle {
  width:64px;height:36px;flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:space-between;
  gap:4px;padding:4px 5px;border-radius:22px;
  border:1px solid var(--border-strong);
  background:var(--surface-strong);color:var(--text-muted);
  box-shadow:0 3px 12px rgba(20,70,140,.08);
  cursor:pointer;transition:background .2s,border-color .2s,transform .2s;
}
.nd-theme-toggle:hover{transform:translateY(-1px);border-color:var(--gold)}
.nd-theme-toggle span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-size:15px;line-height:1}
.nd-theme-toggle .nd-sun{color:#f4a51c}
.nd-theme-toggle .nd-moon{color:#fff;background:#102b57}
html[data-theme="light"] .nd-theme-toggle{background:#f4f8ff;border-color:#d4e2f5}
html[data-theme="light"] .nd-theme-toggle .nd-sun{background:#0877f5;color:#fff}
html[data-theme="light"] .nd-theme-toggle .nd-moon{background:transparent;color:#536887}
.nav-actions .nd-theme-toggle{margin-right:4px}
.topbar-actions .nd-theme-toggle{margin-right:8px}
@media(max-width:700px){
 .nd-theme-toggle{width:58px;height:33px}
 .nd-theme-toggle span{width:23px;height:23px;font-size:13px}
}
