/* ==========================================================================
   Aurum Capital — shared components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--night);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: .8rem 1.5rem;
  font-size: var(--fs-15, .9375rem); font-weight: 700; line-height: 1.2;
  letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-md);
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-xs); }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--gold   { --btn-bg: var(--gold); --btn-fg: var(--night); }
.btn--gold:hover { --btn-bg: var(--gold-3); box-shadow: var(--sh-gold); }
.btn--night  { --btn-bg: var(--night-2); --btn-fg: var(--ink-invert); }
.btn--night:hover { --btn-bg: var(--night-3); }
.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bg: var(--surface-2); --btn-bd: var(--ink-4); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--ink-invert); --btn-bd: rgba(255,255,255,.3); }
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,.1); --btn-bd: var(--gold); }
.btn--success { --btn-bg: var(--up); --btn-fg: #fff; }
.btn--success:hover { --btn-bg: var(--up-ink); }
.btn--danger { --btn-bg: var(--down); --btn-fg: #fff; }
.btn--danger:hover { --btn-bg: var(--down-deep); }
.btn--soft   { --btn-bg: var(--surface-2); --btn-fg: var(--ink-2); }
.btn--soft:hover { --btn-bg: var(--surface-3); --btn-fg: var(--ink); }
.btn--link   { --btn-bg: transparent; --btn-fg: var(--gold-deep); padding: .35rem .1rem; }
.btn--link:hover { box-shadow: none; transform: none; text-decoration: underline; }

.btn--sm { padding: .5rem 1rem; font-size: var(--fs-13); border-radius: var(--r-sm); }
.btn--lg { padding: 1rem 2rem; font-size: var(--fs-18); border-radius: var(--r-lg); }
.btn--block { display: flex; width: 100%; }
.btn--icon { padding: .55rem; border-radius: var(--r-sm); }

.btn-group { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Cards & panels
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--line-soft);
}
.card__title { font-size: var(--fs-18); margin: 0; }
.card__sub { font-size: var(--fs-13); color: var(--ink-3); margin: .2rem 0 0; }
.card__body { padding: var(--sp-6); }
.card__body--flush { padding: 0; }
.card__foot {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.card--night { background: var(--night-2); border-color: var(--line-night); color: var(--ink-4); }
.card--night .card__title, .card--night .figure { color: var(--ink-invert); }
.card--night .card__head, .card--night .card__foot { border-color: var(--line-night); background: transparent; }
.card--flat { box-shadow: none; }
.card--hover { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

/* --------------------------------------------------------------------------
   Stat tiles
   -------------------------------------------------------------------------- */

.stat {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-6);
  box-shadow: var(--sh-xs);
}
.stat::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--stat-accent, var(--gold));
}
.stat__label {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-12); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--sp-2);
}
.stat__value { font-family: var(--font-display); font-size: var(--fs-28); font-weight: 700; line-height: 1.1; color: var(--ink); }
.stat__meta { margin-top: var(--sp-2); font-size: var(--fs-13); color: var(--ink-3); }
.stat__icon {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--surface-2); color: var(--stat-accent, var(--gold-deep));
}
.stat--gold   { --stat-accent: var(--gold); }
.stat--up     { --stat-accent: var(--up); }
.stat--down   { --stat-accent: var(--down); }
.stat--info   { --stat-accent: var(--info); }
.stat--warn   { --stat-accent: var(--warn); }

.delta { display: inline-flex; align-items: center; gap: .25rem; font-size: var(--fs-13); font-weight: 700; }
.delta--up { color: var(--up-ink); }
.delta--down { color: var(--down); }

/* --------------------------------------------------------------------------
   Pills & badges
   -------------------------------------------------------------------------- */

.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .7rem;
  font-size: var(--fs-12); font-weight: 700; letter-spacing: .02em;
  border-radius: var(--r-full); white-space: nowrap;
  background: var(--info-soft); color: var(--info);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--success { background: var(--up-soft); color: var(--up-ink); }
