:root {
  --bg: #090d16;
  --bg-glow:
    radial-gradient(ellipse 52% 48% at 22% 45%, rgba(59, 130, 246, 0.18), transparent 68%),
    radial-gradient(ellipse 46% 44% at 78% 52%, rgba(234, 88, 12, 0.14), transparent 68%);
  --sidebar-bg: rgba(11, 16, 28, 0.86);
  --surface: rgba(255, 255, 255, 0.038);
  --surface-2: rgba(255, 255, 255, 0.025);
  --surface-elevated: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --input-bg: rgba(9, 13, 22, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --inset-light: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --card-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --muted: #94a3b8;
  --gold: #3b82f6;
  --gold-soft: rgba(59, 130, 246, 0.14);
  --gold-border: rgba(59, 130, 246, 0.36);
  --accent: #4f86f7;
  --accent-warm: #fb923c;
  --btn-primary-bg: linear-gradient(180deg, #528bff 0%, #3b74f6 100%);
  --btn-primary-hover: linear-gradient(180deg, #6096ff 0%, #467ef7 100%);
  --btn-primary-text: #ffffff;
  --btn-primary-shadow: 0 6px 20px -4px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --emerald-bg: rgba(16, 185, 129, 0.14);
  --emerald-text: #34d399;
  --rose-bg: rgba(244, 63, 94, 0.14);
  --rose-text: #fb7185;
  --amber-bg: rgba(251, 146, 60, 0.15);
  --amber-text: #fdba74;
  --slate-bg: rgba(255, 255, 255, 0.06);
  --slate-text: #94a3b8;
  --row-border: rgba(255, 255, 255, 0.06);
  --topbar-bg: rgba(9, 13, 22, 0.72);
  --active-nav-bg: rgba(79, 134, 247, 0.14);
  --sidebar-w: 244px;
  --sidebar-collapsed-w: 66px;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-glow:
    radial-gradient(ellipse 48% 42% at 18% 20%, rgba(59, 130, 246, 0.08), transparent 65%),
    radial-gradient(ellipse 42% 38% at 82% 28%, rgba(251, 146, 60, 0.07), transparent 65%);
  --sidebar-bg: rgba(255, 255, 255, 0.92);
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-elevated: #f1f5f9;
  --surface-hover: #f1f5f9;
  --input-bg: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --inset-light: none;
  --card-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --text-soft: #334155;
  --text-muted: #64748b;
  --muted: #64748b;
  --gold: #2563eb;
  --gold-soft: #eff6ff;
  --gold-border: #bfdbfe;
  --accent: #2563eb;
  --accent-warm: #ea580c;
  --btn-primary-bg: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  --btn-primary-hover: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  --btn-primary-text: #ffffff;
  --btn-primary-shadow: 0 4px 14px -4px rgba(37, 99, 235, 0.45);
  --emerald-bg: #ecfdf5;
  --emerald-text: #047857;
  --rose-bg: #fef2f2;
  --rose-text: #dc2626;
  --amber-bg: #fff7ed;
  --amber-text: #c2410c;
  --slate-bg: #f1f5f9;
  --slate-text: #475569;
  --row-border: #f1f5f9;
  --topbar-bg: rgba(255, 255, 255, 0.85);
  --active-nav-bg: #eff6ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg-glow), var(--bg);
  background-attachment: fixed;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--slate-bg);
  color: var(--text-soft);
  border: 1px solid var(--border);
}

.hidden { display: none !important; }

/* ============================================================================
   LOGIN — UI UX PRO MAX GLASSMORPHISM HERO + INTERACTIVE CURSOR GLOW
   ============================================================================ */
.auth-page {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  padding: 22px 24px 36px;
  background:
    radial-gradient(620px circle at var(--mx, 30%) var(--my, 42%), rgba(59, 130, 246, 0.22), transparent 62%),
    radial-gradient(540px circle at 76% 56%, rgba(234, 88, 12, 0.16), transparent 64%),
    #090d16;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-glass-nav {
  width: min(1040px, 100%);
  height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.auth-nav-pills {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: #94a3b8;
}

.auth-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.34);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: #93c5fd;
}

.auth-hero-center {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  margin: auto 0;
}

.auth-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 11.5px;
  color: #cbd5e1;
}

