/* ==========================================================================
   SONIC AI MASTER STYLESHEET
   Modern, Dark Mode, High Performance, Glassmorphic Aesthetics
   ========================================================================== */

:root {
  --bg-dark: #0a0c0b;
  --bg-surface: #111513;
  --bg-card: rgba(18, 23, 20, 0.78);
  --bg-card-hover: rgba(26, 33, 29, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 230, 118, 0.5);

  --accent-emerald: #00e676;
  --accent-emerald-dark: #059669;
  --accent-emerald-glow: rgba(0, 230, 118, 0.22);
  --accent-cyan: #38bdf8;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px var(--accent-emerald-glow);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-emerald);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: #69f0ae;
}

/* --- Top Navigation Bar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  display: block;
  height: 28px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav a:hover,
.nav a[aria-current="page"],
.nav a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* --- Page Layout --- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  width: 100%;
  flex: 1;
}

/* --- Sync Status Bar --- */
.sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 24px;
  font-size: 13px;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.sync-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-refresh {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-refresh:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
.btn-refresh.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* --- Events Carousel --- */
.events {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: #000;
  border: 1px solid var(--border-subtle);
}

.slide {
  display: none;
  min-height: 240px;
  position: relative;
}
.slide.is-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slide .ev-media {
  width: 100%;
}
.slide video {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.event-text {
  padding: 30px;
  max-width: 550px;
}
.event-eyebrow {
  color: var(--accent-emerald);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}
.event-title {
  font-size: 26px;
  font-weight: 700;
  margin: 6px 0 12px;
}
.event-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}
.event-img {
  max-width: 380px;
  height: auto;
  object-fit: cover;
}

/* --- Page Tabs --- */
.page-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
}

.page-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.page-tab:hover {
  color: var(--text-primary);
}

.page-tab[aria-selected="true"],
.page-tab.is-active {
  color: var(--accent-emerald);
  border-bottom-color: var(--accent-emerald);
}

/* --- Calculator & Simulator Panel --- */
.calc-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.balance-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.balance-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  transition: border-color var(--transition-fast);
}
.balance-input:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px var(--accent-emerald-glow);
}

