/* ================================================================
   Indogets — App Design System
   Premium fintech / crypto trading UI
   ================================================================ */

/* ── 1. Design Tokens ─────────────────────────────────────────── */
:root {
  --brand:          #E50914;
  --brand-dark:     #B8000B;
  --brand-deeper:   #8B0009;
  --brand-soft:     #FFF1F2;
  --brand-soft2:    #FFE4E6;
  --brand-alpha:    rgba(229,9,20,0.10);
  --brand-alpha2:   rgba(229,9,20,0.06);

  --text-main:      #101014;
  --text-sub:       #3D3D4E;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;
  --text-inverse:   #FFFFFF;

  --bg-main:        #FAFAFB;
  --bg-raised:      #F3F4F6;
  --card-bg:        rgba(255,255,255,0.97);
  --card-border:    rgba(229,231,235,0.8);
  --border-soft:    #E5E7EB;
  --border-med:     #D1D5DB;

  --success:        #059669;
  --success-soft:   #ECFDF5;
  --warning:        #D97706;
  --warning-soft:   #FFFBEB;
  --danger:         #DC2626;
  --danger-soft:    #FEF2F2;
  --info:           #2563EB;
  --info-soft:      #EFF6FF;

  --shadow-xs:      0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.07);
  --shadow-card:    0 4px 24px rgba(15,23,42,0.08);
  --shadow-card-lg: 0 8px 40px rgba(15,23,42,0.11);
  --shadow-red:     0 8px 28px rgba(229,9,20,0.22);
  --shadow-red-lg:  0 14px 40px rgba(229,9,20,0.30);

  --radius-xs:  8px;
  --radius-sm:  12px;
  --radius-md:  16px;
  --radius-lg:  20px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  --sidebar-w:    260px;
  --topbar-h:     64px;
  --nav-h:        72px;
  --nav-safe:     calc(var(--nav-h) + env(safe-area-inset-bottom));
  --page-px:      18px;
  --content-max:  430px;

  --font:         'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition:   all 0.2s cubic-bezier(.4,0,.2,1);
}

/* ── 2. Base Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── 3. App Layout Shell ──────────────────────────────────────── */
.app-wrapper {
  display: flex !important;
  min-height: 100vh !important;
  background: var(--bg-main) !important;
  max-width: 100% !important;   /* override indogets.css max-width:480px */
  margin: 0 !important;          /* override indogets.css margin:0 auto  */
  width: 100% !important;
}

/* Sidebar (desktop) */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: #0F172A;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 50;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.05);
}

/* Main content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

/* Top bar */
.top-bar {
  height: 58px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-xs);
}

/* Page content */
.page-content {
  flex: 1;
  padding: 28px 32px 48px;
  overflow-x: hidden;
}

/* Mobile app shell — full-width, no centering cap */
@media (max-width: 991px) {
  .app-wrapper {
    flex-direction: column;
    background: var(--bg-main);
    width: 100%;
  }
  .sidebar { display: none !important; }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .top-bar {
    height: 58px;
    min-height: 58px;
    padding: 0 16px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
  }
  .page-content {
    /* Full width — fill whatever phone screen size */
    padding: 16px var(--page-px) calc(var(--nav-safe) + 46px);
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}

@media (min-width: 992px) {
  .main-content { margin-left: var(--sidebar-w); }
  .bottom-nav { display: none !important; }
}

/* ── 4. Sidebar ───────────────────────────────────────────────── */
.sidebar {
  background: #0D1117 !important;
}

.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar .brand-icon {
  width: 36px; height: 36px;
  background: var(--brand);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(229,9,20,0.45);
  flex-shrink: 0;
}

.sidebar .brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #FFFFFF;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav .nav-section-title {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,0.28);
  padding: 16px 12px 5px;
  margin-top: 4px;
}

.sidebar-nav .nav-item { display: block; }

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 10px;
  color: rgba(255,255,255,0.48);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: -0.1px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.15s;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}

.sidebar-nav .nav-link.active {
  background: rgba(229,9,20,0.16);
  color: #FFFFFF;
  font-weight: 600;
}

.sidebar-nav .nav-link.active i {
  color: var(--brand);
}

.sidebar-footer {
  padding: 14px 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Brand logo — clean horizontal wordmark, no square container ─ */
.brand-logo {
  display: flex;
  align-items: center;
  height: 32px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Sidebar full logo — invert to white on dark background */
.sidebar-logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ── Dashboard chart line decoration (fixed, top-right) ─────────── */
.dash-chart-deco {
  position: fixed;
  top: 58px;
  right: -18px;
  width: 185px;
  height: 210px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.30;
  background-image: url("data:image/svg+xml,%3Csvg width='185' height='210' viewBox='0 0 185 210' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 165 L40 115 L68 130 L96 72 L124 88 L158 32 L182 12' stroke='%23ef2334' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M18 195 L50 138 L78 155 L108 90 L136 108 L165 56 L182 38' stroke='%23ef2334' stroke-opacity='0.35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ── 5. Top Bar ───────────────────────────────────────────────── */
.top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.top-bar .brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.top-bar .brand-icon-sm {
  width: 32px; height: 32px;
  background: var(--brand);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(229,9,20,0.3);
}

.top-bar .brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.top-bar .user-info {
  text-align: right;
  line-height: 1.15;
}

.top-bar .user-info .welcome {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
}

.top-bar .user-info .username {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-bar .online-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.2);
}

.top-bar .avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  background: var(--bg-raised);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub);
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.top-bar .avatar-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ── 6. Bottom Navigation ─────────────────────────────────────── */
.bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;     /* full-width — no centering offset */
  width: 100% !important;
  max-width: 100% !important;
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-soft) !important;
  border-radius: 20px 20px 0 0 !important;
  padding: 0 8px calc(env(safe-area-inset-bottom) + 2px) !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.09) !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-around !important;
  z-index: 200 !important;
  height: var(--nav-h) !important;
}

.bottom-nav .nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 12px 4px 4px !important;
  color: var(--text-muted) !important;
  font-size: 9.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  flex: 1 !important;
  min-width: 0 !important;
  transition: color 0.15s !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
}

.bottom-nav .nav-item i {
  font-size: 20px !important;
  line-height: 1 !important;
  transition: transform 0.15s !important;
  display: block !important;
}

.bottom-nav .nav-item span {
  line-height: 1 !important;
  white-space: nowrap !important;
  font-size: 9.5px !important;
  display: block !important;
}

.bottom-nav .nav-item.active {
  color: var(--brand) !important;
}

.bottom-nav .nav-item.active i {
  transform: translateY(-1px) !important;
}

/* Deposit FAB wrapper — only the wrapper lifts, not the fab itself */
.bottom-nav .deposit-btn-wrap {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-top: 0 !important;
  margin-top: -20px !important; /* lift the FAB above the nav bar */
  position: relative !important;
  gap: 3px !important;
}

.bottom-nav .deposit-fab {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark)) !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 6px 24px rgba(229,9,20,0.35) !important;
  transition: var(--transition) !important;
  border: 3px solid #FFFFFF !important;
  margin-top: 0 !important; /* cancel indogets.css margin-top: -22px on the fab */
  flex-shrink: 0 !important;
}

.bottom-nav .deposit-fab:hover {
  transform: scale(1.06) !important;
  box-shadow: 0 10px 32px rgba(229,9,20,0.45) !important;
}

