/* ==========================================================================
   Stripe Payout Panel — Bybit 2026 Clean Light (Default) + Dark Theme
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-page: #ffffff;
  --bento: #f5f7fa;
  --bento-border: #eceff4;
  --card: #ffffff;
  --card-border: #edf0f5;
  --surface: #f3f5f8;
  --surface-hover: #eaedf2;
  --line: #ebeef3;
  --line-2: #dce1e9;
  --text: #121214;
  --text-2: #4e5460;
  --muted: #81858c;
  --accent: #f7a600;
  --accent-2: #ff9c0a;
  --accent-grad: linear-gradient(90deg, #f7a600 0%, #ff9d00 100%);
  --accent-ink: #121214;
  --accent-soft: rgba(247, 166, 0, .13);
  --accent-text: #c97d00;
  --green: #00b578;
  --green-soft: rgba(0, 181, 120, .11);
  --red: #ef454a;
  --red-soft: rgba(239, 69, 74, .11);
  --blue: #2f6bff;
  --blue-soft: rgba(47, 107, 255, .10);
  --stripe: #543afd;
  --stripe-soft: rgba(84, 58, 253, .10);
  --shadow-sm: 0 2px 10px rgba(18, 20, 24, .04);
  --shadow: 0 14px 40px rgba(18, 20, 24, .10);
  --shadow-lg: 0 24px 64px rgba(18, 20, 24, .16);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 10px;
  --pill: 999px;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0f1115;
  --bg-page: #0f1115;
  --bento: #161920;
  --bento-border: #222630;
  --card: #1c2028;
  --card-border: #272b36;
  --surface: #232833;
  --surface-hover: #2b313e;
  --line: #252933;
  --line-2: #343946;
  --text: #f2f4f7;
  --text-2: #adb2bc;
  --muted: #7c828e;
  --accent-text: #f7a600;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .28);
  --shadow: 0 16px 44px rgba(0, 0, 0, .48);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .62);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color .2s ease, color .2s ease;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
img { display: block; }
::selection { background: rgba(247, 166, 0, .28); }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.green { color: var(--green); }
.red { color: var(--red); }
.accent { color: var(--accent-text); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }

/* ===================== SITE-MATCHED BYBIT-STYLE STRIPE SPLASH ===================== */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  overflow: hidden;
  transition: opacity .45s cubic-bezier(.4, 0, .2, 1), transform .45s cubic-bezier(.4, 0, .2, 1), visibility .45s ease;
}
.splash.done { opacity: 0; transform: scale(1.02); visibility: hidden; }
.splash-inner {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.splash-lockup {
  display: flex; align-items: center; justify-content: center;
  height: 76px;
}
.splash-icon-box {
  width: 66px; height: 66px; flex: none; position: relative; z-index: 2;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
}
.splash-icon {
  width: 64px; height: 64px; object-fit: cover; border-radius: 16px;
  box-shadow: 0 10px 28px rgba(18, 18, 20, .18);
  animation: stripeBlink 1.15s cubic-bezier(.45, .05, .55, .95) infinite;
}
[data-theme="dark"] .splash-icon {
  border: 1px solid rgba(239, 159, 0, .30);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}
/* Маска расширяется слева направо, и слово stripe (с золотой i) плавно выезжает из-за иконки */
.splash-word-mask {
  overflow: hidden;
  max-width: 0;
  margin-left: 0;
  display: flex; align-items: center;
  animation: stripeMaskOpen .72s cubic-bezier(.22, 1, .36, 1) .40s forwards;
}
.splash-word-slide {
  transform: translateX(-105%);
  opacity: 0;
  padding: 5px 2px 2px;
  animation: stripeWordOut .72s cubic-bezier(.22, 1, .36, 1) .40s forwards;
}
.splash-word-img {
  height: 50px; width: auto; display: block;
}
.splash-progress {
  width: 186px; height: 3px; border-radius: 99px;
  background: var(--surface);
  overflow: hidden;
}
.splash-runner {
  display: block; width: 46%; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, rgba(239, 159, 0, .15), #ef9f00, #ffb829, rgba(239, 159, 0, .15));
  animation: splashRun 1.05s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes stripeBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .32; transform: scale(.94); }
}
@keyframes stripeMaskOpen {
  0% { max-width: 0; margin-left: 0; }
  100% { max-width: 146px; margin-left: 14px; }
}
@keyframes stripeWordOut {
  0% { transform: translateX(-105%); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes splashRun {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(250%); }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ===================== BYBIT-COLORED STRIPE LOGO (HEADER) ===================== */
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text); text-decoration: none; flex: none; padding: 4px 2px;
}
.brand:hover { opacity: .88; }
.brand-stripe-ico {
  width: 28px; height: 28px; border-radius: 8px; object-fit: cover;
  box-shadow: 0 2px 8px rgba(18, 18, 20, .18);
}
[data-theme="dark"] .brand-stripe-ico {
  border: 1px solid rgba(239, 159, 0, .32);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.brand-stripe-word { height: 22px; width: auto; display: block; margin-top: 2px; }
.brand-word-dark { display: none; }
[data-theme="dark"] .brand-word-light { display: none; }
[data-theme="dark"] .brand-word-dark { display: block; }

/* ===================== BUTTONS (BYBIT PILLS & CLEAN RECT) ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: var(--pill);
  border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 14px;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .06s;
  white-space: nowrap; user-select: none; color: var(--text); background: var(--surface);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--accent-grad); color: var(--accent-ink);
  box-shadow: 0 2px 10px rgba(247, 166, 0, .24);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(90deg, #ffae14 0%, #ffa20a 100%);
  box-shadow: 0 4px 16px rgba(247, 166, 0, .34);
  color: var(--accent-ink);
}
.btn-dark { background: var(--surface); color: var(--text); border-color: transparent; }
.btn-dark:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-text); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover:not(:disabled) { background: rgba(239, 69, 74, .18); }
.btn-success { background: var(--green-soft); color: var(--green); }
.btn-success:hover:not(:disabled) { background: rgba(0, 181, 120, .18); }
.btn-blue { background: var(--blue-soft); color: var(--blue); }
.btn-blue:hover:not(:disabled) { background: rgba(47, 107, 255, .18); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  background: transparent; color: var(--text-2); border: 1px solid transparent;
}
.btn-icon:hover { color: var(--text); background: var(--surface); }
.btn .spin {
  width: 16px; height: 16px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); cursor: pointer; font-weight: 600; font-size: inherit; }
.link-btn:hover { color: var(--accent); }

/* ===================== FORMS ===================== */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label, .label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.input, .select, textarea.input {
  width: 100%; height: 46px; padding: 0 15px; border-radius: 12px;
  background: var(--surface); color: var(--text); border: 1.5px solid transparent;
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 84px; padding: 12px 15px; resize: vertical; }
.input:hover { background: var(--surface-hover); }
.input:focus {
  border-color: var(--accent); background: var(--card);
  box-shadow: 0 0 0 3px rgba(247, 166, 0, .14);
}
.input.error { border-color: var(--red); background: var(--card); }
.input::placeholder { color: var(--muted); }
.input-sm { height: 36px; font-size: 13px; padding: 0 12px; border-radius: 10px; }
.input-pill { border-radius: var(--pill); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 136px; }
.input-group .suffix {
  position: absolute; right: 14px; display: flex; align-items: center; gap: 10px;
  color: var(--text-2); font-weight: 600; font-size: 13.5px;
}
.input-group .suffix .sep { width: 1px; height: 16px; background: var(--line-2); }
.field-hint { font-size: 12.5px; color: var(--muted); }
.field-error { font-size: 12.5px; color: var(--red); min-height: 0; font-weight: 500; }
.input-amount { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; height: 54px; }
.code-input { letter-spacing: 8px; font-size: 22px; text-align: center; font-family: var(--mono); font-weight: 600; }

.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 44px; }
.pass-wrap .eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--line-2); border-radius: 24px; cursor: pointer; transition: .2s; }
.switch .slider::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); }

