/* ═══════════════════════════════════════════════════════════════
   CRYPTO ELITE — INSTITUTIONAL PORTFOLIO ANALYTICS
   styles.css  |  Dark Obsidian Theme + SPA Multi-Screen
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg-base:          #0c0d14;
  --bg-surface:       #111220;
  --bg-panel:         #131525;
  --bg-card:          #161829;
  --bg-input:         #0e0f1c;
  --bg-modal:         #131525;

  --neon-blue:        #00d4ff;
  --neon-blue-dim:    rgba(0, 212, 255, 0.12);
  --neon-blue-glow:   rgba(0, 212, 255, 0.35);
  --neon-purple:      #a855f7;
  --neon-purple-dim:  rgba(168, 85, 247, 0.12);
  --neon-purple-glow: rgba(168, 85, 247, 0.35);
  --neon-green:       #00ff88;
  --neon-green-dim:   rgba(0, 255, 136, 0.12);
  --neon-green-glow:  rgba(0, 255, 136, 0.3);
  --neon-red:         #ff4560;
  --neon-red-dim:     rgba(255, 69, 96, 0.12);

  --text-primary:   #e8eaf0;
  --text-secondary: #7b84a0;
  --text-muted:     #4a5168;
  --text-bright:    #ffffff;

  --border-dim:     rgba(255, 255, 255, 0.05);
  --border-glow:    rgba(0, 212, 255, 0.25);
  --border-purple:  rgba(168, 85, 247, 0.25);
  --border-green:   rgba(0, 255, 136, 0.25);

  --glass-blur:     12px;
  --glass-bg:       rgba(255, 255, 255, 0.03);

  --font-main:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --space-xs:  4px;  --space-sm:  8px;  --space-md:  16px;
  --space-lg:  24px; --space-xl:  32px; --space-2xl: 48px;

  --radius-sm:  6px;  --radius-md: 12px;
  --radius-lg:  18px; --radius-xl: 24px;

  --ease-fast:  150ms ease;
  --ease-med:   250ms ease;
  --ease-slow:  400ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(0,212,255,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%,  rgba(168,85,247,0.05) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.25); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.5); }

/* ════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg);
  padding: 0 var(--space-xl);
  height: 64px;
  background: rgba(13,14,22,0.88);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-dim);
  box-shadow: 0 1px 0 rgba(0,212,255,0.08);
}

.header-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.brand-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(168,85,247,0.15));
  border: 1px solid rgba(0,212,255,0.2);
  transition: box-shadow var(--ease-med);
}
.brand-icon:hover { box-shadow: 0 0 20px rgba(0,212,255,0.3); }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-size: 18px; font-weight: 800; letter-spacing: -0.3px;
  background: linear-gradient(90deg, #00d4ff, #a855f7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.brand-tagline { font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.8px; text-transform: uppercase; }

/* Nav */
.header-nav { display: flex; align-items: center; gap: var(--space-xl); }
.nav-item {
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; letter-spacing: 0.3px;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color var(--ease-fast), border-color var(--ease-fast);
  position: relative;
  user-select: none;
}
.nav-item:hover { color: var(--text-primary); }
.nav-item.active {
  color: var(--neon-blue);
  border-bottom-color: var(--neon-blue);
}
.nav-item.active::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue), 0 0 20px rgba(0,212,255,0.4);
  border-radius: 1px;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }

.live-dot-wrapper {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.2);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green);
  animation: pulseDot 1.8s ease-in-out infinite;
}
.live-label { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--neon-green); }

@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(0.8); }
}

.btn-gopro {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(168,85,247,0.15));
  border: 1px solid rgba(0,212,255,0.35);
  color: var(--neon-blue);
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  transition: all var(--ease-med); position: relative; overflow: hidden;
}
.btn-gopro::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(168,85,247,0.1));
  opacity: 0; transition: opacity var(--ease-med);
}
.btn-gopro:hover::before { opacity: 1; }
.btn-gopro:hover { box-shadow: 0 0 20px rgba(0,212,255,0.3); transform: translateY(-1px); }
.btn-gopro.is-pro {
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(123,94,167,0.2));
  border-color: rgba(168,85,247,0.5);
  color: var(--neon-purple);
  box-shadow: 0 0 16px rgba(168,85,247,0.3);
  animation: proGlow 2.5s ease-in-out infinite;
}
@keyframes proGlow {
  0%,100% { box-shadow: 0 0 16px rgba(168,85,247,0.3); }
  50%      { box-shadow: 0 0 28px rgba(168,85,247,0.55); }
}
.go-pro-icon { font-size: 14px; }

/* ════════════════════════════════════════════════════════════
   MAIN CONTENT + SPA SCREENS
════════════════════════════════════════════════════════════ */
.main-content {
  max-width: 1440px; margin: 0 auto;
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
}

/* ── Screen base ───────────────────────────────────────────── */
.screen {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  animation: screenFadeIn 0.4s cubic-bezier(0.25,0.8,0.25,1);
}

@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Screen hero header ─────────────────────────────────────── */
.screen-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.screen-title {
  font-size: 28px; font-weight: 900; letter-spacing: -0.5px;
  color: var(--text-bright);
  background: linear-gradient(90deg, #e8eaf0 0%, #7b84a0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.screen-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ════════════════════════════════════════════════════════════
   METRIC CARDS (Portfolio Screen)
════════════════════════════════════════════════════════════ */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.metric-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  overflow: hidden;
  transition: transform var(--ease-med), box-shadow var(--ease-med);
  cursor: default;
}
.metric-card:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(0,212,255,0.12); }

.metric-card-glow {
  position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  animation: glowFloat 4s ease-in-out infinite;
}
.metric-card-glow.glow-purple { background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%); }
.metric-card-glow.glow-green  { background: radial-gradient(circle, rgba(0,255,136,0.12)  0%, transparent 70%); }
.metric-card-glow.glow-red    { background: radial-gradient(circle, rgba(255,69,96,0.12)   0%, transparent 70%); }

@keyframes glowFloat {
  0%,100% { transform: translate(0,0)    scale(1);   }
  50%      { transform: translate(-8px,8px) scale(1.1); }
}

.metric-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: var(--space-md);
}
.metric-icon          { color: var(--neon-blue);   font-size: 14px; }
.metric-icon-purple   { color: var(--neon-purple); }
.metric-icon-green    { color: var(--neon-green);  }
.metric-icon-red      { color: var(--neon-red);    }

.metric-value {
  font-size: 32px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--text-bright); margin-bottom: 6px;
  font-variant-numeric: tabular-nums; transition: color var(--ease-med);
}
.metric-value.is-profit { color: var(--neon-green); }
.metric-value.is-loss   { color: var(--neon-red);   }

.metric-sub { font-size: 12px; color: var(--text-muted); margin-bottom: var(--space-md); }

.metric-sparkline { margin-top: auto; height: 32px; }
.sparkline-svg    { width: 100%; height: 32px; }
.spark-line        { fill: none; stroke: var(--neon-blue);   stroke-width: 1.5; opacity: 0.5; }
.spark-purple      { stroke: var(--neon-purple); }
.spark-green       { stroke: var(--neon-green);  }

/* ════════════════════════════════════════════════════════════
   WORKSPACE GRID
════════════════════════════════════════════════════════════ */
.workspace-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* ── Shared Panel ───────────────────────────────────────────── */
.panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: box-shadow var(--ease-med);
}

.panel-header { margin-bottom: var(--space-xl); }

.panel-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; color: var(--text-bright); margin-bottom: 4px;
}
.panel-title-icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: var(--neon-blue-dim); border: 1px solid var(--border-glow);
  color: var(--neon-blue); font-size: 16px; font-weight: 400;
}
.panel-subtitle { font-size: 12px; color: var(--text-muted); padding-left: 38px; }

/* ════════════════════════════════════════════════════════════
   ASSET FORM
════════════════════════════════════════════════════════════ */
.asset-form { display: flex; flex-direction: column; gap: var(--space-md); }
.form-field  { display: flex; flex-direction: column; gap: 6px; }
.form-label  { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-secondary); }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon    { position: absolute; left: 14px; font-size: 14px; color: var(--text-muted); pointer-events: none; z-index: 1; }

.form-input {
  width: 100%; padding: 11px 14px 11px 38px;
  background: var(--bg-input); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 14px; font-weight: 500; outline: none;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  -moz-appearance: textfield;
}
.form-input::-webkit-outer-spin-button,
.form-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--neon-blue); box-shadow: 0 0 0 3px var(--neon-blue-dim), inset 0 0 0 1px rgba(0,212,255,0.1); }
.form-input.is-error { border-color: var(--neon-red);   box-shadow: 0 0 0 3px var(--neon-red-dim); }
.form-input.is-valid { border-color: var(--neon-green); box-shadow: 0 0 0 3px var(--neon-green-dim); }

.input-status { position: absolute; right: 12px; font-size: 16px; transition: opacity var(--ease-fast); }

.symbol-feedback { font-size: 12px; font-weight: 500; min-height: 18px; padding-left: 2px; transition: color var(--ease-fast); }
.symbol-feedback.is-error { color: var(--neon-red);   }
.symbol-feedback.is-ok    { color: var(--neon-green); }

.price-preview        { border-radius: var(--radius-md); overflow: hidden; }
.price-preview-inner  {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(168,85,247,0.05));
  border: 1px solid var(--border-glow); border-radius: var(--radius-md);
}
.price-preview-label { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-secondary); }
.price-preview-value { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--neon-blue); letter-spacing: 0.3px; }