.bottom-nav .deposit-fab i {
  font-size: 22px !important;
  line-height: 1 !important;
  color: #fff !important;
}

.bottom-nav .deposit-fab span {
  font-size: 9px !important;
  font-weight: 700 !important;
  color: var(--brand) !important;
  line-height: 1 !important;
  margin-top: 2px !important;
}

/* ── 7. Page Content & Headers ────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 0;
}

.back-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-main);
  font-size: 16px;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.back-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.ph-text { flex: 1; min-width: 0; }

.ph-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
  line-height: 1.15;
}

.ph-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.min-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title a {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
}

/* ── 8. Cards ─────────────────────────────────────────────────── */
.app-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 14px;
}

.app-card-sm {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.form-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  margin-bottom: 14px;
}

/* Balance / hero card */
.balance-hero {
  background: linear-gradient(145deg, #100408 0%, #1E0508 45%, #0D0212 100%);
  border-radius: var(--radius-xl);
  padding: 20px 20px 16px;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 4px 16px rgba(229,9,20,0.18);
}

/* Decorative glow blobs */
.balance-hero::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,0.16), transparent 70%);
  pointer-events: none;
}

.balance-hero::after {
  content: "";
  position: absolute;
  bottom: -50px; left: -30px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,0.08), transparent 70%);
  pointer-events: none;
}

.bh-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}

.bh-label i { cursor: pointer; font-size: 13px; opacity: 0.8; }
.bh-label i:hover { opacity: 1; }

.bh-amount {
  font-size: 38px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 5px 0 2px;
  position: relative;
  z-index: 1;
}

.bh-usd {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  position: relative;
  z-index: 1;
}

.bh-pill {
  position: absolute;
  top: 18px; right: 18px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-full);
  padding: 4px 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 600;
  z-index: 1;
}

.bh-pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

.bh-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.09);
  position: relative;
  z-index: 1;
}

.bh-item-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3px;
  letter-spacing: 0.1px;
}

.bh-item-value {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.2px;
}

/* Stat card */
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.sc-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.sc-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.sc-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  margin-top: 4px;
}

.sc-pct.negative { color: var(--danger); }

/* ── 9. Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-red);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-red-lg);
  color: #FFFFFF;
}

.btn-primary:active { transform: translateY(0); }

.btn-primary-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-red);
  text-decoration: none;
  margin-top: 4px;
}

.btn-primary-full:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-red-lg);
  color: #FFFFFF;
}

.btn-secondary-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: #FFFFFF;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--brand);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  margin-top: 4px;
}

.btn-secondary-full:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.btn-danger-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  margin-top: 4px;
}

.btn-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-main);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-icon:hover { border-color: var(--brand); color: var(--brand); }

.max-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.max-btn:hover { background: var(--brand); color: #fff; }

/* ── 10. Forms ────────────────────────────────────────────────── */
.field-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 7px;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-main);
  background: var(--bg-main);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.10);
  background: #FFFFFF;
}

.form-control::placeholder { color: var(--text-light); }

.form-control[readonly] {
  background: var(--bg-raised);
  color: var(--text-muted);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Input with icon */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.input-wrap .form-control { padding-left: 42px; }

.input-wrap .input-suffix {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.input-wrap .form-control.has-suffix { padding-right: 90px; }

.eye-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 17px;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Auth input group (legacy compat) */
.auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-group .ai-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
}

.auth-input-group .form-control { padding-left: 42px; }

.auth-input-group .eye-toggle { position: absolute; right: 12px; }

/* Select with icon */
.select-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.select-with-icon .select-icon {
  position: absolute;
  left: 12px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
  z-index: 1;
}

.select-with-icon .form-select { padding-left: 46px; }

.form-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
}

.field-error, .text-danger {
  font-size: 11.5px;
  color: var(--danger);
  display: block;
  margin-top: 4px;
}

/* Quick amount chips */
.amount-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.amount-chip {
  padding: 9px 0;
  background: var(--bg-main);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.amount-chip:hover,
.amount-chip.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

/* Network info note */
.network-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--warning);
}

/* ── 11. Badges & Pills ───────────────────────────────────────── */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-status.approved,
.badge-status.confirmed { background: var(--success-soft); color: var(--success); }
.badge-status.pending   { background: var(--warning-soft); color: var(--warning); }
.badge-status.rejected,
.badge-status.failed    { background: var(--danger-soft);  color: var(--danger);  }

/* ── 12. Dashboard ────────────────────────────────────────────── */
.dashboard-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Profit overview card */
.profit-overview {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}

.po-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.po-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 7px;
}

.po-title i { color: var(--brand); font-size: 16px; }

.po-select {
  padding: 5px 28px 5px 10px;
  font-size: 12px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-full);
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--text-sub);
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.po-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.po-item {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 14px;
}

.po-item-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.po-item-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
  line-height: 1;
}

.po-item-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  margin-top: 4px;
}

/* Performance card */
.perf-overview {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}

.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.perf-item {
  padding: 0;
}

.pf-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pf-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.pf-bar {
  height: 4px;
  background: var(--bg-raised);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 7px;
}

.pf-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  border-radius: 99px;
}

/* Quick actions */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.action-btn {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-xs);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  text-align: center;
}

.action-btn:hover {
  border-color: var(--brand-soft2);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  color: var(--text-main);
}

.ab-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--brand);
}

.ab-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.ab-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Chart card */
.dashboard-chart-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  margin-bottom: 14px;
}

/* Tickers */
.market-title {
  margin-bottom: 10px;
}

.ticker-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 0;
}

.ticker-scroll::-webkit-scrollbar { display: none; }

.ticker-card {
  min-width: 140px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  padding: 14px 12px 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  flex-shrink: 0;
}

.ticker-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--brand-soft2);
}

.ticker-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ticker-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.ticker-pair {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.ticker-name {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ticker-card-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.t-price-big {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.t-change {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.t-change.positive { background: var(--success-soft); color: var(--success); }
.t-change.negative { background: var(--danger-soft);  color: var(--danger);  }

/* ── 13. Auth Pages ───────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  background: #FAFAFB;
}

.auth-left {
  width: 420px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #0F172A 0%, #1E0508 60%, #0F172A 100%);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,0.18), transparent 70%);
}

.auth-left::after {
  content: "";
  position: absolute;
  bottom: -60px; left: -40px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,0.10), transparent 70%);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.auth-logo .logo-icon {
  width: 44px; height: 44px;
  background: var(--brand);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-red);
}

.auth-logo .logo-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #FFFFFF;
}

.auth-tagline {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.auth-tagline span { color: #FFFFFF; }

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.af-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--brand);
  flex-shrink: 0;
}

.af-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.af-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  overflow-y: auto;
}

.auth-form-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-main);
  margin: 0 0 6px;
}

.auth-form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.red-line {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  border-radius: 99px;
  margin-top: 10px;
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.remember-row a { color: var(--brand); font-weight: 600; }

.remember-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.remember-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--brand);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-light);
  font-size: 12px;
}

.auth-divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid var(--border-soft);
}

.auth-security {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--success-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 20px;
}

.as-text {
  flex: 1;
  font-size: 12px;
  color: var(--success);
  line-height: 1.4;
}

.as-badge {
  background: var(--success);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 3px;
}

.auth-footer-text {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 18px;
  line-height: 1.5;
}

/* Auth feature chips (mobile) */
.auth-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-main);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

.auth-chip i { color: var(--brand); font-size: 13px; }

/* Mobile auth (single panel) */
@media (max-width: 767px) {
  .auth-wrapper {
    flex-direction: column;
    min-height: 100vh;
    background: #FFFFFF;
  }
  .auth-left { display: none; }
  .auth-right {
    flex: 1;
    align-items: flex-start;
    padding: 40px 20px 32px;
  }
}

/* ── 14. Deposit Page ─────────────────────────────────────────── */
.deposit-page { /* Uses deposit-mobile.css for mobile specifics */ }

/* Address box */
.address-box {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border-med);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.addr-info { flex: 1; min-width: 0; }
.addr-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.addr-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
  line-height: 1.4;
}

.copy-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 15px;
}

.copy-btn:hover { border-color: var(--brand); color: var(--brand); }

/* Warning/info notice */
.notice-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  color: #92400E;
  line-height: 1.5;
}

