/* ===========================================================
   OLX Trade — shared theme
   Palette: #0B0E11 bg / #1E2329 surface / #F0B90B gold
   =========================================================== */

:root {
  --bg: #0B0E11;
  --bg-soft: #14171C;
  --surface: #1E2329;
  --surface-2: #2B3139;
  --border: #2B3139;
  --border-soft: #23272E;
  --gold: #F0B90B;
  --gold-soft: #F8D33A;
  --green: #0ECB81;
  --green-soft: rgba(14, 203, 129, 0.12);
  --red: #F6465D;
  --red-soft: rgba(246, 70, 93, 0.12);
  --text: #EAECEF;
  --text-muted: #848E9C;
  --text-faint: #5E6673;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', Arial, 'Helvetica Neue', Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

.mono { /*font-family: Consolas, 'SFMono-Regular', Menlo, Monaco, monospace;*/ }

a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--gold); color: #1a1500; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, .nav-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===================== Layout shell ===================== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--bg-soft);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 40;
  transition: transform 0.25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold) 0%, #C99400 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #1a1500;
  font-size: 13px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.brand-name span { color: var(--gold); }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 10px 12px 6px;
  font-weight: 600;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}

.nav-link svg { width: 19px; height: 19px; flex-shrink: 0; opacity: 0.85; }

.nav-link:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-link.active {
  background: rgba(240, 185, 11, 0.08);
  color: var(--gold);
}

.nav-link.active svg { opacity: 1; }

.nav-link.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}

.nav-telegram {
  margin: 8px 4px 0;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(41,148,224,0.16), rgba(41,148,224,0.05));
  border: 1px solid rgba(41,148,224,0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.15s, border-color 0.15s;
}

.nav-telegram:hover { transform: translateY(-1px); border-color: rgba(41,148,224,0.6); }

.nav-telegram-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #2994E0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-telegram-icon svg { width: 18px; height: 18px; fill: #fff; }

.nav-telegram-text { font-size: 13px; }
.nav-telegram-text strong { display: block; font-size: 13.5px; color: var(--text); }
.nav-telegram-text small { color: var(--text-muted); font-size: 11.5px; }

.sidebar-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border-soft);
}

.logout-link {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 4px;
  transition: color 0.15s;
}
.logout-link:hover { color: var(--red); }
.logout-link svg { width: 17px; height: 17px; }

/* ===================== Main content ===================== */
.main {
  margin-left: 256px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(11,14,17,0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.page-title { font-size: 19px; font-weight: 700; letter-spacing: -0.2px; }
.page-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  color: var(--text);
  margin-right: 14px;
}
.menu-toggle svg { width: 19px; height: 19px; }


.topbar-left { display: flex; align-items: center; justify-content: space-between; width: 60%; }

.topbar-right { display: flex; align-items: center; gap: 14px; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  position: relative;
  transition: border-color 0.15s, color 0.15s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-dot {
  position: absolute; top: 7px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); border: 1.5px solid var(--bg-soft);
}

/* Only laptop and large screens */
@media (min-width: 1024px) {
    .user-chip {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 12px 6px 6px;
        border-radius: 999px;
        background: var(--surface);
        border: 1px solid var(--border);
    }
}
@media (max-width: 768px) {
    .user-chip {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 12px 6px 6px;
        border-radius: 999px;
    }
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #C99400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #1a1500;
}
.user-chip-name { font-size: 13.5px; font-weight: 600; }
.user-chip-tier { font-size: 10.5px; color: var(--gold); font-weight: 600; }

.content {
  padding: 28px;
  flex: 1;
}

/* ===================== Cards ===================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    color: #cccccc;
    margin:1%;
}

.card-pad { padding: 22px 24px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-head h3 { font-size: 15.5px; font-weight: 700; margin: 0; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: filter 0.15s, transform 0.1s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.98); }

.btn-gold {
  background: var(--gold);
  color: #1a1500;
  font-size:75%
}
    .btn-gold:hover {
        filter: brightness(1.08);
        background: var(--gold);
        color: #1a1500;
        font-size: 12px;
    }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--border); }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }

/* ===================== Badges / pills ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-success { background: var(--green-soft); color: var(--green); }
.badge-danger { background: var(--red-soft); color: var(--red); }
.badge-pending { background: rgba(240,185,11,0.12); color: var(--gold); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip-filter {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: all 0.15s;
}
.chip-filter.active { background: var(--gold); color: #1a1500; border-color: var(--gold); }
.chip-filter:hover:not(.active) { border-color: var(--text-muted); color: var(--text); }

/* ===================== Tables ===================== */
.table-wrap { overflow-x: auto; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table thead th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 600;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border-soft);
}

.data-table tbody td {
  padding: 16px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.12s; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.015); }

.cell-asset { display: flex; align-items: center; gap: 10px; }
.asset-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.amount-in { color: var(--green); font-weight: 600; }
.amount-out { color: var(--red); font-weight: 600; }

/* ===================== Login page ===================== */
.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}

.login-visual {
  flex: 1.15;
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(240,185,11,0.10), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(240,185,11,0.06), transparent 45%),
              linear-gradient(180deg, #0B0E11 0%, #0E1216 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  overflow: hidden;
}

.login-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,185,11,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,185,11,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 75%);
}

.ticker-card {
  position: relative;
  z-index: 2;
  background: rgba(30,35,41,0.6);
  border: 1px solid rgba(240,185,11,0.18);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 14px;
  max-width: 360px;
  animation: floatY 6s ease-in-out infinite;
}
.ticker-card:nth-child(2) { animation-delay: -3s; max-width: 320px; margin-left: 60px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-card { animation: none; }
}

.login-headline {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  max-width: 460px;
}
.login-headline h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
.login-headline h1 span { color: var(--gold); }
.login-headline p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.login-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-box { width: 100%; max-width: 380px; }

.login-box .brand { padding: 0; border: none; margin-bottom: 36px; }

.field-group { margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.field-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.15s, background 0.15s;
}
.field-input::placeholder { color: var(--text-faint); }
.field-input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface-2);
}

.field-wrap-pass { position: relative; }
.field-wrap-pass .field-input { padding-right: 42px; }
.pass-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-faint);
  display: flex;
}
.pass-toggle svg { width: 18px; height: 18px; }

.login-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
}

.remember-check { display: flex; align-items: center; gap: 7px; color: var(--text-muted); }
.remember-check input { accent-color: var(--gold); width: 15px; height: 15px; }

.forgot-link { color: var(--gold); font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

.login-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-faint);
  font-size: 12.5px;
  margin: 24px 0;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-soft);
}

.signup-row { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--text-muted); }
.signup-row a { color: var(--gold); font-weight: 600; }

.telegram-banner {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(41,148,224,0.12), rgba(41,148,224,0.04));
  border: 1px solid rgba(41,148,224,0.25);
}
.telegram-banner svg { width: 24px; height: 24px; fill: #2994E0; flex-shrink: 0; }
.telegram-banner span { font-size: 13px; color: var(--text-muted); }
.telegram-banner a { color: #4DAAEB; font-weight: 700; }

/* ===================== Dashboard widgets ===================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.stat-label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.stat-label svg { width: 16px; height: 16px; opacity: 0.7; }
.stat-value { font-size: 23px; font-weight: 700; letter-spacing: -0.4px; }
.stat-delta { font-size: 12.5px; font-weight: 600; margin-top: 6px; }

.balance-hero {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin-bottom: 22px;
  background:
    radial-gradient(circle at 85% 20%, rgba(240,185,11,0.20), transparent 55%),
    linear-gradient(120deg, #1E2329 0%, #181C20 60%, #14171C 100%);
  border: 1px solid rgba(240,185,11,0.16);
  overflow: hidden;
}

.balance-hero::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(240,185,11,0.18), transparent 70%);
  border-radius: 50%;
  animation: sheen 8s ease-in-out infinite;
}
@keyframes sheen {
  0%, 100% { transform: translate(0,0) scale(1); opacity: 0.7; }
  50% { transform: translate(-20px, 20px) scale(1.15); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .balance-hero::after { animation: none; }
}

.balance-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 24px;
}

.balance-label { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.balance-amount { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.balance-amount sup { font-size: 20px; color: var(--text-muted); font-weight: 600; margin-left: 4px; }
.balance-change { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--green); }
.balance-change svg { width: 14px; height: 14px; }

.balance-actions { display: flex; gap: 10px; position: relative; z-index: 2; }

.balance-sub-row {
  display: flex; gap: 32px; margin-top: 24px; position: relative; z-index: 2;
  flex-wrap: wrap;
}
.balance-sub-item { font-size: 12.5px; color: var(--text-muted); }
.balance-sub-item strong { display: block; font-size: 16px; color: var(--text); font-weight: 700; margin-top: 4px; }

.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.plan-row:last-child { border-bottom: none; }
.plan-name { font-weight: 600; font-size: 14px; }
.plan-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.plan-roi { text-align: right; }
.plan-roi strong { color: var(--green); font-size: 14.5px; }
.plan-roi div { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }

.progress-track {
  height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 8px;
}
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 4px; }

.activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.activity-text { flex: 1; }
.activity-title { font-size: 13.5px; font-weight: 600; }
.activity-time { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.activity-amount { font-size: 13.5px; font-weight: 700; }

.quick-cta {
  border-radius: var(--radius-lg);
  padding: 22px;
  background: linear-gradient(135deg, rgba(41,148,224,0.14), rgba(41,148,224,0.04));
  border: 1px solid rgba(41,148,224,0.25);
  text-align: center;
}
.quick-cta svg { width: 38px; height: 38px; fill: #2994E0; margin-bottom: 10px; }
.quick-cta h4 { font-size: 15px; margin: 0 0 6px; }
.quick-cta p { font-size: 12.5px; color: var(--text-muted); margin: 0 0 16px; }

/* ===================== History / Statement pages ===================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 14px;
  flex-wrap: wrap;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.search-input-wrap { position: relative; }
.search-input-wrap svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-faint);
}
.search-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px 9px 36px;
  font-size: 13.5px;
  color: var(--text);
  width: 220px;
}
.search-input:focus { outline: none; border-color: var(--gold); }

.mini-stat-row { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.mini-stat {
  flex: 1; min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.mini-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.mini-stat-value { font-size: 21px; font-weight: 700; margin-top: 6px; }

.pagination {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 12px;
}
.page-btns { display: flex; gap: 6px; }
.page-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
}
.page-btn.active { background: var(--gold); color: #1a1500; border-color: var(--gold); }
.page-btn:hover:not(.active) { border-color: var(--text-muted); color: var(--text); }

.tabs-row {
    display: flow-root;
   
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 5px;
    width: fit-content;
    margin-bottom: 22px;
}
.tab-btn {
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
}
.tab-btn.active { background: var(--gold); color: #1a1500; }

/* ===================== Footer ===================== */
.app-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-soft);
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.app-footer a { color: var(--text-muted); }
.app-footer a:hover { color: var(--gold); }

/* ===================== Responsive ===================== */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: flex; }
  .login-visual { display: none; }
}

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; }
  .content { padding: 18px; }
  .topbar { padding: 0 16px; }
  .balance-amount { font-size: 32px; }
  .user-chip-name, .user-chip-tier { display: none; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-input { width: 100%; }
}

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 35;
}
.sidebar-overlay.show { display: block; }