.preset-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.preset-chip:hover,
.preset-chip.active {
  background: rgba(0, 230, 118, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

/* Button Toggle Groups */
.btn-group {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.btn-toggle {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}
.btn-toggle:hover {
  color: var(--text-primary);
}
.btn-toggle.active {
  background: var(--accent-emerald);
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 230, 118, 0.3);
}

.btn-toggle-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
}

/* KPI Summary Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.kpi-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.kpi-val {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
}
.kpi-val.highlight {
  color: var(--accent-emerald);
  text-shadow: 0 0 12px var(--accent-emerald-glow);
}
.kpi-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* --- Fee Transparency Box --- */
.fee-card {
  background: rgba(18, 23, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.fee-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fee-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.fee-item {
  display: flex;
  flex-direction: column;
}
.fee-k {
  font-size: 11px;
  color: var(--text-muted);
}
.fee-v {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.fee-v.minus {
  color: var(--accent-rose);
}
.fee-v.plus {
  color: var(--accent-emerald);
}

/* --- Interactive Chart Section --- */
.chart-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-title-area h2 {
  font-size: 18px;
  font-weight: 700;
}
.chart-title-area p {
  font-size: 12px;
  color: var(--text-secondary);
}

.chart-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.range-btn:hover {
  color: #fff;
}
.range-btn.active {
  background: rgba(0, 230, 118, 0.2);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.chart-canvas-wrap {
  width: 100%;
  min-height: 290px;
}

/* Chart Tooltip */
.sonic-chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 19, 17, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 10;
  min-width: 210px;
}

.tt-date {
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.tt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 3px 0;
}
.tt-row.comp {
  color: var(--accent-emerald);
}
.tt-row.linear {
  color: var(--accent-cyan);
}
.tt-diff {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 11px;
  color: var(--text-primary);
}

/* --- Tables & Lists --- */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.section-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin-bottom: 24px;
}

table.sonic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

table.sonic-table th {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

table.sonic-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

table.sonic-table tr:last-child td {
  border-bottom: none;
}
table.sonic-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.font-tabular {
  font-variant-numeric: tabular-nums;
}

.pos {
  color: var(--accent-emerald);
}
.neg {
  color: var(--accent-rose);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.badge-buy {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 230, 118, 0.3);
}
.badge-sell {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Pager */
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 0;
}
.pager-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pager-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pager-info {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- Zooms Section --- */
.zooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.recurring-card {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08), rgba(56, 189, 248, 0.06));
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.recurring-badge {
  display: inline-block;
  background: var(--accent-emerald);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.recurring-speakers {
  font-size: 15px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}
.recurring-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.recurring-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-primary {
  background: var(--accent-emerald);
  color: #000;
}
.btn-primary:hover {
  background: #69f0ae;
  color: #000;
  box-shadow: 0 0 16px var(--accent-emerald-glow);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.zoom-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.zoom-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.zoom-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}
.zoom-link {
  font-size: 13px;
  font-weight: 600;
}

/* --- Compensation Plan Cards --- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}
.plan-card.plan-wide {
  grid-column: 1 / -1;
}
.plan-bar {
  display: flex;
  height: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 16px 0;
  font-size: 12px;
  font-weight: 700;
}
.pb-part { background: var(--accent-emerald); color: #000; display: flex; align-items: center; justify-content: center; }
.pb-trader { background: var(--accent-cyan); color: #000; display: flex; align-items: center; justify-content: center; }
.pb-net { background: var(--accent-purple); color: #fff; display: flex; align-items: center; justify-content: center; }

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 20px;
  background: rgba(10, 12, 11, 0.9);
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: #fff;
}

.disclaimer-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 24px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .slide.is-active {
    flex-direction: column;
  }
  .event-img {
    max-width: 100%;
  }
  .sync-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   GUIDE & ZOOMS UNIFIED DARK THEME STYLES
   ========================================================================== */

/* Hero Banner on Subpages */
.hero {
  margin-bottom: 28px;
}
.hero .eyebrow {
  color: var(--accent-emerald);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.hero .bar {
  width: 48px;
  height: 3px;
  background: var(--accent-emerald);
  border-radius: 2px;
  margin: 12px 0 14px;
}
.hero p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 720px;
}

/* Quick Reference Chips */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.chip:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}
.chip .k {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.chip .v {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.chip.req .v {
  color: var(--accent-amber);
}

/* Step-by-Step Guide Cards */
.guide-page .step {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}
.guide-page .step:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.step-head .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: #000;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-head .num.blue {
  background: var(--accent-cyan);
}
.step-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex: 1;
  min-width: 200px;
}
.step-head .tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.step-body {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.step-body p {
  margin-bottom: 12px;
}
.step-body strong {
  color: var(--text-primary);
}
.step-body a.code {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--accent-cyan);
  font-family: monospace;
  font-size: 13px;
  margin: 6px 0 14px;
  word-break: break-all;
}
.step-body a.code:hover {
  border-color: var(--accent-cyan);
}

.step-body .row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 16px 0;
}
.step-body .row > * {
  align-self: flex-start;
}
@media (max-width: 768px) {
  .step-body .row {
    flex-direction: column;
  }
  .step-body .row > * {
    width: 100% !important;
  }
}

.step-body figure {
  margin: 18px 0;
}
.step-body .shot {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  display: block;
  align-self: flex-start;
}
.guide-page img,
.step-body img,
.step-body .shot img {
  max-width: 100% !important;
  width: auto;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  display: block;
}
.step-body figcaption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}
.step-body ol, .step-body ul {
  padding-left: 20px;
  margin-bottom: 14px;
}
.step-body li {
  margin-bottom: 6px;
}

.epix-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-purple);
  margin: 20px 0 10px;
}
.step-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 18px 0 8px;
}

/* Community Zooms Page */
.community-zooms .zoom-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-top: 24px;
}
.community-zooms .zoom-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.community-zooms .zoom-tab:hover {
  color: #fff;
}
.community-zooms .zoom-tab[aria-selected="true"] {
  color: var(--accent-emerald);
  border-bottom-color: var(--accent-emerald);
}

.community-zooms .zoom-content {
  padding: 24px 0;
  background: none;
  border: none;
  box-shadow: none;
}

/* Weekly Call Component */
.weekly-call {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.weekly-art {
  flex: 0 0 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.weekly-art img {
  width: 100%;
  height: auto;
  display: block;
}
.weekly-body {
  flex: 1;
  min-width: 0;
}
.weekly-body .eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.weekly-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.weekly-body .weekly-badge {
  display: inline-block;
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.weekly-body .weekly-rule {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.weekly-body .weekly-next {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.weekly-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.weekly-actions a,
.weekly-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-emerald);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.weekly-actions a:hover,
.weekly-actions button:hover {
  background: #69f0ae;
  box-shadow: 0 0 16px var(--accent-emerald-glow);
}
.weekly-actions button.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.weekly-actions button.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  color: #fff;
}
.weekly-body details {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.weekly-body summary {
  cursor: pointer;
  color: var(--accent-cyan);
  user-select: none;
  padding: 4px 0;
}
.weekly-body summary:hover {
  color: #fff;
}
.weekly-body textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #080a09;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
  padding: 12px;
  margin-top: 10px;
  resize: vertical;
}

/* Community Items / Video Cards */
.community-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  transition: all var(--transition-fast);
}
.community-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}
.community-item .eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.community-item h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.community-item p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}
.community-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.community-item a:hover {
  background: var(--accent-emerald);
  color: #000;
}

