:root {
    --bg: #0b141a;
    --bg-soft: #0f1a20;
    --panel: #111b21;
    --panel-2: #162229;
    --panel-3: #1b2a32;
    --header: #202c33;
    --border: #2a3942;
    --border-soft: #22323a;
    --text: #e9edef;
    --text-soft: #cbd6db;
    --muted: #8696a0;
    --accent: #25d366;
    --accent-strong: #1ebe5d;
    --accent-dark: #128c46;
    --accent-soft: rgba(37, 211, 102, 0.12);
    --danger: #ff6b6b;
    --danger-soft: rgba(255, 107, 107, 0.12);
    --warning: #ffb02e;
    --warning-soft: rgba(255, 176, 46, 0.12);
    --info: #53bdeb;
    --info-soft: rgba(83, 189, 235, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #5ff09a;
}

img {
    max-width: 100%;
}

h1, h2, h3, h4, h5 {
    margin: 0 0 0.5rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1rem; }
small { color: var(--muted); }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

.muted { color: var(--muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.block { display: block; }
.nowrap { white-space: nowrap; }
.min-w-240 { min-width: 240px; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.small { font-size: 0.86rem; }
.tiny { font-size: 0.78rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #06240f;
    padding: 10px 16px;
    z-index: 1000;
}

.skip-link:focus {
    left: 10px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 20, 26, 0.92);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 70px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand:hover { color: var(--text); }

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    color: #052512;
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.25);
}

.brand-mark.lg {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 1.1rem;
}

.brand-text small {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-soft);
    padding: 9px 13px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.92rem;
}

.nav-links a:hover {
    background: var(--panel-2);
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 11px 18px;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease, color 0.15s ease;
    font-family: inherit;
    text-decoration: none;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: #04240f;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-strong);
    color: #04240f;
}

.btn-secondary {
    background: var(--panel-3);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: #22343d;
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text-soft);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--panel-2);
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
    color: #260505;
    border-color: var(--danger);
}

.btn-danger:hover { background: #ff8585; color: #260505; }

.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border-color: rgba(255, 107, 107, 0.4);
}

.btn-outline-danger:hover { background: var(--danger-soft); color: var(--danger); }

.btn-sm {
    padding: 7px 12px;
    font-size: 0.82rem;
    border-radius: 9px;
}

.btn-block { width: 100%; }