.auth-gradient-title {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  background: linear-gradient(90deg, #4f86f7 0%, #6d8cff 48%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-white-sub {
  margin: -6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.auth-hero-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 500px;
}

.auth-cmd-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: #cbd5e1;
}

.auth-cmd-pill span {
  color: #fb923c;
  font-weight: 700;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  justify-self: end;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.auth-card .auth-switch-btn.active {
  background: rgba(59, 130, 246, 0.22);
  color: #ffffff;
}

.auth-card .ghost-button {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.auth-card .field span {
  color: #cbd5e1;
}

.auth-card .field input {
  background: rgba(9, 13, 22, 0.8);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

.auth-card .auth-switch {
  background: rgba(9, 13, 22, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
}

.auth-brand-simple {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 18px;
}

.auth-title-simple {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.auth-sub-simple {
  margin: 0;
  font-size: 12.5px;
  color: #94a3b8;
}

.auth-metrics-strip {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.auth-metric-tile {
  padding: 16px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.auth-metric-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 134, 247, 0.45);
}

.auth-metric-tile strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 700;
  color: #60a5fa;
}

.auth-metric-tile span {
  font-size: 11.5px;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .auth-hero-center {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .auth-card {
    justify-self: center;
  }
  .auth-metrics-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .auth-nav-pills {
    display: none;
  }
}

@media (max-width: 520px) {
  .auth-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.auth-brand-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 22px;
}

.auth-title-simple {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.auth-switch-btn {
  height: 33px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-switch-btn.active {
  background: var(--surface-elevated);
  color: var(--text);
  box-shadow: var(--inset-light), 0 1px 3px rgba(0, 0, 0, 0.25);
}

.auth-form { display: flex; flex-direction: column; gap: 13px; }
.demo-hint { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }

/* ============================================================================
   LAYOUT & SIDEBAR
   ============================================================================ */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  transition: width 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.2s ease;
  z-index: 120;
}

.sidebar.collapsed { width: var(--sidebar-collapsed-w); }
.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .side-label,
.sidebar.collapsed .role-chip { display: none; }
.sidebar.collapsed .sidebar-head { justify-content: center; padding: 0 8px; }
.sidebar.collapsed .sidebar-toggle-btn svg { transform: rotate(180deg); }
.sidebar.collapsed .side-link { justify-content: center; padding: 0; }
.sidebar.collapsed .side-link.active::before { display: none; }

.sidebar-head {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #e7c97f 0%, #b88f3d 100%);
  color: #0b0b0d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(216, 181, 108, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-title { display: block; font-weight: 700; font-size: 14px; letter-spacing: -0.02em; white-space: nowrap; }

.sidebar-toggle-btn {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.14s;
}
.sidebar-toggle-btn:hover { background: var(--surface-hover); border-color: var(--border); color: var(--text); }
.sidebar-toggle-btn svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s; }

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}

.side-link {
  position: relative;
  height: 38px;
  width: 100%;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}

.side-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-link:hover { background: var(--surface-hover); color: var(--text); }

.side-link.active {
  background: var(--active-nav-bg);
  border-color: var(--border);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--inset-light);
}

.side-link.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 9px;
  bottom: 9px;
  width: 2.5px;
  border-radius: 0 3px 3px 0;
  background: var(--gold);
}

.side-link.active svg { color: var(--gold); }

.side-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.role-chip {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.68); backdrop-filter: blur(2px); z-index: 110; }

/* ============================================================================
   TOPBAR & CONTENT AREA
   ============================================================================ */
.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.content-topbar {
  position: sticky; top: 0; height: 58px; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 10px; }
.page-title-bar { font-size: 14px; font-weight: 700; letter-spacing: -0.015em; color: var(--text); }

.hamburger-btn {
  display: none; width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); place-items: center; cursor: pointer;
}
.hamburger-btn svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--inset-light);
  transition: all 0.14s;
}
.theme-toggle-btn:hover { background: var(--surface-hover); border-color: var(--border-strong); color: var(--text); }
.theme-toggle-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }

