/* ============================================================
   VAULTEX — Shared Dashboard Design System
   Used by: all user dashboard pages + admin panel
   Inherits CSS variables from style.css (dark/light mode)
   If loaded standalone (admin), define fallback vars below
============================================================ */

/* Admin standalone fallback (dark mode only) */
html:not([data-theme]) {
  --bg:        #080A0F;
  --surface:   #0E1117;
  --surface2:  #141820;
  --surface3:  #1C2130;
  --border:    #1E2736;
  --border2:   rgba(255,255,255,.05);
  --gold:      #C9A84C;
  --gold-l:    #E8C96A;
  --gold-d:    #8B6E30;
  --gold-glow: rgba(201,168,76,.18);
  --silver:    #8A95A3;
  --muted:     #5A6478;
  --ash:       #2A3140;
  --text:      #F0EDE8;
  --text2:     #8A95A3;
  --green:     #2DD4A8;
  --red:       #F05C6A;
  --border-gold: rgba(201,168,76,.2);
  --nav-bg:    rgba(8,10,15,.95);
  --card-bg:   #0E1117;
  --input-bg:  rgba(255,255,255,.04);
  --shadow:    0 8px 40px rgba(0,0,0,.5);
}

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

/* ── Body ── */
.vx-body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════
   LAYOUT SHELL
══════════════════════════════════════════ */
.vx-shell { display: flex; min-height: 100vh; overflow-x: hidden; }

/* ── Sidebar ── */
.vx-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200; overflow-y: auto;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.vx-sidebar::-webkit-scrollbar { width: 3px; }
.vx-sidebar::-webkit-scrollbar-thumb { background: var(--border); }
@media (max-width: 1023px) {
  .vx-sidebar { transform: translateX(-100%); }
  .vx-sidebar.open { transform: translateX(0); box-shadow: 6px 0 40px rgba(0,0,0,.5); }
}

/* Overlay */
.vx-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 199; backdrop-filter: blur(2px); }
.vx-overlay.show { display: block; }

/* ── Main ── */
.vx-main { flex: 1; min-width: 0; margin-left: 240px; display: flex; flex-direction: column; min-height: 100vh; }
@media (max-width: 1023px) { .vx-main { margin-left: 0; } }

