/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette */
  --bg-primary: #060b14;
  --bg-secondary: #0c1220;
  --bg-card: #111827;
  --bg-input: #0d1424;
  --border: rgba(56, 97, 251, 0.15);
  --text-primary: #e4e8f1;
  --text-secondary: #8b95a8;
  --text-muted: #4a5568;

  /* Accent */
  --accent: #3861fb;
  --accent-hover: #4d73ff;
  --accent-glow: rgba(56, 97, 251, 0.4);

  /* Status colors */
  --green: #00e68a;
  --green-dim: #00c873;
  --green-bg: rgba(0, 230, 138, 0.08);
  --green-glow: rgba(0, 230, 138, 0.35);
  --red: #ff3366;
  --red-dim: #e6294d;
  --red-bg: rgba(255, 51, 102, 0.08);
  --red-glow: rgba(255, 51, 102, 0.35);
  --yellow: #ffc107;
  --yellow-bg: rgba(255, 193, 7, 0.08);

  /* Glassmorphism */
  --glass-bg: rgba(11, 18, 32, 0.65);
  --glass-bg-strong: rgba(11, 18, 32, 0.85);
  --glass-border: rgba(56, 97, 251, 0.12);
  --glass-blur: 20px;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3861fb, #6c5ce7);
  --gradient-accent: linear-gradient(135deg, #3861fb, #00b4d8);
  --gradient-green: linear-gradient(135deg, #00e68a, #00b4d8);
  --gradient-red: linear-gradient(135deg, #ff3366, #ff6b6b);
  --gradient-brand: linear-gradient(135deg, #3861fb, #6c5ce7, #00b4d8);

  /* Shadows — optimized */
  --shadow-neon: 0 0 12px rgba(56, 97, 251, 0.12);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--glass-border);
  --shadow-glow-green: 0 0 20px rgba(0, 230, 138, 0.2), 0 4px 15px rgba(0, 230, 138, 0.1);
  --shadow-glow-red: 0 0 20px rgba(255, 51, 102, 0.2), 0 4px 15px rgba(255, 51, 102, 0.1);
  --shadow-glow-accent: 0 0 20px rgba(56, 97, 251, 0.25), 0 4px 15px rgba(56, 97, 251, 0.1);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f5f7fa;
  --border: rgba(56, 97, 251, 0.12);
  --text-primary: #1a202c;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --accent: #3861fb;
  --accent-hover: #2d4fd6;
  --accent-glow: rgba(56, 97, 251, 0.2);

  --green: #16a34a;
  --green-dim: #15803d;
  --green-bg: rgba(22, 163, 74, 0.08);
  --green-glow: rgba(22, 163, 74, 0.15);
  --red: #dc2626;
  --red-dim: #b91c1c;
  --red-bg: rgba(220, 38, 38, 0.08);
  --red-glow: rgba(220, 38, 38, 0.15);
  --yellow: #d97706;
  --yellow-bg: rgba(217, 119, 6, 0.08);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(56, 97, 251, 0.1);

  --shadow-neon: 0 4px 20px rgba(56, 97, 251, 0.08);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--glass-border);
  --shadow-glow-green: 0 0 15px rgba(22, 163, 74, 0.1);
  --shadow-glow-red: 0 0 15px rgba(220, 38, 38, 0.1);
  --shadow-glow-accent: 0 0 15px rgba(56, 97, 251, 0.12);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Background glow decorations — no blur filter, radial-gradient is soft enough */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(56, 97, 251, 0.12) 0%, transparent 70%);
}

body::after {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
}

[data-theme="light"] body::before,
[data-theme="light"] body::after {
  opacity: 0.4;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(56, 97, 251, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 97, 251, 0.35); }

[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(56, 97, 251, 0.15); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(56, 97, 251, 0.25); }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-accent);
  transform: scale(1.05);
}

/* ===== LANG SWITCHER ===== */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--bg-input);
  border-radius: 8px;
  padding: 2px;
  border: 1px solid var(--glass-border);
}

.lang-btn {
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--gradient-primary);
  color: #fff;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow-accent);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(56, 97, 251, 0.35), 0 6px 20px rgba(56, 97, 251, 0.2);
}

