/* ══════════════════════════════════════════════════════════════
   BinexTradeHub — secondary & user pages
   Extends the homepage design system (home.css provides tokens).
   ══════════════════════════════════════════════════════════════ */

/* ── Page banner ──────────────────────────────────────────── */
.page-banner {
  position: relative; text-align: center;
  padding: 156px 0 72px;
  overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 260px at 50% -8%, rgba(245, 197, 58, 0.13), transparent 70%),
    radial-gradient(480px 240px at 82% 20%, rgba(240, 67, 75, 0.09), transparent 70%);
}
.page-banner::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(720px, 80vw); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 58, 0.35), transparent);
}
.page-banner .crumbs {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
  color: var(--text-3); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 22px;
}
.page-banner .crumbs a { color: var(--gold); }
.page-banner .crumbs a:hover { text-decoration: underline; }
.page-banner h1 {
  position: relative;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.page-banner .lede {
  position: relative;
  max-width: 620px; margin: 0 auto;
  color: var(--text-2); font-size: 1rem;
}

/* ── Content sections (two-col, list rows) ────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 64px; align-items: center;
}
.about-visual {
  position: relative;
  padding: 34px; border-radius: 26px;
  background:
    radial-gradient(420px 260px at 20% 0%, rgba(245, 197, 58, 0.14), transparent 70%),
    radial-gradient(380px 260px at 100% 100%, rgba(240, 67, 75, 0.12), transparent 70%),
    var(--surface);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.about-visual .av-mark {
  width: 66px; height: 66px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--grad); color: #161206;
  font-size: 1.5rem; font-weight: 800;
  box-shadow: var(--shadow-btn);
  margin-bottom: 22px;
}
.about-visual h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.about-visual p { margin: 0 0 22px; color: var(--text-3); font-size: 0.86rem; }
.about-visual .av-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about-visual .av-stat {
  padding: 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft);
  text-align: center;
}
.about-visual .av-stat b { display: block; color: var(--gold); font-size: 1.3rem; font-weight: 800; }
.about-visual .av-stat span { color: var(--text-3); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }

.about-content h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 18px; }
.about-content p { color: var(--text-2); font-size: 0.95rem; line-height: 1.75; margin: 0 0 16px; }
.about-points { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 24px 0 30px; }
.about-points li { display: flex; align-items: flex-start; gap: 11px; color: var(--text-2); font-size: 0.88rem; }
.about-points svg { flex: 0 0 auto; color: var(--gold); margin-top: 3px; }

@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.contact-item .ci-ico {
  width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(245, 197, 58, 0.22);
  color: var(--gold);
}
.contact-item b { display: block; color: var(--text-1); font-size: 0.9rem; font-weight: 800; }
.contact-item span { color: var(--text-3); font-size: 0.8rem; }
.contact-form-card { padding: 36px 34px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Forms (auth, contact, profile, deposit…) ─────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .field.full { grid-column: 1 / -1; }
.form-grid .field.half { grid-column: span 1; }

.field { position: relative; margin-bottom: 20px; }
.field-label {
  display: block; color: var(--text-3); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px;
}
.field-label .req { color: var(--gold); }

.input-wrap input, .select-wrap select {
  width: 100%; height: 58px; padding: 0 22px;
  background: var(--surface-soft); border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text-1); font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.input-wrap input::placeholder, textarea::placeholder { color: var(--text-3); }
.input-wrap input:focus, .select-wrap select:focus, textarea:focus {
  outline: none; border-color: var(--gold); background: var(--surface-strong);
}
.input-wrap input.err { border-color: var(--down); }
.input-wrap .prefix {
  position: absolute; left: 22px; top: 29px;
  color: var(--gold); font-weight: 800; font-size: 0.9rem;
}
.input-wrap .prefix.code {
  left: 14px; top: 28px;
  font-size: 0.88rem; letter-spacing: 0.02em;
  color: var(--text-2);
}
.input-wrap.has-prefix input { padding-left: 44px; }
.input-wrap.has-prefix input#phone { padding-left: 60px; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.select-wrap::after {
  content: ''; position: absolute; right: 24px; top: 26px; width: 8px; height: 8px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); pointer-events: none;
}
.select-wrap option { background: var(--bg-3); color: var(--text-1); }
textarea {
  width: 100%; min-height: 130px; padding: 16px 22px;
  background: var(--surface-soft); border: 1px solid var(--line);
  border-radius: 18px; color: var(--text-1); font-family: var(--font);
  font-size: 0.9rem; resize: vertical;
}
textarea.err { border-color: var(--down); }
.field-error { color: var(--down); font-size: 0.72rem; margin: 8px 0 0 8px; min-height: 1em; }
.field-error:empty { display: none; }

.check-row {
  display: flex; align-items: flex-start; gap: 11px;
  color: var(--text-3); font-size: 0.8rem; line-height: 1.6;
  margin: 6px 0 20px;
}
.check-row input {
  margin-top: 4px; width: 16px; height: 16px; flex: 0 0 auto;
  accent-color: var(--gold); cursor: pointer;
}
.check-row a { color: var(--gold); }
.check-row a:hover { text-decoration: underline; }

.form-alert {
  display: none;
  padding: 13px 18px; border-radius: 12px;
  border: 1px solid rgba(255, 92, 102, 0.4);
  background: rgba(255, 92, 102, 0.1);
  color: var(--down); font-size: 0.8rem; font-weight: 700;
  margin-bottom: 18px;
}
.form-alert.show { display: block; }
.form-alert.ok { border-color: rgba(133, 255, 196, 0.4); background: rgba(133, 255, 196, 0.08); color: var(--up); }
.form-note {
  padding: 14px 18px; border-radius: 12px;
  border: 1px solid rgba(245, 197, 58, 0.25);
  background: var(--grad-soft);
  color: var(--text-2); font-size: 0.76rem; line-height: 1.65;
  margin: 18px 0 0;
}

/* ── Auth pages ───────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 220px);
  display: grid; place-items: center;
  padding: 158px 0 96px;
}
.auth-card {
  position: relative;
  width: min(560px, 100% - 40px);
  padding: 46px 48px;
  border-radius: 26px;
  background:
    radial-gradient(420px 220px at 50% -8%, rgba(245, 197, 58, 0.10), transparent 70%),
    var(--surface);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-card);
}
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-logo .pre-mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad); color: #161206; font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--shadow-btn);
}
.auth-logo span { color: var(--text-1); font-weight: 800; letter-spacing: 0.06em; }
.auth-card h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.auth-card .welcome { color: var(--text-3); font-size: 0.86rem; margin: 0 0 28px; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--text-3); font-size: 0.82rem; }
.auth-foot a { color: var(--gold); font-weight: 700; }
.auth-foot a:hover { text-decoration: underline; }
.form-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 20px; font-size: 0.78rem; }
.form-row-between a { color: var(--gold); }
.form-row-between a:hover { text-decoration: underline; }
.form-row-between label { color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.form-row-between input { accent-color: var(--gold); width: 14px; height: 14px; }

/* ── Dashboard shell ──────────────────────────────────────── */
.dash {
  padding: 150px 0 80px;
  min-height: calc(100vh - 200px);
}
.dash-shell { display: grid; grid-template-columns: 256px 1fr; gap: 26px; align-items: start; }

.dash-side {
  position: sticky; top: 130px;
  padding: 20px 16px; border-radius: 20px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-card);
}
.side-user {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 18px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.side-user .su-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--grad); color: #161206; font-weight: 800; font-size: 0.95rem;
}
.side-user .su-name { color: var(--text-1); font-size: 0.86rem; font-weight: 800; line-height: 1.3; word-break: break-word; }
.side-user .su-mail { color: var(--text-3); font-size: 0.7rem; word-break: break-all; }
.side-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  color: var(--text-2); font-size: 0.84rem; font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.side-nav a svg { flex: 0 0 auto; opacity: 0.85; }
.side-nav a:hover { background: var(--surface-strong); color: var(--text-1); }
.side-nav a.active {
  background: var(--grad); color: #161206; font-weight: 800;
  box-shadow: var(--shadow-btn);
}
.side-nav a.active svg { opacity: 1; }
.side-logout {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.side-logout a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  color: var(--down); font-size: 0.84rem; font-weight: 700;
  transition: background 0.2s ease;
}
.side-logout a:hover { background: rgba(255, 92, 102, 0.1); }