/* ── Topbar ── */
.vx-topbar {
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; position: sticky; top: 0; z-index: 100; gap: 12px;
  flex-shrink: 0;
}
.vx-topbar-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vx-topbar-r { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.vx-hamburger {
  width: 36px; height: 36px;
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color .2s;
}
.vx-hamburger:hover { border-color: var(--gold); }
.vx-hamburger svg { width: 16px; height: 16px; stroke: var(--silver); fill: none; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 1023px) { .vx-hamburger { display: flex; } }

.vx-page-title { font-size: .8rem; font-weight: 600; color: var(--text); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vx-theme-btn {
  width: 34px; height: 34px; border: 1px solid var(--border);
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s; flex-shrink: 0;
}
.vx-theme-btn:hover { border-color: var(--gold); }
.vx-theme-btn svg { width: 15px; height: 15px; stroke: var(--silver); fill: none; stroke-width: 2; }
.vx-theme-btn:hover svg { stroke: var(--gold); }

.vx-bal-pill {
  background: rgba(201,168,76,.08); border: 1px solid var(--border-gold);
  padding: 4px 12px; display: flex; flex-direction: column; align-items: flex-end;
  flex-shrink: 0;
}
html[data-theme="light"] .vx-bal-pill { background: rgba(154,111,40,.06); }
.vx-bal-label { font-size: .56rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.vx-bal-val   { font-family: 'Cormorant Garamond', serif; font-size: .92rem; font-weight: 600; color: var(--gold); line-height: 1.1; }

.vx-avatar {
  width: 32px; height: 32px; border: 1px solid var(--gold);
  background: var(--input-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: var(--gold); flex-shrink: 0; overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
}
.vx-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Content ── */
.vx-content { flex: 1; padding: 24px; width: 100%; }
@media (max-width: 767px) { .vx-content { padding: 14px; } }
@media (min-width: 768px) and (max-width: 1023px) { .vx-content { padding: 18px; } }

/* ── Page Header ── */
.vx-page-head {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 14px; margin-bottom: 24px;
}
.vx-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 300; color: var(--text); line-height: 1.1; margin: 0;
}
.vx-heading em { font-style: italic; font-weight: 600; color: var(--gold); }
.vx-subhead { font-size: .72rem; color: var(--muted); margin: 4px 0 0; }
.vx-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.vx-breadcrumb a { color: var(--gold); text-decoration: none; }
.vx-breadcrumb a:hover { color: var(--gold-l); }
.vx-breadcrumb span { color: var(--ash); }

/* ── Buttons ── */
.vx-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 20px; text-decoration: none; border: 1px solid;
  transition: all .25s; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; cursor: pointer; background: transparent; line-height: 1;
}
.vx-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; flex-shrink: 0; }
.vx-btn-gold   { border-color: var(--gold); color: var(--gold); }
.vx-btn-gold:hover   { background: var(--gold); color: var(--bg); }
.vx-btn-green  { border-color: var(--green); color: var(--green); }
.vx-btn-green:hover  { background: var(--green); color: var(--bg); }
.vx-btn-red    { border-color: var(--red); color: var(--red); }
.vx-btn-red:hover    { background: var(--red); color: #fff; }
.vx-btn-ghost  { border-color: var(--border); color: var(--silver); }
.vx-btn-ghost:hover  { border-color: var(--gold); color: var(--gold); }
.vx-btn-sm { padding: 6px 14px; font-size: .62rem; }
.vx-btn-block { width: 100%; justify-content: center; }

/* ── Back link ── */
.vx-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  margin-bottom: 20px; transition: color .2s;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.vx-back:hover { color: var(--gold); border-bottom-color: var(--border-gold); }
.vx-back svg { width: 12px; height: 12px; stroke: currentColor; fill: none; }

/* ══════════════════════════════════════════
   SIDEBAR INTERNALS
══════════════════════════════════════════ */
.sb-brand {
  padding: 16px 20px 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  flex-shrink: 0;
}
.sb-brand-mark {
  width: 26px; height: 26px; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(45deg); flex-shrink: 0;
}
.sb-brand-mark span { transform: rotate(-45deg); font-family: 'Cormorant Garamond', serif; font-size: .82rem; font-weight: 700; color: var(--gold); }
.sb-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 600; color: var(--text); letter-spacing: .08em; }

.sb-user { margin: 12px 14px; background: var(--input-bg); border: 1px solid var(--border-gold); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.sb-av { width: 32px; height: 32px; border: 1px solid var(--gold); background: var(--input-bg); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; color: var(--gold); flex-shrink: 0; overflow: hidden; font-family: 'Space Grotesk', sans-serif; }
.sb-av img { width: 100%; height: 100%; object-fit: cover; }
.sb-uname { font-size: .78rem; font-weight: 600; color: var(--text); }
.sb-umeta { font-size: .62rem; color: var(--muted); letter-spacing: .05em; }

.sb-wallet { margin: 0 14px 12px; background: var(--input-bg); border: 1px solid var(--border-gold); padding: 10px 12px; }
.sb-wlabel { font-size: .58rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.sb-wval { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.sb-wbtns { display: flex; gap: 5px; }
.sb-wbtn { flex: 1; text-align: center; font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 3px; text-decoration: none; transition: all .2s; }
.sb-wbtn.dep  { background: rgba(45,212,168,.08); border: 1px solid rgba(45,212,168,.2); color: var(--green); }
.sb-wbtn.dep:hover  { background: rgba(45,212,168,.18); color: var(--green); }
.sb-wbtn.wdr  { background: var(--input-bg); border: 1px solid var(--border-gold); color: var(--gold); }
.sb-wbtn.wdr:hover  { background: rgba(201,168,76,.1); color: var(--gold); }

.sb-sec { font-size: .56rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ash); padding: 12px 20px 5px; display: block; }
.sb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 20px; font-size: .76rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  border-left: 2px solid transparent; transition: all .2s;
}
.sb-link:hover { color: var(--text); background: var(--input-bg); border-left-color: var(--border-gold); }
.sb-link.active { color: var(--gold); background: var(--input-bg); border-left-color: var(--gold); }
.sb-link svg { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.5; }
.sb-link.danger { color: var(--muted); }
.sb-link.danger:hover { color: var(--red); background: rgba(240,92,106,.05); border-left-color: var(--red); }
.sb-foot { padding: 10px 20px; border-top: 1px solid var(--border); font-size: .58rem; color: var(--ash); letter-spacing: .08em; text-align: center; flex-shrink: 0; }

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.vx-card { background: var(--surface); border: 1px solid var(--border); }
.vx-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px 11px; border-bottom: 1px solid var(--border);
}
.vx-card-title { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
.vx-card-link { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--border-gold); padding-bottom: 1px; }
.vx-card-link:hover { color: var(--gold-l); }
.vx-card-body { padding: 18px; }
.vx-card-body-sm { padding: 14px; }

/* ══════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════ */
.vx-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
@media (max-width: 1100px) { .vx-stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .vx-stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

.vx-stat { background: var(--surface); border: 1px solid var(--border); padding: 16px; position: relative; overflow: hidden; transition: border-color .3s; }
.vx-stat::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 0; background: var(--ac, var(--gold)); transition: height .4s cubic-bezier(.4,0,.2,1); }
.vx-stat:hover { border-color: var(--border-gold); }
.vx-stat:hover::before { height: 100%; }
.vx-stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vx-stat-icon { width: 30px; height: 30px; border: 1px solid; display: flex; align-items: center; justify-content: center; }
.vx-stat-icon svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }
.vx-stat-badge { font-size: .56rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border: 1px solid; }
.vx-stat-val { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 600; line-height: 1; margin-bottom: 3px; }
.vx-stat-meta { font-size: .65rem; color: var(--muted); }
.vx-stat-link { font-size: .62rem; color: var(--gold); text-decoration: none; margin-top: 5px; display: inline-block; }
.vx-stat-link:hover { color: var(--gold-l); }

