/* Alt/Finance Brand Kit v2.0 — Light Mode Dashboard Theme */

:root {
  /* Core brand */
  --alt-blue: #0049FF;
  --alt-navy: #211F54;
  --alt-midnight: #000043;
  --alt-teal: #00D4AA;
  --alt-purple: #4A3AFF;
  --soft-blue: #4D7FFF;
  --alt-gold: #F5A623;

  /* Semantic */
  --green: #10B981;
  --green-soft: rgba(16, 185, 129, 0.12);
  --red: #EF4444;
  --red-soft: rgba(239, 68, 68, 0.12);
  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, 0.12);

  /* Light mode surfaces */
  --bg-primary: #FFFFFF;
  --bg-section: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-elevated: #EEF1F7;
  --bg-input: #FFFFFF;

  /* Text */
  --text-primary: #1A1D29;
  --text-secondary: #4C5163;
  --text-muted: #868CA0;

  /* Borders */
  --border: #E3E7EF;
  --border-light: #EDF0F5;
  --border-hover: #C9CFDB;

  /* Interactive — Alt Blue on light backgrounds */
  --accent: #0049FF;
  --accent-hover: #0039CC;
  --accent-soft: rgba(0, 73, 255, 0.10);

  /* Radii (brand tokens) */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 999px;

  /* Elevation */
  --shadow-raised: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-overlay: 0 4px 16px rgba(0,0,0,0.12), 0 12px 40px rgba(0,0,0,0.08);

  /* Typography */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: 150ms ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { font-family: var(--font-heading); }

/* --- Layout --- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header .logo {
  display: flex;
  align-items: center;
}

.app-header .logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

.app-header .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.app-header .btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.app-header .btn-sm:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.dashboard-container {
  width: 100%;
  margin: 0;
  padding: 24px;
}

/* --- Login Screen --- */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  gap: 24px;
}

.login-screen h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.login-screen p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 400px;
  text-align: center;
  line-height: 1.6;
}

.btn-login {
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-login:hover { background: var(--accent-hover); }

/* --- Dashboard Catalog --- */
.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.catalog-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catalog-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.catalog-filter-select {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  min-width: 200px;
  cursor: pointer;
}

.catalog-empty {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 24px 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.catalog-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-raised);
}

.catalog-card .card-category {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.catalog-card .card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.catalog-card .card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.catalog-section-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.filter-group label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.filter-group select,
.filter-group input {
  padding: 7px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-body);
  transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.filter-group select option {
  background: var(--bg-section);
  color: var(--text-primary);
}

/* --- Multi-select checkbox dropdown (filter bar) --- */
.ms-dropdown {
  position: relative;
  min-width: 180px;
}

.ms-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}

.ms-toggle:hover { border-color: var(--border-hover); }

.ms-dropdown.ms-open .ms-toggle {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ms-dropdown.ms-has-value .ms-toggle {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.ms-toggle-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-caret {
  color: var(--text-muted);
  font-size: 10px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.ms-dropdown.ms-open .ms-caret { transform: rotate(180deg); }

.ms-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  min-width: 100%;
  max-width: 300px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-overlay);
}

.ms-dropdown.ms-open .ms-panel { display: block; }

.ms-search {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  margin-bottom: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-body);
}

.ms-search:focus {
  outline: none;
  border-color: var(--accent);
}

.ms-list {
  max-height: 230px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ms-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
}

.ms-option:hover { background: var(--bg-elevated); }

.ms-option input {
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.ms-option span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-apply {
  padding: 7px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-end;
  font-family: var(--font-body);
}

.filter-apply:hover { background: var(--accent-hover); }

/* --- Dashboard Title --- */
.dashboard-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dashboard-title-bar h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.dashboard-title-bar .breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
}

.dashboard-title-bar .breadcrumb a { color: var(--text-secondary); }

/* --- KPI Row --- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.kpi-card .kpi-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.kpi-card .kpi-value {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.kpi-card .kpi-sparkline {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 40px;
  opacity: 0.6;
}

.kpi-card .kpi-change {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-change.positive { color: var(--green); }
.kpi-change.negative { color: var(--red); }

/* --- Chart Grid --- */
.chart-row {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-row.cols-2 { grid-template-columns: 1fr 1fr; }
.chart-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.chart-row.cols-1-2 { grid-template-columns: 1fr 2fr; }
.chart-row.cols-2-1 { grid-template-columns: 2fr 1fr; }

.chart-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 380px;
  overflow: hidden;
  position: relative;
}

.chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.chart-panel .chart-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.chart-panel canvas {
  flex: 1;
  min-height: 0;
}

.chart-panel .chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-muted);
  font-size: 13px;
  min-height: 200px;
}

/* --- Data Table --- */
.table-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 20px;
  overflow: hidden;
}

.table-panel .table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.table-panel .table-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.table-panel .table-count {
  font-size: 12px;
  color: var(--text-muted);
}

