/* ═══════════════════════════════════════════
   ActarusAI — Cyberpunk Trading Premium CSS
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ═══ VARIABLES ═══ */
:root {
  --bg-deep: #0a0e27;
  --bg-card: rgba(15, 20, 50, 0.75);
  --bg-card-hover: rgba(20, 28, 65, 0.85);
  --bg-surface: rgba(12, 16, 40, 0.9);
  --cyan: #00d4ff;
  --cyan-glow: rgba(0, 212, 255, 0.3);
  --green: #00ff88;
  --green-glow: rgba(0, 255, 136, 0.25);
  --red: #ff3366;
  --red-glow: rgba(255, 51, 102, 0.25);
  --purple: #7c3aed;
  --purple-glow: rgba(124, 58, 237, 0.3);
  --gold: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.25);
  --text: #e8eaf6;
  --text-dim: #8892b0;
  --text-muted: #5a6380;
  --border: rgba(100, 120, 200, 0.15);
  --border-glow: rgba(0, 212, 255, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
  --font: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══ MATRIX RAIN BACKGROUND ═══ */
#matrix-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.04;
  pointer-events: none;
}

/* ═══ APP CONTAINER ═══ */
#app {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(80px + var(--safe-bottom));
}

/* ═══ HEADER ═══ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, transparent 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.header-logo h1 {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══ MODE SWITCH (Premium Slider) ═══ */
.mode-switch {
  position: relative;
}

.mode-switch-track {
  position: relative;
  display: flex;
  align-items: center;
  width: 130px;
  height: 34px;
  background: rgba(15, 20, 50, 0.9);
  border-radius: 20px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
}

.mode-switch-track::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  transition: all 0.4s ease;
}

.mode-switch-track[data-mode="real"] {
  border-color: rgba(255, 51, 102, 0.5);
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
}

.mode-switch-track[data-mode="demo"] {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 12px var(--purple-glow);
}

.mode-label-demo, .mode-label-real {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
  transition: color 0.3s;
  pointer-events: none;
}

.mode-label-demo { color: var(--text-dim); }
.mode-label-real { color: var(--text-dim); }

.mode-switch-thumb {
  position: absolute;
  width: 62px;
  height: 28px;
  border-radius: 16px;
  top: 1px;
  left: 1px;
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  box-shadow: 0 2px 10px var(--purple-glow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.mode-switch-thumb.real {
  left: calc(100% - 63px);
  background: linear-gradient(135deg, var(--red), #dc2626);
  box-shadow: 0 2px 10px var(--red-glow);
}

/* ═══ SECTIONS / TABS CONTENT ═══ */
.tab-content {
  display: none;
  padding: 8px 16px 20px;
  animation: fadeSlideIn 0.35s ease;
}

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

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

/* ═══ SECTION TITLES ═══ */
.section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ═══ GLASS CARDS ═══ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: 12px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.card-glow-cyan {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
}

.card-glow-green {
  border-color: rgba(0, 255, 136, 0.25);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.08);
}

.card-glow-purple {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.08);
}

/* ═══ BALANCE DISPLAY ═══ */
.balance-hero {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
  border-radius: var(--radius);
  border: 1px solid var(--border-glow);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.balance-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
  animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
  to { transform: rotate(360deg); }
}

.balance-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  position: relative;
}

.balance-amount {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  text-shadow: 0 0 20px var(--cyan-glow);
}

.balance-pnl {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
  position: relative;
}

.balance-pnl.positive { color: var(--green); }
.balance-pnl.negative { color: var(--red); }

/* ═══ STATS ROW ═══ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-box {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 14px 10px;
  text-align: center;
}

.stat-box .stat-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.stat-box .stat-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══ ROBOT CONTROL — PREMIUM HEXAGONAL ═══ */
.robot-hub {
  text-align: center;
  padding: 10px 0 0;
}

/* ── Hex Container ── */
.robot-hex-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
}

/* ── Hex Rings (CSS clip-path hexagon) ── */
.hex-ring {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.hex-ring-outer {
  background: linear-gradient(135deg, rgba(0,212,255,0.25), rgba(124,58,237,0.2));
  animation: hexRotate 12s linear infinite;
}

.hex-ring-inner {
  inset: 8px;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(124,58,237,0.08));
  animation: hexPulse 3s ease-in-out infinite;
}

