/* Flood Maestro workspace */

.server-dashboard { max-width: 1400px; margin-inline: auto; }
.server-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.server-heading h1 { font-size: clamp(22px, 3vw, 30px); margin: 0; letter-spacing: -.04em; }
.server-status-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.server-health { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text-muted); }
.server-health::before { content: ''; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.server-health[data-tone="good"] { color: var(--success); }
.server-health[data-tone="warning"] { color: var(--warning); }
.server-health[data-tone="danger"] { color: var(--danger); }
.server-update { color: var(--text-muted); font-size: 10px; }
.server-notice { padding: 14px 16px; border: 1px solid #775a374d; border-radius: 10px; background: #edc1740a; color: var(--warning); font-size: 12px; margin-bottom: 20px; }
.server-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.server-metric { --meter-color: #7198ff; padding: 22px; border: 1px solid var(--border-color); border-radius: 14px; background: radial-gradient(ellipse at 100% 0%, #547cff10, transparent 70%), var(--bg-card); min-width: 0; }
.server-metric[data-tone="warning"] { --meter-color: var(--warning); }
.server-metric[data-tone="danger"] { --meter-color: var(--danger); }
.server-metric-label { display: flex; align-items: center; gap: 9px; color: #afb9cf; font-size: 12px; }
.server-metric-label .icon { width: 17px; height: 17px; color: #8ca9ff; }
.server-metric-value { display: block; margin: 22px 0 18px; font-size: clamp(22px, 2.7vw, 34px); font-weight: 700; letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.server-meter { height: 5px; overflow: hidden; border-radius: 9px; background: #262d3e; }
.server-meter > span { display: block; width: 0; height: 100%; background: var(--meter-color); border-radius: inherit; transition: width .4s ease, background .4s ease; }
.server-metric > p { margin-top: 13px; font-size: 10px; color: var(--text-muted); line-height: 1.6; }
.server-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.server-panel { min-width: 0; padding: 24px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-card); }
.server-panel h2 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin-bottom: 24px; }
.server-panel h2 .icon { color: #8ca9ff; width: 17px; height: 17px; }
.server-panel-note, .server-footnote { color: var(--text-muted); font-size: 10px; line-height: 1.8; }
.server-panel-note { margin: 14px 0; }
.server-facts { margin: 0; }
.server-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid #272d3a88; font-size: 11px; }
.server-facts > div:last-child { border-bottom: 0; }
.server-facts dt { color: var(--text-muted); flex-shrink: 0; }
.server-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; font-variant-numeric: tabular-nums; }
.server-panel--load h2 { margin-bottom: 12px; }
.server-panel--load .server-panel-note { font-size: 12px; }
.server-panel--load .server-panel-note:last-child { margin-bottom: 0; }
.server-load-reference { font-size: 12px; color: var(--text-muted); }
.server-load-reference strong { color: var(--text-light); font-variant-numeric: tabular-nums; }
.server-load-values > div { font-size: 12px; }
.server-load-values strong { font-size: 20px; font-weight: 700; }
.server-load-comparison { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; }
.server-load-comparison:empty { display: none; }
.server-load-comparison[data-above="true"] { color: var(--warning); }
.server-network-rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 14px; }
.server-network-rates > div { padding: 16px; border: 1px solid #2a34494d; border-radius: 10px; background: #151c2a77; }
.server-network-rates span { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-muted); }
.server-network-rates .icon { width: 14px; height: 14px; color: var(--success); }
.server-network-rates strong { display: block; font-size: clamp(15px, 1.7vw, 23px); margin-top: 12px; font-variant-numeric: tabular-nums; }
.server-panel--system { grid-column: 1 / -1; }
.server-system-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.server-footnote { margin-top: 18px; }
@media (max-width: 1100px) {
    .server-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .server-panels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .server-metrics { gap: 10px; }
    .server-metric { padding: 16px 13px; }
    .server-metric-label { font-size: 10px; gap: 6px; }
    .server-metric-value { margin-block: 18px 14px; }
    .server-panel { padding: 18px; }
    .server-system-facts { grid-template-columns: minmax(0, 1fr); }
    .server-facts > div { gap: 12px; }
    .server-network-rates > div { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .server-meter > span { transition: none; } }

:root {
    --bg-dark: #08090e;
    --bg-card: #111319;
    --bg-hover: #1b2030;
    --neon-cyan: #6d93ff;
    --neon-purple: #416bff;
    --text-light: #edf0f8;
    --text-muted: #969dac;
    --border-color: #272d3a;
    --success: #77dfb0;
    --warning: #edc174;
    --danger: #ff7d92;
    --electric: #315bff;
    --sidebar-width: 244px;
    --scrollbar-track: #0c0e15;
    --scrollbar-thumb: #252f49;
    --scrollbar-thumb-hover: #4c6598;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--bg-card);
    border-bottom: 2px solid var(--neon-cyan);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-cyan);
    text-decoration: none;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.navbar-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

@media (hover: hover) { .navbar-menu a:hover {
    color: var(--neon-cyan);
    background: var(--bg-hover);
    text-shadow: 0 0 8px var(--neon-cyan);
} }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

@media (hover: hover) { .btn-primary:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 20px rgba(177, 14, 255, 0.6);
    transform: translateY(-2px);
} }

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

@media (hover: hover) { .btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--neon-cyan);
} }

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-link {
    background: none;
    border: none;
    color: var(--neon-cyan);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.w-100 {
    width: 100%;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-hover));
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--neon-cyan);
    margin-top: 0.5rem;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.stat-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-box {
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    color: var(--neon-cyan);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

@media (hover: hover) { .table tr:hover {
    background: var(--bg-hover);
} }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

.badge-secondary {
    background: var(--text-muted);
    color: var(--bg-dark);
}

.badge-success {
    background: var(--success);
    color: var(--bg-dark);
}

.badge-warning {
    background: var(--warning);
    color: var(--bg-dark);
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-info {
    background: var(--neon-purple);
    color: white;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-warning {
    background: rgba(255, 166, 0, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-danger {
    background: rgba(255, 0, 85, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* Page Title */
.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
}

/* Section */
.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--neon-cyan);
}

/* Progress Bar */
.progress {
    background: var(--bg-dark);
    border-radius: 4px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    transition: width 0.3s;
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-danger {
    color: var(--danger);
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

.inline {
    display: inline;
}

/* API Key Display */
.api-key-display {
    background: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    display: inline-block;
    margin: 0.5rem 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Error Pages */
.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: 6rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 30px var(--neon-cyan);
}

.error-message {
    font-size: 1.5rem;
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 0.875rem;
    }
}

[hidden] { display: none !important; }
.turbo-progress-bar { height: 2px; background: var(--electric); box-shadow: 0 0 12px #315bff80; }
body.site-is-loading { cursor: progress; }
body.site-is-loading::before { content: ""; position: fixed; inset: 0; z-index: 999; background: #08090e66; cursor: progress; }
body.site-is-loading::after { content: ""; position: fixed; z-index: 1000; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 3px solid #31436e; border-top-color: #83a5ff; border-radius: 50%; box-shadow: 0 0 24px #315bff66; animation: site-loading-spin .75s linear infinite; pointer-events: none; }
button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
button.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; color: #dce6ff; animation: site-loading-spin .75s linear infinite; }
@keyframes site-loading-spin { to { transform: rotate(360deg); } }
html { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }
@supports selector(::-webkit-scrollbar) {
    * { scrollbar-width: auto; scrollbar-color: auto; }
    *::-webkit-scrollbar { width: 8px; height: 8px; }
    *::-webkit-scrollbar-track { background: var(--scrollbar-track); border-radius: 999px; }
    *::-webkit-scrollbar-thumb { min-height: 36px; min-width: 36px; background: var(--scrollbar-thumb); border: 2px solid var(--scrollbar-track); border-radius: 999px; background-clip: padding-box; }
    *::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover); }
    *::-webkit-scrollbar-thumb:active { background-color: #718bc7; }
    *::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
    *::-webkit-scrollbar-corner { background: var(--scrollbar-track); }
}
@media (forced-colors: active) {
    * { scrollbar-width: auto; scrollbar-color: auto; }
    *::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: Canvas; }
    *::-webkit-scrollbar-thumb { background: ButtonText; border-color: Canvas; }
}
body { background-image: linear-gradient(120deg, #08090e 65%, #0d1427); font-size: 16px; }
* { letter-spacing: 0; }
a { color: var(--neon-cyan); text-underline-offset: 4px; }
a[href], button:not(:disabled), summary, [role="button"], select, input[type="checkbox"], input[type="radio"], label[for] { cursor: pointer; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid #86a5ff; outline-offset: 4px; }
::selection { background: #315bff; color: #fff; }
h1, h2, h3, p, code, a, button { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.3; }
h1 { font-family: 'Unbounded', sans-serif; font-size: 28px; font-weight: 600; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 18px; }
img { max-width: 100%; }
code, pre { font-family: 'Cascadia Code', 'Consolas', monospace; font-size: 14px; }
code { color: #b7c8ff; }
pre { max-width: 100%; overflow-x: auto; padding: 20px; background: #0a0d15; border: 1px solid var(--border-color); border-radius: 6px; line-height: 1.8; margin: 16px 0; }
pre code { white-space: pre; overflow-wrap: normal; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; stroke-width: 1.75; vertical-align: middle; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #edf0ff; text-decoration: none; }
.brand > span { font-family: 'Unbounded', sans-serif; font-size: 14px; line-height: 1.5; font-weight: 700; }
.brand > span > span { display: block; color: #a2b9ff; font-size: 11px; }
.brand img { flex-shrink: 0; filter: drop-shadow(0 0 12px #315bff55); }
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 30px 18px 20px; background: #0c0e15; border-right: 1px solid #242a3a; overflow-y: auto; }
.sidebar .brand { margin: 0 12px 36px; }
.nav-label, .eyebrow { font-size: 12px; font-weight: 800; color: #929cae; text-transform: uppercase; }
.nav-label { padding: 0 15px; margin: 0 0 12px; }
.side-nav { display: grid; gap: 5px; margin-bottom: 30px; }
.nav-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid transparent; border-radius: 6px; color: #9ba3b5; background: transparent; text-decoration: none; font-weight: 600; text-align: left; transition: background .18s, color .18s, border-color .18s; }
@media (hover: hover) { .nav-link:hover { background: #161c2b; color: #fff; } }
.nav-link.active { color: #dce6ff; background: linear-gradient(95deg, #1a3080a6, #17203980); border-color: #344a8b; box-shadow: inset 3px 0 #507aff; }
.nav-link.active .icon { color: #91b2ff; }
.nav-indicator { margin-left: auto; width: 5px; height: 5px; background: #87a9ff; border-radius: 50%; box-shadow: 0 0 10px #507aff; }
.nav-unread-dot { flex: 0 0 7px; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #ff8295; box-shadow: 0 0 8px #ff829566; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; border-top: 1px solid #242a3a; }
.brand-caption { display: block; font-size: 9px; color: #667085; margin: 0 14px 12px; }
@media (hover: hover) { .logout-link:hover { color: #ff9aac; } }
.workspace-main { margin-left: var(--sidebar-width); min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 78px; flex: 0 0 78px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 36px; border-bottom: 1px solid #242a3a; background: #0b0d14e8; backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 30; }
.topbar-title { display: flex; align-items: center; gap: 12px; color: #a6adbd; font-size: 14px; min-width: 0; }
.header-divider { width: 3px; height: 18px; background: #507aff; box-shadow: 0 0 14px #315bff99; }
.topbar-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.language-switch { display: flex; align-items: center; gap: 3px; }
.language-switch > .icon { margin-right: 7px; color: #7b859b; width: 16px; }
.language-switch button { padding: 7px 9px; border: 1px solid transparent; background: transparent; border-radius: 4px; color: #818b9e; font-size: 13px; font-weight: 800; }
@media (hover: hover) { .language-switch button:hover:not(:disabled) { color: #fff; background: #1b2441; } }
.language-switch button[aria-pressed="true"] { background: #1a2548; border-color: #354979; color: #ccdbff; opacity: 1; cursor: default; }
.account-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-width: 36px; border: 1px solid var(--border-color); border-radius: 6px; background: #121722; color: #a6b9ea; text-decoration: none; transition: border-color .18s, background .18s; }
@media (hover: hover) { .account-button:hover, .icon-button:hover { border-color: #5377e2; background: #1a2a52; color: #fff; } }
.mobile-menu { display: none; }
.sidebar-backdrop { display: none; }
.page-content { width: 100%; max-width: 1440px; min-width: 0; margin: 0 auto; padding: 38px 36px 24px; flex: 1; animation: reveal .35s ease-out; }
.page-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.heading-symbol { width: 48px; height: 48px; min-width: 48px; display: grid; place-items: center; border: 1px solid #3a529b; border-radius: 8px; color: #97b2ff; background: linear-gradient(135deg, #203974, #101724); box-shadow: 0 0 22px #315bff15; }
.heading-symbol .icon { width: 23px; height: 23px; }
.page-heading .eyebrow { margin-bottom: 5px; }
.page-heading h1 { font-size: 25px; }
.page-title { font-family: 'Unbounded', sans-serif; font-size: 25px; color: var(--text-light); text-shadow: none; margin-bottom: 32px; }
.section { margin: 32px 0; }
.api-page { max-width: 980px; margin: 0 auto; }
.api-page > .api-key-section, .api-reference { border: 1px solid #252f43; border-radius: 12px; background: linear-gradient(145deg, #111827, #0d1018 72%); box-shadow: 0 18px 45px #00000018; }
.api-page > .api-key-section { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 0; padding: 24px 28px; }
.api-page > .api-key-section h2 { flex: 0 0 auto; margin: 0; font-size: 24px; }
.api-page > .api-key-section .api-key-box { min-width: 0; }
.api-reference { display: grid; gap: 12px; padding: 28px 32px 32px; }
.section.api-reference h2 { margin: 0; font-size: 21px; }
.api-reference h3 { margin: 20px 0 2px; color: #dbe5fa; font-size: 16px; }
.api-method, .api-response-status { display: inline-block; width: fit-content; padding: 4px 9px; border: 1px solid #38558c; border-radius: 6px; background: #1a2948; color: #b4c8ff; font-size: 12px; font-weight: 700; }
.api-method--post { border-color: #32675d; background: #153831; color: #8ee3c8; }
.api-operation { min-width: 0; border: 1px solid #2c3750; border-radius: 9px; background: linear-gradient(135deg, #131b2b, #0e131f); overflow: hidden; }
.api-operation[open] { border-color: #415a9d; }
.api-operation summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; padding: 17px 20px; cursor: pointer; color: var(--text-light); overflow-wrap: anywhere; }
.api-operation summary:hover { background: #1b284050; }
.api-operation summary:focus-visible { outline: 2px solid #648aff; outline-offset: -3px; }
.api-operation summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid #91a9db; border-bottom: 2px solid #91a9db; transform: rotate(45deg); transition: transform .18s; }
.api-operation[open] summary::after { transform: rotate(225deg); }
.api-endpoint { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.api-endpoint code { min-width: 0; color: #b4c8ff; }
.api-operation-name { color: #d6dff2; font-size: 14px; }
.api-operation-body { display: grid; gap: 12px; padding: 20px; border-top: 1px solid #293449; color: #9baac4; line-height: 1.6; }
.api-operation-body p { margin: 0; }
.api-operation-body h4 { margin: 8px 0 0; color: #edf2ff; font-size: 14px; }
.api-operation pre { min-width: 0; margin: 0; padding: 14px 16px; overflow: auto; border: 1px solid #293449; border-radius: 8px; background: #0c1221; color: #dbe5fa; line-height: 1.5; }
.api-params { margin: 0; border: 1px solid #293449; border-radius: 8px; overflow: hidden; }
.api-params > div { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 12px; padding: 9px 14px; }
.api-params > div + div { border-top: 1px solid #293449; }
.api-params dt, .api-params dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.api-params dt { color: #b4c8ff; }
.api-required { margin-left: 3px; color: #fb7487; font-size: 15px; font-weight: 700; line-height: 1; }
.api-operation-errors { display: grid; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px solid #293449; }
.api-operation-errors h4 { margin: 0; }
.api-error-row, .api-success-row { display: grid; min-width: 0; gap: 8px; }
.api-response-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.api-response-heading .api-response-status { flex: none; }
.api-response-heading strong { color: #d6dff2; font-size: 13px; }
.api-response-status { border-color: #704755; background: #3a202b; color: #f8acbc; text-align: center; }
.api-response-status--success { border-color: #32675d; background: #153831; color: #8ee3c8; }
.section h2 { font-size: 21px; color: #edf0f8; margin-bottom: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: #9fb8ff; font-size: 14px; text-decoration: none; }
@media (hover: hover) { .text-link:hover { color: #fff; } }
.text-link .icon { width: 15px; height: 15px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.stats-grid.stats-grid--overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 0; border: 1px solid #2a3141; border-radius: 10px; background: linear-gradient(120deg, #151c2c, #10131c); overflow: hidden; }
.stat-group { margin-bottom: 30px; }
.stat-group > h2 { margin-bottom: 15px; font-size: 18px; color: #c5d2ef; }
.stat-group .stats-grid { margin-bottom: 0; }
.stats-grid--people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid--orders, .stats-grid--balances { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats-grid--billing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { position: relative; min-width: 0; padding: 23px 20px; text-align: center; background: linear-gradient(135deg, #161b28, #101219); border: 1px solid #2a3141; border-radius: 8px; box-shadow: none; overflow: hidden; }
.stats-grid--overview .stat-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 0; border-radius: 0; background: transparent; text-align: left; }
.stats-grid--overview .stat-card + .stat-card { border-left: 1px solid #2a3141; }
.stat-label { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 24px; color: #a8b1c3; text-transform: none; font-size: 13px; letter-spacing: 0; }
.stat-label .icon { width: 15px; height: 15px; color: #8faaff; }
.stat-value { font-family: 'Unbounded', sans-serif; color: #edf2ff; font-size: 27px; font-weight: 500; font-variant-numeric: tabular-nums; text-shadow: none; margin-top: 16px; min-height: 38px; line-height: 1.3; white-space: nowrap; overflow-wrap: normal; }
.stat-value.stat-value-wrap { white-space: normal; overflow-wrap: anywhere; }
.stat-value.stat-value-unavailable { font-family: 'Manrope', sans-serif; font-size: 16px; color: #edf2ff; }
.stats-grid--overview .stat-label { justify-content: flex-start; flex-wrap: wrap; min-width: 0; font-size: 14px; line-height: 1.6; }
.stats-grid--overview .stat-label .icon { width: 19px; height: 19px; }
.stats-grid--overview .stat-value { flex: 0 1 auto; max-width: 60%; min-width: 0; min-height: 0; margin-top: 0; font-size: 24px; text-align: right; }
.stat-detail { line-height: 1.8; margin-top: 12px; font-size: 12px; }
.admin-dashboard > .stat-group { margin-bottom: 20px; }
.admin-dashboard > .stat-group > h2 { margin-bottom: 10px; font-size: 15px; }
.admin-dashboard > .stat-group .stats-grid { gap: 10px; }
.admin-dashboard > .stat-group .stat-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; align-items: center; justify-items: center; gap: 8px; padding: 15px 16px; text-align: center; }
.admin-dashboard > .stat-group .stat-label { min-width: 0; justify-content: center; flex-wrap: nowrap; gap: 8px; font-size: 12px; line-height: 1.5; }
.admin-dashboard > .stat-group .stat-label .icon { flex-shrink: 0; width: 14px; height: 14px; }
.admin-dashboard > .stat-group .stat-value { min-width: 0; min-height: 0; width: 100%; margin-top: 0; font-size: 22px; line-height: 1.35; text-align: center; }
.admin-dashboard > .stat-group .stat-value-unavailable { font-size: 12px; white-space: normal; }
.admin-dashboard > .stat-group .stat-detail { display: flex; justify-content: center; align-items: center; align-self: center; flex-wrap: wrap; grid-column: 1 / -1; gap: 7px 10px; min-width: 0; max-width: 100%; margin-top: 0; color: #8e9fbc; font-size: 11px; line-height: 1.6; }
.admin-dashboard > .stat-group .stat-detail--breakdown > span { min-width: 0; padding: 5px 12px; border: 1px solid #35466266; border-radius: 6px; background: #1c2b444d; color: #9eb1d0; overflow-wrap: anywhere; }
.admin-dashboard > .stat-group .stat-detail--breakdown > .stat-breakdown-pair { display: inline-grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 10px; min-width: min(164px, 100%); max-width: 100%; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.stat-breakdown-part { min-width: 0; }
.stat-breakdown-separator { color: #627695; }
@media (max-width: 640px) {
    .admin-dashboard > .stat-group .stat-card { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 12px; }
    .admin-dashboard > .stat-group .stat-label { font-size: 11px; gap: 6px; }
    .admin-dashboard > .stat-group .stat-value { font-size: 20px; text-align: center; }
    .admin-dashboard > .stat-group .stat-value-unavailable { font-size: 12px; }
    .admin-dashboard > .stat-group .stat-detail { gap: 2px 10px; font-size: 10px; }
}
.daily-stats { min-width: 0; overflow: hidden; border: 1px solid #2a354b; border-radius: 16px; background: #0f1420; }
.daily-stats-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 23px 24px; background: linear-gradient(110deg, #19243a66, transparent 75%); }
.daily-stats-heading-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.daily-stats-symbol { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid #44609b55; border-radius: 12px; background: #263e702e; color: #a1bbff; }
.daily-stats-symbol .icon { width: 21px; height: 21px; }
.daily-stats-heading h2 { margin: 0; color: #e1e9fa; font-size: 18px; font-weight: 700; line-height: 1.45; }
.daily-stats-heading p { margin: 5px 0 0; color: #8e9db7; font-size: 12px; line-height: 1.6; }
.daily-stats-period { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 7px 11px; border: 1px solid #34415c; border-radius: 8px; color: #aebedb; background: #172033; font-size: 12px; white-space: nowrap; }
.daily-stats-period .icon { width: 14px; height: 14px; }
.daily-stats .daily-stats-scroll { border-top: 1px solid #263147; border-bottom: 0; scrollbar-width: thin; scrollbar-color: #425375 #101622; }
.daily-stats-scroll:focus-visible { outline: 2px solid #709bff; outline-offset: -2px; }
.daily-stats .daily-stats-table { min-width: 1080px; font-variant-numeric: tabular-nums; }
.daily-stats-table thead th { padding: 14px 14px; color: #8597b8; background: #141c2b; text-align: center; vertical-align: middle; text-transform: none; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: normal; }
.daily-stats-table tbody td { padding: 14px; border-bottom-color: #232d403d; background: #0f1521; color: #cfdbef; text-align: center; vertical-align: middle; }
.daily-stats-table tbody tr:nth-child(even) td { background: #111824; }
@media (hover: hover) { .daily-stats-table tbody tr:hover td { background: #192337; } }
.daily-stats-table .daily-date-cell { position: sticky; left: 0; z-index: 1; width: 86px; text-align: center; box-shadow: 8px 0 14px -12px #000c; }
.daily-stats-table thead .daily-date-cell { z-index: 2; }
.daily-date { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: 7px 9px; border: 1px solid #34435e; border-radius: 8px; background: #192335; color: #bdcce8; font-size: 12px; font-weight: 700; }
.daily-stats-row--latest .daily-date { border-color: #5076c2; background: #263c67; color: #d4e1ff; box-shadow: 0 0 15px #4771e012; }
.daily-stats-table .daily-count-cell { min-width: 164px; text-align: center; }
.daily-main-value { color: #e5edfc; font-size: 19px; font-weight: 700; line-height: 1.3; }
.daily-source-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; width: max-content; min-width: 136px; margin: 7px auto 0; font-size: 10px; line-height: 1.5; }
.daily-source-counts > .daily-source { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 3px 7px; border: 1px solid #5473b026; border-radius: 5px; color: #97abd0; background: #2133554d; white-space: nowrap; }
.daily-source strong { color: #c1d4f6; font-size: 11px; font-weight: 600; }
.daily-source-counts > .daily-source--site { border-color: #4d92802b; color: #8eb8ad; background: #1f3b354d; }
.daily-source--site strong { color: #b2d8cc; }
.daily-source-counts--unavailable { grid-template-columns: 1fr; }
.daily-source-counts--unavailable .daily-source strong { color: #9aa6bb; font-size: 10px; font-weight: 500; }
.daily-channel-value { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; padding: 4px 7px; border-radius: 6px; background: #23334d66; color: #c5d7f5; font-size: 13px; font-weight: 600; }
.daily-topups { font-weight: 600; }
.daily-stats-table .daily-money { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.daily-stats-table .daily-profit--positive { color: #88d8b8; }
.daily-stats-table .daily-profit--negative { color: #f09dac; }
.daily-stats-table .daily-value--zero { color: #7788a5; font-weight: 500; }
.daily-channel-value.daily-value--zero { background: transparent; }
.daily-stats-table .daily-stats-empty { padding: 42px 24px; text-align: center; white-space: normal; }
.daily-stats-empty > .icon { display: block; width: 28px; height: 28px; margin: 0 auto 13px; color: #7994c8; }
.daily-stats-empty > strong { display: block; color: #c6d4ec; font-size: 14px; font-weight: 600; }
.daily-stats-empty > span { display: block; margin-top: 6px; color: #8e9db7; font-size: 12px; }
@media (max-width: 640px) {
    .daily-stats-heading { gap: 12px; padding: 18px 16px; }
    .daily-stats-heading-main { gap: 10px; }
    .daily-stats-symbol { flex-basis: 36px; height: 36px; border-radius: 10px; }
    .daily-stats-heading h2 { font-size: 15px; }
    .daily-stats-heading p { font-size: 11px; }
    .daily-stats-period { margin-left: 46px; padding: 5px 9px; font-size: 11px; }
}
.table-responsive { width: 100%; min-width: 0; overflow-x: auto; border-block: 1px solid #2b3244; }
.table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.table th, .table td { padding: 17px 14px; border-bottom: 1px solid #212735; white-space: nowrap; vertical-align: middle; }
.table th { background: #111622; color: #909bb1; font-size: 12px; letter-spacing: 0; text-transform: uppercase; font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
@media (hover: hover) { .table tr:hover { background: #131a2b; } }
.table td:first-child code { color: #8d9ab9; }
.text-truncate { display: block; width: 170px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-label { display: inline-flex; align-items: center; gap: 8px; }
.type-label .icon { color: #89a7ff; width: 15px; height: 15px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid transparent; border-radius: 4px; line-height: 1.4; font-size: 12px; font-weight: 600; text-transform: none; white-space: nowrap; }
.badge-primary, .badge-info { background: #21366a66; color: #a0bbff; border-color: #334a7c; }
.badge-secondary { background: #252a3566; color: #9ea8be; border-color: #343b4c; }
.badge-success { background: #174a3433; color: var(--success); border-color: #285940; }
.badge-warning { background: #51412133; color: var(--warning); border-color: #66522d; }
.badge-danger { background: #5c243133; color: var(--danger); border-color: #683442; }
.status-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.progress-cell { display: flex; gap: 9px; align-items: center; min-width: 110px; font-size: 12px; color: #929db7; }
.progress { height: 4px; width: 76px; min-width: 76px; background: #252f49; border-radius: 2px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #315bff, #80aeff); border-radius: inherit; }
.orders-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #2b354b; }
.orders-heading > .btn { flex: 0 0 auto; margin-left: auto; }
.orders-update-note, .orders-count { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; color: #9caac4; font-size: 14px; line-height: 1.7; }
.orders-update-note { flex: 1 1 220px; min-width: 0; }
.orders-update-note p { margin: 0; }
.orders-update-note .orders-refresh-error { color: #f2a4b2; }
.orders-count { align-items: center; margin-bottom: 16px; }
.pagination--inline { margin-left: auto; min-width: 0; max-width: 100%; }
.pagination--inline .pagination { justify-content: flex-end; margin-top: 0; gap: 4px; }
.pagination--inline .pagination a, .pagination--inline .pagination span { min-width: 32px; min-height: 32px; padding: 5px 8px; }
.pagination--inline .icon { width: 15px; height: 15px; }
.orders-page.is-loading .pagination { pointer-events: none; opacity: .55; }
.orders-page.is-loading .orders-grid { position: relative; }
.orders-page.is-loading .orders-grid::before { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: 12px; background: #08090e66; }
.orders-page.is-loading .orders-grid::after { content: ""; position: absolute; z-index: 2; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 3px solid #31436e; border-top-color: #83a5ff; border-radius: 50%; box-shadow: 0 0 24px #315bff66; animation: site-loading-spin .75s linear infinite; }
@media (max-width: 1100px) {
    .orders-count { gap: 12px; }
}
.orders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: stretch; }
.order-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid #303d5b; border-radius: 12px; background: linear-gradient(145deg, #151e32, #0e121c); }
.order-card-heading { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 24px; }
.order-card-icon { display: flex; flex: 0 0 auto; color: #a9c0ff; }
.order-card-heading h2 { margin: 0; font-size: 18px; line-height: 1.5; min-width: 0; }
.order-card-heading code { color: inherit; font-size: inherit; }
.order-card-details { display: grid; gap: 16px; margin: 0 0 24px; font-size: 15px; line-height: 1.7; }
.order-card-details > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.order-card-details dt { color: #9caac4; }
.order-card-details dd { margin: 0 0 0 auto; text-align: right; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.order-card-details dd code { color: #e1e8f5; font-size: inherit; }
.order-card-progress { margin-top: auto; padding-top: 18px; border-top: 1px solid #2b354b; }
.order-card-progress-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #aab7cf; font-size: 14px; }
.order-card-progress-label strong { color: #edf2ff; font-variant-numeric: tabular-nums; }
.order-card-progress-track { height: 7px; overflow: hidden; border-radius: 4px; background: #252f49; }
.order-card-progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #315bff, #80aeff); }
.actions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.action-card { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; gap: 12px; padding: 24px 20px; min-height: 144px; min-width: 0; border: 1px solid #2b344a; border-radius: 8px; background: #101623 linear-gradient(145deg, #ffffff04, #00000010); color: #d9e3ff; text-align: center; text-decoration: none; transition: background-color .5s ease, border-color .5s ease, color .5s ease; }
.action-card:not(:disabled):focus-visible { border-color: #537dff; background-color: #16254e; color: #edf2ff; transition-duration: .18s; }
@media (hover: hover) { .action-card:not(:disabled):hover { border-color: #537dff; background-color: #16254e; color: #edf2ff; transition-duration: .18s; } }
.action-card:disabled { cursor: not-allowed; }
.action-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; color: #8aaaff; }
.action-icon .icon { width: 40px; height: 40px; }
.action-title { min-width: 0; max-width: 100%; font-size: 16px; font-weight: 700; line-height: 1.5; }
.action-arrow { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; color: #7e8fb5; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease, color .5s ease; }
.btn:focus-visible { transition-duration: .18s; }
@media (hover: hover) { .btn:hover { transition-duration: .18s; } }
.btn-primary { color: #fff; background: #315bff linear-gradient(180deg, #ffffff14, #00000012); border-color: #6384ff; box-shadow: 0 3px 20px #244dff30, inset 0 1px #ffffff20; }
.btn-primary:focus-visible { color: #fff; background: #416bff linear-gradient(180deg, #ffffff14, #00000012); box-shadow: 0 0 24px #315bff50, inset 0 1px #ffffff20; transform: none; }
@media (hover: hover) { .btn-primary:hover { color: #fff; background: #416bff linear-gradient(180deg, #ffffff14, #00000012); box-shadow: 0 0 24px #315bff50, inset 0 1px #ffffff20; transform: none; } }
.btn-primary.btn-accent:focus-visible { color: #fff; background-color: #294edb; border-color: #536fdb; box-shadow: 0 2px 12px #142c7a30, inset 0 1px #ffffff14; }
@media (hover: hover) { .btn-primary.btn-accent:hover { color: #fff; background-color: #294edb; border-color: #536fdb; box-shadow: 0 2px 12px #142c7a30, inset 0 1px #ffffff14; } }
.btn-secondary { color: #c5d4ff; background: #141c30; border-color: #3a496a; }
@media (hover: hover) { .btn-secondary:hover { background: #1e2b4a; border-color: #6384d3; } }
.btn-danger { background: #3d202b; color: #ffa6b6; border-color: #6c3446; }
@media (hover: hover) { .btn-danger:hover { background: #612b3c; } }
.btn-sm { min-height: 36px; padding: 5px 10px; font-size: 13px; }
.btn-link { color: #91adff; background: transparent; box-shadow: none; }
.form-control { min-width: 0; background: #0c101b; color: #edf2ff; border-color: #303d5b; border-radius: 6px; padding: 13px 14px; font-size: 16px; }
.form-control::placeholder { color: #66728c; }
.form-control:focus { border-color: #6c90ff; box-shadow: 0 0 0 3px #315bff20; }
.form-group { margin-bottom: 20px; }
.form-group label { margin-bottom: 10px; font-size: 14px; color: #b9c7e8; }
textarea.form-control { resize: vertical; min-height: 120px; }
.input-with-icon { position: relative; }
.input-with-icon > .icon { position: absolute; left: 14px; top: 18px; width: 17px; height: 17px; color: #6f85b5; pointer-events: none; }
.input-with-icon .form-control { padding-left: 42px; }
.form-inline, .search-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.form-inline .form-control, .search-form .form-control { flex: 1 1 240px; }
.alert { display: flex; align-items: flex-start; gap: 10px; border: 1px solid; padding: 15px 17px; border-radius: 6px; font-size: 14px; line-height: 1.7; }
.alert .icon { margin-top: 1px; width: 17px; height: 17px; }
.servers-load-alert { align-items: center; }
.servers-load-alert .icon { margin-top: 0; flex-shrink: 0; }
.alert-message { min-width: 0; overflow-wrap: anywhere; }
.alert-info { background: #1d32532b; color: #a6b9e2; border-color: #31415f; }
.alert-warning { background: #56421d25; color: #dfc393; border-color: #59492f; }
.alert-danger { background: #51212b40; color: #ffb2c0; border-color: #673543; }
.alert-success { background: #163d2c33; color: #9be0bd; border-color: #2c5943; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 230px; padding: 35px 20px; border-block: 1px solid #252d40; color: #d3dcef; }
.empty-state p { color: #8c98b0; font-size: 14px; }
.empty-symbol { color: #6887d7; padding: 16px; margin-bottom: 3px; }
.empty-symbol .icon { width: 35px; height: 35px; }
.balance-card { padding: 20px 24px; border: 1px solid #344a83; border-radius: 12px; background: linear-gradient(120deg, #182b654d, #10131c 72%); box-shadow: 0 18px 45px #00000018; }
.balance-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.balance-label { display: flex; align-items: center; gap: 10px; min-width: 0; color: #9baed9; font-size: 14px; }
.balance-label .icon { flex: 0 0 19px; width: 19px; height: 19px; }
.balance-value { flex: 0 1 auto; min-width: 0; max-width: 60%; font-family: 'Unbounded', sans-serif; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; color: #e2eaff; line-height: 1.3; text-align: right; overflow-wrap: anywhere; }
.balance-page { max-width: 980px; margin: 0 auto; }
.balance-section, .profile-card, .profile-page > .section, .faq-list { border: 1px solid #252f43; border-radius: 12px; background: linear-gradient(145deg, #111827, #0d1018 72%); box-shadow: 0 18px 45px #00000018; }
.balance-section { margin-top: 24px; padding: 28px 32px 32px; }
.balance-section h2 { margin-bottom: 20px; }
.balance-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; padding: 24px 24px 0; border-top: 1px solid #29334d; }
.detail-item { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.detail-item span:first-child { color: #909db8; }
.method-card { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 22px 0; border-bottom: 1px solid #273149; }
.method-icon { color: #82a5ff; }
.method-icon .icon { width: 30px; height: 30px; }
.method-name { font-weight: 700; }
.method-description { color: #8f9bb3; font-size: 14px; margin-top: 5px; }
.method-card .btn { margin-left: auto; }
.payment-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 32px; }
.payment-notes { order: 2; display: grid; gap: 18px; min-width: 0; padding-left: 28px; border-left: 1px solid #253047; }
.payment-notes h2 { margin: 0; }
.payment-guide { margin: 0; color: #aab7cf; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.payment-guide p { margin: 0; padding: 12px 0; border-bottom: 1px solid #253047; }
.payment-guide p:first-child { padding-top: 0; }
.payment-guide p:last-child { padding-bottom: 0; border-bottom: 0; }
.payment-warning { display: flex; align-items: center; gap: 10px; padding: 16px; margin: 0; border: 1px solid #665331; border-radius: 8px; background: #56421d20; color: #dac795; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.payment-warning > .icon { flex: 0 0 20px; width: 20px; height: 20px; }
.payment-warning p { margin: 0; min-width: 0; }
.payment-warning strong { color: #f3dd9b; }
.payment-flow { order: 1; min-width: 0; }
.payment-flow > .alert { margin: 0 0 22px; }
.payment-flow > .alert-error { border-color: #673543; background: #51212b40; color: #ffb2c0; }
.payment-form { display: grid; gap: 26px; }
.payment-amount { width: 100%; margin: 0; }
.payment-amount label { font-size: 16px; }
.payment-amount input { width: 100%; min-width: 0; min-height: 62px; margin: 10px 0; padding: 18px; background: #0c1221; border: 1px solid #344572; border-radius: 6px; color: inherit; font: inherit; font-size: 18px; }
.payment-amount small { font-size: 14px; }
.payment-amount input:focus { outline: none; border-color: #82a5ff; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; border: 0; padding: 0; margin: 0; }
.payment-methods legend { margin-bottom: 14px; font-size: 16px; color: #aab7cf; }
.payment-option { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 52px; padding: 10px; border: 1px solid #2e3b59; border-radius: 8px; background: #0c1221; cursor: pointer; font-size: 14px; text-align: center; transition: background .18s, border-color .18s; }
@media (hover: hover) { .payment-option:hover { border-color: #5573b7; background: #121e36; } }
.payment-option:has(input:checked) { border-color: #82a5ff; background: #1c3161; }
.payment-option:has(input:focus-visible) { border-color: #82a5ff; background: #1c3161; }
.payment-option input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.payment-provider-logo { display: block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.payment-form > .btn { min-height: 58px; font-size: 16px; }
.payment-invoice { max-width: 520px; padding: 20px; border: 1px solid #344572; border-radius: 10px; background: #0c1220a8; }
.payment-invoice-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; justify-content: space-between; font-size: 16px; }
.payment-invoice-summary strong { font-size: 20px; line-height: 1.3; }
.payment-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.payment-actions > .btn, .payment-actions > .inline { flex: 1 1 130px; min-width: 0; margin: 0; }
.payment-actions > .inline { display: flex; }
.payment-actions > .inline .btn { width: 100%; }
.payment-status { display: flex; flex-basis: 100%; align-items: center; justify-content: center; gap: 6px; max-width: 100%; min-width: 0; margin: 6px 0 0; color: #b4c1dc; font-size: 14px; line-height: 1.5; text-align: center; }
.payment-status .icon { width: 16px; height: 16px; flex: 0 0 16px; }
.payment-status--paid { color: #65d39b; }
.field-error { max-width: 100%; margin: 8px 0 0; color: #f2a4b2; font-size: 14px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.form-inline > .field-error, .search-form > .field-error { flex: 0 0 100%; order: 1; }
:is(input, textarea, select)[aria-invalid="true"], :is(input, textarea, select)[aria-invalid="true"]:focus { border-color: #ef91a3; box-shadow: none; }
.payment-option:has(input[aria-invalid="true"]) { border-color: #ef91a3; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pricing-card { --pricing-accent: #8aaaff; min-width: 0; padding: 24px; border: 1px solid #2c3852; border-top: 3px solid var(--pricing-accent); border-radius: 8px; background: linear-gradient(135deg, #161e32, #0d121e); }
.pricing-card h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 17px; line-height: 1.5; color: #e1e8f5; }
.pricing-card h3 .icon { flex: 0 0 28px; width: 28px; height: 28px; color: var(--pricing-accent); }
.pricing-rate { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.price { font-family: 'Unbounded', sans-serif; font-size: 30px; line-height: 1.3; font-variant-numeric: tabular-nums; color: #edf2ff; }
.price-label { color: #9caac0; font-size: 14px; }
.pricing-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid #2a3547; font-size: 14px; line-height: 1.5; }
.pricing-features li { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pricing-features li:last-child { align-items: flex-end; text-align: right; }
.pricing-features span { color: #9caac0; }
.pricing-features strong { color: #e1e8f5; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dashboard .pricing-card { padding: 20px; border-top-width: 2px; }
.dashboard .pricing-card h3 { margin-bottom: 12px; }
.dashboard .pricing-card h3 .icon { flex-basis: 24px; width: 24px; height: 24px; }
.dashboard .price { font-size: 24px; }
.order-page { max-width: 940px; margin: 0 auto; }
.order-intro { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.order-intro .eyebrow { margin-bottom: 9px; }
.order-intro h1 { margin: 0 0 12px; font-size: 26px; }
.order-intro .text-muted { margin: 0; max-width: 560px; line-height: 1.7; }
.order-status-badge { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 8px 12px; border: 1px solid #34435e; border-radius: 999px; background: #151d2c; color: #bdcbe6; font-size: 12px; font-weight: 700; }
.order-status-badge .status-dot { background: #92adf2; }
.order-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); align-items: start; gap: 24px; }
.order-main-column { min-width: 0; }
.order-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin-bottom: 16px; }
.order-type-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 58px; padding: 12px 16px; border: 1px solid #2b354b; border-radius: 9px; background: #101521; color: #9caac2; text-align: left; transition: background-color .18s, border-color .18s, box-shadow .18s; }
.order-type-button > .icon { width: 21px; height: 21px; color: #8293b4; }
.order-type-button > span { display: grid; gap: 6px; min-width: 0; }
.order-type-button strong { font-size: 18px; color: #d6dff2; }
.order-type-button small { font-size: 13px; line-height: 1.5; }
@media (hover: hover) { .order-type-button:hover { background: #172136; border-color: #4f6391; } }
.order-type-button.is-active { background: linear-gradient(115deg, #20346c, #141e35); border-color: #648aff; box-shadow: inset 0 1px #ffffff0d, 0 5px 24px #10245033; }
.order-type-button.is-active > .icon { color: #9ebaff; }
.order-type-button.is-active strong { color: #fff; }
.order-type-button.is-active small { color: #bacbf2; }
.order-panel { position: relative; min-width: 0; }
.order-panel[hidden] { display: none; }
.order-form-card { min-width: 0; padding: 24px; border: 1px solid #2c3750; border-radius: 12px; background: linear-gradient(135deg, #131b2b, #0e131f); }
.order-form-heading { display: flex; align-items: flex-start; gap: 15px; padding-bottom: 23px; margin-bottom: 24px; border-bottom: 1px solid #293449; }
.order-form-heading h2 { margin: 0 0 8px; font-size: 19px; color: #edf2ff; }
.order-form-heading p { margin: 0; color: #9baac4; font-size: 14px; line-height: 1.6; }
.order-form-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; height: 44px; border-radius: 10px; background: #23356a; color: #a3bfff; }
.order-form-icon--call { background: #173b3b; color: #8ad8cd; }
.order-form-icon .icon { width: 22px; height: 22px; }
.order-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.order-draft-form .form-group { min-width: 0; }
.order-draft-form label [data-order-target-count] { color: #8799bd; font-size: .9em; font-weight: 600; }
.order-field-warning { margin: -3px 0 12px; color: #ff8f9f; font-size: 12px; line-height: 1.6; }
.order-draft-form .form-hint { display: block; margin-top: 9px; color: #8b9bb8; font-size: 12px; line-height: 1.6; }
.order-targets { display: block; min-height: 144px; resize: vertical; line-height: 1.65; }
.order-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 6px 0 18px; padding: 14px 16px; border: 1px solid #415a9d; border-radius: 8px; background: linear-gradient(100deg, #17264c, #121b30); color: #b9c9ef; }
.order-total strong { color: #fff; font-family: 'Unbounded', sans-serif; font-size: 21px; font-weight: 600; white-space: nowrap; }
.order-total[hidden] { display: none; }
.order-submit { min-width: 190px; margin-top: 3px; }
.order-help { margin-top: 0; padding: 18px 20px; border: 1px solid #334262; border-radius: 9px; background: #111a2b; }
.order-help[hidden] { display: none; }
.order-help--email { border-left: 3px solid #6d8cff; }
.order-help--call { border-left: 3px solid #6d8cff; }
.order-help-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.order-help-heading .icon { width: 18px; height: 18px; color: #a8bdff; }
.order-help-heading h3 { margin: 0; color: #dce6fb; font-size: 14px; }
.order-help ul { display: grid; gap: 7px; margin: 0; padding-left: 22px; color: #a5b4ce; font-size: 13px; line-height: 1.6; }
.order-help li::marker { color: #829fff; }
.order-countries { margin-top: 16px; border-top: 1px solid #334262; }
.order-countries-title { margin: 0; padding: 13px 0 10px; color: #bed0f7; font-size: 13px; font-weight: 400; line-height: 1.6; }
.order-help .order-countries-list { max-height: 260px; overflow-y: auto; padding-left: 0; list-style: none; }
.order-countries-list li { overflow-wrap: anywhere; }
.order-countries-list code { color: #a8bdff; }
.order-countries-empty { margin: 0; color: #a5b4ce; font-size: 13px; line-height: 1.6; }
.order-preview-note { display: flex; align-items: flex-start; gap: 10px; padding: 16px 0; color: #8f9fbc; font-size: 13px; line-height: 1.7; }
.order-preview-note > .icon { margin-top: 2px; color: #9bb4ed; }
@media (max-width: 640px) {
    .order-intro h1 { font-size: 21px; }
    .order-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .order-switcher { gap: 10px; margin-bottom: 12px; }
    .order-type-button { gap: 8px; min-height: 52px; padding: 10px 12px; }
    .order-type-button strong { font-size: 16px; }
    .order-type-button small { font-size: 12px; }
    .order-form-card { padding: 20px 16px; }
    .order-fields-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .order-submit { width: 100%; min-width: 0; }
}
.dashboard .pricing-features { margin-top: 16px; padding-top: 12px; gap: 12px; }
.profile-header { display: flex; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid #29334b; }
.profile-avatar { display: grid; place-items: center; width: 64px; height: 64px; min-width: 64px; font-family: 'Unbounded', sans-serif; font-size: 25px; background: linear-gradient(135deg, #315bff, #17204e); border: 1px solid #6985d6; border-radius: 8px; text-transform: uppercase; }
.profile-info h2 { margin-bottom: 5px; }
.profile-info .text-muted { font-size: 14px; margin-bottom: 10px; }
.profile-page, .faq-list { width: 100%; max-width: 980px; margin-inline: auto; }
.profile-card, .profile-page > .section { padding: 24px 28px; }
.profile-page > .section { margin-block: 24px 0; }
.profile-page > .section h2 { margin: 0 0 20px; font-size: 19px; }
.profile-page > .section .form-inline { margin-top: 0; align-items: stretch; }
.profile-page > .alert { margin-bottom: 24px; }
.profile-details { margin-top: 0; }
.detail-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid #252f43; font-size: 16px; }
.profile-details > .detail-row:first-child { padding-top: 0; }
.profile-details > .detail-row:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-label { color: #a8b1c3; font-size: 14px; line-height: 1.6; }
.detail-value { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; color: #edf2ff; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.6; }
.detail-row--identities { align-items: center; }
.profile-identities { flex-direction: row; align-items: center; gap: 12px; }
.profile-identity { display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%; }
.profile-identity .copy-value { min-width: 0; }
.detail-value code { overflow-wrap: anywhere; min-width: 0; }
.profile-details .detail-value code { color: inherit; font-size: inherit; }
.copy-value { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; }
@media (hover: hover) { .copy-value:hover { color: #a9bfff; } }
.api-key-box, .key-box { display: flex; align-items: center; gap: 15px; justify-content: space-between; padding: 16px; background: #0c1221; border: 1px solid #344572; border-radius: 6px; }
.api-key-box { width: fit-content; max-width: 100%; }
.api-key-box code, .key-box code { min-width: 0; overflow-wrap: anywhere; }
.key-rotation-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; border: 1px solid #344572; border-radius: 8px; background: #101624; color: #edf2ff; box-shadow: 0 24px 80px #0008; }
.key-rotation-dialog::backdrop { background: #030710bf; }
.key-rotation-content { padding: 24px; }
.key-rotation-dialog h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.5; }
.key-rotation-dialog p { margin: 0; color: #b6c4df; font-size: 15px; line-height: 1.8; }
.key-rotation-dialog .field-error { margin-top: 14px; color: #f2a4b2; }
.key-rotation-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.key-rotation-actions .btn { flex: 1 1 128px; }
.endpoint-card { padding: 24px; border: 1px solid #2b3650; border-radius: 8px; background: #0f1420; margin-bottom: 20px; }
.endpoint-header { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-bottom: 13px; }
.method { color: #8edbb9; font-size: 12px; font-weight: 800; padding: 4px 8px; border: 1px solid #34634f; border-radius: 4px; background: #1c413536; }
.endpoint-path { font-family: 'Consolas', monospace; font-size: 15px; color: #bacdff; }
.endpoint-description { color: #9ba9c3; font-size: 14px; margin-bottom: 18px; }
details { border-top: 1px solid #2b354b; }
summary { padding: 15px 0; color: #c6d4f3; font-size: 14px; }
details ul { padding: 0 20px 16px; color: #a1aec9; font-size: 14px; }
.servers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 20px; }
.server-card { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 1px solid #2c3750; border-radius: 8px; background: linear-gradient(145deg, #151e32, #0e121c); min-width: 0; }
.server-symbol { display: flex; align-items: center; justify-content: center; color: #8aaaff; flex: 0 0 22px; }
.server-symbol .icon { width: 22px; height: 22px; }
.server-card h2 { font-size: 16px; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.server-status { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid #35435d; border-radius: 10px; color: #a6b9d8; background: #1b263b; box-shadow: inset 0 1px 0 #ffffff08; }
.server-status .icon { width: 18px; height: 18px; stroke-width: 2; }
.server-status--online { color: #91d9b2; border-color: #315747; background: #19372c80; }
.server-status--offline { color: #ef9da8; border-color: #663c49; background: #42232e80; }
.server-card p { font-size: 13px; margin-top: 16px; line-height: 1.8; }
.signal-bars { display: flex; gap: 3px; height: 24px; align-items: flex-end; margin-top: 24px; }
.signal-bars span { flex: 1; min-width: 1px; height: 12px; background: #304163; }
.signal-bars span:nth-child(3n) { height: 20px; background: #425b8d; }
.signal-bars span:nth-child(5n) { height: 8px; }
.faq-list { padding: 0 28px; }
.faq-list > .faq-item { border-top: 1px solid #252f43; }
.faq-list > .faq-item:first-child { border-top: 0; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 16px; font-weight: 700; line-height: 1.6; color: #d6dff2; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex-shrink: 0; width: 18px; height: 18px; color: #8faaff; transition: transform .2s; }
.faq-item[open] summary { color: #edf2ff; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 38px 22px 0; color: #9baac4; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }

.faq-answer a { color: #a8bde5; font-weight: 700; text-decoration-color: #70809a; }
.faq-answer a:focus-visible { color: #d6e3ff; }
@media (hover: hover) { .faq-answer a:hover { color: #d6e3ff; } }
.support-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 44px; padding: 28px 0; border-top: 1px solid #354a7b; }
.support-band h2 { margin-top: 7px; }
.news-item { padding: 28px 0; border-bottom: 1px solid #2a344d; }
.news-item:first-child { border-top: 1px solid #354b81; }
.news-header { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.news-title { font-size: 20px; color: #dce6ff; }
.news-date { color: #8090af; font-size: 13px; padding-top: 6px; }
.news-content { color: #a6b4cf; line-height: 1.9; overflow-wrap: anywhere; }
.news-content p + p { margin-top: 16px; }
.news-content img, .news-content video { max-width: 100%; height: auto; }
.news-content ul, .news-content ol { padding-left: 24px; }
.pagination { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; min-height: 38px; padding: 7px 10px; font-size: 13px; border: 1px solid #2b3751; border-radius: 4px; text-decoration: none; color: #9eafd3; }
.pagination .active span { background: #2447be; border-color: #5579e6; color: #fff; }
@media (hover: hover) { .pagination a:hover { border-color: #6089ff; color: #fff; } }
.pagination .icon { width: 14px; height: 14px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px 36px; margin: auto 0 0; color: #69758d; font-size: 9px; background: transparent; border-top: 1px solid #202839; }
.public-body { min-height: 100vh; display: flex; flex-direction: column; background: repeating-linear-gradient(135deg, transparent 0 110px, #2343a20b 110px 112px), #070911; }
.public-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; max-width: 1480px; margin: 0 auto; padding: 30px 40px; }
.public-header .brand img { width: 46px; height: 46px; }
.public-header .brand > span { font-size: 15px; }
.public-header .brand > span > span { font-size: 12px; }
.public-content { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px; min-width: 0; }
.public-body > .footer { width: 100%; }
.public-content.auth-content { max-width: 1480px; padding-block: 28px 40px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 28px; }
.auth-guide { min-width: 0; padding: 28px; border: 1px solid #3b496a; border-radius: 16px; background: linear-gradient(145deg, #182440, #0c101b); }
.auth-guide-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.auth-guide-heading > div:last-child { min-width: 0; }
.auth-guide .heading-symbol { flex: 0 0 50px; width: 50px; height: 50px; margin: 0; color: #a9c0ff; }
.auth-guide .eyebrow { margin: 0 0 10px; color: #9fb6eb; font-size: 12px; line-height: 1.5; }
.auth-guide h1 { margin: 0; font-size: 28px; line-height: 1.3; overflow-wrap: anywhere; }
.auth-bot-guide { display: grid; gap: 10px; padding: 18px; margin-bottom: 20px; border: 1px solid #3e5899; border-radius: 10px; background: #315bff12; font-size: 15px; line-height: 1.55; color: #c0cce5; }
.auth-bot-guide h2 { margin: 0; color: #edf2ff; font-size: 18px; line-height: 1.4; }
.auth-bot-guide p { margin: 0; }
.auth-bot-guide a { justify-self: start; color: #a9c3ff; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) { .auth-bot-guide a:hover { color: #fff; } }
.auth-guide ul { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: auth-step; color: #c0cce5; font-size: 15px; line-height: 1.55; }
.auth-guide li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; counter-increment: auth-step; }
.auth-guide li::before { content: counter(auth-step, decimal-leading-zero); align-self: center; color: #809bdd; font-size: 13px; font-weight: 800; }
.auth-guide li p { margin: 0; }
.auth-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 530px; overflow: hidden; }
.signal-grid { position: absolute; inset: 20px; background: linear-gradient(135deg, transparent 48%, #315bff38 49%, #315bff03 50%, transparent 52%), repeating-linear-gradient(0deg, #4f71d80c 0 1px, transparent 1px 36px), repeating-linear-gradient(90deg, #4f71d80c 0 1px, transparent 1px 36px); transform: perspective(550px) rotateX(15deg) rotateZ(-12deg); border-block: 1px solid #315bff55; pointer-events: none; }
.signal-frame { position: relative; display: grid; place-items: center; width: 226px; height: 226px; transform: rotate(-12deg); border: 1px solid #557bff; border-radius: 8px; background: linear-gradient(145deg, #1b3282, #090e1e 65%); box-shadow: 0 0 8px #668bff, 0 0 50px #244dff66, inset 0 0 35px #315bff44; animation: signal-float 8s ease-in-out infinite; }
.signal-frame img { width: 164px; height: 164px; filter: drop-shadow(0 0 20px #315bff88); }
.signal-chip { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #6388ff; border-radius: 8px; color: #bed4ff; background: linear-gradient(135deg, #1f3f9a, #080e25); box-shadow: 0 0 18px #315bff66; }
.signal-chip .icon { width: 27px; height: 27px; }
.chip-mail { top: 56px; right: 20px; transform: rotate(12deg); }
.chip-phone { left: 15px; top: 250px; transform: rotate(-18deg); }
.chip-message { left: 35px; top: 50px; transform: rotate(-8deg); }
.auth-wordmark { position: relative; margin-top: 45px; font-family: 'Unbounded', sans-serif; font-size: 46px; font-weight: 800; line-height: 1.2; color: #edf3ff; text-shadow: 0 4px #253458, 0 0 28px #315bff80; }
.auth-wordmark span { font-size: 30px; color: #9fbaff; }
.auth-art-index { position: absolute; bottom: 4px; left: 20px; font-size: 9px; color: #6177ad; }
.auth-panel { min-width: 0; width: 100%; min-height: 340px; padding: 28px; border: 1px solid #303d5b; border-radius: 16px; background: #0e1422; }
.auth-panel .tabs { gap: 24px; margin-bottom: 26px; }
.auth-panel .tab-btn { font-size: 18px; padding-block: 0 16px; }
.auth-panel .form-group { margin-bottom: 22px; }
.auth-panel .form-group label { margin-bottom: 10px; font-size: 15px; }
.auth-panel .form-control { min-height: 60px; padding: 16px 16px 16px 48px; font-size: 16px; }
.auth-panel .input-with-icon > .icon { top: 21px; left: 17px; width: 18px; height: 18px; }
.auth-panel .btn { min-height: 56px; padding: 14px 20px; font-size: 16px; }
.auth-panel .registration-result p { font-size: 15px; line-height: 1.6; }
.electric-text { color: #89a7ff; text-shadow: 0 0 28px #315bff66; }
.tabs { border-bottom: 1px solid #2e3a5c; gap: 20px; margin-bottom: 30px; }
.tab-btn { flex: 0 1 auto; font-size: 14px; padding: 12px 2px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: #8290af; font-weight: 700; }
.tab-btn.active { color: #cedbff; border-bottom-color: #5d84ff; }
.registration-result h2 { margin-bottom: 12px; }
.registration-result p { font-size: 14px; }
.registration-result .key-box { margin: 20px 0; }
.public-content.admin-login-content { display: flex; align-items: center; padding: 40px 24px; }
.admin-auth { max-width: 520px; width: 100%; margin: 0 auto; padding: 40px; border: 1px solid #303d57; border-radius: 18px; background: radial-gradient(ellipse at 0 0, #2b417028, transparent 65%), linear-gradient(150deg, #141d2d, #0d131f); box-shadow: inset 0 1px #ffffff06, 0 18px 60px #0003; }
.admin-auth .form-group { margin-bottom: 24px; }
.admin-auth .form-group label { margin-bottom: 9px; color: #b5c4dc; font-size: 14px; font-weight: 600; }
.admin-auth .form-control { min-height: 54px; padding: 14px 16px; border-color: #33415b; border-radius: 9px; background: #0b121e; font-size: 16px; transition: border-color .18s ease, box-shadow .18s ease; }
.admin-auth .form-control:focus { border-color: #7d9eff; box-shadow: 0 0 0 3px #6289ff1c; }
.admin-auth .form-control::placeholder { color: #6f7f9a; font-size: 14px; }
.admin-auth .btn { min-height: 52px; margin-top: 4px; border-radius: 9px; font-size: 15px; }
.admin-topbar { display: none; }
.card { background: #101622; border-color: #2b3750; box-shadow: none; }
.admin-user-detail > .card { border: 0; background: transparent; padding: 0; }
.admin-user-detail > .card .table { margin-top: 20px; }
.admin-user-detail > .card .table th { width: 190px; background: transparent; }
.news-editor { border: 0; margin-bottom: 24px; }
.news-editor > summary { width: fit-content; list-style: none; margin-bottom: 20px; }
.news-editor > summary::-webkit-details-marker { display: none; }
.news-editor form { max-width: 800px; }
.news-delete-actions { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 8px; }
.admin-account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 16px; }
.admin-account-card { min-width: 0; padding: 20px; border: 1px solid #303d5b; border-radius: 12px; background: linear-gradient(145deg, #151e32, #0e121c); }
.admin-account-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; min-width: 0; }
.admin-account-heading .heading-symbol { width: 38px; height: 38px; min-width: 38px; border-radius: 10px; box-shadow: none; }
.admin-account-heading .heading-symbol .icon { width: 19px; height: 19px; }
.admin-account-heading h2 { margin: 0; min-width: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-account-heading code { font-size: inherit; color: inherit; }
.admin-account-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 0 24px; margin: 0; font-variant-numeric: tabular-nums; }
.admin-account-details > div { display: grid; grid-template-columns: minmax(0, 126px) minmax(0, 1fr); align-items: baseline; gap: 12px; min-width: 0; padding: 9px 0; border-bottom: 1px solid #2c39503d; }
.admin-account-details .admin-account-detail--wide { grid-column: 1 / -1; }
.admin-account-details dt { color: #8d9db8; font-size: 11px; margin: 0; line-height: 1.6; }
.admin-account-details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: #d9e4f6; font-size: 12px; line-height: 1.6; }
.admin-account-details code { color: inherit; font-size: inherit; }
.admin-account-details .admin-account-telegram { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.admin-account-telegram-link { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; color: #a7beff; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) { .admin-account-telegram-link:hover { color: #d6e2ff; text-decoration: underline; } }
.admin-account-telegram-link .icon { width: 12px; height: 12px; flex-shrink: 0; }
.admin-account-detail--balance dd strong { color: #9fe0bf; font-size: 14px; font-weight: 600; }
.admin-account-key { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: baseline; gap: 12px; padding-block: 14px; margin-top: 12px; border-block: 1px solid #2b354b; font-size: 12px; }
.admin-account-key > span:first-child { color: #9caac4; }
.admin-account-key .copy-value { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.admin-account-key code { font-size: 12px; white-space: normal; }
.admin-account-balance { margin-top: 16px; }
.admin-account-balance h3 { margin-bottom: 6px; font-size: 14px; }
.admin-account-balance > p { font-size: 11px; margin-bottom: 12px; line-height: 1.6; }
.admin-account-balance label { display: block; margin-bottom: 5px; font-size: 11px; color: #a8b9d8; }
.admin-balance-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.admin-balance-amount { flex: 0 1 150px; min-width: 0; }
.admin-account-balance .form-control { min-height: 38px; padding: 8px 10px; margin-bottom: 0; font-size: 12px; }
.admin-balance-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-balance-buttons .btn { min-height: 38px; padding: 8px 11px; gap: 6px; font-size: 12px; }
.admin-balance-buttons .icon { width: 14px; height: 14px; }
.admin-balance-confirmation { display: grid; gap: 12px; margin-top: 12px; padding: 14px; border: 1px solid #4b6092; border-radius: 8px; font-size: 12px; }
.admin-balance-confirmation .form-actions { margin-top: 0; }
@media (max-width: 640px) {
    .admin-account-card { padding: 16px; }
    .admin-account-details { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .admin-account-details > div { grid-template-columns: minmax(0, 112px) minmax(0, 1fr); gap: 8px; }
    .admin-account-heading { align-items: flex-start; }
    .admin-account-heading h2 { font-size: 14px; }
    .admin-balance-amount { flex: 1 1 100%; }
    .admin-balance-buttons { width: 100%; }
    .admin-balance-buttons .btn { flex: 1 1 auto; }
}
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.error-page { min-height: 55vh; gap: 20px; }
.error-code { font-size: 100px; color: #b6caff; text-shadow: 0 0 50px #315bff66; line-height: 1; }
.error-page h2 { text-align: center; }
.error-page .btn { margin-top: 8px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(400px, calc(100% - 48px)); padding: 14px 20px; border: 1px solid #587bd2; border-radius: 6px; background: #15203b; color: #d6e3ff; box-shadow: 0 8px 36px #0008; font-size: 14px; }
.site-notifications { position: fixed; z-index: 220; top: max(16px, calc(env(safe-area-inset-top, 0px) + 12px)); left: 16px; right: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 4px 0 20px; pointer-events: none; }
.site-notification { --notification-accent: #a8c2ff; --notification-border: #668bd259; --notification-glow: #30538c26; --notification-icon: #35548533; position: relative; display: flex; align-items: center; gap: 12px; flex-shrink: 0; width: min(520px, 100%); min-width: 0; padding: 14px 15px; border: 1px solid var(--notification-border); border-radius: 14px; background: linear-gradient(110deg, var(--notification-glow), transparent 70%), #111a28f5; color: #e0e8f7; box-shadow: 0 12px 38px #0005, inset 0 1px #ffffff06; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); pointer-events: auto; animation: reveal .25s ease-out; }
.site-notification--error { --notification-accent: #ffafbc; --notification-border: #c36c8059; --notification-glow: #7e34402b; --notification-icon: #a94b602b; }
.site-notification--success { --notification-accent: #9ae3c0; --notification-border: #559a7c66; --notification-glow: #2a684b2b; --notification-icon: #38755733; }
.site-notification__icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid var(--notification-border); border-radius: 10px; background: var(--notification-icon); color: var(--notification-accent); }
.site-notification__icon svg { width: 21px; height: 21px; }
.site-notification__content { flex: 1; min-width: 0; max-height: min(240px, 50vh); overflow-y: auto; color: #e0e8f7; font-size: 13px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.site-notification__close { display: grid; place-items: center; flex: 0 0 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8fa0bb; cursor: pointer; transition: color .15s ease, background .15s ease; }
.site-notification__close svg { width: 17px; height: 17px; }
@media (hover: hover) { .site-notification__close:hover { background: #ffffff09; color: #e3ecfa; } }
.site-notification__close:focus-visible { outline: 2px solid var(--notification-accent); outline-offset: 2px; }
.site-notification__content { white-space: pre-line; }
.order-loading-overlay { --order-progress: 0%; position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: clamp(12px, 4vw, 28px); border-radius: 12px; background: #090e1bd9; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.order-loading-card { width: min(100%, 360px); min-width: 0; padding: clamp(20px, 4vw, 30px); text-align: center; border: 1px solid #435984; border-radius: 20px; background: radial-gradient(ellipse at 50% 0, #273d703d, transparent 65%), linear-gradient(155deg, #172238, #101724); box-shadow: inset 0 1px #ffffff0a, 0 20px 70px #0005; animation: reveal .25s ease-out; }
.order-loading-emblem { position: relative; display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 20px; border: 1px solid #91b0ff12; border-radius: 50%; background: #23376855; box-shadow: 0 0 36px #527bff16; }
.order-loading-ring { position: absolute; inset: -1px; border: 2px solid #668bf51c; border-top-color: #9cb9ff; border-right-color: #6d93ff; border-radius: 50%; animation: site-loading-spin 1.15s linear infinite; }
.order-loading-hourglass { display: block; width: 49px; height: 59px; transform-origin: center; animation: order-hourglass-flip 5s ease-in-out infinite; }
.order-loading-hourglass svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 6px #6d98ff70); }
.order-loading-glass { stroke: #afcaff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.order-loading-sand { fill: #8eafff; }
.order-loading-sand--top { animation: order-sand-top 5s linear infinite; }
.order-loading-sand--bottom { clip-path: inset(100% 0 0 0); animation: order-sand-bottom 5s linear infinite; }
.order-loading-sand-stream { stroke: #c7d9ff; stroke-width: 1.5; stroke-linecap: round; opacity: 0; animation: order-sand-stream 5s linear infinite; }
@keyframes order-hourglass-flip { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes order-sand-top { 0%, 5% { clip-path: inset(0 0 0 0); } 40%, 50% { clip-path: inset(100% 0 0 0); } 90%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes order-sand-bottom { 0%, 5% { clip-path: inset(100% 0 0 0); } 40%, 50% { clip-path: inset(0 0 0 0); } 90%, 100% { clip-path: inset(100% 0 0 0); } }
@keyframes order-sand-stream { 0%, 5%, 40%, 50%, 55%, 90%, 100% { opacity: 0; } 8%, 37%, 58%, 87% { opacity: 1; } }
.order-loading-eyebrow { display: inline-block; padding: 4px 10px; border: 1px solid #7c9fea2b; border-radius: 99px; background: #4368b81a; color: #a9c1f3; font-size: 11px; font-weight: 600; letter-spacing: .035em; }
.order-loading-title { margin: 14px 0 8px; color: #edf3ff; font-size: clamp(18px, 3vw, 21px); font-weight: 700; line-height: 1.35; }
.order-loading-description { margin: 0 auto; max-width: 28ch; color: #9aacc9; font-size: 12px; line-height: 1.7; }
.order-loading-status { margin-top: 24px; }
.order-loading-counter { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a9b9d5; font-size: 13px; }
.order-loading-counter > strong { display: flex; align-items: baseline; gap: 7px; color: #edf3ff; font-size: 23px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.order-loading-divider, .order-loading-total { color: #869abf; font-size: 15px; font-weight: 500; }
.order-loading-results { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 8px; color: #8fa6c9; font-size: 11px; font-variant-numeric: tabular-nums; }
.order-loading-results strong { color: #b6d9cf; font-weight: 600; }
.order-loading-errors, .order-loading-errors strong { color: #f2a4b2; }
.order-loading-errors[hidden] { display: none; }
.order-loading-progress { height: 5px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: #293956; }
.order-loading-progress-fill { display: block; width: var(--order-progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #527dff, #99bbff); box-shadow: 0 0 12px #6d93ff55; transition: width .3s ease; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes signal-float { 0%, 100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-10px) rotate(-9deg); } }
@media (min-width: 1500px) { .page-content { padding-top: 48px; } }
@media (max-width: 1150px) { :root { --sidebar-width: 216px; } .page-content { padding-inline: 24px; } .stats-grid, .actions-grid { gap: 12px; } .stat-card { padding: 20px 15px; } .stat-value { font-size: 23px; } .servers-grid { grid-template-columns: 1fr; } .auth-layout { gap: 40px; } }
@media (max-width: 1150px) { .stats-grid--orders, .stats-grid--balances { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1150px) { .actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
    .public-content.auth-content { max-width: 800px; }
    .auth-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .auth-guide, .auth-panel { padding: 32px; }
    .auth-panel { min-height: 0; }
}
@media (max-width: 900px) {
    .admin-topbar { display: flex; }
    .sidebar { transform: translateX(-100%); width: 244px; transition: transform .2s ease; }
    .menu-open .sidebar { transform: translateX(0); }
    .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 45; width: 100%; height: 100%; border: 0; background: #0009; }
    .menu-open { overflow: hidden; }
    .workspace-main { margin-left: 0; }
    .mobile-menu { display: inline-flex; }
    .topbar { height: 68px; flex-basis: 68px; padding: 0 20px; }
    .topbar-title .header-divider { display: none; }
    .auth-layout { gap: 30px; }
    .auth-wordmark { font-size: 34px; }
    .auth-wordmark span { font-size: 24px; }
    .signal-frame { width: 180px; height: 180px; }
    .signal-frame img { width: 130px; height: 130px; }
    .signal-chip { width: 42px; height: 42px; }
}
@media (min-width: 901px) and (max-width: 1100px), (max-width: 700px) {
    .payment-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .payment-notes { order: 0; padding: 0; border: 0; }
    .payment-flow { order: 0; padding-top: 24px; border-top: 1px solid #253047; }
}
@media (max-width: 640px) {
    .page-content { padding: 28px 16px; }
    .stats-grid.stats-grid--overview { grid-template-columns: minmax(0, 1fr); }
    .stats-grid--overview .stat-card { padding: 16px 18px; }
    .stats-grid--overview .stat-card + .stat-card { border-left: 0; border-top: 1px solid #2a3141; }
    .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 26px; }
    .page-heading h1, .page-title { font-size: 20px; }
    .heading-symbol { width: 42px; height: 42px; min-width: 42px; }
    .topbar { padding-inline: 16px; }
    .topbar-title { font-size: 13px; gap: 9px; }
    .topbar-actions { gap: 10px; }
    .language-switch > .icon { display: none; }
    .language-switch button { padding-inline: 7px; }
    .account-button { width: 32px; height: 32px; min-width: 32px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-card { padding: 18px 13px; }
    .stat-label { font-size: 12px; gap: 6px; flex-wrap: wrap; }
    .stat-value { font-size: 23px; margin-top: 12px; }
    .action-card { padding: 20px 12px; min-height: 132px; }
    .action-title { font-size: 14px; }
    .action-arrow { top: 12px; right: 12px; }
    .table th, .table td { padding: 14px 11px; }
    .orders-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .order-card { padding: 20px; }
    .balance-value { font-size: 22px; }
    .balance-card { padding: 16px 18px; }
    .balance-section { margin-top: 18px; padding: 22px 20px; }
    .balance-section h2 { font-size: 19px; }
    .api-page > .api-key-section, .api-reference { padding: 20px; }
    .api-page > .api-key-section { flex-wrap: wrap; gap: 14px; }
    .api-operation summary, .api-operation-body { padding: 16px; }
    .api-params > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .payment-warning { padding: 14px; }
    .payment-invoice { padding: 16px; }
    .balance-details { gap: 16px; padding-inline: 16px; grid-template-columns: 1fr; }
    .detail-item { flex-direction: row; justify-content: space-between; gap: 20px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card { padding: 22px; }
    .profile-card, .profile-page > .section { padding: 20px; }
    .profile-page > .section, .profile-page > .alert { margin-top: 18px; }
    .profile-page > .section .form-control { flex-basis: 100%; }
    .profile-page > .section .btn { width: 100%; }
    .faq-list { padding-inline: 20px; }
    .faq-item summary { gap: 14px; padding-block: 18px; font-size: 15px; }
    .faq-answer { padding: 0 0 20px; font-size: 14px; }
    .profile-header { gap: 15px; align-items: flex-start; }
    .profile-avatar { width: 48px; height: 48px; min-width: 48px; font-size: 20px; }
    .profile-info h2 { font-size: 17px; }
    .detail-row { grid-template-columns: 1fr; gap: 9px; }
    .detail-value code { flex-basis: 100%; }
    .method-card { gap: 14px; }
    .method-card .btn { margin-left: 0; }
    .endpoint-card { padding: 18px; }

    .footer { padding: 20px 16px; }
    .public-header { padding: 24px 20px; }
    .public-header .brand img { width: 40px; height: 40px; }
    .public-content { padding: 20px; }
    .public-content.auth-content { padding: 24px 20px 40px; }
    .auth-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .auth-guide { padding: 22px; }
    .auth-guide-heading { gap: 14px; margin-bottom: 18px; }
    .auth-guide .heading-symbol { flex-basis: 44px; width: 44px; height: 44px; min-width: 44px; }
    .auth-guide h1 { font-size: 24px; }
    .auth-bot-guide { padding: 16px; font-size: 15px; }
    .auth-bot-guide h2 { font-size: 18px; }
    .auth-guide ul { font-size: 15px; }
    .auth-guide li { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
    .auth-art { min-height: 210px; flex-direction: row; gap: 30px; }
    .signal-frame { width: 115px; height: 115px; flex-shrink: 0; }
    .signal-frame img { width: 88px; height: 88px; }
    .auth-wordmark { margin-top: 0; font-size: 26px; }
    .auth-wordmark span { font-size: 18px; }
    .signal-chip { width: 30px; height: 30px; }
    .signal-chip .icon { width: 18px; height: 18px; }
    .chip-mail { top: 17px; right: 27px; }
    .chip-message { top: 20px; left: 18px; }
    .chip-phone { top: auto; bottom: 21px; left: 35%; }
    .auth-art-index { display: none; }
    .auth-panel { min-height: 0; padding: 22px; }
    .auth-panel .tabs { gap: 18px; margin-bottom: 22px; }
    .auth-panel .tab-btn { font-size: 16px; padding-bottom: 14px; }
    .auth-panel .form-control { min-height: 56px; font-size: 16px; }
    .auth-panel .input-with-icon > .icon { top: 19px; width: 18px; height: 18px; }
    .auth-panel .btn { min-height: 60px; font-size: 16px; }
    .public-content.admin-login-content { padding: 20px; }
    .admin-auth { padding: 28px 22px; border-radius: 14px; }
    .error-code { font-size: 76px; }
}
@media (max-width: 385px) {
    .orders-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; flex-wrap: nowrap; }
    .orders-update-note { min-width: 0; }
    .orders-heading > .btn { margin-left: 0; }
}
@media (max-width: 360px) { .topbar-title > span { display: none; } .stat-value { font-size: 20px; } .auth-wordmark { font-size: 22px; } .auth-wordmark span { font-size: 15px; } }
@media (hover: none) {
    a, button, summary, [role="button"], select, label[for] { -webkit-tap-highlight-color: transparent; }
    .sidebar { -webkit-user-select: none; user-select: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