/* ===================== Deposit / Withdraw forms ===================== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.method-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  text-align: left;
}
.method-card:hover { border-color: var(--text-faint); transform: translateY(-1px); }
.method-card.active {
  border-color: var(--gold);
  background: rgba(240,185,11,0.06);
}
.method-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.method-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  flex-shrink: 0;
}
.method-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.method-card.active .method-check {
  background: var(--gold);
  border-color: var(--gold);
}
.method-check svg { width: 11px; height: 11px; opacity: 0; transition: opacity 0.1s; }
.method-card.active .method-check svg { opacity: 1; }
.method-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.method-sub { font-size: 11.5px; color: var(--text-muted); }

.pay-detail-panel {
  display: none;
}
.pay-detail-panel.show { display: block; }

.copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.copy-field-text { overflow: hidden; }
.copy-field-label { font-size: 11.5px; color: var(--text-faint); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.copy-field-value { font-size: 14.5px; font-weight: 600; word-break: break-all; }
.copy-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, border-color 0.15s;
}
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn:hover { border-color: var(--gold); color: var(--gold); }
.copy-btn.copied { background: var(--green-soft); border-color: var(--green); color: var(--green); }

.qr-box {
  width: 132px; height: 132px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 8px;
  flex-shrink: 0;
}
.qr-box img, .qr-box svg { width: 100%; height: 100%; }

.network-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.network-tag span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.alert-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 16px;
}
.alert-box svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-warning { background: rgba(240,185,11,0.08); border: 1px solid rgba(240,185,11,0.25); color: #D9A916; }
.alert-info { background: rgba(41,148,224,0.08); border: 1px solid rgba(41,148,224,0.25); color: #4DAAEB; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.upload-box {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-box:hover { border-color: var(--gold); background: rgba(240,185,11,0.03); }
.upload-box svg { width: 28px; height: 28px; color: var(--text-faint); margin-bottom: 8px; }
.upload-box-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.upload-box-sub { font-size: 12px; color: var(--text-faint); }

.summary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-soft);
}
.summary-row:last-child { border-bottom: none; font-weight: 700; font-size: 15px; }
.summary-row span:first-child { color: var(--text-muted); }

.withdraw-layout, .deposit-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: start;
}

.amount-input-wrap { position: relative; }
.amount-input-wrap .field-input { padding-left: 32px; font-family:'Montserrat', Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 16px; font-weight: 600; }
.amount-currency {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-weight: 600; font-size: 15px;
}

.quick-amount-row { display: flex; gap: 8px; margin-top: 10px; }
.quick-amount-btn {
  flex: 1;
  padding: 7px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s;
}
.quick-amount-btn:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 1100px) {
  .method-grid { grid-template-columns: 1fr 1fr; }
  .withdraw-layout, .deposit-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .method-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* MVC/application additions */
.validation-summary-errors, .field-validation-error { color: var(--red); font-size: 12.5px; }
.validation-summary-errors ul { margin: 0 0 16px; padding: 12px 14px; background: var(--red-soft); border: 1px solid rgba(246,70,93,.35); border-radius: 8px; }
.input-validation-error { border-color: var(--red) !important; }
.flash-message { margin-bottom: 18px; padding: 13px 16px; border-radius: 9px; font-size: 13.5px; }
.flash-success { color: var(--green); background: var(--green-soft); border: 1px solid rgba(14,203,129,.35); }
.flash-error { color: var(--red); background: var(--red-soft); border: 1px solid rgba(246,70,93,.35); }
.inline-form { display: inline; }
.admin-actions { display:flex; gap:8px; flex-wrap:wrap; }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px; }
.detail-item { padding-bottom:12px; border-bottom:1px solid var(--border-soft); }
.detail-item span { display:block; color:var(--text-muted); font-size:12px; margin-bottom:5px; }
.detail-item strong { font-size:14px; overflow-wrap:anywhere; }
.proof-image { display:block; max-width:100%; max-height:560px; margin:auto; border-radius:10px; border:1px solid var(--border); }
.permission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.permission-item { display:flex; align-items:center; gap:9px; padding:12px; border:1px solid var(--border); border-radius:8px; background:var(--bg-soft); }
.upload-box { position:relative; }
.upload-box input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.empty-state { padding:44px 20px; text-align:center; color:var(--text-muted); }
.method-card input[type=radio] { position:absolute; opacity:0; pointer-events:none; }
.auth-link-row { text-align:center; margin-top:22px; color:var(--text-muted); font-size:13px; }
.auth-link-row a { color:var(--gold); font-weight:600; }
.textarea { min-height:110px; resize:vertical; }
.status-select { min-width:160px; }
.switch-row { display:flex; gap:18px; flex-wrap:wrap; }
.checkbox-card { display:flex; align-items:center; gap:8px; color:var(--text); font-size:13.5px; }
@media(max-width:700px){ .detail-grid,.permission-grid{grid-template-columns:1fr;} .admin-actions .btn{flex:1;} }

/* User balance and profit management */
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: #fff;
}
.detail-row:last-of-type { border-bottom: 0; }
.detail-row span { color: var(--text-muted); }
.detail-row strong { text-align: right; color: #fff; }
@media (max-width: 620px) {
  .detail-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .detail-row strong { text-align: left; }
}

/* Permanent user trace identifier */
.user-trace-chip{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 10px;border:1px solid rgba(245,183,0,.35);border-radius:8px;background:rgba(245,183,0,.08);color:#fff;font-size:12px}.user-trace-chip strong{color:var(--gold)}


/* Referral program */
.referral-card { margin-bottom: 18px; }
.referral-note { color: var(--text-muted) !important; font-size: 13px; line-height: 1.6; margin: 5px 0 0; }
.referral-copy { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.025); }
.referral-copy .copy-field-value { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #fff; }
.referral-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.referral-settings-grid { align-items: stretch; }
.referral-settings-grid > form, .referral-settings-grid .card { height: 100%; }
@media (max-width: 700px) { .referral-copy { align-items: stretch; flex-direction: column; } .referral-actions .btn { width: 100%; } }


/* ===========================================================
   OLX Trade authentication — Binance-inspired composition
   Uses an original OLX Trade identity and system typography.
   =========================================================== */
.olx-auth-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #181a20;
    color: #eaecef;
    font-family: 'Montserrat', Arial, 'Helvetica Neue', Helvetica, sans-serif;
    
}

.olx-auth-shell {
  min-height: 100vh;
  background: #181a20;
}

.olx-auth-shell-center {
  display: grid;
  place-items: center;
  padding: 58px 24px 28px;
}

.olx-auth-shell-register {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(570px, .88fr);
}

.olx-auth-main {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 54px;
}

.olx-auth-shell-center .olx-auth-main {
  width: 100%;
  padding: 0;
}

.olx-auth-card {
  width: min(100%, 426px);
  padding: 40px;
  background: #181a20;
  border: 1px solid #333b47;
  border-radius: 24px;
  box-shadow: none;
}

.olx-auth-card-register {
  width: min(100%, 560px);
  padding: 36px 40px;
}

.olx-auth-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  color: #f0b90b;
}

.olx-auth-logo {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f0b90b;
  border-radius: 8px 4px 8px 4px;
  transform: rotate(-4deg);
  color: #f0b90b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.olx-auth-logo::first-letter { letter-spacing: -1px; }

.olx-auth-brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .55px;
}

.olx-auth-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.olx-auth-title-row h1 {
  margin: 0;
  color: #f5f5f5;
  font-size: 32px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.8px;
}

.olx-auth-title-row p {
  margin: 9px 0 0;
  color: #848e9c;
  font-size: 14px;
  line-height: 1.55;
}

.olx-auth-security-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #2b3139;
  color: #eaecef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.olx-auth-security-icon svg { width: 23px; height: 23px; }

.olx-auth-form .field-group { margin-bottom: 20px; }

.olx-auth-form .field-label {
  margin-bottom: 7px;
  color: #eaecef;
  font-size: 13px;
  font-weight: 600;
}

.olx-auth-input {
  min-height: 49px;
  padding: 13px 14px;
  border: 1px solid #474d57;
  border-radius: 10px;
  background: transparent;
  color: #f5f5f5;
  font-size: 15px;
  font-weight: 400;
}

select.olx-auth-input {
  color-scheme: dark;
  background-color: #181a20;
}

/* Flag-enabled registration country dropdown */
.country-select {
  position: relative;
  width: 100%;
}

.country-select-trigger,
.country-select-menu {
  display: none;
}

.country-select.is-enhanced .country-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.country-select.is-enhanced .country-select-trigger {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  gap: 10px;
  padding: 12px 42px 12px 14px;
  border: 1px solid #474d57;
  border-radius: 10px;
  background: #181a20;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.country-select.is-enhanced .country-select-trigger:hover {
  border-color: #707a8a;
}

.country-select.is-open .country-select-trigger,
.country-select.is-enhanced .country-select-trigger:focus-visible {
  border-color: #f0b90b;
  box-shadow: 0 0 0 1px #f0b90b;
  outline: none;
}

