/* ==========================================================================
   AURIC // BRAND SYSTEM (VAULT THEME)
   ========================================================================== */
:root {
  /* Auric Card Vault brand tokens, Vault (dark) theme */
  --bg-obsidian: #0A0A0B;
  --bg-panel: rgba(21, 21, 24, 0.92);
  --bg-card: rgba(21, 21, 24, 0.80);
  --bg-input: #1c1c20;
  --border-hairline: #2A2A2F;
  --text-primary: #F2F2F0;
  --text-secondary: #A3A3A8;
  --text-muted: #8A8A90;
  --accent-cyan: #F5B700; /* legacy name: now Bullion Gold (gold-text) */
  --accent-platinum: #F2F2F0;
  --telemetry-green: #2bb3a3;
  --telemetry-red: #f08a4b;
  --gold: #F5B700;
  --on-gold: #0A0A0B;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Chakra Petch", "Arial Narrow", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 18% 0%, rgba(245,183,0, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 12%, rgba(43,179,163, 0.04) 0%, transparent 40%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   LIVE MARKET TELEMETRY TICKER (SMOOTH SEAMLESS LOOP + EDGE FADE)
   ========================================================================== */
.live-ticker-bar {
  position: relative;
  width: 100%;
  height: 34px;
  background: #0A0A0B;
  border-bottom: 1px solid var(--border-hairline);
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 60;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.live-ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: tcbvTickerScroll 38s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  border-right: 1px solid rgba(154,164,174, 0.14);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

@keyframes tcbvTickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   TOP NAVIGATION HEADER
   ========================================================================== */
.tcb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,13,16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

.tcb-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(245,183,0, 0.08);
}

.nav-btn.active {
  color: var(--accent-cyan);
  background: rgba(245,183,0, 0.12);
  border-color: rgba(245,183,0, 0.35);
}

/* ==========================================================================
   MAIN CONTAINER & SECTION VISIBILITY
   ========================================================================== */
.tcb-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 24px 48px 24px;
}

.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}

.vault-subview {
  display: none;
}

.vault-subview.active {
  display: block;
}

/* ==========================================================================
   GLASS PANELS, TITANIUM CARDS & GLOW EFFECTS
   ========================================================================== */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 22px;
}

.titanium-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: 5px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.titanium-card:hover {
  border-color: rgba(245,183,0, 0.32);
}

.titanium-card.selected-cyan {
  border-color: var(--accent-cyan);
  background: rgba(245,183,0, 0.08);
}

.titanium-card.selected-platinum {
  border-color: var(--accent-platinum);
  background: rgba(236,238,240, 0.08);
}

.sovereign-glow {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   HORIZONTAL FILING-CABINET FOLDER TABS (MAXIMIZED WORKSPACE)
   ========================================================================== */
.folder-tab-bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 12px;
  background: rgba(11,13,16, 0.9);
  border-left: 1px solid var(--border-hairline);
  border-right: 1px solid var(--border-hairline);
  border-bottom: 1px solid rgba(245,183,0, 0.35);
  overflow-x: auto;
  scrollbar-width: none;
}

.folder-tab-bar::-webkit-scrollbar {
  display: none;
}

.folder-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  background: rgba(21,21,24, 0.65);
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
  border-bottom: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.folder-tab:hover {
  background: rgba(29,34,40, 0.85);
  color: var(--text-primary);
}

.folder-tab.active {
  background: #151518;
  color: var(--accent-cyan);
  border-color: rgba(245,183,0, 0.45);
  box-shadow: 0 -2px 10px rgba(245,183,0, 0.12);
  margin-bottom: -1px;
  padding-bottom: 12px;
  z-index: 2;
}

.folder-tab.upgrade-folder {
  margin-left: auto;
  background: rgba(236,238,240, 0.1);
  color: var(--accent-platinum);
  border-color: rgba(236,238,240, 0.35);
}

.folder-tab.upgrade-folder:hover {
  background: rgba(236,238,240, 0.2);
}

.folder-sheet {
  background: #151518;
  border: 1px solid rgba(245,183,0, 0.35);
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 20px;
}

/* ==========================================================================
   BUTTONS, PILLS & FORM INPUTS
   ========================================================================== */