.notice-warning i { font-size: 15px; color: #D97706; flex-shrink: 0; margin-top: 1px; }

.notice-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--info-soft);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  color: #1E40AF;
  line-height: 1.5;
}

.notice-info i { font-size: 15px; color: var(--info); flex-shrink: 0; margin-top: 1px; }

/* ── 15. Withdrawal Page ──────────────────────────────────────── */
.fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border-soft);
}

.fee-label {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.fee-amount .amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.fee-amount .network {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

.receive-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--brand-soft) 0%, #FFECEE 100%);
  border: 1.5px solid var(--brand-soft2);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.rb-label {
  font-size: 12px;
  color: var(--brand);
  font-weight: 500;
  margin-bottom: 4px;
}

.rb-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}

.safety-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 16px;
  background: var(--success-soft);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--success);
  line-height: 1.5;
  margin-top: 8px;
}

.safety-notice i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── 16. History / Tables ─────────────────────────────────────── */
.history-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 16px;
  background: var(--info-soft);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: #1E40AF;
  line-height: 1.5;
  margin-bottom: 14px;
}

.history-notice i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.summary-item {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-xs);
  padding: 14px 16px;
}

.si-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.si-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.3px;
}

/* Desktop table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--border-soft);
  background: var(--bg-main);
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.1s;
}

.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-main); }

.data-table tbody td {
  padding: 13px 16px;
  color: var(--text-main);
  vertical-align: middle;
}

.fw-700 { font-weight: 700; }

/* Mobile trade cards */
.trade-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-xs);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trade-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--success-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.trade-info { flex: 1; min-width: 0; }
.trade-date { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.trade-capital { font-size: 13px; color: var(--text-sub); }

.trade-profit {
  text-align: right;
  flex-shrink: 0;
}

.trade-profit-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.3px;
}

.trade-profit-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-soft);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-top: 3px;
  display: inline-block;
}

/* Pagination */
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px; height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  background: #FFFFFF;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }

/* Scroll container */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── 16b. History v2 (Auto Trade History) ─────────────────────── */
.ht-summary-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.ht-summary-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-xs);
  padding: 14px 14px;
  text-align: left;
}

.ht-summary-card.wide { grid-column: 1 / -1; }

.ht-summary-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
}

.ht-summary-ico {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.ht-summary-card.wide .ht-summary-header { color: var(--brand); }

.ht-summary-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.ht-summary-value.positive { color: var(--success); }

.ht-summary-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.ht-summary-sub.positive {
  color: var(--success);
}

/* Tabs + filter on one row */
.ht-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ht-controls-row .tab-bar { flex: 1; margin-bottom: 0; }

.ht-tabs .tab-item { padding: 8px 6px; font-size: 12.5px; }

.ht-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  padding: 8px 14px;
  flex-shrink: 0;
}

.ht-filter-pill i { font-size: 13px; color: var(--text-muted); }

.ht-filter-pill .form-select {
  width: auto;
  min-width: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 16px 0 0;
}

/* Trade rows (mobile list with dividers) */
.ht-trade-list {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.ht-trade-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--card-border);
}

.ht-trade-row:last-child { border-bottom: none; }

.ht-trade-col-date { width: 88px; flex-shrink: 0; }
.ht-trade-date { font-size: 12.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; }
.ht-trade-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.ht-trade-col-pair { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.ht-trade-pair { font-size: 12.5px; font-weight: 800; color: var(--text-main); white-space: nowrap; }
.ht-trade-pair span { color: var(--text-muted); font-weight: 600; }
.ht-trade-capital { font-size: 11px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; }

.ht-pair-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}

.ht-pair-icon-sm {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.ht-trade-profit { text-align: right; flex-shrink: 0; }
.ht-trade-profit-pct { font-size: 11.5px; font-weight: 700; color: var(--success); }
.ht-trade-profit-amount { font-size: 12.5px; font-weight: 800; color: var(--success); letter-spacing: -0.2px; margin-top: 2px; }
.ht-trade-chevron { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

.ht-pct-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* History desktop table: profit amount in green (History-only scope) */
.desktop-only-table .data-table td.text-primary { color: var(--success) !important; }

/* Footer note */
.ht-footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 14px 10px 6px;
}

.ht-footer-secure {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-sub);
}

.ht-footer-secure i { color: var(--brand); margin-right: 4px; }

/* Page header — centered title with decorations */
.ht-header {
  position: relative;
  text-align: center;
  padding: 14px 0 10px;
  margin-bottom: 12px;
}

.ht-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin: 0;
  position: relative;
  z-index: 1;
}

.ht-back {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.ht-header-dots {
  position: absolute;
  left: -8px; top: -12px;
  width: 110px; height: 72px;
  background-image: radial-gradient(rgba(229,9,20,0.30) 1.5px, transparent 1.6px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse at top left, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at top left, #000 20%, transparent 70%);
  pointer-events: none;
}

.ht-header-spark {
  position: absolute;
  right: -6px; top: -6px;
  width: 84px; height: 42px;
  pointer-events: none;
}

/* Info banner — red themed */
.ht-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  background: var(--brand-alpha2);
  border: 1px solid rgba(229,9,20,0.15);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.ht-notice strong { color: var(--brand); }

.ht-notice-ico {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ── 17. Profile Page ─────────────────────────────────────────── */
.profile-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E0508 70%, #0F172A 100%);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,0.15), transparent 70%);
}

.profile-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.15);
}

.profile-name {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.profile-email {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 2px 0 6px;
}

.profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

/* Tabs */
.tab-bar {
  display: flex;
  gap: 0;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-xs);
  padding: 4px;
  margin-bottom: 14px;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 9px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.tab-item.active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-red);
}

.tab-content { display: block; }

/* Security badges */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* ── 18. Alerts ───────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 14px;
  border: none;
}

.alert-success {
  background: var(--success-soft);
  color: var(--success);
}

.alert-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.alert i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── 19. Utilities ────────────────────────────────────────────── */
.text-primary { color: var(--brand) !important; }
.text-success  { color: var(--success) !important; }
.text-danger   { color: var(--danger) !important; }
.text-muted-c  { color: var(--text-muted) !important; }

.mt-16 { margin-top: 16px; }
.mb-0  { margin-bottom: 0 !important; }
.mb-3  { margin-bottom: 14px !important; }
.mb-4  { margin-bottom: 20px !important; }

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