.country-selected-flag-wrap {
  width: 27px;
  height: 19px;
  flex: 0 0 27px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 3px;
  background: #2b3139;
}

.country-selected-flag,
.country-option-flag {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-selected-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-select-chevron {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  color: #848e9c;
  transition: transform .18s ease;
  pointer-events: none;
}

.country-select.is-open .country-select-chevron {
  transform: rotate(180deg);
}

.country-select.is-enhanced .country-select-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: none;
  max-height: 275px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #474d57;
  border-radius: 11px;
  background: #1e2329;
  box-shadow: 0 14px 34px rgba(0,0,0,.42);
}

.country-select.is-open .country-select-menu {
  display: block;
}

.country-select-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #eaecef;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.country-select-option:hover,
.country-select-option:focus-visible,
.country-select-option[aria-selected="true"] {
  background: #2b3139;
  color: #fcd535;
  outline: none;
}

.country-option-flag {
  width: 27px;
  height: 19px;
  flex: 0 0 27px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 3px;
}

.country-select-menu::-webkit-scrollbar { width: 7px; }
.country-select-menu::-webkit-scrollbar-thumb { background: #474d57; border-radius: 10px; }

.olx-auth-input::placeholder { color: #707a8a; opacity: 1; }

.olx-auth-input:hover { border-color: #707a8a; }

.olx-auth-input:focus {
  border-color: #f0b90b;
  background: transparent;
  box-shadow: 0 0 0 1px #f0b90b;
}

.olx-auth-form .pass-toggle {
  right: 14px;
  color: #848e9c;
}

.olx-auth-options { margin: 2px 0 23px; }
.olx-auth-options .remember-check { color: #b7bdc6; }
.olx-auth-options .forgot-link { color: #f0b90b; }

.olx-auth-submit {
  min-height: 49px;
  border-radius: 9px;
  border-color: #fcd535;
  background: #fcd535;
  color: #181a20;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}

.olx-auth-submit:hover,
.olx-auth-submit:focus {
  border-color: #ffe466;
  background: #ffe466;
  color: #181a20;
}

.olx-auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 27px 0 19px;
  color: #848e9c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.olx-auth-divider::before,
.olx-auth-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: #333b47;
}

.olx-auth-security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #333b47;
  border-radius: 10px;
  color: #b7bdc6;
  font-size: 12.5px;
  line-height: 1.45;
}

.olx-auth-security-note svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: #f0b90b;
}

.olx-auth-bottom-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  font-size: 14px;
}

.olx-auth-bottom-links a {
  color: #f0b90b;
  font-weight: 600;
}

.olx-register-bottom-links {
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  color: #848e9c;
}

.olx-auth-grid { gap: 16px; }
.olx-label-optional { color: #848e9c; font-weight: 400; }

.olx-referral-applied {
  display: block;
  margin-top: 7px;
  color: #0ecb81;
  font-size: 12px;
  line-height: 1.45;
}

.olx-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0 22px;
  color: #d1d4dc;
  font-size: 12.5px;
  line-height: 1.55;
}

.olx-terms-check input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #f0b90b;
  flex: 0 0 auto;
}

.olx-terms-check a { color: #f0b90b; text-decoration: underline; }

.olx-auth-hero {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 58px;
  border-right: 1px solid #2b3139;
  background: #181a20;
}

.olx-auth-hero-inner {
  width: min(100%, 590px);
}

.olx-auth-hero h1 {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(34px, 3vw, 47px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -1px;
}

.olx-orbit-art {
  position: relative;
  width: 340px;
  height: 250px;
  margin: 60px auto 52px;
}

.olx-hero-emblem {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 2px solid #f0b90b;
  border-radius: 36% 50% 38% 52%;
  background: radial-gradient(circle at 40% 35%, rgba(240,185,11,.16), rgba(24,26,32,.95) 67%);
  box-shadow: 0 0 44px rgba(240,185,11,.15);
  color: #f0b90b;
}

.olx-hero-emblem span {
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -4px;
  padding-right: 4px;
}

.olx-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 118px;
  border: 2px solid #f0b90b;
  border-radius: 50%;
}

.olx-orbit-one { transform: translate(-50%, -50%) rotate(-20deg); }
.olx-orbit-two { transform: translate(-50%, -50%) rotate(24deg); opacity: .8; }

.olx-orbit-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #f0b90b;
}

.olx-orbit-arrow-one { right: 39px; top: 70px; transform: rotate(25deg); }
.olx-orbit-arrow-two { left: 38px; bottom: 62px; transform: rotate(198deg); }

.olx-trust-list {
  display: grid;
  gap: 26px;
}

.olx-trust-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 15px;
  align-items: start;
  color: #eaecef;
}

.olx-trust-icon {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eaecef;
}

