:root {
  --bg: #0a252f;
  --bg-deep: #071f29;
  --surface: #0e2d37;
  --surface-2: #11343e;
  --surface-3: #153b46;
  --line: #294b55;
  --line-soft: rgba(103, 145, 154, .25);
  --text: #eaf3f5;
  --muted: #8eabb2;
  --accent: #31dda9;
  --accent-dark: #062c22;
  --danger: #ff777f;
  --warning: #ffd46b;
  --shadow: 0 18px 45px rgba(0, 0, 0, .22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body, #root { min-height: 100%; margin: 0; }
body { min-width: 320px; background: var(--bg); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }

.brand-lockup { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { width: 45px; height: 37px; display: grid; place-items: center; border: 2px solid #96b8b0; border-radius: 10px 3px 10px 3px; background: linear-gradient(145deg, #264b53, #0b2c35); transform: skew(-8deg); box-shadow: inset 0 -4px rgba(49, 221, 169, .15); }
.brand-mark b { color: var(--accent); font-size: 27px; font-style: italic; line-height: 1; transform: skew(8deg); }
.brand-lockup > span:last-child { display: grid; grid-template-columns: auto auto; align-items: end; line-height: .9; letter-spacing: -.7px; }
.brand-lockup strong, .brand-lockup > span:last-child > b { font-size: 20px; font-style: italic; font-weight: 950; }
.brand-lockup > span:last-child > b { color: var(--accent); }
.brand-lockup small { grid-column: 1 / -1; margin-top: 5px; color: #79979f; font-size: 7px; font-weight: 900; letter-spacing: 2.2px; }
.brand-image-lockup { width: min(190px, 100%); }
.brand-image-lockup img { display: block; width: 100%; height: auto; object-fit: contain; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 1.35px; text-transform: uppercase; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(480px, .84fr); color: #fff; background: var(--bg-deep); }
.auth-hero { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: clamp(45px, 8vw, 120px); background: radial-gradient(circle at 18% 17%, rgba(49, 222, 174, .2), transparent 32%), linear-gradient(145deg, #063543, #071f29); }
.auth-hero .brand-lockup { width: min(260px, 100%); margin-bottom: clamp(62px, 9vh, 105px); }
.auth-hero h1 { max-width: 720px; margin: 14px 0 18px; font-size: clamp(42px, 5vw, 76px); line-height: .98; letter-spacing: -2.8px; }
.auth-hero > p { max-width: 660px; margin: 0; color: #9eb7bd; font-size: 17px; line-height: 1.65; }
.auth-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.auth-points span { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid #28505a; border-radius: 9px; color: #c3d8dc; background: rgba(9, 42, 52, .62); font-size: 13px; font-weight: 750; }
.auth-points svg { width: 17px; color: var(--accent); }
.auth-panel { display: grid; place-items: center; padding: 42px 24px; overflow-y: auto; }
.auth-card { width: min(500px, 100%); padding: 37px; border: 1px solid #28444d; border-radius: 18px; background: #102f39; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.mobile-auth-intro { display: none; }
.auth-language { display: flex; justify-content: flex-end; margin: -8px 0 19px; }
.auth-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 14px; color: var(--accent-dark); background: var(--accent); }
.auth-card h2 { margin: 6px 0 22px; font-size: 28px; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 22px; padding: 5px; border: 1px solid #2d515a; border-radius: 10px; background: #09252e; }
.auth-tabs button { min-height: 38px; padding: 5px 8px; border: 0; border-radius: 7px; color: #86a4ab; background: transparent; font-size: 12px; font-weight: 850; cursor: pointer; }
.auth-tabs button.is-active { color: #082920; background: var(--accent); }
.auth-card .form-grid { gap: 12px; }
.auth-submit { width: 100%; min-height: 49px !important; margin-top: 6px; }
.auth-switch { width: 100%; margin-top: 15px; padding: 8px; border: 0; color: #9fc1c5; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.auth-switch:hover { color: var(--accent); }

.form-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; color: #bed0d4; font-size: 14px; font-weight: 750; }
.form-field > span { display: block; }
.form-field input, .form-field textarea, .form-field select { width: 100%; min-width: 0; border: 1px solid #36515a; border-radius: 9px; outline: 0; color: #fff; background: #09242e; font-size: 14px; transition: border-color .16s, box-shadow .16s; }
.form-field input { height: 48px; padding: 0 13px; }
.form-field select { height: 48px; padding: 0 13px; color-scheme: dark; }
.form-field textarea { min-height: 90px; padding: 12px 13px; line-height: 1.45; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49, 221, 169, .12); }
.form-field input:disabled { opacity: .55; }
.form-field small { margin-top: -2px; color: #78999f; font-size: 11px; font-weight: 600; line-height: 1.4; }
.form-field input:-webkit-autofill { -webkit-text-fill-color: #fff; caret-color: #fff; box-shadow: 0 0 0 1000px #09242e inset; transition: background-color 9999s ease-out; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }

.primary-button, .secondary-button, .danger-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border-radius: 8px; font-size: 13px; font-weight: 900; cursor: pointer; transition: transform .15s, filter .15s, border-color .15s; }
.primary-button { border: 1px solid var(--accent); color: var(--accent-dark); background: var(--accent); }
.secondary-button { border: 1px solid #3a626b; color: #dbeaec; background: #123742; }
.danger-button { border: 1px solid #774950; color: #ffbdc1; background: #452e34; }
.primary-button:hover, .secondary-button:hover, .danger-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-button:disabled, .secondary-button:disabled, .danger-button:disabled { opacity: .55; cursor: wait; transform: none; }
.primary-button svg, .secondary-button svg, .danger-button svg { width: 17px; }

.language-picker { min-width: 0; min-height: 39px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #37535b; border-radius: 8px; color: #d7e3e6; background: #11313b; }
.language-picker svg { width: 16px; height: 16px; color: var(--accent); }
.language-picker select { min-width: 132px; height: 37px; padding: 0 22px 0 2px; border: 0; outline: 0; color: #eaf3f5; background: #11313b; font-size: 12px; font-weight: 800; color-scheme: dark; cursor: pointer; }
.language-picker.is-compact select { min-width: 118px; }
.language-picker:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49, 221, 169, .1); }

.notice { display: flex; align-items: center; min-height: 42px; margin: 0 0 14px; padding: 10px 13px; border: 1px solid #37615e; border-radius: 9px; color: #c8eee4; background: #153d37; font-size: 13px; line-height: 1.5; }
.notice:empty { display: none; }
.notice.is-error { border-color: #75464b; color: #ffc7c7; background: #462d32; }
.notice.is-warning { border-color: #75612e; color: #ffe2a0; background: #40391f; }
.notice.is-success { border-color: #2e7865; color: #bcf8e7; background: #153d37; }

.admin-shell { min-height: 100vh; color: var(--text); background: var(--bg); }
.admin-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 300px; overflow-y: auto; border-right: 1px solid #24424b; background: #08232d; scrollbar-width: thin; scrollbar-color: #357467 #0a2932; }
.admin-logo { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px; border-bottom: 1px solid #24424b; }
.admin-logo small { padding: 5px 7px; border: 1px solid #3c5c64; border-radius: 5px; color: #aac0c5; font-size: 9px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.sidebar-close { display: none; }
.admin-identity { display: flex; align-items: center; gap: 11px; margin: 16px; padding: 13px; border: 1px solid #284a53; border-radius: 11px; background: #10333d; }
.admin-identity > svg { width: 29px; height: 29px; color: var(--accent); }
.admin-identity > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.admin-identity span { color: #79979f; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.admin-identity strong, .admin-identity small { max-width: 205px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-identity strong { font-size: 15px; }
.admin-identity small { color: #63d9b7; font-size: 10px; }
.admin-sidebar nav { padding: 0 11px 30px; }
.admin-sidebar nav section { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; }
.admin-sidebar nav section > span { padding: 0 10px 7px; color: #6b8992; font-size: 11px; font-weight: 900; letter-spacing: 1.1px; }
.admin-sidebar nav button { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 8px; color: #a9c0c6; background: transparent; font-size: 14px; font-weight: 750; text-align: left; cursor: pointer; }
.admin-sidebar nav button:hover { color: #fff; background: #123844; }
.admin-sidebar nav button.is-active { color: #fff; background: #11634f; box-shadow: inset 3px 0 #37e7b3; }
.admin-sidebar nav button svg { width: 19px; }
.admin-main { min-width: 0; min-height: 100vh; margin-left: 300px; }
.admin-topbar { position: sticky; z-index: 20; top: 0; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 25px; border-bottom: 1px solid #29464e; background: rgba(12, 42, 52, .96); backdrop-filter: blur(12px); }
.admin-topbar > div:first-of-type { display: flex; flex-direction: column; gap: 2px; }
.admin-topbar > div:first-of-type span { color: #6d9098; font-size: 11px; font-weight: 800; }
.admin-topbar > div:first-of-type strong { font-size: 15px; }
.admin-topbar > div:last-child { display: flex; align-items: center; gap: 8px; }
.admin-topbar button, .admin-topbar a { min-height: 39px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid #37535b; border-radius: 8px; color: #d7e3e6; background: #11313b; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; }
.admin-topbar button:last-child { color: #ffc0c0; border-color: #604143; }
.admin-topbar svg { width: 16px; }
.menu-button { display: none !important; }
.sidebar-backdrop { display: none; }

.admin-page { max-width: 1580px; display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 4vw, 48px); }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-header h1 { margin: 6px 0; font-size: clamp(27px, 3vw, 39px); letter-spacing: -.8px; }
.page-header p { max-width: 820px; margin: 0; color: #9ab2b8; font-size: 15px; line-height: 1.55; }
.page-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.content-card { overflow: hidden; border: 1px solid #2e4d56; border-radius: 13px; background: linear-gradient(145deg, #10323d, #0c2a34); box-shadow: 0 16px 36px rgba(0, 0, 0, .13); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.stat-card { min-height: 122px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #2c4a53; border-radius: 12px; background: linear-gradient(145deg, #10323d, #0d2d37); }
.stat-card > svg { width: 45px; height: 45px; padding: 11px; border-radius: 11px; color: var(--accent); background: rgba(49, 221, 169, .1); }
.stat-card > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.stat-card span { color: #9ab2b8; font-size: 13px; }
.stat-card strong { overflow: hidden; font-size: clamp(25px, 3vw, 34px); text-overflow: ellipsis; white-space: nowrap; }
.stat-card.is-success > svg, .stat-card.is-success strong { color: #64e9c2; }
.stat-card.is-warning > svg, .stat-card.is-warning strong { color: var(--warning); }
.stat-card.is-danger > svg, .stat-card.is-danger strong { color: #ff9399; }
.welcome-card { min-height: 150px; display: flex; align-items: center; gap: 18px; padding: 24px; }
.large-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 16px; color: var(--accent); background: rgba(49, 221, 169, .1); }
.large-icon svg { width: 31px; height: 31px; }
.welcome-card h2 { margin: 0 0 8px; font-size: 22px; }
.welcome-card p { max-width: 900px; margin: 0; color: var(--muted); line-height: 1.6; }

.table-card { width: 100%; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
th { color: #76969e; background: #123640; font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
td { color: #d9e7ea; font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(49, 221, 169, .025); }
.client-name { min-width: 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0; border: 0; color: #fff; background: transparent; text-align: left; cursor: pointer; }
.client-name:hover strong { color: var(--accent); }
.client-name small { color: #78999f; }
.key-cell { min-width: 180px; display: flex; align-items: center; gap: 7px; }
.key-cell code { max-width: 220px; overflow: hidden; padding: 7px 9px; border: 1px solid #34535c; border-radius: 6px; color: #b9dfd4; background: #09262f; text-overflow: ellipsis; white-space: nowrap; }
.key-cell button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid #375760; border-radius: 7px; color: #96b4ba; background: #12343e; cursor: pointer; }
.key-cell svg { width: 14px; }
.domain-list { min-width: 160px; display: flex; flex-direction: column; gap: 4px; }
.domain-list span { display: flex; align-items: center; gap: 5px; color: #aac3c8; font-size: 12px; }
.domain-list svg { width: 13px; color: var(--accent); }
.empty-cell { padding: 48px; color: var(--muted); text-align: center; }

.status-badge { min-height: 27px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid; border-radius: 20px; font-size: 10px; font-weight: 900; letter-spacing: .25px; text-transform: uppercase; white-space: nowrap; }
.status-badge.is-approved { border-color: #2a876c; color: #72e7c5; background: rgba(45, 179, 139, .12); }
.status-badge.is-pending { border-color: #8a742f; color: #ffe081; background: rgba(173, 139, 38, .13); }
.status-badge.is-rejected { border-color: #82464d; color: #ff9ba1; background: rgba(179, 59, 68, .13); }
.toggle { min-width: 100px; display: inline-flex; align-items: center; gap: 7px; color: #9ab2b8; font-size: 11px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle > span { width: 35px; height: 20px; position: relative; flex: 0 0 auto; border-radius: 12px; background: #536b71; transition: background .16s; }
.toggle > span::after { width: 14px; height: 14px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; content: ""; transition: transform .16s; }
.toggle.is-on > span { background: var(--accent); }
.toggle.is-on > span::after { transform: translateX(15px); }
.toggle.is-on b { color: #bff8e7; }
.toggle.is-disabled { opacity: .5; cursor: wait; }
.toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.toggle-grid .toggle { min-height: 58px; padding: 0 14px; border: 1px solid #31525b; border-radius: 9px; background: #0c2932; }

.modal-layer { position: fixed; z-index: 100; inset: 0; display: flex; align-items: stretch; justify-content: flex-end; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(2, 15, 20, .72); backdrop-filter: blur(3px); cursor: default; }
.editor-card { width: min(760px, 100%); position: relative; display: flex; flex-direction: column; overflow-y: auto; border-left: 1px solid #35565f; background: #0d2c36; box-shadow: -22px 0 60px rgba(0, 0, 0, .35); animation: slide-in .2s ease-out; }
@keyframes slide-in { from { transform: translateX(45px); opacity: 0; } }
.editor-card > header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; border-bottom: 1px solid #2d4d56; background: #123640; }
.editor-card h2 { margin: 4px 0 0; font-size: 22px; }
.editor-card > header > button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #45616a; border-radius: 8px; color: #b9ccd0; background: #0d2c35; cursor: pointer; }
.editor-body { flex: 1; padding: 22px; }
.muted-cell { color: #77979e; }
.editor-card > footer, .settings-form > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 22px; border-top: 1px solid #2b4b54; background: #0b2933; }
.editor-delete-button { margin-right: auto; }

.payment-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 13px; }
.payment-card { overflow: hidden; border: 1px solid #2e4d56; border-radius: 12px; background: linear-gradient(145deg, #10323d, #0c2a34); box-shadow: var(--shadow); }
.payment-card > header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #2d4d56; background: #123640; }
.payment-card > header > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.payment-card > header strong, .payment-card > header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-card > header small { color: var(--muted); }
.payment-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 18px 16px 9px; }
.payment-amount strong { color: var(--accent); font-size: 25px; }
.payment-amount span { color: var(--muted); font-size: 12px; }
.payment-card dl { display: grid; gap: 9px; margin: 0; padding: 8px 16px 16px; }
.payment-card dl div { min-width: 0; display: grid; grid-template-columns: 115px 1fr; gap: 8px; }
.payment-card dt { color: #78979e; font-size: 11px; }
.payment-card dd { margin: 0; overflow: hidden; color: #d8e7ea; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.proof-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 12px; color: #7ce5c6; font-size: 12px; font-weight: 800; }
.proof-link svg { width: 15px; }
.payment-note { margin: 0 16px 15px; padding: 10px; border-radius: 7px; color: #a8c0c5; background: #0a2731; font-size: 12px; line-height: 1.45; }
.payment-card > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid #2b4a53; }
.empty-state { min-height: 250px; display: grid; place-items: center; align-content: center; padding: 35px; text-align: center; }
.empty-state > svg { width: 48px; height: 48px; color: #5c8881; }
.empty-state h2 { margin: 15px 0 5px; }
.empty-state p { margin: 0; color: var(--muted); }

.settings-form { max-width: 1050px; }
.settings-form > .form-grid, .settings-form > .form-field { padding-right: 22px; padding-left: 22px; }
.settings-form > .form-grid { padding-top: 22px; }
.crypto-method-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 0 22px 18px; }
.crypto-method-editor > section { overflow: hidden; border: 1px solid #31545d; border-radius: 11px; background: #0b2933; }
.crypto-method-editor > section > header { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #2d4d56; background: #123640; }
.crypto-method-editor > section > header > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.crypto-method-editor > section > header > div > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.crypto-method-editor > section > header strong, .crypto-method-editor > section > header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crypto-method-editor > section > header small { color: var(--muted); font-size: 10px; }
.crypto-method-editor .form-grid { padding: 14px 14px 0; }
.qr-image-editor { display: grid; grid-template-columns: 125px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px; border-bottom: 1px solid #2b4a53; }
.qr-image-preview { width: 125px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid #3b6069; border-radius: 10px; color: #77959c; background: #fff; font-size: 10px; text-align: center; }
.qr-image-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qr-image-editor > div:last-child { min-width: 0; }
.qr-image-editor strong { display: block; margin-bottom: 5px; font-size: 14px; }
.qr-image-editor p { margin: 0 0 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.qr-upload-button { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; cursor: pointer; }
.qr-upload-button svg { width: 15px; }
.qr-upload-button input { display: none; }
.qr-image-error { display: block; margin-top: 7px; color: #ff8292; font-size: 10px; }
.coin-symbol { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 43px; border: 1px solid #42b28e; border-radius: 50%; color: #062c22; background: var(--accent); font-size: 11px; font-weight: 950; }
.compact-form { max-width: 760px; padding-top: 22px; }
.compact-form > .form-field { padding-right: 22px; padding-left: 22px; }
.compact-form > .notice { margin-right: 22px; margin-left: 22px; }
.password-form { max-width: 680px; }

.connection-card > header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-bottom: 1px solid #2d4d56; background: #123640; }
.connection-card h2 { margin: 4px 0 0; font-size: 20px; }
.connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #2a4b54; }
.connection-grid > div { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #0e2d37; }
.connection-grid span { color: #74949b; font-size: 10px; font-weight: 900; }
.connection-grid code { overflow: hidden; color: #b9dfd4; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.payment-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 14px; }
.payment-instructions { padding: 24px; }
.plan-price { display: flex; align-items: baseline; gap: 9px; margin: 14px 0 22px; }
.plan-price strong { color: var(--accent); font-size: 45px; line-height: 1; }
.plan-price span { color: #95b0b6; font-size: 16px; font-weight: 800; }
.plan-payment-copy { margin: -12px 0 18px !important; color: #a9c0c5 !important; font-size: 12px !important; }
.live-payment-quote { margin: 0 22px 18px; overflow: hidden; border: 1px solid #31535c; border-radius: 11px; background: #08242d; }
.payment-instructions .live-payment-quote { margin: 0 0 18px; }
.live-payment-quote > header { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid #294a53; background: #12353f; }
.live-payment-quote > header > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.live-payment-quote > header strong { font-size: 17px; }
.live-payment-quote > header small { color: var(--muted); font-size: 10px; }
.live-payment-quote > header > span { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #318f77; border-radius: 99px; color: #65e7c3; background: #0c3a34; font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.live-payment-quote.is-stale > header > span { border-color: #8d7335; color: #f1cf72; background: #3c341d; }
.live-payment-quote.is-unavailable > header > span { border-color: #8b4552; color: #ff9cab; background: #3c2229; }
.live-quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #294a53; }
.live-quote-grid article { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 13px; background: #0b2b34; }
.live-quote-grid article > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.live-quote-grid article strong { overflow: hidden; color: #f4fbfa; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.live-quote-grid article small { color: #8faeb4; font-size: 10px; }
.live-quote-grid > p { grid-column: 1 / -1; margin: 0; padding: 18px; color: var(--muted); background: #0b2b34; text-align: center; }
.live-payment-quote > footer { padding: 9px 12px; color: #73949b; background: #071f27; font-size: 9px; line-height: 1.5; }
.payment-instructions dl { display: grid; gap: 0; margin: 0; border: 1px solid #31515a; border-radius: 9px; overflow: hidden; }
.payment-instructions dl div { min-width: 0; padding: 11px 12px; border-bottom: 1px solid #2b4a53; }
.payment-instructions dl div:last-child { border-bottom: 0; }
.payment-instructions dt { color: #78989f; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.payment-instructions dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #e5f0f2; font-size: 13px; font-weight: 700; }
.payment-instructions > p { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.crypto-payment-options { display: grid; gap: 9px; }
.crypto-payment-options article { overflow: hidden; border: 1px solid #31535c; border-radius: 9px; background: #0a2832; }
.crypto-payment-options article > header { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid #294a53; background: #12353f; }
.crypto-payment-options article > header > div { display: flex; flex-direction: column; gap: 2px; }
.crypto-payment-options article small { color: var(--muted); font-size: 10px; }
.crypto-payment-options .coin-symbol { width: 36px; height: 36px; flex-basis: 36px; font-size: 9px; }
.crypto-payment-body { display: grid; grid-template-columns: 145px minmax(0, 1fr); align-items: center; gap: 14px; padding: 13px; }
.crypto-payment-body > img { display: block; width: 145px; aspect-ratio: 1; object-fit: contain; border: 6px solid #fff; border-radius: 10px; background: #fff; }
.qr-missing { width: 145px; aspect-ratio: 1; display: grid; place-items: center; border: 1px dashed #49676e; border-radius: 10px; color: #78979d; font-size: 10px; text-align: center; }
.wallet-address { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wallet-address > span { color: #7f9ea5; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.wallet-address code { width: 100%; display: block; padding: 10px; overflow-wrap: anywhere; border: 1px solid #2c4e57; border-radius: 7px; color: #b9dfd4; background: #061d24; font-size: 11px; line-height: 1.45; }
.wallet-address button { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; }
.wallet-address button svg { width: 14px; }
.payment-form { padding: 22px; }
.payment-form h2 { margin: 0 0 20px; font-size: 22px; }
.payment-form > button { width: 100%; }
.history-card > header { padding: 16px 18px; border-bottom: 1px solid #2d4d56; background: #123640; }
.history-card h2 { margin: 0; font-size: 18px; }
.history-list { display: flex; flex-direction: column; }
.history-list > div { display: grid; grid-template-columns: 110px 100px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.history-list > div:last-child { border-bottom: 0; }
.history-list span, .history-list time { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.empty-copy { margin: 0; padding: 28px; color: var(--muted); text-align: center; }

.screen-loader { min-height: calc(100vh - 68px); display: grid; place-items: center; align-content: center; gap: 14px; color: #9fb8bd; font-size: 13px; }
.screen-loader.is-full { min-height: 100vh; background: var(--bg-deep); }
.screen-loader span { width: 34px; height: 34px; border: 3px solid #31535c; border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

html[dir="rtl"] .admin-sidebar { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid #24424b; }
html[dir="rtl"] .admin-main { margin-right: 300px; margin-left: 0; }
html[dir="rtl"] .admin-sidebar nav button { text-align: right; }
html[dir="rtl"] .admin-sidebar nav button.is-active { box-shadow: inset -3px 0 #37e7b3; }
html[dir="rtl"] .admin-identity, html[dir="rtl"] .page-header, html[dir="rtl"] .form-field { text-align: right; }

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-layout { grid-template-columns: 1fr; }
  .crypto-method-editor { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { min-height: 100vh; padding: 24px 12px; background: radial-gradient(circle at 10% 0, rgba(49, 221, 169, .12), transparent 35%), #071f29; }
  .mobile-auth-intro { display: flex; align-items: center; flex-direction: column; gap: 13px; margin: 0 0 28px; text-align: center; }
  .mobile-auth-intro .brand-image-lockup { width: min(235px, 76vw); }
  .mobile-auth-intro p { max-width: 330px; margin: 0; color: #9eb7bd; font-size: 13px; line-height: 1.55; }
  .auth-language { margin-top: 0; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .admin-sidebar.is-open { transform: none; box-shadow: 25px 0 60px rgba(0, 0, 0, .45); }
  .sidebar-close { width: 36px; height: 36px; position: absolute; top: 21px; right: 12px; display: grid; place-items: center; border: 1px solid #3c5962; border-radius: 8px; color: #c7d8dc; background: #0d2f39; cursor: pointer; }
  .admin-logo { padding-right: 58px; }
  .admin-logo small { display: none; }
  .admin-main { margin-left: 0; }
  .menu-button { display: grid !important; place-items: center; width: 39px; padding: 0 !important; }
  .admin-topbar { justify-content: flex-start; gap: 12px; padding: 0 14px; }
  .admin-topbar > div:last-child { margin-left: auto; }
  .sidebar-backdrop { position: fixed; z-index: 25; inset: 0; display: block; border: 0; background: rgba(0, 10, 14, .62); }
  .admin-page { padding: 24px 18px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .payment-instructions { display: block; }
  html[dir="rtl"] .admin-sidebar { transform: translateX(100%); }
  html[dir="rtl"] .admin-sidebar.is-open { transform: none; }
  html[dir="rtl"] .admin-main { margin-right: 0; }
  html[dir="rtl"] .sidebar-close { right: auto; left: 12px; }
  html[dir="rtl"] .admin-topbar > div:last-child { margin-right: auto; margin-left: 0; }
}

@media (max-width: 700px) {
  .auth-card { padding: 26px 20px; }
  .auth-tabs { grid-template-columns: 1fr; }
  .auth-tabs button { min-height: 35px; }
  .form-grid, .toggle-grid { grid-template-columns: 1fr; gap: 0; }
  .admin-topbar > div:last-child a { display: none; }
  .admin-topbar > div:last-child button span { display: none; }
  .admin-topbar > div:last-child button { width: 39px; justify-content: center; padding: 0; }
  .language-picker.is-compact { padding: 0 6px; }
  .language-picker.is-compact select { min-width: 91px; width: 91px; }
  .admin-page { padding: 20px 12px 30px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { min-height: 96px; gap: 9px; padding: 12px; }
  .stat-card > svg { width: 36px; height: 36px; padding: 8px; }
  .stat-card span { font-size: 11px; }
  .stat-card strong { font-size: 21px; }
  .welcome-card { align-items: flex-start; padding: 18px; }
  .large-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 11px; }
  .large-icon svg { width: 23px; }
  .payment-list { grid-template-columns: 1fr; }
  .table-card { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .table-wrap { overflow: visible; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tbody { display: grid; gap: 10px; }
  tbody tr { display: grid; gap: 12px; padding: 15px; border: 1px solid #2e4d56; border-radius: 11px; background: linear-gradient(145deg, #10323d, #0c2a34); }
  td { min-width: 0; display: grid; grid-template-columns: minmax(85px, .4fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 0; border: 0; }
  td::before { color: #75949c; font-size: 10px; font-weight: 900; text-transform: uppercase; content: attr(data-label); }
  td:first-child { grid-template-columns: 1fr; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
  td:first-child::before { display: none; }
  .key-cell, .domain-list { min-width: 0; }
  .key-cell code { min-width: 0; flex: 1; }
  .empty-cell { display: block; padding: 20px; }
  .empty-cell::before { display: none; }
  .connection-grid { grid-template-columns: 1fr; }
  .history-list > div { grid-template-columns: 1fr auto; gap: 8px; }
  .history-list > div span, .history-list > div time { grid-column: 1 / -1; }
  .settings-form > .form-grid, .settings-form > .form-field, .compact-form > .form-field { padding-right: 15px; padding-left: 15px; }
  .crypto-method-editor { padding-right: 15px; padding-left: 15px; }
  .live-payment-quote { margin-right: 15px; margin-left: 15px; }
  .payment-instructions .live-payment-quote { margin-right: 0; margin-left: 0; }
  .live-quote-grid { grid-template-columns: 1fr; }
  .qr-image-editor, .crypto-payment-body { grid-template-columns: 1fr; }
  .qr-image-preview, .crypto-payment-body > img, .qr-missing { width: min(180px, 100%); margin: auto; }
  .settings-form > .form-grid, .compact-form { padding-top: 15px; }
  .compact-form > .notice { margin-right: 15px; margin-left: 15px; }
  .editor-card { border-left: 0; }
}

@media (max-width: 420px) {
  .auth-panel { padding: 0; }
  .auth-card { min-height: 100vh; width: 100%; padding: 24px 16px; border: 0; border-radius: 0; }
  .mobile-auth-intro { margin-bottom: 23px; }
  .mobile-auth-intro .brand-image-lockup { width: min(225px, 70vw); }
  .auth-language { justify-content: center; margin-bottom: 18px; }
  .auth-language .language-picker { width: min(230px, 100%); }
  .auth-language .language-picker select { min-width: 0; width: 100%; }
  .admin-topbar > div:first-of-type span { display: none; }
  .admin-topbar > div:first-of-type strong { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .language-picker.is-compact select { min-width: 66px; width: 66px; }
  .admin-sidebar { width: min(300px, 88vw); }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 82px; }
  .page-header h1 { font-size: 27px; }
  .page-actions, .page-actions > button { width: 100%; }
  .payment-card dl div { grid-template-columns: 1fr; gap: 3px; }
  .payment-card > footer { flex-direction: column-reverse; }
  .payment-card > footer button { width: 100%; }
  .editor-card > footer { flex-direction: column-reverse; }
  .editor-card > footer button { width: 100%; }
  .editor-delete-button { margin-right: 0; }
}