.btn[disabled], .btn.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.alert-success { border-color: rgba(37, 211, 102, 0.35); background: var(--accent-soft); color: #c9f7d8; }
.alert-error { border-color: rgba(255, 107, 107, 0.4); background: var(--danger-soft); color: #ffd5d5; }
.alert-warning { border-color: rgba(255, 176, 46, 0.4); background: var(--warning-soft); color: #ffe5b3; }
.alert-info { border-color: rgba(83, 189, 235, 0.35); background: var(--info-soft); color: #d4f2ff; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge-active, .badge-paid, .badge-success, .badge-online, .badge-resolved {
    background: var(--accent-soft);
    color: #6ff2a5;
    border-color: rgba(37, 211, 102, 0.3);
}

.badge-pending, .badge-queued, .badge-provisioning, .badge-unsuspending, .badge-unknown, .badge-pending_reply {
    background: var(--info-soft);
    color: #9de3ff;
    border-color: rgba(83, 189, 235, 0.3);
}

.badge-past_due, .badge-unpaid, .badge-high, .badge-warning, .badge-running {
    background: var(--warning-soft);
    color: #ffd88b;
    border-color: rgba(255, 176, 46, 0.3);
}

.badge-suspended, .badge-failed, .badge-rejected, .badge-banned, .badge-urgent, .badge-offline {
    background: var(--danger-soft);
    color: #ffb3b3;
    border-color: rgba(255, 107, 107, 0.32);
}

.badge-terminated, .badge-void, .badge-closed, .badge-refunded {
    background: rgba(134, 150, 160, 0.12);
    color: #b8c4ca;
    border-color: rgba(134, 150, 160, 0.25);
}

.badge-open, .badge-admin, .badge-monthly {
    background: var(--accent-soft);
    color: #8df5b7;
    border-color: rgba(37, 211, 102, 0.25);
}

.badge-low, .badge-daily, .badge-user {
    background: rgba(134, 150, 160, 0.12);
    color: #c8d3d8;
    border-color: rgba(134, 150, 160, 0.2);
}

.badge-yearly {
    background: rgba(167, 139, 250, 0.14);
    color: #d4c4ff;
    border-color: rgba(167, 139, 250, 0.3);
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-flat { box-shadow: none; }

.card-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-head h3, .card-head h2 { margin: 0; font-size: 1.05rem; }

.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border-soft); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    background:
        radial-gradient(circle at 15% 10%, rgba(37, 211, 102, 0.16), transparent 42%),
        radial-gradient(circle at 85% 0%, rgba(83, 189, 235, 0.09), transparent 40%),
        linear-gradient(180deg, #0d1a21 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border-soft);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(37, 211, 102, 0.28);
    color: #8df5b7;
    font-weight: 650;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); margin-bottom: 18px; }
.hero p.lead { font-size: 1.08rem; color: var(--text-soft); max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 0.86rem; }

.hero-panel {
    background: linear-gradient(160deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.chat-demo { display: flex; flex-direction: column; gap: 10px; }
.chat-bubble {
    padding: 11px 14px;
    border-radius: 12px 12px 12px 4px;
    background: var(--header);
    color: var(--text-soft);
    font-size: 0.88rem;
    max-width: 92%;
}
.chat-bubble.me {
    align-self: flex-end;
    background: #005c4b;
    border-radius: 12px 12px 4px 12px;
    color: #e8fff5;
}
.chat-bubble .chat-tag { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 4px; }

.section { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head p { color: var(--muted); margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 14px;
}
.feature h3 { font-size: 1rem; }
.feature p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.plan-card.featured {
    border-color: rgba(37, 211, 102, 0.45);
    box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.2), var(--shadow);
}
.plan-flag {
    position: absolute;
    top: -12px;
    right: 18px;
    background: var(--accent);
    color: #04240f;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
}
.plan-price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-price span { font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.plan-cycle { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.plan-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 0.9rem; color: var(--text-soft); }
.plan-features li { display: flex; gap: 9px; align-items: flex-start; }
.plan-features li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.plan-card .btn { margin-top: auto; }

.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 34px 0;
    color: var(--muted);
    font-size: 0.86rem;
    background: var(--bg-soft);
}
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.auth-wrap {
    min-height: calc(100vh - 140px);
    display: grid;
    place-items: center;
    padding: 48px 0;
    background: radial-gradient(circle at 50% 0%, rgba(37, 211, 102, 0.08), transparent 55%);
}
.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}
.auth-card.wide { max-width: 640px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .brand-mark { margin: 0 auto 14px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: 0.88rem; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field > label { font-size: 0.86rem; font-weight: 650; color: var(--text-soft); }
.field .help { font-size: 0.78rem; color: var(--muted); }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"],
input[type="search"], input[type="url"], input[type="file"], select, textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 11px;
    padding: 11px 13px;
    font-family: inherit;
    font-size: 0.94rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea { min-height: 120px; resize: vertical; }

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.13);
}

input[type="file"] { padding: 9px; }
input::placeholder, textarea::placeholder { color: #667780; }

select option { background: var(--panel); color: var(--text); }

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.88rem;
    color: var(--text-soft);
}
.checkbox input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); }

.error-text { color: #ffb3b3; font-size: 0.8rem; }
.input-error { border-color: rgba(255, 107, 107, 0.6) !important; }

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.input-group { display: flex; align-items: stretch; }
.input-group input { border-radius: 11px 0 0 11px; }
.input-group .input-suffix {
    display: grid;
    place-items: center;
    padding: 0 14px;
    background: var(--panel-3);
    border: 1px solid var(--border);
    border-left: 0;
    border-radius: 0 11px 11px 0;
    color: var(--muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.secret-field { position: relative; }
.secret-field input { padding-right: 70px; }
.secret-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--panel-3);
    border: 1px solid var(--border);
    color: var(--text-soft);
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 0.72rem;
    cursor: pointer;
    font-family: inherit;
}

.secret-toggle-inline {
    position: static;
    transform: none;
    margin-top: 4px;
}

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border-soft); margin-bottom: 18px; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; font-size: 0.9rem; }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}
.filter-bar input, .filter-bar select { max-width: 240px; }

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border-soft); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
thead th {
    text-align: left;
    padding: 11px 14px;
    background: var(--panel-2);
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.015); }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .empty-icon { font-size: 1.8rem; margin-bottom: 8px; }
.empty-state h3 { color: var(--text-soft); }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.pagination a {
    min-width: 34px;
    text-align: center;
    padding: 7px 10px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text-soft);
    font-size: 0.84rem;
}
.pagination a.active { background: var(--accent); color: #04240f; border-color: var(--accent); font-weight: 700; }
.pagination a:hover { border-color: var(--accent); color: var(--text); }

.layout {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 60;
}

.sidebar-head {
    padding: 20px 18px;
    border-bottom: 1px solid var(--border-soft);
}

.sidebar-nav { padding: 14px 12px; display: grid; gap: 4px; }
.sidebar-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #65757e;
    padding: 12px 12px 6px;
    font-weight: 700;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
}
.sidebar-link .ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--panel-2);
    font-size: 0.74rem;
    color: var(--muted);
    flex-shrink: 0;
}
.sidebar-link:hover { background: var(--panel-2); color: var(--text); }
.sidebar-link.active { background: var(--accent-soft); color: #8df5b7; }
.sidebar-link.active .ico { background: rgba(37, 211, 102, 0.18); color: var(--accent); }

.sidebar-foot { margin-top: auto; padding: 16px 16px 20px; border-top: 1px solid var(--border-soft); }
.sidebar-user { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--panel-3);
    color: var(--accent);
    font-weight: 800;
    flex-shrink: 0;
}
.avatar.lg { width: 52px; height: 52px; font-size: 1.1rem; }
.sidebar-user .who { min-width: 0; }
.sidebar-user .who strong { display: block; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .who span { display: block; font-size: 0.74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 26px;
    background: rgba(11, 20, 26, 0.9);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-title { font-weight: 650; font-size: 0.94rem; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.content { padding: 28px 26px 48px; max-width: 1320px; width: 100%; margin: 0 auto; }

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.page-head h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 4px; }
.page-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 800;
}
.metric-icon.blue { background: var(--info-soft); color: var(--info); }
.metric-icon.warn { background: var(--warning-soft); color: var(--warning); }
.metric-icon.red { background: var(--danger-soft); color: var(--danger); }
.metric-label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.metric-value { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.metric-sub { font-size: 0.78rem; color: var(--muted); }

.wallet-card {
    background: linear-gradient(145deg, #0f2c1d, #101f26 65%);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}
.wallet-card .amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.wallet-card .label { color: #8de6b2; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

.list { display: grid; gap: 1px; background: var(--border-soft); border-radius: 12px; overflow: hidden; }
.list-item {
    background: var(--panel);
    padding: 13px 16px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}
.list-item:hover { background: var(--panel-2); }
.list-main { min-width: 0; }
.list-main strong { display: block; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; }
.list-main span { font-size: 0.78rem; color: var(--muted); }
.list-side { text-align: right; flex-shrink: 0; }

.credential-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.credential {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}
.credential h4 { margin: 0 0 10px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.cred-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 0.84rem; }
.cred-row .k { color: var(--muted); }
.cred-row .v { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.copy-btn {
    background: var(--panel-3);
    border: 1px solid var(--border);
    color: var(--text-soft);
    border-radius: 7px;
    padding: 3px 8px;
    font-size: 0.68rem;
    cursor: pointer;
    font-family: inherit;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.order-sidebar { position: sticky; top: 86px; display: grid; gap: 16px; }
.summary { display: grid; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; color: var(--text-soft); }
.summary-row.total { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; font-size: 1.05rem; font-weight: 800; color: var(--text); }
.summary-note { font-size: 0.78rem; color: var(--muted); }
.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.78rem;
    margin-right: 8px;
}

.location-list { display: grid; gap: 10px; }
.location-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    cursor: pointer;
}
.location-card:hover { border-color: rgba(37, 211, 102, 0.4); }
.location-card input { margin-top: 3px; accent-color: var(--accent); }
.location-card strong { display: block; font-size: 0.9rem; }
.location-card span { display: block; font-size: 0.78rem; color: var(--muted); }

.cycle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cycle-option {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: var(--bg-soft);
    cursor: pointer;
    text-align: center;
}
.cycle-option input { display: none; }
.cycle-option .c-name { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.cycle-option .c-price { font-weight: 800; font-size: 0.95rem; }
.cycle-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.subdomain-check { font-size: 0.8rem; min-height: 18px; }
.subdomain-check.ok { color: #6ff2a5; }
.subdomain-check.error { color: #ffb3b3; }

.steps { display: grid; gap: 12px; }
.step-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.step-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    margin-top: 2px;
}
.step-item.done { color: #8df5b7; }
.step-item.done .step-dot { background: var(--accent); border-color: var(--accent); }
.step-item.current { color: var(--text); }
.step-item.current .step-dot { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15); }

.chat-thread { display: grid; gap: 14px; }
.chat-msg { max-width: 78%; display: grid; gap: 5px; }
.chat-msg .bubble {
    background: var(--header);
    border: 1px solid var(--border-soft);
    border-radius: 4px 14px 14px 14px;
    padding: 11px 14px;
    font-size: 0.9rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.chat-msg.admin { justify-self: end; }
.chat-msg.admin .bubble { background: #005c4b; border-color: #086b57; border-radius: 14px 4px 14px 14px; }
.chat-meta { font-size: 0.72rem; color: var(--muted); }
.chat-msg.admin .chat-meta { text-align: right; }

.proof-thumb {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: block;
}

.invoice-box { max-width: 820px; margin: 0 auto; }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.invoice-meta { display: grid; gap: 4px; font-size: 0.88rem; color: var(--text-soft); }
.invoice-total { text-align: right; font-size: 1.3rem; font-weight: 800; }
.invoice-table td, .invoice-table th { min-width: 0; }
.invoice-table { min-width: 0; }

.empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    margin: 0 auto 12px;
    font-weight: 800;
}

dialog {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
    color: var(--text);
    padding: 0;
    max-width: 480px;
    width: calc(100% - 32px);
    box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.62); }
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--border-soft); font-weight: 700; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border-soft); display: flex; justify-content: flex-end; gap: 8px; }

.code-block {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.note {
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    padding: 12px 14px;
    border-radius: 0 10px 10px 0;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.divider { height: 1px; background: var(--border-soft); margin: 18px 0; }

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    font-size: 15px;
}

body {
    font-size: 14.5px;
    line-height: 1.5;
}

.container {
    max-width: 1120px;
    padding: 0 18px;
}

.site-header .container {
    min-height: 58px;
}

.brand {
    font-size: 0.98rem;
    gap: 9px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.brand-mark.lg {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1rem;
}

.brand-text small {
    font-size: 0.66rem;
}

.nav-links a {
    padding: 7px 11px;
    font-size: 0.85rem;
}

.nav-actions {
    gap: 7px;
}

.menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.btn {
    padding: 9px 14px;
    font-size: 0.84rem;
    border-radius: 9px;
    gap: 6px;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
}

.alert {
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 0.84rem;
    gap: 8px;
    border-radius: 10px;
}

.badge {
    padding: 3px 8px;
    font-size: 0.68rem;
}

.card-head {
    padding: 13px 16px;
}

.card-head h3,
.card-head h2 {
    font-size: 0.95rem;
}

.card-body {
    padding: 16px;
}

.card-foot {
    padding: 11px 16px;
}

h1 {
    font-size: clamp(1.55rem, 3.2vw, 2.2rem);
}

h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

h3 {
    font-size: 1.05rem;
}

.hero {
    padding: 46px 0 34px;
}

.hero .container {
    gap: 30px;
}

.hero .eyebrow {
    padding: 5px 10px;
    font-size: 0.72rem;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(1.7rem, 3.4vw, 2.45rem);
    margin-bottom: 12px;
}

.hero p.lead {
    font-size: 0.96rem;
    max-width: 560px;
}

.hero-actions {
    margin-top: 18px;
    gap: 8px;
}

.hero-note {
    margin-top: 12px;
    font-size: 0.8rem;
}

.hero-panel {
    padding: 14px;
    border-radius: 16px;
}

.chat-demo {
    gap: 8px;
}

.chat-bubble {
    padding: 9px 11px;
    font-size: 0.8rem;
}

.chat-bubble .chat-tag {
    font-size: 0.66rem;
}

.section {
    padding: 38px 0;
}

.section-head {
    margin-bottom: 20px;
}

.section-head p {
    font-size: 0.88rem;
}

.feature-grid {
    gap: 14px;
}

.feature {
    padding: 16px;
    border-radius: 12px;
}

.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.feature h3 {
    font-size: 0.92rem;
}

.feature p {
    font-size: 0.82rem;
}

.plan-grid {
    gap: 14px;
}

.plan-card {
    padding: 18px;
    gap: 12px;
    border-radius: 14px;
}

.plan-price {
    font-size: 1.55rem;
}

.plan-cycle {
    font-size: 0.72rem;
    gap: 6px;
}

.plan-features {
    gap: 6px;
    font-size: 0.82rem;
}

.site-footer {
    padding: 22px 0;
    font-size: 0.8rem;
}

.auth-wrap {
    padding: 32px 0;
}

.auth-card {
    padding: 22px;
    border-radius: 16px;
    max-width: 430px;
}

.auth-card.wide {
    max-width: 600px;
}

.auth-head {
    margin-bottom: 18px;
}

.auth-foot {
    margin-top: 14px;
    font-size: 0.82rem;
}

.form {
    gap: 12px;
}

.form-row {
    gap: 12px;
}

.field {
    gap: 5px;
}

.field > label {
    font-size: 0.8rem;
}

.field .help {
    font-size: 0.72rem;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"],
input[type="search"], input[type="url"], input[type="file"], select, textarea {
    padding: 8px 11px;
    font-size: 0.86rem;
    border-radius: 9px;
}

textarea {
    min-height: 100px;
}

.secret-field input {
    padding-right: 64px;
}

.checkbox {
    font-size: 0.82rem;
}

.error-text {
    font-size: 0.74rem;
}

.table-wrap {
    border-radius: 10px;
}

table {
    font-size: 0.84rem;
    min-width: 600px;
}

thead th {
    padding: 8px 10px;
    font-size: 0.68rem;
}

tbody td {
    padding: 9px 10px;
}

.pagination a {
    min-width: 30px;
    padding: 5px 8px;
    font-size: 0.78rem;
}

.layout {
    grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar-head {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 0 14px;
}

.sidebar-nav {
    padding: 10px 8px;
    gap: 2px;
}

.sidebar-label {
    font-size: 0.62rem;
    padding: 9px 10px 4px;
}

.sidebar-link {
    padding: 8px 10px;
    font-size: 0.84rem;
    gap: 9px;
    border-radius: 8px;
}

.sidebar-link .ico {
    width: 22px;
    height: 22px;
    font-size: 0.66rem;
    border-radius: 6px;
}

.sidebar-foot {
    padding: 12px 12px 14px;
}

.sidebar-user {
    gap: 8px;
    margin-bottom: 8px;
}

.avatar {
    width: 32px;
    height: 32px;
}

.sidebar-user .who strong {
    font-size: 0.8rem;
}

.sidebar-user .who span {
    font-size: 0.68rem;
}

.topbar {
    min-height: 64px;
    padding: 0 18px;
}

.topbar-title {
    font-size: 0.86rem;
}

.content {
    padding: 20px 18px 32px;
    max-width: 1240px;
}

.page-head {
    margin-bottom: 16px;
    gap: 10px;
}

.page-head h1 {
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.page-head p {
    font-size: 0.82rem;
}

.page-actions {
    gap: 6px;
}

.metric-grid {
    gap: 12px;
    margin-bottom: 16px;
}

.metric {
    padding: 13px;
    gap: 10px;
    border-radius: 12px;
}

.metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.66rem;
}

.metric-label {
    font-size: 0.68rem;
}

.metric-value {
    font-size: 1.15rem;
}

.metric-sub {
    font-size: 0.7rem;
}

.wallet-card {
    padding: 16px;
    border-radius: 12px;
    gap: 12px;
}

.wallet-card .amount {
    font-size: 1.6rem;
}

.wallet-card .label {
    font-size: 0.7rem;
}

.list-item {
    padding: 9px 12px;
    gap: 10px;
}

.list-main strong {
    font-size: 0.84rem;
}

.list-main span {
    font-size: 0.72rem;
}

.credential {
    padding: 10px;
    border-radius: 10px;
}

.credential h4 {
    font-size: 0.84rem;
    margin-bottom: 8px;
}

.cred-row {
    grid-template-columns: 78px minmax(0, 1fr) auto;
    font-size: 0.78rem;
    padding: 4px 0;
}

.order-grid {
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 300px;
}

.summary {
    gap: 8px;
}

.summary-row {
    font-size: 0.8rem;
}

.summary-row.total {
    font-size: 0.95rem;
    padding-top: 9px;
}

.summary-note {
    font-size: 0.72rem;
}

.location-card {
    padding: 10px;
}

.location-card strong {
    font-size: 0.84rem;
}

.location-card span {
    font-size: 0.72rem;
}

.cycle-option {
    padding: 9px;
}

.chat-msg {
    max-width: 82%;
    gap: 4px;
}

.chat-msg .bubble {
    padding: 9px 11px;
    font-size: 0.82rem;
}

.chat-meta {
    font-size: 0.68rem;
}

.tabs {
    margin-bottom: 12px;
    gap: 4px;
}

.tabs a {
    padding: 7px 10px;
    font-size: 0.82rem;
}

.filter-bar {
    gap: 8px;
    margin-bottom: 12px;
}

.empty-state {
    padding: 28px 16px;
}

.code-block {
    padding: 9px;
    font-size: 0.76rem;
}

.icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sidebar-link .ico .icon {
    width: 14px;
    height: 14px;
}

.btn .icon {
    width: 14px;
    height: 14px;
}

.btn-sm .icon {
    width: 13px;
    height: 13px;
}

.metric-icon .icon {
    width: 17px;
    height: 17px;
}

.empty-icon .icon {
    width: 20px;
    height: 20px;
}

.align-start {
    align-items: start;
}

.form-section-title {
    padding-top: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--bg-soft);
    display: grid;
    place-content: center;
    cursor: pointer;
    margin-top: 1px;
    flex-shrink: 0;
}

.checkbox input[type="checkbox"]::before {
    content: "";
    width: 9px;
    height: 9px;
    transform: scale(0);
    transition: transform 0.12s ease;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    background: var(--accent);
}

.checkbox input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.checkbox input[type="checkbox"]:checked {
    border-color: rgba(37, 211, 102, 0.55);
}

.empty-state.compact {
    padding: 12px 10px;
}

.empty-state.compact .empty-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
}

.empty-state.compact h3 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.empty-state.compact p {
    font-size: 0.78rem;
    margin-bottom: 0;
}

.list-scroll {
    max-height: 320px;
    overflow-y: auto;
}

textarea.compact-textarea {
    min-height: 70px;
}

.dashboard-equal > .card {
    display: flex;
    flex-direction: column;
}

.dashboard-equal > .card > .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-equal .empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.process-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(83, 189, 235, 0.32);
    background: var(--info-soft);
    color: #a9e8ff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    animation: process-pulse 2.2s ease-in-out infinite;
}

.process-pill .spinner {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(169, 232, 255, 0.28);
    border-top-color: #a9e8ff;
    border-radius: 50%;
    animation: process-spin 0.75s linear infinite;
}

@keyframes process-spin {
    to { transform: rotate(360deg); }
}

@keyframes process-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.68; }
}

.badge-expired {
    background: var(--warning-soft);
    color: #ffd88b;
    border-color: rgba(255, 176, 46, 0.3);
}

.badge-suspend {
    background: var(--danger-soft);
    color: #ffb3b3;
    border-color: rgba(255, 107, 107, 0.32);
}

.badge-cancel {
    background: rgba(134, 150, 160, 0.12);
    color: #b8c4ca;
    border-color: rgba(134, 150, 160, 0.25);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(37, 211, 102, 0.26);
    background: var(--accent-soft);
    color: #8df5b7;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.feature-head {
    max-width: 720px;
}

.feature-head h2 {
    margin-bottom: 8px;
}

.feature-modern-grid {
    gap: 14px;
}

.feature-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.feature-modern:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 211, 102, 0.38);
    background: var(--panel-2);
}

.feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.feature-modern .feature-icon {
    margin-bottom: 0;
}

.feature-tag {
    padding: 3px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.feature-modern h3 {
    margin: 0;
    font-size: 0.94rem;
}

.feature-modern p {
    margin: 0;
    color: var(--muted);
    font-size: 0.81rem;
}

.advantage-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    margin-top: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--panel), #0d1d17);
}