.btn-cyan {
  background: var(--gold);
  color: var(--on-gold);
  border: 1px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-cyan:hover {
  filter: brightness(1.1);
}

.btn-cyan:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-platinum {
  background: rgba(236,238,240, 0.12);
  color: var(--accent-platinum);
  border: 1px solid rgba(236,238,240, 0.38);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-platinum:hover {
  background: rgba(236,238,240, 0.22);
}

.btn-ghost {
  background: rgba(21,21,24, 0.6);
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(154,164,174, 0.4);
}

.btn-danger {
  background: rgba(240,138,75, 0.14);
  color: var(--telemetry-red);
  border: 1px solid rgba(240,138,75, 0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-danger:hover {
  background: rgba(240,138,75, 0.24);
}

.cat-pill {
  background: rgba(21,21,24, 0.7);
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 7px 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-pill:hover {
  color: var(--text-primary);
}

.cat-pill.active {
  background: rgba(245,183,0, 0.15);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.tcb-input {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.tcb-input.mono {
  font-family: var(--font-mono);
}

.tcb-input:focus {
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   ASSET ROWS, THUMBNAILS & HUD FRAMES
   ========================================================================== */
.asset-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-hairline);
  transition: background 0.15s ease;
}

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

.asset-row:hover {
  background: rgba(245,183,0, 0.04);
}

.hud-frame {
  padding: 3px;
  border: 1px solid rgba(245,183,0, 0.3);
  background: #0A0A0B;
  border-radius: 4px;
  flex-shrink: 0;
}

.hud-inner {
  overflow: hidden;
  border-radius: 2px;
}

.asset-thumb {
  width: 52px;
  height: 74px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   DATA TABLES (ASSET DETAILS & BULK QUEUE)
   ========================================================================== */
.tcb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.tcb-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-hairline);
  white-space: nowrap;
}

.tcb-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: middle;
}

.tcb-table tbody tr:hover {
  background: rgba(245,183,0, 0.04);
}

/* ==========================================================================
   RESPONSIVE GRID UTILITIES
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .tcb-header-inner, .tcb-container {
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* Dollar sign inside money inputs (no wrapper needed) */
.tcb-input.money {
  padding-left: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='20'><text x='1' y='15' font-family='monospace' font-size='14' font-weight='700' fill='%2394a3b8'>$</text></svg>");
  background-repeat: no-repeat;
  background-position: 8px center;
}

h1, h2 { text-transform: uppercase; letter-spacing: 0.03em; }
:focus-visible { outline: 2px solid #FFD24D; outline-offset: 2px; }
#vault-name-display { text-transform: none; letter-spacing: 0; }

/* ---- Plan theming: the vault takes the colour of the account's plan ---- */
:root { --tier: #F5B700; }
.folder-tab.active { color: var(--tier); border-color: var(--tier); box-shadow: 0 -2px 10px color-mix(in srgb, var(--tier) 22%, transparent); }
.folder-tab-bar { border-bottom-color: var(--tier); }
#plan-strip { border-color: var(--tier) !important; }
.tier-seg { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-hairline); padding: 3px 9px; font-family: var(--font-mono); font-size: 10px; cursor: pointer; }
.tier-seg + .tier-seg { border-left: none; }
.tier-seg.on { background: var(--pc); color: #0A0A0B; border-color: var(--pc); font-weight: 700; }
/* ---- Plans page ---- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.plan-card { position: relative; padding: 24px 22px; background: var(--bg-card); border: 1px solid var(--border-hairline); border-top: 3px solid var(--pc); border-radius: 4px; display: flex; flex-direction: column; }
.plan-featured { border-color: var(--pc); background: #1c1c20; }
.plan-flag { position: absolute; top: -11px; right: 14px; background: var(--pc); color: #0A0A0B; font-size: 9px; font-weight: 700; padding: 3px 8px; letter-spacing: 0.08em; }
.plan-price { margin-top: 8px; display: flex; align-items: baseline; gap: 4px; }
.plan-list { list-style: none; margin: 0 0 18px 0; padding: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.9; flex: 1; }
.plan-list li::before { content: "\2713"; color: var(--pc); margin-right: 8px; }
.plans-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.plans-table th { text-align: center; padding: 10px 8px; font-size: 11px; letter-spacing: 0.1em; border-bottom: 1px solid var(--border-hairline); }
.plans-table th:first-child, .plans-table td:first-child { text-align: left; }
.plans-table td { padding: 9px 8px; border-bottom: 1px solid var(--border-hairline); color: var(--text-secondary); }
.plans-table .pt-c { text-align: center; }
.plans-table .pt-group td { padding-top: 16px; font-size: 10px; letter-spacing: 0.12em; color: var(--text-muted); border-bottom: none; }

/* Supplies directory */
.sup-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end;margin-bottom:12px;}
.sup-toolbar #sup-search{flex:1;min-width:220px;}
.sup-sel{display:flex;flex-direction:column;gap:4px;font-size:10px;color:var(--text-muted);}
.sup-chips{display:flex;flex-wrap:wrap;gap:6px;}
.sup-chip{background:var(--surface-1,#151518);border:1px solid var(--border-hairline);color:var(--text-secondary);padding:6px 11px;font-size:12px;border-radius:4px;cursor:pointer;font-family:inherit;}
.sup-chip .mono{font-size:10px;color:var(--text-muted);margin-left:3px;}
.sup-chip:hover{border-color:var(--accent-cyan);color:var(--text-primary);}
.sup-chip.on{border-color:var(--accent-cyan);color:var(--accent-cyan);background:rgba(245,183,0,0.1);}
.sup-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;}
.sup-card{padding:16px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;}
.sup-tag{font-size:9.5px;letter-spacing:0.12em;color:var(--accent-cyan);}
.sup-dealer{margin-left:6px;border:1px solid currentColor;padding:0 4px;color:var(--accent-cyan);}
.sup-name{font-family:var(--font-display);font-size:17px;margin:5px 0 5px 0;}
.sup-note{font-size:12.5px;color:var(--text-secondary);line-height:1.5;margin:0;}
.sup-links{display:flex;gap:8px;}
.sup-btn{padding:7px 14px;font-size:11px;text-decoration:none;text-align:center;flex:1;}
.sup-off{padding:14px;text-decoration:none;color:inherit;display:block;}
.sup-off:hover{border-color:var(--accent-cyan);}

/* Overview layout with right-hand Trend Watch rail */
.ov-layout{display:block;}
.ov-rail{border:1px solid var(--border-hairline);background:var(--surface-1,#151518);padding:14px;margin-top:6px;}
.rail-head{font-size:10px;letter-spacing:0.12em;color:var(--tier,var(--accent-cyan));margin-bottom:10px;}
.rail-row{padding:9px 0;border-top:1px solid var(--border-hairline);}
@media (min-width:1150px){
  .ov-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px;align-items:start;}
  .ov-rail{position:sticky;top:12px;margin-top:0;}
}

.god-tier{margin-top:16px;padding:18px 20px;border:1px dashed #F5B700;background:linear-gradient(90deg,rgba(217,182,94,0.08),transparent);display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;}
