:root {
    --bg: #0c100e;
    --bg-2: #141a16;
    --bg-3: #1c241d;
    --line: rgba(226, 236, 210, 0.14);
    --text: #f4f7f1;
    --muted: #a7b3a0;
    --lime: #d6ff4a;
    --ink: #12160c;
    --warn: #ffb020;
    --bad: #ff5d45;
    --good: #b6ff6a;
    --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
    --sans: "Outfit", "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--sans);
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(214, 255, 74, 0.16), transparent 50%),
        radial-gradient(700px 380px at -10% 10%, rgba(214, 255, 74, 0.06), transparent 46%),
        var(--bg);
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }

.nav, .site-foot, .hero, .section, .stats {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}
.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.brand small {
    display: block;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 10px;
}
.mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--serif);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-links a, .text-btn {
    text-decoration: none;
    color: var(--muted);
}
.nav-links a.is-on, .nav-links a:hover, .text-btn:hover { color: var(--text); }
.nav-toggle { display: none; }
.text-btn {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
    cursor: pointer;
    background: transparent;
}
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); font-weight: 600; }
.btn-ghost { background: transparent; }
.btn:hover { transform: translateY(-1px); }

.kicker {
    margin: 0 0 8px;
    color: var(--lime);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 0.96; margin: 0 0 16px; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; margin: 0; }