.d-flex   { display: flex; }
.d-grid   { display: grid; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-grow-1 { flex: 1; }
.text-end  { text-align: right; }
.text-center { text-align: center; }
.w-100     { width: 100%; }

.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  opacity: 0.25;
  display: block;
  margin-bottom: 14px;
}

.empty-state p {
  font-size: 14px;
  margin: 0;
}

/* Deposit quick amount buttons — compat with existing indogets.js */
.deposit-quick-amount-button.active {
  background: var(--brand-soft) !important;
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}

/* ── 20. Desktop Overrides ────────────────────────────────────── */
@media (min-width: 992px) {
  :root {
    --page-px: 32px;
  }

  .dashboard-stack { gap: 20px; }

  .po-grid { grid-template-columns: repeat(2, 1fr); }

  .action-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .ticker-card { min-width: 160px; }

  .bh-amount { font-size: 42px; }

  .page-header { margin-bottom: 28px; }

  .app-card { padding: 24px; }

  .summary-row { grid-template-columns: repeat(4, 1fr); }

  .trade-card {
    display: grid;
    grid-template-columns: 42px 1fr 120px 80px 80px;
    align-items: center;
  }

  /* Desktop dashboard — 2/3 column grid */
  @media (min-width: 1200px) {
    .dashboard-stack {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto;
    }

    .balance-hero { grid-column: 1 / -1; }
    .action-grid  { grid-column: 1 / -1; }
    .dashboard-chart-card { grid-column: 1 / -1; }
    .market-title { grid-column: 1 / -1; }
    .ticker-scroll { grid-column: 1 / -1; }
  }
}

/* ── 21. Trade history mobile cards ──────────────────────────── */
@media (max-width: 991px) {
  .desktop-only-table { display: none; }
}

@media (min-width: 992px) {
  .mobile-only-cards { display: none; }
}

/* ── 22. Tab utilities ────────────────────────────────────────── */
.hidden { display: none !important; }

/* tab-btn is an alias for tab-item — used by app.js generic tab system */
.tab-btn {
  flex: 1;
  text-align: center;
  padding: 9px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  background: none;
  border: none;
  font-family: var(--font);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-red);
}

/* ── 23. Extra Sidebar styles (new class names) ───────────────── */
/* Aliases so both old and new partial class names resolve */
.app-sidebar { /* alias */ }

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.35);
  padding: 14px 12px 6px;
  margin-top: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.07);
  color: #FFFFFF;
}

.sidebar-link.active {
  background: rgba(229,9,20,0.18);
  color: #FFFFFF;
}

.sidebar-link.active .sidebar-link-icon { color: var(--brand); }

.sidebar-link-icon {
  font-size: 17px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.40);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  font-family: var(--font);
}

.sidebar-logout-btn:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.75);
}

/* ── 24. Top bar new class names ──────────────────────────────── */
.app-topbar {
  height: var(--topbar-h);
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-xs);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.topbar-brand-icon {
  width: 32px; height: 32px;
  background: var(--brand);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.topbar-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-user-info { text-align: right; line-height: 1.1; }
.topbar-welcome   { font-size: 10px; color: var(--text-muted); }
.topbar-username  { font-size: 13px; font-weight: 700; color: var(--text-main); }

.topbar-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  background: var(--bg-main);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-main);
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.topbar-avatar:hover { border-color: var(--brand); color: var(--brand); }

/* ── 25. Bottom nav new class names ──────────────────────────── */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-max);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-soft);
  border-radius: 20px 20px 0 0;
  padding: 0 4px calc(env(safe-area-inset-bottom) + 4px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  z-index: 100;
  height: var(--nav-h);
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 6px 4px;
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 500;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  transition: color 0.15s;
}

.bnav-item i { font-size: 20px; line-height: 1; transition: transform 0.15s; }
.bnav-item span { white-space: nowrap; line-height: 1; }

.bnav-item.active { color: var(--brand); }
.bnav-item.active i { transform: translateY(-1px); }

.bnav-fab-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -22px;
  gap: 2px;
}

.bnav-fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-red);
  transition: var(--transition);
  border: 3px solid #FFFFFF;
  font-size: 22px;
}

.bnav-fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-red-lg); }

.bnav-fab-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  text-align: center;
  margin-top: 2px;
}

@media (min-width: 992px) {
  .app-bottom-nav { display: none !important; }
  .app-sidebar { width: var(--sidebar-w); }
}

/* ── 26. Dashboard — Redesigned Components ────────────────────── */

/* Page wrapper */
.dash-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 0;
}

/* ── Balance Card — sparkline lives inside the card ────────────── */
.bal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  margin-bottom: 0;
}

/* Sparkline decoration — covers right 62% of the card height */
.bal-deco {
  position: absolute;
  top: 0; right: 0;
  width: 62%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bal-inner {
  position: relative;
  z-index: 1;
  padding: 20px 20px 16px;
}

.bal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bal-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bal-label i {
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s;
}

.bal-label i:hover { color: var(--brand); }

/* "T USDT" pill */
.bal-coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  padding: 4px 10px 4px 4px;
}

.bal-t-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #26A17B; /* Tether green */
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.bal-coin-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
}

/* Main balance amount */
.bal-amount {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 4px 0 2px;
}

.bal-approx {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.bal-divider {
  height: 1px;
  background: var(--border-soft);
  margin-bottom: 14px;
}

.bal-foot {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.bal-foot-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.bal-foot-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

/* ── Generic dash card ─────────────────────────────────────────── */
.dash-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 18px 18px 16px;
  margin-bottom: 0;
}

.dc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 7px;
}

.dc-title i { color: var(--brand); }

.dc-select {
  padding: 5px 24px 5px 10px;
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-sub);
  background-color: var(--bg-main);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* ── Profit Overview 2-col grid ────────────────────────────────── */
.po2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.po2-cell {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
}

.po2-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.3;
}

.po2-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.6px;
  line-height: 1;
  margin-bottom: 6px;
}

.po2-pct {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.po2-pct.pos { background: var(--success-soft); color: var(--success); }
.po2-pct.neg { background: var(--danger-soft);  color: var(--danger);  }

/* ── Performance 4-col row ─────────────────────────────────────── */
.perf4-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.perf4-cell {
  min-width: 0;
}

.p4-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.p4-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  line-height: 1.2;
}

.p4-bar {
  height: 3px;
  background: var(--border-soft);
  border-radius: 99px;
  overflow: hidden;
}

.p4-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  border-radius: 99px;
}

/* ── Quick Actions ─────────────────────────────────────────────── */
.qa-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.qa-btn {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-xs);
  padding: 16px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  text-align: center;
}

.qa-btn:hover {
  border-color: var(--brand-soft2);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  color: var(--text-main);
}

.qa-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(229,9,20,0.28);
}

.qa-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.qa-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: -4px;
}

/* ── Market Tickers ────────────────────────────────────────────── */
.mkt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 10px;
  padding: 0 2px;
}

.mkt-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.mkt-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.mkt-all:hover { opacity: 0.75; }
.mkt-all i { font-size: 11px; }

/* Horizontal-scroll ticker strip */
.mkt-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 0 -2px;
  padding-left: 2px;
  padding-right: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mkt-scroll::-webkit-scrollbar { display: none; }

/* Individual ticker card */
.mkt-card {
  min-width: 148px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  padding: 14px 12px 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  display: block;
}

.mkt-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--brand-soft2);
}

.mkt-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.mkt-coin-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}

.mkt-coin-info { min-width: 0; }