/* Hex inner dark fill */
.hex-ring-inner::after {
  content: '';
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(160deg, #0d1235, #0a0e27);
}

@keyframes hexRotate {
  to { transform: rotate(360deg); }
}

@keyframes hexPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

/* ── Floating Particles ── */
.hex-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  box-shadow: 0 0 8px var(--cyan), 0 0 16px var(--cyan-glow);
  animation: particleOrbit 4s ease-in-out infinite;
  animation-delay: var(--delay);
  transform: rotate(var(--angle)) translateX(85px);
}

@keyframes particleOrbit {
  0%, 100% { opacity: 0.3; transform: rotate(var(--angle)) translateX(85px) scale(0.6); }
  50% { opacity: 1; transform: rotate(calc(var(--angle) + 30deg)) translateX(90px) scale(1.2); }
}

/* ── Core Icon ── */
.robot-core-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: coreFloat 3s ease-in-out infinite;
}

.robot-core-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--cyan);
  filter: drop-shadow(0 0 15px var(--cyan-glow)) drop-shadow(0 0 30px rgba(0,212,255,0.15));
}

@keyframes coreFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-6px); }
}

/* Active state — green glow */
.robot-hub.active .hex-ring-outer {
  background: linear-gradient(135deg, rgba(0,255,136,0.3), rgba(0,212,255,0.2));
}
.robot-hub.active .hex-ring-inner {
  background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,212,255,0.08));
}
.robot-hub.active .hex-particle {
  background: var(--green);
  box-shadow: 0 0 8px var(--green), 0 0 16px var(--green-glow);
}
.robot-hub.active .robot-core-icon svg {
  stroke: var(--green);
  filter: drop-shadow(0 0 15px var(--green-glow)) drop-shadow(0 0 30px rgba(0,255,136,0.15));
}

/* ── Status Pill Badge ── */
.robot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 30px;
  background: rgba(15, 20, 50, 0.8);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0 auto 20px;
  backdrop-filter: blur(10px);
}

.robot-status-pill .status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.robot-status-pill.active {
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.06);
  color: var(--green);
}

.robot-status-pill.active .status-dot {
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
  animation: pulse 2s infinite;
}

/* Legacy .robot-status support for dashboard mini card */
.robot-status {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 10px 0 20px;
}

.robot-status .status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--red);
}

.robot-status.active .status-dot {
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
  animation: pulse 2s infinite;
}

/* ═══ BIG TOGGLE BUTTON — ENHANCED ═══ */
.bot-toggle {
  display: flex;
  justify-content: center;
  margin: 8px 0 24px;
}

.toggle-btn {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}

.toggle-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--text-muted);
  transition: all 0.4s ease;
}

.toggle-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(100,120,200,0.1);
  transition: all 0.4s ease;
}

.toggle-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.4s ease;
}

.toggle-inner .toggle-icon {
  font-size: 1.8rem;
}

.toggle-inner .toggle-icon svg {
  width: 28px;
  height: 28px;
}

.toggle-btn:active {
  transform: scale(0.93);
}

.toggle-btn.active .toggle-ring {
  border-color: var(--green);
  box-shadow: 0 0 25px var(--green-glow), 0 0 50px rgba(0, 255, 136, 0.08);
  animation: pulseGlow 2s ease-in-out infinite;
}

.toggle-btn.active .toggle-ring::before {
  border-color: rgba(0, 255, 136, 0.15);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.05);
}

.toggle-btn.active .toggle-inner {
  color: var(--green);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px var(--green-glow), 0 0 40px rgba(0, 255, 136, 0.06); }
  50% { box-shadow: 0 0 35px var(--green-glow), 0 0 70px rgba(0, 255, 136, 0.12); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ═══ RISK SLIDER ═══ */
.risk-config {
  margin: 16px 0;
}

.risk-slider-container {
  margin: 12px 0;
}

.risk-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.risk-slider-label .risk-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--cyan);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
  cursor: grab;
}