.btn-add-asset {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0084ff, #00d4ff);
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.5px;
  transition: all var(--ease-med); position: relative; overflow: hidden;
}
.btn-add-asset::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity var(--ease-fast);
}
.btn-add-asset:hover:not(:disabled)::before { opacity: 1; }
.btn-add-asset:hover:not(:disabled)  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,255,0.4); }
.btn-add-asset:active:not(:disabled) { transform: translateY(0); }
.btn-add-asset:disabled { opacity: 0.35; cursor: not-allowed; filter: grayscale(0.5); }
.btn-add-icon { font-size: 20px; font-weight: 300; line-height: 1; }

.token-chips { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); flex-wrap: wrap; }
.token-chip  {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border-glow); background: var(--neon-blue-dim);
  color: var(--neon-blue); font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  cursor: pointer; transition: all var(--ease-fast); font-family: var(--font-mono);
}
.token-chip:hover, .token-chip:focus {
  background: rgba(0,212,255,0.2); box-shadow: 0 0 12px rgba(0,212,255,0.2); outline: none;
}

/* ════════════════════════════════════════════════════════════
   CHART PANEL (Portfolio → Allocation)
════════════════════════════════════════════════════════════ */
.panel-right { min-height: 420px; display: flex; flex-direction: column; }

.chart-wrapper {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 280px; position: relative;
}

.chart-empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: fadeIn 0.5s ease; }
.empty-state-icon  { font-size: 52px; color: var(--text-muted); opacity: 0.3; animation: spinSlow 8s linear infinite; }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.empty-state-sub   { font-size: 13px; color: var(--text-muted); max-width: 220px; }

.chart-canvas-container { position: relative; width: 260px; height: 260px; flex-shrink: 0; }
#portfolio-chart        { width: 100% !important; height: 100% !important; }

.chart-center-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); text-align: center; pointer-events: none;
}
.chart-center-value { display: block; font-size: 20px; font-weight: 800; color: var(--text-bright); font-variant-numeric: tabular-nums; letter-spacing: -0.3px; }
.chart-center-sub   { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.chart-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-lg); justify-content: center; }
.legend-item  { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.legend-dot   { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-pct   { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════
   SHARED TABLE STYLES
════════════════════════════════════════════════════════════ */
.table-wrapper  { overflow-x: auto; }

.activity-table, .markets-table {
  min-width: 900px;
}
.activity-table thead tr,
.markets-table thead tr  { border-bottom: 1px solid var(--border-dim); }

.activity-table th,
.markets-table th {
  padding: 10px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-muted); text-align: left; white-space: nowrap;
}
.col-action { text-align: center; }

.activity-table tbody tr,
.markets-table tbody tr {
  border-bottom: 1px solid var(--border-dim);
  transition: background var(--ease-fast);
}
.activity-table tbody tr:hover,
.markets-table tbody tr:hover { background: rgba(0,212,255,0.03); }
.activity-table tbody tr:last-child,
.markets-table tbody tr:last-child { border-bottom: none; }

.activity-table td, .markets-table td {
  padding: 14px 14px; font-size: 13px;
  font-variant-numeric: tabular-nums; vertical-align: middle; white-space: nowrap;
}

.token-badge { display: inline-flex; align-items: center; gap: 8px; }
.token-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.token-name  { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text-bright); letter-spacing: 0.5px; }

.pnl-positive { color: var(--neon-green); font-weight: 700; font-family: var(--font-mono); }
.pnl-negative { color: var(--neon-red);   font-weight: 700; font-family: var(--font-mono); }
.cell-mono    { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-primary); }
.cell-dim     { color: var(--text-secondary); font-size: 12px; }
.cell-time    { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.btn-delete {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,69,96,0.25); background: rgba(255,69,96,0.07);
  color: rgba(255,69,96,0.6); font-size: 14px;
  transition: all var(--ease-fast); margin: 0 auto;
}
.btn-delete:hover {
  background: rgba(255,69,96,0.18); border-color: rgba(255,69,96,0.5);
  color: var(--neon-red); box-shadow: 0 0 10px rgba(255,69,96,0.2); transform: scale(1.1);
}

.table-empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: var(--space-2xl);
  color: var(--text-muted); font-size: 13px; text-align: center;
}
.table-empty-icon { font-size: 36px; opacity: 0.3; }

/* Row animation */
.activity-table tbody tr,
.markets-table tbody tr {
  animation: rowSlideIn 0.35s ease;
}
@keyframes rowSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   MARKETS SCREEN
════════════════════════════════════════════════════════════ */
.markets-panel { width: 100%; }

/* Ticker bar — standalone full-width strip above the gate */
.markets-ticker-bar {
  display: flex; align-items: center; gap: var(--space-xl);
  padding: 8px 20px;
  width: 100%;
  background: rgba(0,212,255,0.04);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  overflow: hidden;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; white-space: nowrap;
  flex-shrink: 0;
}
.ticker-sym  { color: var(--text-secondary); font-weight: 700; }
.ticker-price { color: var(--text-bright); font-weight: 600; }
.ticker-chg  { font-size: 11px; font-weight: 700; }
.ticker-chg.up   { color: var(--neon-green); }
.ticker-chg.down { color: var(--neon-red);   }

/* Markets table */
.markets-table { min-width: 1000px; }

.asset-info-cell { display: flex; align-items: center; gap: 12px; }
.asset-icon-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.asset-info-name    { font-weight: 700; color: var(--text-bright); font-size: 14px; }
.asset-info-sub     { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.asset-rank         { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

.ticker-pill {
  display: inline-flex; padding: 3px 10px; border-radius: 999px;
  background: var(--neon-blue-dim); border: 1px solid var(--border-glow);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--neon-blue);
}

.live-price-cell {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: var(--text-bright); transition: color 0.3s ease;
}
.live-price-cell.flash-up   { animation: priceFlashUp   0.5s ease; }
.live-price-cell.flash-down { animation: priceFlashDown 0.5s ease; }

@keyframes priceFlashUp {
  0%   { color: var(--neon-green); text-shadow: 0 0 10px rgba(0,255,136,0.6); }
  100% { color: var(--text-bright); text-shadow: none; }
}
@keyframes priceFlashDown {
  0%   { color: var(--neon-red); text-shadow: 0 0 10px rgba(255,69,96,0.5); }
  100% { color: var(--text-bright); text-shadow: none; }
}

.chg-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}
.chg-badge.positive { background: rgba(0,255,136,0.12); color: var(--neon-green); border: 1px solid rgba(0,255,136,0.25); }
.chg-badge.negative { background: rgba(255,69,96,0.10); color: var(--neon-red);   border: 1px solid rgba(255,69,96,0.2);  }

/* Mini sparkline in markets table */
.mini-spark svg { display: block; }
.mini-spark-line-up   { fill: none; stroke: var(--neon-green); stroke-width: 1.5; }
.mini-spark-line-down { fill: none; stroke: var(--neon-red);   stroke-width: 1.5; }

/* Market stat cards row */
.market-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg);
}

.market-stat-card {
  position: relative;
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glow); border-radius: var(--radius-xl);
  padding: var(--space-lg); overflow: hidden;
  transition: transform var(--ease-med), box-shadow var(--ease-med);
}
.market-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(0,212,255,0.1); }

.market-stat-card-glow {
  position: absolute; top: -20px; right: -20px; width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.2) 0%, transparent 70%);
  animation: glowFloat 4s ease-in-out infinite;
}
.market-stat-card-glow.glow-purple { background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, transparent 70%); }
.market-stat-card-glow.glow-green  { background: radial-gradient(circle, rgba(0,255,136,0.2)  0%, transparent 70%); }
.market-stat-card-glow.glow-red    { background: radial-gradient(circle, rgba(255,69,96,0.15)  0%, transparent 70%); }

.msc-icon  { font-size: 22px; margin-bottom: 10px; }
.msc-label { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.msc-value { font-size: 20px; font-weight: 800; color: var(--text-bright); font-variant-numeric: tabular-nums; }

/* ════════════════════════════════════════════════════════════
   ANALYTICS SCREEN
════════════════════════════════════════════════════════════ */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-xl);
  align-items: start;
}

.analytics-chart-panel { display: flex; flex-direction: column; }

.chart-period-tabs { display: flex; gap: 4px; margin-left: auto; }
.period-tab {
  padding: 5px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-dim);
  background: rgba(255,255,255,0.02);
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all var(--ease-fast);
}
.period-tab:hover { border-color: var(--border-glow); color: var(--neon-blue); }
.period-tab.active {
  background: var(--neon-blue-dim); border-color: var(--border-glow);
  color: var(--neon-blue);
}

.analytics-chart-wrapper {
  position: relative; height: 320px;
  margin: 0 -4px;
}
#analytics-chart { width: 100% !important; height: 100% !important; }

.analytics-chart-footer {
  display: flex; gap: var(--space-lg); margin-top: var(--space-md);
}
.acf-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.acf-dot  { width: 10px; height: 3px; border-radius: 2px; flex-shrink: 0; }

/* Sidebar risk widgets */
.analytics-sidebar { display: flex; flex-direction: column; gap: var(--space-md); }

.risk-widget {
  position: relative;
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glow); border-radius: var(--radius-lg);
  padding: var(--space-md); overflow: hidden;
  transition: transform var(--ease-fast);
}
.risk-widget:hover { transform: translateX(3px); }

.risk-widget-glow {
  position: absolute; top: -15px; right: -15px; width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
}
.risk-widget-glow.glow-red    { background: radial-gradient(circle, rgba(255,69,96,0.15)   0%, transparent 70%); }
.risk-widget-glow.glow-purple { background: radial-gradient(circle, rgba(168,85,247,0.15)  0%, transparent 70%); }
.risk-widget-glow.glow-green  { background: radial-gradient(circle, rgba(0,255,136,0.12)   0%, transparent 70%); }