.topbar-user-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text-soft);
  box-shadow: var(--inset-light);
}
.topbar-user-pill.is-admin {
  border-color: var(--gold-border);
  background: linear-gradient(180deg, rgba(216, 181, 108, 0.08), var(--surface));
}
.topbar-user-stack { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.topbar-user-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.topbar-db-row { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.crown-icon { display: inline-flex; align-items: center; color: var(--gold); filter: drop-shadow(0 0 6px rgba(216, 181, 108, 0.45)); }
.crown-icon svg { width: 13px; height: 13px; fill: currentColor; }
.topbar-user-name { max-width: 135px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-role-tag {
  padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--emerald-bg); color: var(--emerald-text);
}
.topbar-role-tag.is-admin { background: var(--gold-soft); color: var(--gold); }
.topbar-role-tag.is-pending { background: var(--slate-bg); color: var(--slate-text); }

.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.status-dot.scanning { background: var(--gold); box-shadow: 0 0 8px rgba(216, 181, 108, 0.7); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.content-body {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 24px 28px 60px;
}

/* ============================================================================
   HEADERS, EXECUTIVE METRIC STRIP, PANELS
   ============================================================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}
.eyebrow { margin: 0 0 3px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.hero-desc { margin: 0; color: var(--muted); font-size: 13px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--inset-light), var(--card-shadow);
  overflow: hidden;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card:last-child { border-right: 0; }
.stat-card.stat-highlight {
  background: linear-gradient(180deg, rgba(216, 181, 108, 0.06), transparent);
}
.stat-label { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; }
.stat-card strong {
  font-size: 26px; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.stat-card.stat-highlight strong { color: var(--gold); }
.stat-meta { color: var(--muted); font-size: 11.5px; }

.pool-pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-stat {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); box-shadow: var(--inset-light);
  display: flex; align-items: baseline; gap: 8px;
}
.mini-stat span { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.mini-stat strong { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

.panel-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--inset-light), var(--card-shadow);
}
.take-panel { margin-bottom: 16px; }
.card-title { margin: 0 0 11px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.field-hint { margin: 0 0 12px; font-size: 12px; color: var(--muted); }

/* ============================================================================
   FORMS & BUTTONS
   ============================================================================ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; font-weight: 600; color: var(--text-soft); }
.field input {
  height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--input-bg); color: var(--text);
  font: inherit; font-size: 13px; outline: none;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

.primary-button, .danger-button, .secondary-button, .ghost-button {
  font: inherit; font-weight: 600; border-radius: 8px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.14s ease;
}
.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.copy-btn-hero:active:not(:disabled) { transform: scale(0.985); }

.primary-button {
  height: 40px; padding: 0 16px; border: 0;
  background: var(--btn-primary-bg); color: var(--btn-primary-text);
  font-size: 13px; font-weight: 700; box-shadow: var(--btn-primary-shadow);
}
.primary-button:hover:not(:disabled) { background: var(--btn-primary-hover); }
.primary-button:disabled { opacity: 0.4; cursor: not-allowed; }
.compact-primary { height: 35px !important; padding: 0 13px !important; font-size: 12.5px !important; }

.secondary-button { height: 36px; padding: 0 13px; border: 1px solid var(--border-strong); background: var(--surface-elevated); color: var(--text); font-size: 12.5px; box-shadow: var(--inset-light); }
.secondary-button:hover { background: var(--surface-hover); border-color: var(--gold-border); }
.secondary-button.accent-outline { border-color: var(--gold-border); color: var(--gold); }

.ghost-button { height: 36px; padding: 0 12px; border: 1px solid var(--border); background: transparent; color: var(--text-soft); font-size: 12.5px; }
.ghost-button:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--border-strong); color: var(--text); }
.ghost-button:disabled { opacity: 0.35; cursor: not-allowed; }
.compact-ghost { height: 32px; padding: 0 11px; font-size: 12px; }

.danger-button { height: 36px; padding: 0 13px; border: 1px solid rgba(244, 63, 94, 0.32); background: var(--rose-bg); color: var(--rose-text); font-size: 12.5px; }
.danger-button:hover { background: rgba(244, 63, 94, 0.2); }
.danger-button.compact { height: 32px; padding: 0 11px; font-size: 12px; }

/* ============================================================================
   EXTENSIONS & PICKERS
   ============================================================================ */
.ext-section-head, .ext-picker-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.compact-search { max-width: 230px; height: 34px !important; }

.ext-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 10px;
}

.ext-card {
  padding: 13px 14px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-elevated); color: var(--text);
  box-shadow: var(--inset-light);
  cursor: pointer; transition: all 0.15s ease; text-align: left; font: inherit;
}
.ext-card:hover { border-color: var(--gold-border); background: var(--surface-hover); transform: translateY(-1px); }
.ext-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.ext-name { font-family: "JetBrains Mono", Consolas, monospace; font-size: 14px; font-weight: 600; color: var(--gold); }
.ext-badge-avail { font-size: 10px; color: var(--muted); font-weight: 500; }
.ext-card-total { display: block; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ext-card-sub { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }

.ext-chip-list {
  display: flex; flex-wrap: wrap; gap: 7px;
  max-height: 140px; overflow-y: auto; padding: 2px; margin-bottom: 14px;
}

.ext-chip {
  height: 32px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--input-bg); color: var(--text-soft);
  font: inherit; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  transition: all 0.14s;
}
.ext-chip:hover { border-color: var(--border-strong); color: var(--text); }
.ext-chip.active {
  background: var(--gold-soft); border-color: var(--gold-border);
  color: var(--gold); font-weight: 700;
}
.ext-chip-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ext-chip.active .ext-chip-count { color: var(--text); }

.selected-stock-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 8px;
  background: var(--input-bg); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted);
}
.selected-stock-bar strong { color: var(--text); }
.selected-stock-bar.low-stock { border-color: var(--gold-border); background: var(--amber-bg); color: var(--amber-text); }

