:root {
  --bg: #0a0a0c;
  --bg-elevated: #131316;
  --bg-elevated-2: #1a1a1f;
  --bg-hover: #202026;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --text: #f3f3f5;
  --text-muted: #9b9ba3;
  --text-faint: #6c6c74;
  --accent: #d4af37;
  --accent-dark: #a3841f;
  --accent-soft: rgba(212,175,55,.14);
  --positive: #34d399;
  --positive-soft: rgba(52,211,153,.14);
  --negative: #f87171;
  --negative-soft: rgba(248,113,113,.14);
  --info: #60a5fa;
  --info-soft: rgba(96,165,250,.14);
  --radius: 16px;
  --radius-sm: 10px;
  font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-muted); }
.small { font-size: .85em; }
.hidden { display: none !important; }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,10,12,.75);
  backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 20px; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; margin-right: 10px; display: block; flex-shrink: 0; }
.app-sidebar .logo img { height: 32px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-size: .92rem; transition: all .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #16130a; }
.btn-primary:hover { background: #e2c04e; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-danger-ghost { background: transparent; color: var(--negative); border: 1px solid rgba(248,113,113,.35); }
.btn-danger-ghost:hover { background: var(--negative-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 60px; overflow: hidden; text-align: center; }
.hero::before {
  content: '';
  position: absolute; left: 50%; bottom: -10%; width: 900px; height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212,175,55,.35) 0%, rgba(212,175,55,.12) 35%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  font-size: .82rem; color: var(--text-muted); margin-bottom: 28px;
}
.pill strong { color: var(--text); font-weight: 600; }
.hero h1 { font-size: 3rem; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.hero .lead { color: var(--text-muted); font-size: 1.1rem; max-width: 52ch; margin: 18px auto 0; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; justify-content: center; flex-wrap: wrap; }

/* Dashboard preview mockup on the landing page */
.preview-wrap { position: relative; z-index: 1; margin: 56px auto 0; max-width: 980px; }
.preview-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.55);
}
.preview-topbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.preview-body { padding: 24px; text-align: left; }
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.preview-stat { display: flex; align-items: center; gap: 12px; background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }.preview-stat .label { color: var(--text-faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.preview-stat .chip-icon { width: 34px; height: 34px; font-size: 13px; flex-shrink: 0; }
.preview-stat .value { font-size: 1.3rem; font-weight: 700; margin-top: 6px; }
.preview-stat .delta { font-size: .78rem; margin-top: 4px; }
.preview-panels { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.preview-panel { background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; min-height: 160px; }
.preview-panel h4 { margin: 0 0 12px; font-size: .9rem; color: var(--text-muted); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { font-size: 2rem; color: #fff; }

.rates-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.rates-table th, .rates-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.rates-table th { color: var(--text-faint); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.rates-table tbody tr:hover { background: var(--bg-elevated-2); }

.about-grid, .contacts-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.features { list-style: none; padding: 0; color: var(--text-muted); display: flex; flex-direction: column; gap: 12px; }
.features li { padding-left: 26px; position: relative; }
.features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .9rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); filter: grayscale(.4) invert(.92) contrast(.9); }

.site-footer { padding: 30px 0; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .9rem; }

/* ---------- Calculator card ---------- */
.calc-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: left; max-width: 380px; margin: 40px auto 0; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.calc-card h3 { margin-bottom: 16px; color: #fff; }
.calc-row { display: flex; gap: 10px; }
.calc-row input, .calc-row select, .calc-row output { flex: 1; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 1rem; background: var(--bg-elevated-2); color: var(--text); }
.calc-row select { min-width: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.calc-row output { display: flex; align-items: center; font-weight: 600; }
.calc-arrow { text-align: center; margin: 8px 0; color: var(--text-faint); }
.calc-note { margin-top: 10px; font-size: .85rem; color: var(--text-faint); }

/* ---------- Auth ---------- */
.auth-section { display: flex; justify-content: center; padding: 90px 0; position: relative; }
.auth-section::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 700px; height: 400px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212,175,55,.25) 0%, transparent 70%); pointer-events: none;
}
.auth-container { max-width: 420px; width: 100%; position: relative; z-index: 1; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.tabs { display: flex; gap: 8px; margin-bottom: 24px; background: var(--bg-elevated-2); padding: 4px; border-radius: 999px; }
.tab-btn { flex: 1; padding: 9px; border: none; background: transparent; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--text-muted); }
.tab-btn.active { background: var(--accent); color: #16130a; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--text-muted); }
.auth-form input { padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 1rem; background: var(--bg-elevated-2); color: var(--text); }
.auth-form input:focus { outline: none; border-color: var(--accent); }
.form-error { color: var(--negative); font-size: .88rem; min-height: 1.2em; }
.form-success { color: var(--positive); font-size: .88rem; min-height: 1.2em; }
.form-success:empty { display: none; }

/* ---------- Dashboard shell (sidebar app) ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 240px; flex-shrink: 0; background: #0d0d10; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.app-sidebar .logo-row { padding: 22px 22px 18px; }
.app-nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.app-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 500; font-size: .92rem; cursor: pointer; border: none; background: transparent; text-align: left; width: 100%;
}
.app-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.app-nav-item:hover { background: var(--bg-elevated); color: var(--text); }
.app-nav-item.active { background: var(--accent-soft); color: var(--accent); }
.app-nav-item.active svg { opacity: 1; }
.app-sidebar-footer { padding: 14px; border-top: 1px solid var(--border); }
.app-user { display: flex; align-items: center; gap: 10px; padding: 8px; }
.app-user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.app-user-name { font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-user-name-row { display: flex; align-items: center; gap: 5px; }
.verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.25); font-size: 9px; font-weight: 700; transition: background .2s, color .2s;
  flex-shrink: 0; line-height: 1;
}
.app-user-email { font-size: .76rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-main { flex: 1; min-width: 0; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; border-bottom: 1px solid var(--border); }
.app-topbar h1 { font-size: 1.3rem; margin: 0; color: #fff; }
.app-topbar-title { font-size: 1.3rem; font-weight: 700; color: #fff; }
.app-topbar-sub { margin-top: 2px; }
.app-user-role { font-size: .76rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-content { padding: 28px 32px 60px; max-width: 1200px; }
.sidebar-toggle-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elevated-2); color: #fff; cursor: pointer; margin-right: 12px; flex-shrink: 0; }
.sidebar-toggle-btn svg { width: 20px; height: 20px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 190; }

.app-section { display: none; }
.app-section.active { display: block; }

/* Balance card */
.balance-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 16px; }
.balance-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.balance-label { color: var(--text-muted); font-size: .95rem; font-weight: 600; }
.balance-topup-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--positive-soft); border: 1px solid rgba(52,211,153,.28); color: var(--positive); font-weight: 700; font-size: .95rem; cursor: pointer; transition: filter .15s; }.balance-topup-btn:hover { filter: brightness(1.08); }
.balance-topup-btn:hover { filter: brightness(1.08); }
.balance-topup-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.balance-amount-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.balance-amount { font-size: 2.6rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.balance-delta { font-size: 1.05rem; font-weight: 700; color: var(--positive); }
.balance-delta.negative { color: var(--negative); }
.balance-divider { height: 1px; background: var(--border); margin: 22px 0 18px; }
.balance-segments { display: flex; gap: 4px; height: 8px; margin-bottom: 16px; }
.balance-seg { height: 100%; }
.balance-seg:first-child { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.balance-seg:last-child { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.balance-legend { display: flex; flex-wrap: wrap; gap: 28px; }
.balance-legend-item { display: flex; flex-direction: column; gap: 4px; }
.balance-legend-item .code { color: var(--text-faint); font-size: .82rem; font-weight: 600; }
.balance-legend-item .pct { color: #fff; font-size: 1.05rem; font-weight: 700; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-icon svg { width: 17px; height: 17px; }
.stat-icon.gold { background: var(--accent-soft); color: var(--accent); }
.stat-icon.green { background: var(--positive-soft); color: var(--positive); }
.stat-icon.blue { background: var(--info-soft); color: var(--info); }
.stat-icon.red { background: var(--negative-soft); color: var(--negative); }
.stat-value { font-size: 1.6rem; font-weight: 700; color: #fff; }
.stat-label { color: var(--text-faint); font-size: .82rem; margin-top: 2px; }
.stat-delta { font-size: .78rem; margin-top: 8px; color: var(--text-faint); }
.stat-delta.positive { color: var(--positive); }

/* Panels: donut + activity */
.panel-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.panel { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel h3 { font-size: 1rem; color: #fff; margin-bottom: 18px; }
.panel-wide { grid-column: 1 / -1; }

.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut { width: 140px; height: 140px; border-radius: 50%; flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; }
.donut-legend-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.donut-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.donut-legend-item .code { color: var(--text); font-weight: 600; }
.donut-legend-item .pct { color: var(--text-faint); margin-left: auto; }

.activity-list { display: flex; flex-direction: column; }
.activity-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.activity-row:last-child { border-bottom: none; }
.activity-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.activity-icon svg { width: 15px; height: 15px; }
.activity-main { flex: 1; min-width: 0; }
.activity-title { font-size: .88rem; font-weight: 500; }
.activity-time { font-size: .76rem; color: var(--text-faint); }
.activity-amount { font-size: .88rem; font-weight: 600; white-space: nowrap; }

/* Wallet list / forms reused inside sections */
.wallet-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.wallet-row { display: flex; justify-content: space-between; padding: 12px 14px; background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.inline-form { display: flex; gap: 10px; }
.inline-form select, .inline-form input { padding: 9px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-elevated-2); color: var(--text); }
.order-form, .deposit-form { display: flex; flex-direction: column; gap: 16px; }
.order-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--text-muted); }
.deposit-details { background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 1.2em; }
select, input { color-scheme: dark; }

.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.profile-field { background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.profile-field .label { color: var(--text-faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.profile-field .value { margin-top: 4px; font-weight: 600; }

/* Currency chips (colored badges/pickers for crypto + fiat) */
.currency-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.currency-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 7px; border-radius: 999px; border: 1px solid transparent;
  background: color-mix(in srgb, var(--chip-color) 16%, transparent);
  color: var(--chip-color);
  font-weight: 600; font-size: .85rem; cursor: pointer; transition: filter .15s, transform .1s;
}
.currency-chip:hover { filter: brightness(1.15); }
.currency-chip:active { transform: scale(.97); }
.currency-chip.selected { background: var(--chip-color); color: #fff; }
.chip-icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--chip-color); color: #fff; font-size: 11px; font-weight: 700;
}
.currency-chip.selected .chip-icon { background: rgba(255,255,255,.28); }

/* Rates grid (Курсы tab) */
.rates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.rate-card { background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rate-card-top { display: flex; align-items: center; gap: 10px; }
.rate-card-top .chip-icon { width: 30px; height: 30px; font-size: 13px; }
.rate-card .name { font-size: .8rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rate-card .code { font-weight: 700; color: #fff; }
.rate-card .value { font-size: 1.2rem; font-weight: 700; color: #fff; }
.rate-card .value .unit { font-size: .75rem; color: var(--text-faint); font-weight: 500; margin-left: 4px; }

@media (max-width: 900px) {
  .app-sidebar { position: fixed; top: 0; left: 0; z-index: 200; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 8px 0 24px rgba(0,0,0,.4); }
      .app-sidebar.open { transform: translateX(0); }
      .sidebar-toggle-btn { display: flex; }
      .sidebar-overlay.open { display: block; }
  .app-content { padding: 20px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-panels { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .hero h1 { font-size: 2.1rem; }
  .about-grid, .contacts-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
}
/* deploy sync */

/* deploy sync */
/* ---------- Auth (sign-in / sign-up) ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 40px 20px; }
.auth-back { position: absolute; top: 24px; left: 24px; color: var(--text-muted); font-size: .9rem; font-weight: 600; z-index: 2; }
.auth-back:hover { color: var(--text); }
.auth-glow { position: absolute; left: 50%; top: 40%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(212,175,55,.25) 0%, rgba(212,175,55,.08) 35%, transparent 70%); filter: blur(20px); pointer-events: none; }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 400px; background: linear-gradient(160deg, rgba(255,255,255,.06), var(--bg-elevated) 60%); border: 1px solid var(--border-strong); border-radius: 24px; box-shadow: 0 40px 100px rgba(0,0,0,.55); padding: 36px 32px 30px; display: flex; flex-direction: column; align-items: center; }
.auth-logo-badge { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.auth-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.auth-title span { color: var(--accent); }
.auth-subtitle { color: var(--text-muted); font-size: .88rem; margin: 0 0 24px; }

.auth-logo-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.auth-tabs { display: flex; width: 100%; background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.auth-tab-btn { flex: 1; border: none; background: transparent; color: var(--text-muted); font-weight: 600; font-size: .88rem; padding: 9px 0; border-radius: 999px; cursor: pointer; transition: all .15s; }
.auth-tab-btn.active { background: var(--accent); color: #16130a; }

.auth-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.auth-form input { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-elevated-2); color: var(--text); font-size: .92rem; }
.auth-form input::placeholder { color: var(--text-faint); }
.auth-form input:focus { outline: none; border-color: var(--accent); }
.auth-error { color: var(--negative); font-size: .84rem; min-height: 0; margin: 0; }
.auth-error:empty { display: none; }

.auth-btn-primary { width: 100%; padding: 13px 0; border-radius: 999px; border: none; background: var(--accent); color: #16130a; font-weight: 700; font-size: .95rem; cursor: pointer; margin-top: 4px; transition: background .15s; }
.auth-btn-primary:hover { background: #e2c04e; }

.auth-divider { width: 100%; display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: .78rem; margin: 20px 0 16px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-elevated-2); color: var(--text); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .15s; }
.auth-btn-google:hover { background: var(--bg-hover); }
.auth-btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

.google-btn-wrap { position: relative; } .google-real-btn { position: absolute; inset: 0; opacity: .01; overflow: hidden; z-index: 2; } .google-real-btn iframe { width: 100% !important; height: 100% !important; } .auth-footer-note { color: var(--text-faint); font-size: .76rem; text-align: center; margin: 18px 0 0; }
.auth-footer-note a { color: var(--text-muted); text-decoration: underline; }

@media (max-width: 480px) {
  .auth-card { padding: 30px 22px 24px; }
}


/* --- KYC verification --- */
.verified-badge.is-verified { background: var(--positive-soft); color: var(--positive); }

.kyc-panel { margin-top: 24px; }
.kyc-panel .muted { margin-bottom: 18px; }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; max-width: 360px; }
.form-field label { font-size: .84rem; color: var(--text-muted); font-weight: 500; }
.form-field input {
  background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 10px 12px; font-size: .92rem;
}
.form-field input:focus { outline: none; border-color: var(--accent); }
.form-field input[type="file"] { padding: 8px 10px; }

.form-error { color: var(--negative); font-size: .84rem; min-height: 0; margin: 4px 0 0; }
.form-error:empty { display: none; }

.kyc-status-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 999px; font-size: .84rem; font-weight: 600;
}
.status-pending { background: var(--accent-soft); color: var(--accent); }
.status-verified { background: var(--positive-soft); color: var(--positive); }
.status-rejected { background: rgba(248,113,113,.14); color: var(--negative); }


/* ---------- Profile page ---------- */
.profile-hero {
    display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
    background: linear-gradient(160deg, rgba(212,175,55,.09), var(--bg-elevated) 60%);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 34px 32px; margin-bottom: 18px;
    box-shadow: 0 24px 60px -36px rgba(212,175,55,.35);
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar {
    width: 84px; height: 84px; border-radius: 50%;
    background: linear-gradient(160deg, rgba(212,175,55,.22), rgba(212,175,55,.05));
    border: 1px solid rgba(212,175,55,.35); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', Georgia, serif; font-size: 2rem; font-weight: 600;
}
.profile-avatar-badge {
    position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px;
    border-radius: 50%; background: rgba(255,255,255,.06); color: rgba(255,255,255,.28);
    border: 3px solid var(--bg-elevated); display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; transition: background .2s, color .2s;
}
.profile-avatar-badge.is-verified { background: var(--positive); color: #06231a; }
.profile-hero-info { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.profile-hero-name {
    font-family: 'Fraunces', Georgia, serif; font-size: 2.15rem; font-weight: 600;
    font-optical-sizing: auto; color: #fff; letter-spacing: -.02em; line-height: 1.08;
}
.profile-hero-meta { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .9rem; }
.profile-dot { color: var(--text-faint); }
.status-none { background: var(--bg-elevated-2); color: var(--text-muted); border: 1px solid var(--border); }

.profile-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); gap: 14px; }
.profile-detail-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 20px; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.profile-detail-card:hover {
    border-color: var(--border-strong); background: var(--bg-elevated-2);
    transform: translateY(-2px); box-shadow: 0 16px 32px -24px rgba(0,0,0,.6);
}
.profile-detail-icon {
    width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.profile-detail-icon svg { width: 18px; height: 18px; }
.profile-detail-label { color: #fff; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.profile-detail-value { margin-top: 4px; font-weight: 600; color: var(--text-muted); font-size: 1.02rem; line-height: 1.4; word-break: break-word; }

@media (max-width: 560px) {
    .profile-hero { padding: 24px 20px; }
    .profile-hero-name { font-size: 1.5rem; }

}

.profile-verify-banner {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 24px; margin-bottom: 18px;
}
.profile-verify-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-elevated-2); color: var(--text-muted);
}
.profile-verify-icon svg { width: 22px; height: 22px; }
.profile-verify-body { flex: 1; min-width: 200px; }
.profile-verify-title { font-weight: 700; color: #fff; font-size: 1.02rem; }
.profile-verify-sub { margin-top: 4px; color: var(--text-muted); font-size: .88rem; }
.profile-verify-banner.status-pending .profile-verify-icon { background: var(--accent-soft); color: var(--accent); }
.profile-verify-banner.status-verified .profile-verify-icon { background: var(--positive-soft); color: var(--positive); }
.profile-verify-banner.status-rejected .profile-verify-icon { background: var(--negative-soft); color: var(--negative); }

@media (max-width: 560px) {
    .profile-verify-banner { padding: 16px 18px; }
}

/* ---------- Token select & drawer (Exchange tab) ---------- */
.token-select {
display: inline-flex; align-items: center; gap: 8px;
padding: 8px 12px 8px 8px; border-radius: 999px;
background: var(--bg-elevated-2); border: 1px solid var(--border-strong);
color: var(--text); font-weight: 700; font-size: .92rem; cursor: pointer;
transition: border-color .15s, background .15s; white-space: nowrap; flex: 0 0 auto;
}
.token-select:hover { border-color: var(--accent); background: var(--bg-hover); }
.token-select-icon {
width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
background: var(--chip-color, var(--accent-soft)); color: #fff; font-size: 11px; font-weight: 700;
}
.token-select-icon:empty { background: var(--bg-hover); }
.token-select-code { min-width: 1.5ch; }
.token-select-chevron { width: 15px; height: 15px; color: var(--text-faint); flex-shrink: 0; }

.token-drawer-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(5,5,7,.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.token-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.token-drawer {
    width: 100%; max-width: 460px; max-height: 78vh; margin: 20px;
    background: var(--bg-elevated); border: 1px solid var(--border-strong);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
    display: flex; flex-direction: column;
    transform: translateY(24px) scale(.97); opacity: 0; transition: transform .25s cubic-bezier(.32,.72,0,1), opacity .2s ease;
}
.token-drawer-overlay.open .token-drawer { transform: translateY(0) scale(1); opacity: 1; }
.token-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--border); }
.token-drawer-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; font-weight: 600; color: #fff; }
.token-drawer-sub { margin-top: 4px; }
.token-drawer-close {
width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong);
background: var(--bg-elevated-2); color: var(--text-muted); display: flex; align-items: center; justify-content: center;
cursor: pointer; flex-shrink: 0; transition: color .15s, border-color .15s;
}
.token-drawer-close:hover { color: var(--text); border-color: var(--accent); }
.token-drawer-close svg { width: 15px; height: 15px; }
.token-drawer-list { overflow-y: auto; padding: 8px 10px 20px; display: flex; flex-direction: column; gap: 2px; }
.token-row {
display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: var(--radius-sm);
cursor: pointer; border: 1px solid transparent; background: transparent; text-align: left; width: 100%;
transition: background .12s;
}
.token-row:hover { background: var(--bg-elevated-2); }
.token-row.selected { background: var(--accent-soft); border-color: rgba(212,175,55,.3); }
.token-row-icon {
width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
background: var(--chip-color); color: #fff; font-size: 14px; font-weight: 700;
}
.token-row-main { flex: 1; min-width: 0; }
.token-row-code { font-weight: 700; color: #fff; font-size: .95rem; }
.token-row-name { font-size: .78rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.token-row-balance { text-align: right; flex-shrink: 0; }
.token-row-balance .amount { font-size: .88rem; font-weight: 600; color: var(--text); }
.token-row-balance .usd { font-size: .74rem; color: var(--text-faint); margin-top: 1px; }
.token-row-check { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

@media (max-width: 560px) {
.token-drawer-overlay { align-items: flex-end; }
  .token-drawer { max-height: 82vh; margin: 0; border-radius: 18px 18px 0 0; border-bottom: none; box-shadow: 0 -20px 60px rgba(0,0,0,.55); transform: translateY(100%) scale(1); }
  .token-drawer-overlay.open .token-drawer { transform: translateY(0) scale(1); }
}

/* ---------- Deposits: asset cards (Баланс) ---------- */
.deposits-head { margin-bottom: 18px; }
.deposits-head h2 { margin-bottom: 4px; }

.asset-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 16px; margin-bottom: 24px;
}
.asset-card {
display: flex; border-radius: var(--radius); overflow: hidden;
border: 1px solid var(--border); background: var(--bg-elevated);
transition: transform .15s, border-color .15s;
}
.asset-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.asset-card-left {
width: 42%; flex-shrink: 0; padding: 18px 16px; display: flex; flex-direction: column;
justify-content: space-between; color: #fff;
background: linear-gradient(155deg, var(--chip-color) 0%, var(--trend-dark) 130%);
}
.asset-card-icon {
width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
background: rgba(255,255,255,.22); backdrop-filter: blur(4px);
display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.asset-card-change { font-size: 1.6rem; font-weight: 700; margin-top: 14px; letter-spacing: -.01em; }
.asset-card-price { font-size: .78rem; opacity: .85; margin-top: 2px; }

.asset-card-right { flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.asset-card-balance-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.asset-card-balance { font-size: 1.1rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-badge { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; }
.asset-badge.positive { background: var(--positive-soft); color: var(--positive); }
.asset-badge.negative { background: var(--negative-soft); color: var(--negative); }
.asset-card-name { font-size: .8rem; color: var(--text-muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.asset-card-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.asset-action-group { display: flex; gap: 8px; }
.asset-action-btn {
width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong);
background: var(--bg-elevated-2); color: var(--text-muted); display: flex; align-items: center; justify-content: center;
cursor: pointer; transition: color .15s, border-color .15s, background .15s; flex-shrink: 0;
}
.asset-action-btn:hover { color: var(--accent); border-color: var(--accent); }
.asset-action-btn svg { width: 15px; height: 15px; }
.asset-action-btn.primary { color: var(--accent); border-color: rgba(212,175,55,.4); background: var(--accent-soft); }
.asset-action-btn.primary:hover { background: var(--accent); color: #16130a; }

@media (max-width: 480px) {
.asset-card { flex-direction: column; }
.asset-card-left { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
.asset-card-change { margin-top: 0; }
}

/* ---------- Deposit modal (reuses .token-drawer-overlay/.token-drawer shell) ---------- */
.deposit-modal-head-row { display: flex; align-items: center; gap: 12px; }
.deposit-modal-icon {
width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; color: #fff;
display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.token-drawer-body { padding: 4px 20px 22px; overflow-y: auto; }


/* ---------- Hide native number-input spinner arrows sitewide ---------- */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
appearance: textfield;
}

/* ---------- Deposit modal amount input (modern styling) ---------- */
.deposit-form input:not([type="hidden"]) {
width: 100%;
padding: 13px 16px;
border: 1px solid var(--border-strong);
border-radius: var(--radius-sm);
background: var(--bg-elevated-2);
color: var(--text);
font-size: 1rem;
font-weight: 600;
transition: border-color .15s, background .15s;
}
.deposit-form input:not([type="hidden"])::placeholder {
color: var(--text-faint);
font-weight: 500;
}
.deposit-form input:not([type="hidden"]):focus {
outline: none;
border-color: var(--accent);
background: var(--bg-hover);
}

/* ---------- Multiple payment-detail entries (e.g. USDT TRC-20 + ERC-20) ---------- */
.deposit-detail-entry:not(:last-child) {
margin-bottom: 12px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border);
}

/* ---------- Deposit modal: "this is your personal address" notice ---------- */
.deposit-detail-note {
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    align-items: start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--info-soft);
    color: var(--text-muted);
    font-size: .83rem;
    line-height: 1.4;
}
.deposit-detail-note-text {
    text-align: center;
}
.deposit-detail-note-spacer {
    width: 20px;
    height: 1px;
}
.deposit-detail-note-icon {
flex-shrink: 0;
width: 20px;
height: 20px;
margin-top: 1px;
border-radius: 50%;
background: var(--info);
color: #06101f;
font-weight: 800;
font-size: .78rem;
display: flex;
align-items: center;
justify-content: center;
}


/* ---------- Deposit address row + copy button ---------- */
.deposit-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.deposit-detail-address {
    flex: 1;
    min-width: 0;
    word-break: break-all;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: .85rem;
    color: var(--text);
}
.deposit-copy-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated-2);
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.deposit-copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-hover);
}
.deposit-copy-btn svg {
    width: 16px;
    height: 16px;
}
.deposit-copy-btn .icon-check {
    display: none;
}
.deposit-copy-btn.copied {
    border-color: var(--positive);
    color: var(--positive);
}
.deposit-copy-btn.copied .icon-copy {
    display: none;
}
.deposit-copy-btn.copied .icon-check {
    display: block;
}