.rw-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rw-icon   { font-size: 14px; }
.rw-label  { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-muted); }

.rw-value        { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 6px; }
.rw-value-green  { color: var(--neon-green); }
.rw-value-red    { color: var(--neon-red);   }
.rw-value-purple { color: var(--neon-purple);}
.rw-value-blue   { color: var(--neon-blue);  }

.rw-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }

.rw-bar-track { width: 100%; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.rw-bar       { height: 100%; border-radius: 2px; transition: width 1s cubic-bezier(0.25,0.8,0.25,1); }

/* Analytics stats strip */
.analytics-stats-strip {
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glow); border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-lg);
}
.ast-item   { display: flex; flex-direction: column; gap: 4px; }
.ast-label  { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); }
.ast-value  { font-size: 16px; font-weight: 800; color: var(--text-bright); font-family: var(--font-mono); }
.ast-green  { color: var(--neon-green); }
.ast-divider{ width: 1px; height: 32px; background: var(--border-dim); flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   ANALYTICS GATE — Institutional-only blur overlay
════════════════════════════════════════════════════════════ */

/* Wrapper that holds chart + stats + the overlay sibling */
.analytics-gateable {
  position: relative;
  display: flex; flex-direction: column;
  gap: var(--space-xl);
}

/* Full-coverage frosted overlay — shown when analytics screen has .is-gated */
.analytics-gate-overlay {
  position: absolute; inset: -20px;
  z-index: 40;
  align-items: center; justify-content: center;
  backdrop-filter: blur(18px) saturate(0.55) brightness(0.75);
  -webkit-backdrop-filter: blur(18px) saturate(0.55) brightness(0.75);
  background: rgba(8, 9, 18, 0.35);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  animation: fadeIn 0.35s ease;
}
/* display toggled by JS via style.display */

/* ── Gate card ───────────────────────────────────────────── */
.analytics-gate-card {
  position: relative;
  max-width: 500px; width: 100%;
  background: rgba(15, 16, 30, 0.97);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(168, 85, 247, 0.18);
  animation: modalSlideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.gate-card-glow {
  position: absolute; top: -50px; right: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Badge */
.gate-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.38);
  color: var(--neon-purple);
  font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

/* Title */
.gate-title {
  font-size: 24px; font-weight: 900; letter-spacing: -0.3px;
  color: var(--text-bright); margin-bottom: var(--space-md);
}

/* Description */
.gate-desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.65;
  margin: 0 auto var(--space-lg); max-width: 390px;
}
.gate-desc strong { color: var(--text-primary); }

/* Feature list */
.gate-features {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: var(--space-xl);
  text-align: left; max-width: 320px; margin-left: auto; margin-right: auto;
}
.gate-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
}
.gate-feat-icon {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0, 255, 136, 0.1); border: 1px solid rgba(0, 255, 136, 0.28);
  color: var(--neon-green);
}

/* CTA button */
.btn-gate-upgrade {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 340px; padding: 15px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6d28d9, #a855f7, #c084fc);
  color: #fff; font-size: 14.5px; font-weight: 800; letter-spacing: 0.3px;
  border: none; cursor: pointer;
  transition: all var(--ease-med);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.45);
  position: relative; overflow: hidden;
  margin-bottom: var(--space-md);
}
.btn-gate-upgrade::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0; transition: opacity var(--ease-fast);
}
.btn-gate-upgrade:hover::before { opacity: 1; }
.btn-gate-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.6);
}
.btn-gate-upgrade:active { transform: translateY(0); }

/* Restore link note */
.gate-note {
  font-size: 12px; color: var(--text-muted);
}
.gate-link {
  color: var(--neon-blue); cursor: pointer;
  transition: color var(--ease-fast); text-decoration: none;
}
.gate-link:hover { color: var(--text-bright); }

/* ── Institutional Elite header badge ────────────────────── */
.btn-gopro.is-institutional {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(109, 40, 217, 0.22));
  border-color: rgba(168, 85, 247, 0.65);
  color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(168, 85, 247, 0.15);
  animation: institutionalGlow 2.5s ease-in-out infinite;
}
@keyframes institutionalGlow {
  0%,100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(168, 85, 247, 0.15); }
  50%      { box-shadow: 0 0 32px rgba(168, 85, 247, 0.65), 0 0 64px rgba(168, 85, 247, 0.25); }
}

/* ── Pro Trader (Cyan/Blue) gate variant — overrides purple defaults ── */
.gate-card--pro {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(0, 212, 255, 0.18);
}

.gate-glow--pro {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.22) 0%, transparent 70%);
}

.gate-badge--pro {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.38);
  color: var(--neon-blue);
}

.gate-feat-icon--pro {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.28);
  color: var(--neon-blue);
}

.btn-gate-upgrade--pro {
  background: linear-gradient(135deg, #0069cc, #0099d4, #00d4ff);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}
.btn-gate-upgrade--pro:hover {
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.6);
}

/* ── Mobile tweaks for gate card ─────────────────────────── */
@media (max-width: 768px) {
  .analytics-gate-overlay { inset: -10px; padding: var(--space-md); }
  .analytics-gate-card    { padding: var(--space-xl) var(--space-md) var(--space-md); }
  .gate-title             { font-size: 20px; }
  .gate-desc              { font-size: 13px; }
  .gate-features          { max-width: 100%; }
  .btn-gate-upgrade       { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   HISTORY SCREEN
════════════════════════════════════════════════════════════ */
.history-panel { width: 100%; }

.history-actions { display: flex; align-items: center; gap: var(--space-md); }

.btn-utility {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  border: 1px solid; transition: all var(--ease-med);
}
.btn-export {
  background: rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.3);
  color: var(--neon-blue);
}
.btn-export:hover {
  background: rgba(0,212,255,0.15); box-shadow: 0 4px 16px rgba(0,212,255,0.2);
  transform: translateY(-1px);
}
.btn-clear {
  background: rgba(255,69,96,0.08); border-color: rgba(255,69,96,0.3);
  color: var(--neon-red);
}
.btn-clear:hover {
  background: rgba(255,69,96,0.15); box-shadow: 0 4px 16px rgba(255,69,96,0.2);
  transform: translateY(-1px);
}

.history-panel-header { margin-bottom: var(--space-lg); }

.history-filter-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
}
.history-search-wrap {
  position: relative; display: flex; align-items: center;
}
.hs-icon { position: absolute; left: 12px; font-size: 14px; color: var(--text-muted); pointer-events: none; }
.history-search-input {
  padding: 9px 12px 9px 36px; width: 280px;
  background: var(--bg-input); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 13px; outline: none;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.history-search-input:focus { border-color: var(--neon-blue); box-shadow: 0 0 0 3px var(--neon-blue-dim); }
.history-search-input::placeholder { color: var(--text-muted); }

.history-count-badge {
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border-dim); background: rgba(255,255,255,0.02);
  font-size: 12px; color: var(--text-muted);
}

.type-badge-buy {
  display: inline-flex; padding: 3px 10px; border-radius: 999px;
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.25);
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  color: var(--neon-blue); letter-spacing: 0.5px;
}

/* History summary row */
.history-summary-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg);
}
.hsf-item {
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glow); border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.hsf-label { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; display: block; }
.hsf-value { font-size: 20px; font-weight: 800; color: var(--text-bright); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ════════════════════════════════════════════════════════════
   PAYWALL MODAL
════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,9,16,0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg); animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  position: relative; width: 100%; max-width: 460px;
  background: var(--bg-modal);
  border: 1px solid rgba(168,85,247,0.35);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.1), 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(168,85,247,0.1);
  animation: modalSlideUp 0.4s cubic-bezier(0.25,0.8,0.25,1);
  max-height: 92vh; overflow-y: auto; overflow-x: hidden;
}
@keyframes modalSlideUp {
  from { opacity:0; transform: translateY(30px) scale(0.96); }
  to   { opacity:1; transform: translateY(0)    scale(1);    }
}
.modal-box::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-dim);
  color: var(--text-muted); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease-fast);
}
.modal-close:hover { background: rgba(255,69,96,0.1); border-color: rgba(255,69,96,0.3); color: var(--neon-red); }

.modal-badge {
  display: inline-flex; margin-bottom: var(--space-md);
  padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(0,212,255,0.2));
  border: 1px solid rgba(168,85,247,0.4);
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--neon-purple); text-transform: uppercase;
}

.modal-title { font-size: 26px; font-weight: 900; color: var(--text-bright); margin-bottom: 10px; letter-spacing: -0.4px; }
.modal-desc  { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--space-xl); }
.modal-desc strong { color: var(--text-primary); }

.modal-pricing-card {
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(0,212,255,0.05));
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: var(--radius-lg); padding: var(--space-lg);
  text-align: center; margin-bottom: var(--space-xl);
}
.pricing-amount { display: flex; align-items: baseline; justify-content: center; gap: 3px; margin-bottom: 8px; }
.price-currency { font-size: 20px; font-weight: 700; color: var(--text-secondary); }
.price-dollars  {
  font-size: 52px; font-weight: 900; letter-spacing: -2px; line-height: 1;
  background: linear-gradient(135deg, #fff, #a855f7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.price-period   { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-or     { font-size: 12px; color: var(--text-muted); margin: 6px 0; }
.pricing-annual { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.save-badge {
  display: inline-flex; padding: 2px 8px; border-radius: 999px;
  background: rgba(0,255,136,0.15); border: 1px solid rgba(0,255,136,0.3);
  color: var(--neon-green); font-size: 11px; font-weight: 700;
}

.modal-features    { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--space-xl); }
.modal-feature-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.feat-check {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,255,136,0.12); border: 1px solid rgba(0,255,136,0.3);
  color: var(--neon-green); font-size: 11px; font-weight: 700; flex-shrink: 0;
}

.btn-upgrade {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc);
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.3px;
  transition: all var(--ease-med); box-shadow: 0 4px 20px rgba(168,85,247,0.4);
  position: relative; overflow: hidden; margin-bottom: var(--space-md);
}
.btn-upgrade::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0; transition: opacity var(--ease-fast);
}
.btn-upgrade:hover::before { opacity: 1; }
.btn-upgrade:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(168,85,247,0.55); }
.btn-upgrade-icon { font-size: 18px; }

