:root {
    --ink: #0b172a;
    --ink-2: #152842;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --canvas: #f5f7fb;
    --brand: #2563eb;
    --brand-2: #06b6d4;
    --violet: #7c3aed;
    --green: #10b981;
    --amber: #f59e0b;
    --red: #ef4444;
    --sidebar: #0b172a;
    --radius: 16px;
    --shadow: 0 12px 32px rgba(15, 23, 42, .07);
    --font: "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: #bfdbfe; color: #0b172a; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

/* flash */
.flash {
    position: fixed; z-index: 90; top: 18px; left: 50%; transform: translateX(-50%);
    min-width: 320px; max-width: 640px; padding: 12px 18px; border-radius: 12px;
    background: #0f172a; color: #e2e8f0; box-shadow: 0 16px 40px rgba(2, 6, 23, .24);
    font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.flash.success { border-left: 3px solid #34d399; }
.flash.error { border-left: 3px solid #fb7185; }
.flash .close { margin-left: auto; background: none; border: 0; color: #94a3b8; font-size: 18px; }
.errors { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 13px; border: 1px solid #fecaca; }
.errors ul { margin: 0; padding-left: 18px; }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
    font-size: 14px; font-weight: 600; transition: .18s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .22); }
.btn-primary:hover { background: #1d4ed8; }
.btn-dark { background: #0f172a; color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: #334155; }
.btn-ghost:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-soft { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.btn-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.btn-sm { height: 32px; padding: 0 11px; border-radius: 8px; font-size: 12px; }
.btn-lg { height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* badges */
.badge {
    display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
    border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
    background: #f1f5f9; color: #475569;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.active, .badge.paid, .badge.succeeded, .badge.online, .badge.resolved { background: #ecfdf5; color: #047857; }
.badge.pending, .badge.unpaid, .badge.provisioning, .badge.queued, .badge.open { background: #fffbeb; color: #b45309; }
.badge.suspended, .badge.overdue, .badge.failed { background: #fef2f2; color: #b91c1c; }
.badge.terminated, .badge.closed, .badge.offline { background: #f1f5f9; color: #475569; }
.badge.refunded, .badge.partially_refunded { background: #f5f3ff; color: #6d28d9; }
.badge.info { background: #eff6ff; color: #1d4ed8; }
.badge.violet { background: #f5f3ff; color: #6d28d9; }

/* public site */
.site-body { background: #07111f; color: #e2e8f0; }
.site-body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none;
    background: radial-gradient(800px 500px at 80% -10%, rgba(34, 211, 238, .16), transparent 60%),
                radial-gradient(700px 500px at 10% 20%, rgba(37, 99, 235, .16), transparent 60%);
}
.site-nav {
    position: relative; z-index: 20; height: 76px; display: flex; align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, .13);
    background: rgba(7, 17, 31, .72); backdrop-filter: blur(18px);
}
.site-nav .container { display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 700; letter-spacing: .3px; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(145deg, #22d3ee, #2563eb 62%, #4f46e5);
    box-shadow: 0 8px 24px rgba(34, 211, 238, .3), inset 0 1px 0 rgba(255, 255, 255, .45);
    color: #fff;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name { font-size: 17px; }
.brand-name small { display: block; color: #64748b; font-size: 9px; letter-spacing: 2px; font-weight: 600; margin-top: 1px; }
.site-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-links a { font-size: 14px; color: #94a3b8; transition: .18s; }
.site-links a:hover, .site-links a.active { color: #fff; }
.site-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.site-actions .login { color: #cbd5e1; font-size: 14px; padding: 8px 10px; }
.site-actions .register { background: #fff; color: #0f172a; border-radius: 9px; padding: 9px 15px; font-size: 13px; font-weight: 700; }
.site-actions .console { background: rgba(37, 99, 235, .18); border: 1px solid rgba(96, 165, 250, .34); color: #bfdbfe; border-radius: 9px; padding: 9px 15px; font-size: 13px; font-weight: 600; }
.mobile-toggle { display: none; background: none; border: 0; color: #fff; }

.hero { position: relative; z-index: 1; padding: 84px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
    letter-spacing: 1.6px; color: #67e8f9; text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: #22d3ee; }
.hero h1 { margin: 0; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.08; letter-spacing: -1.2px; color: #fff; font-weight: 750; }
.hero h1 span { background: linear-gradient(100deg, #67e8f9, #60a5fa 55%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 590px; margin: 22px 0 0; color: #94a3b8; font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.hero-actions .primary { background: linear-gradient(120deg, #22d3ee, #2563eb); color: #fff; box-shadow: 0 14px 34px rgba(37, 99, 235, .28); }
.hero-actions .secondary { border: 1px solid rgba(148, 163, 184, .25); color: #e2e8f0; background: rgba(15, 23, 42, .4); }
.hero-trust { display: flex; gap: 28px; margin-top: 38px; }
.hero-trust div { border-left: 1px solid rgba(148, 163, 184, .18); padding-left: 16px; }
.hero-trust b { display: block; color: #fff; font-size: 20px; letter-spacing: .2px; }
.hero-trust small { color: #64748b; font-size: 12px; }
.hero-visual { position: relative; min-height: 430px; }
.hero-panel {
    position: absolute; inset: 10px 0 0 30px; border-radius: 22px; padding: 22px;
    background: linear-gradient(155deg, rgba(16, 33, 57, .95), rgba(8, 20, 38, .92));
    border: 1px solid rgba(96, 165, 250, .22); box-shadow: 0 30px 80px rgba(2, 6, 23, .55);
    overflow: hidden;
}
.hero-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(96,165,250,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(96,165,250,.07) 1px, transparent 1px); background-size: 32px 32px; }
.panel-head { position: relative; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(148,163,184,.14); padding-bottom: 14px; }
.panel-head .dots { display: flex; gap: 5px; }
.panel-head .dots i { width: 7px; height: 7px; border-radius: 50%; background: #475569; }
.panel-head .live { font-size: 10px; color: #34d399; letter-spacing: 1px; }
.panel-head .live::before { content: ""; display: inline-block; width: 6px; height: 6px; background: #34d399; border-radius: 50%; margin-right: 5px; box-shadow: 0 0 0 4px rgba(52,211,153,.12); }
.panel-title { position: relative; margin: 20px 0 2px; color: #e2e8f0; font-size: 13px; font-weight: 600; }
.panel-big { position: relative; color: #fff; font-size: 38px; font-weight: 700; letter-spacing: -.6px; }
.panel-big span { font-size: 13px; color: #64748b; font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.panel-chart { position: relative; height: 130px; margin-top: 12px; display: flex; align-items: flex-end; gap: 7px; }
.panel-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(#22d3ee, rgba(37,99,235,.18)); opacity: .9; }
.stat-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.stat-mini { background: rgba(15, 23, 42, .5); border: 1px solid rgba(148,163,184,.14); border-radius: 10px; padding: 10px 12px; }
.stat-mini small { display: block; font-size: 10px; color: #64748b; margin-bottom: 4px; }
.stat-mini b { color: #e2e8f0; font-size: 15px; }
.float-card {
    position: absolute; z-index: 2; right: -10px; bottom: 28px; width: 220px; padding: 14px 16px;
    border-radius: 13px; background: rgba(15, 23, 42, .92); border: 1px solid rgba(103, 232, 249, .24);
    box-shadow: 0 18px 48px rgba(2,6,23,.5); backdrop-filter: blur(14px);
}
.float-card .row { display: flex; align-items: center; gap: 8px; color: #e2e8f0; font-size: 12px; }
.float-card .pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 5px rgba(52,211,153,.12); }
.float-card .bar { height: 5px; border-radius: 99px; background: #1e293b; margin-top: 11px; overflow: hidden; }
.float-card .bar i { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, #22d3ee, #2563eb); border-radius: 99px; }
.float-card small { display: block; margin-top: 8px; color: #64748b; font-size: 10px; }

.section { position: relative; z-index: 1; padding: 78px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head .kicker { font-size: 12px; color: #38bdf8; letter-spacing: 2px; font-weight: 700; margin-bottom: 10px; }
.section-head h2 { margin: 0; color: #fff; font-size: 34px; letter-spacing: -.6px; }
.section-head p { margin: 8px 0 0; color: #7c8da6; font-size: 14px; max-width: 560px; line-height: 1.7; }
.section-head a { color: #93c5fd; font-size: 13px; }
.section-head a:hover { color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
    position: relative; border-radius: 16px; padding: 22px; background: linear-gradient(160deg, rgba(16,33,57,.9), rgba(9,20,36,.9));
    border: 1px solid rgba(148,163,184,.14); transition: .22s; overflow: hidden;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(96,165,250,.4); box-shadow: 0 22px 48px rgba(2,6,23,.34); }
.product-card .flag { font-size: 10px; letter-spacing: 1px; color: #67e8f9; font-weight: 700; }
.product-card h3 { margin: 12px 0 6px; color: #fff; font-size: 19px; }
.product-card .desc { color: #7f91aa; font-size: 12px; line-height: 1.6; min-height: 38px; }
.product-card .specs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.product-card .specs span { font-size: 10px; color: #cbd5e1; border: 1px solid rgba(148,163,184,.18); border-radius: 4px; padding: 3px 6px; }
.product-card .price { margin-top: 18px; display: flex; align-items: baseline; gap: 4px; }
.product-card .price b { color: #fff; font-size: 28px; letter-spacing: -.4px; }
.product-card .price small { color: #64748b; font-size: 11px; }
.product-card .link { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; color: #93c5fd; font-size: 12px; font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { border: 1px solid rgba(148,163,184,.13); border-radius: 14px; padding: 22px; background: rgba(11, 23, 42, .5); }
.feature-card .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #67e8f9; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.14); }
.feature-card h3 { color: #e2e8f0; font-size: 15px; margin: 15px 0 7px; }
.feature-card p { color: #71839b; font-size: 12px; line-height: 1.7; margin: 0; }
.cta-band {
    position: relative; z-index: 1; border-radius: 20px; padding: 38px 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
    background: linear-gradient(120deg, #0c2a4a, #123c68 60%, #0f2c50); border: 1px solid rgba(96,165,250,.24);
    box-shadow: 0 24px 60px rgba(2,6,23,.3);
}
.cta-band h2 { margin: 0; color: #fff; font-size: 28px; letter-spacing: -.4px; }
.cta-band p { margin: 8px 0 0; color: #93c5fd; font-size: 13px; }

.site-footer { position: relative; z-index: 1; margin-top: 70px; border-top: 1px solid rgba(148,163,184,.13); padding: 48px 0 30px; background: rgba(5, 12, 23, .55); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { color: #71839b; font-size: 12px; line-height: 1.8; max-width: 280px; margin: 14px 0 0; }
.footer-col h4 { margin: 0 0 14px; color: #cbd5e1; font-size: 12px; letter-spacing: .6px; }
.footer-col a { display: block; color: #71839b; font-size: 12px; padding: 5px 0; }
.footer-col a:hover { color: #e2e8f0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(148,163,184,.1); color: #52647c; font-size: 11px; }

/* public subpages */
.page-hero { position: relative; z-index: 1; padding: 64px 0 36px; }
.page-hero .breadcrumb { color: #64748b; font-size: 12px; margin-bottom: 14px; }
.page-hero h1 { margin: 0; color: #fff; font-size: 42px; letter-spacing: -.8px; }
.page-hero p { color: #8b9bb2; font-size: 14px; line-height: 1.8; max-width: 650px; margin: 12px 0 0; }
.light-panel { background: #fff; color: var(--ink); border-radius: 18px; padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.public-grid { display: grid; grid-template-columns: 1.5fr .7fr; gap: 24px; align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid #edf2f7; font-size: 13px; color: #475569; }
.spec-table td:last-child { text-align: right; color: #0f172a; font-weight: 600; }
.price-choice { display: grid; gap: 8px; margin-top: 16px; }
.price-choice label { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; cursor: pointer; }
.price-choice label:has(input:checked) { border-color: #2563eb; background: #eff6ff; }
.price-choice input { accent-color: #2563eb; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.article-card h3 { margin: 0 0 8px; font-size: 17px; }
.article-card p { color: #64748b; font-size: 13px; line-height: 1.7; margin: 0; }

/* auth */
.auth-body { min-height: 100vh; background: #07111f; color: #e2e8f0; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-side { position: relative; padding: 46px 60px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: linear-gradient(145deg, #081728, #0b2a4c 60%, #0d355b); }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(96,165,250,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(96,165,250,.06) 1px, transparent 1px); background-size: 44px 44px; }
.auth-side::after { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; bottom: -280px; background: radial-gradient(circle, rgba(34,211,238,.2), transparent 66%); }
.auth-copy { position: relative; z-index: 1; max-width: 500px; margin-top: 60px; }
.auth-copy h1 { color: #fff; font-size: 46px; line-height: 1.12; letter-spacing: -1.2px; margin: 0; }
.auth-copy h1 span { color: #67e8f9; }
.auth-copy p { color: #93a5bd; font-size: 14px; line-height: 1.9; margin: 20px 0 0; }
.auth-points { position: relative; z-index: 1; display: grid; gap: 12px; margin-top: 36px; }
.auth-point { display: flex; gap: 10px; align-items: center; color: #cbd5e1; font-size: 12px; }
.auth-point i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,211,153,.12); color: #34d399; font-style: normal; font-size: 10px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px; background: #f8fafc; }
.auth-card { width: min(420px, 100%); background: #fff; color: var(--ink); border-radius: 20px; padding: 36px; box-shadow: 0 24px 70px rgba(15,23,42,.12); }
.auth-card .brand { color: #0f172a; margin-bottom: 26px; }
.auth-card .brand-name small { color: #94a3b8; }
.auth-card h2 { margin: 0; font-size: 26px; letter-spacing: -.4px; }
.auth-card .lead { margin: 8px 0 24px; color: #64748b; font-size: 13px; line-height: 1.7; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12px; color: #64748b; }
.auth-links a { color: #2563eb; font-weight: 600; }
.auth-hint { margin-top: 20px; padding: 11px 13px; border-radius: 9px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 11px; color: #64748b; line-height: 1.6; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { font-size: 12px; font-weight: 600; color: #334155; }
.form-label span { color: #ef4444; }
.input, .select, .textarea {
    width: 100%; border: 1px solid #dbe3ee; border-radius: 9px; background: #fff; color: #0f172a;
    height: 40px; padding: 0 12px; outline: none; transition: .18s; font-size: 13px;
}
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.input::placeholder, .textarea::placeholder { color: #a3b1c4; }
.form-help { font-size: 11px; color: #94a3b8; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #475569; }
.checkbox input { accent-color: #2563eb; }

/* modal */
.modal { display: none; position: fixed; inset: 0; z-index: 80; align-items: flex-start; justify-content: center; padding: 36px 20px; overflow: auto; background: rgba(15,23,42,.5); }
.modal.open { display: flex; }
.modal-card { width: min(900px, 100%); background: #fff; border-radius: 14px; box-shadow: 0 24px 80px rgba(15,23,42,.28); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e8eef6; }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-close { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f1f5f9; color: #475569; font-size: 20px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: #e2e8f0; }
.modal-body { padding: 18px 20px 22px; max-height: calc(100vh - 140px); overflow: auto; }

/* app shell */
.app-body { background: #f5f7fb; min-height: 100vh; }
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; height: 100vh; background: #0b172a; color: #94a3b8;
    display: flex; flex-direction: column; padding: 22px 14px 16px; overflow-y: auto;
}
.sidebar .brand { padding: 0 10px; margin-bottom: 26px; color: #fff; }
.sidebar .brand-mark { width: 32px; height: 32px; }
.sidebar .brand-name { font-size: 15px; }
.sidebar .brand-name small { color: #52647c; }
.side-label { font-size: 9px; letter-spacing: 2px; color: #475569; font-weight: 700; padding: 0 12px; margin: 18px 0 8px; }
.side-nav { display: grid; gap: 3px; }
.side-link {
    display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px;
    border-radius: 9px; color: #94a3b8; font-size: 13px; font-weight: 500; transition: .16s;
}
.side-link svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.side-link:hover { background: rgba(148,163,184,.08); color: #e2e8f0; }
.side-link.active { background: linear-gradient(90deg, rgba(37,99,235,.24), rgba(37,99,235,.08)); color: #fff; box-shadow: inset 2px 0 0 #60a5fa; }
.side-link .count { margin-left: auto; font-size: 10px; background: #1e293b; color: #cbd5e1; padding: 2px 6px; border-radius: 99px; }
.side-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 10px; line-height: 18px; text-align: center; font-weight: 700; }
.notice-row { display: flex; gap: 12px; align-items: flex-start; padding: 15px 4px; border-bottom: 1px solid #f1f5f9; }
.notice-row.unread { background: #f8fbff; }
.notice-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 99px; background: #cbd5e1; flex: none; }
.notice-row.unread .notice-dot { background: #2563eb; }
.side-user { margin-top: auto; border-top: 1px solid rgba(148,163,184,.12); padding: 14px 10px 0; display: flex; align-items: center; gap: 9px; }
.avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(145deg, #334155, #1e293b); color: #e2e8f0; font-size: 12px; font-weight: 700; flex: none; }
.side-user b { display: block; color: #e2e8f0; font-size: 12px; }
.side-user small { display: block; color: #64748b; font-size: 10px; margin-top: 2px; }
.side-user form { margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; border: 0; background: transparent; color: #64748b; }
.icon-btn:hover { background: #f1f5f9; color: #0f172a; }
.sidebar .icon-btn:hover { background: rgba(148,163,184,.1); color: #fff; }

.main { min-width: 0; }
.topbar {
    height: 68px; background: rgba(255,255,255,.82); backdrop-filter: blur(16px);
    border-bottom: 1px solid #e8eef6; display: flex; align-items: center; gap: 18px; padding: 0 30px;
    position: sticky; top: 0; z-index: 30;
}
.topbar .crumb { color: #94a3b8; font-size: 12px; }
.topbar .crumb b { color: #0f172a; font-weight: 600; }
.topbar .search { margin-left: auto; width: 260px; position: relative; }
.topbar .search svg { position: absolute; left: 10px; top: 10px; width: 15px; height: 15px; color: #94a3b8; }
.topbar .search input { height: 36px; padding-left: 32px; background: #f8fafc; border-color: #e8eef6; }
.topbar .search input:focus { background: #fff; }
.topbar .top-actions { display: flex; align-items: center; gap: 8px; }
.topbar .online-dot { display: inline-flex; align-items: center; gap: 5px; color: #059669; font-size: 10px; }
.topbar .online-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.1); }
.page { padding: 28px 30px 50px; max-width: none; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -.5px; }
.page-head p { margin: 6px 0 0; color: #7b8da5; font-size: 12px; }
.page-actions { display: flex; gap: 8px; align-items: center; }
.panel { background: #fff; border: 1px solid #e7edf5; border-radius: 14px; box-shadow: 0 6px 20px rgba(15,23,42,.035); }
.panel-head { min-height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eef3f9; gap: 12px; }
.panel-head h2 { margin: 0; font-size: 15px; }
.panel-head .meta { color: #94a3b8; font-size: 11px; }
.panel-body { padding: 18px; }
.panel-body.tight { padding: 0; }
.panel-footer { padding: 14px 18px; border-top: 1px solid #eef3f9; display: flex; justify-content: space-between; align-items: center; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid #e7edf5; border-radius: 14px; padding: 18px; position: relative; overflow: hidden; box-shadow: 0 6px 20px rgba(15,23,42,.035); }
.stat-card::after { content: ""; position: absolute; right: -20px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--accent-soft, #eff6ff); }
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.stat-card .stat-label { color: #7b8da5; font-size: 11px; font-weight: 600; letter-spacing: .4px; }
.stat-card .stat-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--accent, #2563eb); background: var(--accent-soft, #eff6ff); }
.stat-card .stat-value { position: relative; z-index: 1; margin-top: 10px; font-size: 26px; font-weight: 700; letter-spacing: -.6px; }
.stat-card .stat-foot { position: relative; z-index: 1; margin-top: 5px; font-size: 11px; color: #94a3b8; }
.stat-card .stat-foot b { color: #059669; font-weight: 600; }

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

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 11px 16px; font-size: 10px; color: #94a3b8; text-transform: uppercase; letter-spacing: .7px; font-weight: 700; background: #f8fafc; border-bottom: 1px solid #eef3f9; white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; font-size: 12.5px; color: #334155; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfdff; }
.table .strong { color: #0f172a; font-weight: 600; }
.table .sub { color: #94a3b8; font-size: 10px; margin-top: 2px; }
.table .actions { text-align: right; white-space: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-empty { padding: 42px 20px; text-align: center; color: #94a3b8; font-size: 12px; }

.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; border-radius: 6px; padding: 4px 8px; font-size: 11px; }
.chip.active { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-bar .input, .filter-bar .select { width: auto; min-width: 150px; height: 36px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pagination nav { display: flex; }
.pagination .page-link, .pagination span { font-size: 11px; }

.progress { height: 6px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22d3ee, #2563eb); }
.meter-list { display: grid; gap: 14px; }
.meter-row .meter-head { display: flex; justify-content: space-between; font-size: 11px; color: #64748b; margin-bottom: 6px; }
.meter-row .meter-head b { color: #0f172a; }

.timeline { display: grid; gap: 0; }
.timeline-item { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: #e2e8f0; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; flex: none; margin-top: 3px; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2e8f0; }
.timeline-item.active .timeline-dot { background: #2563eb; box-shadow: 0 0 0 1px #bfdbfe; }
.timeline-content b { display: block; font-size: 12px; color: #1e293b; }
.timeline-content small { display: block; font-size: 10px; color: #94a3b8; margin-top: 2px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e8eef6; }
.tab { padding: 12px 14px; font-size: 12px; color: #64748b; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tab.active { color: #1d4ed8; border-color: #2563eb; }

.empty-state { padding: 46px 20px; text-align: center; }
.empty-state .empty-icon { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 14px; display: grid; place-items: center; background: #f1f5f9; color: #94a3b8; }
.empty-state h3 { margin: 0; font-size: 14px; }
.empty-state p { margin: 6px 0 16px; font-size: 12px; color: #94a3b8; }

.code-block { background: #0f172a; color: #dbeafe; border-radius: 9px; padding: 12px 14px; font-family: Consolas, monospace; font-size: 11px; line-height: 1.7; overflow-x: auto; }
.note { padding: 10px 12px; border-radius: 8px; background: #f8fafc; border: 1px solid #e8eef6; color: #64748b; font-size: 11px; line-height: 1.6; }
.note.info { background: #eff6ff; border-color: #dbeafe; color: #1e40af; }
.note.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.note.danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* console specific */
.console-hero { background: linear-gradient(120deg, #0b172a, #102c4c); border-radius: 16px; padding: 26px; color: #fff; position: relative; overflow: hidden; }
.console-hero::after { content: ""; position: absolute; right: -50px; top: -80px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(34,211,238,.2), transparent 70%); }
.console-hero h1 { margin: 0; font-size: 24px; }
.console-hero p { margin: 8px 0 0; color: #94a3b8; font-size: 12px; }
.console-hero .quick { display: flex; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.console-hero .quick a { background: rgba(255,255,255,.08); border: 1px solid rgba(148,163,184,.18); border-radius: 8px; color: #dbeafe; padding: 7px 11px; font-size: 11px; }
.console-hero .quick a:hover { background: rgba(255,255,255,.13); }
.service-card { background: #fff; border: 1px solid #e7edf5; border-radius: 13px; padding: 16px; }
.service-card .service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.service-card h3 { margin: 0; font-size: 14px; }
.service-card .service-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.service-card .service-meta div { font-size: 10px; color: #94a3b8; }
.service-card .service-meta b { display: block; color: #334155; font-size: 11px; margin-top: 2px; font-weight: 600; }
.service-card .service-actions { display: flex; gap: 6px; margin-top: 13px; }

/* responsive */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-visual { min-height: 380px; }
    .product-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .site-links { display: none; }
    .site-links.open { display: flex; position: absolute; left: 24px; right: 24px; top: 68px; background: #0b172a; border: 1px solid #1e293b; border-radius: 12px; padding: 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .mobile-toggle { display: block; margin-left: auto; }
    .site-actions { margin-left: 0; }
    .site-actions .login { display: none; }
    .auth-body { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .page { padding: 20px 16px 44px; }
    .topbar { padding: 0 16px; }
    .topbar .search { display: none; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .product-grid, .feature-grid { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 26px; }
    .public-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; }
}
