/* ============================================================
   Silky Trades — Global Stylesheet (assets/css/app.css)
   ============================================================ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600&display=swap');

/* ── VARIABLES ── */
:root {
  --navy:       #060d1a;
  --navy-mid:   #0a1426;
  --navy-card:  #111b30;
  --navy-hover: #1a2740;
  --gold:       #e3941d;
  --gold-light: #f0b45b;
  --gold-pale:  #f7d8a1;
  --gold-dim:   rgba(227,148,29,0.14);
  --teal:       #007fd9;
  --teal-bright:#00a6ff;
  --white:      #ffffff;
  --text-light: #d7e5fb;
  --text-muted: #8da4c5;
  --text-dim:   #5d7497;
  --success:    #22c55e;
  --danger:     #ef4444;
  --warning:    #f59e0b;
  --info:       #3b82f6;
  --border:     rgba(227,148,29,0.18);
  --border-mid: rgba(227,148,29,0.36);
  --font-display:'Cormorant Garamond', serif;
  --font-body:  'Outfit', sans-serif;
  --r:    8px;
  --r-lg: 14px;
  --r-xl: 20px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font-family: var(--font-body); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--navy-mid); }
::-webkit-scrollbar-thumb { background: rgba(200,168,75,.35); border-radius: 2px; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; color: var(--white); }
.gold  { color: var(--gold); }
.teal  { color: var(--teal-bright); }
.muted { color: var(--text-muted); }
.italic { font-style: italic; font-weight: 400; }

/* ── LAYOUT CONTAINERS ── */
.container      { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm   { max-width: 700px;  margin: 0 auto; padding: 0 1.5rem; }
.section        { padding: 5rem 1.5rem; }
.section-sm     { padding: 3rem 1.5rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--r); font-family: var(--font-body);
  font-size: 13.5px; font-weight: 500; cursor: pointer; border: none;
  transition: all .22s; white-space: nowrap; text-decoration: none; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}
.btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(200,168,75,.35); }
.btn-secondary      { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); color: var(--text-light); }
.btn-secondary:hover{ background: rgba(255,255,255,.12); color: var(--white); }
.btn-outline        { background: transparent; border: 1px solid var(--border-mid); color: var(--text-light); }
.btn-outline:hover  { background: rgba(255,255,255,.05); color: var(--white); }
.btn-ghost          { background: transparent; border: 1px solid var(--border-mid); color: var(--gold-light); }
.btn-ghost:hover    { background: var(--gold-dim); }
.btn-danger         { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.25); color: var(--danger); }
.btn-danger:hover   { background: rgba(239,68,68,.22); }
.btn-success        { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25); color: var(--success); }
.btn-success:hover  { background: rgba(34,197,94,.22); }
.btn-teal           { background: rgba(11,140,130,.12); border: 1px solid rgba(11,140,130,.25); color: var(--teal-bright); }
.btn-teal:hover     { background: rgba(11,140,130,.22); }
.btn-lg     { padding: 14px 30px; font-size: 15px; }
.btn-sm     { padding: 6px 14px; font-size: 12px; }
.btn-xs     { padding: 4px 10px; font-size: 11px; }
.btn-block  { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── FORMS ── */
.form-group   { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.form-label   { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 500; }
.form-control {
  width: 100%; padding: 11px 14px;
  background: rgba(0,0,0,.25); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--white);
  font-family: var(--font-body); font-size: 13.5px;
  outline: none; transition: border-color .2s;
}
.form-control:focus    { border-color: var(--gold); }
.form-control::placeholder { color: var(--text-dim); }
.form-control.error    { border-color: var(--danger); }
select.form-control    { cursor: pointer; appearance: none; }
select.form-control option { background: var(--navy-card); }
textarea.form-control  { resize: vertical; min-height: 90px; }
.form-hint   { font-size: 11px; color: var(--text-dim); line-height: 1.5; }
.form-error  { font-size: 11px; color: var(--danger); margin-top: 2px; }
.form-row    { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.input-group { position: relative; }
.input-group .form-control { padding-left: 38px; }
.input-prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 14px; pointer-events: none; }
.input-suffix-el { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-dim); }

/* ── CARDS ── */
.card {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem;
}
.card:hover { border-color: var(--border-mid); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: .75rem; }
.card-title  { font-size: 14px; font-weight: 500; color: var(--white); }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: .15rem; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 600; }
.badge-success { background: rgba(34,197,94,.12);  color: var(--success); }
.badge-danger  { background: rgba(239,68,68,.12);  color: var(--danger); }
.badge-warning { background: rgba(245,158,11,.12); color: var(--warning); }
.badge-info    { background: rgba(59,130,246,.12); color: var(--info); }
.badge-gold    { background: rgba(200,168,75,.10); color: var(--gold-light); }
.badge-muted   { background: rgba(255,255,255,.06); color: var(--text-muted); }
.badge-teal    { background: rgba(11,140,130,.12); color: var(--teal-bright); }