.modal-terms { text-align: center; font-size: 11px; color: var(--text-muted); }

/* Success overlay */
.modal-success-overlay {
  position: absolute; inset: 0; background: var(--bg-modal);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-md); z-index: 10;
  animation: fadeIn 0.4s ease; padding: var(--space-xl); text-align: center;
}
.success-checkmark { width: 90px; height: 90px; animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes popIn { from { transform:scale(0); opacity:0; } to { transform:scale(1); opacity:1; } }
.check-path {
  stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: drawCheck 0.6s ease 0.3s forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.success-title { font-size: 24px; font-weight: 900; color: var(--text-bright); }
.success-sub   { font-size: 14px; color: var(--text-secondary); max-width: 300px; line-height: 1.6; }

/* ════════════════════════════════════════════════════════════
   PRICING PLAN CARDS (Modal Step 1)
════════════════════════════════════════════════════════════ */
.pricing-cards-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
}

.pricing-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  cursor: pointer;
  transition: border-color var(--ease-fast), background var(--ease-fast), box-shadow var(--ease-fast), transform var(--ease-fast);
  user-select: none;
  outline: none;
}
.pricing-card:hover {
  border-color: rgba(0,212,255,0.25);
  background: rgba(0,212,255,0.025);
  transform: translateY(-1px);
}
.pricing-card:focus-visible {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px var(--neon-blue-dim);
}
.pricing-card.selected {
  border-color: var(--neon-blue);
  background: rgba(0,212,255,0.05);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.18), 0 4px 24px rgba(0,212,255,0.12);
}

/* Tier badge */
.plan-tier-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 10px;
}
.plan-badge-popular {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.28);
  color: var(--neon-blue);
}
.plan-badge-elite {
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.28);
  color: var(--neon-purple);
}

/* Plan name */
.plan-name {
  font-size: 15px; font-weight: 700; color: var(--text-bright);
  margin-bottom: 8px; letter-spacing: -0.1px;
}

/* Price row */
.plan-price-row {
  display: flex; align-items: baseline; gap: 2px;
  margin-bottom: 3px;
}
.plan-currency {
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
}
.plan-amount {
  font-size: 34px; font-weight: 900; letter-spacing: -1.5px; line-height: 1;
  color: var(--text-bright);
}
.pricing-card.selected .plan-amount {
  background: linear-gradient(135deg, #e8eaf0, #00d4ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.plan-period {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
}

/* Annual note */
.plan-annual {
  font-size: 10px; color: var(--text-muted);
  margin-bottom: 12px;
}

/* Feature list */
.plan-features {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 12px;
  font-size: 11.5px; color: var(--text-secondary); line-height: 1.4;
}
.plan-features li {
  display: flex; align-items: center; gap: 7px;
}
.pf-check {
  display: inline-block; flex-shrink: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-muted);
  box-shadow: none;
  transition: background var(--ease-fast), box-shadow var(--ease-fast);
}
.pricing-card.selected .pf-check {
  background: var(--neon-blue);
  box-shadow: 0 0 5px rgba(0,212,255,0.5);
}

/* Select indicator */
.plan-select-indicator {
  display: flex; align-items: center; gap: 5px;
  padding-top: 9px;
  border-top: 1px solid var(--border-dim);
  font-size: 10px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--text-muted);
  transition: color var(--ease-fast);
}
.plan-select-indicator svg { transition: color var(--ease-fast); }
.pricing-card.selected .plan-select-indicator { color: var(--neon-blue); }

/* Continue button — now lives inside the plan card */
.btn-continue-checkout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(168,85,247,0.1));
  border: 1px solid rgba(0,212,255,0.28);
  color: var(--neon-blue); font-size: 13.5px; font-weight: 700; letter-spacing: 0.3px;
  transition: all var(--ease-med);
}
.btn-continue-checkout:hover {
  background: linear-gradient(135deg, rgba(0,212,255,0.16), rgba(168,85,247,0.16));
  box-shadow: 0 4px 20px rgba(0,212,255,0.2);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   CHECKOUT PLAN SUMMARY (Modal Step 2)
════════════════════════════════════════════════════════════ */
.checkout-plan-summary { margin-bottom: 18px; }

.cs-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 15px;
  background: linear-gradient(135deg, rgba(0,212,255,0.04), rgba(168,85,247,0.04));
  border: 1px solid rgba(0,212,255,0.14);
  border-radius: var(--radius-md);
}
.cs-left  { display: flex; flex-direction: column; gap: 2px; }
.cs-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

.cs-plan-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-muted);
}
.cs-plan-name {
  font-size: 13px; font-weight: 700; color: var(--text-bright);
}
.cs-price {
  font-family: var(--font-mono); font-size: 16px; font-weight: 800;
  color: var(--neon-blue);
}
.cs-annual {
  font-size: 10px; color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════
   STRIPE CARD FORM
════════════════════════════════════════════════════════════ */
.stripe-form {
  display: flex; flex-direction: column; gap: 11px;
  margin-bottom: 14px;
}

.stripe-field-group {
  display: flex; flex-direction: column; gap: 5px;
}

.stripe-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--text-secondary);
}

.stripe-input-wrap {
  position: relative; display: flex; align-items: center;
}

.stripe-input {
  width: 100%; padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.6px;
  outline: none;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  -moz-appearance: textfield;
}
.stripe-input::-webkit-outer-spin-button,
.stripe-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stripe-input::placeholder { color: var(--text-muted); letter-spacing: 0.3px; }
.stripe-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px var(--neon-blue-dim), inset 0 0 0 1px rgba(0,212,255,0.08);
}

/* Card number right-side brand marks */
.stripe-input-wrap .stripe-input { padding-right: 68px; }
.card-brand-marks {
  position: absolute; right: 10px; display: flex; align-items: center; gap: 6px;
  pointer-events: none;
}
.card-mark-visa {
  font-family: var(--font-mono); font-size: 9px; font-weight: 900;
  color: rgba(255,255,255,0.18); letter-spacing: 1px;
}
.card-mark-mc { display: flex; align-items: center; }
.mc-circle { width: 13px; height: 13px; border-radius: 50%; opacity: 0.22; }
.mc-left  { background: #eb001b; margin-right: -5px; }
.mc-right { background: #f79e1b; }

/* CVC field right icon */
.cvc-shield-icon {
  position: absolute; right: 10px;
  color: var(--text-muted); pointer-events: none;
}

/* Expiry + CVC side-by-side row */
.stripe-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

/* Input shake on validation error */
@keyframes stripeShake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-5px); }
  40%,80% { transform: translateX(5px); }
}
.stripe-shake {
  animation: stripeShake 0.38s ease;
  border-color: var(--neon-red) !important;
  box-shadow: 0 0 0 3px var(--neon-red-dim) !important;
}

/* Pay button states */
.btn-upgrade-text { display: flex; align-items: center; gap: 8px; }
.btn-upgrade-spinner { display: none; align-items: center; justify-content: center; }

.btn-upgrade.is-loading { pointer-events: none; opacity: 0.88; }
.btn-upgrade.is-loading .btn-upgrade-text    { display: none; }
.btn-upgrade.is-loading .btn-upgrade-spinner {
  display: flex !important;
  width: 100%; align-items: center; justify-content: center;
}

.spinner-svg {
  width: 22px; height: 22px;
  animation: spinnerSpin 0.75s linear infinite;
}
@keyframes spinnerSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Security stripe */
.stripe-security-row {
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; color: var(--text-muted);
  padding: 8px 12px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  line-height: 1.4;
}
.stripe-security-row svg { flex-shrink: 0; color: var(--text-muted); }

/* Back button */
.btn-back-plans {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500;
  color: var(--text-muted);
  padding: 4px 0; margin-bottom: var(--space-sm);
  transition: color var(--ease-fast);
  background: none; border: none; cursor: pointer;
}
.btn-back-plans:hover { color: var(--text-secondary); }