.risk-tags {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ═══ MARKET CARDS ═══ */
.market-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px;
}

.market-tabs::-webkit-scrollbar { display: none; }

.market-tab {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
}

.market-tab.active {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-color: transparent;
  color: #fff;
}

.asset-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.asset-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.asset-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.asset-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.asset-symbol {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.asset-price {
  text-align: right;
}

.asset-price .price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
}

@keyframes pricePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.price-pulse {
  animation: none;
}

.asset-price .change {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.change.positive { color: var(--green); }
.change.negative { color: var(--red); }

/* ═══ TRADE LIST ═══ */
.trade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.trade-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trade-direction {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

.trade-direction.long {
  background: rgba(0, 255, 136, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.trade-direction.short {
  background: rgba(255, 51, 102, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 51, 102, 0.2);
}

.trade-symbol { font-weight: 600; font-size: 0.88rem; }
.trade-time { font-size: 0.7rem; color: var(--text-muted); }

.trade-pnl {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
}

.trade-pnl.positive { color: var(--green); }
.trade-pnl.negative { color: var(--red); }

/* ═══ PORTFOLIO ═══ */
.portfolio-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn:active { transform: scale(0.97); }

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), #0099cc);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}

.btn-cyan:hover { box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4); }

.btn-green {
  background: linear-gradient(135deg, var(--green), #059669);
  color: #000;
  box-shadow: 0 4px 15px var(--green-glow);
}

.btn-red {
  background: linear-gradient(135deg, var(--red), #dc2626);
  color: #fff;
  box-shadow: 0 4px 15px var(--red-glow);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  color: #fff;
  box-shadow: 0 4px 15px var(--purple-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-sm {
  padding: 8px 14px;
  font-size: 0.78rem;
}

/* ═══ REFERRAL ═══ */
.referral-link-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.referral-link-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  outline: none;
}

.referral-link-box button {
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.referral-link-box button:hover {
  background: var(--cyan);
  color: #000;
}

.referral-tree {
  padding: 16px;
}

.referral-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.referral-item:last-child { border-bottom: none; }

.referral-item .name { font-weight: 600; font-size: 0.88rem; }
.referral-item .deposit {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
}

/* ═══ COMMISSION TYPE TOGGLE ═══ */
.commission-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.commission-option {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.commission-option.active {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
}

.commission-option .comm-rate {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
}

.commission-option .comm-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.commission-option .comm-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

/* ═══ PACK CARDS ═══ */
.pack-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pack-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pack-card:hover { border-color: var(--border-glow); }

.pack-card.current {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.06);
}

.pack-icon { font-size: 1.8rem; margin-right: 12px; }

.pack-info { flex: 1; }
.pack-name { font-weight: 700; font-size: 0.95rem; }
.pack-desc { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }

.pack-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
}

.pack-price.free { color: var(--green); }

/* ═══ WIN RATE GAUGE ═══ */
.win-rate-gauge {
  width: 80px;
  height: 80px;
  position: relative;
  margin: 0 auto;
}

.win-rate-gauge svg {
  transform: rotate(-90deg);
}

.win-rate-gauge .gauge-bg {
  fill: none;
  stroke: rgba(100, 120, 200, 0.15);
  stroke-width: 6;
}

.win-rate-gauge .gauge-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transition: stroke-dashoffset 1s ease;
}

.win-rate-gauge .gauge-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* ═══ PROFIT CALCULATOR ═══ */
.calculator {
  padding: 16px;
}

.calc-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.calc-input input {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 14, 39, 0.8);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

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

.calc-result {
  text-align: center;
  padding: 16px;
  background: rgba(0, 255, 136, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 255, 136, 0.15);
}

.calc-result .result-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
}

.calc-result .result-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ═══ TRANSACTIONS ═══ */
.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.tx-item:last-child { border-bottom: none; }

.tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-right: 10px;
}

.tx-icon.deposit { background: rgba(0, 255, 136, 0.12); }
.tx-icon.withdraw { background: rgba(255, 51, 102, 0.12); }
.tx-icon.commission { background: rgba(0, 212, 255, 0.12); }
.tx-icon.trade { background: rgba(124, 58, 237, 0.12); }

.tx-details { flex: 1; }
.tx-type { font-weight: 600; font-size: 0.85rem; }
.tx-date { font-size: 0.7rem; color: var(--text-muted); }

.tx-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
}

.tx-amount.positive { color: var(--green); }
.tx-amount.negative { color: var(--red); }

/* ═══ BOTTOM NAV ═══ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 480px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(8, 12, 36, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 24px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-item .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: inherit;
  transition: transform 0.3s ease;
}

.nav-item .nav-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: stroke 0.3s ease;
}

.nav-item .nav-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin-left 0.3s ease;
  margin-left: 0;
}

.nav-item.active {
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.nav-item.active .nav-icon {
  transform: scale(1.08);
}

.nav-item.active .nav-label {
  max-width: 100px;
  opacity: 1;
  margin-left: 8px;
}

/* ═══ MODAL ═══ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  max-width: 480px;
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 24px 20px calc(24px + var(--safe-bottom));
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--text-muted);
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.modal input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 14, 39, 0.8);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  text-align: center;
  outline: none;
  margin-bottom: 16px;
}

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

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.quick-amount {
  padding: 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.quick-amount:hover {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
}

/* ═══ WITHDRAW FORM ═══ */
.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  margin-top: 12px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 14, 39, 0.8);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

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

