:root {
  --ink: #090e20;
  --ink-2: #111936;
  --text: #12172a;
  --muted: #69718a;
  --soft: #f3f5fa;
  --line: #dfe3ec;
  --line-dark: #222b49;
  --white: #ffffff;
  --blue: #3157ff;
  --blue-dark: #1937c7;
  --cyan: #21d4fd;
  --lime: #c7ff3f;
  --red: #ff3b5c;
  --amber: #ffb020;
  --green: #14b86f;
  --shadow: 0 18px 54px rgba(17, 25, 54, .08);
  --sidebar: 272px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #f7f8fb; font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .86em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { letter-spacing: -.02em; }

::selection { color: var(--ink); background: var(--lime); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #eef0f5; }
::-webkit-scrollbar-thumb { background: #b8bfce; border: 2px solid #eef0f5; }

.icon { flex: 0 0 auto; vertical-align: middle; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--blue); font-size: .72rem; font-weight: 850; letter-spacing: .18em; line-height: 1.2; }
.eyebrow--lime { color: var(--lime); }
.muted { color: var(--muted); }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.caution { color: #a86a00 !important; }
.finance-monitor { display: grid; gap: 16px; margin-bottom: 28px; }
.finance-monitor__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.finance-monitor__grid--five { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.finance-monitor__grid > .panel, .finance-monitor__grid > div { display: grid; align-content: start; gap: 8px; padding: 18px; min-width: 0; }
.finance-monitor__card { position: relative; cursor: help; }
.finance-monitor__card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.finance-monitor__card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.finance-monitor__card-heading .eyebrow { margin-bottom: 0; }
.finance-monitor__info { flex: 0 0 auto; color: var(--muted); font-size: 1rem; line-height: 1; }
.finance-monitor__tooltip { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(330px, calc(100vw - 40px)); box-sizing: border-box; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(15,25,52,.22); font-size: .78rem; line-height: 1.45; font-weight: 500; opacity: 0; visibility: hidden; pointer-events: none; }
.finance-monitor__card:hover .finance-monitor__tooltip, .finance-monitor__card:focus .finance-monitor__tooltip { opacity: 1; visibility: visible; }
.finance-monitor__grid:not(.finance-monitor__grid--five) > .finance-monitor__card:nth-child(4) .finance-monitor__tooltip,
.finance-monitor__grid--five > .finance-monitor__card:nth-child(5) .finance-monitor__tooltip { left: auto; right: 0; }
.finance-monitor__grid h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.6rem); }
.finance-monitor__grid small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.finance-monitor__grid code { font-size: .7rem; overflow-wrap: anywhere; }
.finance-monitor__profit { display: grid; gap: 12px; }
.finance-monitor__profit h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); overflow-wrap: anywhere; }
.finance-monitor__profit-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.finance-monitor__profit-lines > div { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 14px; border: 1px solid var(--line); background: var(--soft); }
.finance-monitor__profit-lines span { font-size: 1.3rem; font-weight: 800; overflow-wrap: anywhere; }
.finance-monitor__profit-lines small, .finance-monitor__profit > small { color: var(--muted); overflow-wrap: anywhere; }
.finance-monitor__profit-formula { padding: 12px 14px; border-left: 3px solid var(--green); background: #effaf4; color: var(--text) !important; }
.finance-monitor__payer { display: grid; gap: 16px; }
.finance-monitor__payer-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.finance-monitor__payer-summary > div { display: grid; gap: 5px; align-content: start; padding: 16px; background: var(--soft); border: 1px solid var(--line); }
.finance-monitor__payer-summary strong { font-size: 1.25rem; overflow-wrap: anywhere; }
.finance-monitor__payer-summary small, .finance-monitor__payer-address small { color: var(--muted); }
.finance-monitor__payer-address { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--line); }
.finance-monitor__payer-address > div { display: grid; gap: 6px; min-width: 0; }
.finance-monitor__payer-address code { overflow-wrap: anywhere; }
.finance-monitor .panel__header small { color: var(--muted); }
.finance-monitor table td { white-space: nowrap; }
@media (max-width: 1000px) { .finance-monitor__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .finance-monitor__grid, .finance-monitor__profit-lines, .finance-monitor__payer-summary { grid-template-columns: 1fr; } .finance-monitor__payer-address { align-items: stretch; flex-direction: column; } .finance-monitor__tooltip { left: 0 !important; right: auto !important; } }
.inline-form { display: inline; margin: 0; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.04rem; font-weight: 950; letter-spacing: .13em; }
.brand img { width: 33px; height: 33px; }
.brand--large { font-size: 1.18rem; }
.brand--large img { width: 42px; height: 42px; }
.brand--light { color: #fff; }

.btn { position: relative; display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid transparent; border-radius: 0; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 900; letter-spacing: .08em; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(49, 87, 255, .24); outline-offset: 2px; }
.btn:disabled { cursor: not-allowed; opacity: .45; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 6px 6px 0 #b8c2ff; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.btn--primary:hover:not(:disabled) { background: var(--blue-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--outline { border-color: #cfd5e2; background: transparent; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--selected { border-color: var(--blue); background: #eef1ff; color: var(--blue); }
.btn--success { background: var(--green); color: #fff; }
.btn--danger-ghost { border-color: #ffc4cf; background: #fff5f7; color: #d92345; }
.btn--success-ghost { border-color: #b9edd5; background: #effbf6; color: #07804a; }
.btn--wide { width: 100%; }
.btn--tall { min-height: 54px; }
.btn--tiny { min-height: 31px; padding: 0 10px; font-size: .65rem; }

.icon-btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 0; background: transparent; color: inherit; }
.icon-btn:hover { background: rgba(49, 87, 255, .08); color: var(--blue); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: .71rem; font-weight: 850; letter-spacing: .08em; }
.text-link:hover { color: var(--blue-dark); }

.field { display: grid; min-width: 0; gap: 7px; color: var(--text); }
.field > span { font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.field > span small { color: var(--muted); font-weight: 600; }
.field input, .field select, .search-box input, .table-tools select, .row-actions input { width: 100%; min-width: 0; height: 47px; padding: 0 13px; border: 1px solid #d4d9e5; border-radius: 0; background: #fff; color: var(--text); transition: border-color .18s, box-shadow .18s; }
.field input:focus, .field select:focus, .search-box input:focus, .table-tools select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,87,255,.1); outline: 0; }
.field input[readonly] { background: #f3f4f7; color: #676f84; }
.field small { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.field-grid { display: grid; gap: 16px; }
.field-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field--full { grid-column: 1 / -1; }
.field--grow { flex: 1; }
.form-card { display: grid; gap: 17px; }
.form-card--roomy { gap: 21px; }
.horizontal-form { display: flex; align-items: flex-end; gap: 14px; }
.amount-input, .suffix-input { position: relative; }
.amount-input input, .suffix-input input { padding-right: 66px; }
.amount-input b, .suffix-input b { position: absolute; top: 50%; right: 13px; color: var(--blue); font-size: .71rem; letter-spacing: .08em; transform: translateY(-50%); }
.password-field { position: relative; }
.password-field input { padding-right: 56px; }
.password-field button { position: absolute; top: 50%; right: 7px; height: 32px; border: 0; background: transparent; color: var(--blue); font-size: .65rem; font-weight: 900; transform: translateY(-50%); }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .78rem; }
.check-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-card { position: relative; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: grid; min-height: 68px; align-content: center; padding: 12px 14px 12px 38px; border: 1px solid #d7dce7; background: #fff; }
.choice-card span::before { position: absolute; top: 50%; left: 13px; width: 13px; height: 13px; border: 1px solid #aeb6c9; content: ""; transform: translateY(-50%); }
.choice-card input:checked + span { border-color: var(--blue); background: #f0f3ff; }
.choice-card input:checked + span::before { border: 4px solid var(--blue); background: #fff; }
.choice-card strong { font-size: .82rem; }
.choice-card small { color: var(--muted); font-size: .69rem; }
.form-divider { position: relative; height: 24px; margin: 3px 0; border-bottom: 1px solid var(--line); }
.form-divider span { position: absolute; left: 0; bottom: -7px; padding-right: 10px; background: #fff; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .12em; }

.alert { display: grid; gap: 3px; margin-bottom: 15px; padding: 12px 14px; border-left: 3px solid #8790a7; background: #f2f4f8; color: #3e465b; font-size: .82rem; }
.alert--danger { border-color: var(--red); background: #fff1f4; color: #9e1934; }
.alert--warning { border-color: var(--amber); background: #fff8e8; color: #7e5910; }
.alert--success { border-color: var(--green); background: #ebfaf3; color: #087042; }
.official-wallet-note { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; padding: 14px 18px; border-left: 4px solid var(--blue); background: #eef2ff; font-size: .78rem; }
.official-wallet-note strong { color: var(--blue-dark); font-size: .7rem; letter-spacing: .08em; }
.official-wallet-note code { overflow-wrap: anywhere; }
.official-wallet-note span { color: #4c5670; }
.official-wallet-note--missing { justify-content: space-between; border-color: var(--red); background: #fff1f4; }
.official-wallet-note--missing > div { display: grid; gap: 3px; }
.official-wallet-note--missing strong, .wallet-network-warning { color: #a91736; }
.wallet-network-warning { margin: 12px 0; font-size: .76rem; font-weight: 750; }
.official-wallet-dialog { width: min(94vw, 530px); max-height: 92vh; overflow-y: auto; padding: 25px; border: 1px solid #d6dce8; background: #fff; box-shadow: 0 28px 90px rgba(5, 10, 28, .28); }
.official-wallet-dialog::backdrop { background: rgba(5, 9, 24, .72); }
.official-wallet-dialog__heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.official-wallet-dialog__heading h2 { margin: 0; font-size: 1.45rem; }
.official-wallet-dialog p { margin: 0; color: var(--muted); font-size: .86rem; }
.official-wallet-dialog .alert { margin: 0; }
.official-wallet-dialog .field input { max-width: 100%; }
.withdrawal-fee-summary { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 13px 15px; border: 1px solid #dce2ec; background: #f6f8fc; font-size: .79rem; }
.withdrawal-fee-summary strong:last-child { color: var(--green); }

/* Installer */
.install-body { min-height: 100vh; background: var(--ink); }
.install-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(340px, .75fr) minmax(620px, 1.25fr); }
.install-brand { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 54px; background: var(--ink); color: #fff; }
.install-brand::before { position: absolute; right: -130px; bottom: -140px; width: 430px; height: 430px; border: 1px solid rgba(199,255,63,.2); content: ""; transform: rotate(45deg); }
.install-brand .brand { position: relative; z-index: 1; color: #fff; }
.install-copy { position: relative; z-index: 1; margin: auto 0; }
.install-copy h1 { max-width: 520px; margin-bottom: 22px; font-size: clamp(2.6rem, 4vw, 4.7rem); line-height: .98; }
.install-copy p { max-width: 500px; color: #9ea8c4; font-size: 1.02rem; }
.install-specs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.install-specs span { padding: 7px 10px; border: 1px solid #283352; color: #d7def2; font: 700 .7rem/1.2 "SFMono-Regular", Consolas, monospace; }
.install-panel { padding: 54px clamp(34px, 6vw, 90px); background: #fff; }
.install-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.install-heading h2 { margin: 0; font-size: 2rem; }
.requirement-list { display: grid; justify-items: end; gap: 3px; }
.requirement { font-size: .67rem; font-weight: 750; }
.requirement.is-ok { color: var(--green); }
.requirement.is-bad { color: var(--red); }
.install-form { display: grid; gap: 10px; }
.form-section { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.section-number { display: inline-flex; width: 34px; height: 27px; align-items: center; justify-content: center; background: var(--ink); color: var(--lime); font: 800 .68rem/1 "SFMono-Regular", Consolas, monospace; }
.form-section__body h3 { margin-bottom: 14px; font-size: .98rem; }
.form-section__body h3 small { color: var(--muted); font-size: .7rem; font-weight: 500; }
.mysql-fields { display: none; margin-top: 15px; }
.mysql-fields.is-visible { display: block; }
.success-screen { display: grid; max-width: 520px; min-height: calc(100vh - 108px); align-content: center; justify-items: start; }
.success-mark { display: grid; width: 76px; height: 76px; place-items: center; margin-bottom: 28px; background: var(--lime); color: var(--ink); font-size: 2.2rem; font-weight: 900; clip-path: polygon(0 0, 75% 0, 100% 25%, 100% 100%, 0 100%); }
.success-screen h2 { margin-bottom: 10px; font-size: 2.7rem; }
.success-screen p { margin-bottom: 27px; color: var(--muted); }

/* Auth */
.auth-body { min-height: 100vh; overflow-x: hidden; background: #fff; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(390px, .94fr) minmax(500px, 1.06fr); }
.auth-visual { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; padding: 46px clamp(34px, 5vw, 76px); background: var(--ink); color: #fff; }
.auth-grid { position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(rgba(69,89,150,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(69,89,150,.17) 1px, transparent 1px); background-size: 47px 47px; mask-image: linear-gradient(to bottom right, #000, transparent 78%); }
.auth-visual::after { position: absolute; right: -160px; bottom: -185px; width: 520px; height: 520px; border: 70px solid var(--blue); content: ""; opacity: .78; transform: rotate(45deg); }
.auth-visual .brand { position: relative; z-index: 2; }
.auth-copy { position: relative; z-index: 2; margin: auto 0 52px; }
.auth-copy h1 { margin-bottom: 24px; font-size: clamp(3.2rem, 5vw, 6.2rem); font-weight: 900; letter-spacing: -.065em; line-height: .9; }
.auth-copy h1 em { color: var(--cyan); font-style: normal; }
.auth-copy p { max-width: 530px; color: #a7b1cc; font-size: 1.02rem; line-height: 1.65; }
.auth-market-strip { position: relative; z-index: 2; display: grid; max-width: 620px; grid-template-columns: repeat(3, 1fr); border: 1px solid #283252; background: rgba(10,16,38,.78); }
.auth-market-strip div { display: grid; gap: 5px; padding: 16px; border-right: 1px solid #283252; }
.auth-market-strip div:last-child { border-right: 0; }
.auth-market-strip span { color: #7985a7; font: 700 .65rem/1.2 "SFMono-Regular", Consolas, monospace; }
.auth-market-strip strong { font-size: .92rem; }
.auth-security { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin-top: 17px; color: #7f8bab; font-size: .7rem; }
.auth-panel { display: flex; min-height: 100vh; flex-direction: column; padding: 38px clamp(42px, 7vw, 108px) 25px; background: #fff; }
.auth-panel__mobile-brand { display: none; }
.auth-form-wrap { width: 100%; max-width: 590px; margin: auto; }
.auth-form-wrap h2 { margin-bottom: 8px; font-size: clamp(2rem, 3.2vw, 3.3rem); line-height: 1; }
.auth-form-wrap > p { margin-bottom: 26px; color: var(--muted); }
.auth-form { display: grid; gap: 16px; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .72rem; }
.auth-switch { display: flex; justify-content: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: .78rem; }
.auth-switch a { color: var(--blue); font-weight: 850; }
.auth-legal { max-width: 590px; margin: 30px auto 0; color: #939aab; font-size: .66rem; text-align: center; }

/* App shell */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; display: flex; width: var(--sidebar); flex-direction: column; border-right: 1px solid var(--line-dark); background: var(--ink); color: #fff; }
.sidebar__top { display: flex; min-height: 82px; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line-dark); }
.sidebar .brand { color: #fff; }
.sidebar__close { display: none; }
.sidebar__mode { display: flex; align-items: center; gap: 8px; margin: 20px 23px 10px; color: #7180a7; font-size: .62rem; font-weight: 850; letter-spacing: .12em; }
.sidebar__mode i { width: 7px; height: 7px; background: var(--lime); box-shadow: 0 0 12px rgba(199,255,63,.65); }
.sidebar__nav { display: grid; gap: 3px; padding: 10px 12px; overflow-y: auto; }
.nav-label { margin: 10px 12px 6px; color: #56627f; font-size: .62rem; font-weight: 850; letter-spacing: .15em; }
.nav-item { position: relative; display: flex; min-height: 45px; align-items: center; gap: 13px; padding: 0 12px; color: #9da8c4; font-size: .82rem; font-weight: 650; }
.nav-item::before { position: absolute; top: 8px; bottom: 8px; left: 0; width: 3px; background: transparent; content: ""; }
.nav-item:hover { background: #111a36; color: #fff; }
.nav-item.is-active { background: #151f40; color: #fff; }
.nav-item.is-active::before { background: var(--lime); }
.nav-item.is-active .icon { color: var(--lime); }
.nav-item b { display: grid; min-width: 20px; height: 20px; place-items: center; margin-left: auto; background: var(--red); color: #fff; font-size: .62rem; }
.sidebar__server { display: grid; gap: 3px; margin: auto 18px 14px; padding: 14px; border: 1px solid #263152; background: #0d1530; }
.server-head { display: flex; align-items: center; justify-content: space-between; color: #7783a3; font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.server-head span { display: flex; align-items: center; gap: 7px; }
.server-head i { width: 7px; height: 7px; background: var(--green); }
.sidebar__server strong { margin-top: 4px; font-size: .82rem; }
.sidebar__server > span { color: #7480a1; font-size: .67rem; }
.sidebar__user { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 15px 17px; border-top: 1px solid var(--line-dark); }
.sidebar__user > div:nth-child(2) { display: grid; min-width: 0; }
.sidebar__user strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__user span { overflow: hidden; color: #7783a2; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; background: var(--blue); color: #fff; font-size: .76rem; font-weight: 900; clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%); }
.avatar--top { width: 38px; height: 38px; }
.sidebar-scrim { display: none; }
.main-area { min-width: 0; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 104px; align-items: center; justify-content: space-between; gap: 25px; padding: 18px 31px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
.topbar__menu { display: none; }
.page-heading h1 { margin: 0 0 2px; font-size: 1.55rem; line-height: 1.1; }
.page-heading p { margin: 0; color: var(--muted); font-size: .76rem; }
.page-heading .eyebrow { margin-bottom: 4px; font-size: .58rem; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.market-clock { display: grid; justify-items: end; padding-right: 15px; border-right: 1px solid var(--line); }
.market-clock span { color: var(--muted); font-size: .56rem; font-weight: 800; letter-spacing: .1em; }
.market-clock strong { font: 800 .79rem/1.2 "SFMono-Regular", Consolas, monospace; }
.notification-btn { position: relative; }
.notification-btn i { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border: 2px solid #fff; background: var(--red); }
.notification-center { position: relative; }
.notification-badge { position: absolute; top: 0; right: -3px; display: grid; min-width: 18px; height: 18px; padding: 0 3px; place-items: center; border-radius: 9px; background: var(--red); color: #fff; font-size: .59rem; font-weight: 850; line-height: 1; }
.notification-panel { position: absolute; z-index: 30; top: calc(100% + 14px); right: 0; width: min(390px, calc(100vw - 26px)); max-height: min(560px, 75vh); display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; box-shadow: 0 20px 55px rgba(8,14,32,.2); }
.notification-panel[hidden], .notification-badge[hidden] { display: none; }
.notification-panel__head, .notification-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; }
.notification-panel__head { border-bottom: 1px solid var(--line); }
.notification-panel__head strong { font-size: .86rem; }
.notification-panel__head button, .notification-panel__foot button, .notification-item__read { border: 0; background: none; color: var(--blue); cursor: pointer; font-family: inherit; font-size: .67rem; font-weight: 750; }
.notification-panel__foot { border-top: 1px solid var(--line); }
.notification-list { min-height: 60px; overflow-y: auto; }
.notification-empty { margin: 0; padding: 22px 15px; color: var(--muted); font-size: .75rem; }
.notification-item { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item.is-unread { background: #f2f6ff; }
.notification-item.is-unread::before { position: absolute; top: 17px; left: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); content: ''; }
.notification-item__link { display: grid; flex: 1; gap: 3px; color: var(--ink); text-decoration: none; }
.notification-item__link strong { font-size: .73rem; }
.notification-item__link span { color: #535e75; font-size: .69rem; line-height: 1.35; }
.notification-item__link small { color: var(--muted); font-size: .59rem; }
.notification-item__read { flex: none; padding: 4px; }
.content-area { padding: 25px 30px 15px; }
.app-footer { display: flex; justify-content: space-between; margin-top: 24px; padding: 19px 2px 5px; border-top: 1px solid var(--line); color: #969dad; font-size: .64rem; letter-spacing: .08em; }

.toast { position: fixed; z-index: 100; top: 22px; right: 22px; display: grid; width: min(420px, calc(100vw - 32px)); grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 13px 14px; border-left: 4px solid #7b8499; background: #fff; box-shadow: 0 18px 50px rgba(8,14,32,.2); animation: toast-in .3s ease both; }
.toast p { margin: 0; font-size: .78rem; font-weight: 650; }
.toast button { display: grid; width: 28px; height: 28px; place-items: center; border: 0; background: transparent; color: var(--muted); }
.toast--success { border-color: var(--green); }
.toast--danger { border-color: var(--red); }
.toast--warning { border-color: var(--amber); }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } }

.panel { min-width: 0; border: 1px solid var(--line); background: #fff; box-shadow: 0 7px 22px rgba(15,25,52,.035); }
.panel__header { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.panel__header h2 { margin: 0; font-size: 1.08rem; }
.panel__header .eyebrow { margin-bottom: 3px; font-size: .6rem; }
.panel-copy { padding: 18px 20px 0; color: var(--muted); font-size: .82rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }
.metrics-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card { position: relative; display: grid; min-height: 141px; align-content: space-between; overflow: hidden; padding: 17px 18px; border: 1px solid var(--line); background: #fff; }
.metric-card::after { position: absolute; right: -32px; bottom: -47px; width: 95px; height: 95px; border: 12px solid #eff1f6; content: ""; transform: rotate(45deg); }
.metric-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .63rem; font-weight: 850; letter-spacing: .1em; }
.metric-card__top i { display: grid; width: 31px; height: 31px; place-items: center; background: #f1f3f8; color: var(--blue); font-style: normal; }
.metric-card > strong { position: relative; z-index: 1; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1; }
.metric-card > small { position: relative; z-index: 1; color: var(--muted); font-size: .67rem; }
.metric-card--primary { border-top: 3px solid var(--blue); }
.metric-card--lime { border-top: 3px solid var(--lime); }
.metric-card--danger { border-top: 3px solid var(--red); }
.metric-card--lime .metric-card__top i { background: #f4ffe0; color: #527800; }
.metric-card--danger .metric-card__top i { background: #fff0f3; color: var(--red); }

.notice-bar { display: flex; min-height: 62px; align-items: center; gap: 13px; margin-bottom: 15px; padding: 11px 15px; border-left: 4px solid var(--blue); background: #eef1ff; color: #23326a; }
.notice-bar > span:first-child { display: grid; width: 35px; height: 35px; place-items: center; background: #fff; }
.notice-bar > div { min-width: 0; }
.notice-bar strong { display: block; font-size: .7rem; letter-spacing: .08em; }
.notice-bar p { margin: 1px 0 0; font-size: .73rem; }
.notice-bar .btn, .notice-bar .live-pill { margin-left: auto; }
.notice-bar--danger { border-color: var(--red); background: #fff0f3; color: #8e1730; }
.notice-bar--warning { border-color: var(--amber); background: #fff7e5; color: #7b5611; }
.notice-bar--success { border-color: var(--green); background: #ebfaf3; color: #076f41; }
.notice-bar--neutral { border-color: var(--ink); background: #eef0f5; color: var(--ink); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid currentColor; font-size: .61rem; font-weight: 850; letter-spacing: .09em; }
.live-pill i { width: 6px; height: 6px; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .28; } }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); gap: 15px; margin-bottom: 15px; }
.dashboard-grid--lower { grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); }
.dashboard-grid--equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel--chart { min-height: 394px; }
.period-pills { display: flex; border: 1px solid var(--line); }
.period-pills button { height: 29px; padding: 0 10px; border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .61rem; font-weight: 800; }
.period-pills button:last-child { border-right: 0; }
.period-pills .is-active { background: var(--ink); color: #fff; }
.chart-summary { display: flex; align-items: baseline; gap: 10px; padding: 16px 20px 3px; }
.chart-summary strong { font-size: 1.55rem; }
.chart-summary span { color: var(--muted); font-size: .7rem; }
.chart-summary .delta { padding: 3px 6px; background: #ecfaf4; color: var(--green); }
.chart-summary .is-negative { background: #fff1f4; color: var(--red); }
.line-chart { position: relative; height: 247px; padding: 0 13px 10px; }
.line-chart canvas { width: 100%; height: 100%; }
.chart-tooltip { position: absolute; display: none; padding: 6px 8px; background: var(--ink); color: #fff; font: 700 .65rem/1.2 "SFMono-Regular", Consolas, monospace; pointer-events: none; }

.bot-status-card { position: relative; overflow: hidden; }
.bot-orbit { position: relative; display: grid; width: 128px; height: 128px; place-items: center; margin: 20px auto 16px; }
.bot-orbit__ring { position: absolute; inset: 0; border: 1px solid #ced5e4; transform: rotate(45deg); }
.bot-orbit__ring::before { position: absolute; inset: 15px; border: 1px dashed #d4d9e6; content: ""; }
.bot-orbit__core { display: grid; width: 62px; height: 62px; place-items: center; background: var(--ink); color: var(--lime); }
.orbit-dot { position: absolute; width: 8px; height: 8px; background: var(--blue); }
.orbit-dot--1 { top: 8px; right: 12px; }
.orbit-dot--2 { bottom: 10px; left: 11px; background: var(--cyan); }
.bot-mode-line { display: flex; justify-content: space-between; gap: 15px; padding: 8px 20px; border-top: 1px solid #eef0f4; font-size: .71rem; }
.bot-mode-line span { color: var(--muted); }
.bot-status-card > .text-link { margin: 15px 20px 19px; }

.quick-panel { padding-bottom: 12px; }
.quick-action { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; margin: 10px 12px 0; padding: 11px; border: 1px solid var(--line); background: #fff; }
.quick-action:hover { border-color: var(--blue); }
.quick-action > span { display: grid; width: 35px; height: 35px; place-items: center; background: #eef1ff; color: var(--blue); }
.quick-action div { display: grid; }
.quick-action strong { font-size: .76rem; }
.quick-action small { color: var(--muted); font-size: .64rem; }
.quick-action--primary { background: var(--ink); color: #fff; }
.quick-action--primary > span { background: var(--lime); color: var(--ink); }
.deposit-mini-status { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; margin: 13px 12px 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.deposit-mini-status > span:first-child { grid-column: 1 / -1; color: var(--muted); font-size: .6rem; font-weight: 850; letter-spacing: .1em; }
.deposit-mini-status strong { font-size: .83rem; }
.deposit-mini-status small { color: var(--muted); font-size: .65rem; }

.status { display: inline-flex; min-height: 23px; align-items: center; gap: 6px; padding: 0 7px; border: 1px solid #d8dce5; background: #f5f6f8; color: #61697d; font-size: .59rem; font-weight: 850; letter-spacing: .06em; white-space: nowrap; }
.status i { width: 6px; height: 6px; background: currentColor; }
.status--success { border-color: #b9ead3; background: #eefaf4; color: #087c49; }
.status--warning { border-color: #f1d690; background: #fff8e7; color: #8a620f; }
.status--danger { border-color: #ffc1cd; background: #fff0f3; color: #d12546; }

.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 13px; border-bottom: 1px solid var(--line); background: #f7f8fb; color: #747c90; font-size: .6rem; font-weight: 850; letter-spacing: .08em; text-align: left; white-space: nowrap; }
td { padding: 12px 13px; border-bottom: 1px solid #eceef3; color: #42495b; font-size: .72rem; vertical-align: middle; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcff; }
td strong, td small { display: block; }
td strong { color: var(--text); font-size: .74rem; }
td small { margin-top: 2px; color: var(--muted); font-size: .61rem; }
td code { color: #454e65; }
.side { display: inline-flex; padding: 4px 7px; border: 1px solid; font-size: .59rem; font-weight: 900; letter-spacing: .08em; }
.side--buy { border-color: #aee3c9; background: #effaf4; color: var(--green); }
.side--sell { border-color: #ffc1cc; background: #fff1f4; color: var(--red); }
.empty-state { display: grid; min-height: 240px; place-items: center; align-content: center; padding: 35px; text-align: center; }
.empty-state__icon { display: grid; width: 55px; height: 55px; place-items: center; margin-bottom: 14px; background: #eef1ff; color: var(--blue); transform: rotate(45deg); }
.empty-state__icon .icon { transform: rotate(-45deg); }
.empty-state strong { font-size: .9rem; }
.empty-state p { max-width: 330px; margin: 5px 0 0; color: var(--muted); font-size: .74rem; }

.market-ticker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.ticker-card { position: relative; min-height: 112px; overflow: hidden; padding: 14px; border: 1px solid var(--line); background: #fff; }
.ticker-card > span { display: block; color: var(--muted); font-size: .62rem; font-weight: 850; letter-spacing: .09em; }
.ticker-card > strong { display: block; margin-top: 8px; font-size: 1.15rem; }
.ticker-card > small { display: block; color: var(--muted); font-size: .63rem; }
.ticker-card.is-up > small { color: var(--green); }
.ticker-card.is-down > small { color: var(--red); }
.mini-bars { position: absolute; right: 12px; bottom: 14px; display: flex; height: 28px; align-items: flex-end; gap: 3px; }
.mini-bars i { width: 4px; height: 10px; background: #d7dced; }
.mini-bars i:nth-child(2) { height: 18px; }.mini-bars i:nth-child(3) { height: 14px; }.mini-bars i:nth-child(4) { height: 25px; background: var(--blue); }.mini-bars i:nth-child(5) { height: 21px; background: var(--cyan); }
.table-tools { display: flex; align-items: center; gap: 8px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box .icon { position: absolute; left: 10px; color: var(--muted); }
.search-box input { width: 210px; height: 36px; padding-left: 35px; font-size: .72rem; }
.table-tools select { width: 130px; height: 36px; font-size: .7rem; }
.rank-number { display: inline-grid; width: 29px; height: 29px; place-items: center; background: var(--ink); color: #fff; font: 800 .67rem/1 "SFMono-Regular", Consolas, monospace; }
.mode-tag, .network-tag { display: inline-flex; padding: 4px 7px; border: 1px solid #ccd4e8; background: #f1f4ff; color: var(--blue); font-size: .58rem; font-weight: 850; letter-spacing: .06em; }
.table-copy { margin-left: 5px; border: 0; background: transparent; color: var(--blue); }

.split-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(300px, .58fr); gap: 15px; margin-bottom: 15px; }
.split-layout--deposit { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr); }
.split-layout--api { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.split-layout--admin-form { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); }
.stack { display: grid; align-content: start; gap: 15px; }
.funding-card .form-card { padding: 20px; }
.address-box { margin: 20px 20px 0; padding: 13px 14px; border: 1px solid #cbd3e4; background: #f5f7fb; }
.address-box > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .58rem; font-weight: 850; letter-spacing: .1em; }
.address-box > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.address-box code { overflow: hidden; color: var(--ink); font-size: .75rem; text-overflow: ellipsis; }
.deposit-wallet-card { margin-bottom: 15px; }
.deposit-wallet-address { margin: 20px 20px 0; padding: 18px; border: 1px solid #cbd3e4; background: #f5f7fb; }
.deposit-wallet-address > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: .62rem; font-weight: 850; letter-spacing: .08em; }
.deposit-wallet-address > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.deposit-wallet-address code { color: var(--ink); font-size: .88rem; overflow-wrap: anywhere; user-select: all; }
.deposit-wallet-address .btn { flex: 0 0 auto; }
.deposit-wallet-card .alert { margin: 16px 20px 0; }
.deposit-wallet-card__foot { padding-bottom: 20px; }
.deposit-rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 17px 20px 0; border: 1px solid var(--line); }
.deposit-rule-grid > div { display: grid; padding: 12px; border-right: 1px solid var(--line); }
.deposit-rule-grid > div:last-child { border-right: 0; }
.deposit-rule-grid span { color: var(--muted); font-size: .55rem; font-weight: 850; letter-spacing: .08em; }
.deposit-rule-grid strong { font-size: 1.05rem; }
.deposit-rule-grid small { color: var(--muted); font-size: .61rem; }
.gas-balance { text-align: right; }
.gas-balance span { display: block; color: var(--muted); font-size: .55rem; font-weight: 850; letter-spacing: .09em; }
.gas-balance strong { font-size: 1rem; }
#gas .horizontal-form { padding: 17px 20px 20px; }
.rules-panel { padding-bottom: 19px; background: var(--ink); color: #fff; }
.rules-panel > .eyebrow, .rules-panel > h2 { margin-right: 20px; margin-left: 20px; }
.rules-panel > .eyebrow { margin-top: 20px; color: var(--lime); }
.rules-panel > h2 { margin-bottom: 20px; font-size: 1.65rem; line-height: 1.02; }
.rule-list { display: grid; gap: 0; margin: 0; padding: 0 20px; list-style: none; }
.rule-list li { display: grid; grid-template-columns: 31px 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid #263050; color: #a7b1cc; font-size: .74rem; }
.rule-list b { display: grid; width: 28px; height: 25px; place-items: center; background: #172244; color: var(--lime); font: 800 .62rem/1 "SFMono-Regular", Consolas, monospace; }
.rule-list strong { color: #fff; }
.server-card { padding: 18px; background: var(--blue); color: #fff; box-shadow: 7px 7px 0 #b7c2ff; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.server-card > span { display: flex; align-items: center; gap: 8px; color: #dfe4ff; font-size: .61rem; font-weight: 850; letter-spacing: .09em; }
.server-card > strong { display: block; margin: 14px 0; font-size: 1.1rem; }
.server-card > div { display: flex; flex-wrap: wrap; gap: 6px; }
.server-card small { padding: 5px 7px; border: 1px solid rgba(255,255,255,.3); font-size: .6rem; }

.security-panel { padding: 25px; background: var(--ink); color: #fff; }
.security-mark { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 25px; background: var(--lime); color: var(--ink); }
.security-panel .eyebrow { color: var(--lime); }
.security-panel h2 { font-size: 1.6rem; line-height: 1.05; }
.security-panel > p { color: #99a5c3; font-size: .79rem; }
.security-steps { display: grid; gap: 0; margin-top: 21px; border-top: 1px solid #273151; }
.security-steps > div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #273151; }
.security-steps b { display: grid; width: 27px; height: 27px; place-items: center; background: #182242; color: var(--cyan); font-size: .67rem; }
.security-steps span { display: grid; }
.security-steps strong { font-size: .76rem; }
.security-steps small { color: #7f8bab; font-size: .63rem; }

.bot-hero, .ranking-hero, .finance-hero { display: flex; min-height: 210px; align-items: center; justify-content: space-between; gap: 35px; margin-bottom: 15px; padding: 28px 32px; overflow: hidden; background: var(--ink); color: #fff; }
.bot-hero h2, .ranking-hero h2, .finance-hero h2 { margin-bottom: 12px; font-size: clamp(2rem, 3vw, 3.1rem); line-height: .97; }
.bot-hero p, .ranking-hero p, .finance-hero p { max-width: 700px; margin: 0; color: #9da8c4; font-size: .83rem; }
.bot-hero__stats { display: grid; min-width: 260px; border: 1px solid #283253; }
.bot-hero__stats span { display: grid; padding: 11px 14px; border-bottom: 1px solid #283253; color: #727f9f; font-size: .56rem; font-weight: 850; letter-spacing: .08em; }
.bot-hero__stats span:last-child { border-bottom: 0; }
.bot-hero__stats strong { margin-top: 2px; color: #fff; font-size: .75rem; letter-spacing: 0; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 15px; }
.mode-card { position: relative; padding: 23px; border: 1px solid var(--line); background: #fff; }
.mode-card.is-selected { border: 2px solid var(--blue); }
.mode-card__number { position: absolute; top: 17px; right: 18px; color: #d5d9e3; font: 900 2.4rem/1 "SFMono-Regular", Consolas, monospace; }
.mode-card__icon { display: grid; width: 49px; height: 49px; place-items: center; margin-bottom: 18px; background: var(--ink); color: var(--lime); }
.mode-card h2 { margin-bottom: 8px; font-size: 1.38rem; }
.mode-card > p { max-width: 520px; color: var(--muted); font-size: .77rem; }
.mode-card ul { display: grid; gap: 8px; margin: 19px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.mode-card li { display: flex; align-items: center; gap: 8px; font-size: .72rem; }
.mode-card li .icon { color: var(--green); }
.api-panel .form-card { padding: 20px; }
.locked-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 20px 20px 0; padding: 12px; border-left: 3px solid var(--amber); background: #fff8e8; color: #735211; }
.locked-banner strong { font-size: .75rem; }
.locked-banner p { margin: 2px 0 0; font-size: .67rem; }
.locked-banner a { font-size: .64rem; font-weight: 900; }
.api-actions { display: flex; gap: 9px; padding: 0 20px 20px; }
.permission-result { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.permission-result > div { display: flex; align-items: center; gap: 8px; padding: 13px; border-right: 1px solid var(--line); }
.permission-result > div:last-child { border-right: 0; }
.permission-result .is-ok { color: var(--green); }.permission-result .is-bad { color: var(--red); }
.permission-result span { display: grid; color: var(--text); }
.permission-result strong { font-size: .68rem; }.permission-result small { color: var(--muted); font-size: .61rem; }
.api-guide { padding: 22px; }
.api-guide h2 { margin-bottom: 17px; }
.permission-list { display: grid; border: 1px solid var(--line); }
.permission { display: flex; align-items: center; gap: 10px; padding: 11px; border-bottom: 1px solid var(--line); }
.permission:last-child { border-bottom: 0; }
.permission span { display: grid; }
.permission strong { font-size: .73rem; }.permission small { color: var(--muted); font-size: .61rem; }
.permission--on .icon { color: var(--green); }.permission--off .icon { color: var(--red); }
.danger-callout { margin-top: 18px; padding: 13px; border-left: 3px solid var(--red); background: #fff0f3; color: #8c1931; }
.danger-callout strong { display: flex; align-items: center; gap: 7px; font-size: .67rem; }
.danger-callout p { margin: 5px 0 0; font-size: .68rem; }
.ip-box { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.ip-box > span { color: var(--muted); font-size: .58rem; font-weight: 850; letter-spacing: .08em; }
.ip-box > div { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; padding: 9px 11px; background: var(--ink); color: #fff; }
.ip-box small { color: var(--muted); font-size: .62rem; }

.store-hero { display: grid; min-height: 335px; grid-template-columns: 1.1fr .9fr; margin-bottom: 15px; overflow: hidden; background: var(--ink); color: #fff; }
.store-hero__copy { padding: 39px; }
.store-hero h2 { margin-bottom: 15px; font-size: clamp(2.7rem, 5vw, 5.1rem); line-height: .88; }
.store-hero h2 em { color: var(--cyan); font-style: normal; }
.store-hero p { max-width: 580px; color: #9ca8c6; font-size: .85rem; }
.store-price { display: flex; align-items: flex-end; gap: 7px; margin-top: 22px; }
.store-price span { margin-bottom: 9px; color: var(--lime); font-weight: 900; }
.store-price strong { font-size: 3rem; line-height: 1; }
.store-price small { margin-bottom: 8px; color: #7986a6; }
.store-machine { position: relative; display: grid; min-height: 335px; place-items: center; background: var(--blue); clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); }
.machine-screen { position: relative; z-index: 1; display: grid; width: 220px; height: 220px; place-items: center; border: 1px solid rgba(255,255,255,.45); background: #0b1230; box-shadow: 14px 14px 0 rgba(0,0,0,.18); color: var(--lime); }
.machine-screen span { align-self: start; width: 100%; padding: 10px; border-bottom: 1px solid #27325a; color: #7f8aae; font: 700 .6rem/1 "SFMono-Regular", Consolas, monospace; }
.machine-screen small { align-self: end; padding-bottom: 12px; color: var(--cyan); font: 700 .56rem/1 "SFMono-Regular", Consolas, monospace; }
.machine-lines { position: absolute; inset: 0; }
.machine-lines i { position: absolute; width: 1px; height: 60%; background: rgba(255,255,255,.2); transform: rotate(35deg); }
.machine-lines i:nth-child(1){left:20%}.machine-lines i:nth-child(2){left:40%;top:25%}.machine-lines i:nth-child(3){right:25%}.machine-lines i:nth-child(4){right:10%;top:30%}
.store-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 15px; }
.feature-manifest { padding: 26px; }
.feature-manifest > h2 { font-size: 1.8rem; line-height: 1.02; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 23px; background: var(--line); border: 1px solid var(--line); }
.feature-list > div { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 15px; background: #fff; }
.feature-list b { display: grid; width: 30px; height: 27px; place-items: center; background: var(--ink); color: var(--lime); font-size: .63rem; }
.feature-list span { display: grid; }
.feature-list strong { font-size: .76rem; }.feature-list small { color: var(--muted); font-size: .65rem; }
.checkout-card { padding: 25px; }
.checkout-card > h2 { margin-bottom: 5px; }
.checkout-card > p { color: var(--muted); font-size: .76rem; }
.order-summary { display: grid; grid-template-columns: 1fr auto; gap: 11px; margin: 20px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .76rem; }
.license-active, .license-pending { display: grid; justify-items: center; padding: 30px 0; text-align: center; }
.license-active > div { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 15px; background: var(--lime); }
.license-active p, .license-pending p { color: var(--muted); font-size: .76rem; }
.license-active label { display: grid; width: 100%; gap: 6px; margin: 10px 0 20px; color: var(--muted); font-size: .58rem; letter-spacing: .1em; }
.license-active code { padding: 10px; background: var(--soft); color: var(--ink); }
.spinner { width: 50px; height: 50px; margin-bottom: 17px; border: 4px solid #e6e9f0; border-top-color: var(--blue); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.referral-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; margin-bottom: 15px; padding: 31px; background: var(--ink); color: #fff; }
.referral-hero h2 { margin-bottom: 13px; font-size: clamp(2.2rem, 3.6vw, 3.8rem); line-height: .92; }
.referral-hero p { max-width: 650px; color: #9da8c4; font-size: .82rem; }
.referral-code-card { align-self: center; padding: 19px; border: 1px solid #2c3759; background: #0e1733; }
.referral-code-card > span { color: #707d9e; font-size: .58rem; font-weight: 850; letter-spacing: .1em; }
.referral-code-card > strong { display: block; margin: 6px 0 17px; color: var(--lime); font: 900 1.65rem/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.referral-code-card > div { display: flex; }
.referral-code-card input { min-width: 0; flex: 1; height: 40px; padding: 0 10px; border: 1px solid #2d385b; background: var(--ink); color: #8c98b8; font-size: .65rem; }
.referral-code-card button { display: flex; align-items: center; gap: 6px; border: 0; background: var(--lime); color: var(--ink); font-size: .62rem; font-weight: 900; }
.commission-list, .activity-list { display: grid; }
.commission-list > div, .activity-list > div { display: flex; min-height: 61px; align-items: center; gap: 11px; padding: 10px 16px; border-bottom: 1px solid #eceef3; }
.commission-list > div:last-child, .activity-list > div:last-child { border-bottom: 0; }
.commission-icon { display: grid; width: 34px; height: 34px; place-items: center; background: #f2f4f8; color: var(--blue); }
.commission-list p, .activity-list p { display: grid; min-width: 0; flex: 1; margin: 0; }
.commission-list strong, .activity-list strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.commission-list small, .activity-list small { color: var(--muted); font-size: .61rem; }
.commission-list > div > b { color: var(--green); font-size: .73rem; }
.activity-dot { width: 8px; height: 8px; background: #8a92a3; }
.activity-dot--success { background: var(--green); }.activity-dot--warning { background: var(--amber); }.activity-dot--danger { background: var(--red); }

.ranking-hero { min-height: 190px; }
.month-picker label { display: grid; gap: 6px; padding: 13px; border: 1px solid #2c3658; }
.month-picker span { color: #7682a2; font-size: .57rem; font-weight: 850; letter-spacing: .09em; }
.month-picker input { border: 0; background: transparent; color: #fff; font-weight: 800; color-scheme: dark; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }
.podium-card { position: relative; display: grid; min-height: 190px; justify-items: center; align-content: center; padding: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; text-align: center; }
.podium-card--1 { border-top: 4px solid var(--lime); }
.podium-card--2 { border-top: 4px solid var(--cyan); }.podium-card--3 { border-top: 4px solid #a9b1c4; }
.podium-rank { position: absolute; top: 9px; right: 13px; color: #e3e6ed; font: 900 2.4rem/1 "SFMono-Regular", Consolas, monospace; }
.avatar--podium { width: 49px; height: 49px; margin-bottom: 10px; }
.podium-card > strong { font-size: .83rem; }.podium-card > span { color: var(--muted); font-size: .63rem; }
.podium-card > b { margin-top: 10px; color: var(--green); font-size: 1.15rem; }.podium-card > small { color: var(--muted); font-size: .58rem; }
.my-rank { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .08em; }.my-rank strong { margin-left: 7px; color: var(--blue); font-size: 1rem; }
.ranking-table tr.is-me td { background: #f0f3ff; }

.profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 15px; }
.profile-card { position: relative; padding: 0 22px 22px; border: 1px solid var(--line); background: #fff; text-align: center; }
.profile-card__cover { height: 82px; margin: 0 -22px; background: var(--ink); background-image: linear-gradient(135deg, rgba(49,87,255,.65), transparent); }
.avatar--profile { width: 74px; height: 74px; margin: -37px auto 15px; border: 5px solid #fff; font-size: 1.4rem; }
.profile-card h2 { margin-bottom: 2px; font-size: 1.15rem; }.profile-card > p { margin-bottom: 11px; color: var(--muted); font-size: .71rem; }
.profile-card dl { display: grid; margin: 22px 0 0; border-top: 1px solid var(--line); }
.profile-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.profile-card dt { color: var(--muted); font-size: .57rem; font-weight: 850; letter-spacing: .08em; }.profile-card dd { margin: 0; font-size: .68rem; font-weight: 750; }
.profile-grid .form-card { padding: 20px; }

/* Admin */
.admin-live-strip { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; padding: 9px 14px; background: var(--ink); color: #fff; }
.admin-live-strip > div { display: flex; align-items: center; gap: 10px; }
.admin-live-strip i { width: 7px; height: 7px; background: var(--lime); }
.admin-live-strip strong { font-size: .66rem; letter-spacing: .08em; }
.admin-live-strip span { color: #818dab; font-size: .62rem; }
.admin-live-strip > div:last-child span { padding-left: 11px; border-left: 1px solid #2c3658; }.admin-live-strip > div:last-child strong { margin-left: 4px; color: #fff; }
.infra-panel dl { display: grid; margin: 0; padding: 0 20px 15px; }
.infra-chip { display: flex; align-items: center; gap: 11px; margin: 17px 20px; padding: 12px; background: var(--ink); color: #fff; }
.infra-chip > span { display: grid; width: 39px; height: 39px; place-items: center; background: var(--blue); }.infra-chip > div { display: grid; }.infra-chip small { color: #7884a4; font-size: .57rem; }.infra-chip strong { font-size: .78rem; }
.infra-panel dl div { display: grid; grid-template-columns: 95px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eceef3; }
.infra-panel dt { color: var(--muted); font-size: .57rem; font-weight: 850; letter-spacing: .06em; }.infra-panel dd { margin: 0; font-size: .68rem; font-weight: 700; }
.compact-form select { max-width: 145px; height: 32px; border: 1px solid var(--line); font-size: .66rem; }
.action-group { display: flex; gap: 5px; }
.manual-deposit-review { min-width: 150px; }
.manual-deposit-review summary { padding: 8px 10px; border: 1px solid var(--line); cursor: pointer; font-size: .58rem; font-weight: 850; list-style: none; }
.manual-deposit-review form { display: grid; width: 280px; gap: 10px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); background: #fff; }
.manual-deposit-review textarea { width: 100%; min-height: 68px; padding: 10px; border: 1px solid #d4d9e5; resize: vertical; }
.manual-deposit-review small { color: var(--muted); font-size: .63rem; }
.row-actions { position: relative; }
.row-actions summary { padding: 6px 8px; border: 1px solid var(--line); color: var(--blue); cursor: pointer; font-size: .6rem; font-weight: 850; list-style: none; }
.row-actions > div { position: absolute; z-index: 15; top: calc(100% + 5px); right: 0; display: grid; width: 230px; gap: 7px; padding: 10px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.row-actions form { display: grid; gap: 5px; }
.row-actions input { height: 34px; font-size: .65rem; }
.row-actions button { min-height: 31px; border: 0; background: var(--ink); color: #fff; font-size: .59rem; font-weight: 850; }.row-actions .is-success { background: var(--green); }.row-actions .is-danger { background: var(--red); }
.calc-panel, .schedule-panel { padding: 23px; background: var(--ink); color: #fff; }
.calc-panel h2, .schedule-panel h2 { font-size: 1.5rem; line-height: 1.06; }.calc-panel > p { color: #8e9ab9; font-size: .75rem; }
.formula-box { display: grid; grid-template-columns: auto 1fr; gap: 1px; margin-top: 19px; background: #2a3454; border: 1px solid #2a3454; }
.formula-box span, .formula-box code { padding: 10px; background: #111a35; font-size: .65rem; }.formula-box span { color: var(--lime); font-weight: 900; }.formula-box code { color: #b5bfd7; }
.schedule-week { display: grid; grid-template-columns: repeat(7, 1fr); margin: 20px 0; border: 1px solid #293353; }
.schedule-week div { display: grid; gap: 4px; padding: 10px 5px; border-right: 1px solid #293353; text-align: center; }.schedule-week div:last-child { border-right: 0; }
.schedule-week strong { font-size: .62rem; }.schedule-week span { color: var(--green); font-size: .48rem; font-weight: 850; }.schedule-week .is-weekend span { color: var(--lime); }
.check-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: #9da8c4; font-size: .7rem; }.check-list li { display: flex; gap: 7px; }.check-list .icon { color: var(--green); }
.wallet-summary { display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; padding: 20px; }
.wallet-summary > .eyebrow { grid-column: 1 / -1; }.wallet-summary > div { display: grid; padding: 13px; border: 1px solid var(--line); border-right: 0; }.wallet-summary > div:last-child { border-right: 1px solid var(--line); }.wallet-summary strong { font-size: 1.4rem; }.wallet-summary span { color: var(--muted); font-size: .61rem; }.wallet-summary .is-alert { background: #fff2f4; color: var(--red); }

.finance-hero { min-height: 215px; }
.split-visual { display: grid; min-width: 390px; grid-template-columns: repeat(3, 1fr); border: 1px solid #2b3657; }
.split-visual div { display: grid; min-height: 110px; align-content: center; padding: 14px; border-right: 1px solid #2b3657; }.split-visual div:last-child { border-right: 0; }
.split-visual span { color: #566382; font: 800 .7rem/1 "SFMono-Regular", Consolas, monospace; }.split-visual strong { margin: 7px 0 2px; color: var(--lime); font-size: 1.45rem; }.split-visual small { color: #9da8c4; font-size: .62rem; }
.total-chip { padding: 6px 8px; background: var(--lime); color: var(--ink); font-size: .61rem; font-weight: 900; }
.partner-form { display: grid; gap: 0; padding: 0 20px 20px; }
.partner-form > div { display: grid; grid-template-columns: 40px 1fr 150px; align-items: end; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.revenue-breakdown { padding: 23px; }
.revenue-breakdown > h2 { margin-bottom: 20px; font-size: 2rem; }
.revenue-breakdown > div { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 14px; font-size: .7rem; }
.revenue-breakdown i { position: relative; grid-column: 1 / -1; display: block; height: 4px; background: #e8ebf1; }.revenue-breakdown i::after { display: block; width: var(--w); height: 100%; background: var(--blue); content: ""; }
.settings-layout { display: grid; gap: 15px; }
.settings-section { display: grid; grid-template-columns: 215px 1fr; gap: 22px; padding: 23px; }
.settings-section__title { display: flex; align-items: flex-start; gap: 11px; }.settings-section__title h2 { margin: 0; font-size: 1.05rem; }.settings-section__title .eyebrow { margin-bottom: 3px; font-size: .55rem; }
.formula-strip { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px; background: var(--ink); color: #fff; font-size: .62rem; font-weight: 850; }.formula-strip i { color: #627091; }.formula-strip strong { color: var(--lime); }
.settings-submit { position: sticky; z-index: 10; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px; border: 1px solid #ccd2df; background: rgba(255,255,255,.96); box-shadow: 0 15px 40px rgba(10,16,38,.13); backdrop-filter: blur(12px); }.settings-submit > div { display: grid; }.settings-submit strong { font-size: .77rem; }.settings-submit span { color: var(--muted); font-size: .65rem; }

@media (max-width: 1180px) {
  :root { --sidebar: 232px; }
  .content-area { padding: 20px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-ticker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .dashboard-grid--lower { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); }
  .split-layout--deposit, .split-layout--api, .split-layout--admin-form { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
  .auth-copy h1 { font-size: 4.4rem; }
  .settings-section { grid-template-columns: 175px 1fr; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar__close { display: inline-flex; }
  .sidebar-scrim { position: fixed; z-index: 25; inset: 0; background: rgba(4,8,20,.6); }
  .sidebar.is-open + .sidebar-scrim { display: block; }
  .main-area { margin-left: 0; }
  .topbar__menu { display: inline-flex; flex: 0 0 auto; }
  .page-heading { margin-right: auto; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { padding: 25px clamp(22px, 8vw, 75px); }
  .auth-panel__mobile-brand { display: block; margin-bottom: 50px; }
  .install-shell { grid-template-columns: 1fr; }
  .install-brand { min-height: 390px; padding: 38px; }
  .install-panel { padding: 38px; }
  .dashboard-grid, .dashboard-grid--lower, .dashboard-grid--equal, .split-layout, .split-layout--deposit, .split-layout--api, .split-layout--admin-form, .store-grid, .profile-grid { grid-template-columns: 1fr; }
  .bot-hero, .ranking-hero, .finance-hero { align-items: flex-start; flex-direction: column; }
  .bot-hero__stats, .split-visual { width: 100%; min-width: 0; }
  .settings-section { grid-template-columns: 1fr; }
  .formula-strip { grid-column: 1; }
}

@media (max-width: 650px) {
  body { font-size: 15px; }
  .topbar { min-height: 80px; padding: 12px 14px; }
  .page-heading p, .market-clock { display: none; }
  .notification-panel { position: fixed; top: 73px; right: 10px; }
  .page-heading h1 { font-size: 1.2rem; }
  .content-area { padding: 13px; }
  .metrics-grid, .metrics-grid--3, .market-ticker-grid, .mode-grid, .podium { grid-template-columns: 1fr; }
  .metric-card { min-height: 124px; }
  .panel__header--stack-mobile, .panel__header--stack-mobile .table-tools { align-items: stretch; flex-direction: column; }
  .search-box input, .table-tools select { width: 100%; }
  .notice-bar { align-items: flex-start; flex-wrap: wrap; }
  .notice-bar .btn, .notice-bar .live-pill { width: 100%; margin-left: 0; }
  .deposit-wallet-address > div { align-items: stretch; flex-direction: column; }
  .deposit-wallet-address .btn { width: 100%; }
  .field-grid--2, .field-grid--3, .choice-row, .deposit-rule-grid, .permission-result, .feature-list { grid-template-columns: 1fr; }
  .deposit-rule-grid > div, .permission-result > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .deposit-rule-grid > div:last-child, .permission-result > div:last-child { border-bottom: 0; }
  .horizontal-form { align-items: stretch; flex-direction: column; }
  .store-hero { grid-template-columns: 1fr; }
  .store-machine { min-height: 270px; clip-path: none; }
  .store-hero__copy { padding: 28px 22px; }
  .store-hero h2 { font-size: 3.2rem; }
  .referral-hero { grid-template-columns: 1fr; padding: 23px; }
  .referral-code-card > div { flex-direction: column; }.referral-code-card button { min-height: 40px; justify-content: center; }
  .profile-card { max-width: none; }
  .admin-live-strip { align-items: flex-start; flex-direction: column; }.admin-live-strip > div:last-child { flex-wrap: wrap; }
  .partner-form > div { grid-template-columns: 34px 1fr; }.partner-form > div .field:last-child { grid-column: 2; }
  .wallet-summary { grid-template-columns: 1fr; }.wallet-summary > div { border-right: 1px solid var(--line); border-bottom: 0; }.wallet-summary > div:last-child { border-bottom: 1px solid var(--line); }
  .settings-submit { align-items: stretch; flex-direction: column; }
  .formula-strip { align-items: stretch; flex-direction: column; }
  .install-panel, .install-brand { padding: 25px 20px; }
  .install-heading { flex-direction: column; }.requirement-list { justify-items: start; }
  .form-section { grid-template-columns: 34px 1fr; }
  .auth-panel { padding: 20px; }
  .auth-panel__mobile-brand { margin-bottom: 45px; }
  .auth-options, .auth-switch { align-items: flex-start; flex-direction: column; }
  .app-footer { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