/* ── ALERTS ── */
.alert { padding: 1rem 1.25rem; border-radius: var(--r); margin-bottom: 1.1rem; font-size: 13px; line-height: 1.6; }
.alert-success { background: rgba(34,197,94,.08);  border: 1px solid rgba(34,197,94,.25);  color: var(--success); }
.alert-danger  { background: rgba(239,68,68,.08);  border: 1px solid rgba(239,68,68,.25);  color: #f87171; }
.alert-warning { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); color: var(--warning); }
.alert-info    { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.25); color: #93c5fd; }

/* ── TABLES ── */
.table-wrap    { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.table-head    { padding: .875rem 1.1rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.table-title   { font-size: 13px; font-weight: 500; color: var(--white); }
.table-title small { font-size: 11px; color: var(--text-dim); font-weight: 300; margin-left: .4rem; }
.table-scroll  { overflow-x: auto; }
table          { width: 100%; border-collapse: collapse; min-width: 500px; }
thead th       { padding: .55rem .9rem; font-size: 10.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .07em; text-align: left; border-bottom: 1px solid var(--border); font-weight: 600; white-space: nowrap; background: rgba(0,0,0,.12); }
tbody td       { padding: .65rem .9rem; font-size: 13px; color: var(--text-light); border-bottom: 1px solid rgba(255,255,255,.04); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td      { background: rgba(255,255,255,.025); }
td.amount-up   { color: var(--success); font-weight: 500; }
td.amount-down { color: var(--danger);  font-weight: 500; }
td.amount-gold { color: var(--gold-light); font-weight: 500; }

/* ── PROGRESS BAR ── */
.progress       { height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.progress-fill  { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width .5s ease; }
.progress-fill.teal  { background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.progress-fill.green { background: linear-gradient(90deg, #16a34a, var(--success)); }
.progress-fill.blue  { background: linear-gradient(90deg, #1d4ed8, var(--info)); }

/* ── TOAST NOTIFICATIONS ── */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: .875rem 1.25rem; border-radius: var(--r-lg);
  font-size: 13px; font-weight: 400; max-width: 340px;
  backdrop-filter: blur(14px); pointer-events: all;
  animation: toast-in .3s ease forwards;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
@keyframes toast-in { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }
@keyframes toast-out { from { opacity:1; transform: translateY(0); } to { opacity:0; transform: translateY(12px); } }
.toast.hiding      { animation: toast-out .3s ease forwards; }
.toast-success     { background: rgba(13,30,20,.95); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.toast-error       { background: rgba(30,13,13,.95); border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.toast-warning     { background: rgba(30,22,10,.95); border: 1px solid rgba(245,158,11,.3); color: #fcd34d; }
.toast-info        { background: rgba(10,20,40,.95); border: 1px solid rgba(59,130,246,.3); color: #93c5fd; }
.toast-icon        { font-size: 16px; flex-shrink: 0; }
.toast-close       { margin-left: auto; cursor: pointer; opacity: .5; font-size: 14px; flex-shrink: 0; }
.toast-close:hover { opacity: 1; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px); z-index: 5000;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--navy-card); border: 1px solid var(--border-mid);
  border-radius: var(--r-xl); padding: 2rem; width: 100%; max-width: 520px;
  position: relative; animation: modal-in .25s ease;
}
@keyframes modal-in { from { opacity:0; transform: scale(.95); } to { opacity:1; transform: scale(1); } }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-dim); font-size: 18px; cursor: pointer; line-height: 1; transition: color .2s; }
.modal-close:hover { color: var(--white); }
.modal-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: .35rem; }
.modal-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 300; }

/* ── TOGGLE SWITCH ── */
.toggle-switch { width: 38px; height: 21px; border-radius: 11px; background: rgba(255,255,255,.1); position: relative; cursor: pointer; border: none; transition: background .2s; flex-shrink: 0; }
.toggle-switch.on { background: var(--teal); }
.toggle-switch::after { content: ''; width: 15px; height: 15px; border-radius: 50%; background: #fff; position: absolute; top: 3px; left: 3px; transition: left .2s; }
.toggle-switch.on::after { left: 20px; }

/* ── SPINNER ── */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner.gold { border-color: rgba(200,168,75,.3); border-top-color: var(--gold); }

/* ── SKELETON LOADER ── */
.skeleton { background: linear-gradient(90deg, var(--navy-card) 25%, rgba(255,255,255,.04) 50%, var(--navy-card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── STAT CARD (KPI) ── */
.kpi-card {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem;
  position: relative; overflow: hidden; transition: border-color .25s;
}
.kpi-card:hover { border-color: var(--border-mid); }
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; bottom: 0; border-radius: var(--r-lg) 0 0 var(--r-lg); }
.kpi-card.k-gold::before  { background: var(--gold); }
.kpi-card.k-teal::before  { background: var(--teal-bright); }
.kpi-card.k-green::before { background: var(--success); }
.kpi-card.k-blue::before  { background: var(--info); }
.kpi-card.k-red::before   { background: var(--danger); }
.kpi-card.k-warn::before  { background: var(--warning); }
.kpi-card.k-purple::before{ background: #a855f7; }
.kpi-label { font-size: 10.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .35rem; }
.kpi-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--white); line-height: 1; }
.kpi-value.gold  { color: var(--gold); }
.kpi-value.green { color: var(--success); }
.kpi-value.red   { color: var(--danger); }
.kpi-value.warn  { color: var(--warning); }
.kpi-change { font-size: 11px; margin-top: .3rem; color: var(--text-muted); }
.kpi-change.up   { color: var(--success); }
.kpi-change.down { color: var(--danger); }
.kpi-icon { position: absolute; bottom: .75rem; right: .875rem; font-size: 26px; opacity: .07; }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.page-btn { padding: 5px 11px; border-radius: var(--r); font-size: 12px; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--text-muted); transition: all .2s; }
.page-btn:hover { border-color: var(--border-mid); color: var(--text-light); }
.page-btn.active { background: var(--gold-dim); border-color: var(--gold); color: var(--gold-light); font-weight: 600; }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ── FILTER BAR ── */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.1rem; }
.filter-bar .form-control { padding: 7px 12px; font-size: 12.5px; }
.search-wrap { position: relative; }
.search-wrap .form-control { padding-left: 32px; }
.search-wrap::before { content: '🔍'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; pointer-events: none; }

/* ── PUBLIC NAVBAR ── */
.pub-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 66px;
  background: rgba(8,15,30,.95); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border); display: flex;
  align-items: center; justify-content: space-between;
  padding: 0 1.5rem; z-index: 1000; transition: box-shadow .3s;
}
.pub-nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,.6); }
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.nav-logo-name  { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--white); line-height: 1; }
.nav-logo-tag   { font-size: 9px; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; display: block; margin-top: 2px; }
.nav-links      { display: none; list-style: none; gap: 1.75rem; align-items: center; }
.nav-links a    { font-size: 13.5px; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--gold-light); }
.nav-dropdown   { position: relative; }
.nav-dd-trigger { display: flex; align-items: center; gap: 4px; cursor: pointer; font-size: 13.5px; color: var(--text-muted); transition: color .2s; }
.nav-dd-trigger:hover { color: var(--gold-light); }
.nav-dd-trigger svg { transition: transform .2s; }
.nav-dropdown:hover .nav-dd-trigger svg { transform: rotate(180deg); }
.nav-dropdown:hover .nav-dd-trigger { color: var(--gold-light); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 260px; background: var(--navy-card);
  border: 1px solid var(--border-mid); border-radius: var(--r-lg);
  padding: .5rem; z-index: 2000;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s; box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: .7rem .875rem; border-radius: var(--r);
  cursor: pointer; transition: background .2s;
}
.dd-item:hover { background: rgba(200,168,75,.07); }
.dd-icon-box { width: 34px; height: 34px; min-width: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; margin-top: 1px; }
.dd-icon-box.c-teal   { background: rgba(11,140,130,.12); }
.dd-icon-box.c-gold   { background: rgba(200,168,75,.12); }
.dd-icon-box.c-blue   { background: rgba(59,130,246,.12); }
.dd-icon-box.c-green  { background: rgba(34,197,94,.12); }
.dd-icon-box.c-purple { background: rgba(139,92,246,.12); }
.dd-icon-box.c-orange { background: rgba(251,146,60,.12); }
.dd-item-title { font-size: 13px; font-weight: 500; color: var(--white); line-height: 1.2; }
.dd-item-desc  { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-weight: 300; line-height: 1.4; }
.dd-divider    { height: 1px; background: var(--border); margin: .35rem .5rem; }
.dd-live-item  { border: 1px solid var(--border-mid); margin: .25rem 0; border-radius: var(--r); }
.dd-live-item:hover { background: rgba(200,168,75,.08); border-color: var(--gold); }
.nav-hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; transition: all .3s; }
.mob-drawer {
  display: none; position: fixed; top: 66px; left: 0; right: 0; bottom: 0;
  background: var(--navy-mid); z-index: 999;
  overflow-y: auto; flex-direction: column; gap: .25rem;
  padding: 1rem 1.5rem 3rem;
}
.mob-drawer.open { display: flex; }
.mob-section-label { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); padding: .75rem .5rem .4rem; font-weight: 600; }
.mob-nav-item { display: flex; align-items: center; gap: 10px; padding: .75rem .75rem; border-radius: var(--r); cursor: pointer; transition: background .2s; border-bottom: 1px solid rgba(255,255,255,.03); }
.mob-nav-item:hover { background: rgba(255,255,255,.04); }
.mob-nav-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.mob-nav-text { font-size: 14px; color: var(--text-light); }
.mob-nav-sub  { font-size: 11px; color: var(--text-dim); margin-top: 1px; }