/* ══════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════ */
.vx-label {
  display: block; font-size: .65rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.vx-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-size: .88rem;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.vx-input::placeholder { color: var(--muted); }
.vx-input:focus { border-color: var(--border-gold); background: rgba(201,168,76,.04); }
html[data-theme="light"] .vx-input:focus { background: rgba(154,111,40,.04); }
.vx-input:disabled { opacity: .5; cursor: not-allowed; }
.vx-input[type="file"] { padding: 8px 12px; cursor: pointer; font-size: .8rem; }

.vx-select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 36px 10px 14px;
  font-size: .88rem;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  appearance: none; -webkit-appearance: none;
  transition: border-color .2s;
  border-radius: 0;
  cursor: pointer;
}
.vx-select:focus { border-color: var(--border-gold); }
.vx-select option { background: var(--surface2); color: var(--text); }

.vx-select-wrap { position: relative; }
.vx-select-wrap svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 14px; height: 14px; stroke: var(--muted); fill: none; }

.vx-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-size: .88rem;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  resize: vertical; min-height: 100px;
  transition: border-color .2s;
  border-radius: 0;
}
.vx-textarea:focus { border-color: var(--border-gold); }
.vx-textarea::placeholder { color: var(--muted); }

.vx-field { margin-bottom: 16px; }
.vx-field:last-child { margin-bottom: 0; }
.vx-hint { font-size: .65rem; color: var(--muted); margin-top: 4px; }
.vx-error { font-size: .65rem; color: var(--red); margin-top: 4px; }
.vx-input-prefix { display: flex; }
.vx-input-prefix .prefix { background: var(--surface2); border: 1px solid var(--border); border-right: none; padding: 10px 12px; color: var(--muted); font-size: .88rem; display: flex; align-items: center; flex-shrink: 0; }
.vx-input-prefix .vx-input { flex: 1; }

/* ══════════════════════════════════════════
   TABLES
══════════════════════════════════════════ */
.vx-table-wrap { overflow-x: auto; }
.vx-table { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 500px; }
.vx-table thead tr { border-bottom: 1px solid var(--border); }
.vx-table th { font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; text-align: left; white-space: nowrap; }
.vx-table tbody tr { border-bottom: 1px solid var(--border2, rgba(0,0,0,.04)); transition: background .15s; }
.vx-table tbody tr:last-child { border-bottom: none; }
.vx-table tbody tr:hover { background: var(--input-bg); }
.vx-table td { padding: 12px 16px; color: var(--silver); vertical-align: middle; }
.vx-table td.vx-td-main { color: var(--text); font-weight: 600; }
.vx-table td.right { text-align: right; }
.vx-table td.center { text-align: center; }