.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); font-size: 13.5px; }
.checkbox input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ===================== TOP BYBIT HEADER + MEGA MENU ===================== */
.header {
  position: sticky; top: 0; z-index: 60; height: 64px;
  display: flex; align-items: center; gap: 20px; padding: 0 24px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.header-nav { display: flex; align-items: center; gap: 2px; height: 100%; }
.h-nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.h-nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 12px; border-radius: 8px;
  color: var(--text); font-weight: 500; font-size: 14px;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: color .15s, background .15s;
}
.h-nav-link:hover, .h-nav-item.open > .h-nav-link { color: var(--accent-text); }
.h-nav-link.active { color: var(--accent-text); font-weight: 600; }
.h-nav-link .flame-ico { color: #ff7a00; display: inline-flex; }
.h-nav-link .chev { color: var(--muted); transition: transform .18s; display: inline-flex; }
.h-nav-item.open > .h-nav-link .chev { transform: rotate(180deg); color: var(--accent-text); }
.nav-pill-cnt {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* Bybit Search / Live Hot Ticker Pill in Header */
.header-search {
  position: relative; width: 210px; margin-left: 6px;
}
.header-search-btn {
  width: 100%; height: 36px; padding: 0 14px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid transparent;
  display: flex; align-items: center; gap: 8px; color: var(--text-2);
  font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s;
}
.header-search-btn:hover { background: var(--surface-hover); border-color: var(--line-2); }
.header-search-btn .flame-ico { color: #ff7a00; display: inline-flex; }
.header-search-btn .ticker-pair { font-weight: 600; color: var(--text); font-size: 12.5px; }
.header-search-btn .ticker-px { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.search-pop {
  position: absolute; left: 0; top: calc(100% + 10px); width: 320px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 12px; z-index: 80;
}
.search-pop .input { height: 38px; border-radius: 99px; margin-bottom: 10px; }
.search-list { max-height: 290px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.search-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  color: var(--text); cursor: pointer; border: 0; background: none; width: 100%; text-align: left;
}
.search-row:hover { background: var(--surface); }
.search-row .ico { width: 24px; height: 24px; flex: none; display: flex; }
.search-row .ico img, .search-row .ico svg { width: 24px; height: 24px; }

/* Authentic 2-Column Bybit Floating Mega-Menu (from user screenshot 2!) */
.mega-menu {
  position: absolute; left: -16px; top: calc(100% + 2px);
  width: 600px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 248px 1fr; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 90;
}
.h-nav-item.open .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-left { padding: 16px 12px; border-right: 1px solid var(--line); background: var(--card); }
.mega-cap { font-size: 12px; color: var(--muted); font-weight: 500; padding: 0 12px 10px; }
.mega-cat {
  display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 11px 12px;
  border-radius: 12px; border: 0; background: none; cursor: pointer; text-align: left;
  color: var(--text); transition: background .14s;
}
.mega-cat:hover, .mega-cat.active { background: var(--surface); }
.mega-cat .m-ico {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.mega-cat .m-ico img { width: 24px; height: 24px; }
.mega-cat .m-title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mega-cat .m-desc { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.mega-cat .m-arr { margin-left: auto; color: var(--muted); align-self: center; }
.mini-tag {
  font-size: 10px; font-weight: 700; padding: 1.5px 6px; border-radius: 4px;
  background: var(--accent); color: var(--accent-ink); line-height: 1.25;
}
.mini-tag.green-t { background: var(--green-soft); color: var(--green); }

.mega-right { padding: 14px 12px; max-height: 410px; overflow-y: auto; }
.mega-tabs { display: flex; gap: 14px; padding: 2px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mega-tabs button {
  background: none; border: 0; padding: 4px 0; font-size: 12.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; position: relative;
}
.mega-tabs button.active { color: var(--text); }
.mega-tabs button.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 2px; background: var(--accent); border-radius: 2px;
}
.mega-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px;
  color: var(--text); text-decoration: none; cursor: pointer; transition: background .12s;
}
.mega-item:hover { background: var(--surface); color: var(--text); }
.mega-item .mi-ico { width: 28px; height: 28px; flex: none; display: flex; }
.mega-item .mi-ico svg, .mega-item .mi-ico img { width: 28px; height: 28px; }
.mega-item .mi-name { font-weight: 600; font-size: 13.5px; }
.mega-item .mi-sub { font-size: 12px; color: var(--muted); }
.mega-item .mi-fee { margin-left: auto; text-align: right; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border-radius: var(--pill); background: var(--surface); font-size: 12.5px; color: var(--text-2);
  font-weight: 500; white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(0, 181, 120, .18); }
.dot.err { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 69, 74, .18); }
.dot.warn { background: var(--accent); box-shadow: 0 0 0 3px rgba(247, 166, 0, .20); }
.dot.pulse { animation: pulse 1.6s infinite; }
.mode-tag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 99px; letter-spacing: .04em; }
.mode-tag.live { background: var(--green-soft); color: var(--green); }
.mode-tag.test { background: var(--accent-soft); color: var(--accent-text); }

.user-menu { position: relative; }
.user-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 2px 10px 2px 4px;
  border-radius: var(--pill); background: var(--surface); border: 1px solid transparent;
  color: var(--text); cursor: pointer; font-weight: 500; font-size: 13.5px;
  transition: background .15s, border-color .15s;
}
.user-btn:hover { background: var(--surface-hover); border-color: var(--line-2); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #f7a600, #ff8800); color: #121214;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; text-transform: uppercase; flex: none;
}
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); z-index: 90;
}
.dropdown .dd-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown a, .dropdown button.dd-item {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--text-2); background: none; border: 0; cursor: pointer; font-size: 13.5px; font-weight: 500; text-align: left;
}
.dropdown a:hover, .dropdown button.dd-item:hover { background: var(--surface); color: var(--text); }

