* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #080c0a;
  --bg2: #0b0f0d;
  --card: #0f1610;
  --card2: #141f15;
  --border: #1a2e1c;
  --primary: #00e676;
  --primary2: #00c853;
  --green: #00e676;
  --red: #ff1744;
  --text: #e0ffe8;
  --muted: #5a7a60;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: rgba(0,0,0,0.98);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-btns { display: flex; gap: 12px; }

/* BUTTONS */
.btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #00a040);
  color: #000;
  box-shadow: 0 4px 20px rgba(0,230,118,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,230,118,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: rgba(0,230,118,0.08);
  transform: translateY(-2px);
}
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 60px 60px;
  min-height: 90vh;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,180,80,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(0,230,118,0.05) 0%, transparent 50%);
  gap: 40px;
}

.hero-content { flex: 1; max-width: 560px; }

.badge {
  display: inline-block;
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.3);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #00c853, #69f0ae);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-btns { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }

/* TICKER */
.ticker-bar {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 0;
}
.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  width: max-content;
}
.ticker-track span { font-size: 0.82rem; font-weight: 600; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* CHART CARD */
.hero-chart { flex: 1; max-width: 520px; }
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.chart-title { font-size: 1rem; font-weight: 700; color: #fff; }
.chart-price { font-size: 1.1rem; font-weight: 700; }
.chart-price small { font-size: 0.8rem; margin-left: 6px; }

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 60px;
  background: var(--bg2);
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,230,118,0.1);
  border-color: rgba(0,230,118,0.3);
}
.stat-icon { margin-bottom: 14px; color: var(--primary); }
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.stat-label { color: var(--muted); font-size: 0.9rem; }

