@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(26, 31, 53, 0.85);
  --bg-card-solid: #1a1f35;
  --bg-elevated: #1e2440;
  --border: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.03);
  --border-glow: rgba(99, 102, 241, 0.3);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --betsson: #3b82f6;
  --bplay: #10b981;
  --sbmza: #f59e0b;
  --sbpba: #06b6d4;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}

/* ─── Header ─── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot.live {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s infinite;
}

.status-dot.stale {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

.status-dot.error {
  background: var(--danger);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.4
  }
}

.btn-sync {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s var(--transition);
  font-family: inherit;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

.btn-sync:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

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

.btn-sync:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-sync.syncing svg {
  animation: spin .8s linear infinite;
}

.btn-sync-sm {
  padding: 4px 12px;
  font-size: 11px;
}

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

/* ─── Update Banner ─── */
.update-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 28px;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.08), rgba(234, 179, 8, 0.03));
  border-bottom: 1px solid rgba(234, 179, 8, 0.15);
  font-size: 12px;
  color: var(--warning);
}

.update-banner.show {
  display: flex;
}

/* ═══ TOOLBAR ═══ */
.toolbar {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 55px;
  z-index: 90;
  padding: 0 28px;
}

/* ─── Nav Tabs ─── */
.nav-tabs {
  display: flex;
  gap: 2px;
  padding-top: 10px;
  position: relative;
}

.nav-slider {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transition: left .35s var(--transition), width .35s var(--transition);
  z-index: 2;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px 8px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all .2s;
  white-space: nowrap;
  font-family: inherit;
  position: relative;
}

.nav-tab svg {
  opacity: 0.5;
  transition: opacity .2s;
}

.nav-tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab:hover svg {
  opacity: 0.8;
}

.nav-tab.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-tab.active svg {
  opacity: 1;
}

.op-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 6px var(--dot);
  transition: box-shadow .2s;
}

.nav-tab.active .op-dot {
  box-shadow: 0 0 10px var(--dot);
}

/* ═══ FILTER CONTROL ═══ */
.filter-control {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 12px;
}

/* ─── Segmented Control ─── */
.filter-segment {
  display: flex;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 1px;
}

.filter-slider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  background: linear-gradient(135deg, var(--accent), rgba(99, 102, 241, 0.8));
  border-radius: 8px;
  transition: left .3s var(--transition), width .3s var(--transition);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.filter-btn {
  position: relative;
  z-index: 2;
  padding: 6px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: color .2s;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.filter-btn:hover {
  color: var(--text-secondary);
}

.filter-btn.active {
  color: #fff;
  font-weight: 600;
}

/* ─── Divider ─── */
.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

/* ─── Custom Date Range ─── */
.filter-custom {
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 8px;
  color: var(--text-secondary);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  width: 120px;
  color-scheme: dark;
}

.date-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}

.date-sep {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.date-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--success);
  cursor: pointer;
  transition: all .2s;
}

.date-apply:hover {
  background: rgba(34, 197, 94, 0.2);
  transform: scale(1.05);
}

/* ─── Filter Info ─── */
.filter-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 11px;
}

.filter-range {
  color: var(--text-muted);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.filter-count {
  color: var(--accent-light);
  font-weight: 600;
}

/* ═══ MAIN CONTENT ═══ */
.main {
  padding: 20px 28px;
  max-width: 1600px;
  margin: 0 auto;
}

/* ─── Overview Cards ─── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

/* ─── TOTAL Card (full-width hero) ─── */
.total-card {
  grid-column: 1/-1 !important;
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.06), rgba(26, 31, 53, 0.85)) !important;
  border-color: rgba(167, 139, 250, 0.15) !important;
}

.total-card::before {
  background: linear-gradient(90deg, #a78bfa, #818cf8, transparent) !important;
}

.total-card:hover {
  border-color: rgba(167, 139, 250, 0.35) !important;
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.12) !important;
}

.total-card .op-card-value {
  font-size: 42px;
}

.total-card .op-card-label {
  font-size: 12px;
}

.total-card .progress-bar {
  height: 7px;
}

.op-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: all .35s var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.op-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.op-card[data-op="betsson"]::before {
  background: linear-gradient(90deg, var(--betsson), transparent);
}

.op-card[data-op="bplay"]::before {
  background: linear-gradient(90deg, var(--bplay), transparent);
}

.op-card[data-op="sbmza"]::before {
  background: linear-gradient(90deg, var(--sbmza), transparent);
}

.op-card[data-op="sbpba"]::before {
  background: linear-gradient(90deg, var(--sbpba), transparent);
}