.pill--warning { background: var(--warn-soft); color: #A85F03; }
.pill--danger  { background: var(--down-soft); color: var(--down); }
.pill--muted   { background: var(--surface-3); color: var(--ink-3); }
.pill--info    { background: var(--info-soft); color: var(--info); }
.pill--plain::before { display: none; }

.badge {
  display: inline-block; padding: .2rem .55rem;
  font-size: var(--fs-12); font-weight: 700; border-radius: var(--r-sm);
  background: var(--gold); color: var(--night);
}
.badge--outline { background: transparent; border: 1px solid var(--gold); color: var(--gold-deep); }

.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: .4rem .85rem; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  font-size: var(--fs-13); color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { margin-bottom: var(--sp-5); }
.field__label {
  display: block; margin-bottom: var(--sp-2);
  font-size: var(--fs-13); font-weight: 600; color: var(--ink-2);
}
.field__label .req { color: var(--down); margin-left: 2px; }
.field__hint { margin-top: var(--sp-2); font-size: var(--fs-12); color: var(--ink-3); }
.field__error { margin-top: var(--sp-2); font-size: var(--fs-12); font-weight: 600; color: var(--down); }

.input, .select, .textarea {
  width: 100%; padding: .78rem 1rem;
  font-size: var(--fs-15, .9375rem); color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 186, 8, .18);
}
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--down); }
.input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(208, 0, 0, .14); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234E567E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

.input-group { position: relative; display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--r-md) 0 0 var(--r-md); }
.input-group__addon {
  display: grid; place-items: center; padding-inline: 1rem;
  background: var(--surface-2); border: 1.5px solid var(--line); border-left: 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-weight: 700; font-size: var(--fs-14); color: var(--ink-2);
}
.input-group__addon--lead {
  border-left: 1.5px solid var(--line); border-right: 0;
  border-radius: var(--r-md) 0 0 var(--r-md);
}
.input-group__addon--lead + .input { border-radius: 0 var(--r-md) var(--r-md) 0; }

.check {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  font-size: var(--fs-14); color: var(--ink-2); cursor: pointer;
}
.check input[type="checkbox"], .check input[type="radio"] {
  width: 20px; height: 20px; margin: 1px 0 0; flex: none;
  accent-color: var(--gold-2); cursor: pointer;
}

.switch { display: inline-flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 46px; height: 26px; border-radius: var(--r-full);
  background: var(--line); position: relative;
  transition: background var(--dur) var(--ease);
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease);
}
.switch input:checked + .switch__track { background: var(--up); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px rgba(255, 186, 8, .3); }

/* Selectable option cards (payment methods, plans, wallets) */
.option-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.option {
  position: relative; display: block; cursor: pointer;
  padding: var(--sp-4); border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); transition: all var(--dur) var(--ease);
}
.option input { position: absolute; opacity: 0; }
.option:hover { border-color: var(--ink-4); }
.option__title { font-weight: 700; font-size: var(--fs-14); color: var(--ink); }
.option__meta { font-size: var(--fs-12); color: var(--ink-3); margin-top: .15rem; }
.option:has(input:checked) {
  border-color: var(--gold); background: #FFFCF3;
  box-shadow: 0 0 0 3px rgba(255, 186, 8, .16);
}
.option:has(input:checked)::after {
  content: "✓"; position: absolute; top: 10px; right: 12px;
  font-weight: 700; color: var(--gold-deep);
}