.btn-green {
  background: var(--gradient-green);
  color: #fff;
  box-shadow: var(--shadow-glow-green);
}

.btn-green:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 230, 138, 0.3), 0 6px 20px rgba(0, 230, 138, 0.15);
}

.btn-red {
  background: var(--gradient-red);
  color: #fff;
  box-shadow: var(--shadow-glow-red);
}

.btn-red:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(255, 51, 102, 0.3), 0 6px 20px rgba(255, 51, 102, 0.15);
}

.btn-outline {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-accent);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-full { width: 100%; }

/* ===== INPUTS ===== */
.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition-normal);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-glow-accent);
}

input::placeholder { color: var(--text-muted); }

/* ===== HEADER / NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  text-decoration: none;
}

.navbar-brand span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition-normal);
}

.navbar-nav a:hover {
  color: var(--text-primary);
  background: rgba(56, 97, 251, 0.08);
}

.navbar-nav a.active {
  color: var(--accent);
  background: rgba(56, 97, 251, 0.1);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-balance {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 230, 138, 0.15);
}

.navbar-username {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== LOGIN PAGE ===== */
.landing-container {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.5s ease;
}

.brand-logo {
  text-align: center;
  margin-bottom: 32px;
}

.brand-logo h1 {
  font-size: 32px;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.brand-logo .brand-tagline,
.auth-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-input);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--glass-border);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition-normal);
  border: none;
  border-radius: 8px;
  background: none;
}

.auth-tab.active {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow-accent);
}

.auth-tab:not(.active):hover {
  color: var(--text-primary);
}

.auth-error {
  background: var(--red-bg);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
  border: 1px solid rgba(255, 51, 102, 0.15);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

/* ===== TRADE PAGE LAYOUT ===== */
.trade-layout {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  height: calc(100vh - 60px);
}

.sidebar-left {
  background: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
  overflow-y: auto;
}

.sidebar-right {
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chart-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== ASSET LIST ===== */
.asset-list-header {
  padding: 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--glass-border);
}

.asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.asset-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.asset-item:hover {
  background: rgba(56, 97, 251, 0.05);
}

.asset-item.active {
  background: rgba(56, 97, 251, 0.08);
}

.asset-item.active::before {
  opacity: 1;
}

.asset-name {
  font-size: 14px;
  font-weight: 600;
}

.asset-price {
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.asset-change {
  font-size: 12px;
  margin-top: 2px;
  font-weight: 500;
}

.asset-change.up { color: var(--green); }
.asset-change.down { color: var(--red); }

/* ===== CHART ===== */
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

.chart-pair {
  font-size: 18px;
  font-weight: 700;
}

.chart-price-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chart-current-price {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chart-current-price.up { color: var(--green); }
.chart-current-price.down { color: var(--red); }

#chart-container {
  flex: 1;
  background: var(--bg-primary);
}

/* ===== TRADE PANEL (Right Sidebar) ===== */
.trade-panel {
  padding: 20px;
}

.trade-panel h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.timeframe-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.timeframe-btn {
  flex: 1;
  padding: 8px;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.timeframe-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.timeframe-btn.active {
  background: rgba(56, 97, 251, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.amount-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.preset-btn {
  padding: 8px;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.preset-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(56, 97, 251, 0.06);
}

.trade-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.trade-btn-up {
  padding: 16px;
  background: var(--gradient-green);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-glow-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: inherit;
}

.trade-btn-up:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--green-glow), 0 8px 25px rgba(0, 230, 138, 0.2);
}

.trade-btn-down {
  padding: 16px;
  background: var(--gradient-red);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-glow-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: inherit;
}

.trade-btn-down:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--red-glow), 0 8px 25px rgba(255, 51, 102, 0.2);
}

.trade-btn-up:disabled, .trade-btn-down:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ===== ACTIVE TRADE ===== */
.active-trade {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px;
  margin-top: 16px;
  display: none;
  position: relative;
  overflow: hidden;
}

.active-trade::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--green), var(--accent));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}

.active-trade.show { display: block; animation: fadeInUp 0.3s ease; }

.active-trade.show::before {
  opacity: 0.6;
  animation: borderGlow 3s linear infinite;
}