/* ===================== BYBIT 2026 LOGIN LANDING (MATCHES SCREENSHOT 1) ===================== */
.landing { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.landing-main {
  flex: 1; width: 100%; max-width: 1220px; margin: 0 auto;
  padding: 52px 24px 44px; display: flex; flex-direction: column; justify-content: center;
}
.landing-hero {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 18px;
}
.eyebrow-bar { width: 2.5px; height: 15px; border-radius: 2px; background: var(--accent); display: inline-block; }
.landing-h1 {
  font-size: 50px; line-height: 1.09; letter-spacing: -.03em; font-weight: 700;
  margin: 0 0 18px; color: var(--text);
}
.landing-sub {
  font-size: 16px; color: var(--text-2); margin: 0 0 28px; font-weight: 400; letter-spacing: .01em;
}
.landing-sub span { color: var(--muted); margin: 0 6px; }

/* Inline Bybit-style Pill Login Panel */
.login-shell {
  background: var(--bento); border: 1px solid var(--bento-border);
  border-radius: 24px; padding: 18px; max-width: 470px;
}
.login-inner {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm);
}
.login-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.login-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.login-pills { display: flex; flex-direction: column; gap: 10px; }
.login-pills .input { height: 46px; border-radius: 14px; }
.login-submit-row {
  margin-top: 14px; display: flex; align-items: center; gap: 10px;
}
.login-submit-row .btn { height: 46px; font-size: 15px; }
.login-foot-meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 18px; color: var(--muted); font-size: 12.5px; font-weight: 500;
}
.login-foot-meta span { display: inline-flex; align-items: center; gap: 6px; }
.login-foot-meta svg { color: var(--accent-text); }