.withdraw-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.withdraw-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.withdraw-method.active, .withdraw-method:hover {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
  color: #fff;
}

.withdraw-method.active {
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.wm-icon { font-size: 1.5rem; }
.wm-name { font-size: 0.75rem; font-weight: 600; text-align: center; }

/* ═══ UTILITIES ═══ */
.text-gold { color: var(--gold); }
.mt-20 { margin-top: 20px; }

/* ═══ EMPTY STATE ═══ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.85rem;
}

/* ═══ BADGES ═══ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
}

.badge-green { background: rgba(0, 255, 136, 0.12); color: var(--green); }
.badge-red { background: rgba(255, 51, 102, 0.12); color: var(--red); }
.badge-cyan { background: rgba(0, 212, 255, 0.12); color: var(--cyan); }
.badge-purple { background: rgba(124, 58, 237, 0.12); color: var(--purple); }
.badge-gold { background: rgba(251, 191, 36, 0.12); color: var(--gold); }

/* ═══ LOADING ═══ */
.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-screen img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 30px var(--cyan-glow);
  animation: loadPulse 1.5s ease-in-out infinite;
}

@keyframes loadPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px var(--cyan-glow); }
  50% { transform: scale(1.05); box-shadow: 0 0 50px var(--cyan-glow); }
}

.loading-screen h2 {
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.loading-screen p {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ═══ TOAST NOTIFICATIONS ═══ */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 420px;
  width: calc(100% - 32px);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease;
}

.toast.success {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--green);
}

.toast.error {
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.3);
  color: var(--red);
}

.toast.info {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 2px; }

/* ═══ PERFORMANCE MINI CHART ═══ */
.mini-chart {
  height: 60px;
  margin: 8px 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.mini-chart .bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
}

.mini-chart .bar.positive { background: linear-gradient(180deg, var(--green), rgba(0, 255, 136, 0.3)); }
.mini-chart .bar.negative { background: linear-gradient(180deg, var(--red), rgba(255, 51, 102, 0.3)); }

/* ═══ EQUITY LINE ═══ */
.equity-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
  margin-top: 4px;
  position: relative;
}

.equity-line span {
  font-weight: 700;
}

/* ═══ FLOATING PNL ═══ */
.floating-pnl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 4px;
  position: relative;
  opacity: 0.85;
}

.floating-pnl.positive { color: var(--green); }
.floating-pnl.negative { color: var(--red); }

