/* ═══════════════════════════════════════════════════════════════
   VALOR PERKS — css/trade.css  (Figma redesign)
   FULLY SELF-CONTAINED — no design-system.css dependency
   Theme: light blue-gray bg · white cards · chartreuse accent
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Brand colours */
  --blue:        #1a56db;
  --blue-hover:  #1244bf;
  --blue-light:  #eff4ff;
  --blue-mid:    #3b82f6;
  --chartreuse:  #c8f700;
  --chart-dark:  #9ebe00;
  --chart-text:  #1a2000;
  --orange:      #f97316;
  --orange-light:#fff4ed;
  --red:         #ef4444;
  --red-light:   #fef2f2;
  --emerald:     #10b981;
  --emerald-light:#ecfdf5;

  /* Backgrounds */
  --body-bg: linear-gradient(145deg, #dde3f4 0%, #edf0f9 50%, #e5e9f5 100%);
  --card-bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;

  /* Text */
  --text-900: #0d1117;
  --text-700: #374151;
  --text-500: #6b7280;
  --text-400: #9ca3af;
  --text-300: #d1d5db;

  /* Borders */
  --border:       #e8edf5;
  --border-light: #f0f4fb;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.05);

  /* Radii */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-pill:999px;

  /* Spacing */
  --s-2:  2px;  --s-4:  4px;  --s-6:  6px;  --s-8:  8px;
  --s-10:10px; --s-12:12px; --s-14:14px; --s-16:16px;
  --s-18:18px; --s-20:20px; --s-24:24px; --s-28:28px;
  --s-32:32px; --s-40:40px; --s-48:48px; --s-56:56px;
  --s-64:64px; --s-72:72px; --s-80:80px;

  /* Layout */
  --sidebar-w: 220px;
  --topbar-h:  66px;
  --right-w:   284px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--body-bg);
  background-attachment: fixed;
  color: var(--text-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
input { font-family: inherit; }
.vp-body { background: var(--body-bg); background-attachment: fixed; }

/* ── Card base ──────────────────────────────────────────────── */
.vp-card {
  background: var(--card-bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* ── Card header ────────────────────────────────────────────── */
.vp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-16) var(--s-20);
  border-bottom: 1px solid var(--border-light);
}

.vp-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: -0.01em;
}

.vp-card-sub {
  font-size: 11px;
  color: var(--text-500);
  font-family: var(--font-mono);
}

.vp-card-body { padding: var(--s-20); }

/* ── Shell: sidebar + main ──────────────────────────────────── */
.vp-shell {
  display: flex;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.vp-sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: var(--s-24) var(--s-16);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
  gap: var(--s-8);
  box-shadow: var(--shadow-sm);
}

/* Logo */
.vp-sidebar-logo {
  padding: var(--s-4) var(--s-8);
  margin-bottom: var(--s-16);
}

.vp-logo-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-900);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  text-decoration: none;
}

.vp-logo-link span:first-child { color: var(--blue); }

.vp-logo-dot {
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
  margin-left: 1px;
}

/* Balance card */
.vp-balance-card {
  background: var(--chartreuse);
  border-radius: var(--r-lg);
  padding: var(--s-16);
  margin-bottom: var(--s-16);
  position: relative;
  overflow: hidden;
}

.vp-balance-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.vp-balance-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--chart-text);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s-6);
}

.vp-balance-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

#trade-balance {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--chart-text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.vp-balance-unit {
  font-size: 12px;
  font-weight: 700;
  color: var(--chart-text);
  opacity: 0.7;
}

.vp-balance-naira {
  font-size: 11px;
  color: var(--chart-text);
  opacity: 0.65;
  font-family: var(--font-mono);
  margin-top: var(--s-4);
}

.vp-balance-arrow-btn {
  position: absolute;
  top: var(--s-14);
  right: var(--s-14);
  width: 32px;
  height: 32px;
  background: var(--chart-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chartreuse);
}