.dash-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.dash-topbar { display: flex; align-items: center; gap: 14px; }
.dash-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-1); font-size: 1.05rem; cursor: pointer;
}

.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.dash-head h1 #w-name { font-weight: 900; color: var(--gold); }
.dash-head .sub { color: var(--text-3); font-size: 0.82rem; }
.dash-head .head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dcard {
  position: relative; padding: 24px 22px; border-radius: 18px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.dcard:hover { border-color: var(--line); transform: translateY(-4px); }
.dcard .dc-ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(245, 197, 58, 0.22);
  color: var(--gold); margin-bottom: 14px;
}
.dcard .dc-label { color: var(--text-3); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 5px; }
.dcard .dc-value { color: var(--text-1); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dcard .dc-value.gold { color: var(--gold); }
.dcard .dc-value.green { color: var(--up); }
.dcard .dc-note { color: var(--text-3); font-size: 0.68rem; margin-top: 4px; }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qa-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-soft);
  color: var(--text-1); font-size: 0.84rem; font-weight: 700;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.qa-btn svg { color: var(--gold); flex: 0 0 auto; }
.qa-btn:hover { border-color: var(--gold); transform: translateY(-3px); background: var(--surface-strong); color: var(--text-1); }

.panel {
  padding: 28px 30px; border-radius: 20px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.panel-head a { color: var(--gold); font-size: 0.78rem; font-weight: 700; }
.panel-head a:hover { text-decoration: underline; }

/* ── Tables & badges ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.84rem; min-width: 560px; }
.table th {
  text-align: left; padding: 12px 16px;
  color: var(--text-3); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
  white-space: nowrap;
}
.table tr:last-child td { border-bottom: 0; }
.table td b { color: var(--text-1); }
.table .dim { color: var(--text-3); font-size: 0.78rem; }
.table .pos { color: var(--up); font-weight: 700; }
.table .neg { color: var(--down); font-weight: 700; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-green { background: rgba(133, 255, 196, 0.12); color: var(--up); border: 1px solid rgba(133, 255, 196, 0.3); }
.badge-gold { background: rgba(245, 197, 58, 0.12); color: var(--gold); border: 1px solid rgba(245, 197, 58, 0.3); }
.badge-red { background: rgba(255, 92, 102, 0.12); color: var(--down); border: 1px solid rgba(255, 92, 102, 0.3); }
.badge-dim { background: rgba(255, 255, 255, 0.06); color: var(--text-3); border: 1px solid var(--line-soft); }

/* ── Investments ──────────────────────────────────────────── */
.invest-list { display: flex; flex-direction: column; gap: 14px; }
.invest-item {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 0.9fr; gap: 14px;
  align-items: center;
  padding: 18px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-soft);
}
.invest-item .iv-plan { color: var(--text-1); font-weight: 800; font-size: 0.9rem; }
.invest-item .iv-plan span { display: block; color: var(--text-3); font-size: 0.68rem; font-weight: 600; }
.invest-item .iv-amount b { color: var(--text-1); }
.invest-item .iv-cell .lbl { display: block; color: var(--text-3); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 3px; }
.invest-item .iv-cell .val { color: var(--text-1); font-size: 0.84rem; font-weight: 700; }
.invest-progress { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 6px; }
.invest-progress span { display: block; height: 100%; border-radius: 4px; background: var(--grad); }
@media (max-width: 900px) {
  .invest-item { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .invest-item { grid-template-columns: 1fr; }
}

/* ── KYC ──────────────────────────────────────────────────── */
.kyc-status {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: 16px;
  border: 1px solid rgba(245, 197, 58, 0.3); background: var(--grad-soft);
  margin-bottom: 22px;
}
.kyc-status .ks-ico { color: var(--gold); flex: 0 0 auto; }
.kyc-status b { display: block; color: var(--text-1); font-size: 0.92rem; }
.kyc-status span { color: var(--text-3); font-size: 0.76rem; }
.kyc-status.done { border-color: rgba(133, 255, 196, 0.35); background: rgba(133, 255, 196, 0.07); }
.kyc-status.done .ks-ico { color: var(--up); }

/* ── Referral ─────────────────────────────────────────────── */
.ref-box {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 24px; border-radius: 16px;
  background: var(--grad-soft); border: 1px solid rgba(245, 197, 58, 0.28);
  margin-bottom: 18px;
}
.ref-box .ref-link {
  flex: 1; min-width: 0;
  color: var(--gold); font-weight: 700; font-size: 0.9rem;
  word-break: break-all;
}
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }

/* ── Deposit / Withdraw summaries ─────────────────────────── */
.summary-card {
  padding: 24px 26px; border-radius: 18px;
  background: var(--grad-soft); border: 1px solid var(--line-soft);
}
.summary-card .sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.summary-card .sum-row:last-child { border-bottom: 0; }
.summary-card .sum-row span { color: var(--text-3); font-size: 0.78rem; }
.summary-card .sum-row b { color: var(--text-1); font-size: 1rem; }
.summary-card .sum-row b.gold { color: var(--gold); font-size: 1.35rem; }

/* ── Legal content ────────────────────────────────────────── */
.legal { max-width: 820px; margin: 0 auto; }
.legal .legal-block { margin-bottom: 26px; }
.legal h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.legal p, .legal li { color: var(--text-2); font-size: 0.88rem; line-height: 1.75; }
.legal ul { padding-left: 20px; margin: 10px 0; }

/* ── MNT note chip ───────────────────────────────────────── */
.mnt-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--grad-soft); border: 1px solid var(--line-soft);
  color: var(--gold); font-size: 0.64rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ── Dashboard responsive ─────────────────────────────────── */
@media (max-width: 1080px) {
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 150;
    width: 286px; border-radius: 0 20px 20px 0;
    transform: translateX(-108%);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
    overflow-y: auto; padding-top: 24px;
  }
  .dash-side.open { transform: none; }
  .dash-toggle { display: block; }
}
.dash-backdrop {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(4, 5, 8, 0.62);
  opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
.dash-backdrop.show { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  .dash { padding-top: 130px; }
  .dash-cards { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px; }
}

/* ── Section spacing helpers ──────────────────────────────── */
.sec { padding-block: calc(var(--sp-section) * 0.55); }

/* ════════════════════════════════════════════════════════════
   TYPOGRAPHY SCALE — global readability pass (v2 pages)
   Proportional increase; the design language is unchanged.
   ════════════════════════════════════════════════════════════ */
@media (min-width: 641px) {
  html { font-size: 17px; }
}
body {
  font-size: 1.03rem;
  line-height: 1.66;
}
p, li, .lede { font-size: 1.01rem; }
.eyebrow { font-size: 0.98rem; letter-spacing: 0.16em; }
.h2, .section-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}
.page-banner h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); }
.page-banner .lede { font-size: 1.08rem; }
.nav a { font-size: 1.02rem; }
.nav__lang .lang-btn { font-size: 0.72rem; }
.btn { font-size: 1.04rem; padding: 1rem 1.55rem; border-radius: 999px; }
.btn--sm { font-size: 0.96rem; padding: 0.68rem 1.2rem; }
.plan-name { font-size: 1.42rem; }
.plan-tag { font-size: 0.95rem; }
.plan-return span { font-size: 1.06rem; }
.plan-price .amt { font-size: 2.35rem; }
.plan-price .dur { font-size: 0.9rem; }
.plan-price .from { font-size: 0.78rem; }
.plan-rows li { padding-block: 9px; }
.plan-rows .row-label, .plan-rows .row-value { font-size: 0.92rem; }
.plan-note { font-size: 0.8rem; }
.step h3 { font-size: 1.18rem; }
.step p { font-size: 0.98rem; }
.ts-quote { font-size: 1.05rem; }
.ts-name { font-size: 1.05rem; }
.stat-value { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.stat-label { font-size: 0.95rem; }
.footer h4 { font-size: 1.08rem; }
.footer a, .footer__about, .footer__contact li, .footer__bottom { font-size: 0.98rem; }
.cookie-bar h4 { font-size: 1.05rem; }
.cookie-bar p { font-size: 0.98rem; }
#toast { font-size: 1.02rem; }

/* Forms */
.field-label { font-size: 1.02rem; }
.input-wrap input, .select-wrap select, textarea {
  font-size: 1.04rem;
  padding: 0.95rem 1.05rem;
}
.input-wrap.has-prefix input { padding-left: 3rem; }
.input-wrap .prefix, .select-wrap .prefix { font-size: 1.04rem; }
.field-error { font-size: 0.9rem; }
.check-row, .form-row-between { font-size: 0.98rem; }
.form-note { font-size: 0.92rem; }
.form-alert { font-size: 0.98rem; }

/* Auth cards */
.auth-card h1 { font-size: 1.8rem; }
.auth-card .welcome { font-size: 1rem; }
.auth-logo { font-size: 0.95rem; }
.auth-foot { font-size: 1rem; }

/* Dashboard */
.dash-head h1 { font-size: clamp(1.7rem, 2.9vw, 2.25rem); }
.dash-head .sub { font-size: 0.95rem; }
.dc-label { font-size: 1.02rem; }
.dc-value { font-size: 1.95rem; }
.dc-note { font-size: 0.9rem; }
.dc-ico { font-size: 1.3rem; }
.side-nav a { font-size: 1.04rem; padding: 0.85rem 0.95rem; }
.side-nav a svg { width: 20px; height: 20px; }
.side-user .su-name { font-size: 1.05rem; }
.side-user .su-mail { font-size: 0.9rem; }
.side-user .su-avatar { width: 46px; height: 46px; font-size: 1.05rem; }
.side-logout a { font-size: 1.04rem; }
.panel-head h2 { font-size: 1.32rem; }
.panel-head a { font-size: 0.92rem; }
.table th { font-size: 0.92rem; }
.table td { font-size: 1rem; padding: 15px 16px; }
.badge { font-size: 0.85rem; }
.qa-btn { font-size: 1.05rem; padding: 1.05rem 1.2rem; }
.qa-btn svg { width: 22px; height: 22px; }
.iv-plan { font-size: 1.12rem; }
.iv-cell .lbl { font-size: 0.9rem; }
.iv-cell .val { font-size: 1rem; }
.ref-link { font-size: 1rem; }
.kyc-status b { font-size: 1.08rem; }
.kyc-status span { font-size: 0.92rem; }
.summary-card .sum-row { font-size: 1rem; }
.legal p, .legal li { font-size: 1rem; }
.contact-item b { font-size: 1.1rem; }
.contact-item span { font-size: 0.95rem; }

/* ════════════════════════════════════════════════════════════
   SUCCESS MODAL (registration experience)
   ════════════════════════════════════════════════════════════ */
.success-modal { position: fixed; inset: 0; z-index: 9990; display: flex; align-items: center; justify-content: center; padding: 20px; }
.success-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 6, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: smFade 0.4s ease both;
}
.success-card {
  position: relative; z-index: 1;
  width: min(480px, 100%);
  background: linear-gradient(180deg, #151824 0%, #0E1016 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 44px 34px 38px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 197, 58, 0.08);
  animation: smPop 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}
.success-ico {
  width: 88px; height: 88px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(133, 255, 196, 0.28), rgba(133, 255, 196, 0.08) 70%);
  border: 1px solid rgba(133, 255, 196, 0.45);
  color: var(--up);
  animation: smPop 0.55s 0.12s cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}