/* ═══ SYNC INDICATOR ═══ */
.sync-indicator {
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

.sync-indicator.live {
  color: var(--green);
  background: rgba(0, 255, 136, 0.1);
}

.sync-indicator.stale {
  color: var(--gold);
  background: rgba(251, 191, 36, 0.1);
}

/* ═══ PRICE FLASH (only on change) ═══ */
@keyframes priceFlash {
  0% { color: inherit; }
  30% { color: var(--cyan); text-shadow: 0 0 8px var(--cyan-glow); }
  100% { color: inherit; text-shadow: none; }
}

.price-flash {
  animation: priceFlash 0.6s ease;
}

/* ═══ MT5-STYLE TRADE CARDS ═══ */
.mt5-trade {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mt5-trade.profit {
  border-left: 3px solid var(--green);
}

.mt5-trade.loss {
  border-left: 3px solid var(--red);
}

.mt5-trade-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
}

.mt5-trade-symbol {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mt5-icon {
  display: flex;
  align-items: center;
}

.mt5-icon svg {
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.mt5-sym {
  font-weight: 700;
  font-size: 0.95rem;
}

.mt5-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mt5-badge.long {
  background: rgba(0, 255, 136, 0.15);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.mt5-badge.short {
  background: rgba(255, 51, 102, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.mt5-trade-pnl {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mt5-trade-pnl.positive { color: var(--green); }
.mt5-trade-pnl.negative { color: var(--red); }

.mt5-pnl-pct {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.8;
}

.mt5-trade-body {
  padding: 0 14px 10px;
}

.mt5-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.mt5-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mt5-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mt5-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.mt5-current.positive { color: var(--green); }
.mt5-current.negative { color: var(--red); }
.mt5-sl { color: var(--red); opacity: 0.8; }
.mt5-tp { color: var(--green); opacity: 0.8; }

/* ═══ MT5 PROGRESS BAR ═══ */
.mt5-progress {
  padding: 4px 14px 12px;
}

.mt5-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.mt5-progress-bar {
  height: 4px;
  background: rgba(255, 51, 102, 0.2);
  border-radius: 2px;
  position: relative;
  overflow: visible;
}

.mt5-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  border-radius: 2px;
  transition: width 0.5s ease;
}

.mt5-progress-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 6px var(--cyan-glow);
  transition: left 0.5s ease;
}

/* ═══ ASSET ICON SVG ═══ */
.asset-icon svg {
  display: block;
  border-radius: 50%;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 380px) {
  .balance-amount { font-size: 2rem; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat-box { padding: 10px 6px; }
  .stat-box .stat-value { font-size: 1rem; }
  .mt5-row { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .mt5-value { font-size: 0.72rem; }
}

/* ═══ ALGO STORE CARDS ═══ */
.algo-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.algo-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.algo-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.algo-card.current {
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.15), 0 0 60px rgba(0, 212, 255, 0.05);
}

.algo-card.current::after {
  content: '✓ ACTIF';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--cyan);
  color: #000;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
}

.algo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  position: relative;
}

.algo-header.algo-green {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 200, 100, 0.05));
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
}

.algo-header.algo-yellow {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(200, 150, 20, 0.05));
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.algo-header.algo-red {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.12), rgba(200, 30, 60, 0.05));
  border-bottom: 1px solid rgba(255, 51, 102, 0.2);
}

.algo-tier {
  font-size: 1.6rem;
}

.algo-title {
  flex: 1;
}

.algo-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.algo-price-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 2px;
}

.algo-badge-pop, .algo-badge-pro {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.algo-badge-pop {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #000;
  animation: badgeShine 3s ease-in-out infinite;
}

.algo-badge-pro {
  background: linear-gradient(135deg, var(--red), #dc2626);
  color: #fff;
  animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.algo-body {
  padding: 14px 16px 16px;
}

.algo-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.algo-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(100, 120, 200, 0.08);
}

.algo-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.algo-stat-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
}

.algo-markets {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.algo-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.algo-btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.algo-btn:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.algo-btn:active {
  transform: scale(0.97);
}

.algo-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #000;
  cursor: default;
  box-shadow: 0 0 15px var(--green-glow);
}

/* ═════════════════════════════════════════════
   NEW COMPONENTS
   ═════════════════════════════════════════════ */

/* ═══ ACTIVITY FEED ═══ */
.activity-feed {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 212, 255, 0.12);
  padding: 12px 14px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,255,0.2) transparent;
}