.zoom-empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin: 20px 0;
}
.zoom-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-emerald);
}
.zoom-empty-icon svg {
  width: 32px;
  height: 32px;
}
.empty-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.zoom-empty h2 {
  font-size: 22px;
  color: #fff;
  margin: 8px 0;
}
.zoom-empty p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.empty-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 20px;
}
.empty-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

@media (max-width: 768px) {
  .weekly-call {
    flex-direction: column;
    align-items: flex-start;
  }
  .weekly-art {
    width: 100%;
    flex: none;
  }
}

/* ==========================================================================
   Compensation Plan Styles (Dark Glassmorphism)
   ========================================================================== */
.plan-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.plan-legend .sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-inline-end: 8px;
  vertical-align: -1px;
}
.plan-rows {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  font-size: 14px;
}
.plan-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.plan-rows li strong {
  color: #fff;
}
.plan-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-medium);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-emerald);
}

/* General Bonus CPA Tiers */
.plan-cpa {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.plan-cpa li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.plan-cpa .track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  direction: ltr;
}
.plan-cpa .fill {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.plan-cpa .amt {
  text-align: end;
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-weight: 600;
}

/* Leader Pools */
.pools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.pool-box {
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
}
.pool-box-purple {
  background: rgba(109, 79, 216, 0.06);
  border-color: rgba(109, 79, 216, 0.25);
}
.pool-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-cyan);
}
.pool-amount {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 4px;
}
.pool-req {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Incentives */
.incs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.inc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
}
.inc-box.inc-top {
  border-color: rgba(255, 215, 0, 0.35);
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(0, 0, 0, 0.4));
}
.inc-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.inc-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.inc-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin: 4px 0 8px;
}
.inc-val.gold {
  color: #ffd700;
}
.inc-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}
.inc-freq {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Affiliate Chips & Controls
   ========================================================================== */
.preset-chip-aff {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.preset-chip-aff:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.preset-chip-aff.active {
  background: rgba(0, 230, 118, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

/* ==========================================================================
   Time Zones World Clock Application (Dark Theme)
   ========================================================================== */
.tz {
  --tz-teal: #00e5ff;
  --tz-teal-bg: rgba(0, 229, 255, 0.08);
  --tz-teal-line: rgba(0, 229, 255, 0.3);
  max-width: 860px;
  margin: 0 auto;
}
.tz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tz-sub {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.tz-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tz-teal);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.2);
  animation: tzpulse 2.4s ease-in-out infinite;
}
@keyframes tzpulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}
.tz-console {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.tz-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
}
.tz-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tz-field label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.tz-grow {
  flex: 1;
  min-width: 180px;
}
.tz select,
.tz input[type="time"],
.tz input[type="date"],
.tz input[type="text"] {
  font: inherit;
  font-size: 14px;
  color: #fff;
  background: #0d0f0e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  outline: none;
  width: 100%;
}
.tz input[type="time"],
.tz input[type="date"] {
  color-scheme: dark;
}
.tz select:focus,
.tz input:focus {
  border-color: var(--tz-teal);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}
.tz-btn {
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.tz-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.tz-btn.tz-accent {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--tz-teal-line);
  color: var(--tz-teal);
}
.tz-btn.tz-accent:hover {
  background: rgba(0, 229, 255, 0.25);
}
.tz-rows {
  padding: 4px 0;
}
.tz-row {
  display: grid;
  grid-template-columns: 38px minmax(34px, auto) minmax(140px, 1fr) auto auto;
  align-items: center;
  gap: 0 14px;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  transition: background var(--transition-fast);
}
.tz-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.tz-row:last-child {
  border-bottom: 0;
}
.tz-flag {
  font-size: 22px;
  line-height: 1;
}
.tz-city {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.tz-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.tz-rel {
  font-family: monospace;
  color: var(--accent-cyan);
}
.tz-day {
  font-family: monospace;
  color: var(--accent-emerald);
}
.tz-reftag {
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
}
.tz-abbr {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
  justify-self: end;
}
.tz-time {
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  justify-self: end;
}
.tz-row.tz-isref {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12) 0%, transparent 80%);
}
.tz-row.tz-isref::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tz-teal);
}
.tz-row.tz-isref .tz-time {
  color: var(--accent-cyan);
}
.tz-remove {
  border: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  opacity: 0.4;
  transition: all var(--transition-fast);
}
.tz-remove:hover {
  opacity: 1;
  color: #ff5252;
}
.tz-toggle {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  cursor: pointer;
}
.tz-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.tz-toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
}
.tz-toggle span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.tz-toggle input:checked + span {
  background: var(--accent-cyan);
}
.tz-toggle input:checked + span::after {
  transform: translateX(14px);
}
.tz-row.tz-off {
  opacity: 0.35;
}
.tz-add {
  display: none;
  border-top: 1px solid var(--border-subtle);
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.2);
}
.tz-add.open {
  display: block;
}
.tz-addgrid {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.tz-full {
  grid-column: 1 / -1;
}
.tz-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.tz-note {
  font-size: 12px;
  color: var(--text-muted);
}
.tz-help {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 16px 0 0;
}
.tz-help b {
  color: var(--text-primary);
}
.tz-out {
  display: none;
  margin-top: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tz-out.open {
  display: block;
}
.tz-out-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.3);
  font-size: 12px;
  color: var(--text-muted);
}
.tz-out textarea {
  width: 100%;
  border: 0;
  outline: none;
  resize: vertical;
  background: #080a09;
  color: var(--text-primary);
  font-family: monospace;
  font-size: 13px;
  line-height: 1.8;
  padding: 14px 18px;
  min-height: 180px;
  display: block;
  box-sizing: border-box;
}