.mkt-pair {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  white-space: nowrap;
}

.mkt-name {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mkt-card-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mkt-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.mkt-chg {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.mkt-chg.up { background: var(--success-soft); color: var(--success); }
.mkt-chg.dn { background: var(--danger-soft);  color: var(--danger);  }

/* Desktop adjustments */
@media (min-width: 992px) {
  .perf4-row { gap: 14px; }
  .p4-label  { font-size: 11px; }
  .p4-value  { font-size: 16px; }
  .po2-value { font-size: 26px; }
  .bal-amount { font-size: 44px; }
  .mkt-card  { min-width: 168px; }
  .qa-icon   { width: 52px; height: 52px; font-size: 22px; }
  .qa-label  { font-size: 13px; }
  .dash-page { gap: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   FINAL OVERRIDES — must stay at end of file
   Neutralises any indogets.css values that survived the cascade
   ═══════════════════════════════════════════════════════════════ */

/* ── Bottom nav: final authoritative styles ──────────────────── */
@media (max-width: 991px) {
  .bottom-nav {
    display: flex !important;
    height: var(--nav-h) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    border-radius: 20px 20px 0 0 !important;
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.08) !important;
    border-top: 1px solid rgba(229,231,235,0.7) !important;
    padding-bottom: calc(env(safe-area-inset-bottom) + 2px) !important;
  }

  .bottom-nav .deposit-btn-wrap {
    gap: 2px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
    padding-top: 0 !important;
    margin-top: -20px !important;
  }

  .bottom-nav .deposit-fab {
    margin-top: 0 !important;
  }
}

/* ── App wrapper: always full-width, never centered ──────────── */
/* indogets.css has max-width:480px + margin:0 auto on .app-wrapper */
.app-wrapper,
body .app-wrapper,
.chart-app-wrapper,
.deposit-app-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ── Quick-action icons: brand colour ─────────────────────────── */
.action-btn .ab-icon {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}

/* ── Page content: full-width + bottom clearance on all mobile pages ── */
@media (max-width: 991px) {
  .main-content .page-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 46px) !important;
  }
}

/* Mobile account menu: keeps Logout discoverable without crowding nav/header. */
.mobile-account-menu {
  display: none;
}

@media (max-width: 991px) {
  .desktop-avatar-link {
    display: none !important;
  }

  .mobile-account-menu {
    display: block;
    position: relative;
  }

  .mobile-account-toggle {
    appearance: none;
    padding: 0;
  }

  .mobile-account-toggle::after {
    display: none !important;
  }

  .mobile-account-dropdown {
    min-width: 184px;
    margin-top: 10px !important;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
    backdrop-filter: blur(16px);
  }

  .mobile-account-item {
    min-height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: #06142E;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-account-item i {
    width: 20px;
    font-size: 17px;
    color: #8A94A6;
    text-align: center;
  }

  .mobile-account-item:hover,
  .mobile-account-item:focus {
    background: #F6F7FA;
    color: #06142E;
  }

  .mobile-logout-form {
    margin: 4px 0 0;
    padding: 4px 0 0;
    border-top: 1px solid #EEF1F6;
  }

  .mobile-logout-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #EF233C;
  }

  .mobile-logout-item i {
    color: #EF233C;
  }
}

@media (min-width: 992px) {
  .desktop-avatar-link {
    display: flex !important;
  }
}

/* Unified mobile bottom navigation across all user pages. */
@media (max-width: 991px) {
  .bottom-nav,
  .bottom-nav.chart-nav,
  .bottom-nav.deposit-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    width: min(calc(100vw - 32px), 430px) !important;
    max-width: none !important;
    height: 64px !important;
    padding: 0 !important;
    border: 1px solid rgba(238, 241, 246, .92) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 -6px 26px rgba(15, 23, 42, .13) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    align-items: center !important;
    z-index: 240 !important;
  }

  .bottom-nav .nav-item,
  .bottom-nav .deposit-btn-wrap,
  .bottom-nav .deposit-fab {
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
  }

  .bottom-nav .nav-item,
  .bottom-nav .deposit-fab {
    inset: auto !important;
    transform: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    color: #91A0B8 !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }

  .bottom-nav .nav-item i,
  .bottom-nav .deposit-fab i {
    font-size: 20px !important;
    line-height: 1 !important;
    color: currentColor !important;
  }

  .bottom-nav .nav-item span,
  .bottom-nav .deposit-fab span {
    font-size: 9.5px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    color: currentColor !important;
  }

  .bottom-nav .deposit-fab i {
    font-size: 24px !important;
  }

  .bottom-nav .nav-item.active,
  .bottom-nav .deposit-fab.active {
    color: #EF233C !important;
  }

  .bottom-nav .nav-item::before,
  .bottom-nav .deposit-fab::before {
    display: none !important;
  }

  .bottom-nav .nav-item.active::before,
  .bottom-nav .deposit-fab.active::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    top: 7px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(239, 35, 60, .10);
    z-index: -1;
  }

  .main-content .page-content {
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }
}

/* Authoritative mobile nav state and fixed-bottom placement. */
@media (max-width: 991px) {
  .bottom-nav,
  .bottom-nav.chart-nav,
  .bottom-nav.deposit-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(64px + env(safe-area-inset-bottom)) !important;
    padding: 0 14px env(safe-area-inset-bottom) !important;
    border: 0 !important;
    border-top: 1px solid rgba(238, 241, 246, .95) !important;
    border-radius: 18px 18px 0 0 !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, .10) !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    align-items: center !important;
    z-index: 300 !important;
  }

  .bottom-nav .nav-item,
  .bottom-nav .deposit-fab {
    color: #91A0B8 !important;
  }

  .bottom-nav .nav-item::before,
  .bottom-nav .deposit-fab::before {
    display: none !important;
  }

  .bottom-nav.nav-dashboard > a[href="/Dashboard"],
  .bottom-nav.nav-chart > a[href="/Dashboard/Chart"],
  .bottom-nav.nav-deposit .deposit-fab,
  .bottom-nav.nav-history > a[href="/Dashboard/History"],
  .bottom-nav.nav-profile > a[href="/Profile"] {
    color: #EF233C !important;
  }

  .bottom-nav.nav-dashboard > a[href="/Dashboard"]::before,
  .bottom-nav.nav-chart > a[href="/Dashboard/Chart"]::before,
  .bottom-nav.nav-deposit .deposit-fab::before,
  .bottom-nav.nav-history > a[href="/Dashboard/History"]::before,
  .bottom-nav.nav-profile > a[href="/Profile"]::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    top: 7px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(239, 35, 60, .10);
    z-index: -1;
  }

  .main-content .page-content {
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }
}

/* ── 18. Admin v2 — premium admin module ─────────────────────── */

/* Fix: .bottom-nav { display:flex !important } above overrides the
   desktop hide rule in section 3 because it appears later in the
   cascade — re-assert the hide here so it wins on desktop. */
@media (min-width: 992px) {
  .bottom-nav { display: none !important; }
  /* The sidebar already shows the logo — the duplicate in the top bar
     is redundant once the sidebar is visible. */
  .top-bar .brand-logo { display: none !important; }
}

/* Stat cards */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-stat {
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border) !important;
  border-left: 1px solid var(--card-border) !important; /* cancel legacy 4px color borders */
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}

.admin-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.admin-stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: .9;
}

