/* ══════════════════════════════════════════════════════
   data.erthiox.com — Design System
   Palette: Obsidian Navy + Champagne Gold (matches erthiox.com)
══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Core palette — mirrors erthiox.com */
  --color-prestige-dark: #111622;
  --color-prestige-gold: #C5A880;
  --color-prestige-gold-dark: #B89047;
  --color-prestige-cream: #FCFBF9;
  --color-prestige-slate: #5A606C;
  --color-prestige-border: #E8E5DF;
  --color-prestige-divider: #F1EFEA;

  /* Sidebar */
  --sidebar-bg: #0D1119;
  --sidebar-width: 260px;
  --sidebar-border: rgba(255,255,255,0.07);
  --sidebar-item-hover: rgba(255,255,255,0.06);
  --sidebar-item-active: rgba(197,168,128,0.12);

  /* Surface */
  --color-bg: #F5F6FA;
  --color-surface: #FFFFFF;
  --color-surface-2: #F8F9FE;

  /* Typography */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-headings: 'Outfit', 'Inter', sans-serif;

  /* Semantic */
  --color-success: #1E8E3E;
  --color-success-light: #E6F4EA;
  --color-danger: #EA4335;
  --color-danger-light: #FCE8E6;
  --color-warning: #F9AB00;
  --color-warning-light: #FEF7E0;
  --color-info: #1A73E8;
  --color-info-light: #E8F0FE;

  /* Charts */
  --chart-gold: #C5A880;
  --chart-blue: #1A73E8;
  --chart-green: #1E8E3E;
  --chart-purple: #A142F4;
  --chart-red: #EA4335;
  --chart-teal: #00897B;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(17,22,34,0.06);
  --shadow-md: 0 8px 24px rgba(17,22,34,0.08);
  --shadow-lg: 0 20px 48px rgba(17,22,34,0.10);

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --topbar-height: 64px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-prestige-dark);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-headings); font-weight: 700; }
button { font-family: var(--font-base); cursor: pointer; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-prestige-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #C8C5BE; }

/* ══════════════════════════════════════════════════════
   APP SHELL
══════════════════════════════════════════════════════ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.35s var(--ease-spring);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-prestige-gold), var(--color-prestige-gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-headings);
  flex-shrink: 0;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  font-family: var(--font-headings);
  line-height: 1;
}

.sidebar-brand-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 0 8px;
  margin: 16px 0 8px;
}

.sidebar-section-label:first-child { margin-top: 0; }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  margin-bottom: 2px;
  position: relative;
  white-space: nowrap;
}

.sidebar-item:hover {
  background: var(--sidebar-item-hover);
  color: rgba(255,255,255,0.9);
}

.sidebar-item.active {
  background: var(--sidebar-item-active);
  color: var(--color-prestige-gold);
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--color-prestige-gold);
  border-radius: 0 3px 3px 0;
}

.sidebar-item .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--sidebar-border);
}

.sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-footer-link:hover {
  background: var(--sidebar-item-hover);
  color: rgba(255,255,255,0.7);
}

/* ── Main Content Area ── */
.main-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.35s var(--ease-spring);
}

/* ── Topbar ── */
.topbar {
  height: var(--topbar-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-prestige-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-prestige-dark);
  font-family: var(--font-headings);
}

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

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--color-prestige-slate);
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
}

.menu-toggle:hover { background: var(--color-prestige-divider); }
.menu-toggle .material-symbols-outlined { font-size: 22px; }

/* ── Page Content ── */
.page-content {
  flex: 1;
  padding: 32px 28px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════
   SHARED COMPONENTS
══════════════════════════════════════════════════════ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-prestige-dark);
  color: #fff;
}
.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17,22,34,0.2);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-prestige-gold), var(--color-prestige-gold-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(184,144,71,0.25);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,144,71,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-prestige-dark);
  border: 1.5px solid var(--color-prestige-border);
}
.btn-outline:hover {
  border-color: var(--color-prestige-gold);
  color: var(--color-prestige-gold-dark);
  background: rgba(197,168,128,0.06);
}