.activity-feed::-webkit-scrollbar { width: 4px; }
.activity-feed::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 2px; }

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(100, 120, 200, 0.08);
  font-size: 0.78rem;
  animation: activitySlideIn 0.5s ease;
}

.activity-item:last-child { border-bottom: none; }

.activity-flag {
  font-size: 1.2rem;
  min-width: 28px;
  text-align: center;
}

.activity-text {
  flex: 1;
  color: var(--text);
  line-height: 1.3;
}

.activity-text strong {
  color: var(--cyan);
}

.activity-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.activity-amount {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 600;
}

.activity-amount.negative {
  color: var(--red);
}

@keyframes activitySlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ═══ REFERRAL REDESIGN ═══ */
.ref-hero {
  text-align: center;
  padding: 30px 20px 24px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  border-radius: var(--radius);
  border: 1px solid var(--border-glow);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.ref-hero::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 60%);
  animation: rotateSlow 15s linear infinite;
}

.ref-hero-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  position: relative;
  animation: robotFloat 3s ease-in-out infinite;
}

.ref-hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ref-hero-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 6px;
  position: relative;
}

.ref-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ref-source-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.ref-source-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.ref-source-icon {
  font-size: 1.6rem;
  min-width: 40px;
  text-align: center;
}

.ref-source-rate {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--cyan);
}

.ref-source-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.ref-tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ref-tier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.ref-tier-icon {
  font-size: 1.5rem;
  min-width: 36px;
  text-align: center;
}

.ref-tier-info {
  flex: 1;
}

.ref-tier-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.ref-tier-req {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.ref-tier-reward {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow);
}

/* ═══ PROFILE PAGE ═══ */
.profile-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
  border-radius: var(--radius);
  border: 1px solid var(--border-glow);
  margin-bottom: 16px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 12px;
  box-shadow: 0 0 30px var(--cyan-glow);
  border: 3px solid rgba(0, 212, 255, 0.3);
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.profile-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.profile-kyc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.2);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
}

.profile-kyc.verified {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.2);
  color: var(--green);
}

.profile-kyc.pending {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
  color: var(--gold);
}

.kyc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.kyc-dot.not-verified { background: var(--red); }
.kyc-dot.pending { background: var(--gold); animation: pulse 2s infinite; }
.kyc-dot.verified { background: var(--green); }

.profile-form {
  padding: 18px;
}

.profile-form .form-label {
  margin-top: 12px;
}

.profile-form .form-label:first-child {
  margin-top: 0;
}

.profile-form .form-input {
  margin-top: 4px;
}

/* KYC Card */
.kyc-card {
  overflow: hidden;
}

.kyc-status-display {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.kyc-icon {
  font-size: 2rem;
  min-width: 40px;
  text-align: center;
}

.kyc-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.kyc-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.kyc-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kyc-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
}

.kyc-step-icon {
  font-size: 1.1rem;
  min-width: 24px;
  text-align: center;
}

.kyc-step span:nth-child(2) {
  flex: 1;
}

.kyc-step-status {
  font-size: 0.9rem;
}

/* ═══ MODE SWITCH CONFIRMATION MODAL ═══ */
.mode-confirm-icon {
  font-size: 3rem;
  text-align: center;
  margin: 10px 0 16px;
  animation: robotFloat 2s ease-in-out infinite;
}

.mode-confirm-text {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.mode-countdown {
  display: flex;
  justify-content: center;
  margin: 16px 0 20px;
}

.countdown-ring {
  position: relative;
  width: 80px;
  height: 80px;
}

.countdown-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.countdown-bg {
  fill: none;
  stroke: rgba(100, 120, 200, 0.15);
  stroke-width: 4;
}

.countdown-progress {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 226;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 6px var(--cyan-glow));
}

.countdown-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan-glow);
}

/* ═══ BODY MODE INDICATORS ═══ */
body.mode-real {
  border-top: 3px solid var(--red);
}

body.mode-real .balance-hero {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.08), rgba(124, 58, 237, 0.08));
  border-color: rgba(255, 51, 102, 0.2);
}

body.mode-demo .balance-hero {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
}

/* ═══ LOAD MORE BUTTON ═══ */
.btn-load-more {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.05);
  color: var(--cyan);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-load-more:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.btn-load-more:active {
  transform: scale(0.97);
}