.advantage-copy h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.advantage-copy > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    max-width: 500px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 7px;
}

.check-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-soft);
    font-size: 0.84rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 800;
}

.advantage-flow {
    display: grid;
    align-content: start;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
}

.flow-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.flow-num {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(37, 211, 102, 0.3);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
}

.flow-item strong {
    display: block;
    font-size: 0.84rem;
}

.flow-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 24px;
    border: 1px solid rgba(37, 211, 102, 0.24);
    border-radius: 16px;
    background: linear-gradient(135deg, #0f2c1d, #0d1a21 68%);
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    margin: 0 0 4px;
}

.cta-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.site-footer {
    padding: 36px 0 20px;
    font-size: 0.84rem;
    background: linear-gradient(180deg, var(--bg-soft), #081116);
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 28px;
}

.footer-brand p {
    max-width: 330px;
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-badges span {
    padding: 3px 8px;
    border: 1px solid rgba(37, 211, 102, 0.22);
    border-radius: 999px;
    background: var(--accent-soft);
    color: #9de3b5;
    font-size: 0.66rem;
    font-weight: 650;
}

.footer-col h4 {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    padding: 4px 0;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    color: var(--muted);
    font-size: 0.75rem;
}

.server-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 11px;
    overflow: hidden;
    background: radial-gradient(circle at 82% 0%, rgba(37, 211, 102, 0.14), transparent 45%), linear-gradient(160deg, var(--panel-2), var(--panel));
}

.server-panel > * {
    position: relative;
    z-index: 1;
}

.server-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.server-panel-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.server-panel-title strong {
    display: block;
    font-size: 0.86rem;
}

.server-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: server-live 1.8s ease-in-out infinite;
}