.target-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }
.target-selector-with-manual { display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr; gap: 9px; margin-bottom: 14px; }
.target-btn {
  padding: 12px 10px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--input-bg); color: var(--text); cursor: pointer; text-align: center;
  transition: all 0.14s;
}
.target-btn strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.target-btn span { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.target-btn:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.target-btn.active { border-color: var(--gold-border); background: var(--gold-soft); color: var(--text); box-shadow: var(--inset-light); }
.target-btn.active strong { color: var(--gold); }

.manual-count-box {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--input-bg); display: flex; flex-direction: column; justify-content: center; gap: 3px;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.manual-count-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.manual-count-box span { font-size: 11px; color: var(--muted); font-weight: 600; }
.manual-count-box input {
  width: 100%; border: 0; outline: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.take-action-row { display: flex; gap: 9px; flex-wrap: wrap; }
.take-cta { flex: 1; min-width: 180px; height: 42px; font-size: 13px; letter-spacing: 0.02em; }

.checkbox-row { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; margin-bottom: 12px; }
.disclaimer-note { margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: var(--input-bg); border: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }

/* ============================================================================
   ALERTS, RESULT BOX 250PX, TABLES, PROGRESS, MODAL
   ============================================================================ */
.alert-banner { padding: 11px 15px; border-radius: 9px; margin-bottom: 16px; font-size: 12.5px; font-weight: 600; border: 1px solid transparent; }
.alert-banner.alert-success { background: var(--emerald-bg); color: var(--emerald-text); border-color: rgba(16, 185, 129, 0.28); }
.alert-banner.alert-warning { background: var(--amber-bg); color: var(--amber-text); border-color: var(--gold-border); }
.alert-banner.alert-error { background: var(--rose-bg); color: var(--rose-text); border-color: rgba(244, 63, 94, 0.28); }

.result-box-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-elevated); flex-wrap: wrap;
}
.result-box-title-group { display: flex; flex-direction: column; gap: 4px; }
.result-count-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table-label-strong { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.result-count-pill { padding: 2px 9px; border-radius: 5px; background: var(--gold-soft); color: var(--gold); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.session-pill { font-size: 11.5px; color: var(--muted); }

.copy-toolbar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.copy-btn-hero {
  height: 32px; padding: 0 13px; border: 0; border-radius: 7px;
  background: var(--btn-primary-bg); color: var(--btn-primary-text);
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  box-shadow: var(--btn-primary-shadow);
}
.copy-btn-hero:hover:not(:disabled) { background: var(--btn-primary-hover); }
.copy-btn-primary { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--btn-primary-bg); color: var(--btn-primary-text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.copy-btn { height: 32px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-soft); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: all 0.14s; }
.copy-btn:hover:not(:disabled) { border-color: var(--gold-border); color: var(--text); }
.copy-btn-hero:disabled, .copy-btn-primary:disabled, .copy-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.domain-box-wrap { padding: 12px 14px 14px; }
.domain-scroll-box {
  height: 250px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--input-bg); scrollbar-width: thin;
}
.domain-line-row {
  display: grid; grid-template-columns: 42px 1fr auto auto;
  align-items: center; gap: 8px; padding: 7px 12px;
  border-bottom: 1px solid var(--row-border);
  transition: background 0.1s;
}
.domain-line-row.simple-row { grid-template-columns: 42px 1fr auto; }
.domain-line-row:last-child { border-bottom: 0; }
.domain-line-row:hover { background: var(--surface-hover); }
.domain-line-num { color: var(--muted); opacity: 0.65; font-family: "JetBrains Mono", Consolas, monospace; font-size: 11.5px; text-align: right; padding-right: 4px; user-select: none; }
.domain-line-text { font-family: "JetBrains Mono", Consolas, monospace; font-size: 12.5px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-box-empty { height: 100%; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: 13px; }

.progress-card { margin-bottom: 16px; padding: 16px 18px; border: 1px solid var(--gold-border); border-radius: 12px; background: var(--surface); box-shadow: var(--inset-light); }
.progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.progress-title { display: block; font-size: 13.5px; font-weight: 700; }
.progress-sub { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.progress-numbers { text-align: right; font-variant-numeric: tabular-nums; }
.progress-numbers strong { display: block; font-size: 18px; line-height: 1; color: var(--gold); }
.progress-numbers span { font-size: 11.5px; color: var(--muted); }
.progress-track { width: 100%; height: 6px; border-radius: 999px; background: var(--input-bg); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #b88f3d, #e7c97f); transition: width 0.2s ease; }
.progress-foot { margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.search-box {
  flex: 1; min-width: 190px; height: 36px;
  display: flex; align-items: center; gap: 8px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--input-bg);
  transition: border-color 0.14s, box-shadow 0.14s;
}
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.search-box svg { width: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; flex-shrink: 0; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-size: 12.5px; }

.filter-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pill {
  height: 32px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px;
  background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.pill:hover { color: var(--text); background: var(--surface-hover); }
.pill.active { background: var(--gold-soft); border-color: var(--gold-border); color: var(--gold); }

.table-card { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--inset-light), var(--card-shadow); }
.table-meta-bar {
  height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  border-bottom: 1px solid var(--border); color: var(--muted); background: var(--surface-elevated);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.table-wrap { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.results-table th {
  text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 600;
  color: var(--muted); background: var(--input-bg); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.results-table td { padding: 9px 14px; border-bottom: 1px solid var(--row-border); vertical-align: middle; white-space: nowrap; color: var(--text-soft); }
.results-table tbody tr:hover { background: var(--surface-hover); }
.results-table tbody tr:last-child td { border-bottom: 0; }
.cell-num { color: var(--muted); opacity: 0.7; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cell-domain { font-weight: 600; color: var(--text); }
.cell-mono { font-family: "JetBrains Mono", Consolas, monospace; font-size: 12px; color: var(--muted); }

.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.badge-aktif { background: var(--emerald-bg); color: var(--emerald-text); }
.badge-potensial { background: var(--amber-bg); color: var(--amber-text); }
.badge-error { background: var(--rose-bg); color: var(--rose-text); }
.badge-unknown { background: var(--slate-bg); color: var(--slate-text); }

.pub-toggle { padding: 3px 9px; border-radius: 5px; border: 1px solid var(--border); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.pub-toggle.is-pub { background: var(--emerald-bg); color: var(--emerald-text); border-color: rgba(16, 185, 129, 0.28); }
.pub-toggle.is-hidden { background: var(--input-bg); color: var(--muted); }

.copy-mini {
  padding: 4px 10px; border: 1px solid var(--border-strong); border-radius: 6px;
  background: var(--surface-elevated); color: var(--text-soft); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all 0.14s;
}
.copy-mini:hover { background: var(--btn-primary-bg); border-color: transparent; color: var(--btn-primary-text); }

.empty-state { padding: 36px 16px !important; text-align: center; color: var(--muted); white-space: normal !important; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-top: 1px solid var(--border); background: var(--surface-elevated); font-size: 12px; color: var(--muted); }

.scanner-header-actions, .admin-top-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.admin-scanner-tools { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; margin-bottom: 16px; }
.upload-panel { margin-bottom: 16px; }
.upload-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.upload-form input[type="file"] {
  flex: 1; min-width: 190px; padding: 7px 10px;
  border: 1px dashed var(--border-strong); border-radius: 8px;
  background: var(--input-bg); color: var(--text-soft); font: inherit; font-size: 12px;
}
.select-input { height: 35px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--input-bg); color: var(--text); font: inherit; font-size: 12px; }
.publish-btn-row { display: flex; gap: 7px; flex-wrap: wrap; }

.settings-kv { display: flex; flex-direction: column; gap: 11px; }
.settings-kv > div { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
.settings-kv span { color: var(--muted); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; z-index: 160; }
.modal-card { width: min(680px, 100%); max-height: 82vh; display: flex; flex-direction: column; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-elevated); flex-wrap: wrap; }
.modal-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.modal-actions { display: flex; gap: 6px; }
.modal-body { overflow-y: auto; flex: 1; }

.toast {
  position: fixed; right: 18px; bottom: 18px; padding: 11px 16px; border-radius: 9px;
  background: var(--surface-elevated); color: var(--text); border: 1px solid var(--gold-border);
  font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateY(8px);
  pointer-events: none; transition: 0.18s ease; z-index: 220;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1020px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(1), .stat-card:nth-child(2) { border-bottom: 1px solid var(--border); }
  .admin-scanner-tools { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); width: var(--sidebar-w) !important; }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-toggle-btn { display: none; }
  .hamburger-btn { display: grid; }
  .content-topbar { padding: 0 14px; }
  .content-body { padding: 18px 14px 48px; }
}

@media (max-width: 640px) {
  .target-selector-with-manual { grid-template-columns: repeat(3, 1fr); }
  .manual-count-box { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .stat-card:last-child { border-bottom: 0; }
}


/* ============================================================================
   SEO SUITE (v4.0.0 — Quiet Luxury Obsidian & Champagne Gold)
   ============================================================================ */
.seo-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.seo-insight-tile {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seo-insight-tile.is-gold {
  border-color: var(--gold-border);
  background: var(--gold-soft);
}

.seo-insight-tile span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.seo-insight-tile strong {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.seo-insight-tile.is-gold strong {
  color: var(--accent);
}

.seo-insight-tile small {
  font-size: 11px;
  color: var(--text-muted);
}

.seo-filter-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

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

.seo-filter-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.seo-filter-title small {
  color: var(--text-muted);
  font-weight: 400;
}

.seo-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  align-items: end;
}

.seo-filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.seo-filter-field span {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.seo-filter-field input,
.seo-filter-field select {
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  font: 500 13px var(--font-sans);
}

.seo-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.seo-check-pill input {
  accent-color: var(--accent);
}

.seo-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.seo-tab-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 8px;
  font: 600 12.5px var(--font-sans);
  cursor: pointer;
  transition: all 0.16s ease;
}

.seo-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
}

.seo-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 12px;
  font: 500 13px/1.55 var(--font-mono);
  resize: vertical;
}

.seo-ext-links {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.seo-ext-links a {
  text-decoration: none;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.seo-ext-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ============================================================================
   ANIMASI LOADING QUIET-LUXURY (SHIMMER PROGRESS + GOLD SPINNER)
   ============================================================================ */
@keyframes gdSpin {
  to { transform: rotate(360deg); }
}

@keyframes gdShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes gdPulseDot {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 0.35; }
}

.gd-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gdSpin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 7px;
  flex-shrink: 0;
}

.progress-fill.is-animating {
  background: linear-gradient(
    90deg,
    #2563eb 0%,
    #60a5fa 45%,
    #2563eb 100%
  );
  background-size: 220% 100%;
  animation: gdShimmer 1.2s linear infinite;
}

.gd-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.gd-loading-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(37, 99, 235, 0.18);
  border-top-color: var(--accent);
  animation: gdSpin 0.7s linear infinite;
}

.gd-loading-bar {
  width: 180px;
  height: 4px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  overflow: hidden;
  position: relative;
}

.gd-loading-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #2563eb, #60a5fa, transparent);
  background-size: 200% 100%;
  animation: gdShimmer 1.05s linear infinite;
}


/* ============================================================================
   UI UX PRO MAX — POLISH TAMPILAN DALAM (EYE-FRIENDLY FROSTED GLASS)
   ============================================================================ */
:root .panel-card,
:root .stat-card,
:root .table-card,
:root .progress-card {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.085);
}

:root .sidebar {
  background: rgba(10, 15, 28, 0.88);
  backdrop-filter: blur(18px);
  border-right-color: rgba(255, 255, 255, 0.08);
}

:root .content-topbar {
  background: rgba(9, 13, 22, 0.76);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

:root .stat-card strong,
:root .seo-insight-tile strong {
  color: #60a5fa;
}

:root .stat-card.stat-highlight {
  border-color: rgba(79, 134, 247, 0.35);
  background: linear-gradient(155deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.68));
}

:root .brand-mark {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 60%, #fb923c 100%);
  color: #ffffff;
  border: 0;
  box-shadow: 0 4px 14px -4px rgba(59, 130, 246, 0.55);
}

:root .domain-scroll-box {
  background: rgba(9, 13, 22, 0.68);
  border-color: rgba(255, 255, 255, 0.08);
}

:root .results-table th {
  background: rgba(15, 23, 42, 0.92);
  color: #94a3b8;
}

:root .results-table td {
  color: #e2e8f0;
}

[data-theme="light"] .panel-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .table-card,
[data-theme="light"] .progress-card {
  background: #ffffff;
  backdrop-filter: none;
  border-color: #e2e8f0;
}

[data-theme="light"] .sidebar {
  background: #ffffff;
  border-right-color: #e2e8f0;
}

[data-theme="light"] .content-topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .stat-card strong,
[data-theme="light"] .seo-insight-tile strong {
  color: #2563eb;
}

[data-theme="light"] .domain-scroll-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .results-table th {
  background: #f8fafc;
  color: #475569;
}

[data-theme="light"] .results-table td {
  color: #0f172a;
}


/* ============================================================================
   CHROME HP / MOBILE BROWSER FRAME (ADMIN)
   ============================================================================ */
.mobile-browser-layout {
  display: grid;
  grid-template-columns: 392px minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}

.phone-mockup {
  width: 392px;
  max-width: 100%;
  border-radius: 34px;
  border: 6px solid #181a1f;
  background: #202124;
  overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 18px 6px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #e8eaed;
  background: #202124;
}

.phone-camera-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0b0c0e;
  box-shadow: inset 0 0 0 2px #2b2d30;
}

.phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e8eaed;
}

.phone-battery {
  font-size: 10.5px;
  font-weight: 600;
}

.phone-chrome-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 8px;
  background: #202124;
  border-bottom: 1px solid #303134;
}

.chrome-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #e8eaed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chrome-icon-btn:hover {
  background: #303134;
}