.lede, .section-head p, .panel-head p { color: var(--muted); font-size: 18px; max-width: 46rem; }
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    padding: 28px 0 10px;
}
.hero-actions, .filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.rack {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #1a2218, #101510 70%);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}
.rack-top, .unit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.rack-top {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    padding: 6px 8px 12px;
}
.rack-top em { color: var(--lime); font-style: normal; }
.unit {
    margin-top: 8px;
    padding: 12px;
    border-radius: 10px;
    background: #0c110e;
    border: 1px solid var(--line);
}
.unit b { font-family: var(--mono); font-weight: 500; }
.unit span { color: var(--muted); margin-left: auto; }
.unit i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 10px var(--good);
}
.unit.hot i { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.rack-note { color: var(--muted); font-size: 13px; margin: 12px 8px 4px; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 28px 0;
}
.stats div, .stat-grid a, .stat-grid div, .block, .plan, .sub-card, .auth-card, .fake-panel {
    background: rgba(20, 26, 22, 0.86);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.stats div { padding: 16px 18px; }
.stats strong, .stat-grid strong { display: block; font-family: var(--serif); font-size: 28px; }
.stats span, .stat-grid span { color: var(--muted); }

.section { padding: 28px 0 10px; }
.section-head { margin-bottom: 18px; }
.cards, .sub-grid, .stat-grid, .split {
    display: grid;
    gap: 14px;
}
.cards, .cards-server { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plan, .sub-card, .block { padding: 18px; }
.plan.is-pop { outline: 1px solid rgba(214, 255, 74, 0.7); }
.plan em, .pill {
    display: inline-flex;
    font-style: normal;
    font-size: 12px;
    border-radius: 999px;
    padding: 4px 8px;
}
.plan em { background: var(--lime); color: var(--ink); margin-bottom: 8px; }
.plan h3, .sub-card h2 { margin: 8px 0; font-size: 32px; }
.plan p, .sub-card p { color: var(--muted); }
.price { color: var(--text); font-family: var(--serif); font-size: 34px; display: block; margin: 8px 0; }
.price small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.plan ul, .sub-card ul, .ticks { padding-left: 18px; color: var(--muted); }
.plan li + li, .sub-card li + li { margin-top: 6px; }
.plan form { margin-top: 14px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }

.steps ol {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 0;
}
.steps li { padding: 18px; border-top: 1px solid var(--lime); }
.steps span { font-family: var(--mono); color: var(--lime); }
.preview {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: center;
    padding-bottom: 48px;
}
.fake-panel { padding: 12px; }
.fake-row, .mini-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}
.fake-row.warn b { color: var(--warn); }

.site-foot {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 0 40px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}
.site-foot a { display: block; color: var(--text); text-decoration: none; margin: 4px 0; }
.site-foot p { margin: 6px 0 0; }

.flash {
    width: min(1120px, calc(100% - 32px));
    margin: 8px auto;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-3);
    border: 1px solid var(--line);
}
.flash-ok { border-color: rgba(182, 255, 106, 0.5); }
.flash-bad { border-color: rgba(255, 93, 69, 0.7); }
.flash-warn { border-color: rgba(255, 176, 32, 0.7); }

.auth-body {
    display: grid;
    place-items: center;
    padding: 32px 16px;
    align-content: center;
    gap: 16px;
}
.auth-card { width: min(460px, 100%); padding: 22px; }
.auth-card h1 { font-size: 40px; line-height: 1.05; }
.auth-card form, .boost { display: grid; gap: 12px; margin-top: 12px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
label span { color: var(--muted); font-weight: 400; }
input, select {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0c110e;
    padding: 0 12px;
}
.note, .demo-box, .fine { color: var(--muted); }
.demo-box {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #10160f;
}
code { color: var(--lime); }
.switch a { color: var(--lime); }

.panel-body { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side {
    padding: 20px 16px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: rgba(8, 12, 9, 0.65);
}
.side nav { display: grid; gap: 6px; }
.side nav a {
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
}
.side nav a.is-on, .side nav a:hover { background: var(--bg-3); color: var(--text); }
.side-user { margin-top: auto; display: grid; gap: 4px; color: var(--muted); }
.side-user strong { color: var(--text); }
.panel-main { padding: 28px 28px 60px; }
.panel-head h1 { font-size: clamp(36px, 5vw, 58px); }
.stat-grid { grid-template-columns: repeat(3, 1fr); margin: 8px 0 16px; }
.stat-grid a, .stat-grid div { padding: 16px; text-decoration: none; }
.split { grid-template-columns: 1.1fr 0.9fr; }
.big-date { font-family: var(--serif); font-size: 36px; margin: 8px 0; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list a { text-decoration: none; }
.sub-grid { grid-template-columns: repeat(2, 1fr); }
.sub-top { display: flex; justify-content: space-between; align-items: center; }
.pill { background: var(--bg); border: 1px solid var(--line); }
.pill-active, .pill-paid { color: var(--good); }
.pill-pending, .pill-unpaid { color: var(--warn); }
.pill-overdue { color: var(--bad); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
.filters a {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--muted);
}
.filters a.is-on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0; padding: 12px; }
legend { padding: 0 6px; color: var(--muted); }
.check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.check input { width: auto; }
.check b { margin-left: auto; color: var(--text); font-weight: 500; }
.quote {
    padding: 12px;
    border-radius: 12px;
    background: #10160f;
}
.quote strong { display: block; font-family: var(--serif); font-size: 32px; }
.invoice { max-width: 760px; }
.invoice header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.brand-line { font-family: var(--serif); font-size: 28px; margin: 0; }
.invoice dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.invoice dt { color: var(--muted); font-size: 13px; }
.invoice dd { margin: 0; }
.empty { padding: 28px; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs a { text-decoration: none; padding: 6px 10px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.langs a.is-on { background: var(--lime); color: var(--ink); }
.side .langs { align-self: flex-start; }
.auth-body .langs { position: absolute; top: 22px; right: 22px; }
textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0c110e;
    padding: 10px 12px;
    resize: vertical;
}
.admin-form { display: grid; gap: 12px; max-width: 860px; }
.lang-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-actions, .mini-list form { display: flex; gap: 12px; align-items: center; }
.danger { color: var(--bad); }
@media (max-width: 800px) {
    .lang-pair { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .hero, .preview, .steps ol, .stats, .split, .sub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        padding: 12px;
        background: #141a16;
        border: 1px solid var(--line);
        border-radius: 14px;
        flex-direction: column;
        align-items: flex-start;
        z-index: 5;
    }
    .nav-links.is-open { display: flex; }
    .panel-body { grid-template-columns: 1fr; }
    .side { position: sticky; top: 0; z-index: 4; border-right: 0; border-bottom: 1px solid var(--line); }
    .side nav { grid-auto-flow: column; overflow-x: auto; }
    .side-user { display: none; }
    .panel-main { padding: 18px 16px 48px; }
    .stat-grid, .invoice dl { grid-template-columns: 1fr; }
    .site-foot { flex-direction: column; }
}

@media print {
    body { background: white; color: black; }
    .side, .no-print, .flash { display: none !important; }
    .panel-body { display: block; }
    .invoice { color: black; }
}

body.site {
    background: #fff;
    color: #1c2838;
    font-family: "Outfit", "Segoe UI", sans-serif;
}
body.site h1, body.site h2, body.site h3 { font-family: "Outfit", "Segoe UI", sans-serif; color: #162033; font-weight: 700; }
body.site .lede, body.site .section-head p, body.site .plan p, body.site .plan li { color: #5c6b7c; }
body.site .kicker, body.site .mono { color: #2f6fed; }
body.site .plan, body.site .stats div, body.site .block {
    background: #fff;
    color: #162033;
    border: 1px solid #e6edf5;
    box-shadow: 0 10px 28px rgba(20, 40, 80, 0.05);
}
body.site .price, body.site .plan h3 { color: #162033; }
body.site .btn-lime, body.site .cb-btn, body.site .cb-signup {
    background: #2f6fed;
    color: #fff;
    border-color: #2f6fed;
    border-radius: 8px;
    font-weight: 600;
}
body.site .btn-ghost { background: #fff; color: #2f6fed; border-color: #d5e0ee; border-radius: 8px; }
body.site .flash { background: #f4f7fb; color: #162033; }
body.site .langs { border-color: #d5e0ee; }
body.site .langs a { color: #5c6b7c; }
body.site .langs a.is-on { background: #2f6fed; color: #fff; }
body.site.auth-body { background: #f3f6fb; color: #162033; }
body.site .auth-card { background: #fff; color: #162033; box-shadow: 0 16px 40px rgba(20, 40, 80, 0.08); }
body.site .auth-card h1, body.site .auth-card label { color: #162033; }
body.site .auth-card input { background: #fff; color: #162033; border-color: #d5e0ee; }
body.site .switch a { color: #2f6fed; }
body.site .demo-box { background: #f4f7fb; }
body.site .mark { background: #2f6fed; color: #fff; font-family: "Outfit", sans-serif; }

.cb-wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.cb-top { background: #fff; border-bottom: 1px solid #eef2f7; font-size: 13px; color: #66758a; }
.cb-top .cb-wrap, .cb-nav .cb-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.cb-top-links, .cb-nav .nav-links { display: flex; align-items: center; gap: 16px; }
.cb-top a, .cb-top .text-btn { color: #243044; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.cb-signup { min-height: 32px; padding: 0 14px; display: inline-flex; align-items: center; }
.cb-nav { background: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #eef2f7; }
.cb-nav .cb-wrap { min-height: 68px; }
.cb-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #2f6fed; }
.cb-logo svg { width: 34px; height: 34px; }
.cb-logo strong { font-size: 26px; letter-spacing: 0.04em; font-weight: 800; }
.cb-nav .nav-links a { color: #243044; text-decoration: none; font-weight: 600; font-size: 15px; }
.cb-nav .nav-links a.is-on, .cb-nav .nav-links a:hover { color: #2f6fed; }

.cb-hero { position: relative; color: #fff; padding: 64px 0 72px; overflow: hidden; }
.cb-hero-bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 14, 28, 0.72) 0%, rgba(8, 16, 32, 0.55) 42%, rgba(7, 12, 24, 0.78) 100%),
        url("/assets/hero-room.svg") center/cover no-repeat,
        #0c1526;
}
.cb-hero .cb-wrap { position: relative; }
body.site .cb-hero h1 {
    color: #fff;
    text-align: center;
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    line-height: 1.12;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.cb-sub { text-align: center; color: #d5deea; font-size: 20px; margin: 0 auto 28px; max-width: 760px; }
.cb-hero-grid { display: grid; grid-template-columns: 0.7fr 2.1fr; gap: 28px; align-items: center; }
.cb-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cb-points li { position: relative; padding-left: 28px; color: #fff; font-weight: 600; line-height: 1.35; }
.cb-points li:before { content: "✓"; position: absolute; left: 0; color: #8eb6ff; font-weight: 800; }
.cb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cb-card { background: #fff; color: #162033; border-radius: 16px; padding: 18px 16px 16px; text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22); }
.cb-k { margin: 0; color: #7b8798; font-size: 12px; letter-spacing: 0.08em; font-weight: 700; }
.cb-card h2 { font-size: 22px; margin: 6px 0; line-height: 1.2; }
.cb-card p { color: #5c6b7c; font-size: 14px; margin: 0 0 8px; min-height: 40px; }
.cb-from { color: #8b97a8; font-size: 13px; }
.cb-price { min-height: 0; margin: 0 0 12px; }
.cb-price b { display: block; font-size: 48px; line-height: 1; color: #162033; letter-spacing: -0.04em; }
.cb-price small { color: #66758a; font-size: 14px; font-weight: 600; }
.cb-btn { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 8px; background: #2f6fed; color: #fff; text-decoration: none; font-weight: 700; }
.cb-btn:hover { background: #245fe0; }
.cb-spec { margin: 10px 0 0 !important; min-height: 0 !important; font-size: 12px !important; }

.cb-banner-wrap { margin-top: -28px; position: relative; }
.cb-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: linear-gradient(90deg, #10192e, #1a2744 55%, #24345a);
    color: #fff; text-decoration: none; border-radius: 16px; padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(16, 28, 56, 0.18);
}
.cb-banner small { display: block; color: #9eb6de; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.cb-banner em { font-style: normal; background: #2f6fed; color: #fff; border-radius: 8px; padding: 10px 14px; font-weight: 700; white-space: nowrap; }
.cb-stats { padding: 54px 0 10px; }
.cb-stats .cb-wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 12px; }
.cb-stats strong { display: block; font-size: 40px; letter-spacing: -0.03em; color: #162033; }
.cb-stats span { color: #66758a; letter-spacing: 0.12em; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.cb-loc, .cb-why { text-align: center; padding: 36px 0; }
.cb-loc h2, .cb-why h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.cb-loc p, .cb-why p { color: #5c6b7c; margin: 0 auto 18px; max-width: 640px; }
.cb-map { position: relative; max-width: 920px; margin: 8px auto 0; }
.cb-map img { width: 100%; height: auto; display: block; }
.pin { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #d7e3f3; border-radius: 999px; padding: 6px 10px; font-weight: 700; color: #1d4ed8; box-shadow: 0 6px 16px rgba(20, 40, 80, 0.08); }
.pin i { width: 10px; height: 10px; border-radius: 50%; background: #2f6fed; box-shadow: 0 0 0 4px #d9e6ff; }
.cb-cycle-row { display: flex; justify-content: center; margin-bottom: 22px; }
.cycle-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #e8eef8; }
.cycle-switch button { border: 0; background: transparent; color: #243044; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.cycle-switch button.is-on { background: #2f6fed; color: #fff; }
.cb-hero .cycle-switch { background: rgba(255, 255, 255, 0.14); }
.cb-hero .cycle-switch button { color: #fff; }
.cb-hero .cycle-switch button.is-on { background: #fff; color: #1d4ed8; }
.section-head .cycle-switch { margin-top: 14px; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
#server-locations { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
#server-locations legend { padding: 0 6px; }
.cb-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 10px; }
.cb-icons div { display: grid; justify-items: center; gap: 8px; color: #2f6fed; font-weight: 700; }
.cb-icons svg { width: 54px; height: 54px; fill: none; stroke: #2f6fed; stroke-width: 2; }
.cb-foot { background: #f6f8fb; color: #4d5d70; margin-top: 20px; padding: 36px 0 18px; }
.cb-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; }
.cb-foot strong { color: #2f6fed; font-size: 20px; letter-spacing: 0.06em; }
.cb-foot b { display: block; color: #162033; margin-bottom: 8px; }
.cb-foot a, .cb-foot span { display: block; color: #4d5d70; text-decoration: none; margin: 6px 0; }
.cb-copy { border-top: 1px solid #e4ebf3; margin-top: 18px; padding-top: 12px; font-size: 13px; }

@media (max-width: 980px) {
    .cb-hero-grid, .cb-cards, .cb-stats .cb-wrap, .cb-icons, .cb-foot-grid { grid-template-columns: 1fr 1fr; }
    .cb-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    body.site .cb-nav .nav-links {
        display: none;
        background: #fff;
        border: 1px solid #e6edf5;
    }
    body.site .cb-nav .nav-links.is-open { display: flex; }
    body.site .nav-links a { color: #162033; }
    body.site .nav-toggle { color: #162033; border-color: #d5e0ee; }
    .cb-top .cb-wrap { justify-content: flex-end; min-height: 40px; }
    .cb-top .cb-wrap > span { display: none; }
    .cb-cards, .cb-stats .cb-wrap, .cb-icons, .cb-foot-grid, .cb-banner { grid-template-columns: 1fr; display: grid; }
    .cb-banner { justify-items: start; }
    .cb-map .pin { position: static; margin: 6px; }
    .loc-grid { grid-template-columns: 1fr; }
}

body.panel-body {
    display: grid;
    grid-template-columns: 268px 1fr;
    min-height: 100vh;
    background: #f3f6fb;
    color: #162033;
    font-family: "Outfit", "Segoe UI", sans-serif;
}
body.panel-body h1,
body.panel-body h2,
body.panel-body h3 {
    font-family: "Outfit", "Segoe UI", sans-serif;
    color: #162033;
    font-weight: 700;
    letter-spacing: -0.03em;
}
body.panel-body .side {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 14px 16px;
    gap: 18px;
    background: #fff;
    border-right: 1px solid #e6edf5;
    box-shadow: none;
}
body.panel-body .side-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 6px;
}
body.panel-body .brand { color: #162033; font-weight: 800; font-size: 18px; }
body.panel-body .brand svg { width: 32px; height: 32px; flex: none; }
body.panel-body .brand small {
    color: #7b8798;
    letter-spacing: 0.14em;
    font-size: 10px;
}
body.panel-body .side nav { gap: 4px; }
body.panel-body .side nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: #3d4b5e;
    font-weight: 600;
    font-size: 14px;
}
body.panel-body .side nav a svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    flex: none;
}
body.panel-body .side nav a.is-on {
    background: #eaf1ff;
    color: #1d4ed8;
}
body.panel-body .side nav a:hover { background: #f4f7fb; color: #162033; }
body.panel-body .side nav a.is-on:hover { background: #eaf1ff; color: #1d4ed8; }
body.panel-body .langs { border-color: #d7e2f0; }
body.panel-body .langs a { color: #5c6b7c; font-family: "Outfit", sans-serif; font-weight: 700; }
body.panel-body .langs a.is-on { background: #2f6fed; color: #fff; }
body.panel-body .side-user {
    margin-top: auto;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 4px 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    background: #f8fafc;
    color: #5c6b7c;
}
body.panel-body .avatar {
    width: 36px;
    height: 36px;
    grid-row: span 2;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #2f6fed;
    color: #fff;
    font-weight: 700;
}
body.panel-body .side-user strong { color: #162033; font-size: 14px; }
body.panel-body .side-user span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
body.panel-body .side-user form { grid-column: 2; }
body.panel-body .text-btn { color: #2f6fed; font-weight: 600; }
body.panel-body .panel-main { padding: 32px 36px 72px; max-width: 1180px; }
body.panel-body .kicker,
body.panel-body .mono { color: #2f6fed; font-family: "Outfit", sans-serif; letter-spacing: 0.12em; }
body.panel-body .panel-head h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; margin-bottom: 8px; }
body.panel-body .panel-head p,
body.panel-body .lede { color: #5c6b7c; font-size: 16px; }
body.panel-body .stat-grid { gap: 14px; }
body.panel-body .stat-grid a,
body.panel-body .stat-grid div,
body.panel-body .block,
body.panel-body .sub-card,
body.panel-body .invoice,
body.panel-body .quote {
    background: #fff;
    color: #162033;
    border: 1px solid #e6edf5;
    box-shadow: 0 10px 28px rgba(20, 40, 80, 0.04);
}
body.panel-body .stat-grid a:hover { border-color: #c9d8f3; }
body.panel-body .stat-grid span,
body.panel-body .quote span { color: #66758a; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
body.panel-body .stat-grid strong,
body.panel-body .big-date,
body.panel-body .quote strong,
body.panel-body .price {
    color: #162033;
    font-family: "Outfit", sans-serif;
    letter-spacing: -0.03em;
}
body.panel-body .stat-grid strong { font-size: 28px; margin-top: 6px; }
body.panel-body .btn { border-radius: 8px; font-weight: 600; gap: 8px; }
body.panel-body .btn svg,
body.panel-body .icon-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
body.panel-body .icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #d7e3f2;
    background: #fff;
    color: #1d4ed8;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}
body.panel-body .icon-btn:hover { background: #eaf1ff; }
body.panel-body .icon-btn-danger { color: #d64532; border-color: #f3d2cd; }
body.panel-body .icon-btn-danger:hover { background: #fff1ef; }
body.panel-body .lang-list { display: grid; gap: 12px; max-width: 640px; }
body.panel-body .lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 10px 28px rgba(20, 40, 80, 0.04);
}
body.panel-body .lang-row strong { display: block; font-size: 18px; }
body.panel-body .lang-row span { color: #66758a; font-size: 13px; }
body.panel-body .toggle {
    width: 52px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #d5deea;
    position: relative;
    cursor: pointer;
    padding: 0;
    flex: none;
}
body.panel-body .toggle i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(16, 28, 56, 0.18);
    transition: transform 0.15s ease;
}
body.panel-body .toggle.is-on { background: #2f6fed; }
body.panel-body .toggle.is-on i { transform: translateX(22px); }
body.panel-body .toggle:disabled { opacity: 0.45; cursor: not-allowed; }
body.panel-body .row-actions { justify-content: flex-end; }
body.panel-body .row-actions form,
body.panel-body .mini-list form { margin: 0; }
body.panel-body .btn-lime { background: #2f6fed; color: #fff; border-color: #2f6fed; }
body.panel-body .btn-lime:hover { background: #245fe0; }
body.panel-body .btn-ghost { background: #fff; color: #1d4ed8; border-color: #d5e0ee; }
body.panel-body input,
body.panel-body select,
body.panel-body textarea {
    background: #fff;
    color: #162033;
    border-color: #d5e0ee;
    border-radius: 8px;
}
body.panel-body input:focus,
body.panel-body select:focus,
body.panel-body textarea:focus {
    outline: none;
    border-color: #2f6fed;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}
body.panel-body label { color: #3d4b5e; font-weight: 600; }
body.panel-body .admin-form,
body.panel-body .boost {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(20, 40, 80, 0.04);
}
body.panel-body .block .boost,
body.panel-body .block .table-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
body.panel-body .table-wrap {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(20, 40, 80, 0.04);
}
body.panel-body table { min-width: 640px; }
body.panel-body th {
    color: #66758a;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #f8fafc;
    padding: 12px 14px;
}
body.panel-body td { padding: 14px; border-bottom-color: #eef2f7; }
body.panel-body tbody tr:hover td { background: #f8fbff; }
body.panel-body td a { color: #1d4ed8; font-weight: 600; text-decoration: none; }
body.panel-body .pill {
    background: #f3f6fb;
    border: 0;
    color: #3d4b5e;
    font-weight: 700;
}
body.panel-body .pill-active,
body.panel-body .pill-paid { background: #e7f8ee; color: #157a3a; }
body.panel-body .pill-pending,
body.panel-body .pill-unpaid { background: #fff6e5; color: #9a6700; }
body.panel-body .pill-overdue { background: #ffecea; color: #c2412d; }
body.panel-body .filters a { background: #fff; color: #3d4b5e; border-color: #d5e0ee; font-weight: 600; }
body.panel-body .filters a.is-on { background: #2f6fed; color: #fff; border-color: #2f6fed; }
body.panel-body .flash { background: #fff; color: #162033; border-color: #d5e0ee; }
body.panel-body .flash-ok { border-color: #8ed7a8; }
body.panel-body .flash-bad { border-color: #f0b2aa; }
body.panel-body .flash-warn { border-color: #f3d48a; }
body.panel-body fieldset,
body.panel-body #server-locations { border-color: #e6edf5; background: #f8fafc; }
body.panel-body legend,
body.panel-body .check b,
body.panel-body .fine,
body.panel-body .note { color: #5c6b7c; }
body.panel-body .mini-list a { color: #162033; font-weight: 600; }
body.panel-body .mini-list a.icon-btn,
body.panel-body .row-actions a.icon-btn { color: #1d4ed8; font-weight: 500; }
body.panel-body .mini-list li { border-bottom-color: #eef2f7; }
body.panel-body .invoice { padding: 28px; border-radius: 16px; }
body.panel-body .brand-line { color: #2f6fed; font-family: "Outfit", sans-serif; font-weight: 800; letter-spacing: 0.04em; }
body.panel-body .invoice h1 { font-size: 28px; }
body.panel-body .row-actions a { color: #1d4ed8; font-weight: 600; text-decoration: none; }
body.panel-body .danger { color: #d64532; }
body.panel-body .empty { text-align: center; }

@media (max-width: 980px) {
    body.panel-body .stat-grid,
    body.panel-body .split,
    body.panel-body .sub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    body.panel-body { grid-template-columns: 1fr; }
    body.panel-body .side {
        position: sticky;
        top: 0;
        height: auto;
        z-index: 30;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 12px;
        border-right: 0;
        border-bottom: 1px solid #e6edf5;
    }
    body.panel-body .side nav {
        order: 3;
        width: 100%;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    body.panel-body .side nav a { white-space: nowrap; background: #f4f7fb; }
    body.panel-body .side-user {
        display: flex;
        margin: 0 0 0 auto;
        padding: 0;
        border: 0;
        background: transparent;
        grid-template-columns: none;
    }
    body.panel-body .side-user div,
    body.panel-body .avatar { display: none; }
    body.panel-body .side-user .text-btn {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 12px;
        border: 1px solid #d5e0ee;
        border-radius: 999px;
        background: #fff;
    }
    body.panel-body .panel-main { padding: 18px 14px 48px; }
}
