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

:root {
  --green: #1B6B4A;
  --green-dark: #154d37;
  --green-light: #22c55e;
  --red: #ef4444;
  --bg: #eef2f7;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --header-h: 62px;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); }

/* ── AUTH ── */
.auth-body { background: #fff; min-height: 100vh; }

.auth-container {
  display: flex;
  min-height: 100vh;
}

.auth-left {
  width: 45%;
  background: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.auth-logo { height: 40px; width: auto; object-fit: contain; }

.auth-coins {
  position: relative;
  width: 280px;
  height: 280px;
  margin-top: 40px;
}

.coin {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  border: 3px solid rgba(255,255,255,0.3);
}
.coin-1 { top: 0; left: 30px; }
.coin-2 { top: 0; right: 20px; }
.coin-3 { top: 90px; left: 90px; font-size: 36px; }
.coin-4 { bottom: 20px; left: 10px; }
.coin-5 { bottom: 10px; right: 10px; }

.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.auth-form-wrap { width: 100%; max-width: 380px; }

.auth-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { color: var(--muted); margin-bottom: 28px; font-size: 14px; }

.auth-form .form-group { margin-bottom: 14px; }
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  background: #fff;
  color: var(--text);
}
.form-input:focus { border-color: var(--green); }

.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.forgot-link { font-size: 13px; color: var(--green); text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

.btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary.full-width { width: 100%; justify-content: center; }
.btn-primary-sm {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary-sm:hover { background: var(--green-dark); }

.password-group { position: relative; }
.password-group .form-input { padding-right: 44px; }
.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.eye-btn:hover { color: var(--text); }
.eye-icon { width: 18px; height: 18px; opacity: 1; transition: opacity .2s; }

.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-link { color: var(--green); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.auth-copy { position: absolute; bottom: 20px; font-size: 12px; color: var(--muted); }

/* ── APP HEADER ── */
.app-header {
  background: var(--green);
  height: var(--header-h);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.app-header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  gap: 16px;
}
.app-logo-link { flex-shrink: 0; }
.app-logo-img { height: 28px; width: auto; object-fit: contain; }

.app-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  padding-left: 16px;
}
.app-nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  white-space: nowrap;
}
.app-nav-link:hover, .app-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.15);
}

.user-menu { position: relative; }
.user-btn {
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.user-btn:hover { background: rgba(255,255,255,.2); }
.user-avatar {
  width: 30px; height: 30px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: var(--green-dark);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  min-width: 240px;
  z-index: 200;
  overflow: hidden;
}
.user-dropdown.show { display: block; }

.dropdown-info {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.dropdown-email { color: rgba(255,255,255,.9); font-size: 13px; }
.user-id { color: rgba(255,255,255,.5); font-size: 11px; }
.dropdown-balance { margin-top: 8px; }
.balance-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--green-light); margin-bottom: 2px; }
.balance-amount { font-size: 18px; font-weight: 700; color: #fff; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 13px;
  transition: background .15s;
}
.dropdown-item:hover { background: rgba(255,255,255,.1); }
.dropdown-item.logout { color: #fca5a5; }

/* ── APP PAGE ── */
.app-page { padding-top: calc(var(--header-h) + 24px); min-height: 100vh; }
.app-container { max-width: 1200px; margin: 0 auto; padding: 0 24px 48px; }
.app-container.narrow { max-width: 700px; }

/* ── ALERTS ── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

/* ── CARDS ── */
.section-card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  margin-bottom: 20px;
}
.section-card-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.h-full { height: 100%; }

/* ── STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.stat-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.stat-value { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stat-unit { font-size: 13px; font-weight: 400; color: var(--muted); }

.badge { font-size: 12px; padding: 2px 10px; border-radius: 20px; background: #e2e8f0; color: var(--muted); font-weight: 600; }
.badge-premium { background: #fef3c7; color: #b45309; }

/* ── PROMO BANNER ── */
.promo-banner {
  background: linear-gradient(135deg, var(--green) 0%, #0f4d35 100%);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #fff;
  gap: 16px;
}
.promo-text { font-size: 14px; }

/* ── QUICK ACTIONS ── */
.quick-actions { display: flex; gap: 12px; margin-bottom: 20px; }
.action-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  flex: 1;
  justify-content: center;
}
.action-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ── TABLE ── */
.trades-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.trades-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--border); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.trades-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.trades-table tr:last-child td { border-bottom: none; }
.trades-table tr:hover td { background: #f8fafc; }
.strategy-badge { background: #e2e8f0; color: var(--muted); padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; }

/* ── STATUS BADGES ── */
.status-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.status-pending { background: #fef3c7; color: #b45309; }
.status-completed { background: #dcfce7; color: #15803d; }
.status-processing { background: #dbeafe; color: #1d4ed8; }
.type-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.type-deposit { background: #dcfce7; color: #15803d; }
.type-withdraw { background: #fee2e2; color: #b91c1c; }
.type-premium { background: #fef3c7; color: #b45309; }

/* ── WALLET / CURRENCY ── */
.wallet-card { background: var(--card); border-radius: 12px; padding: 28px; box-shadow: 0 1px 4px rgba(0,0,0,.07); margin-bottom: 20px; }
.wallet-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.wallet-subtitle { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

.balance-info { background: #f1f5f9; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }

.currency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.currency-option {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  position: relative;
}
.currency-option:hover { border-color: var(--green); }
.currency-option.selected { border-color: var(--green); background: #f0fdf4; }
.currency-icon { font-size: 18px; }
.currency-name { font-weight: 600; font-size: 14px; }
.currency-network { font-size: 10px; font-weight: 500; color: var(--muted); background: var(--bg); border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: middle; }
.currency-min { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.currency-dot { width: 8px; height: 8px; background: var(--green-light); border-radius: 50%; position: absolute; top: 8px; right: 8px; }

.amount-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.amount-desc { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.amount-input-wrap { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.amount-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
}
.amount-currency { padding: 0 14px; color: var(--muted); font-size: 14px; font-weight: 600; border-left: 1px solid var(--border); background: #f8fafc; height: 46px; display: flex; align-items: center; white-space: nowrap; }
.usdt-note { font-size: 12px; color: #f59e0b; margin-bottom: 8px; }

/* ── Withdraw step labels ── */
.wd-step-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.wd-max-btn { font-size: 11px; font-weight: 700; background: rgba(99,102,241,.1); color: var(--primary); border: none; border-radius: 4px; padding: 2px 7px; cursor: pointer; margin-left: 8px; }
.wd-max-btn:hover { background: rgba(99,102,241,.2); }
.wd-amount-error { font-size: 12px; color: #ef4444; margin: 4px 0 6px; }
.wd-calc { background: var(--bg); border-radius: 8px; padding: 12px 16px; margin: 10px 0 4px; border: 1px solid var(--border); }
.wd-calc-header { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.wd-calc-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.wd-calc-row:last-child { border-bottom: none; }
.wd-calc-row span { color: var(--muted); }
.wd-wallet-wrap { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.wd-wallet-input { flex: 1; border: none; background: transparent; padding: 10px 12px; font-size: 13px; color: var(--text); outline: none; }
.wd-wallet-input::placeholder { color: var(--muted); }
.wd-wallet-net { padding: 0 12px; font-size: 11px; font-weight: 700; color: var(--primary); white-space: nowrap; border-left: 1px solid var(--border); height: 100%; display: flex; align-items: center; background: rgba(99,102,241,.06); }

/* ── Withdraw success ── */
.withdraw-success-card { text-align: center; }
.ws-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(34,197,94,.12); color: #22c55e; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.ws-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.ws-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.ws-details { background: var(--bg); border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; text-align: left; }
.ws-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.ws-row:last-child { border-bottom: none; }
.ws-row span { color: var(--muted); }
.ws-wallet { font-size: 12px; word-break: break-all; max-width: 200px; text-align: right; }
.ws-back { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: 13px; text-decoration: none; }
.ws-back:hover { color: var(--text); }
.refund-note { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }
.balance-hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ── PREMIUM ── */
.premium-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.premium-info-card {
  background: var(--green);
  border-radius: 12px;
  padding: 24px;
  color: #fff;
}
.premium-badge-top { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--green-light); margin-bottom: 6px; }
.premium-days { font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.premium-days span { font-size: 24px; font-weight: 600; }
.premium-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,.6); margin-top: 16px; margin-bottom: 8px; }
.premium-countdown { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: 20px; }
.premium-features-list { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }
.pf-item { font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 8px; }
.premium-active { text-align: center; padding: 32px 0; }
.premium-active-icon { font-size: 48px; margin-bottom: 12px; }
.premium-active h3 { font-size: 22px; margin-bottom: 8px; color: var(--green); }
.premium-active p { color: var(--muted); margin-bottom: 16px; }

/* ── TRADING ── */
.trading-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.trading-main { min-width: 0; }
.trading-side { }
.blockchain-select { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14px; }
.blockchain-icons { display: flex; gap: 6px; }
.bc-icon { font-size: 22px; cursor: default; }
.trading-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.chart-filters { display: flex; gap: 6px; }
.chart-btn { background: var(--green); color: #fff; border: none; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; opacity: .6; }
.chart-btn.active, .chart-btn:hover { opacity: 1; }

.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.history-item:last-child { border-bottom: none; }
.hi-token { font-weight: 700; font-size: 13px; }
.hi-profit { font-weight: 700; font-size: 13px; }

.whale-filters { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.whale-params { margin-bottom: 16px; }
.param-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.param-row label { color: var(--muted); min-width: 160px; }
.param-input { border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 13px; width: 120px; }
.radio-group { display: flex; gap: 16px; }
.radio-group label { display: flex; align-items: center; gap: 5px; cursor: pointer; color: var(--text); }

/* ── PREMIUM LOCK ── */
.premium-lock { text-align: center; padding: 80px 20px; }
.lock-icon { font-size: 56px; margin-bottom: 16px; }
.premium-lock h2 { font-size: 28px; margin-bottom: 10px; }
.premium-lock p { color: var(--muted); margin-bottom: 24px; font-size: 15px; }

/* ── PROFILE ── */
.profile-info { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start; }
.profile-avatar { width: 72px; height: 72px; background: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
.profile-details { flex: 1; }
.profile-id { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.profile-email { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.profile-balance, .profile-plan, .profile-premium-until { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.profile-form .form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

/* ── DASHBOARD NEW ── */
.db-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.db-card {
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.db-card-green {
  background: var(--green);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.db-card-white { background: var(--card); }

.db-card-logo {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.db-card-logo img { width: 26px; height: 26px; object-fit: contain; }

.db-deposit-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.db-deposit-amount { font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 18px; }
.db-deposit-amount span { font-size: 16px; font-weight: 600; }

.db-profit-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.db-profit-grid { display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; }
.db-profit-col { flex: 1; }
.db-profit-col + .db-profit-col { border-left: 1px solid rgba(255,255,255,.15); padding-left: 12px; }
.db-profit-title { font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.db-profit-val { font-size: 13px; font-weight: 700; color: #fff; }

.db-acct-label { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.db-acct-balance { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.db-acct-sub { font-size: 10px; font-weight: 700; letter-spacing: .8px; color: var(--green); margin: 6px 0 18px; }
.db-acct-btns { display: flex; gap: 10px; }
.db-btn {
  flex: 1; text-align: center; padding: 10px 0;
  border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: none; text-decoration: none;
  transition: all .2s;
}
.db-btn-outline { background: #fff; border: 2px solid var(--green); color: var(--green); }
.db-btn-outline:hover { background: var(--green); color: #fff; }
.db-btn-fill { background: var(--green); color: #fff; }
.db-btn-fill:hover { background: var(--green-dark); }

.db-status-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.db-status-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.db-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--green-light); }
.dot-yellow { background: #f59e0b; }
.db-status-active { font-size: 13px; font-weight: 700; color: var(--green-light); padding: 6px 0; }

.db-status-btns { display: flex; flex-direction: column; gap: 8px; }
.db-status-btn {
  border: none; padding: 8px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  text-align: center; text-decoration: none; display: block;
  transition: filter .2s;
}
.db-status-btn:hover { filter: brightness(.9); }
.db-status-btn-yellow { background: #f59e0b; color: #fff; }

/* Welcome card */
.db-welcome-card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.db-welcome-coins { flex-shrink: 0; width: 160px; }
.db-welcome-img { width: 160px; object-fit: contain; }
.db-welcome-title { font-size: 18px; font-weight: 800; color: var(--green); margin-bottom: 12px; }
.db-welcome-text p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.db-welcome-text p:last-child { margin-bottom: 0; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  align-items: center; justify-content: center;
}
.modal-box {
  background: #fff; border-radius: 14px;
  padding: 28px 32px; max-width: 420px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.modal-box p { font-size: 14px; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .db-top-grid { grid-template-columns: 1fr; }
  .db-welcome-card { flex-direction: column; }
  .db-welcome-coins { width: 100px; }
  .db-welcome-img { width: 100px; }
}

/* ── PAYMENT MODALS ── */
.pay-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px 36px;
  max-width: 480px;
  width: 92%;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  position: relative;
}
.pay-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: #f1f5f9; border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: background .2s;
}
.pay-modal-close:hover { background: #e2e8f0; }

.pay-modal-title { font-size: 20px; font-weight: 800; color: var(--green); margin-bottom: 12px; }
.pay-modal-desc  { font-size: 14px; margin-bottom: 10px; line-height: 1.5; }
.pay-modal-hint  { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.pay-modal-label { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 10px; }

.pay-method-box {
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 6px;
}
.pay-method-row  { display: flex; align-items: center; justify-content: space-between; }
.pay-method-radio {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.pay-method-radio input[type=radio] { display: none; }
.pay-radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--green); position: relative; flex-shrink: 0;
  background: #fff;
}
.pay-method-radio input:checked + .pay-radio-dot::after {
  content: ''; position: absolute; inset: 3px;
  background: var(--green); border-radius: 50%;
}
.pay-method-tag {
  font-size: 12px; background: #f1f5f9; color: var(--muted);
  padding: 2px 10px; border-radius: 4px; font-weight: 600;
}
.pay-gateway-note { font-size: 11px; color: var(--muted); font-style: italic; margin-bottom: 14px; }

.pay-agree-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; cursor: pointer; margin-bottom: 4px;
}
.pay-agree-row input[type=checkbox] { display: none; }
.pay-agree-box {
  flex-shrink: 0; width: 20px; height: 20px;
  background: var(--green); border-radius: 4px;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* Modal 2 */
.pay-order-success { font-size: 14px; color: var(--text); margin-bottom: 10px; line-height: 1.5; }
.pay-details-row {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; margin: 14px 0;
}
.pay-qr-wrap { flex-shrink: 0; }
.pay-qr-img { width: 130px; height: 130px; border-radius: 8px; display: block; }
.pay-addr-block { flex: 1; min-width: 0; }
.pay-send-label { font-size: 13px; margin-bottom: 10px; }
.pay-addr-row {
  display: flex; align-items: center; gap: 6px;
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 10px; margin-bottom: 6px;
}
.pay-curr-icon { font-size: 16px; flex-shrink: 0; }
.pay-addr-text {
  font-size: 11px; font-family: monospace; color: var(--text);
  word-break: break-all; flex: 1;
}
.pay-copy-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 2px; flex-shrink: 0;
  transition: color .2s;
}
.pay-copy-btn:hover { color: var(--green); }
.pay-network-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.pay-any-wallet { font-size: 13px; color: var(--muted); }

.usdt-equiv-hint { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 6px; margin-bottom: 0; min-height: 20px; }

/* ── Rates ticker ── */
.rates-ticker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  font-size: 13px;
}
.rates-loading { color: var(--muted); font-size: 12px; }
.rate-item { display: flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text); }
.rate-coin { color: var(--green); font-weight: 700; font-size: 12px; }
.rate-sep { color: var(--border); font-size: 16px; }
.rate-updated { margin-left: auto; font-size: 11px; color: var(--muted); }

/* ── MISC ── */
.text-green { color: var(--green-light) !important; }
.text-red { color: var(--red) !important; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state p { margin-bottom: 16px; }

.trade-result { margin-top: 16px; }
.result-trades { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.result-trades span { background: var(--bg); padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }

/* ── Live Trading Terminal ── */
.live-trading-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
}
.live-trading-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.live-stop-btn {
  background: #f97316; color: #fff; border: none;
  padding: 7px 20px; border-radius: 6px; font-size: 13px; font-weight: 800;
  cursor: pointer; letter-spacing: .5px; transition: filter .2s;
}
.live-stop-btn:hover { filter: brightness(.9); }
.live-stop-btn:disabled { opacity: .6; cursor: default; }

.live-terminal {
  background: #1e4535;
  border-radius: 12px;
  padding: 16px 18px;
  min-height: 220px;
  max-height: 380px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.live-terminal::-webkit-scrollbar { width: 4px; }
.live-terminal::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.terminal-row {
  display: grid;
  grid-template-columns: 220px 140px 80px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  align-items: center;
  transition: background .3s;
}
.terminal-row:last-child { border-bottom: none; }
.terminal-row-new { background: rgba(255,255,255,.07); border-radius: 6px; }

.term-token { color: #e2e8f0; font-weight: 600; white-space: nowrap; }
.term-sym   { color: #94a3b8; font-weight: 400; font-size: 11px; }
.term-wallet { color: #34d399; font-size: 12px; }
.term-rug    { color: #94a3b8; font-size: 12px; }
.term-result { color: #e2e8f0; font-size: 12px; white-space: nowrap; }
.term-win    { color: #22c55e; font-weight: 700; }
.term-loss   { color: #ef4444; font-weight: 700; }

.live-profit-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 0 4px;
  font-size: 14px; color: var(--muted);
}
.live-profit-num { font-size: 16px; font-weight: 800; color: var(--green-light); transition: color .3s; }
.live-timer { font-size: 12px; color: var(--muted); }

/* History summary */
.history-summary-box {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--green);
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: var(--muted);
  margin-top: 10px;
}
.hs-icon { font-size: 18px; color: var(--green); }
.hs-text strong { color: var(--text); }

/* ── Progress bar ── */
.analyzing-text { font-size: 15px; font-weight: 600; color: var(--green); margin-bottom: 14px; }
.progress-track { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.progress-fill { height: 100%; width: 0%; background: var(--green); border-radius: 99px; transition: width 0.1s linear; }
.analyzing-sub { font-size: 12px; color: var(--muted); }

/* ── Wallets table ── */
.wallets-table-wrap {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
}
.wallets-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wallets-table thead th {
  position: sticky; top: 0;
  background: #f1f5f9;
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .4px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.wallets-table tbody tr { cursor: default; transition: background .1s; }
.wallets-table tbody tr:hover { background: #f8fffe; }
.wallets-table tbody td { padding: 7px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.wallets-table tbody tr:last-child td { border-bottom: none; }
.wallet-addr { font-size: 11px; color: var(--green); font-family: monospace; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

.wallets-controls { display: flex; flex-direction: column; gap: 12px; }
.wallets-start-row { display: flex; align-items: center; gap: 10px; }

/* ── Tier select ── */
.tier-select-wrap { margin-bottom: 14px; }
.tier-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tier-buttons { display: flex; gap: 10px; }
.tier-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 10px 8px 8px; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--border); background: var(--bg-card);
  transition: border-color .18s, background .18s, transform .12s;
  gap: 2px;
}
.tier-btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.tier-btn-active { border-color: var(--primary) !important; background: rgba(99,102,241,.08) !important; }
.tier-usd { font-size: 17px; font-weight: 800; color: var(--text); }
.tier-roi { font-size: 11px; color: var(--green); font-weight: 600; }
.tier-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px;
  background: rgba(99,102,241,.12); color: var(--primary); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em;
}
.tier-badge-mid { background: rgba(245,158,11,.13); color: #d97706; }
.tier-badge-top { background: rgba(34,197,94,.13); color: #16a34a; }

/* ── BURGER BUTTON ── */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s;
}

/* ── MOBILE MENU ── */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
}
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 280px;
  height: 100%;
  background: var(--card);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right .3s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu-overlay.open { display: block; }

.mobile-menu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 16px 16px;
  background: var(--green);
  gap: 12px;
}
.mobile-user-info { flex: 1; min-width: 0; }
.mobile-user-name { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.mobile-user-email { color: rgba(255,255,255,.7); font-size: 12px; margin-bottom: 6px; word-break: break-all; }
.mobile-user-balance {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.mobile-close-btn {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  border-radius: 6px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  flex: 1;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all .2s;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(99,102,241,.1);
  color: var(--primary);
}
.mobile-nav-link svg { flex-shrink: 0; opacity: .7; }
.mobile-nav-link.active svg { opacity: 1; }

.mobile-menu-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.mobile-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px;
  background: var(--bg);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all .2s;
  text-align: center;
}
.mobile-action-btn:hover { background: rgba(99,102,241,.1); color: var(--primary); }
.mobile-logout { color: #ef4444; }
.mobile-logout:hover { background: rgba(239,68,68,.1); color: #ef4444; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .premium-layout { grid-template-columns: 1fr; }
  .trading-layout { grid-template-columns: 1fr; }
  .app-nav { display: none; }
  .user-menu { display: none; }
  .burger-btn { display: flex; }
}
@media (max-width: 600px) {
  .auth-left { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { flex-direction: column; }
}