/* ═══════════════════════════════════════════
   PREMIUM MODAL STYLES — Deposit & Withdraw
   ═══════════════════════════════════════════ */

/* ── Premium Modal Container ── */
.modal-premium {
  background: linear-gradient(180deg, rgba(12, 16, 45, 0.98) 0%, rgba(8, 10, 30, 0.99) 100%);
  border: 1px solid rgba(0, 212, 255, 0.12);
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.05);
}

/* ── Animated Modal Header ── */
.modal-header-premium {
  text-align: center;
  padding: 20px 0 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.modal-header-premium::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  animation: headerGlow 4s ease-in-out infinite alternate;
}

.deposit-header::before {
  background: radial-gradient(ellipse, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
}

.withdraw-header::before {
  background: radial-gradient(ellipse, rgba(255, 51, 102, 0.06) 0%, transparent 70%);
}

@keyframes headerGlow {
  0% { transform: translateX(-10%); opacity: 0.5; }
  100% { transform: translateX(10%); opacity: 1; }
}

.modal-header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}

.modal-header-icon span {
  font-size: 2rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

.modal-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.3);
  animation: iconRingPulse 2.5s ease-in-out infinite;
}

.deposit-header .modal-icon-ring {
  border-color: rgba(0, 255, 136, 0.3);
}

.withdraw-header .modal-icon-ring {
  border-color: rgba(255, 51, 102, 0.3);
}

@keyframes iconRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 0; }
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
  position: relative;
}

/* ── Modal Step Content ── */
.modal-step-content {
  animation: stepFadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ── Section Label ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

/* ── Payment Type Toggle ── */
.payment-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}

.payment-type-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.payment-type-btn.active::before { opacity: 1; }

.payment-type-btn.active {
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1), inset 0 0 20px rgba(0, 212, 255, 0.03);
}

.pt-icon { font-size: 1.6rem; }
.pt-label { font-size: 0.85rem; font-weight: 600; }

.pt-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
}

.payment-type-btn:not(.active) .pt-badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* ── Crypto Grid (Currency Cards) ── */
.crypto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.crypto-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--text-dim);
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}

.crypto-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.crypto-card.active::after,
.crypto-card:hover::after {
  width: 60%;
}

.crypto-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.crypto-card.active {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.06);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.crypto-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crypto-card.active .crypto-card-icon,
.crypto-card:hover .crypto-card-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.crypto-card-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.crypto-card-net {
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Premium Amount Input ── */
.amount-input-premium {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.35s ease;
  margin-bottom: 10px;
}

.amount-input-premium:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1), 0 0 0 3px rgba(0, 212, 255, 0.05);
}

.withdraw-amount-input:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.1), 0 0 0 3px rgba(255, 51, 102, 0.05);
}

.amount-prefix {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  padding: 0 8px 0 14px;
  opacity: 0.7;
}

.withdraw-amount-input .amount-prefix {
  color: var(--red);
}

.amount-input-premium input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 12px 10px;
  outline: none;
  width: 100%;
}

.amount-input-premium input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Quick Amount Chips ── */
.quick-amounts-premium {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.quick-chip {
  padding: 8px 4px;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.04);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.quick-chip:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.quick-chip:active {
  transform: scale(0.95);
}

/* ── Premium Buttons ── */
.btn-premium {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.35s ease;
  margin-bottom: 8px;
}

.btn-premium:active { transform: scale(0.97); }

.btn-premium-green {
  background: linear-gradient(135deg, #00ff88, #059669);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.25);
}

.btn-premium-green:hover {
  box-shadow: 0 6px 30px rgba(0, 255, 136, 0.35);
}

.btn-premium-red {
  background: linear-gradient(135deg, #ff3366, #dc2626);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 51, 102, 0.25);
}

.btn-premium-red:hover {
  box-shadow: 0 6px 30px rgba(255, 51, 102, 0.35);
}

.btn-premium-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: none;
  animation: btnShineLoop 3s ease-in-out infinite;
}

@keyframes btnShineLoop {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

.btn-premium-text {
  position: relative;
  z-index: 2;
}

.btn-modal-cancel {
  margin-top: 6px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.btn-modal-cancel:hover { opacity: 1; }

/* ── Payment Display (Step 2) ── */
.step-2-content {
  text-align: center;
}

.payment-amount-display {
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(124, 58, 237, 0.04));
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 212, 255, 0.15);
  margin-bottom: 20px;
}

.payment-amount-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.payment-amount-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.payment-amount-currency {
  font-size: 1.1rem;
  color: var(--cyan);
  font-weight: 600;
  margin-left: 4px;
}

.payment-network-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.network-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green-glow);
  animation: pulse 1.5s infinite;
}