.chrome-omnibox {
  flex: 1;
  min-width: 0;
  height: 38px;
  border-radius: 999px;
  background: #303134;
  display: flex;
  align-items: center;
  padding: 0 6px 0 10px;
  gap: 7px;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.chrome-omnibox:focus-within {
  border-color: #8ab4f8;
  background: #35363a;
}

.chrome-g-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  color: #4285f4;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chrome-omnibox input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #e8eaed;
  font-size: 13px;
  outline: none;
}

.chrome-omnibox input::placeholder {
  color: #9aa0a6;
}

.chrome-go-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #4285f4;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chrome-go-btn:hover {
  background: #5c98f8;
}

.chrome-tab-square {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1.8px solid #e8eaed;
  background: transparent;
  color: #e8eaed;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chrome-tab-square:hover {
  background: #303134;
}

.phone-screen-tabs {
  display: flex;
  gap: 6px;
  padding: 6px 12px;
  background: #202124;
  border-bottom: 1px solid #303134;
}

.chrome-mode-pill {
  border: 1px solid #3c4043;
  background: #292a2d;
  color: #bdc1c6;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.chrome-mode-pill.active {
  background: #8ab4f8;
  color: #202124;
  border-color: #8ab4f8;
}

.phone-screen-body {
  height: 520px;
  overflow-y: auto;
  padding: 14px;
  background: #202124;
  color: #e8eaed;
  font-size: 13px;
  line-height: 1.5;
}