.form-grid { display: grid; gap: 0 var(--sp-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid, .form-grid--3 { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.alert {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border-left: 4px solid var(--alert-accent, var(--info));
  background: var(--alert-bg, var(--info-soft));
  color: var(--ink-2); font-size: var(--fs-14); line-height: 1.55;
  margin-bottom: var(--sp-4);
}
.alert svg { width: 20px; height: 20px; flex: none; color: var(--alert-accent, var(--info)); margin-top: 1px; }
.alert strong { color: var(--ink); }
.alert--success { --alert-accent: var(--up); --alert-bg: var(--up-soft); }
.alert--warning { --alert-accent: var(--warn); --alert-bg: var(--warn-soft); }
.alert--danger  { --alert-accent: var(--down); --alert-bg: var(--down-soft); }
.alert--info    { --alert-accent: var(--info); --alert-bg: var(--info-soft); }
.alert__close { margin-left: auto; color: var(--ink-3); font-size: 1.1rem; line-height: 1; }

.toast-wrap {
  position: fixed; top: 20px; right: 20px; z-index: 1200;
  display: flex; flex-direction: column; gap: var(--sp-3); max-width: 380px;
}
.toast {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface); border-radius: var(--r-md);
  border-left: 4px solid var(--alert-accent, var(--info));
  box-shadow: var(--sh-lg);
  animation: toast-in .32s var(--ease);
}
.toast.is-leaving { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table { width: 100%; font-size: var(--fs-14); }
.table th {
  text-align: left; padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-12); font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3);
  background: var(--surface-2); white-space: nowrap;
  border-bottom: 1px solid var(--line-soft);
}
.table th:first-child { border-radius: var(--r-sm) 0 0 0; }
.table th:last-child  { border-radius: 0 var(--r-sm) 0 0; }
.table td {
  padding: var(--sp-4); border-bottom: 1px solid var(--line-soft);
  vertical-align: middle; color: var(--ink-2);
}
.table tbody tr { transition: background var(--dur) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .ref { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--ink-3); }
.table__primary { font-weight: 700; color: var(--ink); }
.table--compact td, .table--compact th { padding: var(--sp-2) var(--sp-3); }

.empty {
  padding: var(--sp-12) var(--sp-6); text-align: center; color: var(--ink-3);
}
.empty svg { width: 46px; height: 46px; margin: 0 auto var(--sp-4); color: var(--ink-4); }
.empty h4 { color: var(--ink-2); margin-bottom: var(--sp-2); }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pager {
  display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-6);
}
.pager__item {
  min-width: 38px; height: 38px; padding-inline: .6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: var(--fs-14); font-weight: 600; color: var(--ink-2);
  transition: all var(--dur) var(--ease);
}
.pager__item:hover { border-color: var(--gold); color: var(--gold-deep); }
.pager__item.is-active { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.pager__item.is-disabled { opacity: .4; pointer-events: none; }
.pager__gap { color: var(--ink-4); padding-inline: .25rem; }
.pager__meta { margin-left: auto; font-size: var(--fs-12); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Tabs & filters
   -------------------------------------------------------------------------- */

.tabs {
  display: flex; gap: var(--sp-1); flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft); margin-bottom: var(--sp-5);
}
.tabs__item {
  padding: .7rem 1.1rem; font-size: var(--fs-14); font-weight: 600;
  color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--dur) var(--ease);
}
.tabs__item:hover { color: var(--ink); }
.tabs__item.is-active { color: var(--gold-deep); border-bottom-color: var(--gold); }
.tabs__item .count {
  display: inline-block; margin-left: .4rem; padding: 0 .4rem;
  background: var(--surface-3); border-radius: var(--r-full);
  font-size: var(--fs-12); color: var(--ink-3);
}

.filters {
  display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: flex-end;
  padding: var(--sp-4) var(--sp-6); background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}
.filters .field { margin: 0; min-width: 150px; flex: 1 1 150px; }
.filters .input, .filters .select { padding: .55rem .8rem; font-size: var(--fs-13); }

/* --------------------------------------------------------------------------
   Avatars, progress, misc
   -------------------------------------------------------------------------- */

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--night-2); color: var(--gold);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-14);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 32px; height: 32px; font-size: var(--fs-12); }
.avatar--lg { width: 76px; height: 76px; font-size: var(--fs-24); }

.progress { height: 8px; background: var(--surface-3); border-radius: var(--r-full); overflow: hidden; }
.progress__bar {
  height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transition: width .5s var(--ease);
}
.progress--up .progress__bar { background: linear-gradient(90deg, var(--sage), var(--up)); }

.meter-row { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-13); }
.meter-row .progress { flex: 1; }

.kv { width: 100%; font-size: var(--fs-14); }
.kv td { padding: .7rem 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-3); }
.kv td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.kv tr:last-child td { border-bottom: 0; }

.copy-row {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2); border: 1px dashed var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: var(--fs-13); word-break: break-all;
}
.copy-row button { margin-left: auto; flex: none; color: var(--gold-deep); font-weight: 700; font-size: var(--fs-12); }