/* ════════════════════════════════════════════════════════════
   HISTORY SEARCH SVG ICON (was span emoji)
════════════════════════════════════════════════════════════ */
.hs-icon {
  position: absolute; left: 12px;
  color: var(--text-muted); pointer-events: none;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   TABLE EMPTY STATE SVG
════════════════════════════════════════════════════════════ */
.table-empty-icon {
  color: var(--text-muted); opacity: 0.35;
  display: flex; align-items: center; justify-content: center;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg); padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-dim); margin-top: var(--space-lg);
}
.footer-brand {
  font-weight: 800; font-size: 13px;
  background: linear-gradient(90deg, #00d4ff, #a855f7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-sep  { color: var(--text-muted); margin: 0 6px; }
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-right { font-size: 11px; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION  (hidden on desktop, visible ≤768px)
════════════════════════════════════════════════════════════ */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: rgba(11, 12, 20, 0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.45);
}

.mobile-nav-inner {
  display: flex; align-items: stretch;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-muted);
  background: none; border: none; border-bottom: none !important;
  cursor: pointer;
  transition: color var(--ease-fast);
  font-family: var(--font-main);
  -webkit-tap-highlight-color: transparent;
  position: relative; user-select: none;
}
/* kill the desktop underline glow pseudo-element */
.mobile-nav-item::after { display: none !important; }

/* top-edge active indicator */
.mobile-nav-item::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--neon-blue);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.55);
  transition: width var(--ease-med);
}
.mobile-nav-item:hover { color: var(--text-secondary); }
.mobile-nav-item.active { color: var(--neon-blue); }
.mobile-nav-item.active::before { width: 30px; }
.mobile-nav-item.active svg { filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.5)); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 1200px  (Tablet Landscape)
════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .workspace-grid       { grid-template-columns: 1fr; }
  .analytics-grid       { grid-template-columns: 1fr; }
  .analytics-sidebar    { flex-direction: row; flex-wrap: wrap; }
  .risk-widget          { flex: 1; min-width: 200px; }
  .market-stats-row     { grid-template-columns: repeat(2, 1fr); }
  .history-summary-row  { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 800px  (Tablet Portrait)
════════════════════════════════════════════════════════════ */
@media (max-width: 800px) {
  .metrics-row          { grid-template-columns: 1fr; }
  .header-nav           { display: none; }
  .site-header          { padding: 0 var(--space-lg); }
  .main-content         { padding: var(--space-lg); }
  .market-stats-row     { grid-template-columns: 1fr 1fr; }
  .history-summary-row  { grid-template-columns: 1fr 1fr; }
  .markets-ticker-bar   { display: none; }
  .analytics-stats-strip{ gap: var(--space-sm); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 768px  (Mobile Phones)
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Show bottom nav + reserve space ─────────── */
  .mobile-nav           { display: block; }
  body                  { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

  /* ── Header ──────────────────────────────────── */
  .site-header          { height: 54px; padding: 0 var(--space-md); }
  .brand-tagline        { display: none; }
  .brand-icon           { width: 34px; height: 34px; border-radius: var(--radius-sm); }
  .brand-name           { font-size: 15px; }
  .live-dot-wrapper     { padding: 4px 8px; }
  .live-label           { display: none; }
  .btn-gopro            { padding: 7px 13px; font-size: 12px; gap: 5px; }

  /* ── Main content ────────────────────────────── */
  .main-content         { padding: var(--space-md) var(--space-md) var(--space-xl); }
  .screen               { gap: var(--space-md); }
  .screen-hero          { gap: var(--space-sm); }
  .screen-title         { font-size: 22px; }
  .screen-desc          { font-size: 12px; }

  /* ── Metric cards — single column ───────────── */
  .metrics-row          { grid-template-columns: 1fr; gap: var(--space-md); }
  .metric-card          { padding: var(--space-md); }
  .metric-value         { font-size: 26px; }
  .metric-card-glow     { opacity: 0.5; }

  /* ── Panels ──────────────────────────────────── */
  .panel                { padding: var(--space-md); }
  .workspace-grid       { gap: var(--space-md); }

  /* ── Token chips: horizontal scroll strip ────── */
  .token-chips {
    flex-wrap: nowrap; overflow-x: auto;
    padding-bottom: 4px; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .token-chips::-webkit-scrollbar { display: none; }
  .token-chip           { flex-shrink: 0; scroll-snap-align: start; }

  /* ── Portfolio doughnut chart ────────────────── */
  .chart-canvas-container { width: 220px; height: 220px; }

  /* ── Data tables: touch-friendly scroll ─────── */
  .table-wrapper        { -webkit-overflow-scrolling: touch; }

  /* ── Markets screen ──────────────────────────── */
  .market-stats-row     { gap: var(--space-sm); }
  .market-stat-card     { padding: var(--space-md); }
  .msc-value            { font-size: 18px; }

  /* ── Analytics screen ────────────────────────── */
  .analytics-grid       { gap: var(--space-md); }
  .analytics-chart-wrapper { height: 260px; }
  .analytics-stats-strip {
    padding: var(--space-md);
    justify-content: flex-start;
  }
  .ast-divider          { display: none; }
  .analytics-sidebar    { flex-direction: row; flex-wrap: wrap; gap: var(--space-sm); }
  .risk-widget          { flex: 1; min-width: 145px; }
  .rw-value             { font-size: 22px; }
  .chart-period-tabs    { gap: 3px; }
  .period-tab           { padding: 4px 10px; font-size: 11px; }

  /* ── History screen ───────────────────────────── */
  .history-summary-row  { gap: var(--space-sm); }
  .hsf-item             { padding: var(--space-sm) var(--space-md); }
  .hsf-value            { font-size: 17px; }
  .history-filter-row   { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
  .history-search-input { width: 100%; }
  .history-actions      { flex-wrap: wrap; gap: var(--space-sm); }
  .btn-utility          { padding: 9px 14px; font-size: 12px; }

  /* ── Paywall modal — bottom sheet ────────────── */
  .modal-overlay        { padding: 0; align-items: flex-end; }
  .modal-box {
    max-width: 100%; width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--space-xl) var(--space-md) var(--space-md);
    max-height: 90vh;
  }
  .modal-title          { font-size: 22px; }
  .price-dollars        { font-size: 44px; }
  .pricing-cards-grid   { grid-template-columns: 1fr; }

  /* ── Footer ──────────────────────────────────── */
  .site-footer {
    flex-direction: column; align-items: flex-start;
    gap: var(--space-xs); padding: var(--space-md);
  }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 480px  (Small Phones — iPhone SE, Galaxy A)
════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .main-content         { padding: var(--space-sm) var(--space-sm) var(--space-xl); }
  .screen               { gap: var(--space-sm); }
  .screen-title         { font-size: 19px; }
  .metric-value         { font-size: 24px; }
  .metric-card          { padding: var(--space-sm) var(--space-md); }

  .brand-name           { font-size: 14px; }
  .go-pro-text          { display: none; }
  .btn-gopro            { padding: 8px 10px; border-radius: var(--radius-md); }

  .panel                { padding: var(--space-sm) var(--space-md); }
  .chart-canvas-container { width: 195px; height: 195px; }
  .analytics-chart-wrapper { height: 220px; }
  .risk-widget          { min-width: 130px; }

  .msc-value            { font-size: 16px; }
  .hsf-value            { font-size: 16px; }
  .modal-title          { font-size: 20px; }
  .modal-box            { padding: var(--space-lg) var(--space-sm) var(--space-sm); }
}

/* ════════════════════════════════════════════════════════════
   WALLET BALANCE TRACKER
════════════════════════════════════════════════════════════ */

/* ── Hero banner ─────────────────────────────────────────── */
.wallet-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(168,85,247,0.04) 100%);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
  overflow: hidden;
}
.wallet-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0,212,255,0.12), transparent 70%);
}
.wallet-hero-label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.wallet-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.85); }
}
.wallet-hero-value {
  font-size: 48px; font-weight: 900; letter-spacing: -2px; line-height: 1;
  background: linear-gradient(135deg, #e8eaf0 0%, #00d4ff 60%, #a855f7 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}
.wallet-hero-sub {
  font-size: 13px; color: var(--text-muted);
}

/* ── Wallet balance panel ────────────────────────────────── */
.wallet-balance-panel { width: 100%; }

.wallet-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Form column */
.wallet-form-col { display: flex; flex-direction: column; gap: var(--space-md); }

.wallet-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.wallet-field { display: flex; flex-direction: column; gap: 6px; }

.btn-wallet-sync {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 16px;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(0,212,255,0.06));
  border: 1px solid rgba(0,212,255,0.35);
  border-radius: var(--radius-md);
  color: var(--neon-blue); font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  transition: all var(--ease-med); margin-top: 4px;
}
.btn-wallet-sync:hover {
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,212,255,0.1));
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
  transform: translateY(-1px);
}

.wallet-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.wallet-chip {
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.18);
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--ease-fast);
}
.wallet-chip:hover, .wallet-chip:focus-visible {
  background: rgba(0,212,255,0.14); border-color: rgba(0,212,255,0.4);
  color: var(--neon-blue); outline: none;
}

/* Balance list */
.wallet-balance-list {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 120px;
}
.wallet-empty-state {
  flex: 1; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: var(--space-xl);
  border: 1px dashed var(--border-dim); border-radius: var(--radius-lg);
  color: var(--text-muted); text-align: center;
}
.wallet-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  transition: border-color var(--ease-fast), background var(--ease-fast);
}
.wallet-row:hover { border-color: rgba(0,212,255,0.2); background: rgba(0,212,255,0.025); }

.wallet-row-asset { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.wallet-row-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.wallet-row-info { display: flex; flex-direction: column; gap: 2px; }
.wallet-row-sym  { font-size: 13px; font-weight: 700; color: var(--text-bright); }
.wallet-row-qty  { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

.wallet-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; margin-left: auto; }
.wallet-row-value { font-size: 14px; font-weight: 700; color: var(--text-bright); font-family: var(--font-mono); }
.wallet-row-chg   { font-size: 11px; font-weight: 600; font-family: var(--font-mono); }

.btn-wallet-remove {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,69,90,0.08); border: 1px solid rgba(255,69,90,0.18);
  color: var(--neon-red); opacity: 0.6;
  transition: all var(--ease-fast);
}
.btn-wallet-remove:hover { opacity: 1; background: rgba(255,69,90,0.15); transform: scale(1.1); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .wallet-layout { grid-template-columns: 1fr; }
  .wallet-hero-value { font-size: 38px; }
}
@media (max-width: 480px) {
  .wallet-hero        { padding: var(--space-lg); }
  .wallet-hero-value  { font-size: 30px; letter-spacing: -1px; }
  .wallet-form-fields { grid-template-columns: 1fr; }
}

/* ── CryptoElite Custodial Vault UI ───────────────────── */