.phone-iframe {
  width: 100%;
  height: 520px;
  border: 0;
  background: #ffffff;
}

.phone-nav-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 40px;
  background: #171717;
  border-top: 1px solid #2b2c2f;
}

.phone-nav-btn {
  width: 48px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #9aa0a6;
  font-size: 15px;
  cursor: pointer;
  border-radius: 999px;
}

.phone-nav-btn:hover {
  background: #292a2d;
  color: #ffffff;
}

/* Chrome Android Home Screen & Google SERP inside HP */
.chrome-home-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 10px 20px;
  gap: 22px;
}

.chrome-google-wordmark {
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1.2px;
  user-select: none;
}

.chrome-home-search {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  background: #303134;
  border: 1px solid #3c4043;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  color: #9aa0a6;
}

.chrome-home-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #e8eaed;
  font-size: 14px;
  outline: none;
}

.chrome-shortcuts-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.chrome-shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #e8eaed;
  cursor: pointer;
  padding: 6px 2px;
  border-radius: 12px;
}

.chrome-shortcut-item:hover {
  background: #303134;
}

.chrome-shortcut-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #303134;
  color: #8ab4f8;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chrome-shortcut-label {
  font-size: 11px;
  color: #bdc1c6;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chrome-serp-card {
  padding: 12px 0;
  border-bottom: 1px solid #303134;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chrome-serp-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chrome-serp-favicon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #303134;
  color: #e8eaed;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chrome-serp-title {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  color: #8ab4f8;
  line-height: 1.35;
}

.chrome-serp-title:hover {
  text-decoration: underline;
}

.chrome-serp-snippet {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #bdc1c6;
  line-height: 1.48;
}

@media (max-width: 920px) {
  .mobile-browser-layout {
    grid-template-columns: 1fr;
  }
  .phone-mockup {
    margin: 0 auto;
  }
}
