/* ── DASHBOARD PANEL ── */
.dash-panel {
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.dash-titlebar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  background: #0f0f0f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash-titlebar .titlebar-dots { margin-right: 8px; }
.dash-titlebar-url {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  color: #555;
  flex: 1;
  max-width: 500px;
}
.dash-body {
  display: flex;
  height: 600px;
  overflow: hidden;
}

/* Sidebar */
.dash-sidebar {
  width: 210px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.dash-sidebar-brand {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash-brand-select {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.dash-brand-select:hover { background: rgba(255,255,255,0.03); }
.dash-brand-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.dash-nav-label {
  padding: 14px 16px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
  font-weight: 600;
}
.dash-nav-group {
  display: flex;
  flex-direction: column;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  color: #888;
  transition: all .15s;
  position: relative;
}
.dash-nav-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.dash-nav-item.active {
  background: rgba(204,255,102,0.08);
  color: #ccff66;
}
.dash-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px; bottom: 4px;
  width: 3px;
  background: #ccff66;
  border-radius: 0 2px 2px 0;
}
.dash-nav-item.sub {
  padding-left: 42px;
  font-size: 12px;
}

/* Main content area */
.dash-main {
  flex: 1;
  background: #0e0e0e;
  overflow: hidden;
  padding: 0;
}
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 0;
}
.dash-header-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.dash-header-left svg { margin-top: 4px; }
.dash-title {
  font-family: 'Jost', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0;
}
.dash-subtitle {
  font-size: 13px;
  color: #555;
  margin-top: 2px;
}
.dash-header-right { display: flex; gap: 10px; }
.dash-country-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
}

/* Tabs */
.dash-tabs {
  display: flex;
  gap: 2px;
  padding: 16px 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 12px;
  color: #555;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.dash-tab:hover { color: #888; background: rgba(255,255,255,0.03); }
.dash-tab.active {
  color: #ccff66;
  background: rgba(204,255,102,0.06);
}
.dash-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: #ccff66;
  border-radius: 2px 2px 0 0;
}

/* Filters */
.dash-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
}
.dash-filter-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  transition: all .15s;
}
.dash-filter-pill:hover { border-color: rgba(255,255,255,0.15); }
.dash-filter-vs {
  font-size: 12px;
  color: #555;
  padding: 0 4px;
}
.dash-export-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #ccff66;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  margin-left: auto;
  transition: opacity .15s;
}
.dash-export-btn:hover { opacity: 0.85; }

/* Score header */
.dash-score-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 28px 12px;
}
.dash-score-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.dash-score-desc {
  font-size: 12px;
  color: #555;
  margin-top: 2px;
}
.dash-info-icon {
  font-size: 12px;
  color: #555;
  cursor: help;
}
.dash-chart-config {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
}

/* Score area */
.dash-score-area {
  display: flex;
  gap: 0;
  margin: 0 28px 12px;
  border: 1px solid rgba(204,255,102,0.15);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(204,255,102,0.02);
}
.dash-chart-zone {
  flex: 1;
  padding: 20px 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.dash-score-box { margin-bottom: 12px; }
.dash-score-label {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}
.dash-score-value {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
}
.dash-score-change {
  font-size: 16px;
  font-weight: 600;
  margin-left: 8px;
  letter-spacing: 0;
}
.dash-score-change.up { color: #ccff66; }
.dash-score-change.down { color: #ff4466; }
.dash-chart-container {
  height: 180px;
  position: relative;
}
.dash-chart-legend {
  display: flex;
  gap: 20px;
  padding-top: 12px;
}
.dash-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #555;
  cursor: pointer;
}
.dash-legend-item input { display: none; }
.dash-legend-check {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: #ccff66;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-legend-check.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Rank zone */
.dash-rank-zone {
  width: 300px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dash-rank-header {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}
.dash-rank-value {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 16px;
}
.dash-rank-change {
  font-size: 14px;
  font-weight: 600;
  margin-left: 8px;
  letter-spacing: 0;
}
.dash-rank-change.up { color: #ccff66; }
.dash-rank-change.down { color: #ff4466; }
.dash-rank-table-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 4px;
}
.dash-rank-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  overflow: hidden;
}
.dash-rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  transition: background .15s;
  font-size: 13px;
}
.dash-rank-row:hover { background: rgba(255,255,255,0.03); }
.dash-rank-row.highlight {
  background: rgba(204,255,102,0.06);
  border: 1px solid rgba(204,255,102,0.12);
}
.dash-rank-pos {
  font-size: 11px;
  color: #555;
  width: 18px;
  text-align: right;
}
.dash-rank-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.dash-rank-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-owned-badge {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(204,255,102,0.15);
  color: #ccff66;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dash-rank-score {
  font-size: 14px;
  font-weight: 700;
  margin-left: auto;
}
.dash-rank-delta {
  font-size: 11px;
  font-weight: 500;
  width: 40px;
  text-align: right;
}
.dash-rank-delta.up { color: #ccff66; }
.dash-rank-delta.down { color: #ff4466; }
.dash-rank-expand {
  text-align: center;
  padding: 10px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
  transition: color .15s;
}
.dash-rank-expand:hover { color: #888; }

/* Add note */
.dash-add-note {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 28px 20px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}
.dash-add-note:hover { color: #888; }

/* Responsive */
@media (max-width: 1024px) {
  .dash-sidebar { display: none; }
  .dash-body { height: auto; min-height: 500px; }
  .dash-score-area { flex-direction: column; }
  .dash-rank-zone { width: 100%; border-top: 1px solid rgba(255,255,255,0.06); }
}
@media (max-width: 768px) {
  .dash-filters { flex-wrap: wrap; }
  .dash-tabs { overflow-x: hidden; }
}