/* Vault form container */
.vault-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Active-vault status badge */
.vault-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: rgba(0,255,136,0.05);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: var(--radius-md);
}
.vault-status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 2s ease-in-out infinite;
}
.vault-badge-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--neon-green);
  letter-spacing: 0.04em;
}

/* Asset dropdown — inherit form-input chrome, add arrow */
.vault-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300d4ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.vault-select option {
  background: #0d0e16;
  color: var(--text-primary);
}

/* Live USD preview line */
.vault-price-preview {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #00d4ff;
  min-height: 16px;
  margin-top: 4px;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

/* Deposit button */
.btn-vault-deposit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(0,212,255,0.25);
}
.btn-vault-deposit:hover   { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,212,255,0.38); }
.btn-vault-deposit:active  { transform: translateY(0); }
.btn-vault-deposit:disabled{ opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Buy Real Crypto button — Transak on-ramp */
.btn-buy-crypto {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  margin-top: 9px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: var(--radius-md);
  color: rgba(168, 85, 247, 0.88);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease,
              transform 0.15s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-buy-crypto:hover {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.2);
  color: rgba(210, 170, 255, 0.95);
}
.btn-buy-crypto:active { transform: translateY(0); }
.btn-buy-badge {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(168,85,247,0.65);
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 3px;
  padding: 1px 5px;
  line-height: 1.5;
  margin-left: 2px;
}

.btn-vault-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Inline feedback messages */
.vault-feedback {
  font-size: 12px;
  min-height: 18px;
  text-align: center;
  transition: color 0.25s, opacity 0.25s;
}
.vault-feedback-success { color: var(--neon-green); }
.vault-feedback-error   { color: #ff6b6b; }

/* ── Legacy Web3 classes (harmless dead styles) ─────────── */
.web3-connect-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  background: rgba(0,212,255,0.03);
  border: 1px dashed rgba(0,212,255,0.2);
  border-radius: var(--radius-lg);
  margin-top: var(--space-sm);
}

.web3-supported-wallets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.web3-wallet-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3px 10px;
}

.btn-connect-wallet {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(0,212,255,0.25);
}
.btn-connect-wallet:hover  { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0,212,255,0.35); }
.btn-connect-wallet:active { transform: translateY(0); }
.btn-connect-wallet:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.web3-hint-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* Connected state zone */
.web3-connected-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(0,255,136,0.04);
  border: 1px solid rgba(0,255,136,0.18);
  border-radius: var(--radius-lg);
  margin-top: var(--space-sm);
}

.web3-address-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(0,255,136,0.07);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 24px;
  width: 100%;
  justify-content: center;
}

.web3-status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 7px var(--neon-green);
  animation: pulse 2s ease-in-out infinite;
}

.web3-address-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--neon-green);
  letter-spacing: 0.05em;
}

.web3-chain-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #00d4ff;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 20px;
  padding: 2px 8px;
}

.btn-scan-wallet {
  width: 100%;
  padding: 11px 16px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  color: #00d4ff;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-scan-wallet:hover    { background: rgba(0,212,255,0.18); border-color: rgba(0,212,255,0.5); }
.btn-scan-wallet:disabled { opacity: 0.55; cursor: not-allowed; }

.web3-scan-status {
  font-size: 12px;
  color: var(--text-muted);
  min-height: 18px;
  text-align: center;
  transition: color 0.3s;
}

.btn-wallet-disconnect {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 0;
  transition: color 0.2s;
}

/* ═══════════════════════════════════════════════════════════════
   CRYPTOELITE ID — AUTH ENGINE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── Header auth elements ───────────────────────────────────── */
.btn-auth-signin {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.22);
  border-radius: 20px;
  color: #00d4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.btn-auth-signin:hover {
  background: rgba(0,212,255,0.14);
  border-color: rgba(0,212,255,0.42);
  box-shadow: 0 0 14px rgba(0,212,255,0.12);
}

.auth-user-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 8px;
  background: rgba(0,255,136,0.05);
  border: 1px solid rgba(0,255,136,0.16);
  border-radius: 20px;
}
.auth-user-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
  animation: pulse 2s ease-in-out infinite;
}
.auth-user-email {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
}
.btn-logout {
  background: none;
  border: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 5px;
  transition: color 0.2s, background 0.2s;
  font-family: inherit;
}
.btn-logout:hover {
  color: #ff6b6b;
  background: rgba(255,107,107,0.09);
}

/* ── Auth Gate Overlay ──────────────────────────────────────── */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  top: 64px;                  /* exact header height — banner removed */
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6,7,14,0.88);
  backdrop-filter: blur(18px) saturate(0.25) brightness(0.65);
  -webkit-backdrop-filter: blur(18px) saturate(0.25) brightness(0.65);
}
.auth-gate-content {
  text-align: center;
  width: 100%;
  max-width: 440px;
  padding: 48px 36px;
  background: rgba(13,14,22,0.97);
  border: 1px solid rgba(0,212,255,0.11);
  border-radius: 22px;
  box-shadow:
    0 28px 80px rgba(0,0,0,0.65),
    0 0 0 1px rgba(0,212,255,0.04),
    0 0 60px rgba(0,212,255,0.04);
}
.auth-gate-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 50%;
}
.auth-gate-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 13px;
}
.auth-gate-msg {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 30px;
}
.auth-gate-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 22px rgba(0,212,255,0.3);
  margin-bottom: 10px;
}
.auth-gate-btn:hover  { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(0,212,255,0.42); }
.auth-gate-btn:active { transform: translateY(0); }
.auth-gate-btn-secondary {
  display: block;
  width: 100%;
  padding: 12px;
  background: none;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 10px;
  color: #00d4ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.auth-gate-btn-secondary:hover {
  border-color: rgba(0,212,255,0.38);
  background: rgba(0,212,255,0.06);
}

/* ── Auth Modal Box ─────────────────────────────────────────── */
.auth-modal-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: rgba(13,14,22,0.99);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(0,212,255,0.13);
  border-radius: 22px;
  padding: 36px;
  box-shadow:
    0 28px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,212,255,0.04);
  animation: modalSlideIn 0.28s cubic-bezier(.22,.68,0,1.2);
}
.auth-modal-header {
  text-align: center;
  margin-bottom: 26px;
  position: relative;
}
.auth-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg,rgba(0,212,255,0.1) 0%,rgba(124,58,237,0.1) 100%);
  border: 1px solid rgba(0,212,255,0.16);
  border-radius: 14px;
  margin-bottom: 14px;
}
.auth-modal-title {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 6px;
}
.auth-modal-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0;
}
.auth-modal-close {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.auth-modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }

/* ── Auth Tabs ──────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 10px;
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.auth-tab.active {
  background: rgba(0,212,255,0.09);
  color: #00d4ff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.22);
}
.auth-tab:not(.active):hover { color: var(--text-secondary); }

/* ── Auth Form ──────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
  border-color: rgba(0,212,255,0.38);
  background: rgba(0,212,255,0.035);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.06);
}
.auth-input::placeholder { color: rgba(74,81,104,0.65); }
.auth-feedback {
  font-size: 12px;
  min-height: 14px;
  text-align: center;
  transition: color 0.2s;
}
.auth-feedback-error   { color: #ff6b6b; }
.auth-feedback-success { color: var(--neon-green); }
.auth-submit {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 22px rgba(0,212,255,0.24);
}
.auth-submit:hover  { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 7px 28px rgba(0,212,255,0.38); }
.auth-submit:active { transform: translateY(0); }
.btn-wallet-disconnect:hover { color: #ff6b6b; }

/* ═══════════════════════════════════════════════════════════════
   EASY MODE TOGGLE
   ═══════════════════════════════════════════════════════════════ */
.easy-mode-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px 5px 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.easy-mode-wrapper:hover { border-color: rgba(0,212,255,0.2); }
.easy-mode-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  user-select: none;
  transition: color 0.2s;
}
.easy-mode-wrapper:hover .easy-mode-label { color: var(--text-secondary); }
.easy-mode-switch {
  position: relative;
  width: 34px;
  height: 18px;
  padding: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.easy-mode-switch.is-on {
  background: rgba(0,212,255,0.28);
  border-color: rgba(0,212,255,0.55);
  box-shadow: 0 0 12px rgba(0,212,255,0.25);
}
.easy-mode-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.25s cubic-bezier(.5,1.6,.5,.8), background 0.25s;
}
.easy-mode-switch.is-on .easy-mode-thumb {
  transform: translateX(16px);
  background: #00d4ff;
  box-shadow: 0 0 6px rgba(0,212,255,0.6);
}

/* ── Easy Mode Info Icons ────────────────────────────────────── */
/* No overflow:visible needed — tooltip is a body-level fixed popup, not a child */
.easy-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.38);
  color: #00d4ff;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
  vertical-align: middle;
}
.easy-info-icon:hover,
.easy-info-icon:focus-visible {
  background: rgba(0, 212, 255, 0.24);
  border-color: rgba(0, 212, 255, 0.75);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5), 0 0 4px rgba(0, 212, 255, 0.35);
  outline: none;
}
.easy-info-icon svg {
  pointer-events: none;
  display: block;
}

/* ── Easy Mode Singleton Tooltip Popup ──────────────────────── */
/*
 * Appended directly to <body> by JS — fully escapes every overflow:hidden
 * ancestor. position:fixed is relative to the viewport, so no card boundary
 * can clip it. JS sets left/top via getBoundingClientRect() on mouseenter.
 */
