:root {
  --panel-bg-primary: #030303;
  --panel-bg-secondary: #0a0a0a;
  --panel-bg-sidebar: #080808;
  --panel-surface: rgba(255, 255, 255, 0.03);
  --panel-surface-hover: rgba(255, 255, 255, 0.055);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-cyan: #00e5ff;
  --panel-purple: #7000ff;
  --panel-green: #39ff14;
  --panel-amber: #ffb800;
  --panel-rose: #f43f5e;
  --panel-text: #f0f0f0;
  --panel-text-muted: #6b7280;
  --panel-text-soft: #a1a1aa;
  --panel-sidebar-w: 312px;
  --panel-font-display: "Manrope", sans-serif;
  --panel-font-body: "Inter", sans-serif;
  --panel-font-mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  min-height: 100%;
  background: var(--panel-bg-primary);
  color: var(--panel-text);
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--panel-bg-primary);
  color: var(--panel-text);
  font-family: var(--panel-font-display), var(--panel-font-body);
}

.sidebar {
  width: var(--panel-sidebar-w);
/*   background:
    linear-gradient(180deg, rgba(12, 23, 42, .96), rgba(5, 10, 22, .98) 48%, rgba(4, 7, 16, 1)),
    var(--panel-bg-sidebar); */
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 200;
  border-right: 1px solid rgba(0, 229, 255, .24);
  box-shadow: 1px 0 0 rgba(112, 0, 255, .25), 14px 0 32px rgba(0, 0, 0, .3);

  background: radial-gradient(circle at 90% 72%, rgba(49, 38, 232, 0.25), transparent 36%), linear-gradient(120deg, rgba(10, 23, 38, 0.97), rgba(12, 13, 32, 0.98));
overflow: hidden;
}

.sidebar::after
 {
    content: "";
    position: absolute;
    right: -30%;
    top: -18px;
    width: 80%;
    height: 100px;
    opacity: 0.32;
    transform: skewX(-300deg);
    pointer-events: none;
    background: repeating-linear-gradient(-300deg, transparent 0px, transparent 5px, rgba(64, 93, 255, 0.48) 6px, transparent 7px);
}



.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  /* min-height: 128px;
  padding: 30px 34px 26px; */
  min-height: 83px;
  padding: 10px 20px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand img {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  object-fit: contain;
}