.active-trade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.active-trade-timer {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 14px 0;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== TRADE RESULT OVERLAY ===== */
.trade-result-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.trade-result-overlay.show { display: flex; }

.trade-result-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  min-width: 340px;
  box-shadow: var(--shadow-card), var(--shadow-neon);
  animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trade-result-card h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.trade-result-card .profit {
  font-size: 28px;
  font-weight: 700;
  margin: 16px 0;
  font-variant-numeric: tabular-nums;
}

/* ===== TRADE HISTORY ===== */
.trade-history {
  padding: 16px;
  border-top: 1px solid var(--glass-border);
  flex: 1;
  overflow-y: auto;
}

.trade-history h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 13px;
  transition: background var(--transition-fast);
}

.history-item:hover {
  background: rgba(56, 97, 251, 0.03);
}

.history-asset { font-weight: 600; }
.history-direction { font-size: 12px; font-weight: 500; }
.history-direction.up { color: var(--green); }
.history-direction.down { color: var(--red); }

.history-result { font-weight: 600; }
.history-result.win { color: var(--green); }
.history-result.lose { color: var(--red); }
.history-result.pending { color: var(--yellow); }

/* ===== PROFILE PAGE ===== */
.profile-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.4s ease backwards;
}

.profile-card:nth-child(1) { animation-delay: 0s; }
.profile-card:nth-child(2) { animation-delay: 0.08s; }
.profile-card:nth-child(3) { animation-delay: 0.16s; }
.profile-card:nth-child(4) { animation-delay: 0.24s; }

.profile-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.profile-field {
  font-size: 14px;
}

.profile-field .label {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.profile-field .value {
  font-weight: 600;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-green {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(0, 230, 138, 0.15);
}

.badge-red {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(255, 51, 102, 0.15);
}

.badge-yellow {
  background: var(--yellow-bg);
  color: var(--yellow);
  border: 1px solid rgba(255, 193, 7, 0.15);
}

.badge-gray {
  background: rgba(139, 149, 168, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(139, 149, 168, 0.12);
}

/* ===== VERIFICATION ===== */
.verification-upload {
  border: 2px dashed var(--glass-border);
  border-radius: 14px;
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: rgba(56, 97, 251, 0.02);
}

.verification-upload:hover {
  border-color: var(--accent);
  background: rgba(56, 97, 251, 0.05);
  box-shadow: 0 0 20px var(--accent-glow);
}

.verification-upload input[type="file"] { display: none; }

.verification-upload p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

/* ===== WITHDRAWAL TABLE ===== */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--glass-border);
}

td {
  padding: 14px 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--glass-border);
}

tr {
  transition: background var(--transition-fast);
}

tr:hover td {
  background: rgba(56, 97, 251, 0.03);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 74px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 20px;
  min-width: 300px;
  max-width: 420px;
  box-shadow: var(--shadow-card);
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.success {
  border-left: 3px solid var(--green);
  box-shadow: var(--shadow-card), var(--shadow-glow-green);
}

.toast.error {
  border-left: 3px solid var(--red);
  box-shadow: var(--shadow-card), var(--shadow-glow-red);
}

.toast.info {
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-card), var(--shadow-glow-accent);
}

.toast-message {
  font-size: 14px;
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ===== STATUS BAR ===== */
.status-bar {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  box-shadow: 0 0 8px var(--green-glow);
}

/* ===== DEPOSIT PAGE ===== */
.deposit-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 24px;
}

.deposit-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.deposit-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-normal);
}

.deposit-progress-step.active {
  color: var(--accent);
}

.deposit-progress-step.done {
  color: var(--green);
}

.deposit-progress-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-input);
  border: 2px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.deposit-progress-step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.deposit-progress-step.done .step-num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.deposit-progress-line {
  width: 40px;
  height: 2px;
  background: var(--glass-border);
  margin: 0 8px;
  transition: background var(--transition-normal);
}

.deposit-progress-line.done {
  background: var(--green);
}

.deposit-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.4s ease;
}

.deposit-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.payment-method-card {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.payment-method-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-accent);
}

.payment-method-card.selected {
  border-color: var(--accent);
  background: rgba(56, 97, 251, 0.08);
}