/* MARKETS */
.markets {
  padding: 60px;
}
.markets h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: #fff;
}
.market-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.market-table th {
  background: var(--card2);
  padding: 16px 20px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.market-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.market-table tr:hover td { background: rgba(0,230,118,0.03); }
.asset-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-right: 8px;
  vertical-align: middle;
}
.btc  { background: rgba(247,147,26,0.15); color: #f7931a; border: 1px solid rgba(247,147,26,0.3); }
.eth  { background: rgba(98,126,234,0.15); color: #627eea; border: 1px solid rgba(98,126,234,0.3); }
.aapl { background: rgba(0,230,118,0.1); color: #00e676; border: 1px solid rgba(0,230,118,0.3); }
.tsla { background: rgba(204,0,0,0.12); color: #e53935; border: 1px solid rgba(204,0,0,0.3); }
.gold { background: rgba(255,215,0,0.12); color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }

/* COLORS */
.up { color: var(--green); }
.down { color: var(--red); }

/* FOOTER */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer p { color: var(--muted); font-size: 0.85rem; }

/* AUTH PAGES */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 30% 40%, rgba(0,180,80,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(0,230,118,0.05) 0%, transparent 50%);
  padding: 40px 20px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.auth-logo {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.auth-logo span { color: var(--primary); }

.auth-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: #00e676;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,230,118,0.1);
}
.form-group input::placeholder { color: #2a4a30; }

.btn-full { width: 100%; text-align: center; padding: 14px; font-size: 1rem; border-radius: 10px; margin-top: 8px; }

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-btns { display: flex; gap: 12px; }
.btn-social {
  flex: 1;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 11px;
  border-radius: 10px;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  display: block;
}
.btn-social:hover { border-color: var(--primary); background: rgba(0,230,118,0.05); }

.terms {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}
.terms a { color: var(--primary); text-decoration: none; }

/* HAMBURGER */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU DRAWER */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .mobile-btns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.mobile-menu .mobile-btns .btn { flex: 1; text-align: center; }

/* TABLET — 900px */
@media (max-width: 900px) {
  .navbar { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-btns { display: none; }
  .dash-nav-btns { display: flex !important; align-items: center; gap: 12px; }
  .hamburger { display: flex; }

  .hero {
    flex-direction: column;
    padding: 48px 24px 40px;
    min-height: auto;
    gap: 32px;
  }
  .hero-content { max-width: 100%; }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-chart { max-width: 100%; width: 100%; }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 24px;
    gap: 16px;
  }

  .markets { padding: 40px 24px; }
  .markets h2 { font-size: 1.6rem; }

  /* Hide less important table columns on tablet */
  .market-table th:nth-child(4),
  .market-table td:nth-child(4) { display: none; }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px;
  }
}

/* MOBILE — 600px */
@media (max-width: 600px) {
  .hero { padding: 36px 16px 32px; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-content p { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .hero-btns .btn-lg { width: 100%; text-align: center; }

  .badge { font-size: 0.78rem; padding: 5px 12px; }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px 16px;
    gap: 12px;
  }
  .stat-card { padding: 22px 14px; }
  .stat-value { font-size: 1.5rem; }
  .stat-label { font-size: 0.8rem; }

  .markets { padding: 28px 16px; }
  .markets h2 { font-size: 1.4rem; margin-bottom: 16px; }

  /* Compact table on mobile */
  .market-table th,
  .market-table td { padding: 12px 10px; font-size: 0.82rem; }
  .market-table th:nth-child(3),
  .market-table td:nth-child(3) { display: none; }
  .asset-tag { display: none; }

  .chart-card { padding: 16px; }

  .ticker-track { gap: 24px; }
  .ticker-track span { font-size: 0.75rem; }

  .auth-card { padding: 32px 20px; }
  .auth-logo { font-size: 1.5rem; }

  .footer { padding: 20px 16px; }
  .footer .logo { font-size: 1.2rem; }
}

/* BALANCE BOX */
.dash-nav-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}
.balance-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
}
.balance-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.balance-amount {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}
.balance-plus {
  background: rgba(0,230,118,0.12);
  border: 1px solid rgba(0,230,118,0.3);
  border-radius: 6px;
  color: var(--primary);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.balance-plus:hover {
  background: rgba(0,230,118,0.25);
}

/* DASHBOARD USER INFO in drawer */
.dash-user-info {
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

/* SIDE DRAWER */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: block; }

.side-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.side-drawer.open { right: 0; }

.drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #00a040);
  color: #000;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drawer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.drawer-phone {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.drawer-close {
  margin-left: auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}
.drawer-close:hover { color: #fff; border-color: var(--primary); }

.drawer-balance {
  margin: 16px 20px;
  background: linear-gradient(135deg, rgba(0,230,118,0.1), rgba(0,180,80,0.05));
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-balance-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.drawer-balance-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  gap: 2px;
  flex: 1;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.drawer-link:hover, .drawer-link.active {
  background: rgba(0,230,118,0.08);
  color: var(--primary);
}
.drawer-link svg { flex-shrink: 0; }

.drawer-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 20px 28px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,23,68,0.07);
  border: 1px solid rgba(255,23,68,0.2);
  color: #ff5252;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}
.drawer-logout:hover { background: rgba(255,23,68,0.14); }

/* DRAWER LANGUAGE */
.drawer-lang {
  margin: 4px 20px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.drawer-lang-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--muted); font-weight: 600;
  margin-bottom: 10px;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.lang-btn {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 7px 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,230,118,0.06); }
.lang-btn.active { background: rgba(0,230,118,0.12); border-color: var(--primary); color: var(--primary); }
.goog-logo-link, .goog-te-gadget span { display: none !important; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* ── INNER PAGES (profile, password, pin, kyc) ─────────────── */
.inner-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}
.inner-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.close-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  text-decoration: none;
  flex-shrink: 0;
  margin-left: auto;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.close-btn:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.06); }
.inner-page-title { font-size: 1.3rem; font-weight: 800; color: #fff; }
.inner-page-sub   { font-size: 0.83rem; color: var(--muted); margin-top: 3px; }

/* Profile Hero Card */
.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}
.profile-hero-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #00a040);
  color: #000;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-hero-info { flex: 1; }
.profile-hero-name  { font-size: 1.1rem; font-weight: 700; color: #fff; }
.profile-hero-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.83rem; color: var(--muted); margin-top: 4px;
}

/* Settings Grid */
.settings-grid { display: flex; flex-direction: column; gap: 12px; }
.settings-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
.settings-card:hover {
  border-color: rgba(0,230,118,0.3);
  transform: translateX(4px);
}
.settings-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.settings-card-body { flex: 1; }
.settings-card-title {
  font-size: 0.95rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.settings-card-desc { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }
.settings-card-arrow { color: var(--muted); flex-shrink: 0; }
.tag-warning {
  font-size: 0.68rem; font-weight: 700;
  background: rgba(255,193,7,0.15); color: #ffc107;
  border: 1px solid rgba(255,193,7,0.3);
  border-radius: 20px; padding: 2px 8px;
}

/* Form Card (password, pin pages) */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.form-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap svg {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}
.input-wrap input {
  padding-left: 42px !important;
}
.pin-inputs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pin-info-box {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,193,7,0.06);
  border: 1px solid rgba(255,193,7,0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.84rem;
  color: #ffc107;
  margin-bottom: 24px;
  line-height: 1.5;
}
.pin-info-box svg { flex-shrink: 0; margin-top: 2px; }

/* KYC card inside inner-page */
.kyc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

@media (max-width: 600px) {
  .inner-page { padding: 20px 16px 48px; }
  .profile-hero-card { padding: 16px; }
  .form-card { padding: 20px 16px; }
  .kyc-card  { padding: 20px 16px; }
  .pin-inputs-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* MANAGE PROFILE BUTTON */
.manage-profile-btn {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--primary);
  border: 1px solid rgba(0,230,118,0.3);
  border-radius: 6px;
  padding: 3px 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.manage-profile-btn:hover { background: rgba(0,230,118,0.1); }

/* KYC PAGE */
.kyc-page { display: none; } /* replaced by inner-page */

.kyc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.kyc-none     { background: rgba(107,127,163,0.15); color: #6b7fa3; border: 1px solid rgba(107,127,163,0.2); }
.kyc-pending  { background: rgba(255,193,7,0.15);   color: #ffc107; border: 1px solid rgba(255,193,7,0.2); }
.kyc-approved { background: rgba(0,230,118,0.15);   color: #00e676; border: 1px solid rgba(0,230,118,0.2); }
.kyc-rejected { background: rgba(255,23,68,0.15);   color: #ff5252; border: 1px solid rgba(255,23,68,0.2); }

.kyc-steps {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  gap: 0;
}
.kyc-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.kyc-step.active { color: var(--primary); }
.kyc-step span {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.kyc-step.active span { background: var(--primary); color: #000; }
.kyc-step-line { flex: 1; height: 1px; background: var(--border); margin: 0 10px; }

.kyc-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-select {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  cursor: pointer;
}
.form-select:focus { border-color: var(--primary); }
.form-select option { background: var(--card); }

.file-upload-box {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.file-upload-box:hover { border-color: var(--primary); background: rgba(0,230,118,0.03); }
.file-upload-box span { font-size: 0.88rem; color: var(--text); }
.file-upload-box small { font-size: 0.75rem; }
.selfie-box { padding: 32px 16px; }

.kyc-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 16px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.kyc-agree input { margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }

.kyc-status-box {
  text-align: center;
  padding: 48px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.kyc-status-pending  { background: rgba(255,193,7,0.06); border: 1px solid rgba(255,193,7,0.2); color: #ffc107; }
.kyc-status-approved { background: rgba(0,230,118,0.06); border: 1px solid rgba(0,230,118,0.2); color: #00e676; }
.kyc-status-title { font-size: 1.3rem; font-weight: 800; }
.kyc-status-msg { font-size: 0.9rem; color: var(--muted); max-width: 360px; line-height: 1.6; }
.kyc-status-date { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

@media (max-width: 768px) {
  .profile-page { flex-direction: column; }
  .profile-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 24px 16px; }
  .profile-content { padding: 24px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .kyc-card { padding: 24px 16px; }
  .kyc-steps { display: none; }
}

/* ── DASHBOARD HOME ─────────────────────────────────────────── */
.dash-home { padding: 0 0 16px; }

.dash-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
}
.dash-greeting-sub  { font-size: 0.82rem; color: var(--muted); }
.dash-greeting-name { font-size: 1.2rem; font-weight: 800; color: #fff; margin-top: 2px; }
.dash-greeting-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #00a040);
  color: #000;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Balance Card */
.dash-balance-card {
  margin: 0 16px 20px;
  background: linear-gradient(135deg, #0d2e18, #0a3d1f);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 20px;
  padding: 24px 22px 20px;
}
.dash-balance-label  { font-size: 0.78rem; color: rgba(0,230,118,0.6); text-transform: uppercase; letter-spacing: 0.5px; }
.dash-balance-amount { font-size: 2.4rem; font-weight: 800; color: #fff; margin: 6px 0 4px; letter-spacing: -1px; }
.dash-balance-change { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; font-weight: 600; margin-bottom: 20px; }

.dash-balance-actions { display: flex; gap: 10px; }
.dash-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(0,230,118,0.15);
  border-radius: 12px;
  padding: 12px 6px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.dash-action-btn:hover { background: rgba(0,230,118,0.1); border-color: rgba(0,230,118,0.3); color: var(--primary); }

/* Carousel */
.dash-carousel-wrap { margin: 0 16px 24px; }
.dash-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 0;
  border-radius: 16px;
}
.dash-carousel::-webkit-scrollbar { display: none; }
.dash-slide {
  min-width: 100%;
  scroll-snap-align: start;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
}
.dash-slide-content { flex: 1; z-index: 1; }
.dash-slide-tag {
  display: inline-block;
  background: rgba(0,230,118,0.12);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.dash-slide-title { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.dash-slide-desc  { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.5; margin-bottom: 14px; max-width: 200px; }
.dash-slide-btn {
  display: inline-block;
  background: rgba(0,230,118,0.12);
  color: var(--primary);
  border: 1px solid rgba(0,230,118,0.3);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.dash-slide-btn:hover { background: rgba(0,230,118,0.22); }
.dash-slide-graphic {
  opacity: 0.6;
  flex-shrink: 0;
}

.dash-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.dot.active { background: var(--primary); width: 18px; border-radius: 3px; }

.dash-cta-row {
  display: flex;
  gap: 12px;
  padding: 4px 16px 20px;
}
.dash-cta-btn {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* Section title */
.dash-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 20px 12px;
}

/* Quick Stats */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 16px 24px;
}
.dash-stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}
.dash-stat-icon { margin-bottom: 8px; }
.dash-stat-val  { font-size: 0.88rem; font-weight: 800; color: #fff; }
.dash-stat-lbl  { font-size: 0.65rem; color: var(--muted); margin-top: 3px; }

/* Features */
.dash-features { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.dash-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.2s;
}
.dash-feature-card:hover { border-color: rgba(0,230,118,0.2); }
.dash-feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-feature-title { font-size: 0.92rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.dash-feature-desc  { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 400px) {
  .dash-stats-row { grid-template-columns: repeat(2, 1fr); }
  .dash-balance-amount { font-size: 2rem; }
}

/* FOOTER NAV BAR */
.footer-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(10,15,12,0.97);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 150;
  backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom);
}
.footer-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  flex: 1;
  transition: color 0.2s;
}
.footer-nav-item:hover,
.footer-nav-item.active { color: var(--primary); }
.footer-nav-item.active svg { stroke: var(--primary); }

/* Trade center button */
.footer-nav-trade { position: relative; top: -10px; }
.footer-nav-trade-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #00a040);
  display: flex; align-items: center; justify-content: center;
  color: #000;
  box-shadow: 0 4px 20px rgba(0,230,118,0.4);
  transition: box-shadow 0.2s, transform 0.2s;
}
.footer-nav-trade:hover .footer-nav-trade-btn {
  box-shadow: 0 6px 28px rgba(0,230,118,0.6);
  transform: translateY(-2px);
}
.footer-nav-trade span { color: var(--muted); font-size: 0.7rem; }

/* Push page content above footer nav */
body { padding-bottom: 72px; }

/* ── MARKET PAGE ─────────────────────────────────────────────── */
.market-page { padding: 0 0 16px; }

.market-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 16px 12px;
}
.market-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.market-tab.active        { background: var(--primary); color: #000; border-color: var(--primary); }
.market-tab:not(.active):hover { border-color: var(--primary); color: var(--primary); }

.market-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px;
  color: var(--muted);
  font-size: 0.88rem;
}
.market-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.coin-list { display: flex; flex-direction: column; padding: 0 12px; gap: 8px; }

.coin-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.coin-card:hover { border-color: rgba(0,230,118,0.25); }

.coin-rank {
  font-size: 0.72rem;
  color: var(--muted);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.coin-img {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.coin-info { flex: 1; min-width: 0; }
.coin-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coin-sym {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
.coin-mcap { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.coin-spark-wrap { flex-shrink: 0; }
.coin-spark { display: block; }

.coin-right { text-align: right; flex-shrink: 0; }
.coin-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.coin-change {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 3px;
}

/* ── TRADE PAGE ──────────────────────────────────────────────── */
.trade-page { display: block; }

/* Top bar: dropdown + price */
.trade-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; gap: 10px;
}
.trade-coin-dropdown-wrap {
  position: relative; display: flex; align-items: center;
}
.trade-coin-dropdown {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: #0d1a0f !important;
  background-color: #0d1a0f !important;
  border: 1.5px solid #1e3a22 !important;
  border-radius: 10px;
  color: #e0ffe8 !important;
  -webkit-text-fill-color: #e0ffe8 !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 32px 8px 12px;
  cursor: pointer;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.trade-coin-dropdown:focus {
  border-color: #00e676 !important;
  box-shadow: 0 0 0 3px rgba(0,230,118,0.12) !important;
}
.trade-coin-dropdown option {
  background: #0d1a0f !important;
  background-color: #0d1a0f !important;
  color: #e0ffe8 !important;
}
.trade-dropdown-arrow {
  position: absolute; right: 10px; pointer-events: none; color: var(--muted);
}
.trade-price-right { display: flex; align-items: center; gap: 8px; }
.trade-live-price  { font-size: 1.2rem; font-weight: 800; color: #fff; }
.trade-change-badge {
  font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 8px;
}
.trade-change-badge.up   { background: rgba(0,230,118,0.12); color: #00e676; }
.trade-change-badge.down { background: rgba(255,23,68,0.12);  color: #ff1744; }

.trade-chart-wrap {
  flex: 1;
  position: relative;
  min-height: 200px;
  overflow: hidden;
}
.trade-chart-wrap canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.trade-countdown-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,12,10,0.5); backdrop-filter: blur(2px);
}
.trade-countdown-ring { position: relative; display: flex; align-items: center; justify-content: center; }
.trade-countdown-num  { position: absolute; font-size: 0.9rem; font-weight: 800; color: #00e676; }

.trade-controls {
  flex-shrink: 0; padding: 10px 14px 8px;
  border-top: 1px solid var(--border); background: var(--bg);
}
.trade-row   { display: flex; gap: 10px; margin-bottom: 8px; align-items: flex-end; }
.trade-field { flex: 1; }
.trade-field label {
  font-size: 0.72rem; color: var(--muted); display: block;
  margin-bottom: 5px; font-weight: 600;
}
.trade-select, .trade-amount-input {
  width: 100%;
  background: #0d1a0f !important;
  background-color: #0d1a0f !important;
  border: 1.5px solid #1e3a22 !important;
  border-radius: 8px;
  padding: 10px 12px;
  color: #e0ffe8 !important;
  -webkit-text-fill-color: #e0ffe8 !important;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box;
}
.trade-select:focus, .trade-amount-input:focus {
  border-color: #00e676 !important;
  box-shadow: 0 0 0 3px rgba(0,230,118,0.12) !important;
}
.trade-select option {
  background: #0d1a0f !important;
  background-color: #0d1a0f !important;
  color: #e0ffe8 !important;
}
.trade-amount-input::placeholder { color: #2e5235 !important; }
.trade-amount-input::-webkit-inner-spin-button { opacity: 0.4; }

.trade-info-row {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--muted); margin-bottom: 8px; padding: 0 2px;
}
.trade-info-row strong { color: #fff; }

.trade-btn-row { display: flex; gap: 10px; }
.trade-buy-btn, .trade-sell-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px; border-radius: 8px; font-size: 0.92rem; font-weight: 800;
  cursor: pointer; border: none; transition: transform 0.15s, box-shadow 0.2s;
}
.trade-buy-btn {
  background: linear-gradient(135deg, #00e676, #00a040);
  color: #000; box-shadow: 0 3px 12px rgba(0,230,118,0.3);
}
.trade-buy-btn:hover  { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(0,230,118,0.4); }
.trade-sell-btn {
  background: linear-gradient(135deg, #ff1744, #b71c1c);
  color: #fff; box-shadow: 0 3px 12px rgba(255,23,68,0.3);
}
.trade-sell-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(255,23,68,0.4); }

/* ── WALLET PAGES ────────────────────────────────────────────── */
.wallet-page { padding: 0 0 16px; }

.wallet-balance-card {
  margin: 16px 16px 20px;
  background: linear-gradient(135deg, #071a0f, #0a2e18);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
}
.wallet-balance-label { font-size: 0.78rem; color: rgba(0,230,118,0.6); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.wallet-balance-amount { font-size: 2.6rem; font-weight: 800; color: #fff; letter-spacing: -1px; }
.wallet-balance-sub { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }

.wallet-actions {
  display: flex;
  gap: 12px;
  padding: 0 16px 20px;
}
.wallet-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.2s, transform 0.15s;
}
.wallet-action-btn:hover { border-color: rgba(0,230,118,0.3); transform: translateY(-2px); }
.wallet-action-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

.wallet-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  padding: 0 16px 20px;
}
.wallet-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.wallet-stat-label { font-size: 0.68rem; color: var(--muted); margin-bottom: 6px; }
.wallet-stat-val   { font-size: 0.95rem; font-weight: 800; }

.wallet-section-title {
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 0 16px 10px;
}
.wallet-empty {
  text-align: center; padding: 48px 24px;
  color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.wallet-view-all {
  display: block; text-align: center; margin: 16px;
  color: var(--primary); font-size: 0.85rem; font-weight: 600; text-decoration: none;
}

/* Transaction Items */
.txn-list { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.txn-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px;
  transition: border-color 0.2s;
}
.txn-item:hover { border-color: rgba(0,230,118,0.2); }
.txn-item-full { border-radius: 12px; }
.txn-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.txn-icon-dep { background: rgba(0,230,118,0.1); color: #00e676; }
.txn-icon-wit { background: rgba(0,212,255,0.1); color: #00d4ff; }
.txn-info { flex: 1; min-width: 0; }
.txn-type  { font-size: 0.88rem; font-weight: 700; color: #fff; }
.txn-method { font-size: 0.72rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.txn-date  { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.txn-ref   { font-size: 0.68rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-right { text-align: right; flex-shrink: 0; }
.txn-amount { font-size: 0.92rem; font-weight: 800; }
.txn-status { font-size: 0.7rem; font-weight: 700; margin-top: 3px; padding: 2px 8px; border-radius: 20px; display: inline-block; }
.txn-pending  { background: rgba(255,193,7,0.12); color: #ffc107; }
.txn-approved { background: rgba(0,230,118,0.12); color: #00e676; }
.txn-rejected { background: rgba(255,82,82,0.12); color: #ff5252; }

/* History Filters */
.hist-filters {
  display: flex; gap: 8px; padding: 4px 16px 16px;
  overflow-x: auto; scrollbar-width: none;
}
.hist-filters::-webkit-scrollbar { display: none; }
.hist-filter-chip {
  white-space: nowrap; padding: 6px 14px;
  border-radius: 20px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted);
  font-size: 0.78rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s; flex-shrink: 0;
}
.hist-filter-chip.active { background: var(--primary); color: #000; border-color: var(--primary); }
.hist-filter-chip:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* Deposit Page */
.dep-methods {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 10px; padding: 0 0 20px;
}
.dep-method-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px 8px; cursor: pointer;
  transition: border-color 0.2s; text-align: center;
}
.dep-method-card.active { border-color: var(--primary); background: rgba(0,230,118,0.05); }
.dep-method-card:hover  { border-color: var(--primary); }
.dep-method-name { font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.dep-method-card.active .dep-method-name { color: var(--primary); }

.dep-address-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.dep-address-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; }
.dep-address-value {
  font-size: 0.78rem; color: var(--primary); font-family: monospace;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dep-copy-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,230,118,0.1); border: 1px solid rgba(0,230,118,0.3);
  border-radius: 8px; color: var(--primary); padding: 6px 12px;
  font-size: 0.75rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background 0.2s; flex-shrink: 0;
}
.dep-copy-btn:hover { background: rgba(0,230,118,0.2); }

/* UPI Options */
.upi-option {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 14px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upi-option:hover { border-color: #6c47ff; }
.upi-option-active { border-color: #6c47ff !important; background: rgba(108,71,255,0.08) !important; }
.upi-option-left { display: flex; align-items: center; gap: 10px; }
.upi-option-icon { flex-shrink: 0; }
.upi-option-name { font-size: 0.85rem; font-weight: 700; color: #fff; }
.upi-option-id   { font-size: 0.75rem; color: #6c47ff; font-family: monospace; margin-top: 2px; }
.dep-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: #ffc107; margin-bottom: 4px;
}

/* Withdraw Page */
.wit-balance-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 16px;
}
.wit-balance-label { font-size: 0.72rem; color: var(--muted); }
.wit-balance-val   { font-size: 1.3rem; font-weight: 800; color: #fff; margin-top: 4px; }
.wit-pin-warn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,193,7,0.1); border: 1px solid rgba(255,193,7,0.3);
  border-radius: 8px; color: #ffc107; padding: 8px 12px;
  font-size: 0.78rem; font-weight: 600; text-decoration: none;
}
.wit-fee-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--muted); margin-top: 8px;
}

/* ── AI PAGE ─────────────────────────────────────────────────── */
.ai-page { padding: 0 0 16px; }

.ai-hero {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 20px 16px;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,230,118,0.06) 0%, transparent 70%);
}
.ai-orb {
  position: relative; width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.6s ease;
}
.ai-orb-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,230,118,0.3);
  animation: orbSpin 6s linear infinite;
}
.r1 { width:80px; height:80px; animation-duration:6s; }
.r2 { width:60px; height:60px; animation-duration:4s; animation-direction:reverse; border-color:rgba(0,212,255,0.25); }
.r3 { width:40px; height:40px; animation-duration:3s; border-color:rgba(0,230,118,0.15); }
@keyframes orbSpin { to { transform: rotate(360deg); } }
.ai-orb-core {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,230,118,0.15), rgba(0,212,255,0.1));
  border: 1px solid rgba(0,230,118,0.4);
  display: flex; align-items: center; justify-content: center;
  color: #00e676; z-index: 1;
  box-shadow: 0 0 20px rgba(0,230,118,0.2);
}
.ai-hero-title { font-size: 1.5rem; font-weight: 800; color: #fff; }
.ai-hero-title span { color: #00e676; }
.ai-hero-sub { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.ai-section-label {
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 12px 16px 8px;
}

/* Signal Feed */
.ai-signal-feed {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 12px; max-height: 280px; overflow-y: auto;
  scrollbar-width: none;
}
.ai-signal-feed::-webkit-scrollbar { display: none; }
.ai-signal-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 20px; color: var(--muted); font-size: 0.85rem;
}
.ai-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: #00e676;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.7); }
}
.ai-signal-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.ai-signal-left { flex: 1; min-width: 0; }
.ai-signal-coin { font-size: 0.9rem; font-weight: 800; }
.ai-signal-reason { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.ai-signal-time { font-size: 0.65rem; color: var(--muted); margin-top: 2px; }
.ai-signal-mid { width: 90px; flex-shrink: 0; }
.ai-signal-strength-bar {
  height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 4px;
}
.ai-signal-strength-fill { height: 100%; border-radius: 2px; transition: width 0.5s; }
.ai-signal-strength-val { font-size: 0.65rem; color: var(--muted); }
.ai-signal-right { text-align: right; flex-shrink: 0; }
.ai-signal-dir { font-size: 0.82rem; font-weight: 800; margin-bottom: 6px; }
.ai-signal-trade-btn {
  font-size: 0.72rem; font-weight: 700; padding: 4px 10px;
  background: rgba(0,230,118,0.1); border: 1px solid rgba(0,230,118,0.3);
  border-radius: 6px; color: #00e676; text-decoration: none;
  transition: background 0.2s;
}
.ai-signal-trade-btn:hover { background: rgba(0,230,118,0.2); }

/* Stats */
.ai-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 8px; padding: 4px 12px 4px;
}
.ai-stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 8px; text-align: center;
}
.ai-stat-val { font-size: 1rem; font-weight: 800; color: #00e676; }
.ai-stat-lbl { font-size: 0.62rem; color: var(--muted); margin-top: 3px; }

/* Auto Panel */
.ai-auto-panel {
  margin: 0 12px 4px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
}
.ai-auto-header { display: flex; align-items: center; justify-content: space-between; }
.ai-auto-title { font-size: 0.95rem; font-weight: 700; color: #fff; }
.ai-auto-sub { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.ai-toggle { position: relative; width: 48px; height: 26px; flex-shrink: 0; }
.ai-toggle input { opacity: 0; width: 0; height: 0; }
.ai-toggle-slider {
  position: absolute; inset: 0; background: var(--border);
  border-radius: 26px; cursor: pointer; transition: 0.3s;
}
.ai-toggle-slider:before {
  content:''; position:absolute; width:20px; height:20px;
  left:3px; top:3px; background:#fff; border-radius:50%; transition:0.3s;
}
.ai-toggle input:checked + .ai-toggle-slider { background: #00e676; }
.ai-toggle input:checked + .ai-toggle-slider:before { transform: translateX(22px); background:#000; }
.ai-auto-settings { margin-top: 14px; }
.ai-setting-row { display: flex; gap: 10px; margin-bottom: 10px; }
.ai-setting-field { flex: 1; }
.ai-setting-field label { font-size: 0.72rem; color: var(--muted); display: block; margin-bottom: 5px; font-weight: 600; }
.ai-auto-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--muted);
  background: rgba(0,230,118,0.05); border: 1px solid rgba(0,230,118,0.15);
  border-radius: 8px; padding: 8px 12px;
}

/* Analysis Grid */
.ai-analysis-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 8px; padding: 0 12px 4px;
}
.ai-analysis-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
}
.ai-analysis-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ai-analysis-sym { font-size: 0.9rem; font-weight: 800; }
.ai-analysis-price { font-size: 0.82rem; color: #fff; font-weight: 700; margin-bottom: 8px; }
.ai-analysis-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.ai-analysis-fill { height: 100%; border-radius: 2px; transition: width 0.8s ease; }
.ai-analysis-bottom { display: flex; justify-content: space-between; align-items: center; }

/* Chat */
.ai-chat-box {
  margin: 0 12px 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.ai-chat-messages {
  height: 220px; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.ai-chat-msg { display: flex; gap: 8px; align-items: flex-end; }
.ai-chat-msg.user { flex-direction: row-reverse; }
.ai-chat-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg,#00e676,#00a040);
  color: #000; font-size: 0.65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ai-chat-bubble {
  max-width: 75%; padding: 10px 14px; border-radius: 14px;
  font-size: 0.82rem; line-height: 1.5;
  background: var(--card2); color: var(--text);
  border: 1px solid var(--border);
}
.ai-chat-msg.user .ai-chat-bubble {
  background: rgba(0,230,118,0.1); border-color: rgba(0,230,118,0.2); color: #e0ffe8;
}
.ai-typing span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted); margin: 0 2px;
  animation: typingDot 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px)} }
.ai-chat-input-row {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.ai-chat-input-row input {
  flex: 1; background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 10px 14px; color: var(--text);
  font-size: 0.85rem; outline: none;
  transition: border-color 0.2s;
}
.ai-chat-input-row input:focus { border-color: var(--primary); }
.ai-chat-send {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg,#00e676,#00a040);
  border: none; color: #000; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.15s;
}
.ai-chat-send:hover { transform: scale(1.05); }

/* TRADE HISTORY PAGE */
.th-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  padding: 12px 12px 4px;
}
.th-stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.th-stat-val { font-size: 1rem; font-weight: 800; color: #fff; }
.th-stat-lbl { font-size: 0.65rem; color: var(--muted); margin-top: 3px; }

.th-trade-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  transition: border-color 0.2s;
}
.th-trade-card:hover { border-color: rgba(0,230,118,0.2); }
.th-dir-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.th-trade-info { flex: 1; min-width: 0; }
.th-trade-top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px; flex-wrap: wrap;
}
.th-coin   { font-size: 0.88rem; font-weight: 700; color: #fff; }
.th-dir    { font-size: 0.72rem; font-weight: 700; }
.th-timer  { font-size: 0.7rem; color: var(--muted); }
.th-trade-prices { font-size: 0.75rem; color: var(--muted); margin-bottom: 3px; }
.th-trade-prices strong { color: #fff; }
.th-trade-date { font-size: 0.68rem; color: var(--muted); }
.th-trade-right { text-align: right; flex-shrink: 0; }
.th-amount  { font-size: 0.88rem; font-weight: 700; color: #fff; }
.th-profit  { font-size: 0.82rem; font-weight: 800; margin-top: 2px; }
.th-status  {
  font-size: 0.68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  display: inline-block; margin-top: 4px;
}

/* REVIEWS */
.dash-reviews {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 16px 4px;
}
.dash-review-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px;
  transition: border-color 0.2s;
}
.dash-review-card:hover { border-color: rgba(255,193,7,0.2); }
.dash-review-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.dash-review-name  { font-size: 0.85rem; font-weight: 700; color: #fff; }
.dash-review-stars { display: flex; align-items: center; gap: 1px; margin-top: 3px; }
.dash-review-text  { font-size: 0.8rem; color: var(--muted); line-height: 1.55; font-style: italic; }

/* RANKING PAGE */
.rank-page { padding: 0 0 16px; }

.rank-hero {
  background: linear-gradient(135deg, #0a1f0a, #0d2e0d);
  border-bottom: 1px solid var(--border);
  padding: 20px 16px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.rank-hero-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.3rem; font-weight: 800; color: #fff;
}
.rank-hero-sub { font-size: 0.78rem; color: var(--muted); }
.rank-live-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,230,118,0.1); border: 1px solid rgba(0,230,118,0.3);
  border-radius: 20px; padding: 3px 12px;
  font-size: 0.72rem; font-weight: 800; color: #00e676;
}

.rank-my-card {
  margin: 12px 12px 4px;
  background: linear-gradient(135deg, rgba(0,230,118,0.08), rgba(0,180,80,0.04));
  border: 1.5px solid rgba(0,230,118,0.3);
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.rank-my-left { display: flex; align-items: center; gap: 10px; }
.rank-my-pos  { font-size: 1.2rem; font-weight: 800; color: #ffc107; min-width: 36px; }
.rank-my-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg,#00e676,#00a040);
  color: #000; font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.rank-my-name  { font-size: 0.88rem; font-weight: 700; color: #fff; }
.rank-my-stats { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.rank-my-profit { font-size: 1rem; font-weight: 800; color: #00e676; }

.rank-tabs {
  display: flex; gap: 6px; padding: 10px 12px 6px;
  overflow-x: auto; scrollbar-width: none;
}
.rank-tabs::-webkit-scrollbar { display: none; }
.rank-tab {
  padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); font-size: 0.78rem;
  font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.rank-tab.active { background: var(--primary); color: #000; border-color: var(--primary); }

.rank-list { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; }

.rank-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
  transition: border-color 0.2s;
}
.rank-card.rank-top { border-color: rgba(255,215,0,0.2); background: rgba(255,215,0,0.03); }
.rank-card:hover { border-color: rgba(0,230,118,0.2); }

.rank-num {
  font-size: 0.88rem; font-weight: 800;
  min-width: 32px; text-align: center; flex-shrink: 0;
}
.rank-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 0.85rem; font-weight: 700; color: #fff; }
.rank-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.68rem; color: var(--muted); margin-top: 3px; flex-wrap: wrap;
}
.rank-coin {
  background: rgba(0,230,118,0.1); color: #00e676;
  border-radius: 4px; padding: 1px 6px; font-weight: 700; font-size: 0.65rem;
}
.rank-profit-col { text-align: right; flex-shrink: 0; }
.rank-profit { font-size: 0.88rem; font-weight: 800; color: #00e676; transition: color 0.3s; }
.rank-change { font-size: 0.7rem; font-weight: 700; margin-top: 2px; }

/* INVESTMENT PLANS */
.inv-plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.inv-plan-img {
  width: 100%; height: 130px;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.inv-plan-img-default {
  display: flex; align-items: center; justify-content: center;
}
.inv-plan-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 14px 18px 0; gap: 10px;
}
.inv-plan-name { font-size: 1rem; font-weight: 800; }
.inv-plan-desc { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.inv-plan-badge {
  font-size: 0.82rem; font-weight: 800;
  padding: 5px 12px; border-radius: 20px; border: 1px solid;
  white-space: nowrap; flex-shrink: 0;
}
.inv-plan-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; padding: 12px 18px 0;
}
.inv-plan-stat { text-align: center; }
.inv-plan-stat-val { font-size: 0.85rem; font-weight: 700; color: #fff; }
.inv-plan-stat-lbl { font-size: 0.65rem; color: var(--muted); margin-top: 2px; }
/* form inside card */
.inv-plan-card form { padding: 12px 18px 16px; }

/* SUPPORT PAGE */
.support-contact-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.support-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  transition: border-color 0.2s;
}
.support-contact-card:hover { border-color: rgba(0,230,118,0.25); }
.support-contact-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.support-contact-title { font-size: 0.85rem; font-weight: 700; color: #fff; }
.support-contact-desc  { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.support-textarea {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.support-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,230,118,0.1);
}
.support-textarea::placeholder { color: #2a4a30; }

@media (max-width: 600px) {
  .support-contact-row { grid-template-columns: 1fr; }
}

/* ALERTS */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  font-weight: 500;
}
.alert-error {
  background: rgba(255,23,68,0.1);
  border: 1px solid rgba(255,23,68,0.3);
  color: #ff5252;
}
.alert-success {
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.3);
  color: #00e676;
}
.alert-success a { color: #00e676; font-weight: 700; }