/* Nav items */
.vp-nav {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}

.vp-nav-item {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  padding: 10px var(--s-12);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-500);
  text-decoration: none;
  background: none;
  border: none;
  transition: background 0.14s, color 0.14s;
  cursor: pointer;
  width: 100%;
  text-align: left;
  position: relative;
}

.vp-nav-item:hover {
  background: var(--surface);
  color: var(--text-900);
}

.vp-nav-item.active {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
}

.vp-nav-item.active .vp-nav-icon { color: var(--blue); }

.vp-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: var(--text-400);
  flex-shrink: 0;
  transition: color 0.14s;
}

.vp-nav-arrow {
  margin-left: auto;
  display: flex;
  align-items: center;
  color: var(--text-400);
}

.vp-nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar bottom */
.vp-sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-top: var(--s-16);
  border-top: 1px solid var(--border-light);
  margin-top: var(--s-16);
}

.vp-logout-btn {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  padding: 10px var(--s-12);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.14s;
  width: 100%;
  text-align: left;
  margin-top: var(--s-4);
}

.vp-logout-btn:hover { background: var(--red-light); }

/* ══════════════════════════════════════════════════════════════
   MAIN AREA
   ══════════════════════════════════════════════════════════════ */
.vp-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--s-20) var(--s-24) var(--s-40);
}

/* ── Topbar ─────────────────────────────────────────────────── */
.vp-topbar {
  display: flex;
  align-items: center;
  gap: var(--s-16);
  background: var(--card-bg);
  border-radius: var(--r-xl);
  padding: var(--s-12) var(--s-20);
  margin-bottom: var(--s-20);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  min-height: 58px;
}

/* Hamburger (hidden on desktop) */
.vp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.vp-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-500);
  border-radius: 2px;
}

/* Search */
.vp-search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--s-10);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  padding: 9px var(--s-18);
  max-width: 560px;
}

.vp-search-icon { flex-shrink: 0; }

.vp-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-700);
}

.vp-search-input::placeholder { color: var(--text-400); }

/* Topbar right */
.vp-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  margin-left: auto;
}

.vp-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
  position: relative;
  flex-shrink: 0;
}

.vp-icon-btn:hover {
  border-color: #d1d5db;
  background: var(--surface);
}

.vp-notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--card-bg);
}

/* Tier chip */
.vp-tier-chip {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1.5px solid var(--border);
  color: var(--text-500);
  background: var(--surface);
}

/* Tier variants */
.dash-tier-badge--free   { color: var(--text-500); background: var(--surface); border-color: var(--border); }
.dash-tier-badge--silver { color: #64748b; background: #f8fafc; border-color: #cbd5e1; }
.dash-tier-badge--gold   { color: #92400e; background: #fef3c7; border-color: #fbbf24; }

/* User chip */
.vp-user-chip {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  background: var(--blue);
  border-radius: var(--r-pill);
  padding: 6px 14px 6px 6px;
  border: none;
  cursor: pointer;
  transition: background 0.14s;
  color: #fff;
}

.vp-user-chip:hover { background: var(--blue-hover); }

.vp-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.vp-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.vp-user-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  line-height: 1.3;
}

.vp-user-email {
  font-size: 10px;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
  line-height: 1.2;
}

/* User dropdown */
.vp-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 200;
}

.vp-user-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.vp-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  width: 100%;
  padding: var(--s-8) var(--s-10);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-700);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s;
  text-align: left;
}

.vp-dropdown-item:hover { background: var(--surface); }
.vp-dropdown-danger { color: var(--red); }
.vp-dropdown-danger:hover { background: var(--red-light); }

/* ── Content Grid ───────────────────────────────────────────── */
.vp-content-grid {
  display: grid;
  grid-template-columns: 1fr var(--right-w);
  gap: var(--s-20);
  align-items: start;
}

/* ── Center column ──────────────────────────────────────────── */
.vp-center-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  min-width: 0;
}