.payment-method-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.payment-method-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.payment-method-currency {
  font-size: 11px;
  color: var(--text-muted);
}

.deposit-timer {
  text-align: center;
  margin-bottom: 20px;
}

.deposit-timer-value {
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.deposit-timer-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-input);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.deposit-timer-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 1s linear;
}

.deposit-requisite-box {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deposit-requisite-box .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.deposit-requisite-box .value {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.copy-btn {
  padding: 6px 12px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.copy-btn:hover {
  transform: scale(1.05);
}

.deposit-warnings {
  background: var(--yellow-bg);
  border: 1px solid rgba(255, 193, 7, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.deposit-warnings li {
  font-size: 13px;
  color: var(--yellow);
  margin-bottom: 6px;
  list-style: none;
  padding-left: 20px;
  position: relative;
}

.deposit-warnings li::before {
  content: '!';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.deposit-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.deposit-actions .btn {
  flex: 1;
}

.receipt-upload-zone {
  border: 2px dashed var(--glass-border);
  border-radius: 14px;
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: rgba(56, 97, 251, 0.02);
  margin: 16px 0;
}

.receipt-upload-zone:hover {
  border-color: var(--accent);
  background: rgba(56, 97, 251, 0.05);
}

.receipt-upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(56, 97, 251, 0.08);
}

.receipt-preview {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  margin: 12px auto;
  display: none;
}

.receipt-preview.show {
  display: block;
}

.deposit-result {
  text-align: center;
  padding: 40px 20px;
}

.deposit-result-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.deposit-result h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.deposit-result p {
  color: var(--text-secondary);
  font-size: 14px;
}

.btn-lg {
  padding: 14px 32px !important;
  font-size: 16px !important;
  border-radius: 12px !important;
}

/* ===== ASSET TICKER ===== */
.asset-ticker {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  padding: 12px 0;
  position: relative;
}

.asset-ticker::before,
.asset-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.asset-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.asset-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.asset-ticker-track {
  display: flex;
  gap: 48px;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 14px;
}

.ticker-symbol {
  font-weight: 700;
  color: var(--text-primary);
}

.ticker-price {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.ticker-change {
  font-size: 13px;
  font-weight: 600;
}

.ticker-change.up { color: var(--green); }
.ticker-change.down { color: var(--red); }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== REVIEWS CAROUSEL ===== */
.reviews-carousel {
  position: relative;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.review-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-accent);
  transform: translateY(-2px);
}

.review-stars {
  color: #ffc107;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  min-height: 80px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.review-name {
  font-size: 14px;
  font-weight: 600;
}

.review-role {
  font-size: 12px;
  color: var(--text-muted);
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.reviews-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.reviews-arrow:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-accent);
  color: var(--accent);
}

.reviews-dots {
  display: flex;
  gap: 8px;
}

.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-normal);
}

.reviews-dot.active {
  opacity: 1;
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* Scroll animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes toastIn {
  from { transform: translateX(100%) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to { transform: translateX(100%) scale(0.9); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ===== MISC ===== */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.divider {
  height: 1px;
  background: var(--glass-border);
  margin: 16px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .auth-card {
    margin: 16px;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .navbar {
    padding: 0 12px;
  }

  .navbar-nav {
    gap: 4px;
  }

  .navbar-nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .navbar-brand {
    font-size: 16px;
  }

  .navbar-balance {
    padding: 4px 8px;
    font-size: 12px;
  }

  .toast {
    min-width: unset;
    max-width: calc(100vw - 32px);
  }

  .toast-container {
    left: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    margin: 12px;
    padding: 20px 16px;
    border-radius: 12px;
  }

  .auth-card h2 {
    font-size: 20px;
  }

  .form-group label {
    font-size: 12px;
  }

  .form-group input,
  .form-group select {
    padding: 10px 12px;
    font-size: 14px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .toast {
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 10px;
  }

  .badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Mobile menu — shared base */
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 360px) {
  .auth-card {
    margin: 10px;
    padding: 18px 14px;
  }

  .auth-card h2 {
    font-size: 18px;
  }

  .form-group input,
  .form-group select {
    padding: 9px 10px;
    font-size: 13px;
  }
}