/* ── QR Code Container ── */
.qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.qr-frame {
  position: relative;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 212, 255, 0.15), 0 0 0 1px rgba(0, 212, 255, 0.2);
  animation: qrAppear 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes qrAppear {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.qr-frame img {
  display: block;
  width: 180px;
  height: 180px;
}

.qr-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--cyan);
  border-style: solid;
  border-width: 0;
}

.qr-corner.tl { top: -2px; left: -2px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 8px; }
.qr-corner.tr { top: -2px; right: -2px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 8px; }
.qr-corner.bl { bottom: -2px; left: -2px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 8px; }
.qr-corner.br { bottom: -2px; right: -2px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 8px; }

/* ── Address Box ── */
.address-box {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 4px;
  align-items: center;
}

.address-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 10px;
  outline: none;
  text-align: center;
}

.address-copy-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--cyan), #0099cc);
  color: #000;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.address-copy-btn:hover {
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.address-copy-btn:active {
  transform: scale(0.92);
}

/* ── Waiting Banner ── */
.waiting-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  text-align: left;
}

.waiting-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
  animation: waitPulse 1.5s ease-in-out infinite;
}

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

.waiting-text {
  font-size: 0.8rem;
  color: var(--cyan);
}

.waiting-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ── Info Banners ── */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.info-banner p {
  margin-top: 4px;
  font-size: 0.72rem;
  opacity: 0.8;
}

.info-banner-icon {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

.info-banner.warning {
  background: rgba(255, 165, 0, 0.08);
  border: 1px solid rgba(255, 165, 0, 0.25);
  color: #f97316;
}

.info-banner.danger {
  background: rgba(255, 60, 60, 0.08);
  border: 1px solid rgba(255, 60, 60, 0.25);
  color: #ff6b6b;
}

.info-banner.info {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--cyan);
}

/* ── Provisioning Terminal ── */
.terminal-card {
  scrollbar-width: none;
}
.terminal-card::-webkit-scrollbar {
  display: none;
}
.terminal-line {
  margin-bottom: 6px;
  animation: typingLine 0.1s steps(40, end);
}
.terminal-line.error { color: #ff3366; text-shadow: 0 0 5px rgba(255,51,102,0.5); }
.terminal-line.warning { color: #f3ba2f; text-shadow: 0 0 5px rgba(243,186,47,0.5); }
.terminal-line.info { color: #00d4ff; text-shadow: 0 0 5px rgba(0,212,255,0.5); }
@keyframes typingLine { from { opacity: 0; } to { opacity: 1; } }
.cursor-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* === FEATHER ICONS === */
i[data-feather],.ico{display:inline-block;width:1em;height:1em;vertical-align:-.125em}
.dot-green,.dot-yellow,.dot-red{display:inline-block;width:10px;height:10px;border-radius:50%;vertical-align:middle;margin-right:2px}
.dot-green{background:#20d2a3}
.dot-yellow{background:#f3ba2f}
.dot-red{background:#ff3366}
.robot-icon .ico{width:3rem;height:3rem}
.empty-icon .ico{width:2rem;height:2rem}
.ref-hero-icon .ico,.ref-source-icon .ico,.ref-tier-icon .ico{width:1.5rem;height:1.5rem}
.modal-header-icon .ico{width:2rem;height:2rem}
.crypto-card-icon .ico{width:1.2rem;height:1.2rem}
.kyc-icon .ico{width:2rem;height:2rem}
.algo-tier{display:flex;align-items:center}