/* Right-hand Bybit Bento Showcase (Trending + Rates + Hot Networks) */
.bento-frame {
  background: var(--bento); border: 1px solid var(--bento-border);
  border-radius: 24px; padding: 14px;
}
.bento-top-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.bento-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm);
}
.bento-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bento-card-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.trend-asset { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.trend-asset img { width: 22px; height: 22px; }
.trend-price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.trend-price { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.trend-chg { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.spark-svg { width: 100%; height: 64px; display: block; overflow: visible; }
.spark-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }

.rate-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
}
.rate-row + .rate-row { border-top: 1px solid var(--line); }
.rate-row img { width: 26px; height: 26px; flex: none; }
.rate-row .r-sym { font-weight: 700; font-size: 13px; line-height: 1.2; }
.rate-row .r-sub { font-size: 11px; color: var(--muted); }
.rate-row .r-right { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.rate-row .r-px { font-weight: 700; font-size: 13.5px; }
.rate-row .r-chg { font-size: 11.5px; font-weight: 600; }

.hot-tabs { display: flex; align-items: center; gap: 16px; }
.hot-tabs button {
  background: none; border: 0; padding: 0 0 2px; font-size: 14.5px; font-weight: 700;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
}
.hot-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.hot-row {
  display: flex; align-items: center; gap: 11px; padding: 9px 6px; border-radius: 10px;
  transition: background .12s;
}
.hot-row:hover { background: var(--surface); }
.hot-row .hr-ico { width: 26px; height: 26px; flex: none; display: flex; }
.hot-row .hr-ico svg, .hot-row .hr-ico img { width: 26px; height: 26px; }
.hot-row .hr-name { font-weight: 600; font-size: 13.5px; }
.hot-row .hr-sub { font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.hot-row .hr-val { margin-left: auto; font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.hot-row .hr-meta { min-width: 72px; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--green); }

/* Bottom 4-col KPI strip (matches Bybit 91M+ / 28B+ / 3,447+ / 24/7) */
.landing-kpis {
  margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.kpi-num { font-size: 36px; font-weight: 700; letter-spacing: -.03em; color: var(--text); line-height: 1.15; }
.kpi-lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Floating bottom-right Bybit action circles */
.float-dock {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  box-shadow: var(--shadow); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, border-color .15s, color .15s;
}
.float-btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-text); }

/* ===================== LOGGED-IN BYBIT WORKSPACE SHELL ===================== */
.shell { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 236px; flex: none; background: var(--card); border-right: 1px solid var(--line);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.sb-group {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 14px 12px 6px;
}
.sb-group:first-child { padding-top: 4px; }
.sb-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px;
  color: var(--text-2); font-weight: 500; font-size: 14px; transition: background .14s, color .14s;
  position: relative;
}
.sb-link:hover { background: var(--surface); color: var(--text); }
.sb-link.active { background: var(--surface); color: var(--text); font-weight: 600; }
.sb-link.active svg { color: var(--accent); }
.sb-link.active::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent);
}
.sb-link .nav-pill-cnt { margin-left: auto; }
.sb-foot {
  margin-top: auto; padding-top: 14px;
}
.sb-stripe-box {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px;
  background: var(--bento); border: 1px solid var(--bento-border); color: var(--text);
}
.sb-stripe-box img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.sb-stripe-box .st-title { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-stripe-box .st-sub { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }

.page {
  flex: 1; min-width: 0; max-width: 1280px; margin: 0 auto; padding: 28px 32px 48px;
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.page-head .sub { color: var(--muted); margin-top: 4px; font-size: 13.5px; }

/* Bento & Card primitives */
.bento {
  background: var(--bento); border: 1px solid var(--bento-border);
  border-radius: var(--radius-xl); padding: 14px;
}
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-title { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.card-sub { color: var(--muted); font-size: 12.5px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }

/* ===================== DASHBOARD (ASSETS OVERVIEW) ===================== */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.hero-top { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.hero-amount { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 4px; flex-wrap: wrap; }
.hero-amount .num { font-size: 42px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-amount .cur { font-size: 18px; font-weight: 700; color: var(--text-2); }
.hero-fiat { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-actions .btn img { width: 18px; height: 18px; }

.cur-switch {
  display: inline-flex; background: var(--surface); border-radius: var(--pill); padding: 2px; gap: 2px; margin-left: auto;
}
.cur-switch button {
  background: none; border: 0; border-radius: var(--pill); padding: 4px 11px;
  font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.cur-switch button.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 100%; }
.stat {
  background: var(--bento); border: 1px solid var(--bento-border);
  border-radius: 14px; padding: 14px 16px; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.stat .k { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 19px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

.chart-wrap { position: relative; height: 248px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 10px 12px; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -112%); box-shadow: var(--shadow);
  z-index: 10;
}
.seg { display: inline-flex; background: var(--surface); border-radius: var(--pill); padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; color: var(--muted); padding: 4px 12px; border-radius: var(--pill); cursor: pointer; font-size: 12px; font-weight: 600; }
.seg button.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.tx-list { display: flex; flex-direction: column; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 8px; transition: background .12s; }
.tx:hover { background: var(--surface); }
.tx:last-child { border-bottom: 0; }
.tx-ico { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: var(--surface); color: var(--text-2); }
.tx-ico.in { background: var(--green-soft); color: var(--green); }
.tx-ico.out { background: var(--red-soft); color: var(--red); }
.tx-main { flex: 1; min-width: 0; }
.tx-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-sub { color: var(--muted); font-size: 12px; margin-top: 1px; }
.tx-amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13.5px; }

/* Hot Coins / Quick Withdraw widget on Dashboard */
.qw-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 12px;
  transition: background .12s;
}
.qw-row:hover { background: var(--surface); }
.qw-row + .qw-row { border-top: 1px solid var(--line); }
.qw-ico { width: 32px; height: 32px; flex: none; display: flex; }
.qw-ico img, .qw-ico svg { width: 32px; height: 32px; }
.qw-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.qw-sub { font-size: 12px; color: var(--muted); }
.qw-px { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; margin-right: 8px; flex: none; white-space: nowrap; }
.qw-px .p { font-weight: 700; font-size: 14px; }
.qw-px .c { font-size: 12px; font-weight: 600; }

/* ===================== TABLES & BADGES ===================== */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12px; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--bento); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.coin-cell { display: flex; align-items: center; gap: 10px; }
.coin-cell img, .coin-cell svg { width: 26px; height: 26px; flex: none; }
.addr { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.copy-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 3px; border-radius: 6px; display: inline-flex; }
.copy-btn:hover { color: var(--accent-text); background: var(--surface); }
.empty { text-align: center; color: var(--muted); padding: 38px 12px; }
.empty svg { width: 56px; height: 56px; opacity: .35; margin: 0 auto 10px; display: block; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.pending { background: var(--accent-soft); color: var(--accent-text); }
.badge.processing { background: var(--blue-soft); color: var(--blue); }
.badge.completed { background: var(--green-soft); color: var(--green); }
.badge.rejected { background: var(--red-soft); color: var(--red); }
.badge.cancelled { background: var(--surface); color: var(--muted); }
.badge.owner { background: var(--accent-soft); color: var(--accent-text); }
.badge.admin { background: var(--blue-soft); color: var(--blue); }
.badge.off { background: var(--red-soft); color: var(--red); }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { position: relative; background: none; border: 0; color: var(--muted); padding: 10px 0 12px; cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); }
.tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; background: var(--accent); border-radius: 2px; }
.tabs .n { color: var(--muted); font-size: 12px; margin-left: 5px; font-weight: 500; }

/* ===================== WITHDRAW PAGE ===================== */
.wd-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr); gap: 20px; align-items: start; }
.steps { position: relative; }
.step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text-2); font-weight: 700; font-size: 13px; position: relative; z-index: 1;
  transition: background .15s, color .15s;
}
.step.done .step-num { background: var(--accent); color: var(--accent-ink); }
.step.done::before { background: var(--accent); }
.step-title { font-weight: 700; font-size: 15px; margin: 4px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.step.locked .step-body { opacity: .45; pointer-events: none; }

/* Big crisp Coin Selector Cards (USDT / LTC / BTC) */
.coin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); gap: 10px; }
.coin-card {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 14px; min-width: 0;
  background: var(--surface); border: 1.5px solid transparent; color: var(--text);
  cursor: pointer; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s;
}
.coin-card:hover:not(:disabled) { background: var(--surface-hover); }
.coin-card.active {
  background: var(--card); border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(247, 166, 0, .14);
}
.coin-card:disabled { opacity: .45; cursor: not-allowed; }
.coin-card img { width: 32px; height: 32px; flex: none; }
.coin-card .cc-sym { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 5px; }
.coin-card .cc-sub { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 1px; }