.op-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.04), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}

.op-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.op-card:hover::after {
  opacity: 1;
}

.op-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.op-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.op-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.op-card-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 2px;
  line-height: 1.1;
}

.op-card-value.animating {
  transition: none;
}

.op-card-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.op-card-progress {
  margin-bottom: 10px;
}

.progress-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s var(--transition);
}

.op-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.op-card-footer .goal-val {
  color: var(--text-secondary);
  font-weight: 600;
}

.op-card-mini {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.op-card-mini strong {
  color: var(--text-primary);
}

/* ─── Section ─── */
.section {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ─── Charts ─── */
.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.chart-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

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

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

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

.chart-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.chart-container {
  position: relative;
  height: 260px;
}

/* ─── KPIs ─── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-align: center;
  transition: all .3s var(--transition);
}

.kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

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

/* ─── Table ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  text-align: left;
  padding: 9px 12px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card-solid);
}

.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all .15s;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.data-table .rank {
  color: var(--text-muted);
  font-weight: 700;
  width: 28px;
}

.data-table .name {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-bar {
  display: inline-block;
  height: 5px;
  border-radius: 3px;
  vertical-align: middle;
  transition: width .5s var(--transition);
}

/* ─── Goals Editor ─── */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color .2s;
}

.goal-item:focus-within {
  border-color: var(--accent);
}

.goal-item label {
  font-size: 13px;
  font-weight: 500;
  min-width: 110px;
}

.goal-item input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: border-color .2s;
}

.goal-item input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-save-goals {
  padding: 10px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  transition: all .2s;
  font-family: inherit;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.25);
}

.btn-save-goals:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

/* ─── Tab Content ─── */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeSlideIn .35s var(--transition);
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ─── Detail View ─── */
.detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.detail-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.detail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.detail-period {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-period .period-badge {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-light);
  font-weight: 600;
  font-size: 11px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width:1200px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .total-card {
    grid-column: 1/-1 !important;
  }
}

@media (max-width:768px) {
  .header {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .toolbar {
    padding: 0 16px;
  }

  .nav-tabs {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-control {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0 10px;
  }

  .filter-custom {
    order: 3;
    width: 100%;
  }

  .filter-info {
    order: 4;
    width: 100%;
  }

  .main {
    padding: 14px 16px;
  }

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

  .charts-row {
    grid-template-columns: 1fr;
  }

  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .op-card-value {
    font-size: 26px;
  }

  .chart-container {
    height: 200px;
  }
}

/* ─── Loading ─── */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state h2 {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 13px;
  margin-bottom: 20px;
}

/* ─── Skeleton Loaders ─── */
.skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.04) 25%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 140px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.skeleton-chart {
  height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.skeleton-text {
  height: 14px;
  width: 60%;
  margin: 8px 0;
}

.skeleton-text.short {
  width: 35%;
}

.skeleton-text.full {
  width: 100%;
}

/* ─── Stagger Entrance Animations ─── */
.stagger-in {
  animation: fadeSlideUp 0.45s var(--transition) both;
}

.stagger-in:nth-child(1) {
  animation-delay: 0s;
}

.stagger-in:nth-child(2) {
  animation-delay: 0.06s;
}

.stagger-in:nth-child(3) {
  animation-delay: 0.12s;
}

.stagger-in:nth-child(4) {
  animation-delay: 0.18s;
}

.stagger-in:nth-child(5) {
  animation-delay: 0.24s;
}

.stagger-in:nth-child(6) {
  animation-delay: 0.30s;
}

.stagger-in:nth-child(7) {
  animation-delay: 0.36s;
}

.stagger-in:nth-child(8) {
  animation-delay: 0.42s;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ─── Delta Chips (KPI comparison) ─── */
.delta-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.delta-chip.positive {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.delta-chip.negative {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.delta-chip.neutral {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}

/* ─── Toast Notifications ─── */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--text-primary);
  transform: translateX(120%);
  transition: transform 0.35s var(--transition), opacity 0.35s ease;
  opacity: 0;
  pointer-events: all;
  max-width: 360px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-error {
  border-left: 3px solid var(--danger);
}

.toast-info {
  border-left: 3px solid var(--accent);
}

.toast-warning {
  border-left: 3px solid var(--warning);
}

/* ─── Mobile Hamburger Menu ─── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 768px) {
  .header {
    padding: 10px 16px;
  }

  .header-right {
    display: none;
  }

  .header-right.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 54px;
    right: 12px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    box-shadow: var(--shadow);
    gap: 10px;
    z-index: 200;
    min-width: 200px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .content {
    padding: 12px !important;
  }
}