.btn-danger {
  background: var(--color-danger-light);
  color: var(--color-danger);
  border: 1.5px solid rgba(234,67,53,0.15);
}
.btn-danger:hover {
  background: var(--color-danger);
  color: #fff;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-prestige-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-spring);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-prestige-dark);
}

.card-body {
  padding: 20px 24px;
}

/* Stat Cards */
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-prestige-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s var(--ease-spring);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-prestige-gold);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  transition: transform 0.3s;
}

.stat-card:hover .stat-card-icon { transform: rotate(-6deg) scale(1.05); }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-prestige-dark);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--color-prestige-slate);
  font-weight: 500;
}

.stat-change {
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
}

.stat-change.up { color: var(--color-success); }
.stat-change.down { color: var(--color-danger); }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Chart Container */
.chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-prestige-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

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

.chart-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-prestige-dark);
}

.chart-card-subtitle {
  font-size: 0.8rem;
  color: var(--color-prestige-slate);
  margin-top: 2px;
}

.chart-wrapper {
  position: relative;
  width: 100%;
}

/* Tables */
.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-prestige-slate);
  background: var(--color-prestige-divider);
  white-space: nowrap;
}

.data-table th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.data-table th:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-prestige-divider);
  color: var(--color-prestige-dark);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr {
  transition: background 0.15s;
}

.data-table tbody tr:hover { background: var(--color-surface-2); }

/* Rank Badge */
.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); color: #fff; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; }
.rank-other { background: var(--color-prestige-divider); color: var(--color-prestige-slate); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 700;
}

.badge-active { background: var(--color-success-light); color: var(--color-success); }
.badge-closed { background: var(--color-danger-light); color: var(--color-danger); }
.badge-gold { background: rgba(197,168,128,0.15); color: var(--color-prestige-gold-dark); }

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-prestige-border);
  border-radius: 100px;
  transition: all 0.25s;
  flex: 1;
  max-width: 400px;
}

.search-bar:focus-within {
  border-color: var(--color-prestige-gold);
  box-shadow: 0 0 0 3px rgba(197,168,128,0.1);
}

.search-bar .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-prestige-slate);
  flex-shrink: 0;
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  color: var(--color-prestige-dark);
  width: 100%;
  font-family: var(--font-base);
}

.search-bar input::placeholder { color: #9AA0A6; }

/* Page Header */
.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-prestige-dark);
  letter-spacing: -0.5px;
  font-family: var(--font-headings);
  line-height: 1.2;
}

.page-header p {
  font-size: 0.95rem;
  color: var(--color-prestige-slate);
  margin-top: 6px;
  line-height: 1.5;
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  backdrop-filter: blur(4px);
}

.sidebar-overlay.active { display: block; }

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-prestige-dark);
  margin-bottom: 8px;
}

.form-label span.required {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-label span.hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-prestige-slate);
  margin-left: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--color-prestige-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 0.92rem;
  color: var(--color-prestige-dark);
  font-family: var(--font-base);
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-prestige-gold);
  box-shadow: 0 0 0 3px rgba(197,168,128,0.1);
}

.form-input::placeholder { color: #9AA0A6; }

.form-input.pin-input {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  padding: 14px 20px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--color-prestige-slate);
  margin-top: 6px;
  line-height: 1.4;
}

.form-error {
  font-size: 0.78rem;
  color: var(--color-danger);
  margin-top: 6px;
  display: none;
}

.form-error.visible { display: block; }

/* Divider */
.divider {
  height: 1px;
  background: var(--color-prestige-divider);
  margin: 24px 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-prestige-dark);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--color-prestige-slate);
  max-width: 360px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-prestige-border);
  border-top-color: var(--color-prestige-gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--color-prestige-dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.35s var(--ease-spring) forwards;
  max-width: 320px;
}

.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }
.toast.warning { background: var(--color-warning); color: #333; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(20px) scale(0.95); }
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-spring), transform 0.5s var(--ease-spring);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Workshop Cards (for find/index pages) */
.workshop-card {
  background: var(--color-surface);
  border: 1px solid var(--color-prestige-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workshop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-prestige-gold), var(--color-prestige-gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-spring);
}