.sidebar-brand-name {
  display: block;
  color: #fff;
  font-family: var(--panel-font-display);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.sidebar-brand-name span {
  color: var(--panel-cyan);
}

.sidebar-brand-sub {
  display: block;
/*   margin-top: 5px; */
  color: var(--panel-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  overflow-y: auto;
}

.nav-section-label {
  display: block;
  position: relative;
  margin-top: 8px;
  padding: 15px 10px 7px 16px;
  color: var(--panel-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-section-label::before {
  position: absolute;
  left: 0;
  top: 14px;
  width: 2px;
  height: 22px;
  border-radius: 4px;
  background: var(--panel-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, .65);
  content: "";
}

.main-content {
  margin-left: var(--panel-sidebar-w);
  min-height: 100vh;
  width: calc(100% - var(--panel-sidebar-w));
}

.top-bar {
  min-height: 72px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(3, 3, 3, 0.75);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 34px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-progress-line {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 1px;
  background: linear-gradient(90deg, var(--panel-cyan) 0%, var(--panel-purple) 50%, var(--panel-rose) 100%);
}

.top-bar-left h1 {
  margin: 0;
  color: var(--panel-text);
  font-family: var(--panel-font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.top-bar-left p {
  margin: 3px 0 0;
  color: var(--panel-text-muted);
  font-size: 13px;
}

.top-bar-right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
}

.top-bar-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 16px;
  border-radius: 11px;
  color: var(--panel-text-muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .055);
  color: var(--panel-text-soft);
}

.nav-item.active {
  background: linear-gradient(100deg, rgba(0, 229, 255, .18), rgba(112, 0, 255, .16));
  color: var(--panel-cyan);
  border-color: rgba(107, 133, 255, .75);
  box-shadow: 0 0 20px rgba(56, 101, 255, .16), inset 0 0 20px rgba(0, 229, 255, .04);
}

.nav-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active .nav-icon {
  background: linear-gradient(135deg, rgba(0, 229, 255, .72), rgba(80, 84, 255, .72));
  border-color: rgba(0, 229, 255, .75);
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 229, 255, .3);
}

.panel {
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
}

.sidebar-user {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid rgba(64, 125, 255, .6);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(21, 36, 68, .75), rgba(9, 14, 28, .92));
  box-shadow: inset 0 0 24px rgba(0, 229, 255, .03);
}

.sidebar-user-primary { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sidebar-account-toggle { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.04); color: var(--panel-text-soft); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.sidebar-account-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-account-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.sidebar-member-row { display: flex; align-items: center; justify-content: flex-start; gap: 8px; color: var(--panel-text-soft); font-size: 11px; width: 100%; margin-bottom: 2px; }
.sidebar-member-row svg { color: var(--panel-cyan); flex-shrink: 0; width: 16px; height: 16px; }
.sidebar-account-actions { display: flex; gap: 8px; width: 100%; }
.sidebar-manage-account { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex: 1; min-width: 0; min-height: 38px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: var(--panel-text-soft); font-size: 12px; text-decoration: none; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.sidebar-manage-account:hover { border-color: rgba(0,229,255,.45); background: rgba(0,229,255,.08); color: #fff; }
.sidebar-manage-account svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--panel-text-soft); }
.sidebar-manage-account:hover svg { color: #fff; }
.sidebar-account-menu { display: none; flex-direction: column; gap: 0; max-height: 0; min-height: 0; opacity: 0; overflow: hidden; margin-top: 0; pointer-events: none; transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, gap 0.3s ease; }
.sidebar-account-menu.open { max-height: 200px; opacity: 1; margin-top: 14px; pointer-events: auto; gap: 8px; }
.sidebar-signout-btn { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex: 1; min-width: 0; min-height: 38px; padding: 8px 12px; border: 1px solid rgba(244,63,94,.25); border-radius: 8px; background: rgba(244,63,94,.08); color: #fb7185; cursor: pointer; font-size: 12px; transition: background .2s ease, border-color .2s ease; }
.sidebar-signout-btn:hover { background: rgba(244,63,94,.16); border-color: rgba(244,63,94,.4); }
.sidebar-signout-btn svg { flex-shrink: 0; width: 16px; height: 16px; }

.user-avatar-circle {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--panel-purple), var(--panel-cyan));
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.user-avatar-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-meta {
  flex: 1;
  min-width: 0;
}

.user-meta strong {
  display: block;
  overflow: hidden;
  color: var(--panel-text);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-plan-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 184, 0, 0.25);
  border-radius: 100px;
  background: rgba(255, 184, 0, 0.12);
  color: var(--panel-amber);
  font-size: 10px;
  font-weight: 700;
}

.user-plan-pill.pro {
  border-color: rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.1);
  color: var(--panel-cyan);
}

.logout-icon-btn {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--panel-text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.logout-icon-btn:hover {
  background: rgba(244, 63, 94, 0.1);
  color: var(--panel-rose);
}

.panel-back-link,
.btn-secondary-glow {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--panel-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.panel-topbar-logout {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-select {
  appearance: none;
  min-height: 40px;
  padding: 7px 32px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  outline: none;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  color: var(--panel-text);
  font-family: var(--panel-font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.lang-select:hover,
.lang-select:focus {
  border-color: rgba(0, 229, 255, 0.3);
  background-color: rgba(0, 229, 255, 0.04);
}

.lang-select option {
  background: #111;
  color: var(--panel-text);
}

.btn {
  border: 1px solid var(--panel-border);
  border-radius: 11px;
  padding: 10px 15px;
  color: var(--panel-text);
  background: rgba(255, 255, 255, 0.05);
  font: 700 13px var(--panel-font-body);
  cursor: pointer;
}

.btn-primary {
  background: var(--panel-cyan);
  color: #020617;
  border-color: rgba(0, 229, 255, 0.4);
}

.btn-danger {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.4);
}

.toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: grid;
  gap: 10px;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.open {
    transform: none;
  }

  .main-content {
    width: 100%;
    margin-left: 0;
  }
}

/* Light theme changes color only. Layout remains owned by the dark theme rules. */
html[data-theme="light"] {
  --panel-bg-primary: #f7f9fc;
  --panel-bg-secondary: #ffffff;
  --panel-bg-sidebar: #fbfcfe;
  --panel-surface: #ffffff;
  --panel-surface-hover: #f4f7fb;
  --panel-border: #dce3ed;
  --panel-cyan: #087cff;
  --panel-purple: #7337f2;
  --panel-green: #20a43a;
  --panel-amber: #f59e0b;
  --panel-rose: #ef233c;
  --panel-text: #111827;
  --panel-text-muted: #66738a;
  --panel-text-soft: #42516a;
  --bg-primary: #f7f9fc;
  --bg-secondary: #ffffff;
  --bg-panel: #fbfcfe;
  --neon-cyan: #087cff;
  --neon-purple: #7337f2;
  --neon-green: #20a43a;
  --neon-amber: #f59e0b;
  --rose: #ef233c;
  --text: #111827;
  --text-muted: #66738a;
  --text-soft: #42516a;
  color-scheme: light;
}

html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] .app-shell,
html[data-theme="light"] .main-content {
  background: #f7f9fc;
  color: #111827;
}

html[data-theme="light"] ::selection { background: rgba(8,124,255,.2); color: #111827; }
html[data-theme="light"] .top-progress-line { background: linear-gradient(90deg, #18bff2, #7450f5 55%, #f43f5e); }
html[data-theme="light"] .top-bar {
  border-color: #dce3ed;
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 0 rgba(15,23,42,.025);
}
html[data-theme="light"] .top-bar-left h1,
html[data-theme="light"] .sidebar-brand-name,
html[data-theme="light"] .user-meta strong { color: #111827; }
html[data-theme="light"] .sidebar {
  border-right-color: #dbe3ef;
  background: #fbfcfe;
  box-shadow: 1px 0 0 #edf1f6, 8px 0 28px rgba(15,23,42,.035);
}
html[data-theme="light"] .sidebar::after { display: none; }
html[data-theme="light"] .sidebar-brand { border-bottom-color: #e7ecf3; }
html[data-theme="light"] .sidebar-brand-name span { color: #087cff; }
html[data-theme="light"] .nav-item {
  border-color: #e1e7f0;
  background: rgba(255,255,255,.72);
  color: #334155;
}
html[data-theme="light"] .nav-item:hover { border-color: #cbd7e7; background: #f3f7fc; color: #111827; }
html[data-theme="light"] .nav-item.active {
  border-color: #b9d7ff;
  border-left-color: #087cff;
  background: linear-gradient(100deg, #eff7ff, #f6f8ff);
  color: #111827;
  box-shadow: inset 3px 0 #087cff, 0 5px 18px rgba(8,124,255,.06);
}
html[data-theme="light"] .nav-icon { border-color: #e1e7f0; background: #f4f7fb; color: #42516a; }
html[data-theme="light"] .nav-item.active .nav-icon {
  border-color: #84c4ff;
  background: linear-gradient(135deg, #198cff, #5e70f7);
  color: #fff;
  box-shadow: 0 5px 14px rgba(8,124,255,.18);
}
html[data-theme="light"] .nav-section-label { color: #586780; }
html[data-theme="light"] .nav-section-label::before { background: #087cff; box-shadow: none; }
html[data-theme="light"] .sidebar-user { border-top-color: #e5eaf1; }
html[data-theme="light"] .sidebar-user-inner {
  border-color: #dce4ef;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15,23,42,.045);
}
html[data-theme="light"] .sidebar-account-toggle,
html[data-theme="light"] .sidebar-manage-account,
html[data-theme="light"] .panel-back-link,
html[data-theme="light"] .btn-secondary-glow,
html[data-theme="light"] .panel-topbar-logout,
html[data-theme="light"] .btn-action,
html[data-theme="light"] .lang-select {
  border-color: #d7dfeb;
  background-color: #fff;
  color: #172033;
  box-shadow: 0 2px 7px rgba(15,23,42,.025);
}
html[data-theme="light"] .lang-select option { background: #fff; color: #172033; }
html[data-theme="light"] .user-plan-pill.pro { border-color: #d9ceff; background: #f1edff; color: #6332df; }

.panel-theme-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 74px;
  min-width: 74px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: var(--panel-text-muted);
  cursor: pointer;
}
.panel-theme-toggle > span { display: grid; place-items: center; height: 100%; }
.panel-theme-toggle svg { width: 17px; height: 17px; }
.panel-theme-toggle .theme-icon-moon { border-left: 1px solid rgba(255,255,255,.1); color: #d9e1f0; background: rgba(255,255,255,.07); }
.panel-theme-toggle .theme-icon-sun { color: #8b93a2; }
html[data-theme="light"] .panel-theme-toggle { border-color: #d7dfeb; background: #fff; color: #344054; }
html[data-theme="light"] .panel-theme-toggle .theme-icon-sun { color: #f5a300; background: #fffaf0; }
html[data-theme="light"] .panel-theme-toggle .theme-icon-moon { border-left-color: #d7dfeb; color: #344054; background: #f7f9fc; }

.dashboard-refresh-btn svg { transition: transform .25s ease; }
.dashboard-refresh-btn.is-refreshing svg { animation: dashboard-refresh-spin .8s linear infinite; }
.dashboard-refresh-btn:disabled { cursor: wait; opacity: .72; }
@keyframes dashboard-refresh-spin { to { transform: rotate(360deg); } }

.chart-total-skeleton { display: block; width: 96px; height: 42px; border-radius: 10px; }
.chart-delta-loading { border: 1px solid rgba(57,255,20,.22); background: rgba(57,255,20,.055); }
.chart-delta-skeleton { display: block; width: 150px; height: 20px; border-radius: 999px; }
.chart-grid-line { stroke: rgba(255,255,255,.1); }
.chart-axis-label { fill: #8c93a1; }
.voice-bar-label { color: #e4e4e7; font-size: 13px; font-weight: 650; }
.chart-range-btn:not(.active):hover { background: rgba(255,255,255,.07); color: #f4f4f5; }

/* Shared dashboard surfaces */
html[data-theme="light"] .page-content { background: #f7f9fc; }
html[data-theme="light"] .stat-card,
html[data-theme="light"] .quota-card,
html[data-theme="light"] .quota-split-card,
html[data-theme="light"] .chart-card,
html[data-theme="light"] .video-card,
html[data-theme="light"] .topup-shop-layout,
html[data-theme="light"] .topup-package-card,
html[data-theme="light"] .why-topup-card,
html[data-theme="light"] .usage-panel,
html[data-theme="light"] .modal-content {
  border-color: #dce4ef;
  background: #fff;
  color: #111827;
  box-shadow: 0 7px 24px rgba(15,23,42,.045);
}
html[data-theme="light"] .stat-card.cyan-card { border-color: #afe0ff; background: linear-gradient(145deg,#f4fbff,#edf9ff); }
html[data-theme="light"] .stat-card.purple-card { border-color: #d9c7ff; background: linear-gradient(145deg,#faf7ff,#f4efff); }
html[data-theme="light"] .stat-card.green-card { border-color: #bfe7c3; background: linear-gradient(145deg,#f7fff5,#f0fbef); }
html[data-theme="light"] .stat-card.amber-card { border-color: #f6d59a; background: linear-gradient(145deg,#fffaf0,#fff7e7); }
html[data-theme="light"] .stat-icon.cyan { color:#0798e8; background:#edf9ff; border-color:#b9e6ff; }
html[data-theme="light"] .stat-icon.purple { color:#7337f2; background:#f3edff; border-color:#dbcbff; }
html[data-theme="light"] .stat-icon.green { color:#20a43a; background:#eefbef; border-color:#c7ebca; }
html[data-theme="light"] .stat-icon.amber { color:#ed9700; background:#fff7e6; border-color:#f7d99e; }
html[data-theme="light"] .stat-value,
html[data-theme="light"] .metric-title,
html[data-theme="light"] .metric-detail-row strong,
html[data-theme="light"] .quota-info h3,
html[data-theme="light"] .section-header h2,
html[data-theme="light"] .usage-title,
html[data-theme="light"] .video-card-title,
html[data-theme="light"] .chart-card h3 { color: #111827; }
html[data-theme="light"] .metric-subtitle,
html[data-theme="light"] .metric-detail-row,
html[data-theme="light"] .stat-label,
html[data-theme="light"] .quota-bar-row,
html[data-theme="light"] .quota-info > p,
html[data-theme="light"] .video-card-meta,
html[data-theme="light"] .section-header p { color: #66738a; }
html[data-theme="light"] .metric-detail-list,
html[data-theme="light"] .topup-mini-box,
html[data-theme="light"] .quota-detail-stack,
html[data-theme="light"] .topup-balance-item,
html[data-theme="light"] .usage-balance-note { border-color:#dce4ef; background:rgba(255,255,255,.72); }
html[data-theme="light"] .quota-bar,
html[data-theme="light"] .voice-bar-bg { background:#e8edf4; }
html[data-theme="light"] .quota-ring-bg { stroke:#e8edf4; }
html[data-theme="light"] .quota-card::after { opacity:.07; }
html[data-theme="light"] .chart-range-toggle,
html[data-theme="light"] .chart-range-btn { border-color:#dce4ef; background:#f5f7fa; color:#66738a; }
html[data-theme="light"] .chart-range-btn.active { background:#fff; color:#087cff; }
html[data-theme="light"] .chart-range-btn:not(.active):hover { background:#e7edf5; color:#172033; }
html[data-theme="light"] .chart-grid-line { stroke:#d9e1ec; }
html[data-theme="light"] .chart-axis-label { fill:#66738a; }
html[data-theme="light"] .voice-bar-label { color:#172033; }
html[data-theme="light"] .chart-delta-loading { border-color:#b8ebb9; background:#f1fff1; }
html[data-theme="light"] .chart-svg .grid-line { stroke:#e2e8f0; }
html[data-theme="light"] .chart-tooltip { border-color:#d6deea; background:#fff; color:#111827; box-shadow:0 8px 24px rgba(15,23,42,.12); }
html[data-theme="light"] .empty-state,
html[data-theme="light"] .transcript-line-card { border-color:#dce4ef; background:#f9fbfd; color:#111827; }
html[data-theme="light"] .skeleton,
html[data-theme="light"] .skeleton-bg,
html[data-theme="light"] .skeleton-text { background:#e9eef5 !important; }

/* Profile and billing surfaces */
html[data-theme="light"] .profile-page,
html[data-theme="light"] .billing-dashboard { background:#f7f9fc; }
html[data-theme="light"] .profile-hero-card,
html[data-theme="light"] .profile-section-card,
html[data-theme="light"] .billing-hero-card,
html[data-theme="light"] .billing-panel,
html[data-theme="light"] .billing-summary-card,
html[data-theme="light"] .billing-details-box,
html[data-theme="light"] .billing-card {
  border-color:#dce4ef;
  background:#fff;
  color:#111827;
  box-shadow:0 6px 22px rgba(15,23,42,.035);
}
html[data-theme="light"] .profile-hero-card { background:linear-gradient(120deg,#fff,#f8fbff 58%,#faf7ff); }
html[data-theme="light"] .profile-name-row h2,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .billing-plan-title-row h2,
html[data-theme="light"] .billing-panel h3,
html[data-theme="light"] .billing-summary-card strong,
html[data-theme="light"] .billing-meta-row strong,
html[data-theme="light"] .billing-details-box strong { color:#111827; }
html[data-theme="light"] .profile-identity-copy .summary-email,
html[data-theme="light"] .profile-meta-row,
html[data-theme="light"] .section-heading p,
html[data-theme="light"] .billing-plan-features,
html[data-theme="light"] .billing-meta-row,
html[data-theme="light"] .billing-summary-card span,
html[data-theme="light"] .billing-summary-card small,
html[data-theme="light"] .billing-details-box span { color:#66738a; }
html[data-theme="light"] .profile-field label,
html[data-theme="light"] .password-fields label,
html[data-theme="light"] .profile-language-setting label,
html[data-theme="light"] .preference-toggle { color:#344054; }
html[data-theme="light"] .profile-field input,
html[data-theme="light"] .password-fields input,
html[data-theme="light"] .profile-language-setting select,
html[data-theme="light"] .custom-select-trigger,
html[data-theme="light"] .custom-select-search,
html[data-theme="light"] .billing-v2 input,
html[data-theme="light"] .billing-v2 select {
  border-color:#d7dfeb;
  background:#fff;
  color:#172033;
}
html[data-theme="light"] .profile-field input:disabled { background:#f7f9fc; color:#667085; }
html[data-theme="light"] .custom-select-dropdown { border-color:#d6deea; background:#fff; box-shadow:0 14px 32px rgba(15,23,42,.1); }
html[data-theme="light"] .custom-select-option { color:#344054; }
html[data-theme="light"] .custom-select-option:hover,
html[data-theme="light"] .custom-select-option.selected { background:#edf6ff; color:#087cff; }
html[data-theme="light"] .section-heading-icon { border-color:#dce4ef; background:#f6f8fb; }
html[data-theme="light"] .section-heading-icon.cyan { color:#087cff; border-color:#c6e1ff; background:#edf6ff; }
html[data-theme="light"] .section-heading-icon.purple { color:#7337f2; border-color:#d9caff; background:#f3efff; }
html[data-theme="light"] .section-heading-icon.amber { color:#e99a00; border-color:#f4d79f; background:#fff7e8; }
html[data-theme="light"] .profile-photo-button,
html[data-theme="light"] .profile-billing-link,
html[data-theme="light"] .billing-outline-btn { border-color:#b9d7ff; background:#fff; color:#087cff; }
html[data-theme="light"] .password-strength-meter i { background:#e1e6ee; }
html[data-theme="light"] .password-checklist,
html[data-theme="light"] .password-strength-copy strong { color:#66738a; }
html[data-theme="light"] .preference-toggle { border-color:#e0e6ee; }
html[data-theme="light"] .preference-toggle i { background:#cdd5e1; }
html[data-theme="light"] .devices-table { color:#253044; }
html[data-theme="light"] .devices-table th { color:#66738a; }
html[data-theme="light"] .devices-table td { border-color:#e5eaf1; }
html[data-theme="light"] .devices-table .mono,
html[data-theme="light"] .device-type-icon { color:#42516a; }
html[data-theme="light"] .profile-danger-divider { border-color:#e5eaf1; }
html[data-theme="light"] .profile-danger-card,
html[data-theme="light"] .profile-danger-inline,
html[data-theme="light"] .billing-danger-panel {
  border-color:#ffb8c1;
  background:#fff8f9;
}
html[data-theme="light"] .profile-danger-card .section-heading h2,
html[data-theme="light"] .billing-danger-panel h3 { color:#e11d3c; }
html[data-theme="light"] .profile-danger-card .section-heading p,
html[data-theme="light"] .billing-danger-panel p { color:#66738a; }

html[data-theme="light"] .billing-upgrade-card {
  border-color:#ddceff;
  background:linear-gradient(135deg,#fbf9ff,#f4efff);
}
html[data-theme="light"] .billing-summary-card.cyan { border-color:#b9e2ff; background:linear-gradient(135deg,#f5fbff,#fff); }
html[data-theme="light"] .billing-summary-card.green { border-color:#c4e7c6; background:linear-gradient(135deg,#f5fff5,#fff); }
html[data-theme="light"] .billing-summary-card.purple { border-color:#ddd0ff; background:linear-gradient(135deg,#faf7ff,#fff); }
html[data-theme="light"] .billing-summary-card.amber { border-color:#f4d7a0; background:linear-gradient(135deg,#fff9ee,#fff); }
html[data-theme="light"] .billing-v2 .invoice-table th,
html[data-theme="light"] .billing-v2 .invoice-table td { border-color:#e2e8f0; color:#253044; }
html[data-theme="light"] .billing-v2 .invoice-table th { color:#66738a; background:#f8fafc; }
html[data-theme="light"] .billing-status-paid { border-color:#b9e5c0; background:#eaf8ed; color:#16852d; }
html[data-theme="light"] .billing-secure-note { color:#66738a; }
html[data-theme="light"] .modal-overlay { background:rgba(15,23,42,.42); }
html[data-theme="light"] .modal-header,
html[data-theme="light"] .modal-actions-bar,
html[data-theme="light"] .avatar-crop-actions { border-color:#e2e8f0; background:#fff; }
html[data-theme="light"] .modal-title,
html[data-theme="light"] .avatar-crop-header .modal-title { color:#111827; }
html[data-theme="light"] .modal-subtitle,
html[data-theme="light"] .avatar-crop-header .modal-subtitle { color:#66738a; }

@media (max-width: 760px) {
  .panel-theme-toggle { width: 68px; min-width: 68px; }
}