.olx-trust-icon svg { width: 24px; height: 24px; }
.olx-trust-item strong { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.olx-trust-item small { display: block; color: #848e9c; font-size: 12.5px; line-height: 1.5; }

.olx-auth-card .validation-summary-errors ul {
  margin-bottom: 20px;
  background: rgba(246,70,93,.08);
}

@media (max-width: 1150px) {
  .olx-auth-shell-register { grid-template-columns: minmax(390px, .8fr) minmax(520px, 1fr); }
  .olx-auth-hero { padding: 60px 38px; }
  .olx-auth-main { padding: 36px; }
}

@media (max-width: 920px) {
  .olx-auth-shell-register { display: block; }
  .olx-auth-hero { display: none; }
  .olx-auth-shell-register .olx-auth-main { min-height: 100vh; padding: 32px 22px; }
}

@media (max-width: 600px) {
  .olx-auth-shell-center { padding: 0; align-items: stretch; }
  .olx-auth-shell-center .olx-auth-main { min-height: 100vh; align-items: flex-start; padding: 20px 16px; }
  .olx-auth-card,
  .olx-auth-card-register {
    width: 100%;
    padding: 28px 22px;
    border-radius: 18px;
  }
  .olx-auth-shell-center .olx-auth-card { border-color: transparent; }
  .olx-auth-wordmark { margin-bottom: 30px; }
  .olx-auth-brand-text { font-size: 20px; }
  .olx-auth-title-row h1 { font-size: 28px; }
  .olx-auth-title-row { margin-bottom: 26px; }
  .olx-register-bottom-links { flex-wrap: wrap; }
}



/* User dashboard portfolio refresh */
.dashboard-welcome {
  margin-bottom: 9px;
  color: #eaecef;
  font-size: 14px;
  font-weight: 500;
}
.dashboard-welcome strong { color: #fff; font-weight: 700; }
.portfolio-main { min-width: 0; }
.compact-user-id {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 3px;
  padding: 4px 5px 4px 9px;
  border: 1px solid rgba(132,142,156,.22);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: #848e9c;
  font-size: 11px;
  line-height: 1;
}
.compact-user-id-label {
  color: #707a8a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}
.compact-user-id-value {
  color: #b7bdc6;
  font-size: 10.5px;
  letter-spacing: .025em;
}
.uid-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 23px;
  padding: 3px 6px;
  border: 0;
  border-radius: 5px;
  background: #2b3139;
  color: #b7bdc6;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.uid-copy-btn svg { width: 11px; height: 11px; }
.uid-copy-btn:hover,
.uid-copy-btn.copied { background: #3a414b; color: #f0b90b; }
.portfolio-pnl {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  font-size: 12px;
  color: #848e9c;
}
.portfolio-pnl strong { font-size: 13px; }
.portfolio-pnl small { width: 100%; color: #5e6673; font-size: 10px; }
.portfolio-pnl.is-positive strong { color: var(--green); }
.portfolio-pnl.is-negative strong { color: var(--red); }
.portfolio-pnl.is-neutral strong { color: #b7bdc6; }
.social-dashboard-card { margin-top: 18px; }
.social-card-note {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.social-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 12px;
}
.social-icon-link {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(132,142,156,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
  color: #eaecef;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.social-icon-link:hover {
  transform: translateY(-2px);
  border-color: rgba(240,185,11,.55);
  background: rgba(240,185,11,.055);
  color: #fff;
}
.social-icon-link strong { font-size: 12px; font-weight: 600; }
.social-icon-circle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #252b33;
}
.social-icon-circle svg { width: 20px; height: 20px; }
.social-whatsapp .social-icon-circle { color: #25d366; }
.social-telegram .social-icon-circle { color: #2aabee; }
.social-facebook .social-icon-circle { color: #1877f2; }
.social-x .social-icon-circle { color: #eaecef; }
.social-linkedin .social-icon-circle { color: #0a66c2; }
@media (max-width: 850px) {
  .social-icon-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .social-icon-grid { grid-template-columns: repeat(2, 1fr); }
  .compact-user-id { max-width: 100%; }
  .balance-hero-top { gap: 20px; }
}


/* ===========================================================
   Dashboard mobile consolidation and official social channels
   =========================================================== */
.mobile-overview-card {
  display: none;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface);
}
.mobile-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.mobile-overview-head h3 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.mobile-overview-head > span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.mobile-wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.mobile-wallet-tile {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(132,142,156,.16);
  border-radius: 12px;
  background: #191e24;
}
.mobile-wallet-tile > span {
  display: block;
  margin-bottom: 7px;
  color: #848e9c;
  font-size: 10.5px;
  font-weight: 600;
}
.mobile-wallet-tile > strong {
  display: block;
  overflow: hidden;
  color: #f5f5f5;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-wallet-tile > small {
  display: block;
  margin-top: 6px;
  color: #69717e;
  font-size: 9.5px;
  line-height: 1.35;
}
.mobile-value-profit { color: var(--green) !important; }
.mobile-value-commission { color: var(--gold) !important; }
.mobile-activity-values {
  display: grid;
  gap: 5px;
}
.mobile-activity-values span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #848e9c;
  font-size: 9.5px;
}
.mobile-activity-values b {
  color: #fff;
  font-size: 11px;
}
.company-social-grid {
  grid-template-columns: repeat(7, minmax(86px, 1fr));
}
.social-instagram .social-icon-circle { color: #e1306c; }
.social-tiktok .social-icon-circle { color: #f4f4f4; }
.social-threads .social-icon-circle { color: #f4f4f4; }
.social-discord .social-icon-circle { color: #5865f2; }

@media (max-width: 1180px) {
  .company-social-grid { grid-template-columns: repeat(4, minmax(90px, 1fr)); }
}

@media (max-width: 720px) {
  .desktop-stat-grid { display: none; }
  .mobile-overview-card { display: block; }

  .portfolio-hero {
    padding: 22px 18px;
  }
  .portfolio-hero .balance-hero-top {
    display: block;
    min-height: 170px;
  }
  .portfolio-hero .portfolio-main {
    min-width: 0;
    padding-right: 92px;
  }
  .portfolio-hero .dashboard-primary-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: 82px;
    flex-direction: column;
    gap: 7px;
  }
  .portfolio-hero .dashboard-primary-actions .btn {
    width: 100%;
    min-height: 32px;
    padding: 7px 7px;
    border-radius: 8px;
    font-size: 10.5px;
    line-height: 1.1;
    white-space: nowrap;
  }
  .portfolio-hero .balance-amount {
    max-width: 100%;
    font-size: clamp(27px, 9vw, 34px);
  }
  .portfolio-hero .balance-amount sup {
    font-size: 12px;
  }
  .portfolio-hero .portfolio-pnl {
    padding-right: 0;
  }
  .company-social-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .company-social-grid .social-icon-link {
    min-height: 78px;
    gap: 7px;
    padding: 8px 3px;
  }
  .company-social-grid .social-icon-circle {
    width: 32px;
    height: 32px;
  }
  .company-social-grid .social-icon-circle svg {
    width: 17px;
    height: 17px;
  }
  .company-social-grid .social-icon-link strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .portfolio-hero .portfolio-main { padding-right: 78px; }
  .portfolio-hero .dashboard-primary-actions { width: 70px; }
  .portfolio-hero .dashboard-primary-actions .btn { font-size: 9.5px; }
  .mobile-wallet-grid { gap: 7px; }
  .mobile-wallet-tile { padding: 10px; }
  .mobile-wallet-tile > strong { font-size: 14px; }
  .company-social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* Wallet-source withdrawal selector */
.wallet-source-group{margin-bottom:22px;padding:16px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.018)}
.wallet-source-select{font-weight:700}
.wallet-source-preview{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.wallet-source-preview>div{padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--bg-soft);display:flex;flex-direction:column;gap:5px}
.wallet-source-preview span,.wallet-limit-note,.mini-stat-hint{font-size:12px;color:var(--text-muted)}
.wallet-source-preview strong{color:var(--text)}
.withdrawal-wallet-stats {
    display: flex;
    gap: 12px;
    width: 100%;
}
.withdrawal-wallet-stats .mini-stat {
    flex: 1;
    background: linear-gradient( 145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02) );
    border: 1px solid rgba(240,185,11,0.15);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: .3s ease;
}
.mini-stat-label {
    font-size: 12px;
    color: #8b8b8b;
    margin-bottom: 8px;
}


.mini-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: white;
}


.mini-stat-hint {
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}


.profit {
    color: #00c087 !important;
}


.commission {
    color: #F0B90B !important;
}
@media(max-width:768px) {

    .withdrawal-wallet-stats {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 10px;
    }


        .withdrawal-wallet-stats .mini-stat {
            padding: 12px;
            min-height: 105px;
        }


    .mini-stat-label {
        font-size: 11px;
        line-height: 15px;
    }


    .mini-stat-value {
        font-size: 16px;
    }


    .mini-stat-hint {
        font-size: 10px;
    }
}
@media(max-width:700px){.withdrawal-wallet-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.withdrawal-wallet-stats .mini-stat{min-height:auto;padding:15px}.wallet-source-preview{grid-template-columns:1fr}.withdraw-method-tabs{overflow-x:auto;flex-wrap:nowrap}.withdraw-method-tabs .tab-btn{white-space:nowrap}}

.withdraw-method-tabs {
    display: flex;
    gap: 12px;
}

/* Mobile */
/* Withdrawal Method Tabs */
.withdraw-method-tabs {
    display: flex;
    gap: 12px;
}


/* Mobile */
@media (max-width: 768px) {

    .withdraw-method-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }


        .withdraw-method-tabs .tab-btn {
            width: 100%;
            min-width: 0;
            height: 42px;
            padding: 0 8px;
            font-size: 13px;
            white-space: nowrap;
            border-radius: 10px;
        }
}
/* ===========================================================
   OLX Trade — premium animated user dashboard (Inter)
   =========================================================== */
html, body {
    font-family: 'Montserrat', Arial, 'Helvetica Neue', Helvetica, sans-serif;
    
}
.trade-dashboard{--td-bg:#07090d;--td-surface:#11151b;--td-surface2:#171c23;--td-surface3:#1d232c;--td-border:rgba(255,255,255,.075);--td-text:#f5f7fa;--td-muted:#8e98a8;--td-gold:#f6c343;--td-green:#18d990;--td-red:#ff5b6e;--td-blue:#60a5fa;position:relative;max-width:1500px;margin:0 auto;color:var(--td-text);font-family:Inter,Arial,sans-serif}
.trade-dashboard:before,.trade-dashboard:after{content:"";position:fixed;pointer-events:none;border-radius:50%;filter:blur(80px);opacity:.12;z-index:-1;animation:tradeDrift 12s ease-in-out infinite alternate}.trade-dashboard:before{width:320px;height:320px;background:var(--td-gold);left:16%;top:-150px}.trade-dashboard:after{width:370px;height:370px;background:var(--td-green);right:-180px;top:30%;animation-delay:-5s}@keyframes tradeDrift{to{transform:translate3d(38px,28px,0) scale(1.08)}}
.trade-hero{position:relative;overflow:hidden;border:1px solid rgba(246,195,67,.2);border-radius:26px;background:linear-gradient(110deg,rgba(246,195,67,.09),rgba(24,217,144,.035) 55%,rgba(255,255,255,.02)),#10141a;padding:28px;box-shadow:0 24px 80px rgba(0,0,0,.4);animation:tradeRise .65s ease both;transition:transform .25s ease}
.trade-hero:before{content:"";position:absolute;right:-75px;top:-115px;width:380px;height:380px;border:1px solid rgba(246,195,67,.16);border-radius:50%;box-shadow:0 0 0 38px rgba(246,195,67,.04),0 0 0 77px rgba(24,217,144,.025);animation:tradePulse 7s ease-in-out infinite}.trade-hero:after{content:"";position:absolute;right:9%;bottom:-115px;width:280px;height:280px;background:radial-gradient(circle,rgba(24,217,144,.15),transparent 68%)}@keyframes tradePulse{50%{transform:scale(1.07);opacity:.62}}@keyframes tradeRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.trade-hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.35fr .65fr;gap:22px;align-items:stretch}
.trade-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aab4c3;
    font-size: 12px;
    margin-top: -2%;
}.trade-live-dot{width:7px;height:7px;border-radius:50%;background:var(--td-green);box-shadow:0 0 0 6px rgba(24,217,144,.08);animation:tradeBlink 1.8s infinite}@keyframes tradeBlink{50%{opacity:.35}}
.trade-hero-main h1{margin:10px 0 20px;font-size:25px;font-weight:800}.trade-hero-main h1 span{color:var(--td-gold)}.trade-portfolio-label{color:var(--td-muted);font-size:11px;font-weight:700;letter-spacing:1.1px; margin-top: -1%;}.trade-portfolio-value{display:flex;align-items:baseline;gap:7px;margin:7px 0 10px;font-size:46px;font-weight:700;letter-spacing:-2px}.trade-portfolio-value small{color:#818b9a;font-family:Inter,Arial,sans-serif;font-size:12px;letter-spacing:0}.trade-uid{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;padding:7px 9px;border:1px solid var(--td-border);border-radius:7px;background:rgba(255,255,255,.04);color:#b7c0cd;font-size:10px; }.trade-uid b{color:#fff;letter-spacing:.5px}.trade-uid button,.trade-referral-copy button{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:var(--td-gold);padding:0}.trade-uid button svg,.trade-referral-copy button svg{width:14px;height:14px}.trade-uid em,.trade-referral-copy em{font-style:normal;font-size:9px}.trade-hero-actions{display:flex;gap:9px}.trade-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 17px;border:1px solid transparent;border-radius:11px;font-size:12px;font-weight:850;transition:.2s ease}.trade-btn:hover{transform:translateY(-2px);color:inherit}.trade-btn svg{width:16px;height:16px}.trade-btn-gold{background:linear-gradient(105deg,var(--td-gold),#ffdf6b);color:#111;box-shadow:0 9px 24px rgba(246,195,67,.14)}.trade-btn-dark{border-color:#3a424e;background:rgba(255,255,255,.04);color:#fff}
.trade-hero-side{display:flex;flex-direction:column;justify-content:space-between;gap:13px}.trade-pnl-card{padding:18px;border:1px solid var(--td-border);border-radius:17px;background:rgba(7,10,14,.58);backdrop-filter:blur(10px)}.trade-pnl-head{display:flex;align-items:center;justify-content:space-between}.trade-pnl-head span{color:var(--td-muted);font-size:11px}.trade-pnl-head b{padding:5px 7px;border-radius:999px;background:rgba(24,217,144,.1);color:var(--td-green);font-size:9px}.trade-pnl-value{margin:9px 0 3px;color:var(--td-green);font-size:25px;font-weight:850}.trade-pnl-card.negative .trade-pnl-value{color:var(--td-red)}.trade-pnl-card.neutral .trade-pnl-value{color:#c9d0da}.trade-pnl-sub{color:#6f7987;font-size:10px}.trade-sparkline{height:54px;margin-top:11px}.trade-sparkline svg{width:100%;height:100%;overflow:visible}.trade-spark-area{fill:url(#tradeSparkFill)}.trade-spark-line{fill:none;stroke:var(--td-green);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:330;stroke-dashoffset:330;animation:tradeDraw 1.5s .35s ease forwards}.negative .trade-spark-line{stroke:var(--td-red)}@keyframes tradeDraw{to{stroke-dashoffset:0}}
.trade-quick-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.trade-quick-row>div{padding:12px;border:1px solid var(--td-border);border-radius:13px;background:rgba(255,255,255,.028)}.trade-quick-row span{display:block;color:var(--td-muted);font-size:9px}.trade-quick-row strong{display:block;margin-top:5px;font-size:13px}
.trade-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:20px}.trade-metric-card{position:relative;display:flex;align-items:flex-start;gap:13px;min-height:130px;padding:18px;border:1px solid var(--td-border);border-radius:18px;background:linear-gradient(145deg,var(--td-surface2),var(--td-surface));transition:.25s ease;animation:tradeRise .65s both}.trade-metric-card:nth-child(2){animation-delay:.06s}.trade-metric-card:nth-child(3){animation-delay:.12s}.trade-metric-card:nth-child(4){animation-delay:.18s}.trade-metric-card:hover{transform:translateY(-5px);border-color:#3d4653;box-shadow:0 18px 40px rgba(0,0,0,.27)}.trade-metric-card>div:last-child{min-width:0}.trade-metric-icon{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border-radius:11px;background:rgba(246,195,67,.09);color:var(--td-gold)}.trade-metric-icon.green{background:rgba(24,217,144,.09);color:var(--td-green)}.trade-metric-icon.blue{background:rgba(96,165,250,.09);color:var(--td-blue)}.trade-metric-icon svg{width:20px;height:20px}.trade-metric-card span{display:block;color:var(--td-muted);font-size:10px;font-weight:700}.trade-metric-card strong{display:block;margin:9px 0 7px;overflow:hidden;color:#fff;font-size:21px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.trade-metric-card .green-text{color:var(--td-green)}.trade-metric-card small{display:block;color:#657080;font-size:9.5px;line-height:1.45}
.trade-content-grid,.trade-lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.trade-panel{padding:20px;border:1px solid var(--td-border);border-radius:20px;background:linear-gradient(145deg,var(--td-surface2),var(--td-surface));box-shadow:0 16px 45px rgba(0,0,0,.16);animation:tradeRise .65s .12s both}.trade-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.trade-panel-head h2{margin:0;color:#fff;font-size:14px;font-weight:800}.trade-panel-head p{margin:5px 0 0;color:var(--td-muted);font-size:10px;line-height:1.5}.trade-panel-head>a{color:var(--td-gold);font-size:10px;font-weight:700}.trade-rate-badge{padding:7px 10px;border:1px solid rgba(24,217,144,.3);border-radius:999px;background:rgba(24,217,144,.1);color:var(--td-green);font-size:13px;font-weight:900}
.trade-wallet-overview{display:grid;grid-template-columns:210px 1fr;gap:24px;align-items:center}.trade-ring{display:grid;width:190px;height:190px;place-items:center;border-radius:50%;background:conic-gradient(var(--td-gold) 0 var(--investment-end),var(--td-green) var(--investment-end) var(--profit-end),var(--td-blue) var(--profit-end) 100%);position:relative;box-shadow:0 0 40px rgba(246,195,67,.08)}.trade-ring:before{content:"";position:absolute;inset:17px;border-radius:50%;background:#11161d;border:1px solid var(--td-border)}.trade-ring>div{position:relative;z-index:1;text-align:center}.trade-ring span{display:block;color:var(--td-muted);font-size:6px}.trade-ring strong{display:block;margin-top:5px;font-size:18px}.trade-wallet-list{display:grid;gap:15px}.trade-wallet-row{display:grid;grid-template-columns:10px 1fr auto;gap:9px;align-items:center}.trade-wallet-row>i{width:9px;height:9px;border-radius:50%;background:var(--td-gold)}.trade-wallet-row>i.profit{background:var(--td-green)}.trade-wallet-row>i.commission{background:var(--td-blue)}.trade-wallet-row>span{font-size:11px;font-weight:700}.trade-wallet-row small{display:block;margin-top:3px;color:var(--td-muted);font-size:8.5px;font-weight:500}.trade-wallet-row strong{font-size:11px}.trade-wallet-bar{height:5px;margin:7px 0 0 19px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.045)}.trade-wallet-bar b{display:block;height:100%;border-radius:99px;background:var(--td-gold);animation:tradeBar 1.2s ease both}.trade-wallet-bar b.profit{background:var(--td-green)}.trade-wallet-bar b.commission{background:var(--td-blue)}@keyframes tradeBar{from{width:0}}
.trade-referral-preview{display:grid;grid-template-columns:minmax(0,fr) 136px;gap:12px;margin-bottom:12px}.trade-referral-poster{overflow:hidden;min-height:142px;border:1px solid rgba(246,195,67,.18);border-radius:15px;background:#080a0d}.trade-referral-poster img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}.trade-referral-poster:hover img{transform:scale(1.025)}.trade-referral-qr{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:9px;border:1px solid rgba(24,217,144,.2);border-radius:15px;background:rgba(24,217,144,.045);text-align:center}.trade-qr-code{display:grid;width:91px;height:91px;place-items:center;overflow:hidden;border-radius:8px;background:#fff;padding:4px}.trade-qr-code svg{display:block;width:100%;height:100%}.trade-qr-label{margin-bottom:6px;color:var(--td-green);font-size:9px;font-weight:800;text-transform:uppercase}.trade-referral-qr small{margin-top:6px;color:var(--td-muted);font-size:7.5px}.trade-referral-copy{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 11px;border:1px solid var(--td-border);border-radius:11px;background:#0e1218}.trade-referral-copy>span{min-width:0;flex:1;overflow:hidden;color:#dce2ea;font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}.trade-share-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}.trade-share{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:35px;padding:0 11px;border:1px solid var(--td-border);border-radius:9px;background:rgba(255,255,255,.025);color:#fff;font-size:9.5px;font-weight:700}.trade-share:hover{transform:translateY(-1px);color:#fff}.trade-share svg{width:14px;height:14px}.trade-share.wa{color:#63e99c}.trade-share.tg{color:#66c7ff}.trade-share.native{color:var(--td-gold)}.trade-share.preview{color:#c5ced9}.trade-referral-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.trade-referral-stats>div{padding:11px;border:1px solid var(--td-border);border-radius:11px;background:rgba(255,255,255,.025)}.trade-referral-stats span{display:block;color:var(--td-muted);font-size:8.5px}.trade-referral-stats strong{display:block;margin-top:5px;font-size:13px}
.trade-activity-list{display:grid;gap:10px}.trade-activity-list>div{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--td-border);border-radius:13px;background:rgba(255,255,255,.022)}.trade-activity-list i{display:grid;width:36px;height:36px;place-items:center;border-radius:11px;background:rgba(96,165,250,.08);color:var(--td-blue)}.trade-activity-list i.gold{background:rgba(246,195,67,.08);color:var(--td-gold)}.trade-activity-list i.green{background:rgba(24,217,144,.08);color:var(--td-green)}.trade-activity-list svg{width:18px;height:18px}.trade-activity-list span{font-size:10.5px;font-weight:700}.trade-activity-list small{display:block;margin-top:4px;color:var(--td-muted);font-size:8.5px;font-weight:500}.trade-activity-list>div>strong{font-size:14px}.trade-activity-list .active{color:var(--td-green);font-size:11px}
.trade-social-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.trade-social-grid a{display:flex;min-height:68px;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px solid var(--td-border);border-radius:12px;background:rgba(255,255,255,.022);color:#b9c2ce;font-size:8.5px;font-weight:700;transition:.2s}.trade-social-grid a:hover{transform:translateY(-3px);border-color:rgba(246,195,67,.4);color:#fff}.trade-social-grid span{display:grid;width:28px;height:28px;place-items:center;border-radius:9px;background:#222933;color:#fff;font-size:13px;font-weight:900}.trade-social-grid .wa span{color:#25d366}.trade-social-grid .fb span{color:#4c89ff}.trade-social-grid .ig span{color:#f153a6}.trade-social-grid .tt span{color:#fff}.trade-social-grid .tg span{color:#2aabee}.trade-social-grid .th span{color:#fff}.trade-social-grid .dc span{color:#8891ff}.trade-social-grid .sp span{color:var(--td-gold)}
    .trade-social-grid .sp.youtube span {
        color: #ff0000;
    }

        .trade-social-grid .sp.youtube span svg {
            width: 22px;
            height: 22px;
            display: block;
        }

    .trade-social-grid .sp.youtube:hover {
        border-color: #ff0000;
    }

/* Public referral landing page and social link preview */
.referral-public-body{min-height:100vh;margin:0;background:radial-gradient(circle at 80% 0,rgba(24,217,144,.12),transparent 30%),radial-gradient(circle at 15% 0,rgba(246,195,67,.12),transparent 28%),#07090d;color:#f5f7fa;font-family:Inter,Arial,sans-serif}.ref-public-shell{position:relative;min-height:100vh;overflow:hidden}.ref-public-glow{position:fixed;border-radius:50%;filter:blur(80px);opacity:.14;pointer-events:none}.ref-public-glow-a{width:380px;height:380px;background:#f6c343;left:-190px;top:-180px}.ref-public-glow-b{width:430px;height:430px;background:#18d990;right:-220px;bottom:-160px}.ref-public-header{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;max-width:1200px;margin:auto;padding:24px 24px}.ref-public-brand{display:flex;align-items:center;gap:10px;color:#fff}.ref-public-brand>span{display:grid;width:39px;height:39px;place-items:center;border-radius:12px;background:linear-gradient(145deg,#ffdf6b,#b87900);color:#111;font-weight:900}.ref-public-brand strong{font-size:18px}.ref-public-brand b{color:#f6c343}.ref-public-login{padding:9px 14px;border:1px solid rgba(255,255,255,.14);border-radius:10px;color:#fff;font-size:12px;font-weight:700}.ref-public-main{position:relative;z-index:1;max-width:1200px;margin:auto;padding:24px 24px 60px}.ref-public-card{display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:27px;background:rgba(17,21,27,.94);box-shadow:0 35px 100px rgba(0,0,0,.45)}.ref-public-poster{position:relative;display:flex;min-height:680px;align-items:center;justify-content:center;overflow:hidden;padding:24px;background:#050608;isolation:isolate}.ref-public-poster::before{content:"";position:absolute;z-index:-2;inset:-28px;background:url("../images/referral/olx-referral-og.jpg") center/cover no-repeat;filter:blur(22px) brightness(.42);opacity:.65;transform:scale(1.08)}.ref-public-poster::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(5,6,8,.2),rgba(5,6,8,.68)),radial-gradient(circle at 50% 45%,rgba(24,217,144,.08),transparent 45%)}.ref-public-poster img{position:relative;z-index:1;display:block;width:100%;height:auto;max-height:632px;object-fit:contain;border:1px solid rgba(246,195,67,.16);border-radius:18px;background:#050608;box-shadow:0 22px 60px rgba(0,0,0,.55)}.ref-public-content{padding:44px}.ref-public-eyebrow{color:#f6c343;font-size:11px;font-weight:800;letter-spacing:1.3px;text-transform:uppercase}.ref-public-content h1{margin:13px 0 13px;font-size:38px;line-height:1.12;font-weight:900}.ref-public-content>p{margin:0 0 20px;color:#929dab;font-size:13px;line-height:1.7}.ref-public-rate{display:flex;align-items:center;gap:14px;margin-bottom:19px;padding:15px;border:1px solid rgba(24,217,144,.22);border-radius:15px;background:rgba(24,217,144,.06)}.ref-public-rate strong{color:#18d990;font-size:35px}.ref-public-rate span{color:#dce3eb;font-size:11px;line-height:1.5}.ref-public-grid{display:grid;grid-template-columns:1fr 165px;gap:12px}.ref-public-code,.ref-public-qr{padding:15px;border:1px solid rgba(255,255,255,.085);border-radius:15px;background:#0c1016}.ref-public-code{display:flex;min-width:0;flex-direction:column;justify-content:center}.ref-public-code span,.ref-public-qr>span{color:#8e98a8;font-size:9px;font-weight:700;text-transform:uppercase}.ref-public-code strong{display:block;margin:8px 0 13px;overflow:hidden;color:#fff;font-size:13px;text-overflow:ellipsis}.ref-public-code button{align-self:flex-start;border:0;border-radius:8px;background:rgba(246,195,67,.12);color:#f6c343;padding:7px 10px;font-size:9px;font-weight:800}.ref-public-qr{text-align:center}.ref-public-qr-code{display:grid;width:125px;height:125px;margin:7px auto;place-items:center;overflow:hidden;border-radius:10px;background:#fff;padding:5px}.ref-public-qr-code svg{display:block;width:100%;height:100%}.ref-public-qr small{color:#798391;font-size:8px}.ref-public-cta{display:flex;height:48px;align-items:center;justify-content:center;margin-top:15px;border-radius:12px;background:linear-gradient(105deg,#f6c343,#ffdf6b);color:#111;font-size:12px;font-weight:900}.ref-public-cta:hover{color:#111;transform:translateY(-1px)}.ref-public-share{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.ref-public-share a{display:flex;height:39px;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:rgba(255,255,255,.025);color:#fff;font-size:9.5px;font-weight:750}.ref-public-trust{display:flex;justify-content:space-between;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.07);color:#7f8996;font-size:8.5px}

@media(max-width:1180px){.trade-metrics{grid-template-columns:repeat(2,1fr)}.trade-wallet-overview{grid-template-columns:180px 1fr}.trade-ring{width:165px;height:165px}.ref-public-card{grid-template-columns:1fr}.ref-public-poster{min-height:420px}.ref-public-poster img{max-height:470px}}
@media(max-width:900px){.trade-hero-grid{grid-template-columns:1fr}.trade-content-grid,.trade-lower-grid{grid-template-columns:1fr}.trade-hero-side{display:grid;grid-template-columns:1.2fr .8fr}.trade-referral-preview{grid-template-columns:1fr 130px}}
@media(max-width:700px){.trade-dashboard{margin:-6px -8px 0}.trade-hero{padding:10px 15px;border-radius:19px}.trade-hero-main{padding-right:0;position:relative}.trade-hero-main h1{font-size:19px;margin-bottom:16px}.trade-portfolio-value{font-size:34px}.trade-hero-actions{position:static;right:auto;top:auto;display:grid;grid-template-columns:1fr 1fr;width:100%;max-width:100%;gap:8px;margin-top:14px;flex-direction:row}.trade-hero-actions .trade-btn{width:100%;min-width:0;height:38px;padding:0 10px;border-radius:10px;font-size:12px;box-sizing:border-box}.trade-btn{height:38px;padding:0 10px;border-radius:10px;font-size:12px}.trade-btn svg{width:14px;height:14px;flex-shrink:0}.trade-hero-side{grid-template-columns:1fr}
    .trade-pnl-card {
        padding: 14px;
        margin-top: -6%;
    }.trade-quick-row{grid-template-columns:1fr 1fr}.trade-metrics{grid-template-columns:repeat(2,1fr);gap:9px}.trade-metric-card{min-height:112px;padding:13px;gap:9px;border-radius:14px}.trade-metric-icon{width:31px;height:31px;flex-basis:31px}.trade-metric-icon svg{width:16px;height:16px}.trade-metric-card strong{font-size:15px}.trade-panel{padding:15px;border-radius:16px}.trade-wallet-overview{grid-template-columns:1fr}.trade-ring{width:155px;height:155px;margin:auto}.trade-referral-preview{grid-template-columns:1fr 105px}.trade-referral-poster{min-height:110px}.trade-qr-code{width:72px;height:72px}.trade-social-grid{grid-template-columns:repeat(4,1fr)}.ref-public-main{padding:12px 12px 35px}.ref-public-header{padding:16px 14px}.ref-public-content{padding:24px 18px}.ref-public-content h1{font-size:28px}.ref-public-grid{grid-template-columns:1fr}.ref-public-qr-code{width:150px;height:150px}.ref-public-trust{flex-wrap:wrap}.ref-public-poster{min-height:0;padding:12px}.ref-public-poster img{width:100%;height:auto;max-height:none;min-height:0;border-radius:12px}}
@media(max-width:430px){.trade-metrics{grid-template-columns:1fr 1fr}.trade-metric-card{display:block}.trade-metric-icon{margin-bottom:11px}.trade-referral-preview{grid-template-columns:1fr}.trade-referral-qr{flex-direction:row;gap:9px;justify-content:flex-start}.trade-qr-code{width:65px;height:65px;order:-1}.trade-referral-qr small{display:block}.trade-share{flex:1}.trade-social-grid{grid-template-columns:repeat(3,1fr)}.trade-activity-list>div{grid-template-columns:34px 1fr auto}.ref-public-share{grid-template-columns:1fr}.ref-public-content h1{font-size:24px}}



/* Withdrawal email OTP */
.withdraw-otp-shell{min-height:calc(100vh - 220px);display:grid;place-items:center;padding:28px 0}
.withdraw-otp-card{width:min(620px,100%);position:relative;overflow:hidden;border-color:rgba(240,185,11,.22)!important;background:radial-gradient(circle at 100% 0,rgba(240,185,11,.08),transparent 35%),var(--card-bg,#1e2329)}
.withdraw-otp-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,transparent,var(--gold,#f0b90b),transparent)}
.withdraw-otp-icon{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;color:var(--gold,#f0b90b);background:rgba(240,185,11,.1);border:1px solid rgba(240,185,11,.24);margin-bottom:20px}
.withdraw-otp-icon svg{width:31px;height:31px}
.withdraw-otp-heading .eyebrow{display:block;color:var(--gold,#f0b90b);font-size:11px;font-weight:800;letter-spacing:.14em;margin-bottom:8px}
.withdraw-otp-heading h2{font-size:28px;margin:0 0 8px;color:#fff}
.withdraw-otp-heading p{color:var(--text-muted,#848e9c);margin:0 0 24px;line-height:1.65}
.withdraw-otp-heading strong{color:#fff}
.withdraw-otp-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#2b3139;border:1px solid #2b3139;border-radius:13px;overflow:hidden;margin-bottom:24px}
.withdraw-otp-summary>div{background:#15191f;padding:15px 17px;display:flex;flex-direction:column;gap:6px;min-width:0}
.withdraw-otp-summary span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#848e9c}
.withdraw-otp-summary strong{font-size:13px;color:#f5f5f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.withdraw-otp-input{text-align:center!important;font-size:28px!important;font-weight:800!important;letter-spacing:.42em!important;padding-left:calc(.42em + 18px)!important;height:64px!important;border-color:rgba(240,185,11,.45)!important}
.withdraw-otp-input:focus{box-shadow:0 0 0 3px rgba(240,185,11,.12)!important}
.withdraw-otp-timer{display:flex;align-items:center;justify-content:center;gap:8px;color:#b7bdc6;font-size:13px;margin:14px 0 18px}
.otp-timer-dot{width:7px;height:7px;border-radius:50%;background:#0ecb81;box-shadow:0 0 0 5px rgba(14,203,129,.08);animation:otpPulse 1.4s infinite}
.withdraw-otp-timer strong{color:#fff}
.withdraw-otp-timer.expired{color:#f6465d}.withdraw-otp-timer.expired .otp-timer-dot{background:#f6465d;animation:none;box-shadow:0 0 0 5px rgba(246,70,93,.08)}
.withdraw-otp-actions{display:flex;gap:10px;margin:12px 0 18px}.withdraw-otp-actions form,.withdraw-otp-actions .btn{flex:1}.withdraw-otp-actions button{width:100%}
@keyframes otpPulse{0%,100%{transform:scale(.85);opacity:.7}50%{transform:scale(1.1);opacity:1}}
@media(max-width:600px){.withdraw-otp-shell{padding:8px 0;min-height:auto}.withdraw-otp-card{border-radius:14px!important}.withdraw-otp-summary{grid-template-columns:1fr}.withdraw-otp-heading h2{font-size:23px}.withdraw-otp-actions{flex-direction:column}.withdraw-otp-input{font-size:25px!important;letter-spacing:.32em!important}}

.brand-logo{max-width:190px;width:100%;height:auto;display:block}.olx-auth-logo+.brand-logo{display:block}


/* ================= OLX TRADE MOBILE RESPONSIVE UPDATE ================= */

@media (max-width: 768px) {

    html, body {
        overflow-x: hidden;
    }

    .container,
    .page-container,
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Dashboard cards */
    .dashboard-grid,
    .stats-grid,
    .wallet-grid,
    .card-grid,
    .mini-stat-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .card,
    .mini-stat,
    .wallet-card {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
    }

    .balance-hero,
    .hero-card {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .balance-hero-top {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .balance-actions,
    .action-buttons {
        width:100%;
        display:flex;
        gap:10px;
    }

    .balance-actions .btn,
    .action-buttons .btn {
        flex:1;
        width:100%;
    }

    /* Dashboard numbers */
    .balance-amount {
        font-size: 32px !important;
    }

    .portfolio-chart,
    canvas {
        max-width:100% !important;
    }

    /* Header */
    .logo img,
    .brand-logo {
        max-width:150px !important;
        height:auto;
    }

    /* Tables convert */
    .table-responsive {
        overflow-x:hidden !important;
    }

    table {
        display:block;
        width:100%;
    }

    thead {
        display:none;
    }

    tbody,
    tr {
        display:block;
        width:100%;
    }

    tr {
        margin-bottom:14px;
        background:var(--card-bg, #181d24);
        border-radius:14px;
        padding:12px;
    }

    td {
        display:flex;
        justify-content:space-between;
        gap:10px;
        border:0 !important;
        padding:7px 0 !important;
        text-align:right;
    }

    td:before {
        content:attr(data-label);
        color:#8b96aa;
        font-weight:600;
        text-align:left;
    }

    /* Withdrawal form */
    .withdrawal-form,
    .form-grid,
    .two-column,
    .payment-grid {
        display:flex !important;
        flex-direction:column !important;
        width:100% !important;
        gap:14px !important;
    }

    input,
    select,
    textarea,
    .form-control {
        width:100% !important;
        box-sizing:border-box;
    }

    .otp-box {
        width:100% !important;
    }

    .withdraw-btn,
    .submit-btn {
        width:100% !important;
        height:48px;
    }

    /* Referral/social */
    .social-links {
        display:grid !important;
        grid-template-columns:repeat(3,1fr);
        gap:10px;
    }

    .referral-card {
        flex-direction:column !important;
    }
}

@media (max-width:420px){
    .social-links {
        grid-template-columns:repeat(2,1fr);
    }

    .balance-amount {
        font-size:28px !important;
    }

    h1,h2 {
        font-size:22px !important;
    }
}
/* ===========================================================
   FINAL MOBILE FIX
   Portfolio Distribution + Invite & Earn
=========================================================== */

@media(max-width:768px) {

    /* All dashboard panels */
    .trade-panel,
    .trade-content-grid,
    .trade-lower-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }


    /* Portfolio Distribution */

    .trade-wallet-overview {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        width: 100%;
        gap: 18px;
    }


    .trade-ring {
        width: 150px !important;
        height: 150px !important;
        flex-shrink: 0;
    }


    .trade-wallet-list {
        width: 100%;
        max-width: 100%;
    }


    .trade-wallet-row {
        width: 100%;
        grid-template-columns: 10px minmax(0,1fr) auto !important;
    }


        .trade-wallet-row span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
        }


        .trade-wallet-row strong {
            white-space: nowrap;
        }


    .trade-wallet-bar {
        width: calc(100% - 19px);
    }



    /* Invite & Earn */


    .trade-referral-preview {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
    }


    .trade-referral-poster {
        width: 100%;
        height: auto;
        min-height: 0 !important;
    }


        .trade-referral-poster img {
            width: 100%;
            height: auto;
            max-height: none;
            object-fit: contain;
        }


    .trade-referral-qr {
        width: 100%;
        min-height: 100px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }


    .trade-qr-code {
        width: 80px;
        height: 80px;
    }



    .trade-referral-copy {
        width: 100%;
        overflow: hidden;
    }


        .trade-referral-copy span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
}



/* Small phones */

@media(max-width:430px) {


    .trade-panel {
        padding: 14px !important;
        border-radius: 15px;
    }


    .trade-panel-head h2 {
        font-size: 13px;
    }


    .trade-panel-head p {
        font-size: 9px;
    }


    .trade-ring {
        width: 130px !important;
        height: 130px !important;
    }


    .trade-wallet-row {
        grid-template-columns: 8px minmax(0,1fr) auto !important;
    }


        .trade-wallet-row strong {
            font-size: 10px;
        }


    .trade-referral-poster {
        border-radius: 12px;
    }
}
@media(max-width:768px){

.data-table tbody td{

    display:flex;
    align-items:center;

    gap:20px;              /* reduce space between label/value */

    justify-content:flex-start;

    padding:5px 0;

    border:0;

    font-size:12px;

}


.data-table td::before{

    width:85px;            /* fixed label width */

    flex-shrink:0;

    color:#8b95a5;

    font-size:11px;

    font-weight:600;

}


.data-table tbody td .mono,
.data-table tbody td span,
.data-table tbody td:not(::before){

    text-align:right;

}


}
@media(max-width:768px) {

    /* Hide desktop table header */
    .data-table thead {
        display: none !important;
    }

    /* Card layout — kill horizontal scroll from desktop min-width */
    .table-wrap {
        overflow-x: hidden;
    }

    .data-table,
    .data-table tbody,
    .data-table tr {
        display: block;
        width: 100%;
        min-width: 0 !important;
        max-width: 100%;
    }


        .data-table tbody tr {
            background: #181c23;
            border-radius: 14px;
            padding: 12px 14px;
            margin-bottom: 12px;
            border: 1px solid rgba(255,255,255,.06);
        }



        .data-table tbody td {
            display: flex !important;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            padding: 6px 0 !important;
            border: 0 !important;
            font-size: 12px;
            color: #fff;
            min-width: 0;
            max-width: 100% !important;
            width: 100% !important;
            overflow-wrap: anywhere;
            word-break: break-word;
            white-space: normal;
            text-align: right;
            box-sizing: border-box;
        }

        .data-table tbody td.mono {
            max-width: 100% !important;
            width: 100% !important;
            text-align: right !important;
            word-break: break-word;
            overflow-wrap: anywhere;
        }

        .data-table tbody td > * {
            margin-left: auto;
            text-align: right;
            min-width: 0;
        }



            /* Label */

            .data-table tbody td::before {
                width: 96px;
                flex: 0 0 96px;
                flex-shrink: 0;
                color: #8b95a5;
                font-size: 11px;
                font-weight: 600;
                text-transform: uppercase;
                text-align: left !important;
                margin-left: 0;
            }



            /* Column labels */

            .data-table tbody td:nth-child(1)::before {
                content: "Date";
            }

            .data-table tbody td:nth-child(2)::before {
                content: "Reference";
            }

            .data-table tbody td:nth-child(3)::before {
                content: "Method";
            }

            .data-table tbody td:nth-child(4)::before {
                content: "Transaction ID";
            }

            .data-table tbody td:nth-child(5)::before {
                content: "Amount";
            }

            .data-table tbody td:nth-child(6)::before {
                content: "Deposit";
            }

            .data-table tbody td:nth-child(7)::before {
                content: "Status";
            }



            /* Important values */

            .data-table tbody td:nth-child(5) {
                color: #F0B90B;
                font-weight: 700;
            }


            .data-table tbody td:nth-child(6) {
                color: #00c087;
                font-weight: 700;
            }
}
/* =====================================
   WITHDRAWAL TABLE MOBILE
===================================== */

@media (max-width: 768px) {
  /* Stacked cards — no horizontal scroll on small screens */
  .table-wrap:has(.withdrawal-table) {
    overflow-x: hidden;
  }

  .withdrawal-table,
  .withdrawal-table tbody,
  .withdrawal-table tbody tr {
    display: block;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
  }

  .withdrawal-table thead {
    display: none !important;
  }

  .withdrawal-table tbody tr {
    background: #181c23;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .withdrawal-table tbody td {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0 !important;
    border: none !important;
    font-size: 12px;
    color: #fff;
    min-width: 0;
    max-width: 100% !important;
    width: 100% !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    text-align: right;
    box-sizing: border-box;
  }

  .withdrawal-table tbody td > * {
    min-width: 0;
    margin-left: auto;
    text-align: right;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .withdrawal-table tbody td.mono,
  .withdrawal-table.data-table tbody td.mono {
    max-width: 100% !important;
    width: 100% !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    text-align: right !important;
  }

  /* Higher specificity so deposit .data-table labels do not win */
  .withdrawal-table.data-table tbody td::before {
    width: 110px;
    flex: 0 0 110px;
    flex-shrink: 0;
    color: #8b95a5;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: left !important;
    margin-left: 0;
  }

  .withdrawal-table.data-table tbody td:nth-child(1)::before { content: "Date"; }
  .withdrawal-table.data-table tbody td:nth-child(2)::before { content: "Reference"; }
  .withdrawal-table.data-table tbody td:nth-child(3)::before { content: "Wallet"; }
  .withdrawal-table.data-table tbody td:nth-child(4)::before { content: "Transaction ID"; }
  .withdrawal-table.data-table tbody td:nth-child(5)::before { content: "Destination"; }
  .withdrawal-table.data-table tbody td:nth-child(6)::before { content: "Amount"; }
  .withdrawal-table.data-table tbody td:nth-child(7)::before { content: "Fee"; }
  .withdrawal-table.data-table tbody td:nth-child(8)::before { content: "Receive"; }
  .withdrawal-table.data-table tbody td:nth-child(9)::before { content: "Profit Used"; }
  .withdrawal-table.data-table tbody td:nth-child(10)::before { content: "Commission"; }
  .withdrawal-table.data-table tbody td:nth-child(11)::before { content: "Investment"; }
  .withdrawal-table.data-table tbody td:nth-child(12)::before { content: "Status"; }

  .withdrawal-table.data-table tbody td:nth-child(6) {
    color: #F0B90B;
    font-weight: 700;
  }

  .withdrawal-table.data-table tbody td:nth-child(8) {
    color: #00c087;
    font-weight: 700;
  }
}
.phone-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}


    .phone-input span {
        padding: 0 14px;
        height: 100%;
        display: flex;
        align-items: center;
        background: rgba(240,185,11,.08);
        color: #F0B90B;
        font-weight: 700;
    }


    .phone-input input {
        border: 0 !important;
        flex: 1;
    }

/* ===========================================================
   Company Info / About Us
   =========================================================== */
.ci-page {
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.ci-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.ci-breadcrumb a {
  color: var(--gold);
  transition: color 0.15s;
}

.ci-breadcrumb a:hover { color: var(--gold-soft); }

.ci-breadcrumb-sep { color: var(--text-faint); font-size: 15px; }

.ci-heading {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.3px;
  position: relative;
  display: inline-block;
}

.ci-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.ci-heading-sm { font-size: 22px; }

.ci-about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.ci-about-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 520px;
}

.ci-about-logo {
  display: flex;
  justify-content: center;
}

.ci-logo-ring {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 40%, rgba(240, 185, 11, 0.14), transparent 62%),
    #05070a;
  border: 2px solid rgba(240, 185, 11, 0.55);
  box-shadow:
    0 0 0 8px rgba(240, 185, 11, 0.06),
    0 0 40px rgba(240, 185, 11, 0.22),
    inset 0 0 28px rgba(240, 185, 11, 0.08);
  animation: ci-pulse 3.6s ease-in-out infinite;
}

.ci-logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.ci-logo-img {
  width: 92%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

@keyframes ci-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(240, 185, 11, 0.06), 0 0 36px rgba(240, 185, 11, 0.2), inset 0 0 28px rgba(240, 185, 11, 0.08); }
  50% { box-shadow: 0 0 0 12px rgba(240, 185, 11, 0.1), 0 0 52px rgba(240, 185, 11, 0.32), inset 0 0 32px rgba(240, 185, 11, 0.12); }
}

.ci-divider {
  border: 0;
  height: 1px;
  margin: 36px 0;
  background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.28), transparent);
}

.ci-block { margin: 0; }

.ci-mission-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ci-mission-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.ci-icon-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(240, 185, 11, 0.08);
  border: 1px solid rgba(240, 185, 11, 0.28);
}

.ci-icon-badge svg { width: 24px; height: 24px; }

.ci-offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.ci-offer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 22px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.ci-offer-item:hover {
  border-color: rgba(240, 185, 11, 0.35);
  background: rgba(240, 185, 11, 0.05);
  transform: translateY(-3px);
}

.ci-offer-item span:last-child {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.35;
}

.ci-offer-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid rgba(240, 185, 11, 0.3);
}

.ci-offer-icon svg { width: 26px; height: 26px; }

.ci-why-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.ci-why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.ci-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(240, 185, 11, 0.1);
  border: 1.5px solid rgba(240, 185, 11, 0.45);
}

.ci-check svg { width: 14px; height: 14px; }

/* Global presence */
.ci-global {
  margin-top: 48px;
  padding: 40px 28px 8px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 185, 11, 0.08), transparent 55%),
    linear-gradient(180deg, #0a1024 0%, var(--bg) 100%);
  border: 1px solid rgba(240, 185, 11, 0.12);
  text-align: center;
}

.ci-register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 36px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1500;
  background: linear-gradient(135deg, #F8D33A 0%, var(--gold) 45%, #C99400 100%);
  box-shadow: 0 6px 20px rgba(240, 185, 11, 0.28);
  transition: filter 0.15s, transform 0.15s;
  margin-bottom: 28px;
}

.ci-register-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #1a1500;
}

.ci-global-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.ci-gold-num { color: var(--gold); }

.ci-gold-grad {
  background: linear-gradient(90deg, #F8D33A, var(--gold), #C99400);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ci-global-lead {
  margin: 0 auto 28px;
  max-width: 640px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(234, 236, 239, 0.78);
}

.ci-map {
  max-width: 900px;
  margin: 0 auto 36px;
  position: relative;
}

.ci-map-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.ci-office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  text-align: left;
}

.ci-office-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(20, 28, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.ci-office-card:hover {
  border-color: rgba(240, 185, 11, 0.35);
  background: rgba(28, 38, 62, 0.95);
  transform: translateY(-2px);
}

.ci-office-accent {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--dot, var(--gold));
  box-shadow: 0 0 8px var(--dot, var(--gold));
  transform: rotate(45deg);
}

.ci-flag {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: var(--surface);
}

.ci-office-card strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.ci-office-card span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .ci-about { grid-template-columns: 1fr; gap: 28px; }
  .ci-about-logo { order: -1; }
  .ci-logo-ring { width: 200px; height: 200px; }
  .ci-offer-grid { grid-template-columns: repeat(2, 1fr); }
  .ci-heading { font-size: 24px; }
  .ci-global-title { font-size: 22px; }
  .ci-global { padding: 28px 16px 4px; }
}

@media (max-width: 640px) {
  .ci-office-grid { grid-template-columns: 1fr; }
  .ci-offer-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ci-offer-item { padding: 16px 10px; }
  .ci-offer-item span:last-child { font-size: 12.5px; }
}

@media (max-width: 768px) {
    .mini-stat-row.deposit-summary-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
}
@media (max-width: 768px) {
    .mini-stat-row.withdrawal-summary-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
}
#balanceDisplay {
    font-size: 25px;
    letter-spacing: normal;
    margin-top:-5px;
}
.trade-metrics.trade-metrics-compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.trade-metrics-compact .trade-metric-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding: 12px 14px;
}

.trade-metrics-compact .trade-metric-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

    .trade-metrics-compact .trade-metric-icon svg {
        width: 16px;
        height: 16px;
    }

.trade-metrics-compact .trade-metric-card > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trade-metrics-compact .trade-metric-card span {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trade-metrics-compact .trade-metric-card strong {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .trade-metrics.trade-metrics-compact {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 2.5%;
    }

}

@media (max-width: 786px) {
    .trade-metrics.trade-metrics-compact {
        grid-template-columns: 1fr;
        margin-top: 2.5%;
    }

    .trade-metrics-compact .trade-metric-card {
        display: flex !important; /* override the existing 430px rule that sets display:block */
    }
}
@media (max-width: 900px) {
    .trade-metrics.trade-metrics-compact {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 2.5%;
    }
}

@media (max-width: 430px) {
    .trade-metrics.trade-metrics-compact {
        grid-template-columns: repeat(2, 1fr) !important; /* keep 2-up even on small phones */
        margin-top: 2.5%;
    }

    .trade-metrics-compact .trade-metric-card {
        display: flex !important;
        padding: 10px 12px;
        gap: 8px;
    }

    .trade-metrics-compact .trade-metric-icon {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
    }

        .trade-metrics-compact .trade-metric-icon svg {
            width: 14px;
            height: 14px;
        }

    .trade-metrics-compact .trade-metric-card strong {
        font-size: 12.5px;
    }

    .trade-metrics-compact .trade-metric-card span {
        font-size: 8.5px;
    }
}
@media (max-width: 768px) {
    .mini-stat-row.withdrawal-wallet-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
}
@media (max-width: 768px) {
    .mini-stat-row.statement-summary-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .statement-summary-stats .mini-stat {
        padding: 10px 8px;
    }

    .statement-summary-stats .mini-stat-label {
        font-size: 10px;
    }

    .statement-summary-stats .mini-stat-value {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .mini-stat-row.statement-summary-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .statement-summary-stats .mini-stat {
        padding: 8px 6px;
    }

    .statement-summary-stats .mini-stat-value {
        font-size: 11.5px;
    }

    .statement-summary-stats .mini-stat-label {
        font-size: 9px;
    }
}
@media (max-width: 600px) {
    .table-wrap {
        overflow-x: hidden;
        width: 100%;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        width: 100% !important;
        box-sizing: border-box;
        white-space: normal !important;
        word-break: break-word;
    }

        /* If your card view uses data-label / flex rows per cell */
        .data-table td {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            padding: 8px 14px;
            text-align: right;
        }

            .data-table td::before {
                content: attr(data-label);
                font-weight: 600;
                color: var(--muted, #848E9C);
                text-align: left;
                flex-shrink: 0;
            }

        .data-table .mono,
        .data-table tbody td.mono {
            word-break: break-word;
            overflow-wrap: anywhere;
            text-align: right !important;
            max-width: 100% !important;
        }
}
/* Account statement table only */
.statement-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.statement-table {
    min-width: 900px;
    width: 100%;
}

/* Statement mobile — card labels match real columns (no Method) */
@media (max-width: 768px) {
    .statement-table-wrap {
        overflow-x: hidden;
        padding-bottom: 0;
    }

    .statement-table,
    .statement-table tbody,
    .statement-table tbody tr {
        display: block;
        width: 100%;
        min-width: 0 !important;
        max-width: 100%;
    }

    .statement-table thead {
        display: none !important;
    }

    .statement-table tbody tr {
        background: #181c23;
        border-radius: 14px;
        padding: 12px 14px;
        margin-bottom: 12px;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .statement-table tbody td {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 6px 0 !important;
        border: none !important;
        font-size: 12px;
        color: #fff;
        min-width: 0;
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-align: right;
        box-sizing: border-box;
    }

    .statement-table tbody td.mono,
    .statement-table.data-table tbody td.mono {
        max-width: 100% !important;
        width: 100% !important;
        word-break: break-word;
        overflow-wrap: anywhere;
        text-align: right !important;
    }

    .statement-table tbody td > * {
        min-width: 0;
        margin-left: auto;
        text-align: right;
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }

    .statement-table.data-table tbody td::before {
        width: 110px;
        flex: 0 0 110px;
        color: #8b95a5;
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        text-align: left !important;
        margin-left: 0;
    }

    .statement-table.data-table tbody td:nth-child(1)::before { content: "Date"; }
    .statement-table.data-table tbody td:nth-child(2)::before { content: "Reference"; }
    .statement-table.data-table tbody td:nth-child(3)::before { content: "Deposit"; }
    .statement-table.data-table tbody td:nth-child(4)::before { content: "Withdrawal"; }
    .statement-table.data-table tbody td:nth-child(5)::before { content: "Investment"; }
    .statement-table.data-table tbody td:nth-child(6)::before { content: "Profit"; }
    .statement-table.data-table tbody td:nth-child(7)::before { content: "Commission"; }
    .statement-table.data-table tbody td:nth-child(8)::before { content: "Running Balance"; }

    /* Clear deposit-table color overrides on statement */
    .statement-table.data-table tbody td:nth-child(5),
    .statement-table.data-table tbody td:nth-child(6) {
        color: inherit;
        font-weight: inherit;
    }
}