.success-ico svg { width: 42px; height: 42px; }
.success-card h2 {
  font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.success-card p { color: var(--text-2); font-size: 1.06rem; line-height: 1.6; margin: 0 0 30px; }
.btn--success {
  background: linear-gradient(135deg, #1FA85C, #34D17A 55%, #7BE3A8);
  color: #04150C; font-weight: 800;
  box-shadow: 0 10px 30px rgba(52, 209, 122, 0.35);
}
.btn--success:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(52, 209, 122, 0.45); }
@keyframes smFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes smPop { from { opacity: 0; transform: scale(0.86) translateY(18px); } to { opacity: 1; transform: none; } }

/* ════════════════════════════════════════════════════════════
   DEPOSIT METHODS (user) · payment details
   ════════════════════════════════════════════════════════════ */
.dep-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 26px; }
.dep-method {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  text-align: left; cursor: pointer;
  padding: 24px; border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text-1);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.dep-method:hover { transform: translateY(-3px); border-color: rgba(245, 197, 58, 0.5); }
.dep-method.is-active {
  border-color: transparent;
  background: linear-gradient(120deg, rgba(240, 67, 75, 0.16), rgba(255, 138, 58, 0.14) 48%, rgba(245, 197, 58, 0.16));
  box-shadow: var(--shadow-card);
}
.dep-method .dm-ico { color: var(--gold); }
.dep-method .dm-name { font-size: 1.18rem; font-weight: 800; }
.dep-method .dm-sub { font-size: 0.94rem; color: var(--text-3); }

.bank-details { display: grid; gap: 10px; margin-bottom: 8px; }
.bd-row {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 15px 18px; border-radius: 14px;
  background: var(--surface-soft); border: 1px solid var(--line-soft);
}
.bd-row span { color: var(--text-3); font-size: 0.95rem; }
.bd-row b { color: var(--text-1); font-size: 1.06rem; word-break: break-all; text-align: right; }