.admin-stat.primary { --accent: var(--brand);   --accent-soft: var(--brand-soft); }
.admin-stat.success { --accent: var(--success); --accent-soft: var(--success-soft); }
.admin-stat.danger  { --accent: var(--danger);  --accent-soft: var(--danger-soft); }
.admin-stat.info    { --accent: var(--info);    --accent-soft: var(--info-soft); }
.admin-stat.warning { --accent: var(--warning); --accent-soft: var(--warning-soft); }

.admin-stat .as-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-stat .as-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0;
  white-space: nowrap;
}

.admin-stat .as-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat .as-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.1;
  color: var(--text-main);
}

.admin-stat .as-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.admin-stat .as-sub a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.admin-stat .as-sub a:hover { text-decoration: underline; }

/* Section cards */
.admin-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}

.admin-section .as-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 16px;
}

.admin-section .as-title i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg-raised);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-section .as-title .as-chip {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-raised);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  white-space: nowrap;
}

/* Tables inside admin sections */
.admin-section .data-table thead th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}

.admin-section .data-table tbody td {
  padding: 13px 14px;
  vertical-align: middle;
}

.admin-section .data-table tbody tr {
  transition: background .12s;
}

.admin-section .data-table tbody tr:hover {
  background: #FAFBFC;
}

/* User cell with avatar */
.adm-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.adm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-user-name { font-size: 13px; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.adm-user-mail { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* Approve / Reject actions */
.btn-approve,
.btn-reject {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s, box-shadow .12s, background .12s;
}

.btn-approve {
  background: var(--success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-approve:hover { background: #047857; }

.btn-reject {
  background: #fff;
  color: var(--danger);
  border: 1.5px solid #FECACA;
}

.btn-reject:hover { background: var(--danger-soft); border-color: var(--danger); }

.btn-approve:active,
.btn-reject:active { transform: scale(.96); }

/* Empty state */
.adm-empty {
  text-align: center;
  padding: 46px 20px 40px;
}

.adm-empty-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adm-empty-title { font-size: 16px; font-weight: 800; color: var(--text-main); margin-bottom: 5px; }

.adm-empty p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* Charts grid */
.admin-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

/* Responsive */
@media (max-width: 991px) {
  .admin-charts-grid { grid-template-columns: 1fr; }
  .admin-stat-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
}

@media (max-width: 575px) {
  .admin-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-stat { padding: 14px 14px 13px; }
  .admin-stat .as-ico { width: 30px; height: 30px; font-size: 13px; border-radius: 9px; }
  .admin-stat .as-value { font-size: 20px; }
  .admin-stat .as-label { font-size: 9.5px; }
  .admin-stat .as-sub { font-size: 11px; }
  .admin-section { padding: 16px; border-radius: var(--radius-sm); }
  .admin-section .as-title { font-size: 14px; }
  .admin-section .as-title .as-chip { display: none; }
  .btn-approve, .btn-reject { height: 30px; padding: 0 11px; font-size: 11.5px; }
}

/* ── 18b. Admin mobile drawer (hamburger replaces bottom nav) ── */
.admin-burger { display: none; }

@media (max-width: 991px) {
  /* No bottom nav for admins on mobile — reclaim the reserved space */
  body.admin-shell .bottom-nav { display: none !important; }
  body.admin-shell .main-content .page-content {
    padding-bottom: 28px !important;
  }

  .admin-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1.5px solid var(--border-soft);
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    font-size: 22px;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color .15s, color .15s;
  }

  .admin-burger:active { border-color: var(--brand); color: var(--brand); }

  /* The dark sidebar becomes a slide-in drawer */
  body.admin-shell .sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    height: 100dvh;
    z-index: 320;
    transform: translateX(-105%);
    transition: transform .26s ease;
    overflow-y: auto;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.28);
  }

  body.admin-shell.admin-drawer-open .sidebar { transform: translateX(0); }

  .admin-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 310;
    background: rgba(8, 12, 20, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
  }

  body.admin-drawer-open .admin-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.admin-drawer-open { overflow: hidden; }
}

/* ── 18c. Admin sidebar — white theme (matches trader desktop) ── */
body.admin-shell .sidebar {
  background: #FFFFFF !important;
  border-right: 1px solid var(--border-soft);
  box-shadow: none;
}

body.admin-shell .sidebar-logo {
  padding: 24px 20px 18px;
  border-bottom: 1px solid var(--border-soft);
}

body.admin-shell .sidebar-logo-img { filter: none; }

body.admin-shell .sidebar-nav {
  padding: 16px 12px;
}

body.admin-shell .sidebar-nav .nav-section-title {
  color: var(--text-light);
}

body.admin-shell .sidebar-nav .nav-link {
  color: var(--text-sub);
  font-weight: 600;
  position: relative;
}

body.admin-shell .sidebar-nav .nav-link i { color: var(--text-muted); }

body.admin-shell .sidebar-nav .nav-link:hover {
  background: var(--bg-raised);
  color: var(--text-main);
}

body.admin-shell .sidebar-nav .nav-link:hover i { color: var(--text-main); }

body.admin-shell .sidebar-nav .nav-link.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

body.admin-shell .sidebar-nav .nav-link.active i { color: var(--brand); }

body.admin-shell .sidebar-nav .nav-link.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 7px;
  bottom: 7px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--brand);
}

body.admin-shell .sidebar-footer {
  border-top: 1px solid var(--border-soft);
}

body.admin-shell .sidebar-footer .nav-link {
  color: var(--text-muted) !important;
}

body.admin-shell .sidebar-footer .nav-link:hover {
  color: var(--brand) !important;
  background: var(--brand-soft);
}

/* ── 16c. Withdrawal v2 (mockup redesign) ─────────────────────── */
.wd-accent { color: var(--brand); font-weight: 700; }

.wd-min-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-raised);
  border-radius: var(--radius-full);
  padding: 7px 12px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
}

.wd-min-pill i { font-size: 11px; }

/* Main card wraps everything */
.wd-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 18px 16px;
}

/* Balance row */
.wd-balance {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 2px 2px 16px;
}

.wd-coin {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  flex-shrink: 0;
}

.wd-balance-label { font-size: 12px; color: var(--text-muted); }

.wd-balance-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-main);
  margin-top: 2px;
}

.wd-balance-value span { font-size: 14px; font-weight: 700; }

/* Inner bordered group around form fields */
.wd-fieldbox {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  margin-bottom: 14px;
}

.wd-net-icon {
  background: var(--brand) !important;
}

.wd-net-icon span { color: #fff; font-size: 10px; font-weight: 800; }

/* MAX chip — solid brand */
.wd-max.max-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
}

/* Estimated fee */
.wd-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-bottom: 14px;
}

.wd-fee-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

.wd-fee-label i { color: var(--text-muted); font-size: 12px; }

.wd-fee-right { text-align: right; }
.wd-fee-amt { font-size: 13.5px; font-weight: 800; color: var(--text-main); }
.wd-fee-net { font-size: 11px; font-weight: 600; color: var(--brand); margin-top: 2px; }

/* You will receive */
.wd-receive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    radial-gradient(circle at 85% 50%, rgba(229, 9, 20, 0.10) 0%, transparent 55%),
    linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  border: 1px solid rgba(229, 9, 20, 0.10);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.wd-receive-label { font-size: 12.5px; color: var(--text-sub); }

.wd-receive-amt {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--brand);
  margin-top: 4px;
}