/* ══════════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════════ */
.vx-badge { display: inline-block; font-size: .56rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border: 1px solid; white-space: nowrap; }
.vx-badge-gold    { color: var(--gold); border-color: rgba(201,168,76,.3); background: rgba(201,168,76,.06); }
.vx-badge-green   { color: var(--green); border-color: rgba(45,212,168,.25); background: rgba(45,212,168,.06); }
.vx-badge-red     { color: var(--red); border-color: rgba(240,92,106,.25); background: rgba(240,92,106,.06); }
.vx-badge-silver  { color: var(--silver); border-color: var(--border); background: var(--input-bg); }
.vx-badge-pending { color: #E8C96A; border-color: rgba(232,201,106,.25); background: rgba(232,201,106,.06); }

/* ══════════════════════════════════════════
   ALERT / INFO BOXES
══════════════════════════════════════════ */
.vx-alert { padding: 12px 16px; border: 1px solid; margin-bottom: 16px; font-size: .82rem; }
.vx-alert-gold   { border-color: var(--border-gold); color: var(--gold); background: rgba(201,168,76,.06); }
.vx-alert-green  { border-color: rgba(45,212,168,.25); color: var(--green); background: rgba(45,212,168,.06); }
.vx-alert-red    { border-color: rgba(240,92,106,.25); color: var(--red); background: rgba(240,92,106,.06); }
.vx-alert-blue   { border-color: rgba(96,165,250,.2); color: #93C5FD; background: rgba(96,165,250,.06); }

/* ══════════════════════════════════════════
   PROFILE ELEMENTS
══════════════════════════════════════════ */
.vx-avatar-lg {
  width: 72px; height: 72px; border: 2px solid var(--gold);
  background: var(--input-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 600; color: var(--gold);
  overflow: hidden; flex-shrink: 0;
}
.vx-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════
   DETAIL ROWS (key-value pairs)
══════════════════════════════════════════ */
.vx-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border2, rgba(0,0,0,.04));
  gap: 12px; flex-wrap: wrap;
}
.vx-detail-row:last-child { border-bottom: none; }
.vx-detail-label { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vx-detail-val { font-size: .82rem; color: var(--text); font-weight: 500; text-align: right; }

/* ══════════════════════════════════════════
   ADDRESS COPY BLOCK
══════════════════════════════════════════ */
.vx-addr {
  background: var(--input-bg); border: 1px solid var(--border);
  padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.vx-addr-text { font-family: 'Space Grotesk', sans-serif; font-size: .78rem; color: var(--text); word-break: break-all; flex: 1; letter-spacing: .04em; }
.vx-copy-btn {
  background: transparent; border: 1px solid var(--border-gold);
  color: var(--gold); font-size: .6rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 12px; cursor: pointer;
  flex-shrink: 0; transition: all .2s; white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}
.vx-copy-btn:hover { background: var(--gold); color: var(--bg); }

/* ══════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════ */
.vx-prog-head { display: flex; justify-content: space-between; font-size: .6rem; color: var(--muted); margin-bottom: 5px; }
.vx-prog-track { background: var(--border); height: 3px; overflow: hidden; }
.vx-prog-fill { height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-l)); transition: width .6s cubic-bezier(.4,0,.2,1); }

/* ══════════════════════════════════════════
   MOBILE BOTTOM NAV
══════════════════════════════════════════ */
.vx-bnav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  z-index: 300; padding: 0 2px env(safe-area-inset-bottom, 0);
}
@media (max-width: 1023px) { .vx-bnav { display: flex; } .vx-main { padding-bottom: 60px; } }
.vx-bnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; padding: 7px 2px;
  text-decoration: none; border-top: 2px solid transparent; transition: border-color .2s;
}
.vx-bnav-item.active { border-top-color: var(--gold); }
.vx-bnav-item svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 1.5; }
.vx-bnav-item.active svg { stroke: var(--gold); }
.vx-bnav-item span { font-size: .54rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vx-bnav-item.active span { color: var(--gold); }

/* ══════════════════════════════════════════
   PLAN CARD (for plans page)
══════════════════════════════════════════ */
.vx-plan-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: all .3s; height: 100%; display: flex; flex-direction: column;
}
.vx-plan-card.featured { border-color: var(--gold); background: var(--surface2); }
.vx-plan-card.featured::before { content:'RECOMMENDED'; position:absolute; top:18px; right:-28px; background:var(--gold); color:var(--bg); font-size:.52rem; font-weight:700; letter-spacing:.15em; padding:4px 40px; transform:rotate(45deg); }
.vx-plan-card:hover { border-color: var(--border-gold); transform: translateY(-4px); }
.vx-plan-rate { font-family:'Cormorant Garamond',serif; font-size:3.8rem; font-weight:600; color:var(--gold); line-height:1; }
.vx-plan-rate sup { font-size:1.8rem; }
.vx-plan-label { font-size:.6rem; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); margin-bottom:20px; }
.vx-plan-row { display:flex; justify-content:space-between; align-items:center; font-size:.78rem; color:var(--silver); padding:8px 0; border-bottom:1px solid var(--border2,rgba(0,0,0,.04)); }
.vx-plan-row strong { color:var(--text); font-weight:500; }