.usdt-box {
  display: grid; gap: 12px; justify-items: start;
  padding: 20px; border-radius: 18px;
  background: var(--surface-soft); border: 1px solid var(--line-soft);
  margin-bottom: 8px;
}
.usdt-qr { padding: 8px; background: #fff; border-radius: 12px; }
.usdt-qr img { width: 148px; height: 148px; display: block; object-fit: contain; }
.ub-field { display: grid; gap: 4px; }
.ub-field span { color: var(--text-3); font-size: 0.92rem; }
.ub-field b { color: var(--text-1); font-size: 1.1rem; word-break: break-all; }

/* Notifications list (user dashboard) */
.notif-list { list-style: none; display: grid; gap: 10px; }
.notif-list li {
  padding: 16px 18px; border-radius: 14px;
  background: var(--surface-soft); border: 1px solid var(--line-soft);
}
.notif-list b { font-size: 1.05rem; display: block; margin-bottom: 4px; }
.notif-list p { color: var(--text-2); font-size: 0.98rem; margin: 0 0 6px; }
.notif-list .dim { font-size: 0.85rem; }

/* TRADING LIVE banner (user dashboard) */
.trade-live {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(133, 255, 196, 0.12), rgba(245, 197, 58, 0.10));
  border: 1px solid rgba(133, 255, 196, 0.4);
  animation: smPop 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}