.picker {
  width: 100%; height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 15px;
  background: var(--surface); border: 1.5px solid transparent; border-radius: 12px;
  color: var(--text); cursor: pointer; text-align: left; font-size: 15px; transition: border-color .15s, background .15s;
}
.picker:hover { background: var(--surface-hover); border-color: var(--line-2); }
.picker.open, .picker:focus { border-color: var(--accent); background: var(--card); outline: none; }
.picker .ico { width: 28px; height: 28px; flex: none; display: flex; }
.picker .ico img, .picker .ico svg { width: 28px; height: 28px; }
.picker .main { font-weight: 700; }
.picker .sub { color: var(--muted); font-size: 13px; }
.picker .chev { margin-left: auto; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.picker .ph { color: var(--muted); }

.quick-coins { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid transparent; color: var(--text-2);
  cursor: pointer; font-size: 12.5px; font-weight: 600; transition: all .14s;
}
.chip img, .chip svg { width: 16px; height: 16px; }
.chip:hover { color: var(--text); background: var(--surface-hover); }
.chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }

.pct-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.pct-btn {
  height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  color: var(--text-2); font-weight: 600; font-size: 12.5px; cursor: pointer; transition: all .14s;
}
.pct-btn:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }

.addr-wrap { position: relative; }
.addr-wrap .input { padding-right: 92px; }
.addr-paste {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  height: 30px; padding: 0 11px; border-radius: 8px; border: 0;
  background: var(--card); color: var(--text-2); font-size: 12px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px; box-shadow: var(--shadow-sm);
}
.addr-paste:hover { color: var(--accent-text); }