/* ══════════════════════════════════════════
   QUICK ACTION GRID
══════════════════════════════════════════ */
.vx-qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.vx-qa {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; background: var(--input-bg); border: 1px solid var(--border);
  text-decoration: none; transition: all .2s; text-align: center;
}
.vx-qa:hover { border-color: var(--border-gold); }
.vx-qa-icon { width: 30px; height: 30px; border: 1px solid; display: flex; align-items: center; justify-content: center; }
.vx-qa-icon svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }
.vx-qa-label { font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.vx-empty { padding: 48px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vx-empty-icon { width: 48px; height: 48px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 4px; }
.vx-empty-icon svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; }
.vx-empty-text { font-size: .8rem; color: var(--muted); }

/* ══════════════════════════════════════════
   GRID UTILITIES
══════════════════════════════════════════ */
.vx-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vx-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vx-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .vx-grid-2 { grid-template-columns: 1fr; } .vx-grid-3 { grid-template-columns: 1fr 1fr; } .vx-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .vx-grid-3 { grid-template-columns: 1fr; } .vx-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .vx-grid-4 { grid-template-columns: 1fr 1fr; } }

.gap-sm { gap: 10px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 20px; }
.mb-lg { margin-bottom: 28px; }

/* ══════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════ */
.vx-auth-page { min-height: 100vh; background: var(--bg); display: flex; align-items: stretch; }
.vx-auth-hero {
  display: none; width: 40%;
  background: var(--surface); border-right: 1px solid var(--border);
  flex-direction: column; justify-content: center; align-items: center;
  padding: 3rem 2rem; position: relative; overflow: hidden; flex-shrink: 0;
}
.vx-auth-hero::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 80% 60% at 30% 40%, rgba(201,168,76,.07),transparent 60%),radial-gradient(ellipse 60% 50% at 70% 70%, rgba(45,212,168,.04),transparent 60%); pointer-events:none; }
@media (min-width: 992px) { .vx-auth-hero { display: flex; } }
.vx-auth-panel {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem; background: var(--bg); overflow-y: auto;
}
@media (min-width: 576px) { .vx-auth-panel { padding: 3rem 2rem; } }
.vx-auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border);
  border-top: 1px solid var(--gold);
  padding: 2rem;
}
@media (min-width: 576px) { .vx-auth-card { padding: 2.5rem; } }

.vx-auth-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 24px; }
.vx-auth-logo-mark { width: 28px; height: 28px; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; transform: rotate(45deg); flex-shrink: 0; }
.vx-auth-logo-mark span { transform: rotate(-45deg); font-family: 'Cormorant Garamond', serif; font-size: .85rem; font-weight: 700; color: var(--gold); }
.vx-auth-logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: var(--text); letter-spacing: .08em; }
.vx-auth-title { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: var(--text); margin: 0 0 6px; }
.vx-auth-sub { font-size: .8rem; color: var(--muted); margin: 0 0 24px; }
.vx-auth-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin-bottom: 24px; opacity: .5; }

.vx-auth-submit {
  width: 100%; background: var(--gold); border: none;
  color: var(--bg); font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 13px; cursor: pointer; transition: opacity .2s, transform .15s;
}
.vx-auth-submit:hover { opacity: .9; transform: translateY(-1px); }

/* ══════════════════════════════════════════
   ADMIN PANEL OVERRIDES
══════════════════════════════════════════ */
.vx-admin-badge { display: flex; align-items: center; gap: 6px; }
.vx-admin-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: adminPulse 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes adminPulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.vx-admin-tag {
  display: inline-block; font-size: .52rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 2px 7px;
  background: rgba(201,168,76,.1); border: 1px solid var(--border-gold); color: var(--gold);
}

/* Filter tabs */
.vx-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.vx-filter-tab {
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid var(--border); color: var(--muted);
  text-decoration: none; transition: all .2s; background: transparent;
}
.vx-filter-tab:hover { border-color: var(--gold); color: var(--gold); }
.vx-filter-tab.active { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.08); }
.vx-filter-tab.active-green { border-color: var(--green); color: var(--green); background: rgba(45,212,168,.06); }
.vx-filter-tab.active-red   { border-color: var(--red); color: var(--red); background: rgba(240,92,106,.06); }

/* Scrollbar global */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); }