.server-badge {
    padding: 3px 8px;
    border: 1px solid rgba(37, 211, 102, 0.28);
    border-radius: 999px;
    background: var(--accent-soft);
    color: #8df5b7;
    font-size: 0.62rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.server-visual {
    position: relative;
    overflow: hidden;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
}

.server-visual::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 211, 102, 0.75), transparent);
    animation: server-scan 3.4s linear infinite;
}

.rack {
    display: grid;
    gap: 6px;
}

.rack-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-soft);
    font-size: 0.71rem;
}

.rack-name {
    flex: 1;
}

.rack-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.75);
    flex-shrink: 0;
    animation: led-blink 1.8s ease-in-out infinite;
}

.rack-row:nth-child(2) .rack-led {
    animation-delay: 0.35s;
}

.rack-row:nth-child(3) .rack-led {
    animation-delay: 0.7s;
}

.rack-row:nth-child(4) .rack-led {
    animation-delay: 1.05s;
}

.rack-state {
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.order-processing {
    display: grid;
    gap: 9px;
    padding: 11px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
}

.order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.order-row strong {
    font-size: 0.84rem;
}

.order-bar {
    position: relative;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border-soft);
}

.order-bar span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 42%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    animation: order-progress 2.3s ease-in-out infinite;
}

.order-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.6rem;
    color: var(--muted);
}

