/* =========================================================
   BitKoin — Premium UI
   ========================================================= */
:root {
  --bg: #06080d;
  --bg-2: #0b0f17;
  --bg-3: #111827;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #eef2f8;
  --text-2: #b6bfd0;
  --muted: #7d879c;
  --orange: #f7931a;
  --orange-2: #ffb347;
  --orange-3: #ff7a00;
  --gold: #ffd166;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --yellow: #f59e0b;
  --cyan: #06b6d4;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --glow: 0 0 0 1px rgba(247, 147, 26, .25), 0 10px 40px rgba(247, 147, 26, .18);
  --font: 'Inter', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sidebar: 268px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
[dir="rtl"] { --font: 'Tajawal', 'Inter', system-ui, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  min-height: 100vh; line-height: 1.55; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(247, 147, 26, .16), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(59, 130, 246, .12), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--orange-2); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { margin: 0 0 .35em; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.strong { font-weight: 700; }
.text-green { color: var(--green); } .text-red { color: var(--red); } .text-orange { color: var(--orange); } .text-blue { color: var(--blue); } .text-yellow { color: var(--yellow); }
.center { text-align: center; }
.hidden { display: none !important; }
.flex { display: flex; gap: .75rem; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.col { display: flex; flex-direction: column; gap: .75rem; }
.mt { margin-top: 1rem; } .mt-2 { margin-top: 1.5rem; } .mb { margin-bottom: 1rem; } .mb-0 { margin-bottom: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-main { grid-template-columns: 2fr 1fr; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-4.keep-2, .grid-2.keep-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; font-size: .92rem;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); color: var(--text); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--orange-2), var(--orange) 55%, var(--orange-3)); border-color: transparent; color: #140a00; box-shadow: 0 8px 24px rgba(247, 147, 26, .3); }
.btn-primary:hover { background: linear-gradient(135deg, #ffc46b, var(--orange) 55%, var(--orange-3)); color: #140a00; box-shadow: 0 12px 30px rgba(247, 147, 26, .42); }
.btn-success { background: rgba(34, 197, 94, .15); border-color: rgba(34, 197, 94, .4); color: #7ef0a3; }
.btn-success:hover { background: rgba(34, 197, 94, .25); color: #9cf5b8; }
.btn-danger { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .4); color: #ff9b9b; }
.btn-danger:hover { background: rgba(239, 68, 68, .22); color: #ffb3b3; }
.btn-info { background: rgba(59, 130, 246, .14); border-color: rgba(59, 130, 246, .4); color: #9cc3ff; }
.btn-info:hover { background: rgba(59, 130, 246, .24); color: #b7d3ff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: .45rem .8rem; font-size: .82rem; border-radius: 10px; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.25);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; }
.card-tight { padding: 1rem; }
.card-glow { box-shadow: var(--glow); border-color: rgba(247,147,26,.3); }

/* ---------- stat tiles ---------- */
.stat { position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 1.55rem; font-weight: 800; margin-top: .25rem; font-family: var(--mono); letter-spacing: -.02em; }
.stat .sub { color: var(--text-2); font-size: .82rem; margin-top: .3rem; }
.stat .ic { position: absolute; inset-inline-end: 1rem; top: 1rem; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: var(--surface-2); border: 1px solid var(--border); }
.stat.orange .ic { background: rgba(247,147,26,.14); border-color: rgba(247,147,26,.35); }
.stat.green .ic { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.35); }
.stat.blue .ic { background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.35); }
.stat.yellow .ic { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.35); }
.stat.red .ic { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.35); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: rgba(34,197,94,.14); color: #6ee79a; border-color: rgba(34,197,94,.3); }
.badge-warn { background: rgba(245,158,11,.14); color: #ffcf6b; border-color: rgba(245,158,11,.35); }
.badge-danger { background: rgba(239,68,68,.14); color: #ff9b9b; border-color: rgba(239,68,68,.35); }
.badge-info { background: rgba(59,130,246,.14); color: #9cc3ff; border-color: rgba(59,130,246,.35); }
.badge-muted { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.badge-orange { background: rgba(247,147,26,.14); color: var(--orange-2); border-color: rgba(247,147,26,.35); }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; color: var(--text-2); }

/* ---------- forms ---------- */
label.lbl, .lbl { display: block; font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: .4rem; }
.input, select.input, textarea.input {
  width: 100%; padding: .75rem .95rem; border-radius: 12px; border: 1px solid var(--border-2);
  background: rgba(0,0,0,.25); color: var(--text); font: inherit; font-size: .95rem; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(247,147,26,.18); background: rgba(0,0,0,.35); }
.input::placeholder { color: #5d667a; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b93a7' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.4rem; }
[dir="rtl"] select.input { background-position: left .8rem center; padding-right: .95rem; padding-left: 2.4rem; }
select.input option { background: var(--bg-3); color: var(--text); }
textarea.input { min-height: 96px; resize: vertical; }
.field { margin-bottom: 1rem; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-inline-end: 4.5rem; }
.input-group .suffix { position: absolute; inset-inline-end: .9rem; color: var(--muted); font-weight: 700; font-size: .85rem; pointer-events: none; }
.input-group .btn-inside { position: absolute; inset-inline-end: .45rem; }
.input-lg { font-size: 1.4rem; padding: .9rem 1.1rem; font-family: var(--mono); font-weight: 700; }
.check { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.switch { position: relative; width: 46px; height: 26px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 999px; transition: .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s; }
.check input:checked + .switch { background: rgba(247,147,26,.35); border-color: var(--orange); }
.check input:checked + .switch::after { transform: translateX(20px); background: var(--orange-2); }
[dir="rtl"] .check input:checked + .switch::after { transform: translateX(-20px); }
.check input.sr { position: absolute; opacity: 0; width: 0; height: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: .8rem .9rem; text-align: start; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl th { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: rgba(255,255,255,.03); font-weight: 700; white-space: nowrap; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.035); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.actions { white-space: nowrap; text-align: end; }
.tbl .row-link { color: var(--text); font-weight: 600; }
.tbl .row-link:hover { color: var(--orange-2); }
@media (max-width: 720px) {
  .tbl.responsive thead { display: none; }
  .tbl.responsive tr { display: block; padding: .6rem .9rem; border-bottom: 1px solid var(--border); }
  .tbl.responsive td { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border: 0; text-align: end; }
  .tbl.responsive td::before { content: attr(data-l); color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-align: start; }
  .tbl.responsive td.actions { justify-content: flex-end; }
  .tbl.responsive td.actions::before { content: none; }
}

/* ---------- avatar ---------- */
.avatar { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; font-weight: 800; font-size: .9rem; color: #140a00; background: linear-gradient(135deg, var(--orange-2), var(--orange)); flex-shrink: 0; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; border-radius: 18px; }
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; border-radius: 9px; }

/* ---------- layout: app shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 1.25rem 1rem; border-inline-end: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 1rem; z-index: 40;
}
.brand { display: flex; align-items: center; gap: .7rem; padding: .35rem .5rem; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand .logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange-2), var(--orange-3)); color: #140a00; font-size: 1.35rem; font-weight: 900; box-shadow: 0 8px 20px rgba(247,147,26,.35); }
.brand small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: .2rem; }
.nav a { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 12px; color: var(--text-2); font-weight: 600; font-size: .93rem; transition: .15s; border: 1px solid transparent; }
.nav a .ic { width: 22px; text-align: center; font-size: 1.05rem; opacity: .9; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: rgba(247,147,26,.12); color: var(--orange-2); border-color: rgba(247,147,26,.25); }
.nav .count { margin-inline-start: auto; background: var(--orange); color: #140a00; font-size: .7rem; font-weight: 800; padding: .1rem .45rem; border-radius: 999px; }
.nav .sep { height: 1px; background: var(--border); margin: .5rem .4rem; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: .6rem; }
.user-chip { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.user-chip .name { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.user-chip .role { font-size: .72rem; color: var(--muted); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: .85rem 1.5rem; border-bottom: 1px solid var(--border); background: rgba(6,8,13,.7); backdrop-filter: blur(18px); }
.topbar h1 { font-size: 1.15rem; margin: 0; }
.topbar .spacer { flex: 1; }
.content { padding: 1.5rem; max-width: 1400px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head p { color: var(--muted); margin: 0; }
.burger { display: none; }
.bottom-nav { display: none; }
@media (max-width: 960px) {
  .sidebar { position: fixed; inset-inline-start: 0; top: 0; transform: translateX(calc(-100% - 10px)); transition: transform .25s var(--ease); box-shadow: var(--shadow); background: var(--bg-2); }
  [dir="rtl"] .sidebar { transform: translateX(calc(100% + 10px)); }
  .sidebar.open { transform: none !important; }
  .burger { display: inline-flex; }
  .content { padding: 1rem; padding-bottom: 5.5rem; }
  .topbar { padding: .7rem 1rem; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 35; background: rgba(6,8,13,.9); backdrop-filter: blur(18px); border-top: 1px solid var(--border); padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem .5rem; color: var(--muted); font-size: .68rem; font-weight: 600; border-radius: 10px; min-width: 56px; }
  .bottom-nav a .ic { font-size: 1.25rem; }
  .bottom-nav a.active { color: var(--orange-2); }
  .bottom-nav a.cta .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange-2), var(--orange-3)); color: #140a00; margin-top: -1.4rem; box-shadow: 0 8px 20px rgba(247,147,26,.4); }
}
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 39; opacity: 0; pointer-events: none; transition: .2s; }
.overlay.show { opacity: 1; pointer-events: auto; }

/* ---------- public layout ---------- */
.pub-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.pub-wrap { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem 3rem; }
.hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.12; margin-bottom: 1rem; }
.hero h1 .grad { background: linear-gradient(90deg, var(--gold), var(--orange), var(--orange-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.1rem; color: var(--text-2); max-width: 560px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 1.5rem; } }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none; z-index: -1; }
.orb-1 { width: 380px; height: 380px; background: var(--orange); top: -80px; inset-inline-end: 5%; animation: float 12s ease-in-out infinite; }
.orb-2 { width: 260px; height: 260px; background: var(--blue); bottom: -40px; inset-inline-start: 10%; animation: float 15s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -25px); } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(247,147,26,.14); border: 1px solid rgba(247,147,26,.3); margin-bottom: .8rem; }
.method-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.method-chips .pill { padding: .45rem .8rem; font-size: .88rem; color: var(--text); }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 2rem 1rem; border-top: 1px solid var(--border); margin-top: 2rem; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 440px; padding: 2rem; }
.auth-card .brand { justify-content: center; margin-bottom: 1rem; }

/* ---------- BTC widget ---------- */
.btc-widget { position: relative; overflow: hidden; }
.btc-widget::before { content: "₿"; position: absolute; inset-inline-end: -10px; top: -30px; font-size: 180px; font-weight: 900; color: rgba(247,147,26,.06); pointer-events: none; line-height: 1; }
.btc-head { display: flex; align-items: center; gap: .8rem; }
.btc-logo { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--orange-2), var(--orange-3)); box-shadow: 0 6px 18px rgba(247,147,26,.4); }
.btc-price { font-family: var(--mono); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; margin-top: .5rem; transition: color .3s; }
.btc-price.up { color: #86efac; } .btc-price.down { color: #fca5a5; }
.chg { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--mono); font-weight: 700; font-size: .85rem; padding: .2rem .55rem; border-radius: 8px; }
.chg.up { background: rgba(34,197,94,.14); color: #6ee79a; } .chg.down { background: rgba(239,68,68,.14); color: #ff9b9b; }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; color: #6ee79a; text-transform: uppercase; letter-spacing: .08em; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.spark { width: 100%; height: 90px; display: block; }
.btc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin-top: .8rem; }
.btc-meta div { background: rgba(0,0,0,.2); border: 1px solid var(--border); border-radius: 10px; padding: .55rem .7rem; }
.btc-meta .k { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.btc-meta .v { font-family: var(--mono); font-weight: 700; font-size: .92rem; margin-top: .15rem; }
.clock { font-family: var(--mono); font-weight: 700; font-size: .95rem; color: var(--text-2); }
.clock .date { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.ticker-mini { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; }
.ticker-mini .p { font-family: var(--mono); font-weight: 800; }

/* ---------- Balance card (BitKoin Card) ---------- */
.bcard-scene { perspective: 1400px; width: 100%; max-width: 480px; }
.bcard { position: relative; width: 100%; aspect-ratio: 1.586 / 1; transform-style: preserve-3d; transition: transform .7s var(--ease); cursor: pointer; }
.bcard.flipped { transform: rotateY(180deg); }
[dir="rtl"] .bcard.flipped { transform: rotateY(-180deg); }
.bcard .face {
  position: absolute; inset: 0; border-radius: 22px; padding: 1.5rem; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(135deg, #1a1d29 0%, #0c0f18 45%, #1c1207 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(247,147,26,.15), inset 0 1px 0 rgba(255,255,255,.12);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
}
.bcard .face::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 110% -20%, rgba(247,147,26,.55), transparent 60%), radial-gradient(400px 200px at -10% 120%, rgba(59,130,246,.35), transparent 60%); }
.bcard .face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.09) 45%, transparent 60%); transform: translateX(-120%); animation: shine 6s ease-in-out infinite; }
[dir="rtl"] .bcard .face::after { animation-name: shine-rtl; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes shine-rtl { 0%, 60% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }
.bcard .face > * { position: relative; z-index: 1; }
.bcard .back { transform: rotateY(180deg); }
.bcard .watermark { position: absolute; inset-inline-end: -20px; bottom: -40px; font-size: 200px; font-weight: 900; color: rgba(255,255,255,.04); line-height: 1; z-index: 0; }
.bcard .top { display: flex; justify-content: space-between; align-items: flex-start; }
.bcard .label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; opacity: .75; }
.bcard .brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; display: flex; align-items: center; gap: .4rem; }
.bcard .brand-name .b { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--orange-2), var(--orange-3)); display: grid; place-items: center; font-size: .95rem; font-weight: 900; color: #fff; }
.bcard .chip { width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #f3d98b, #c9962b 60%, #f3d98b); position: relative; overflow: hidden; }
.bcard .chip::before, .bcard .chip::after { content: ""; position: absolute; inset-inline: 0; height: 1px; background: rgba(0,0,0,.35); top: 33%; }
.bcard .chip::after { top: 66%; }
.bcard .balance-lbl { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.bcard .balance { font-family: var(--mono); font-size: clamp(1.5rem, 4.2vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.bcard .balance .cur { font-size: .55em; opacity: .8; margin-inline-start: .3rem; }
.bcard .equiv { font-family: var(--mono); font-size: .8rem; opacity: .8; margin-top: .2rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.bcard .number { font-family: var(--mono); font-size: clamp(1rem, 2.8vw, 1.3rem); letter-spacing: .14em; font-weight: 600; direction: ltr; text-align: left; }
.bcard .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.bcard .holder { text-transform: uppercase; font-weight: 700; font-size: .92rem; letter-spacing: .06em; }
.bcard .exp { font-family: var(--mono); font-size: .85rem; }
.bcard .exp .label { display: block; }
.bcard .stripe { height: 44px; background: #0a0a0a; margin: 0 -1.5rem; }
.bcard .sig { background: repeating-linear-gradient(45deg, #eee, #eee 4px, #ddd 4px, #ddd 8px); height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; padding: 0 .6rem; color: #111; font-family: var(--mono); font-weight: 700; }
.bcard .status-line { font-size: .75rem; opacity: .8; }
.bcard-note { font-size: .75rem; color: var(--muted); margin-top: .6rem; }
.bcard.sm { max-width: 340px; font-size: .8rem; }
.bcard.sm .face { padding: 1rem; border-radius: 16px; }

/* ---------- withdraw flow ---------- */
.steps { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.steps .step { flex: 1; display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: .85rem; }
.steps .step .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--surface-2); }
.steps .step.active { border-color: rgba(247,147,26,.4); color: var(--orange-2); background: rgba(247,147,26,.08); }
.steps .step.active .n { background: var(--orange); color: #140a00; }
.steps .step.done { color: #6ee79a; }
.steps .step.done .n { background: rgba(34,197,94,.25); color: #6ee79a; }
@media (max-width: 600px) { .steps .step span.t { display: none; } .steps .step { justify-content: center; } }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.country-btn { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; font: inherit; font-weight: 600; font-size: .88rem; transition: .15s; text-align: start; }
.country-btn .flag { font-size: 1.4rem; }
.country-btn:hover { border-color: var(--border-2); background: var(--surface-2); color: var(--text); }
.country-btn.active { border-color: var(--orange); background: rgba(247,147,26,.12); color: var(--orange-2); box-shadow: 0 0 0 3px rgba(247,147,26,.12); }
.methods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.method-card { position: relative; display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: .15s; text-align: start; font: inherit; color: var(--text); width: 100%; }
.method-card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-2px); }
.method-card.active { border-color: var(--orange); background: rgba(247,147,26,.1); box-shadow: 0 0 0 3px rgba(247,147,26,.14); }
.method-card .m-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border); }
.method-card .m-name { font-weight: 700; font-size: .95rem; }
.method-card .m-sub { font-size: .76rem; color: var(--muted); margin-top: .15rem; }
.method-card .m-check { position: absolute; top: .7rem; inset-inline-end: .7rem; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-2); }
.method-card.active .m-check { background: var(--orange); border-color: var(--orange); }
.method-card.active .m-check::after { content: "✓"; color: #140a00; font-size: .7rem; font-weight: 900; display: grid; place-items: center; height: 100%; }
.summary { border-radius: 16px; background: rgba(247,147,26,.06); border: 1px solid rgba(247,147,26,.25); padding: 1rem 1.2rem; }
.summary .row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.summary .row:last-child { border-bottom: 0; }
.summary .row.total { font-weight: 800; font-size: 1.1rem; color: var(--orange-2); }
.summary .row .v { font-family: var(--mono); font-weight: 700; }
.sticky-side { position: sticky; top: 84px; }
.quick-amounts { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.quick-amounts button { padding: .35rem .7rem; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.quick-amounts button:hover { border-color: var(--orange); color: var(--orange-2); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { position: relative; padding: 0 0 1.2rem 0; padding-inline-start: 2rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 9px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li .dot { position: absolute; inset-inline-start: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-2); background: var(--bg-2); display: grid; place-items: center; font-size: .65rem; }
.timeline li.done .dot { background: rgba(34,197,94,.2); border-color: var(--green); color: #6ee79a; }
.timeline li.current .dot { background: rgba(247,147,26,.2); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(247,147,26,.15); }
.timeline li.bad .dot { background: rgba(239,68,68,.2); border-color: var(--red); }
.timeline li .t { font-weight: 700; font-size: .92rem; }
.timeline li .d { color: var(--muted); font-size: .8rem; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border); }
.list-item .ic.in { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.3); }
.list-item .ic.out { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); }
.list-item .ic.ref { background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.3); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub { font-size: .78rem; color: var(--muted); }
.list-item .amt { font-family: var(--mono); font-weight: 800; white-space: nowrap; }
.amt.in { color: #6ee79a; } .amt.out { color: #ff9b9b; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .ic { font-size: 2.4rem; margin-bottom: .5rem; opacity: .7; }
.empty p { margin: 0; }

/* ---------- notifications ---------- */
.notif { display: flex; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.notif:last-child { border-bottom: 0; }
.notif .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(247,147,26,.14); border: 1px solid rgba(247,147,26,.3); flex-shrink: 0; }
.notif .t { font-weight: 700; font-size: .92rem; }
.notif .b { color: var(--text-2); font-size: .85rem; }
.notif .d { color: var(--muted); font-size: .75rem; margin-top: .2rem; }
.notif.unread .t::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-inline-start: .4rem; vertical-align: middle; }
.bell { position: relative; }
.bell .n { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }

/* ---------- toast / flash ---------- */
.toasts { position: fixed; top: 1rem; inset-inline-end: 1rem; z-index: 100; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, calc(100vw - 2rem)); }
.toast { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; border-radius: 14px; background: rgba(17,24,39,.95); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: .9rem; animation: slidein .3s var(--ease); backdrop-filter: blur(12px); }
.toast.success { border-color: rgba(34,197,94,.5); } .toast.error { border-color: rgba(239,68,68,.5); } .toast.info { border-color: rgba(59,130,246,.5); }
.toast .x { margin-inline-start: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
@keyframes slidein { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- modal ---------- */
dialog.modal { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 2rem)); width: 100%; color: var(--text); }
dialog.modal::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(6px); }
dialog.modal .card { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-foot { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.2rem; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; }
.tabs button, .tabs a { padding: .65rem 1rem; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs button.active, .tabs a.active { color: var(--orange-2); border-bottom-color: var(--orange); }
.tab-pane { display: none; } .tab-pane.active { display: block; }

/* ---------- filters / pagination ---------- */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.filters .input { width: auto; min-width: 200px; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chips a { padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .82rem; font-weight: 600; }
.chips a.active { border-color: var(--orange); background: rgba(247,147,26,.12); color: var(--orange-2); }
.chips a .c { opacity: .7; margin-inline-start: .3rem; font-family: var(--mono); }
.pagination { display: flex; gap: .4rem; align-items: center; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .45rem .8rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .85rem; font-weight: 600; }
.pagination a.active { border-color: var(--orange); color: var(--orange-2); background: rgba(247,147,26,.12); }
.pagination span.dis { opacity: .4; }

/* ---------- misc ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .9rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.copy-btn { cursor: pointer; }
.divider { height: 1px; background: var(--border); margin: 1rem 0; }
.hero-card-wrap { display: flex; justify-content: center; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: .5rem; }
.bar-chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; height: 100%; position: relative; }
.bar-chart .bars { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bar-chart .bar { width: 45%; max-width: 14px; border-radius: 4px 4px 0 0; min-height: 2px; transition: height .5s var(--ease); }
.bar-chart .bar.in { background: linear-gradient(180deg, #6ee79a, #16a34a); }
.bar-chart .bar.out { background: linear-gradient(180deg, var(--orange-2), var(--orange-3)); }
.bar-chart .lbl { font-size: .62rem; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.legend { display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: .3rem; vertical-align: middle; }
.credential-box { border: 1px dashed var(--border-2); border-radius: 14px; padding: 1rem; background: rgba(0,0,0,.2); }
.credential-box .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; }
.credential-box .row .v { font-family: var(--mono); font-weight: 700; }
.print-only { display: none; }
@media print {
  body { background: #fff; color: #000; }
  .sidebar, .topbar, .bottom-nav, .no-print, .toasts { display: none !important; }
  .content { padding: 0; }
  .card { background: #fff; border-color: #ccc; box-shadow: none; color: #000; }
  .print-only { display: block; }
}
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.fade-in { animation: fadein .5s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: .3rem .7rem; font-size: .78rem; font-weight: 700; color: var(--muted); }
.lang-switch a.active { background: var(--surface-2); color: var(--text); }
.method-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .2rem; border-bottom: 1px solid var(--border); }
.method-row:last-child { border-bottom: 0; }
.method-row .m-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.method-row.off { opacity: .5; }
.country-head { display: flex; align-items: center; gap: .6rem; margin: 1.4rem 0 .5rem; font-weight: 800; }
.country-head .flag { font-size: 1.4rem; }
.country-head:first-child { margin-top: 0; }

/* ---------- flags ---------- */
.flag-ic { display: inline-block; vertical-align: -3px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); object-fit: cover; }
span.flag-ic { box-shadow: none; vertical-align: baseline; }
.country-btn .flag .flag-ic { width: 28px; height: 21px; }

/* =========================================================
   Responsive hardening — كل شيء يلتفّ ولا يُقصّ على الشاشات الصغيرة
   ========================================================= */
html, body { max-width: 100%; overflow-x: hidden; }
.pub-nav { flex-wrap: wrap; row-gap: .6rem; }
.pub-nav > .flex { flex-wrap: wrap; justify-content: flex-end; row-gap: .5rem; margin-inline-start: auto; }
.pub-nav .brand { flex-shrink: 0; }
.topbar { flex-wrap: wrap; row-gap: .5rem; }
.topbar h1 { flex: 1 1 140px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .spacer { display: none; }
.page-head { min-width: 0; }
.page-head > div { min-width: 0; }
.page-head h1 { overflow-wrap: anywhere; }
.pill { max-width: 100%; flex-wrap: wrap; white-space: normal; }
.card { min-width: 0; overflow-wrap: anywhere; }
.card-head { flex-wrap: wrap; }
.card-head h2, .card-head h3 { min-width: 0; }
.credential-box .row { flex-wrap: wrap; }
.kv { grid-template-columns: minmax(90px, auto) 1fr; }
.list-item .body { min-width: 0; }
.summary .row { flex-wrap: wrap; }
.btc-price { overflow-wrap: anywhere; }
.bcard-scene { min-width: 0; }
.filters .input { min-width: 0; flex: 1 1 160px; }
.grid > * { min-width: 0; }
img { height: auto; }
@media (max-width: 600px) {
  .flex { flex-wrap: wrap; }
  .user-chip, .btc-head, .list-item, .notif, .method-row, .avatar, .steps .step { flex-wrap: nowrap; }
  .pub-nav { padding: .8rem 1rem; }
  .pub-nav .brand { font-size: 1rem; }
  .pub-nav .brand .logo { width: 34px; height: 34px; font-size: 1.1rem; }
  .pub-nav .clock { font-size: .85rem; }
  .pub-wrap { padding: .5rem 1rem 2rem; }
  .hero { padding: 1rem 0 1rem; gap: 1.25rem; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero p.lead { font-size: 1rem; }
  .hero .btn-lg { width: 100%; }
  .content { padding: .85rem; padding-bottom: 5.5rem; }
  .card { padding: 1rem; border-radius: 14px; }
  .page-head .flex.wrap > .btn { flex: 1 1 auto; }
  .stat .value { font-size: 1.3rem; }
  .btn-lg { padding: .85rem 1.1rem; font-size: .95rem; }
  .topbar { padding: .6rem .85rem; gap: .5rem; }
  .topbar h1 { font-size: 1rem; }
  .topbar .clock { font-size: .85rem; }
  .topbar .btn-sm { padding: .4rem .6rem; }
  .auth-card { padding: 1.4rem 1.1rem; }
  .bcard .face { padding: 1.1rem; border-radius: 18px; }
  .bcard .number { letter-spacing: .1em; }
  .methods-grid { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-amounts button { flex: 1 1 auto; }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 auto; }
  .tabs button, .tabs a { padding: .55rem .7rem; font-size: .85rem; }
  .bar-chart .lbl { display: none; }
  .bar-chart .col:nth-child(odd) .lbl { display: block; }
  .chips a { padding: .35rem .6rem; font-size: .78rem; }
  .tbl.responsive td { flex-wrap: wrap; }
  .tbl.responsive td.actions { flex-wrap: wrap; gap: .4rem; }
  .tbl.responsive td.actions .btn, .tbl.responsive td.actions form { flex: 1 1 auto; }
  .tbl.responsive td.actions form .btn { width: 100%; }
}
@media (max-width: 380px) {
  .grid-4.keep-2, .grid-2.keep-2 { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: 1fr 1fr; gap: .4rem; }
  .country-btn { padding: .55rem .6rem; font-size: .8rem; }
  .bcard .balance { font-size: 1.4rem; }
  .bcard .equiv { font-size: .7rem; }
  .btc-price { font-size: 1.6rem; }
}
@media (max-width: 400px) {
  .bottom-nav a { white-space: nowrap; font-size: .6rem; min-width: 0; padding: .35rem .3rem; }
}

/* ---------- Balance panel (يحل محل البطاقة) ---------- */
.balance-panel {
  position: relative; overflow: hidden; width: 100%; max-width: 560px; border-radius: 22px; padding: 1.5rem 1.6rem;
  background: linear-gradient(135deg, #1a1d29 0%, #0c0f18 45%, #1c1207 100%);
  border: 1px solid rgba(255,255,255,.12); color: #fff;
  box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(247,147,26,.18), inset 0 1px 0 rgba(255,255,255,.1);
}
.balance-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 110% -20%, rgba(247,147,26,.5), transparent 60%), radial-gradient(400px 200px at -10% 120%, rgba(59,130,246,.3), transparent 60%); pointer-events: none; }
.balance-panel > * { position: relative; z-index: 1; }
.balance-panel .watermark { position: absolute; inset-inline-end: -20px; bottom: -50px; font-size: 220px; font-weight: 900; color: rgba(255,255,255,.04); line-height: 1; z-index: 0; pointer-events: none; }
.balance-panel .bp-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.balance-panel .bp-title { display: flex; align-items: center; gap: .5rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; opacity: .85; }
.balance-panel .b { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--orange-2), var(--orange-3)); display: inline-grid; place-items: center; font-size: .85rem; font-weight: 900; color: #fff; flex-shrink: 0; }
.balance-panel .bp-amount { font-family: var(--mono); font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 1rem 0 .6rem; overflow-wrap: anywhere; }
.balance-panel .bp-amount .cur { font-size: .45em; opacity: .8; margin-inline-start: .4rem; }
.balance-panel .bp-equiv { display: flex; gap: .5rem; flex-wrap: wrap; }
.balance-panel .bp-equiv .pill { background: rgba(0,0,0,.3); border-color: rgba(255,255,255,.12); color: #fff; font-family: var(--mono); font-weight: 700; font-size: .82rem; gap: .45rem; }
.balance-panel .bp-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.balance-panel .label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; opacity: .7; }
.balance-panel .holder { text-transform: uppercase; font-weight: 800; font-size: 1rem; letter-spacing: .05em; }
.balance-panel .bp-status { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.balance-panel.sm { padding: 1rem 1.1rem; border-radius: 16px; max-width: 360px; }
.balance-panel.sm .bp-amount { font-size: 1.6rem; margin: .5rem 0 .4rem; }
@media (max-width: 600px) { .balance-panel { padding: 1.2rem 1.1rem; border-radius: 18px; } .balance-panel .bp-status { align-items: flex-start; } }
/* زر الخروج في الشريط العلوي */
.topbar .logout-form { display: inline-flex; }
@media (max-width: 600px) { .topbar .logout-txt { display: none; } .topbar .logout-form .btn { padding: .4rem .55rem; } }