#easy-tooltip-popup {
  position: fixed;
  z-index: 99999;
  min-width: 220px;
  max-width: 300px;
  padding: 12px 15px 14px;
  /* Solid opaque background — no translucency that could wash out on dark cards */
  background: #0d1123;
  border: 1px solid rgba(0, 212, 255, 0.38);
  border-top: 2px solid rgba(0, 212, 255, 0.7);
  border-radius: 10px;
  box-shadow:
    0 14px 48px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 212, 255, 0.06),
    0 0 30px rgba(0, 212, 255, 0.09);
  color: rgba(220, 235, 255, 0.94);
  font-size: 12px;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  /* Hidden by default; JS adds .is-visible to show */
  opacity: 0;
  visibility: hidden;
  /* Positioned above the icon; slide up 6px on reveal */
  transform: translate(-50%, calc(-100% - 10px)) translateY(6px);
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}
#easy-tooltip-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, calc(-100% - 10px)) translateY(0px);
}
/* Downward caret — neon border triangle */
#easy-tooltip-popup::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid rgba(0, 212, 255, 0.42);
}
/* Downward caret — solid fill matches card bg, layered above border */
#easy-tooltip-popup::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5.5px solid transparent;
  border-right: 5.5px solid transparent;
  border-top: 5.5px solid #0d1123;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   INSTITUTIONAL RISK MATRICES PANEL
   ═══════════════════════════════════════════════════════════════ */

.risk-matrices-card {
  margin-top: 18px;
  padding: 0;
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-top: 2px solid rgba(0, 212, 255, 0.38);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(8,11,24,0.98), rgba(10,14,28,0.98));
  overflow: hidden;
}

/* ── Header ── */
.risk-matrices-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 11px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.07);
  background: rgba(0, 212, 255, 0.022);
}
.rm-header-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: rgba(168, 85, 247, 0.82);
  filter: drop-shadow(0 0 5px rgba(168,85,247,0.4));
}
.rm-header-title {
  flex: 1;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(0, 212, 255, 0.7);
}
.rm-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(0, 255, 136, 0.78);
  background: rgba(0, 255, 136, 0.07);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 20px;
  padding: 2px 9px 2px 7px;
  flex-shrink: 0;
}
.rm-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 5px var(--neon-green);
  animation: pulseDot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── 3-column data grid ── */
.risk-matrices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

/* ── Tile shell ── */
.rm-tile {
  position: relative;
  padding: 20px 22px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.046);
  overflow: hidden;
}
.rm-tile:last-child { border-right: none; }

/* Left accent stripe */
.rm-tile::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  border-radius: 0 1px 1px 0;
}
/* Corner radial glow */
.rm-tile::after {
  content: '';
  position: absolute;
  top: -24px; right: -24px;
  width: 100px; height: 100px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.9;
}

/* Green tile — Blockchain Integrity */
.rm-tile-green::before { background: linear-gradient(180deg, rgba(0,255,136,0.65) 0%, rgba(0,255,136,0.04) 100%); }
.rm-tile-green::after  { background: radial-gradient(circle, rgba(0,255,136,0.09) 0%, transparent 70%); }
/* Cyan tile — Exchange Volumes */
.rm-tile-cyan::before  { background: linear-gradient(180deg, rgba(0,212,255,0.65) 0%, rgba(0,212,255,0.04) 100%); }
.rm-tile-cyan::after   { background: radial-gradient(circle, rgba(0,212,255,0.09) 0%, transparent 70%); }
/* Amber tile — Volatility */
.rm-tile-amber::before { background: linear-gradient(180deg, rgba(245,158,11,0.65) 0%, rgba(245,158,11,0.04) 100%); }
.rm-tile-amber::after  { background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%); }

/* ── Tile header row ── */
.rm-tile-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}
.rm-tile-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.rm-tile-green .rm-tile-icon { color: var(--neon-green); filter: drop-shadow(0 0 3px rgba(0,255,136,0.5)); }
.rm-tile-cyan  .rm-tile-icon { color: #00d4ff;           filter: drop-shadow(0 0 3px rgba(0,212,255,0.5)); }
.rm-tile-amber .rm-tile-icon { color: #f59e0b;           filter: drop-shadow(0 0 3px rgba(245,158,11,0.5)); }

.rm-tile-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(175, 185, 215, 0.5);
  line-height: 1.4;
}

/* ── Big value ── */
.rm-tile-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 9px;
  font-variant-numeric: tabular-nums;
}
.rm-tile-green .rm-tile-value { color: var(--neon-green); text-shadow: 0 0 22px rgba(0,255,136,0.3); }
.rm-tile-cyan  .rm-tile-value { color: #00d4ff;           text-shadow: 0 0 22px rgba(0,212,255,0.3); }
.rm-tile-amber .rm-tile-value { color: #f59e0b;           text-shadow: 0 0 22px rgba(245,158,11,0.3); }

/* ── Status pill row ── */
.rm-tile-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.rm-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rm-tile-green .rm-status-dot {
  background: var(--neon-green);
  box-shadow: 0 0 6px rgba(0,255,136,0.7);
  animation: pulseDot 2s ease-in-out infinite;
}
.rm-tile-cyan  .rm-status-dot {
  background: #00d4ff;
  box-shadow: 0 0 6px rgba(0,212,255,0.7);
  animation: pulseDot 2.3s ease-in-out infinite;
}
.rm-tile-amber .rm-status-dot {
  background: #f59e0b;
  box-shadow: 0 0 5px rgba(245,158,11,0.6);
}
.rm-status-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.rm-tile-green .rm-status-text { color: var(--neon-green); }
.rm-tile-cyan  .rm-status-text { color: #00d4ff;           }
.rm-tile-amber .rm-status-text { color: #f59e0b;           }

/* ── Descriptive sub-text ── */
.rm-tile-sub {
  font-size: 10px;
  color: rgba(150, 162, 195, 0.44);
  line-height: 1.58;
  letter-spacing: 0.01em;
}

/* Responsive — stack to 1 column below 520 px */
@media (max-width: 520px) {
  .risk-matrices-grid {
    grid-template-columns: 1fr;
  }
  .rm-tile {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.046);
  }
  .rm-tile:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════════
   AI PORTFOLIO HEALTH COACH CARD
   ═══════════════════════════════════════════════════════════════ */
.coach-card {
  margin-top: 18px;
  padding: 0;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-top: 2px solid rgba(0, 212, 255, 0.5);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg,
    rgba(10, 14, 28, 0.96) 0%,
    rgba(13, 18, 36, 0.96) 100%);
  overflow: hidden;
}

/* Header row */
.coach-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px 12px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  background: rgba(0, 212, 255, 0.03);
}
.coach-header-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #00d4ff;
  opacity: 0.85;
}
.coach-title {
  flex: 1;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(0, 212, 255, 0.8);
}
.coach-status-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}
.coach-badge-active {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.35);
  color: var(--neon-green);
}

/* Body area */
.coach-body {
  padding: 20px 20px 22px;
  min-height: 80px;
  display: flex;
  align-items: center;
}

/* ── Idle state ──────────────────────────────────────────────── */
.coach-idle {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.coach-idle-hex {
  flex-shrink: 0;
  opacity: 0.7;
}
.coach-idle-msg {
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(180, 195, 220, 0.55);
  font-style: italic;
  border: 1px dashed rgba(0, 212, 255, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  background: rgba(0, 212, 255, 0.025);
  width: 100%;
}

/* ── Active analysis state ───────────────────────────────────── */
.coach-analysis {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}
.coach-pulse-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
  margin-top: 4px;
  animation: coachPulse 2s ease-in-out infinite;
}
@keyframes coachPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 255, 136, 0.5); transform: scale(1); }
  50%       { box-shadow: 0 0 14px rgba(0, 255, 136, 0.8); transform: scale(1.15); }
}
.coach-msg {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(210, 225, 245, 0.88);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ─── ast-red helper for stats strip (negative alpha) ─────── */
.ast-red { color: var(--neon-red) !important; }

/* ═══════════════════════════════════════════════════════════════
   INSTITUTIONAL MILESTONE RADAR CARD
   ═══════════════════════════════════════════════════════════════ */

/* ── Panel shell ── */
.milestone-card {
  margin-top: 18px;
  padding: 0;
  border-top: 2px solid rgba(168, 85, 247, 0.5);
  background: linear-gradient(160deg, rgba(10,8,26,0.98), rgba(12,9,28,0.98));
  overflow: hidden;
}

/* ── Header bar ── */
.milestone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 13px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.14);
  background: rgba(168, 85, 247, 0.04);
}
.milestone-trophy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
  flex-shrink: 0;
  color: rgba(168, 85, 247, 0.9);
  filter: drop-shadow(0 0 6px rgba(168,85,247,0.55));
}
.milestone-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.milestone-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: rgba(168, 85, 247, 0.92);
  text-transform: uppercase;
}
.milestone-subtitle {
  font-size: 9.5px;
  color: rgba(180, 190, 215, 0.46);
  letter-spacing: 0.02em;
}
.milestone-count-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(168, 85, 247, 0.88);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  padding: 3px 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Progress bar section ── */
.milestone-progress-section {
  padding: 14px 20px 10px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.milestone-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.milestone-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00d4ff 0%, #7c3aed 55%, #a855f7 100%);
  border-radius: 3px;
  transition: width 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 8px rgba(0,212,255,0.5), 0 0 18px rgba(168,85,247,0.3);
  position: relative;
}
/* Animated shimmer on the fill */
.milestone-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: progressShimmer 2.4s ease-in-out infinite;
}
@keyframes progressShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.milestone-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.milestone-progress-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(168, 85, 247, 0.55);
  text-transform: uppercase;
  font-weight: 600;
}
.milestone-progress-pct {
  font-size: 10px;
  font-weight: 700;
  color: rgba(168, 85, 247, 0.82);
  letter-spacing: 0.06em;
}