.wd-coin-art { width: 88px; height: 78px; flex-shrink: 0; }

/* Footnote */
.wd-footnote {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 14px 8px 2px;
}

.wd-footnote i { color: var(--brand); margin-right: 4px; }

/* Withdrawal v2 — mobile fixes:
   1) indogets.css centers .page-header with a 34px title on mobile,
      crushing the subtitle between back button and pill.
   2) indogets.css shrinks .form-select to 10px / 10px padding on
      mobile (!important), which breaks the network select. */
@media (max-width: 991px) {
  .page-header.wd-header {
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: left;
    gap: 12px 14px;
    padding: 14px 0 12px;
  }

  .wd-header .ph-text { flex: 1; min-width: 0; }

  .wd-header .ph-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.1;
  }

  .wd-header .ph-subtitle {
    font-size: 12.5px;
    margin-top: 4px;
  }

  /* Pill drops to its own full-width row under the title */
  .wd-header .wd-min-pill {
    width: 100%;
    justify-content: center;
    order: 5;
  }

  .wd-card .form-select {
    min-height: 0;
    padding: 12px 36px 12px 14px !important;
    font-size: 14px !important;
    border-radius: var(--radius-sm) !important;
    border-width: 1.5px;
  }

  .wd-card .select-with-icon .form-select {
    padding-left: 46px !important;
  }

  .wd-card .form-control {
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* ── 19. Trader desktop dashboard (mockup redesign, ≥992px) ───── */

/* The desktop layout is hidden on mobile; the mobile layout
   (.dash-page) is hidden on desktop. */
.dash-desktop { display: none; }

/* ── White sidebar theme for traders (desktop only — the sidebar
      is display:none on mobile) ── */
body.trader-shell .sidebar {
  background: #FFFFFF !important;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
}

body.trader-shell .sidebar-logo {
  padding: 24px 20px 18px;
  border-bottom: 1px solid var(--border-soft);
}

body.trader-shell .sidebar-logo-img { filter: none; }

body.trader-shell .sidebar-nav .nav-section-title { color: var(--text-light); }

body.trader-shell .sidebar-nav .nav-link {
  color: var(--text-sub);
  font-weight: 600;
  position: relative;
}

body.trader-shell .sidebar-nav .nav-link i { color: var(--text-muted); }

body.trader-shell .sidebar-nav .nav-link:hover {
  background: var(--bg-raised);
  color: var(--text-main);
}

body.trader-shell .sidebar-nav .nav-link.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

body.trader-shell .sidebar-nav .nav-link.active i { color: var(--brand); }

body.trader-shell .sidebar-nav .nav-link.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 7px;
  bottom: 7px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--brand);
}

body.trader-shell .sidebar-footer {
  border-top: 1px solid var(--border-soft);
}

body.trader-shell .sidebar-footer .nav-link {
  color: var(--text-muted) !important;
}

body.trader-shell .sidebar-footer .nav-link:hover {
  color: var(--brand) !important;
  background: var(--brand-soft);
}

/* 2FA promo card */
.sidebar-promo {
  margin: 0 14px 12px;
  padding: 14px 16px 16px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 90% 0%, rgba(229, 9, 20, 0.10) 0%, transparent 50%),
    linear-gradient(160deg, #FFF5F6 0%, #FFE7EA 100%);
  border: 1px solid rgba(229, 9, 20, 0.10);
  text-align: left;
}

.sp-art { width: 104px; height: 80px; display: block; margin-bottom: 4px; }

.sp-title { font-size: 14px; font-weight: 800; color: var(--text-main); margin-bottom: 3px; }

.sp-text { font-size: 11.5px; line-height: 1.5; color: var(--text-muted); margin-bottom: 12px; }

.sp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(229, 9, 20, 0.25);
  transition: box-shadow .15s;
}

.sp-btn:hover { color: #fff; box-shadow: var(--shadow-red); }

@media (min-width: 992px) {
  body.trader-shell .top-bar .user-info {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  /* ── Desktop dashboard grid ── */
  .dash-page { display: none !important; }
  .dash-desktop { display: block; max-width: 1340px; }

  .dd-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    align-items: stretch;
  }

  .dd-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
    padding: 22px 24px;
  }

  .dd-capital { grid-column: span 7; }
  .dd-profit  { grid-column: span 5; }
  .dd-perf    { grid-column: span 7; }
  .dd-actions { grid-column: span 5; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .dd-tickers { grid-column: 1 / -1; }
  .dd-growth  { grid-column: 1 / -1; }

  /* Card headers */
  .dd-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
  }

  .dd-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--text-main);
  }

  .dd-title-ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dd-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

  /* ── Total Capital ── */
  .dd-cap-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .dd-cap-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .dd-cap-label i { cursor: pointer; }

  .dd-cap-body { display: flex; gap: 20px; align-items: stretch; }
  .dd-cap-main { flex: 1; min-width: 0; }

  .dd-cap-amount {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.6px;
    line-height: 1.05;
    color: var(--text-main);
  }

  .dd-cap-approx { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

  .dd-cap-divider { height: 1px; background: var(--card-border); margin: 16px 0 14px; }

  .dd-cap-foot { display: flex; align-items: center; gap: 26px; }
  .dd-foot-sep { width: 1px; align-self: stretch; background: var(--card-border); }
  .dd-foot-label { font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; }
  .dd-foot-value { font-size: 15px; font-weight: 700; color: var(--text-main); }

  .dd-cap-spark {
    width: 38%;
    min-width: 180px;
    align-self: flex-end;
    background-image: radial-gradient(rgba(229, 9, 20, 0.10) 1px, transparent 1.2px);
    background-size: 10px 10px;
    border-radius: 8px;
  }

  .dd-cap-spark svg { width: 100%; height: 100%; min-height: 140px; display: block; }

  /* ── Profit Overview ── */
  .dd-profit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(100% - 56px);
    align-items: center;
  }

  .dd-profit-cell { padding: 6px 18px 6px 0; }
  .dd-profit-cell + .dd-profit-cell { border-left: 1px solid var(--card-border); padding-left: 24px; }

  .dd-p-label { font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }
  .dd-p-value { font-size: 30px; font-weight: 800; letter-spacing: -1px; color: var(--brand); line-height: 1.1; }
  .dd-p-pct { font-size: 13px; font-weight: 700; color: var(--brand); margin-top: 7px; }

  /* ── Performance Summary ── */
  .dd-perf-row { display: grid; grid-template-columns: repeat(4, 1fr); }

  .dd-perf-cell { padding: 4px 18px 4px 0; }
  .dd-perf-cell + .dd-perf-cell { border-left: 1px solid var(--card-border); padding-left: 20px; }

  .dd-pf-label { font-size: 12px; color: var(--text-muted); margin-bottom: 7px; }
  .dd-pf-value { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; color: var(--brand); }
  .dd-pf-value.dark { color: var(--text-main); }

  .dd-pf-bar {
    height: 4px;
    border-radius: 999px;
    background: var(--brand-soft2);
    margin-top: 11px;
    overflow: hidden;
  }

  .dd-pf-bar div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
  }

  /* ── Quick actions ── */
  .dd-action {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 10px;
    text-align: center;
    text-decoration: none;
    transition: transform .16s, box-shadow .16s, border-color .16s;
  }

  .dd-action:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 9, 20, 0.30);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  }

  .dd-act-ico {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--brand);
    color: var(--brand);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: background .15s, color .15s;
  }

  .dd-action:hover .dd-act-ico { background: var(--brand); color: #fff; }

  .dd-act-label { font-size: 14.5px; font-weight: 800; color: var(--text-main); }
  .dd-act-sub { font-size: 11.5px; color: var(--text-muted); }

  /* ── Ticker strip ── */
  .dd-tickers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 16px 10px;
  }

  .dd-tick {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 26px;
    text-decoration: none;
    min-width: 0;
  }

  .dd-tick + .dd-tick { border-left: 1px solid var(--card-border); }

  .dd-tick-ico {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .dd-tick-info { min-width: 0; }
  .dd-tick-pair { font-size: 13px; font-weight: 800; color: var(--text-main); white-space: nowrap; }
  .dd-tick-pair span { color: var(--text-muted); font-weight: 600; }
  .dd-tick-price { font-size: 17px; font-weight: 800; letter-spacing: -0.4px; color: var(--text-main); margin-top: 2px; }
  .dd-tick-chg { font-size: 12px; font-weight: 700; margin-top: 2px; }
  .dd-tick-chg.up { color: var(--brand); }
  .dd-tick-chg.dn { color: var(--text-muted); }

  .dd-tick-spark { width: 110px; height: 38px; margin-left: auto; flex-shrink: 0; }

  /* ── Portfolio Growth ── */
  .dd-range {
    display: inline-flex;
    background: var(--bg-raised);
    border-radius: 11px;
    padding: 3px;
    gap: 2px;
  }

  .dd-range button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font);
    transition: background .14s, color .14s;
  }

  .dd-range button:hover { color: var(--text-main); }

  .dd-range button.active {
    background: #FFFFFF;
    color: var(--brand);
    font-weight: 700;
    box-shadow: var(--shadow-xs);
  }
}