/* ═══ CHART CARD ════════════════════════════════════════════════ */
.vp-chart-card { overflow: hidden; }

.vp-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-12) var(--s-16);
  border-bottom: 1px solid var(--border-light);
  gap: var(--s-12);
  flex-wrap: wrap;
}

.vp-toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--s-14);
}

.vp-tools-btn {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  padding: 5px 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-700);
  cursor: pointer;
  transition: background 0.12s;
}

.vp-tools-btn:hover { background: var(--surface-2); }

.vp-pair-label {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: 0.02em;
}

.vp-price-inline {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: -0.02em;
}

.vp-change-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
}

.vp-change-badge.positive {
  background: var(--chartreuse);
  color: var(--chart-text);
}

.vp-change-badge.negative {
  background: var(--orange-light);
  color: var(--orange);
}

/* Timeframe buttons */
.vp-timeframes {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 3px;
  border: 1px solid var(--border-light);
}

.vp-tf {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-500);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}

.vp-tf:hover { color: var(--text-900); background: rgba(0,0,0,0.04); }

.vp-tf.active {
  background: var(--chartreuse);
  color: var(--chart-text);
}

.vp-chart-canvas-wrap {
  padding: var(--s-4) 0 0;
  background: var(--card-bg);
}

#trade-chart { display: block; width: 100%; }

/* ═══ TRADE FORM CARD ═══════════════════════════════════════════ */
.vp-trade-form-card {}

.vp-form-row { display: flex; flex-direction: column; gap: var(--s-14); }

.vp-form-group { display: flex; flex-direction: column; gap: var(--s-6); }

.vp-form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vp-form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vp-stake-max {
  font-size: 11px;
  color: var(--text-400);
  font-family: var(--font-mono);
}

.vp-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-900);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.vp-input::placeholder { color: var(--text-400); }

.vp-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.10);
  background: var(--card-bg);
}

.vp-input[type=number]::-webkit-inner-spin-button,
.vp-input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.vp-input[type=number] { -moz-appearance: textfield; }

.vp-stake-hints {
  display: flex;
  justify-content: space-between;
  gap: var(--s-8);
  margin-top: var(--s-2);
}

.vp-stake-hints span {
  font-size: 11px;
  color: var(--text-500);
  font-family: var(--font-mono);
}

#max-profit-disp { color: var(--emerald) !important; }

.vp-error-msg {
  display: none;
  background: var(--red-light);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--r-sm);
  color: var(--red);
  font-size: 12px;
  line-height: 1.5;
  padding: var(--s-8) var(--s-12);
  margin-top: var(--s-8);
}

.vp-form-disclaimer {
  font-size: 10px;
  color: var(--text-400);
  line-height: 1.6;
  text-align: center;
  padding-top: var(--s-12);
  border-top: 1px solid var(--border-light);
  margin-top: var(--s-4);
}

/* Active trade panel */
.vp-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--emerald-light);
  border-radius: var(--r-pill);
  padding: 3px 8px;
  font-family: var(--font-mono);
}

.vp-live-dot-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  animation: vp-blink 1.2s infinite;
}

@keyframes vp-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.vp-active-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-10);
  margin-bottom: var(--s-16);
}

.vp-active-stat {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: var(--s-10) var(--s-12);
}

.vp-active-stat-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--s-4);
}

.vp-active-stat-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-900);
}

.vp-pnl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-14) var(--s-16);
  margin-bottom: var(--s-16);
}

.vp-pnl-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
}

.vp-pnl-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-900);
  line-height: 1;
  transition: color 0.3s;
}

.dir-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}

.dir-badge--long {
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid rgba(16,185,129,0.2);
}

.dir-badge--short {
  background: var(--orange-light);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,0.2);
}

.vp-close-btn {
  width: 100%;
  background: var(--blue-light);
  border: 1.5px solid rgba(26,86,219,0.2);
  color: var(--blue);
  border-radius: var(--r-lg);
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}