/* ==========================================================================
   STYLISED GLASSMORPHIC LANGUAGE SWITCHER
   ========================================================================== */
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 120;
}

.lang-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary, #f8fafc);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast, 0.15s ease);
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.lang-btn:hover {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.4);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.18), 0 2px 8px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.lang-btn:active {
  transform: translateY(0);
}

.lang-btn[aria-expanded="true"],
.lang.is-open .lang-btn {
  background: rgba(0, 230, 118, 0.12);
  border-color: var(--accent-emerald, #00e676);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent-emerald, #00e676);
  outline-offset: 2px;
}

.lang-code {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.lang-chevron {
  color: var(--text-muted, #64748b);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  flex-shrink: 0;
  margin-left: 1px;
}

.lang-btn:hover .lang-chevron {
  color: var(--accent-emerald, #00e676);
}

.lang-btn[aria-expanded="true"] .lang-chevron,
.lang.is-open .lang-chevron {
  transform: rotate(180deg);
  color: var(--accent-emerald, #00e676);
}

/* SVG Flags */
.flag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

/* Dropdown Menu */
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 10px;
  background: rgba(14, 18, 16, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 230, 118, 0.12);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: 350px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  animation: langMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-list[hidden],
.lang:not(.is-open) .lang-list {
  display: none !important;
}

.lang.is-open .lang-list {
  display: grid !important;
}

[dir="rtl"] .lang-list {
  right: auto;
  left: 0;
}

.lang-list::-webkit-scrollbar {
  width: 5px;
}
.lang-list::-webkit-scrollbar-track {
  background: transparent;
}
.lang-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
.lang-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 230, 118, 0.4);
}

@keyframes langMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #94a3b8);
  transition: all 0.15s ease;
  user-select: none;
  border: 1px solid transparent;
  position: relative;
}

.lang-list li:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.lang-list li:focus-visible {
  outline: 2px solid var(--accent-emerald, #00e676);
  outline-offset: -2px;
}

.lang-list li[aria-selected="true"] {
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-emerald, #00e676);
  font-weight: 600;
  border-color: rgba(0, 230, 118, 0.3);
}

.lang-list li[aria-selected="true"]:hover {
  background: rgba(0, 230, 118, 0.18);
  border-color: rgba(0, 230, 118, 0.45);
}

.lang-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-check {
  color: var(--accent-emerald, #00e676);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .lang-list {
    width: 290px;
    grid-template-columns: 1fr;
    max-height: 380px;
  }
}

/* --- Forecast Range Sliders --- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  outline: none;
  transition: background 0.2s;
  cursor: pointer;
}
input[type="range"]:hover {
  background: rgba(255, 255, 255, 0.18);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.85);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  cursor: pointer;
}

