: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; }
.password-input { position: relative; display: block !important; }
.password-input > input { padding-right: 52px; }
.password-reveal { position: absolute; top: 5px; right: 5px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; color: #9cb7bd; background: #12343e; cursor: pointer; }
.password-reveal:hover, .password-reveal:focus-visible { color: var(--accent); outline: 1px solid var(--accent); }
.password-reveal svg { width: 18px; height: 18px; }
.remember-session { display: flex; align-items: center; gap: 9px; margin: -2px 0 16px; color: #b8cdd1; font-size: 12px; font-weight: 750; cursor: pointer; }
.remember-session input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.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: none; -ms-overflow-style: none; }
.admin-sidebar::-webkit-scrollbar { width:0; height:0; display:none; }
.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, .admin-sidebar nav a { 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; text-decoration: none; cursor: pointer; }
.admin-sidebar nav button:hover, .admin-sidebar nav a: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, .admin-sidebar nav a 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-embedded-tool { width:100%; min-width:0; height:calc(100vh - 68px); padding:18px; background:radial-gradient(circle at 75% 0,rgba(49,221,169,.06),transparent 34%),#071f26; }
.admin-embedded-frame { display:block; width:100%; height:100%; border:1px solid #2c505a; border-radius:14px; background:#071f26; box-shadow:0 18px 46px rgba(0,0,0,.18); }

.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; }
.stat-card.is-link { width:100%; color:inherit; font:inherit; text-align:left; appearance:none; cursor:pointer; transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease; }
.stat-card.is-link:hover { border-color:#4a7a83; background:linear-gradient(145deg,#15414b,#10343e); box-shadow:0 10px 24px rgba(0,0,0,.16); transform:translateY(-2px); }
.stat-card.is-link:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.stat-card.is-link:active { transform:translateY(0); }
.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; }
.dashboard-quick-menu>header { padding:17px 19px; border-bottom:1px solid #2d4d56; background:#123640; }
.dashboard-quick-menu>header h2 { margin:4px 0 0; font-size:20px; }
.dashboard-quick-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:14px; }
.dashboard-quick-card { min-width:0; min-height:74px; display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid #31535d; border-radius:10px; color:#e7f1f3; background:#0d2f39; font:inherit; font-size:13px; font-weight:850; text-align:left; cursor:pointer; transition:border-color .16s ease,background .16s ease,transform .16s ease; }
.dashboard-quick-card>svg:first-child { width:38px; height:38px; flex:0 0 auto; padding:9px; border-radius:9px; color:var(--accent); background:rgba(49,221,169,.1); }
.dashboard-quick-card>span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-quick-card .quick-menu-arrow { width:17px; height:17px; flex:0 0 auto; margin-left:auto; color:#76969e; }
.dashboard-quick-card:hover { border-color:#4b7a83; background:#15414b; transform:translateY(-1px); }
.dashboard-quick-card:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.dashboard-quick-card.is-current { border-color:rgba(49,221,169,.5); background:#10463d; }

.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, .domain-list a { display: flex; align-items: center; gap: 5px; color: #aac3c8; font-size: 12px; }
.domain-list a { width: fit-content; text-decoration: none; transition: color .16s; }
.domain-list a:hover, .domain-list a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.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; }
.subscription-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px; border-bottom: 1px solid #2b4b54; }
.entitlement-cell { display: flex; min-width: 148px; align-items: center; justify-content: space-between; gap: 10px; }
.entitlement-cell .toggle { margin: 0; }
.entitlement-status { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.trial-expiry-date { color: #ff6671; font-size: 10px; font-weight: 900; line-height: 1.25; white-space: nowrap; }
.subscription-plan-editor { min-width: 0; overflow: hidden; border: 1px solid #31545e; border-radius: 12px; background: #0b2933; }
.subscription-plan-editor > header { padding: 16px 18px 10px; }
.subscription-plan-editor > header h2 { margin: 4px 0; font-size: 18px; }
.subscription-plan-editor > header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.subscription-plan-editor > .form-grid { padding: 0 18px 12px; }
.subscription-plan-editor > .live-payment-quote { margin: 0 18px 18px; }
.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; }

.casino-client-picker { padding: 18px; }
.casino-client-picker .form-field { max-width: 620px; }
.casino-gateway-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); align-items: start; gap: 14px; }
.casino-settings-form > .section-heading { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px; border-bottom: 1px solid #2d4d56; background: #123640; }
.casino-settings-form > .section-heading h2 { margin: 3px 0; font-size: 22px; }
.casino-settings-form > .section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.casino-settings-form > .notice { margin-right: 22px; margin-left: 22px; }
.casino-endpoint-box { display: flex; flex-direction: column; gap: 7px; margin: 0 22px 18px; padding: 14px; border: 1px solid #31535c; border-radius: 9px; background: #061f28; }
.casino-endpoint-box span { color: #74a8a6; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.casino-endpoint-box code { overflow-wrap: anywhere; color: #67e7c3; font-size: 12px; }
.casino-endpoint-box small { color: var(--muted); font-size: 10px; }
.casino-credit-card { padding: 22px; }
.casino-credit-card h2 { margin: 5px 0 20px; font-size: 22px; }
.casino-credit-card > .form-field { margin-bottom: 13px; }
.casino-credit-card > .primary-button { width: 100%; margin-top: 6px; }
.casino-credit-stats { grid-template-columns: 1fr; margin-bottom: 18px; }
.casino-credit-stats .stat-card { min-height: 92px; }
.connection-card > p { margin: 0; padding: 16px 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.support-page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.support-page-actions a { text-decoration: none; }
.support-admin-layout { min-height: 650px; display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 14px; }
.support-inbox { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.support-inbox > header { min-height: 82px; display: grid; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #2d4d56; background: #123640; }
.support-inbox > header > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.support-inbox > header .eyebrow { margin: 0; }
.support-status-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.support-status-tabs button { min-height: 34px; border: 1px solid #3a5b64; border-radius: 7px; color: #91aeb4; background: #0a2a34; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.support-status-tabs button.is-active { border-color: #39d9b1; color: #073128; background: var(--accent); }
.support-conversation-list { min-height: 0; max-height: 680px; overflow-y: auto; }
.support-conversation-list > button { width: 100%; display: grid; gap: 5px; padding: 13px 14px; border: 0; border-bottom: 1px solid #294951; color: #dce9eb; background: transparent; text-align: left; cursor: pointer; }
.support-conversation-list > button:hover { background: #123640; }
.support-conversation-list > button.is-selected { box-shadow: inset 3px 0 var(--accent); background: #15424b; }
.support-conversation-list > button > div { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.support-conversation-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-conversation-list b { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; color: #062920; background: var(--accent); font-size: 10px; }
.support-conversation-list span { color: #66dfc1; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.support-conversation-list p { margin: 0; overflow: hidden; color: #9ab4ba; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.support-conversation-list time { color: #698b93; font-size: 9px; }
.support-list-empty { margin: auto; padding: 35px 18px; color: var(--muted); text-align: center; }
.support-thread { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.support-thread > header { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #2d4d56; background: radial-gradient(circle at 100% 0, rgba(55, 231, 179, .12), transparent 42%), #123640; }
.support-thread > header > div { min-width: 0; }
.support-thread h2 { margin: 4px 0; overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.support-thread > header p { margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.support-thread-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.support-thread-actions button { min-height: 37px; padding-inline: 11px; font-size: 11px; }
.support-kind { padding: 4px 7px; border: 1px solid #3e937c; border-radius: 99px; color: #75e6c8; background: #0c3c34; font-size: 8px; font-weight: 950; letter-spacing: .08em; }
.support-kind.is-registration { border-color: #826d2f; color: #ffe17a; background: #3a321a; }
.support-message-list { min-height: 420px; max-height: 580px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 18px; background: linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px); background-size: 100% 38px; }
.support-message { max-width: 78%; display: grid; gap: 6px; align-self: flex-start; padding: 10px 12px; border: 1px solid #355b64; border-radius: 13px 13px 13px 3px; background: #123943; overflow-wrap: anywhere; }
.support-message.is-agent { align-self: flex-end; border-color: #267e6a; border-radius: 13px 13px 3px 13px; background: #0e5a4b; }
.support-message.is-system { max-width: 100%; align-self: stretch; border-color: #77652c; color: #ffe594; background: #3a321b; }
.support-message > div { font-size: 13px; line-height: 1.55; }
.support-message small { color: #7c9da4; font-size: 9px; }
.support-message.is-agent small { color: #b4e9dd; }
.support-reply-form { display: grid; grid-template-columns: minmax(0, 1fr) 125px; gap: 9px; padding: 13px; border-top: 1px solid #2d4d56; background: #0b2933; }
.support-reply-form textarea { min-height: 62px; resize: vertical; padding: 10px 11px; border: 1px solid #3b6069; border-radius: 9px; outline: 0; color: #fff; background: #061f27; font: inherit; }
.support-reply-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(55, 231, 179, .1); }
.support-registration-note { display: flex; align-items: center; gap: 12px; padding: 14px 17px; border-top: 1px solid #2d4d56; color: #c8d8db; background: #0b2933; }
.support-registration-note > svg { width: 28px; color: var(--accent); }
.support-registration-note strong { display: block; margin-bottom: 3px; }
.support-registration-note p { margin: 0; color: var(--muted); font-size: 11px; }
.support-thread-empty { min-height: 590px; display: grid; place-items: center; align-content: center; padding: 30px; color: var(--muted); text-align: center; }
.support-thread-empty > svg { width: 50px; color: #4d7c77; }
.support-thread-empty h2 { margin: 14px 0 5px; color: #eaf3f4; }
.support-thread-empty p { margin: 0; }

.analytics-actions { display: flex; align-items: flex-end; gap: 8px; }
.analytics-actions label { display: flex; flex-direction: column; gap: 5px; color: #88a5ab; font-size: 11px; font-weight: 850; }
.analytics-actions select { min-width: 145px; height: 42px; padding: 0 34px 0 11px; border: 1px solid #3a626b; border-radius: 8px; outline: 0; color: #e7f1f3; background: #123742; color-scheme: dark; }
.analytics-stat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.analytics-stat-grid .stat-card { min-height: 106px; padding: 15px; }
.analytics-stat-grid .stat-card > svg { width: 39px; height: 39px; padding: 9px; }
.analytics-stat-grid .stat-card strong { font-size: clamp(21px, 2vw, 29px); }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.analytics-breakdown > header, .analytics-table-header { min-height: 62px; display: flex; align-items: center; padding: 14px 17px; border-bottom: 1px solid #2d4d56; background: #123640; }
.analytics-breakdown h2, .analytics-table-header h2 { margin: 0; font-size: 17px; }
.analytics-bars { display: flex; flex-direction: column; gap: 12px; padding: 17px; }
.analytics-bar-row { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(130px, 1.5fr) 60px; align-items: center; gap: 12px; }
.analytics-bar-row > span { overflow: hidden; color: #bfd0d4; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.analytics-bar-row > div { height: 9px; overflow: hidden; border-radius: 20px; background: #09252e; }
.analytics-bar-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1d9d79, var(--accent)); }
.analytics-bar-row > strong { color: #d9f7ee; font-size: 12px; text-align: right; }
.analytics-table-header > div { display: flex; flex-direction: column; gap: 4px; }
.analytics-path { display: block; max-width: 320px; margin-top: 4px; overflow: hidden; color: #76969e; text-overflow: ellipsis; white-space: nowrap; }
.analytics-loader { min-height: 280px; }

.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)); }
  .analytics-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payment-layout { grid-template-columns: 1fr; }
  .crypto-method-editor { grid-template-columns: 1fr; }
  .subscription-plan-grid { grid-template-columns: 1fr; }
  .casino-gateway-layout { grid-template-columns: 1fr; }
  .support-admin-layout { grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr); }
}

@media (max-width: 860px) {
  .support-admin-layout { grid-template-columns: minmax(0, 1fr); }
  .support-conversation-list { max-height: 330px; }
  .support-thread-empty { min-height: 300px; }
}

@media (max-width: 560px) {
  .support-page-actions { width: 100%; }
  .support-page-actions > * { flex: 1 1 0; justify-content: center; padding-inline: 8px; font-size: 10px; }
  .support-admin-layout { min-height: 0; }
  .support-thread > header { align-items: flex-start; flex-direction: column; }
  .support-thread-actions { width: 100%; justify-content: stretch; }
  .support-thread-actions button { flex: 1 1 auto; justify-content: center; }
  .support-message-list { min-height: 360px; max-height: 52vh; padding: 12px; }
  .support-message { max-width: 91%; }
  .support-reply-form { grid-template-columns: minmax(0, 1fr); }
  .support-reply-form button { min-height: 42px; }
}

@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; }
  .analytics-grid { grid-template-columns: 1fr; }
  .dashboard-quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  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; }
  .subscription-plan-grid { padding: 15px; }
  .subscription-plan-editor > .form-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; }
  .admin-topbar .topbar-tool-button { display:none; }
  .admin-embedded-tool { height:calc(100dvh - 68px); padding:0; }
  .admin-embedded-frame { border:0; border-radius:0; box-shadow:none; }
  .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; }
  .casino-settings-form > .section-heading { align-items: flex-start; flex-direction: column; padding: 16px; }
  .casino-settings-form > .notice, .casino-endpoint-box { margin-right: 15px; margin-left: 15px; }
  .casino-credit-card { padding: 16px; }
  .analytics-actions { width: 100%; align-items: stretch; }
  .analytics-actions label, .analytics-actions select { width: 100%; }
  .analytics-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-bar-row { grid-template-columns: minmax(90px, .8fr) minmax(90px, 1fr) 45px; gap: 8px; }
}

@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: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-card { min-height: 84px; gap: 8px; padding: 10px; }
  .stat-card > svg { width: 32px; height: 32px; padding: 7px; }
  .stat-card span { font-size: 10px; line-height: 1.25; }
  .stat-card strong { font-size: 20px; }
  .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; }
  .analytics-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-quick-grid { gap:8px; padding:10px; }
  .dashboard-quick-card { min-height:66px; gap:8px; padding:9px; font-size:11px; }
  .dashboard-quick-card>svg:first-child { width:32px; height:32px; padding:7px; }
}

/* Root-admin first-party analytics. Mirrors the established local analytics layout. */
.admin-analytics-period { display:flex; flex-wrap:wrap; gap:7px; }
.admin-analytics-period button { min-height:38px; padding:0 14px; border:1px solid #36545d; border-radius:20px; color:#b8cbd0; background:#0d2c36; font-size:13px; font-weight:800; cursor:pointer; }
.admin-analytics-period button:hover,.admin-analytics-period button.is-active { color:#06291f; border-color:var(--accent); background:var(--accent); }
.admin-analytics-summary { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; }
.admin-analytics-summary article { min-width:0; display:flex; flex-direction:column; gap:7px; padding:16px; border:1px solid #31505a; border-radius:10px; background:linear-gradient(145deg,#10343e,#0a2832); }
.admin-analytics-summary span { overflow:hidden; color:#8faab1; font-size:12px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.admin-analytics-summary strong { color:#fff; font-size:clamp(21px,2.3vw,31px); }
.admin-analytics-summary__online>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.admin-analytics-summary__online p { min-width:0; margin:0; }
.admin-analytics-summary__online p+p { padding-left:8px; border-left:1px solid #31505a; }
.admin-analytics-summary__online p strong,.admin-analytics-summary__online p small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-analytics-summary__online p strong { font-size:clamp(19px,1.8vw,26px); }
.admin-analytics-summary__online p small { margin-top:3px; color:#91acb3; font-size:10px; font-weight:800; }
.admin-analytics-panel { min-width:0; overflow:hidden; border:1px solid #31505a; border-radius:11px; background:#0b2a34; }
.admin-analytics-panel>header { min-height:66px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 15px; border-bottom:1px solid #2c4a53; background:#10333d; }
.admin-analytics-panel>header h2 { margin:0; color:#fff; font-size:17px; }
.admin-analytics-panel>header p { margin:4px 0 0; color:#9ab1b7; font-size:13px; }
.admin-online-players__live { flex:0 0 auto; padding:7px 11px; border:1px solid rgba(49,221,169,.45); border-radius:18px; color:var(--accent); background:rgba(49,221,169,.08); font-size:12px; }
.admin-online-players__filters { display:grid; grid-template-columns:minmax(0,260px); gap:12px; padding:14px 15px; border-bottom:1px solid #2c4a53; }
.admin-online-players__filters label { min-width:0; display:grid; gap:6px; color:#9ab1b7; font-size:11px; font-weight:800; }
.admin-online-players__filters select { width:100%; height:40px; padding:0 34px 0 11px; border:1px solid #31505a; border-radius:8px; color:#fff; background:#0a2730; font:inherit; font-size:13px; }
.admin-online-players .admin-analytics-table table { min-width:1080px; }
.admin-analytics-chart { height:225px; display:flex; align-items:stretch; gap:6px; overflow-x:auto; padding:20px 15px 9px; background:repeating-linear-gradient(to top,transparent 0 51px,rgba(126,160,168,.09) 52px); scrollbar-width:thin; }
.admin-analytics-chart>div { min-width:24px; flex:1; display:grid; grid-template-rows:19px minmax(0,1fr) 27px; justify-items:center; gap:4px; }
.admin-analytics-chart span { color:#a8bdc2; font-size:9px; }
.admin-analytics-chart i { width:min(18px,75%); min-height:4px; align-self:end; border-radius:5px 5px 1px 1px; background:linear-gradient(#44e9b8,#139975); box-shadow:0 0 11px rgba(49,221,169,.18); }
.admin-analytics-chart time { align-self:center; color:#718e96; font-size:9px; white-space:nowrap; }
.admin-analytics-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr); gap:11px; }
.admin-analytics-table { max-width:100%; overflow:auto; scrollbar-width:thin; }
.admin-analytics-table table { width:100%; border-collapse:collapse; }
.admin-analytics-table th,.admin-analytics-table td { padding:12px 13px; border-bottom:1px solid #294851; color:#d8e5e7; font-size:13px; text-align:left; white-space:nowrap; }
.admin-analytics-table th { color:#91adb3; background:#0d303a; font-size:11px; letter-spacing:.4px; text-transform:uppercase; }
.admin-analytics-table td:first-child { min-width:210px; white-space:normal; }
.admin-analytics-table td strong,.admin-analytics-table td small { display:block; }
.admin-analytics-table td strong { color:#fff; font-size:14px; }
.admin-analytics-table td small { margin-top:4px; color:#8aa6ac; font-size:11px; overflow-wrap:anywhere; }
.admin-analytics-table tbody tr:hover { background:#10333d; }
.admin-interest-list { display:flex; flex-direction:column; gap:13px; padding:15px; }
.admin-interest-list article { display:grid; grid-template-columns:minmax(0,1fr) 45px; gap:6px 9px; }
.admin-interest-list article>div { grid-column:1/3; display:flex; justify-content:space-between; gap:8px; }
.admin-interest-list strong { color:#dce8ea; font-size:13px; }
.admin-interest-list span,.admin-interest-list small { color:#8ea8af; font-size:11px; text-align:right; }
.admin-interest-list article>i,.admin-country-list article>i,.admin-analytics-distributions p>i { height:8px; overflow:hidden; border-radius:5px; background:#1c414a; }
.admin-interest-list article>i>b,.admin-country-list article>i>b,.admin-analytics-distributions p>i>b { height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,var(--accent),#3ca6e5); }
.admin-country-analytics__content { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr); gap:18px; padding:18px; }
.admin-world-map-shell { position:relative; min-width:0; overflow:hidden; border:1px solid #234852; border-radius:13px; background:radial-gradient(circle at 50% 42%,#16434a 0,#0a2731 70%); }
.admin-world-map { width:100%; height:390px; display:block; padding:10px; touch-action:none; user-select:none; }
.admin-world-map.is-zoomed { cursor:grab; }.admin-world-map.is-dragging { cursor:grabbing; }
.admin-world-map-controls { position:absolute; right:12px; bottom:12px; display:flex; overflow:hidden; border:1px solid #3b626b; border-radius:9px; background:rgba(7,31,38,.92); box-shadow:0 7px 20px rgba(0,0,0,.28); }
.admin-world-map-controls button { min-width:38px; height:36px; border:0; border-right:1px solid #31545d; color:#eafff8; background:transparent; font-size:16px; font-weight:800; cursor:pointer; }
.admin-world-map-controls button:nth-child(2) { min-width:52px; color:#56e9bb; font-size:11px; }.admin-world-map-controls button:last-child { border-right:0; }
.admin-world-map-controls button:hover:not(:disabled) { background:#174650; }.admin-world-map-controls button:disabled { color:#537078; cursor:default; }
.admin-world-map path { fill:#537079; stroke:#09242d; stroke-width:.7; vector-effect:non-scaling-stroke; transition:opacity .2s ease,fill .2s ease; }
.admin-world-map path.has-visits { fill:var(--accent); stroke:#a5f7dc; }.admin-world-map path:hover { opacity:1!important; fill:#75efc8; }
.admin-country-list { max-height:390px; display:flex; flex-direction:column; gap:7px; overflow:auto; padding-right:4px; scrollbar-width:thin; }
.admin-country-list article { display:grid; grid-template-columns:28px minmax(105px,1fr) minmax(58px,.75fr) 55px 55px; align-items:center; gap:9px; padding:9px 10px; border:1px solid #294a53; border-radius:9px; background:#10333d; }
.admin-country-list article>.admin-country-flag { justify-self:center; }.admin-country-flag { width:22px; height:15px; flex:0 0 auto; border-radius:2px; object-fit:cover; vertical-align:middle; box-shadow:0 0 0 1px rgba(255,255,255,.16); }.admin-country-flag.is-unknown { height:22px; display:inline-flex; align-items:center; justify-content:center; font-family:"Segoe UI Emoji",sans-serif; font-size:17px; box-shadow:none; }
.admin-location-label { display:inline-flex!important; align-items:center; gap:7px; }
.admin-country-list article>div { min-width:0; }.admin-country-list article>div strong,.admin-country-list article>div small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-country-list article>div strong { color:#eaf5f2; font-size:12px; }.admin-country-list article small { color:#77969d; font-size:9px; }
.admin-country-list article>p { margin:0; text-align:right; }.admin-country-list article>p strong,.admin-country-list article>p small { display:block; }.admin-country-list article>p strong { color:#fff; font-size:12px; }
.admin-world-map-credit { display:block; padding:0 18px 12px; color:#67878f; font-size:9px; text-align:right; }
.admin-analytics-distributions { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:11px; }
.admin-analytics-distributions article>div { display:flex; flex-direction:column; }
.admin-analytics-distributions p { display:grid; grid-template-columns:minmax(85px,1fr) minmax(50px,1fr) auto; align-items:center; gap:10px; margin:0; padding:10px 13px; border-bottom:1px solid #294851; color:#a9bec3; font-size:12px; }
.admin-analytics-distributions p:last-child { border-bottom:0; }.admin-analytics-distributions p strong { color:#fff; }
.admin-analytics-pagination { min-height:48px; display:flex; align-items:center; justify-content:center; gap:10px; padding:7px 12px; border-top:1px solid #294851; background:#0d303a; }
.admin-analytics-pagination button { width:36px; height:34px; padding:0; border:1px solid #3a5c65; border-radius:8px; color:#eafff8; background:#123943; font-size:20px; cursor:pointer; }
.admin-analytics-pagination button:hover:not(:disabled) { color:#06291f; border-color:var(--accent); background:var(--accent); }.admin-analytics-pagination button:disabled { opacity:.35; cursor:default; }
.admin-analytics-pagination>strong { min-width:56px; color:#fff; font-size:13px; text-align:center; }.admin-analytics-pagination>strong span { margin-inline:5px; color:#6f9199; }
.admin-country-list>.admin-analytics-pagination { position:sticky; bottom:0; flex:0 0 auto; margin-top:auto; border:1px solid #31545d; border-radius:9px; box-shadow:0 -8px 18px rgba(5,25,31,.75); }

@media (max-width:1400px) {
  .admin-analytics-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-analytics-grid,.admin-analytics-distributions { grid-template-columns:1fr; }
  .admin-country-analytics__content { grid-template-columns:1fr; gap:12px; padding:12px; }
  .admin-world-map { height:auto; min-height:220px; }
  .admin-country-list { max-height:320px; }
}
@media (max-width:700px) {
  .admin-analytics-page { padding-inline:10px; }
  .admin-analytics-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-online-players__filters { grid-template-columns:1fr; }
  .admin-analytics-panel>header { align-items:flex-start; flex-direction:column; }
  .admin-analytics-table { overflow:visible; padding:10px; }
  .admin-analytics-table table { min-width:0!important; }
  .admin-analytics-table tbody { display:grid; gap:10px; }
  .admin-analytics-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; overflow:hidden; padding:0; }
  .admin-analytics-table td { min-width:0; min-height:54px; display:flex; align-items:flex-start; flex-direction:column; justify-content:center; gap:4px; padding:8px 10px; border:0; border-bottom:1px solid #294851; border-inline-end:1px solid #294851; white-space:normal; overflow-wrap:anywhere; }
  .admin-analytics-table td::before { display:block; color:#78969e; font-size:9px; font-weight:900; letter-spacing:.35px; line-height:1.2; text-transform:uppercase; content:attr(data-label); }
  .admin-analytics-table td:first-child { min-width:0; grid-column:1/-1; padding:10px; border-bottom:1px solid #31515a; }
  .admin-analytics-table td:first-child::before { display:block; }
  .admin-analytics-table td:nth-child(odd) { border-inline-end:0; }
  .admin-analytics-table td:last-child:nth-child(even) { grid-column:1/-1; border-inline-end:0; }
  .admin-analytics-table td strong { max-width:100%; overflow:hidden; text-overflow:ellipsis; }
  .admin-world-map { min-height:190px; }
  .admin-country-list article { grid-template-columns:28px minmax(90px,1fr) 50px 50px; }
  .admin-country-list article>i { display:none; }
}
@media (max-width:420px) {
  .admin-analytics-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .admin-analytics-summary article { min-height:82px; padding:11px; }
  .admin-analytics-summary span { font-size:10px; }
  .admin-analytics-summary strong { font-size:20px; }
  .admin-analytics-period { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .admin-analytics-period button { min-width:0; padding:0 6px; font-size:11px; }
}

/* Root-admin WebSocket access and abuse controls. */
.websocket-access-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.websocket-access-panel { margin-top:2px; }
.websocket-access-panel .admin-analytics-table table { min-width:980px; }
.websocket-access-panel:first-of-type .admin-analytics-table table { min-width:1240px; }
.websocket-live-count { flex:0 0 auto; padding:7px 11px; border:1px solid rgba(49,221,169,.45); border-radius:20px; color:var(--accent); background:rgba(49,221,169,.08); font-size:12px; }
.websocket-ip { display:inline-flex; max-width:100%; padding:5px 7px; border:1px solid #365964; border-radius:6px; color:#dffbf3; background:#071f27; font-size:12px; overflow-wrap:anywhere; white-space:normal; }
.websocket-reason,.websocket-banned-label,.websocket-protected-label { display:inline-flex; align-items:center; min-height:27px; padding:4px 8px; border:1px solid #795d31; border-radius:20px; color:#ffd982; background:#382d18; font-size:10px; font-weight:900; }
.websocket-banned-label { border-color:#82434a; color:#ffabb0; background:#3d2228; }
.websocket-protected-label { border-color:#3a606a; color:#9cb8be; background:#102f38; }
.websocket-row-action { min-height:33px; padding:0 11px; font-size:11px; white-space:nowrap; }
.websocket-attempt-toolbar { flex:0 0 auto; display:flex; align-items:center; gap:10px; }
.websocket-attempt-toolbar>span { color:#9eb7bc; font-size:11px; font-weight:800; white-space:nowrap; }
.websocket-delete-attempts { min-height:36px; padding-inline:12px; font-size:11px; }
.websocket-select-cell { width:52px; min-width:52px!important; text-align:center!important; }
.websocket-attempt-check { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; cursor:pointer; }
.websocket-attempt-check input { width:17px; height:17px; margin:0; accent-color:var(--accent); cursor:pointer; }
.websocket-ban-form { display:grid; grid-template-columns:minmax(230px,.9fr) minmax(190px,.65fr) minmax(230px,1fr) auto; align-items:end; gap:12px; padding:14px; border-bottom:1px solid #294b55; background:linear-gradient(135deg,rgba(49,221,169,.06),rgba(7,31,39,.18)); }
.websocket-ban-form-copy { align-self:center; min-width:0; display:grid; gap:5px; }
.websocket-ban-form-copy strong { color:#fff; font-size:14px; }
.websocket-ban-form-copy small { color:#8eabb2; font-size:11px; line-height:1.45; }
.websocket-ban-field { min-width:0; display:grid; gap:6px; }
.websocket-ban-field span { color:#a8c0c5; font-size:10px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.websocket-ban-field input { width:100%; min-width:0; height:42px; padding:0 12px; border:1px solid #365d68; border-radius:8px; color:#fff; background:#082831; outline:none; }
.websocket-ban-field input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(49,221,169,.1); }
.websocket-ban-submit { min-height:42px; padding-inline:15px; white-space:nowrap; }
.websocket-ban-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:10px; padding:14px; }
.websocket-ban-list article { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px; border:1px solid #31515b; border-radius:10px; background:linear-gradient(145deg,#10343e,#0a2832); }
.websocket-ban-list article>div { min-width:0; display:grid; gap:5px; }
.websocket-ban-list code { color:#fff; font-size:13px; overflow-wrap:anywhere; }
.websocket-ban-list small,.websocket-ban-list time { color:#86a3aa; font-size:10px; overflow-wrap:anywhere; }
.websocket-ban-list button { flex:0 0 auto; min-height:36px; padding-inline:11px; font-size:11px; }

@media (max-width:700px) {
  .websocket-access-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .websocket-access-stats .stat-card:last-child { grid-column:1/-1; }
  .websocket-access-panel .admin-analytics-table table,
  .websocket-access-panel:first-of-type .admin-analytics-table table { min-width:0; }
  .websocket-access-panel .admin-analytics-table td:last-child:nth-child(even) { grid-column:auto; }
  .websocket-access-panel .admin-analytics-table td:last-child { grid-column:1/-1; border-inline-end:0; }
  .websocket-attempt-toolbar { width:100%; justify-content:space-between; }
  .websocket-delete-attempts { margin-inline-start:auto; }
  .websocket-attempt-table td.websocket-select-cell { min-height:38px; grid-column:1/-1; align-items:center; flex-direction:row; justify-content:flex-start; gap:8px; padding:5px 10px; border-inline-end:0; }
  .websocket-attempt-table td.websocket-select-cell::before { margin-inline-end:auto; }
  .websocket-ban-form { grid-template-columns:1fr; align-items:stretch; padding:12px 10px; }
  .websocket-ban-submit { width:100%; justify-content:center; }
  .websocket-ban-list { grid-template-columns:1fr; padding:10px; }
  .websocket-ban-list article { align-items:stretch; flex-direction:column; }
  .websocket-ban-list button { width:100%; justify-content:center; }
}