.workshop-card:hover {
  border-color: var(--color-prestige-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.workshop-card:hover::before { transform: scaleX(1); }

.workshop-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workshop-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(197,168,128,0.1);
  color: var(--color-prestige-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.workshop-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-prestige-dark);
  line-height: 1.3;
}

.workshop-card-company {
  font-size: 0.82rem;
  color: var(--color-prestige-slate);
  margin-top: 2px;
}

.workshop-card-hosts {
  font-size: 0.82rem;
  color: var(--color-prestige-slate);
  display: flex;
  align-items: center;
  gap: 4px;
}

.workshop-card-stats {
  display: flex;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--color-prestige-divider);
}

.workshop-stat-item {
  display: flex;
  flex-direction: column;
}

.workshop-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-prestige-dark);
  line-height: 1;
}

.workshop-stat-label {
  font-size: 0.72rem;
  color: var(--color-prestige-slate);
  margin-top: 3px;
}

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--color-prestige-divider);
  padding: 4px;
  border-radius: 100px;
}

.filter-tab {
  padding: 6px 16px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--color-prestige-slate);
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.filter-tab.active {
  background: var(--color-surface);
  color: var(--color-prestige-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Leaderboard Row */
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-prestige-divider);
  transition: background 0.15s;
}

.leaderboard-row:last-child { border-bottom: none; }

.leaderboard-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-prestige-dark);
}

.leaderboard-xp {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-prestige-gold-dark);
}

.leaderboard-lessons {
  font-size: 0.78rem;
  color: var(--color-prestige-slate);
  white-space: nowrap;
}

/* Progress Bar */
.progress-bar-wrap {
  height: 6px;
  background: var(--color-prestige-divider);
  border-radius: 100px;
  overflow: hidden;
  flex: 1;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-prestige-gold), var(--color-prestige-gold-dark));
  border-radius: 100px;
  transition: width 0.8s var(--ease-spring);
}

/* ══════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease-spring);
}

.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-prestige-dark);
  margin-bottom: 8px;
  font-family: var(--font-headings);
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--color-prestige-slate);
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════
   DATE RANGE PICKER
══════════════════════════════════════════════════════ */
.date-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-input {
  padding: 8px 14px;
  border: 1.5px solid var(--color-prestige-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-prestige-dark);
  font-family: var(--font-base);
  outline: none;
  transition: border-color 0.2s;
}

.date-input:focus { border-color: var(--color-prestige-gold); }

/* ══════════════════════════════════════════════════════
   EXPORT / ACTION ROW
══════════════════════════════════════════════════════ */
.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════
   GRID LAYOUTS
══════════════════════════════════════════════════════ */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.charts-grid .chart-card.full-width {
  grid-column: 1 / -1;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .charts-grid .chart-card.full-width { grid-column: 1; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 100;
  }

  .sidebar.open { transform: translateX(0); }

  .main-area { margin-left: 0; }

  .menu-toggle { display: flex; }

  .page-content {
    padding: 20px 16px;
  }

  .topbar { padding: 0 16px; }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workshops-grid {
    grid-template-columns: 1fr;
  }

  .page-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .data-table th, .data-table td {
    padding: 10px 12px;
    font-size: 0.83rem;
  }

  .topbar-title { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .chart-card, .stat-card {
    padding: 16px;
  }

  .modal { padding: 24px 20px; }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .action-row .btn { justify-content: center; }

  .filter-tabs {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
  }

  .toast-container {
    bottom: 16px;
    left: 16px;
    right: 16px;
    align-items: stretch;
  }

  .toast { max-width: 100%; }
}

/* ── Additional Mobile Responsiveness & Overlap Fixes ── */
@media (max-width: 600px) {
  .hide-mobile {
    display: none !important;
  }

  .topbar-right .btn span:not(.material-symbols-outlined) {
    display: none;
  }

  .topbar-right .btn {
    padding: 0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    justify-content: center;
  }
}