.divider {
  display: flex; align-items: center; gap: var(--sp-4);
  color: var(--ink-3); font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .1em;
  margin-block: var(--sp-5);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 1100;
  display: none; align-items: center; justify-content: center;
  padding: var(--sp-5); background: rgba(3, 7, 30, .6);
  backdrop-filter: blur(3px);
}
.modal.is-open { display: flex; animation: fade-in .2s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
.modal__box {
  width: min(100%, 520px); max-height: 88vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-xl);
  animation: modal-in .26s var(--ease);
}
.modal__box--wide { width: min(100%, 820px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--line-soft);
}
.modal__head h4 { margin: 0; }
.modal__body { padding: var(--sp-6); }
.modal__foot {
  display: flex; justify-content: flex-end; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line-soft); background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.modal__close { color: var(--ink-3); font-size: 1.4rem; line-height: 1; }
.modal__close:hover { color: var(--down); }

/* --------------------------------------------------------------------------
   Dropdown
   -------------------------------------------------------------------------- */

.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  min-width: 220px; padding: var(--sp-2);
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all var(--dur) var(--ease);
}
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__item {
  display: flex; align-items: center; gap: var(--sp-3);
  width: 100%; padding: .6rem .75rem; border-radius: var(--r-sm);
  font-size: var(--fs-14); color: var(--ink-2); text-align: left;
}
.dropdown__item:hover { background: var(--surface-2); color: var(--ink); }
.dropdown__item svg { width: 17px; height: 17px; color: var(--ink-3); }
.dropdown__item--danger { color: var(--down); }
.dropdown__item--danger:hover { background: var(--down-soft); color: var(--down); }
.dropdown__sep { height: 1px; background: var(--line-soft); margin: var(--sp-2) 0; }
.dropdown__head { padding: var(--sp-3) var(--sp-3) var(--sp-2); font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */

.accordion { border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.accordion + .accordion { margin-top: var(--sp-3); }
.accordion__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  width: 100%; padding: var(--sp-4) var(--sp-5); text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-16); color: var(--ink);
}
.accordion__head::after {
  content: "+"; font-family: var(--font-body); font-size: 1.3rem; color: var(--gold-deep);
  transition: transform var(--dur) var(--ease);
}
.accordion.is-open .accordion__head::after { content: "−"; }
.accordion__body { display: none; padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-2); font-size: var(--fs-15, .9375rem); }
.accordion.is-open .accordion__body { display: block; }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */

.timeline { position: relative; padding-left: var(--sp-6); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding-bottom: var(--sp-5); }
.timeline__item::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-6) + 2px); top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--tl-accent, var(--gold));
}
.timeline__item--up { --tl-accent: var(--up); }
.timeline__item--down { --tl-accent: var(--down); }
.timeline__item--info { --tl-accent: var(--info); }
.timeline__time { font-size: var(--fs-12); color: var(--ink-3); }
.timeline__title { font-weight: 700; font-size: var(--fs-14); color: var(--ink); }

/* --------------------------------------------------------------------------
   Charts (dependency-free SVG/CSS)
   -------------------------------------------------------------------------- */

.chart { width: 100%; height: 240px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart__grid line { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 3 4; }
.chart__line { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.chart__area { fill: url(#chartFade); stroke: none; }
.chart__dot { fill: var(--gold); stroke: var(--surface); stroke-width: 2; }
.chart__axis { font-size: 10px; fill: var(--ink-3); stroke: none; font-family: var(--font-body); }

.bars { display: flex; align-items: flex-end; gap: var(--sp-2); height: 160px; }
.bars__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: var(--sp-2); height: 100%; }
.bars__bar {
  width: 100%; max-width: 34px; border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  min-height: 3px; transition: height .5s var(--ease);
}
.bars__label { font-size: var(--fs-12); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.crumbs { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; font-size: var(--fs-13); color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--gold-deep); }
.crumbs span + span::before { content: "/"; margin-right: var(--sp-2); color: var(--ink-4); }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.w-full { width: 100%; }
.hide { display: none !important; }
@media (max-width: 820px) { .hide-sm { display: none !important; } }
@media (max-width: 1080px) { .hide-md { display: none !important; } }

/* Charts drawn by app.js fill their host box exactly */
[data-points] { position: relative; overflow: hidden; }
[data-points] > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