.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.data-table th:hover { color: var(--text-secondary); }

.data-table th.sort-asc::after { content: ' \25B2'; font-size: 9px; }
.data-table th.sort-desc::after { content: ' \25BC'; font-size: 9px; }

.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.data-table tr:hover td { background: rgba(77, 127, 255, 0.04); }

.data-table .cell-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-input);
}

.data-table .cell-usd {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.data-table .cell-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.data-table .cell-status.sold {
  background: var(--green-soft);
  color: var(--green);
}

.data-table .cell-status.unsold {
  background: var(--red-soft);
  color: var(--red);
}

.data-table .cell-status.withdrawn {
  background: var(--amber-soft);
  color: var(--amber);
}

.data-table .cell-status.pending {
  background: var(--accent-soft);
  color: var(--accent);
}

.data-table .cell-status.passed {
  background: rgba(106, 106, 133, 0.12);
  color: var(--text-muted);
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.table-pagination .page-info {
  font-size: 12px;
  color: var(--text-muted);
}

.table-pagination .page-btns {
  display: flex;
  gap: 6px;
}

.table-pagination button {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.table-pagination button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.table-pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- Loading & Empty States --- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 300;
  transition: width 300ms ease;
}

.section-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 13px;
  gap: 10px;
}

.section-loading .spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .chart-row.cols-2 { grid-template-columns: 1fr; }
  .chart-row.cols-3 { grid-template-columns: 1fr; }
  .chart-row.cols-1-2 { grid-template-columns: 1fr; }
  .chart-row.cols-2-1 { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

@media (max-width: 640px) {
  .dashboard-container { padding: 12px; }
  .app-header { padding: 10px 14px; }
  .filter-bar { flex-direction: column; }
  .filter-group { width: 100%; }
  .kpi-card .kpi-value { font-size: 20px; }
  .catalog-grid { grid-template-columns: 1fr; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* --- Chart.js overrides --- */
.chartjs-tooltip {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
}

/* --- Collapsible Sidebar Navigation --- */
:root { --sidebar-w: 264px; --header-h: 56px; }

.app-header .header-left { display: flex; align-items: center; gap: 0; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.nav-toggle:hover { border-color: var(--border-hover); color: var(--text-primary); }

.app-body { display: flex; align-items: flex-start; }

.sidebar {
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-section);
  border-right: 1px solid var(--border);
  transition: flex-basis 200ms ease, width 200ms ease, transform 200ms ease;
  z-index: 90;
}

.sidebar-nav { width: var(--sidebar-w); padding: 10px 10px 32px; }

body.sidebar-collapsed .sidebar {
  flex-basis: 0;
  width: 0;
  border-right-color: transparent;
}

.content-area { flex: 1 1 auto; min-width: 0; }
.content-area .dashboard-container { width: 100%; }

.nav-group-title {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 16px 12px 6px;
}

.nav-item {
  display: block;
  padding: 8px 12px;
  margin: 1px 0;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition);
}
.nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}
.nav-home {
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 6px;
}

.sidebar-backdrop { display: none; }

body.logged-out .nav-toggle,
body.logged-out .sidebar,
body.logged-out .sidebar-backdrop { display: none; }

@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    flex-basis: var(--sidebar-w);
    width: var(--sidebar-w);
    transform: translateX(0);
    box-shadow: var(--shadow-overlay);
  }
  body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
    flex-basis: var(--sidebar-w);
    width: var(--sidebar-w);
    border-right-color: var(--border);
  }
  .content-area { width: 100%; flex-basis: 100%; }
  body:not(.sidebar-collapsed):not(.logged-out) .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: rgba(0, 0, 0, 0.5);
    z-index: 85;
  }
}

/* ── Chart polish: expand-to-fullscreen, modal, loading skeleton ── */
.chart-expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s, color .15s, border-color .15s;
  z-index: 5;
}
.chart-panel:hover .chart-expand-btn { opacity: .7; }
.chart-expand-btn:hover { opacity: 1; color: var(--alt-blue); border-color: var(--alt-blue); }

.chart-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px;
}
.chart-modal.open { display: flex; }
.chart-modal-inner {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  width: min(1100px, 92vw);
  height: min(680px, 86vh);
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
}
.chart-modal-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-right: 40px;
}
.chart-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-modal-close:hover { color: var(--text-primary); border-color: var(--border-hover); }
.chart-modal-canvas { position: relative; flex: 1; min-height: 0; }

.chart-skeleton {
  position: absolute;
  inset: 42px 18px 18px;
  display: flex;
  align-items: flex-end;
}
.chart-skeleton .sk-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  height: 100%;
}
.chart-skeleton .sk-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, rgba(0, 73, 255, 0.06) 25%, rgba(0, 73, 255, 0.13) 37%, rgba(0, 73, 255, 0.06) 63%);
  background-size: 400% 100%;
  animation: sk-shimmer 1.4s ease infinite;
}
@keyframes sk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