.avail-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 10px; gap: 10px; flex-wrap: wrap; }
.avail-row b { color: var(--text); font-weight: 600; }

/* Sticky right Order Summary Card */
.wd-sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.summary-box .line { display: flex; justify-content: space-between; color: var(--text-2); padding: 9px 0; gap: 12px; font-size: 13.5px; }
.summary-box .line b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.summary-box .divider { height: 1px; background: var(--line); margin: 10px 0 14px; }
.summary-box .receive { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; gap: 12px; }
.summary-box .receive .big { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.summary-box .receive .big small { font-size: 15px; color: var(--text-2); font-weight: 700; margin-left: 5px; }

.notice { display: flex; gap: 10px; padding: 12px 15px; border-radius: 12px; font-size: 13px; line-height: 1.5; align-items: flex-start; }
.notice svg { flex: none; margin-top: 2px; }
.notice.warn { background: var(--accent-soft); color: var(--accent-text); }
.notice.info { background: var(--blue-soft); color: var(--blue); }
.notice.err { background: var(--red-soft); color: var(--red); }
.notice.ok { background: var(--green-soft); color: var(--green); }
.faq-item { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 13px; }
.faq-item:last-child { border-bottom: 0; }
.faq-item b { color: var(--text); display: block; margin-bottom: 3px; font-weight: 600; }

/* Выбор сети — карточки со скриншотов в чистой Bybit-подаче */
.net-list { display: flex; flex-direction: column; gap: 10px; }
.net-card {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left;
  padding: 15px 16px; border-radius: 14px; background: var(--bento); border: 1.5px solid var(--bento-border);
  color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.net-card:hover { border-color: var(--line-2); background: var(--surface-hover); }
.net-card.active { border-color: var(--accent); background: var(--card); box-shadow: 0 4px 16px rgba(247, 166, 0, .14); }
.net-card .net-ico { width: 32px; height: 32px; flex: none; margin-top: 1px; }
.net-card .net-ico svg, .net-card .net-ico img { width: 32px; height: 32px; }
.net-card .net-title { font-size: 15.5px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.net-card .net-title span { font-weight: 400; color: var(--text-2); font-size: 13.5px; }
.net-card .net-line { color: var(--text-2); font-size: 13.5px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.net-card .net-line .fiat { margin-left: 8px; color: var(--muted); }
.net-card.disabled { opacity: .45; cursor: not-allowed; }
.net-search { margin-bottom: 12px; border-radius: var(--pill); height: 42px; }

/* ===================== MODAL ===================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 17, 21, .48);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s ease;
}
.modal {
  width: 100%; max-width: 470px; max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); animation: pop .18s ease;
}
.modal.wide { max-width: 640px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 6px; }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.modal-body { padding: 14px 22px 22px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; padding: 0 22px 22px; }
.modal-foot .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); white-space: nowrap; }
.kv .v { text-align: right; word-break: break-all; font-variant-numeric: tabular-nums; font-weight: 500; }
.qr-box { display: flex; justify-content: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; width: max-content; margin: 0 auto 12px; }
.secret-box { font-family: var(--mono); background: var(--surface); padding: 10px 12px; border-radius: 10px; text-align: center; letter-spacing: 1.5px; word-break: break-all; font-size: 13px; }

/* ===================== TOASTS ===================== */
.toasts { position: fixed; top: 76px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; min-width: 260px; max-width: 390px; padding: 13px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; gap: 10px; align-items: flex-start; animation: slideIn .2s ease; font-size: 13.5px; font-weight: 500;
}
.toast.ok { border-left: 4px solid var(--green); }
.toast.err { border-left: 4px solid var(--red); }
.toast.warn { border-left: 4px solid var(--accent); }
.toast.out { opacity: 0; transform: translateX(20px); transition: .25s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ===================== SKELETON ===================== */
.sk {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-hover) 50%, var(--surface) 100%);
  background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; color: transparent !important;
}
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===================== SETTINGS & AUDIT ===================== */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row .t { font-weight: 600; }
.set-row .d { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.net-table td { padding: 9px 10px; }
.net-table .input-sm { width: 108px; }
.key-box { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bento); border: 1px solid var(--bento-border); }
.key-box .stripe-ico { width: 42px; height: 42px; border-radius: 11px; overflow: hidden; flex: none; box-shadow: 0 4px 12px rgba(18, 18, 20, .20); }
.key-box .stripe-ico img { width: 100%; height: 100%; object-fit: cover; }
.audit-list { max-height: 520px; overflow-y: auto; }
.audit-row { display: grid; grid-template-columns: 140px 100px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.audit-row .a { font-weight: 600; }

/* ===================== MOBILE & RESPONSIVE ===================== */
.mobile-menu-btn { display: none; }
.sb-overlay { display: none; }

@media (max-width: 1380px) {
  .header { gap: 12px; padding: 0 16px; }
  .h-nav-link { padding: 0 9px; font-size: 13.5px; }
  .header-search { width: 175px; }
}
@media (max-width: 1260px) {
  .header-search { display: none; }
  .status-pill .st-txt { display: none; }
  .grid-main, .wd-grid, .hero-grid { grid-template-columns: 1fr; }
  .wd-sticky { position: static; }
  .landing-hero { grid-template-columns: 1fr; gap: 36px; }
  .login-shell { max-width: none; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .sidebar {
    position: fixed; left: 0; top: 64px; bottom: 0; z-index: 80;
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sb-overlay.open {
    display: block; position: fixed; inset: 64px 0 0 0; z-index: 75;
    background: rgba(15, 17, 21, .42);
  }
  .mobile-menu-btn { display: inline-flex; }
  .header-nav { display: none; }
  .page { padding: 20px 16px 40px; }
  .user-btn .user-name { display: none; }
}
@media (max-width: 640px) {
  .header { padding: 0 12px; gap: 8px; }
  .landing-main { padding: 28px 16px 32px; }
  .landing-h1 { font-size: 34px; }
  .bento-top-2 { grid-template-columns: 1fr; }
  .landing-kpis { grid-template-columns: 1fr 1fr; gap: 20px 12px; margin-top: 32px; }
  .kpi-num { font-size: 28px; }
  .grid-2, .grid-3, .coin-cards { grid-template-columns: 1fr; }
  .hero-amount .num { font-size: 32px; }
  .card { padding: 16px; }
  .bento { padding: 10px; border-radius: 18px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .audit-row { grid-template-columns: 1fr; gap: 2px; }
  .toasts { left: 12px; right: 12px; }
  .toast { max-width: none; }
  .float-dock { right: 12px; bottom: 12px; }
  .header-cta { display: none; }
}