/* ── Horizontal scroll track ── */
.milestone-track {
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: auto;
  padding: 16px 0 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.22) transparent;
}
.milestone-track::-webkit-scrollbar { height: 4px; }
.milestone-track::-webkit-scrollbar-track { background: transparent; }
.milestone-track::-webkit-scrollbar-thumb {
  background: rgba(168,85,247,0.28);
  border-radius: 2px;
}

/* ── Individual milestone tile ── */
.milestone-item {
  position: relative;
  flex: 1 0 114px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 14px;
  border-right: 1px solid rgba(168,85,247,0.09);
  transition: background 0.22s ease;
  text-align: center;
  min-width: 114px;
  overflow: hidden;
}
.milestone-item:last-child { border-right: none; }
.milestone-item:hover      { background: rgba(168,85,247,0.045); }
.milestone-item.is-paywalled { cursor: pointer; }
.milestone-item.is-paywalled:hover { background: rgba(168,85,247,0.07); }

/* ── SVG icon container ── */
.milestone-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
  transition: border-color 0.28s ease, background 0.28s ease,
              filter 0.28s ease, transform 0.28s ease;
}
/* Default locked/unachieved icon colour */
.milestone-item.is-locked .milestone-icon-wrap svg {
  stroke: rgba(120, 140, 175, 0.32);
}
.milestone-item.is-paywalled .milestone-icon-wrap svg {
  stroke: rgba(100, 115, 160, 0.28);
}

/* ── FREE tier achieved → neon cyan ── */
.milestone-item.is-achieved.is-free-tier .milestone-icon-wrap {
  background: rgba(0, 212, 255, 0.09);
  border-color: rgba(0, 212, 255, 0.32);
  transform: scale(1.06);
  filter: drop-shadow(0 0 7px rgba(0,212,255,0.45));
}
.milestone-item.is-achieved.is-free-tier .milestone-icon-wrap svg {
  stroke: #00d4ff;
  filter: drop-shadow(0 0 4px rgba(0,212,255,0.8));
}
.milestone-item.is-achieved.is-free-tier {
  background: rgba(0, 212, 255, 0.04);
}
.milestone-item.is-achieved.is-free-tier .milestone-label {
  color: rgba(180, 240, 255, 0.95);
}
.milestone-item.is-achieved.is-free-tier .milestone-prog {
  color: rgba(0, 212, 255, 0.75);
}

/* ── PAID tier achieved → purple glow ── */
.milestone-item.is-achieved.is-paid-tier .milestone-icon-wrap {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.35);
  transform: scale(1.06);
  filter: drop-shadow(0 0 7px rgba(168,85,247,0.45));
}
.milestone-item.is-achieved.is-paid-tier .milestone-icon-wrap svg {
  stroke: #a855f7;
  filter: drop-shadow(0 0 4px rgba(168,85,247,0.8));
}
.milestone-item.is-achieved.is-paid-tier {
  background: rgba(168, 85, 247, 0.06);
}
.milestone-item.is-achieved.is-paid-tier .milestone-label {
  color: rgba(220, 190, 255, 0.95);
}
.milestone-item.is-achieved.is-paid-tier .milestone-prog {
  color: rgba(168, 85, 247, 0.82);
}

/* ── Unachieved / generic locked ── */
.milestone-item.is-locked:not(.is-paywalled) {
  opacity: 0.5;
}

/* ── Text labels ── */
.milestone-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.055em;
  color: rgba(170, 180, 210, 0.65);
  text-transform: uppercase;
  line-height: 1.35;
}
.milestone-prog {
  font-size: 9px;
  color: rgba(150, 162, 195, 0.5);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ── Checkmark badge (achieved) ── */
.milestone-check {
  position: absolute;
  top: 6px;
  right: 7px;
  font-size: 8px;
  font-weight: 700;
  color: #a855f7;
  background: rgba(168,85,247,0.16);
  border: 1px solid rgba(168,85,247,0.42);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* Cyan checkmark for free-tier achieved */
.milestone-item.is-free-tier .milestone-check {
  color: #00d4ff;
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.38);
}

/* ── Paywall glass overlay ── */
.milestone-paywall-blur {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 16, 0.76);
  backdrop-filter: blur(3.5px);
  -webkit-backdrop-filter: blur(3.5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 3;
  border-radius: inherit;
  transition: opacity 0.3s ease;
}
.milestone-item.is-paywalled:hover .milestone-paywall-blur {
  background: rgba(6, 4, 16, 0.6);
}
.milestone-lock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(168, 85, 247, 0.7);
  filter: drop-shadow(0 0 4px rgba(168,85,247,0.4));
}
.milestone-paywall-hint {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(168, 85, 247, 0.72);
  text-transform: uppercase;
  border: 1px solid rgba(168,85,247,0.28);
  border-radius: 3px;
  padding: 1px 5px;
}

/* ═══════════════════════════════════════════════════════════════
   MARKET INTEL NEWS FEED BANNER
   ═══════════════════════════════════════════════════════════════ */
.news-banner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 36px;
  background: rgba(0,212,255,0.03);
  border-bottom: 1px solid rgba(0,212,255,0.1);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 99;
}
.news-banner-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px 0 22px;
  height: 100%;
  background: rgba(0,212,255,0.07);
  border-right: 1px solid rgba(0,212,255,0.14);
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00d4ff;
  white-space: nowrap;
}
.news-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 5px #00d4ff;
  animation: pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.news-ticker-viewport {
  flex: 1;
  overflow: hidden;
  height: 100%;
  position: relative;
}
.news-ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: newsScroll 90s linear infinite;
  will-change: transform;
}
.news-ticker-track:hover { animation-play-state: paused; cursor: default; }
.news-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 30px;
  height: 100%;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
  flex-shrink: 0;
  outline: none;
}
.news-item:hover { background: rgba(0,212,255,0.05); }
.news-item:focus-visible { background: rgba(0,212,255,0.08); outline: 1px solid rgba(0,212,255,0.3); }
.news-item-tag {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
/* Tag colour variants */
.tag-MACRO   { background: rgba(0,212,255,0.12);  color: #00d4ff; }
.tag-ETF     { background: rgba(251,191,36,0.1);   color: #fbbf24; }
.tag-DEFI    { background: rgba(0,255,136,0.1);    color: #00ff88; }
.tag-REGUL   { background: rgba(168,85,247,0.12);  color: #a855f7; }
.tag-STABLES { background: rgba(99,102,241,0.12);  color: #818cf8; }
.tag-EQUITY  { background: rgba(52,211,153,0.1);   color: #34d399; }
.tag-TECH    { background: rgba(248,113,113,0.1);  color: #f87171; }
.tag-SOCIAL  { background: rgba(249,115,22,0.1);   color: #f97316; }

.news-item-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.news-item-impact {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.news-item-impact.bull { color: var(--neon-green); }
.news-item-impact.bear { color: var(--neon-red);   }

@keyframes newsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── News Detail Overlay ── */
.news-overlay {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6,7,14,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.news-overlay-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: rgba(13,14,22,0.99);
  border: 1px solid rgba(0,212,255,0.13);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(0,212,255,0.04);
  animation: modalSlideIn 0.26s cubic-bezier(.22,.68,0,1.2);
}
.news-overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  padding: 0; line-height: 1;
}
.news-overlay-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }
.news-overlay-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.news-overlay-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
}
.news-overlay-impact {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.news-overlay-impact.bull { color: var(--neon-green); }
.news-overlay-impact.bear { color: var(--neon-red);   }
.news-overlay-headline {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin: 0 0 18px;
  padding-right: 24px;
}
.news-overlay-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 18px;
}
.news-overlay-event-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.news-overlay-event {
  font-size: 13px;
  font-weight: 600;
  color: #00d4ff;
  margin: 0 0 4px;
  line-height: 1.5;
}
.news-overlay-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FORGOT PASSWORD PANEL
   ═══════════════════════════════════════════════════════════════ */
.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}
.auth-forgot-link {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 0;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.auth-forgot-link:hover { color: #00d4ff; text-decoration-color: rgba(0,212,255,0.35); }
.auth-forgot-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s;
  align-self: flex-start;
}
.auth-back-btn:hover { color: #00d4ff; }
.auth-forgot-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}
.auth-forgot-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: -4px 0 0;
}
.auth-recovery-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0,255,136,0.05);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 10px;
}
.auth-recovery-icon { flex-shrink: 0; padding-top: 1px; }
.auth-recovery-msg {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   VERIFICATION ALERT BANNER (signup confirmation)
   ═══════════════════════════════════════════════════════════════ */
.ce-verify-alert {
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  max-width: 500px;
  width: calc(100vw - 40px);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(13,14,22,0.98);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 14px;
  box-shadow:
    0 14px 44px rgba(0,0,0,0.55),
    0 0 0 1px rgba(0,212,255,0.07),
    0 0 40px rgba(0,212,255,0.07);
  animation: toastIn 0.3s cubic-bezier(.22,.68,0,1.2);
}
.cva-icon { flex-shrink: 0; padding-top: 1px; }
.cva-text { flex: 1; }
.cva-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 5px;
}
.cva-msg {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.cva-msg strong { color: var(--text-primary); }
.cva-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 2px;
  font-size: 12px;
  flex-shrink: 0;
  transition: color 0.2s;
  line-height: 1;
}
.cva-close:hover { color: var(--text-primary); }

/* ── Responsive: hide Easy Mode label on small screens ── */
@media (max-width: 900px) {
  .easy-mode-wrapper { padding: 5px 8px; }
  .easy-mode-label   { display: none; }
}
@media (max-width: 600px) {
  .news-banner-tag   { padding: 0 10px 0 14px; font-size: 8px; }
  .news-item         { padding: 0 18px; }
  .news-item-text    { font-size: 11px; }
  .ce-verify-alert   { top: 80px; }
  .easy-mode-wrapper { display: none; }
}