.trade-live[hidden] { display: none; }
.tl-dot {
  flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(133, 255, 196, 0.6);
  animation: tlPulse 1.6s ease-out infinite;
}
@keyframes tlPulse {
  0% { box-shadow: 0 0 0 0 rgba(133, 255, 196, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(133, 255, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(133, 255, 196, 0); }
}
.trade-live b {
  display: block; font-size: 1.12rem; letter-spacing: 0.14em;
  color: var(--up);
}
.trade-live span { color: var(--text-2); font-size: 0.95rem; }

/* Admin */
.admin-sec { min-width: 0; }
.dc-ico { font-size: 1.35rem; line-height: 1; }
.notif-item {
  padding: 16px 18px; border-radius: 14px;
  background: var(--surface-soft); border: 1px solid var(--line-soft);
  margin-bottom: 10px;
}
.notif-item b { font-size: 1.05rem; }
.notif-item p { color: var(--text-2); font-size: 0.98rem; margin: 6px 0; }
.admin-login-view { padding-top: 90px; min-height: 72vh; }
.admin-panel-view { min-height: 70vh; }

@media (max-width: 640px) {
  .success-card { padding: 36px 22px 30px; }
  .success-card h2 { font-size: 1.55rem; }
  .bd-row { flex-direction: column; gap: 6px; }
  .bd-row b { text-align: left; }
  .dep-method { padding: 20px; }
}
.sec-sm { padding-block: 36px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; }

/* Admin panel — search / filter controls */
.admin-search {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  min-width: 220px;
  max-width: 300px;
  outline: none;
}
.admin-search:focus { border-color: var(--gold, #F5C53A); }
.admin-search::placeholder { color: rgba(255, 255, 255, 0.4); }
.admin-search option { color: #0A0B10; background: #fff; }

/* ════════════════════════════════════════════════════════════
   PHASE 10 — funding indicator + mobile pass
   ════════════════════════════════════════════════════════════ */
.iv-sub { color: var(--text-3); font-size: 0.68rem; margin: 2px 0 4px; }
.invest-progress.fund span { background: linear-gradient(90deg, #1FA85C, #34D17A); }

/* ════════════════════════════════════════════════════════════
   SUPPORT CHAT WIDGET (public floating chat)
   ════════════════════════════════════════════════════════════ */
#btp-chat .chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 9960;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(120deg, #F0434B, #FF8A3A 48%, #F5C53A);
  color: #161206; display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(240, 67, 75, 0.35);
  transition: transform 0.2s ease;
}
#btp-chat .chat-fab:hover { transform: translateY(-3px); }
#btp-chat .chat-fab.active { transform: rotate(90deg); }
#btp-chat .chat-fab-dot {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #F5C53A; border: 2px solid #161206;
  color: #161206; font-size: 9px; font-weight: 800; display: grid; place-items: center;
}
#btp-chat .chat-panel {
  position: fixed; right: 18px; bottom: 88px; z-index: 9950;
  width: min(380px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #151824, #0E1016);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
#btp-chat .chat-panel[hidden] { display: none; }
#btp-chat .chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#btp-chat .chat-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
#btp-chat .chat-logo {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 800; font-size: 0.8rem;
  background: linear-gradient(120deg, #F0434B, #FF8A3A 48%, #F5C53A); color: #161206;
}
#btp-chat .chat-brand b { display: block; color: var(--text-1); font-size: 0.92rem; }
#btp-chat .chat-sub { color: var(--text-3); font-size: 0.7rem; }
#btp-chat .chat-online { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34D17A; margin: 0 3px; }
#btp-chat .chat-close {
  background: none; border: none; color: var(--text-3); font-size: 1rem;
  cursor: pointer; width: 44px; height: 44px; border-radius: 10px;
}
#btp-chat .chat-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-1); }
#btp-chat .chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; }
#btp-chat .chat-msgs { display: flex; flex-direction: column; gap: 8px; flex: 1; }
#btp-chat .chat-empty { color: var(--text-3); font-size: 0.8rem; text-align: center; padding: 26px 10px; }
#btp-chat .chat-msg { max-width: 85%; display: flex; flex-direction: column; }
#btp-chat .chat-msg.mine { align-self: flex-end; align-items: flex-end; }
#btp-chat .chat-msg.theirs { align-self: flex-start; align-items: flex-start; }
#btp-chat .chat-bubble {
  padding: 9px 13px; border-radius: 14px; font-size: 0.84rem; line-height: 1.45;
  background: rgba(255, 255, 255, 0.08); color: var(--text-1); word-break: break-word;
}
#btp-chat .chat-msg.mine .chat-bubble {
  background: linear-gradient(120deg, rgba(240, 67, 75, 0.85), rgba(255, 138, 58, 0.85)); color: #fff;
}
#btp-chat .chat-meta { color: var(--text-3); font-size: 0.62rem; margin-top: 3px; }
#btp-chat .chat-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
#btp-chat .chat-foot input {
  flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; border-radius: 999px;
  padding: 12px 16px; font-size: 16px; outline: none;
}
#btp-chat .chat-foot input:focus { border-color: var(--gold, #F5C53A); }
#btp-chat .chat-foot button {
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(120deg, #F0434B, #FF8A3A 48%, #F5C53A); color: #161206;
  font-size: 1rem; font-weight: 800; flex: 0 0 auto;
}
#btp-chat .chat-guest { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
#btp-chat .chat-guest-note { color: var(--text-2); font-size: 0.78rem; margin: 0; }
#btp-chat .chat-guest input {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff; border-radius: 10px; padding: 12px; font-size: 16px; outline: none;
}
#btp-chat .chat-guest button {
  border: none; cursor: pointer; border-radius: 10px; padding: 13px;
  background: linear-gradient(120deg, #F0434B, #FF8A3A 48%, #F5C53A);
  color: #161206; font-weight: 800; font-size: 0.9rem;
}
@media (max-width: 640px) {
  #btp-chat .chat-fab { right: 12px; bottom: 12px; width: 54px; height: 54px; }
  #btp-chat .chat-panel { right: 10px; bottom: 76px; width: calc(100vw - 20px); max-height: calc(100vh - 110px); }
}

/* ════════════════════════════════════════════════════════════
   ADMIN SUPPORT PANEL
   ════════════════════════════════════════════════════════════ */
.chat-admin { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .chat-admin { grid-template-columns: 1fr; } }
.ca-item {
  display: block; width: 100%; text-align: left; background: none; border: 1px solid transparent;
  cursor: pointer; padding: 12px 14px; border-radius: 12px; color: var(--text-1);
}
.ca-item:hover { background: rgba(255, 255, 255, 0.05); }
.ca-item.active { background: rgba(255, 255, 255, 0.07); border-color: rgba(245, 197, 58, 0.35); }
.ca-item + .ca-item { margin-top: 6px; }
.ca-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ca-mid { margin-top: 3px; }
.ca-prev { color: var(--text-3); font-size: 0.78rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-time { font-size: 0.7rem; margin-top: 4px; }
.ca-thread { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.ca-thread .chat-msg { max-width: 85%; display: flex; flex-direction: column; }
.ca-thread .chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.ca-thread .chat-msg.theirs { align-self: flex-start; align-items: flex-start; }
.ca-thread .chat-bubble { background: rgba(255, 255, 255, 0.08); color: var(--text-1); padding: 9px 13px; border-radius: 14px; font-size: 0.84rem; line-height: 1.45; word-break: break-word; }
.ca-thread .chat-msg.mine .chat-bubble { background: linear-gradient(120deg, rgba(240, 67, 75, 0.85), rgba(255, 138, 58, 0.85)); color: #fff; }
.ca-thread .chat-meta { color: var(--text-3); font-size: 0.62rem; margin-top: 3px; }
.ca-composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ca-composer input {
  flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; border-radius: 999px;
  padding: 10px 16px; font-size: 15px; outline: none;
}
.ca-composer input:focus { border-color: var(--gold, #F5C53A); }

/* ════════════════════════════════════════════════════════════
   PUBLIC CONTENT PAGES (FAQ · Services · Market · Team)
   ════════════════════════════════════════════════════════════ */
.faq-v2 { display: flex; flex-direction: column; gap: 12px; }
.faq-item-v2 {
  background: var(--surface-soft, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line-soft, rgba(255, 255, 255, 0.1));
  border-radius: 16px; padding: 0; overflow: hidden;
}
.faq-item-v2 summary {
  cursor: pointer; list-style: none; padding: 18px 20px;
  font-weight: 800; color: var(--text-1); font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item-v2 summary::-webkit-details-marker { display: none; }
.faq-item-v2 summary::after {
  content: '+'; color: var(--gold); font-size: 1.25rem; font-weight: 800; flex: 0 0 auto;
}
.faq-item-v2[open] summary::after { content: '−'; }
.faq-item-v2 p {
  padding: 0 20px 18px; margin: 0; color: var(--text-2); font-size: 0.94rem; line-height: 1.7;
}
.svc-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card-v2 {
  padding: 26px 22px; border-radius: 18px;
  background: var(--surface-soft, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line-soft, rgba(255, 255, 255, 0.1));
}
.svc-ico-v2 {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 0.82rem; color: #161206; margin-bottom: 14px;
  background: linear-gradient(120deg, #F0434B, #FF8A3A 48%, #F5C53A);
}
.svc-card-v2 h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; color: var(--text-1); }
.svc-card-v2 p { color: var(--text-2); font-size: 0.9rem; line-height: 1.65; margin: 0; }
.market-grid-v2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 20px; }
.article-card-v2 {
  padding: 24px 22px; border-radius: 18px;
  background: var(--surface-soft, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line-soft, rgba(255, 255, 255, 0.1));
}
.art-tag-v2 {
  display: inline-block; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
  background: var(--grad-soft, rgba(245, 197, 58, 0.1));
  border: 1px solid rgba(245, 197, 58, 0.3); color: var(--gold);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.article-card-v2 h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; color: var(--text-1); }
.article-card-v2 p { color: var(--text-2); font-size: 0.9rem; line-height: 1.65; margin: 0; }
.team-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member-card-v2 {
  padding: 28px 24px; border-radius: 18px; text-align: center;
  background: var(--surface-soft, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line-soft, rgba(255, 255, 255, 0.1));
}
.member-avatar-v2 {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #161206;
  background: linear-gradient(120deg, #F0434B, #FF8A3A 48%, #F5C53A);
}
.member-card-v2 h3 { font-size: 1.1rem; font-weight: 800; color: var(--text-1); margin-bottom: 4px; }
.role-v2 { color: var(--gold); font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }
.member-card-v2 p { color: var(--text-2); font-size: 0.88rem; line-height: 1.6; margin: 0; }
@media (max-width: 900px) {
  .svc-grid-v2, .team-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .market-grid-v2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .svc-grid-v2, .team-grid-v2 { grid-template-columns: 1fr; }
  .faq-item-v2 summary { font-size: 0.96rem; padding: 15px 16px; }
  .faq-item-v2 p { padding: 0 16px 16px; }
}

@media (max-width: 640px) {
  /* Forms: single column, full-width fields */
  .form-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .form-grid .field.half { grid-column: 1 / -1 !important; }
  .field-label { font-size: 0.95rem; }
  .input-wrap input, .input-wrap textarea, .input-wrap select { font-size: 16px; min-height: 46px; }
  textarea { min-height: 92px; }

  /* Touch targets */
  .btn { min-height: 46px; }
  .btn--sm { min-height: 38px; }
  .nav a { min-height: 44px; }
  .lang-btn { min-height: 32px; }

  /* Panels & cards */
  .panel { padding: 18px 14px; border-radius: 16px; }
  .panel-head { flex-wrap: wrap; gap: 8px; }
  .summary-card { padding: 16px 14px; }
  .summary-card .sum-row { gap: 8px; }
  .summary-card .sum-row b { font-size: 0.95rem; }
  .summary-card .sum-row b.gold { font-size: 1.2rem; }
  .dash-cards, .quick-actions { gap: 10px; }
  .dcard { padding: 16px 14px; }
  .dash { padding-top: 140px; }
  .dash-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dash-main { padding: 12px; }

  /* Tables: compact, scroll inside their own wrapper */
  .table { font-size: 0.8rem; min-width: 0; }
  .table th, .table td { padding: 9px 8px; white-space: nowrap; }
  .table-wrap { margin-inline: -2px; }

  /* Deposit methods stack */
  .dep-methods { grid-template-columns: 1fr; }
  .dep-method { padding: 18px 16px; }

  /* Auth pages */
  .auth-wrap { padding: 96px 14px 36px; }
  .auth-card { padding: 26px 18px; border-radius: 18px; }

  /* Success modal fits the viewport */
  .success-card { padding: 30px 18px 26px; border-radius: 20px; }
  .success-ico { width: 70px; height: 70px; margin-bottom: 16px; }
  .success-ico svg { width: 34px; height: 34px; }
  .success-card h2 { font-size: 1.5rem; }
  .success-card p { font-size: 0.98rem; margin-bottom: 22px; }
  .btn--success { width: 100%; }

  /* Admin: full-width content, off-canvas sidebar (hamburger) */
  .admin-sec .form-grid { grid-template-columns: 1fr !important; }
  .admin-search { width: 100%; max-width: none; min-width: 0; }
  .dash-side { width: min(286px, 84vw); }

  /* Investment rows stack cleanly */
  .invest-item { grid-template-columns: 1fr !important; gap: 12px; }
  .invest-list { gap: 12px; }

  /* Referral + KYC */
  .ref-box { flex-direction: column; align-items: flex-start; }
  .ref-stats { grid-template-columns: 1fr; }
  .kyc-status { flex-direction: column; align-items: flex-start; }

  /* Section headers don't clip long titles */
  .page-banner h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  .section-head { flex-wrap: wrap; gap: 10px; }
}

/* ════════════════════════════════════════════════════════════
   SIMPLE USER PANEL (app-style, no sidebar/hamburger)
   ════════════════════════════════════════════════════════════ */
body[data-user="1"] .dash-side,
body[data-user="1"] .dash-toggle,
body[data-user="1"] .dash-topbar { display: none !important; }
body[data-user="1"] .dash-shell { grid-template-columns: 1fr !important; }
body[data-user="1"] .dash-main { gap: 18px; }
body[data-user="1"] .dash { padding-top: 96px; }

/* header hamburger hidden inside the user area (bottom nav replaces it) */
@media (max-width: 1080px) {
  body[data-user="1"] #nav-toggle { display: none !important; }
}

/* ── Wallet panel ── */
.wallet-panel {
  position: relative;
  padding: 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(245, 197, 58, 0.22);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(245, 197, 58, 0.12), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(240, 67, 75, 0.10), transparent 55%),
    linear-gradient(180deg, #171A24, #10131B);
  /* stacked-card look: two layered "boxes" beneath the panel */
  box-shadow:
    0 8px 0 rgba(245, 197, 58, 0.14),
    0 16px 0 rgba(166, 104, 40, 0.16),
    0 42px 70px rgba(0, 0, 0, 0.45);
  margin-bottom: 24px;
}
.wallet-head {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text-3); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}
.wallet-live { display: inline-flex; align-items: center; gap: 6px; color: var(--up); font-size: 0.66rem; letter-spacing: 0.14em; }
.wallet-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); }
.wallet-grid { display: flex; flex-direction: column; }
.wallet-cell {
  min-width: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 15px 2px;
}
.wallet-cell + .wallet-cell { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.wallet-cur {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.07); color: #fff;
}
.wallet-amt { color: var(--text-1); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; word-break: break-word; }
.wallet-amt.gold { color: var(--gold); }
.wallet-note {
  margin-left: auto; text-align: right;
  color: var(--text-2); font-size: 0.82rem; font-weight: 700;
}
.wallet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.wallet-actions .btn { min-height: 46px; padding-left: 8px; padding-right: 8px; }

/* ── Section heads + Load more / Load less toggle ── */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-2); margin: 0;
}
.sec-toggle {
  display: block; width: 100%; margin-top: 16px; padding: 12px;
  border-radius: 12px; border: 1px solid var(--line-soft, rgba(255, 255, 255, 0.1));
  background: var(--surface-soft, rgba(255, 255, 255, 0.04));
  color: var(--gold); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em;
  cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease;
}
.sec-toggle:hover { border-color: rgba(245, 197, 58, 0.45); background: rgba(245, 197, 58, 0.06); }

/* Collapsed grids hide the extras until "Load more" */
.nav-tiles.is-collapsed .nav-tile.hideable { display: none; }
.mini-stats.is-collapsed .mini-stat.stat-extra { display: none; }

/* ── Referral URL box ── */
.ref-box {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px;
  background: var(--surface-soft, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line-soft, rgba(255, 255, 255, 0.1));
}
.ref-url {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-2); font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem; word-break: break-all;
}

/* ── Nav tiles (ALL NAVIGATIONS) ── */
.nav-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.nav-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 6px; border-radius: 16px; text-align: center;
  background: var(--surface-soft, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line-soft, rgba(255, 255, 255, 0.1));
  color: var(--text-2); font-size: 0.72rem; font-weight: 700; text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.nav-tile:hover { transform: translateY(-3px); border-color: rgba(245, 197, 58, 0.45); }
.nt-ico { font-size: 1.5rem; line-height: 1; color: var(--gold); }
.nt-ico svg { display: block; }

/* ── Mini stats row ── */
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-stat {
  padding: 14px 12px; border-radius: 14px; text-align: center;
  background: var(--surface-soft, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line-soft, rgba(255, 255, 255, 0.1));
}
.ms-value { color: var(--text-1); font-size: 1.05rem; font-weight: 800; }
.ms-value.gold { color: var(--gold); }
.ms-value.green { color: var(--up); }
.ms-label { color: var(--text-3); font-size: 0.66rem; margin-top: 4px; }

/* ── Bottom navigation (mobile app bar) ── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 970;
  display: flex; align-items: stretch;
  background: rgba(12, 13, 18, 0.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft, rgba(255, 255, 255, 0.1));
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 0 5px; border-radius: 12px; text-decoration: none;
  color: var(--text-3); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em;
}
.bottom-nav a svg { opacity: 0.85; }
.bottom-nav a.active { color: var(--gold); }
.bottom-nav a.active svg { opacity: 1; }
@media (min-width: 641px) { .bottom-nav { display: none; } }

/* room for the bottom bar + chat button offset on user pages */
@media (max-width: 640px) {
  body[data-user="1"] { padding-bottom: 82px; }
  body[data-user="1"] #btp-chat .chat-fab { bottom: 84px; }
  body[data-user="1"] #btp-chat .chat-panel { bottom: 150px; }
  body[data-user="1"] .dash { padding-top: 72px; }
  body[data-user="1"] .dash-main { gap: 14px; }
  .dash-head h1 { font-size: 1.3rem; }
  .dash-head .sub { font-size: 0.74rem; word-break: break-word; }
  .wallet-panel { margin-bottom: 18px; padding: 16px 14px; }
  .wallet-head { font-size: 0.7rem; letter-spacing: 0.06em; margin-bottom: 10px; }
  .wallet-amt { font-size: 1.15rem; }
  .wallet-note { font-size: 0.74rem; }
  .wallet-actions .btn { font-size: 0.74rem; min-height: 42px; }
  .sec-head h2 { font-size: 0.72rem; letter-spacing: 0.12em; }
  /* Long Mongolian labels wrap inside the tiles instead of overflowing */
  .nav-tiles { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .nav-tile {
    padding: 11px 3px; gap: 5px; font-size: 0.58rem; line-height: 1.22;
    white-space: normal; word-break: break-word; min-height: 62px;
    justify-content: flex-start;
  }
  .nav-tile .nt-ico svg { width: 18px; height: 18px; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mini-stat { padding: 11px 8px; }
  .ms-value { font-size: 0.95rem; }
  .ms-label { font-size: 0.6rem; line-height: 1.3; }
  .ref-box { flex-direction: column; align-items: stretch; }
  .ref-box .btn { width: 100%; }
  .ref-url { font-size: 0.7rem; white-space: normal; }
  .bottom-nav a { font-size: 0.56rem; line-height: 1.2; padding-left: 2px; padding-right: 2px; }
  .bottom-nav a svg { width: 20px; height: 20px; }
}