.vp-close-btn:hover:not(:disabled) {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.vp-close-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ═══ HISTORY TABLE ══════════════════════════════════════════════ */
.vp-history-card {}

.vp-view-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.12s;
}

.vp-view-all:hover { opacity: 0.75; }

.vp-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 500px;
}

.vp-table thead { background: var(--surface); }

.vp-table th {
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.vp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-700);
  vertical-align: middle;
}

.vp-table tbody tr:hover { background: var(--surface); }
.vp-table tbody tr:last-child td { border-bottom: none; }

.vp-empty-cell {
  padding: var(--s-32);
  text-align: center;
  color: var(--text-400);
  font-size: 13px;
}

/* ═══ RIGHT PANEL ════════════════════════════════════════════════ */
.vp-right-panel {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  position: sticky;
  top: var(--s-20);
}

/* Watchlist card */
.vp-watch-card {}

.vp-plus-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  color: var(--text-700);
}

.vp-plus-btn:hover {
  background: var(--blue-light);
  border-color: rgba(26,86,219,0.25);
  color: var(--blue);
}

.vp-watch-list {
  padding: var(--s-8) var(--s-12);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vp-watch-row {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  padding: var(--s-10) var(--s-8);
  border-radius: var(--r-md);
  transition: background 0.12s;
}

.vp-watch-row:hover { background: var(--surface); }

.vp-watch-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text-900);
  color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.vp-watch-icon--vpt   { background: linear-gradient(135deg, #1a2b70, #1a56db); color: #fff; }
.vp-watch-icon--morning { background: linear-gradient(135deg, #78350f, #f59e0b); font-size: 16px; }
.vp-watch-icon--night   { background: linear-gradient(135deg, #1e1b4b, #4338ca); font-size: 16px; }

.vp-watch-info {
  flex: 1;
  min-width: 0;
}

.vp-watch-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-watch-sub {
  font-size: 10px;
  color: var(--text-500);
  margin-top: 1px;
}

.vp-watch-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-700);
  margin-top: 2px;
}

.vp-watch-price--live {
  color: var(--text-900);
  font-size: 13px;
}

.vp-watch-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--text-900);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chartreuse);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s;
}

.vp-watch-btn:hover { background: var(--blue); color: #fff; }

.vp-watch-btn--down {
  color: var(--orange);
  background: var(--text-900);
}

/* Execution card */
.vp-exec-card { padding: var(--s-18); }

.vp-exec-prices {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  margin-bottom: var(--s-16);
}

.vp-exec-price-col { flex: 1; }

.vp-exec-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s-4);
}

.vp-exec-price-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: -0.02em;
}

.vp-exec-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.vp-exec-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-10);
  margin-bottom: var(--s-10);
}

#btn-long {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-lg);
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}

#btn-long:hover:not(:disabled) {
  background: var(--blue-hover);
  box-shadow: 0 4px 16px rgba(26,86,219,0.30);
  transform: translateY(-1px);
}

#btn-short {
  background: var(--chartreuse);
  color: var(--chart-text);
  border: none;
  border-radius: var(--r-lg);
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}

#btn-short:hover:not(:disabled) {
  background: var(--chart-dark);
  box-shadow: 0 4px 16px rgba(200,247,0,0.30);
  transform: translateY(-1px);
}

#btn-long:disabled, #btn-short:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.vp-exec-note {
  font-size: 10px;
  color: var(--text-400);
  text-align: center;
  line-height: 1.5;
}

/* Mini history */
.vp-mini-history-card {}

.vp-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-10) var(--s-20);
  border-bottom: 1px solid var(--border-light);
}

.vp-session-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  letter-spacing: 0.03em;
}

.session-badge--day {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fde68a;
}

.session-badge--night {
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid rgba(26,86,219,0.15);
}

.vp-session-note {
  font-size: 10px;
  color: var(--text-400);
}

#vp-mini-history-list { padding: var(--s-8) var(--s-12); }