@media (min-width: 992px) and (max-width: 1280px) {
  .dd-capital, .dd-profit, .dd-perf, .dd-actions { grid-column: 1 / -1; }
  .dd-cap-spark { width: 32%; }
}

/* Keep the slide-in shadow on the mobile drawer (18c resets it) */
@media (max-width: 991px) {
  body.admin-shell .sidebar {
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
    border-right: none;
  }
}

/* Premium aligned header: the top bar and the sidebar logo block share
   one continuous bottom border at the same height (desktop, both shells). */
@media (min-width: 992px) {
  body.trader-shell .top-bar,
  body.admin-shell .top-bar {
    height: 72px;
    min-height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: none;
  }

  body.trader-shell .sidebar-logo,
  body.admin-shell .sidebar-logo {
    height: 72px;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
  }
}

/* Locked-capital note under available balance */
.wd-locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--warning);
  background: var(--warning-soft);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}

.wd-locked i { font-size: 10px; }

/* Admin Pending / All History view tabs */
.adm-view-tabs {
  display: inline-flex;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
}

.adm-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .14s, color .14s;
}

.adm-view-tab:hover { color: var(--text-main); }

.adm-view-tab.active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-red);
}

/* ── 20. Login page — desktop redesign (≥992px) ───────────────── */

/* Desktop-only elements, hidden on mobile/tablet */
.auth-nav,
.auth-deco,
.auth-sub-desk,
.auth-left-note { display: none; }

@media (min-width: 992px) {
  /* Top navbar */
  .auth-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 32px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .auth-nav-logo img { height: 30px; width: auto; display: block; }

  .auth-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
  }

  .auth-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 18px;
    border: 1.5px solid var(--brand);
    border-radius: var(--radius-full);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
  }

  .auth-nav-cta:hover { background: var(--brand-soft); color: var(--brand); }

  /* Light page with decorations */
  .auth-wrapper {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 64px);
    background:
      radial-gradient(circle at 0% 30%, rgba(229, 9, 20, 0.05) 0%, transparent 30%),
      radial-gradient(circle at 100% 12%, rgba(229, 9, 20, 0.06) 0%, transparent 26%),
      linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 100%);
  }

  .auth-deco { display: block; position: absolute; pointer-events: none; z-index: 0; }

  .auth-deco-dots {
    top: 60px;
    left: -30px;
    width: 220px;
    height: 200px;
    background-image: radial-gradient(rgba(229, 9, 20, 0.22) 1.5px, transparent 1.6px);
    background-size: 12px 12px;
    -webkit-mask-image: radial-gradient(ellipse at center left, #000 25%, transparent 70%);
    mask-image: radial-gradient(ellipse at center left, #000 25%, transparent 70%);
  }

  .auth-deco-waves { bottom: -10px; left: 0; width: 56%; height: auto; }
  .auth-deco-candles { top: 70px; right: 14px; width: 92px; height: 220px; }

  /* Left panel — light marketing column */
  .auth-left {
    width: auto;
    flex: 1;
    background: transparent !important;
    padding: 60px 4vw 60px 6vw;
    justify-content: center;
    z-index: 1;
  }

  .auth-left::before,
  .auth-left::after { content: none; }

  .auth-logo { display: none; }

  .auth-tagline {
    font-size: 44px;
    letter-spacing: -1.4px;
    color: var(--text-main);
    margin-bottom: 18px;
  }

  .auth-tagline span { color: var(--brand); }

  .auth-sub-desk {
    display: block;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-sub);
    margin: 0 0 34px;
  }

  /* Feature chips in a horizontal row */
  .auth-features { flex-direction: row; gap: 14px; flex-wrap: wrap; }

  .auth-feature {
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    padding: 13px 16px;
    gap: 11px;
  }

  .af-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-soft);
    border: none;
    font-size: 15px;
  }

  .af-title { color: var(--text-main); font-size: 12.5px; white-space: nowrap; }
  .af-sub { color: var(--text-muted); font-size: 10.5px; white-space: nowrap; }

  /* Bottom-left security note */
  .auth-left-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 56px;
  }

  .aln-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .auth-left-note strong { display: block; font-size: 13px; color: var(--text-main); }
  .auth-left-note span { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

  /* Right panel — floating white card */
  .auth-right {
    flex: 0 0 560px;
    z-index: 1;
    padding: 48px 40px;
  }

  .auth-card {
    max-width: 430px !important;
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
    padding: 36px 34px 26px;
  }

  .auth-card .auth-form-title { text-align: center; }
  .auth-card .auth-form-subtitle { text-align: center; }
  .auth-card .red-line { margin-left: auto; margin-right: auto; }

  /* The "security priority" note lives bottom-left on desktop */
  .auth-card .auth-footer-text { display: none; }
}

/* ── 20b. Login desktop refinements (mockup match) ────────────── */
@media (min-width: 992px) {
  /* indogets.css centers .auth-left and caps .auth-features at 320px,
     which centered the headline and stacked the chips */
  .auth-left { align-items: flex-start; text-align: left; }
  .auth-tagline { text-align: left; }

  .auth-features {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    width: auto;
    max-width: none;
  }

  /* Red accent for the Remember me checkbox */
  .auth-card input[type="checkbox"] { accent-color: var(--brand); }

  /* Secure-login strip: white with red shield + red 2FA badge */
  .auth-card .auth-security {
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
  }

  .auth-card .auth-security > i { color: var(--brand) !important; }

  .auth-card .as-badge { background: var(--brand); }

  /* Full-width silk waves along the bottom, behind the card */
  .auth-deco-waves {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 340px;
  }
}