.order-step {
    padding: 3px 7px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: var(--bg-soft);
    white-space: nowrap;
}

.order-step.done {
    border-color: rgba(37, 211, 102, 0.25);
    background: var(--accent-soft);
    color: #8df5b7;
}

.order-step.active {
    border-color: rgba(83, 189, 235, 0.3);
    background: var(--info-soft);
    color: #9de3ff;
    animation: process-pulse 2.1s ease-in-out infinite;
}

.server-panel-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.67rem;
}

.queue-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--info);
    animation: led-blink 1.6s ease-in-out infinite;
}

@keyframes server-live {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(37, 211, 102, 0);
    }
}

@keyframes led-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes server-scan {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    12% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(170px);
        opacity: 0;
    }
}

@keyframes order-progress {
    0% {
        transform: translateX(-110%);
    }
    50% {
        transform: translateX(120%);
    }
    100% {
        transform: translateX(260%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .server-live-dot,
    .rack-led,
    .server-visual::after,
    .order-bar span,
    .order-step.active,
    .queue-dot,
    .process-pill,
    .process-pill .spinner {
        animation: none !important;
    }
}

@media (max-width: 1080px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-grid { grid-template-columns: 1fr; }
    .order-sidebar { position: static; }
}

@media (max-width: 920px) {
    .hero .container { grid-template-columns: 1fr; gap: 30px; }
    .feature-grid, .plan-grid, .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .layout { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 280px;
        transform: translateX(-102%);
        transition: transform 0.2s ease;
        box-shadow: var(--shadow);
    }
    body.nav-open .sidebar { transform: translateX(0); }
    body.nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 55;
    }
    .menu-toggle { display: inline-grid; place-items: center; }
    .content { padding: 20px 16px 40px; }
    .topbar { padding: 12px 16px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 18px;
        background: var(--panel);
        border-bottom: 1px solid var(--border);
        z-index: 45;
    }
}

@media (max-width: 640px) {
    .topbar-right .btn {
        padding: 6px 8px;
        font-size: 0.74rem;
    }

    .topbar-right .btn .icon {
        width: 12px;
        height: 12px;
    }

    .topbar-title {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .container { padding: 0 16px; }
    .hero { padding: 32px 0 24px; }
    .metric-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .credential-grid { grid-template-columns: 1fr; }
    .cycle-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 18px; }
    .wallet-card .amount { font-size: 1.45rem; }
    .page-head { flex-direction: column; }
    .filter-bar input, .filter-bar select { max-width: 100%; }
    .cred-row { grid-template-columns: 80px minmax(0, 1fr) auto; }
}

@media print {
    body { background: #fff; color: #111; }
    .sidebar, .topbar, .site-header, .site-footer, .no-print { display: none !important; }
    .layout { display: block; }
    .content { padding: 0; max-width: none; }
    .card { box-shadow: none; border-color: #ccc; background: #fff; color: #111; }
    .badge { border-color: #999; color: #111 !important; background: #eee !important; }
    a { color: #111; }
    table thead th { background: #f0f0f0; color: #111; }
    tbody td { border-color: #ddd; }
}

@media (max-width: 640px) {
    .topbar-right .btn {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 9px;
        font-size: 0;
    }

    .topbar-right .btn .btn-text {
        display: none;
    }

    .topbar-right .btn .icon {
        width: 15px;
        height: 15px;
    }

    .topbar-title {
        max-width: 150px;
    }

    .topbar {
        min-height: 58px;
        padding: 0 14px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .metric {
        padding: 10px;
        gap: 8px;
    }

    .metric-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .metric-icon .icon {
        width: 15px;
        height: 15px;
    }

    .metric-label {
        font-size: 0.62rem;
        letter-spacing: 0.03em;
    }

    .metric-value {
        font-size: 1rem;
    }

    .metric-sub {
        font-size: 0.66rem;
    }

    .auth-wrap {
        min-height: 0;
        padding: 18px 0 28px;
    }

    .list-scroll {
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
    }
}

@media (max-width: 920px) {
    .advantage-panel {
        grid-template-columns: 1fr;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .cta-panel {
        padding: 18px;
    }

    .advantage-panel {
        padding: 16px;
    }

    .site-footer {
        padding: 28px 0 16px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        margin-top: 20px;
    }
}