/* ── FOOTER (public) ── */
.site-footer { background: #050c18; padding: 4rem 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 1100px; margin: 0 auto 2rem; }
.footer-brand p { font-size: 13px; color: var(--text-dim); line-height: 1.7; font-weight: 300; max-width: 280px; margin-top: .75rem; }
.footer-socials { display: flex; gap: 8px; margin-top: 1rem; }
.soc-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: transparent; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 11px; cursor: pointer; transition: all .2s; font-weight: 700; }
.soc-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.footer-col h4 { font-size: 11px; font-weight: 600; color: var(--white); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a, .footer-col ul li span { font-size: 13px; color: var(--text-dim); cursor: pointer; transition: color .2s; font-weight: 300; }
.footer-col ul li a:hover, .footer-col ul li span:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding-top: 1.5rem; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; align-items: center; text-align: center; }
.footer-bottom p { font-size: 12px; color: var(--text-dim); font-weight: 300; }
.footer-risk { font-size: 10px; color: rgba(122,144,176,.45); line-height: 1.55; max-width: 700px; }

/* ── FADE ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .4s; }

/* ── UTILITIES ── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-1        { gap: .5rem; }
.gap-2        { gap: 1rem; }
.gap-3        { gap: 1.5rem; }
.w-full       { width: 100%; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden       { display: none !important; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monospace    { font-family: 'Courier New', monospace; font-size: 11px; }
.divider      { height: 1px; background: var(--border); margin: 1.25rem 0; }

/* ── RESPONSIVE ── */
@media (min-width: 640px) {
  .form-row.two   { grid-template-columns: 1fr 1fr; }
  .form-row.three { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .nav-links      { display: flex; }
  .nav-hamburger  { display: none; }
  .footer-grid    { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom  { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 1024px) {
  .section        { padding: 6rem 3.5rem; }
  .section-sm     { padding: 4rem 3.5rem; }
  .pub-nav        { padding: 0 3.5rem; }
  .site-footer    { padding: 5rem 3.5rem 2rem; }
}

/* ── ADMIN BADGE SHORTHAND (used by admin.js) ── */
.bg  { background: rgba(34,197,94,.12);  color: var(--success); }
.br  { background: rgba(239,68,68,.12);  color: var(--danger); }
.bw  { background: rgba(245,158,11,.12); color: var(--warning); }
.bb  { background: rgba(59,130,246,.12); color: var(--info); }
.bm  { background: rgba(255,255,255,.06); color: var(--text-muted); }
.bod { background: rgba(200,168,75,.10); color: var(--gold-light); }
.g   { color: var(--gold); }
.s   { color: var(--success); }
.r   { color: var(--danger); }
.w   { color: var(--warning); }

/* ── ADMIN FORM CLASSES (used in modals) ── */
.f-group  { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.f-label  { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 500; }
.f-input, .f-select, .f-textarea {
  width: 100%; padding: 9px 12px;
  background: rgba(0,0,0,.28); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--white);
  font-family: var(--font-body); font-size: 13px;
  outline: none; transition: border-color .2s;
}
.f-input:focus,.f-select:focus,.f-textarea:focus { border-color: var(--gold); }
.f-input::placeholder,.f-textarea::placeholder   { color: var(--text-dim); }
.f-select option  { background: var(--navy-card); }
.f-textarea       { resize: vertical; min-height: 80px; }
.f-grid           { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.f-grid.c2        { grid-template-columns: 1fr 1fr; }
.f-grid.c3        { grid-template-columns: 1fr 1fr 1fr; }
.f-hint           { font-size: 11px; color: var(--text-dim); line-height: 1.5; margin-top: 2px; }
.form-grid-2      { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:640px) { .f-grid.c2,.f-grid.c3,.form-grid-2 { grid-template-columns: 1fr; } }

/* ── ADMIN TOGGLE ── */
.adm-toggle {
  width: 38px; height: 21px; border-radius: 11px;
  background: rgba(255,255,255,.1); position: relative;
  cursor: pointer; transition: background .2s; border: none; flex-shrink: 0;
}
.adm-toggle.on { background: var(--teal); }
.adm-toggle::after {
  content: ''; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; position: absolute; top: 3px; left: 3px; transition: left .2s;
}
.adm-toggle.on::after { left: 20px; }

/* ── MODAL OVERLAY (admin) ── */
#modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  z-index: 8000; align-items: center; justify-content: center; padding: 1rem;
}
#modal-content {
  background: var(--navy-card); border: 1px solid var(--border-mid);
  border-radius: var(--r-xl); padding: 2rem;
  width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  position: relative;
}
#modal-content::-webkit-scrollbar { width: 3px; }
#modal-content::-webkit-scrollbar-thumb { background: rgba(200,168,75,.3); }

/* ── SPINNER ── */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── LOADING OVERLAY ── */
.loading-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(8,15,30,.8); z-index: 9000;
  align-items: center; justify-content: center;
}
.loading-overlay.show { display: flex; }

/* ── PAGINATION BUTTONS ── */
.page-btn, .pg-btn {
  padding: 5px 11px; border-radius: var(--r); font-family: var(--font-body);
  font-size: 12px; cursor: pointer; transition: all .2s; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
}
.page-btn:hover,.pg-btn:hover { background: rgba(255,255,255,.05); color: var(--white); }
.page-btn.active,.pg-btn.active { background: var(--gold-dim); color: var(--gold-light); border-color: var(--border-mid); }
.page-btn:disabled,.pg-btn:disabled { opacity: .35; cursor: not-allowed; }
.pagination { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; padding: .875rem 1.1rem; border-top: 1px solid var(--border); }

/* ── DYNAMIC ROW REMOVE ── */
.dyn-rm {
  width: 28px; height: 28px; border-radius: var(--r); flex-shrink: 0;
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2);
  color: var(--danger); cursor: pointer; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.dyn-rm:hover { background: rgba(239,68,68,.22); }

/* ── FIN ROW (dashboard summary table) ── */
.fin-row { display: flex; justify-content: space-between; align-items: center; padding: .625rem .875rem; background: rgba(0,0,0,.18); border-radius: var(--r); margin-bottom: .35rem; font-size: 13px; }
.fin-k   { color: var(--text-muted); }
.fin-v   { font-weight: 600; color: var(--white); }

/* ── COIN ROW (user detail wallets) ── */
.coin-row { display: flex; align-items: center; justify-content: space-between; padding: .55rem .875rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.coin-row:last-child { border-bottom: none; }
.coin-info { display: flex; align-items: center; gap: 8px; }
.coin-sym  { width: 28px; height: 28px; border-radius: 7px; background: var(--navy-hover,#162540); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }

/* ── ADMIN TOPBAR CLOCK ── */
#tb-clock { font-size: 11px; color: var(--text-dim); font-family: monospace; display: none; }
@media(min-width:640px) { #tb-clock { display:block; } }

/* ── SECTION DIVIDER LABEL ── */
.sec-divider-label {
  font-size: 11px; font-weight: 600; color: var(--gold-light);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 1.25rem 0 .75rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

/* ── ADMIN FILTER SEARCH ── */
.filter-search { position: relative; }
.filter-search input { padding-left: 32px; }
.filter-search::before { content: '🔍'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; pointer-events: none; }

/* ── CHART TABS ── */
.chart-tabs    { display: flex; gap: .25rem; }
.chart-tab     { padding: 4px 10px; border-radius: 5px; font-size: 11px; cursor: pointer; transition: all .2s; border: none; background: transparent; color: var(--text-dim); font-family: var(--font-body); }
.chart-tab.active,.chart-tab:hover { background: var(--gold-dim); color: var(--gold-light); }

/* ── MB/SPACING HELPERS ── */
.mb-0 { margin-bottom: 0; }
.p-0  { padding: 0; }
.w-auto { width: auto; }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gold    { color: var(--gold-light); }
.text-muted   { color: var(--text-muted); }
.text-dim     { color: var(--text-dim); }
.font-mono    { font-family: 'Courier New', monospace; }
.font-display { font-family: var(--font-display); }
.fw-600       { font-weight: 600; }
.fs-11        { font-size: 11px; }
.fs-12        { font-size: 12px; }
.fs-13        { font-size: 13px; }