.vp-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-10) var(--s-8);
  border-radius: var(--r-sm);
  border-bottom: 1px solid var(--border-light);
}

.vp-mini-row:last-child { border-bottom: none; }
.vp-mini-row:hover { background: var(--surface); }

.vp-mini-left { flex: 1; }

.vp-mini-trade-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-900);
}

.vp-mini-trade-sub {
  font-size: 10px;
  color: var(--text-500);
  margin-top: 1px;
}

.vp-mini-right { text-align: right; }

.vp-mini-amount {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.vp-mini-amount.positive { color: var(--blue); }
.vp-mini-amount.negative { color: var(--orange); }

.vp-mini-date {
  font-size: 10px;
  color: var(--text-400);
  margin-top: 1px;
}

.vp-mini-empty {
  padding: var(--s-20) var(--s-8);
  text-align: center;
  color: var(--text-400);
  font-size: 12px;
}

/* ══ MOBILE NAV ═══════════════════════════════════════════════════ */
.vp-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--card-bg);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}

.vp-mobile-nav.open { transform: translateX(0); }

.vp-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.vp-mobile-backdrop.open { opacity: 1; pointer-events: auto; }

.vp-mobile-nav-inner {
  padding: var(--s-32) var(--s-24);
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  min-height: 100%;
}

.vp-mobile-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-900);
  margin-bottom: var(--s-24);
}

.vp-mobile-logo span { color: var(--blue); }

.vp-mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  flex: 1;
}

.vp-mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-700);
  transition: background 0.12s, color 0.12s;
}

.vp-mobile-link:hover { background: var(--surface); }
.vp-mobile-link.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }

.vp-mobile-logout {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  background: none;
  border: none;
  cursor: pointer;
  margin-top: auto;
  transition: background 0.12s;
}

.vp-mobile-logout:hover { background: var(--red-light); }

/* ══ TOAST ════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: var(--s-24);
  right: var(--s-20);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-12) var(--s-16);
  font-size: 13px;
  color: var(--text-900);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  cursor: pointer;
  animation: toast-in 0.25s ease forwards;
}

.toast--success { border-left: 3px solid var(--emerald); }
.toast--error   { border-left: 3px solid var(--red); }
.toast--info    { border-left: 3px solid var(--blue); }
.toast.hiding   { animation: toast-out 0.25s ease forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); }
}

/* ══ FOOTER ═══════════════════════════════════════════════════════ */
.vp-footer {
  margin-top: var(--s-32);
  padding: var(--s-20) 0 var(--s-8);
  border-top: 1px solid var(--border);
  text-align: center;
}

.vp-footer p {
  font-size: 11px;
  color: var(--text-400);
  margin: var(--s-4) 0;
  line-height: 1.6;
}

.vp-footer a { color: var(--blue); text-decoration: none; }

/* ══ RESPONSIVE ═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  :root { --right-w: 260px; }
}

@media (max-width: 960px) {
  .vp-sidebar { transform: translateX(-100%); transition: transform 0.28s ease; }
  .vp-shell .vp-main { margin-left: 0; }
  .vp-hamburger { display: flex; }
  .vp-content-grid { grid-template-columns: 1fr; }
  .vp-right-panel { position: static; }
}

@media (max-width: 640px) {
  .vp-main { padding: var(--s-16) var(--s-12) var(--s-32); }
  .vp-topbar { padding: var(--s-10) var(--s-14); gap: var(--s-10); }
  .vp-search-bar { display: none; }
  .vp-user-info { display: none; }
  .vp-chart-toolbar { flex-direction: column; align-items: flex-start; }
  .vp-timeframes { overflow-x: auto; width: 100%; }
  .vp-active-stats-grid { grid-template-columns: 1fr 1fr; }
  .vp-exec-btns { grid-template-columns: 1fr 1fr; }
  .vp-pnl-val { font-size: 18px; }
}

@media (max-width: 400px) {
  .vp-exec-btns { grid-template-columns: 1fr; }
}