/* ───────────────────────── notifar.io design system ───────────────────────── */
@import url("/fonts/fonts.css");

:root {
  --brand: #2F6BFF; --brand-600: #1F5EFF; --brand-700: #1A4FD6; --brand-100: #E8EFFF; --brand-50: #F3F6FF; --brand-2: #56A8FF;
  --ink: #1B2233; --ink-2: #3F4756; --muted: #6B7383; --muted-2: #8A94A6; --line: #E4E8F0; --line-2: #EEF1F6;
  --bg: #F5F7FB; --card: #FFFFFF; --dark: #0F1B3D;
  --up: #22C55E; --up-bg: #E9F9EF; --down: #EF4444; --down-bg: #FDECEC; --warn: #F59E0B; --warn-bg: #FFF4E0; --info: #3B82F6; --info-bg: #E8F0FF; --paused: #9CA3AF; --paused-bg: #F1F3F6;
  --r: 12px; --r-sm: 8px; --r-lg: 18px;
  --shadow: 0 1px 2px rgba(27,34,51,.06), 0 4px 16px rgba(27,34,51,.06); --shadow-lg: 0 12px 40px rgba(27,34,51,.14);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; --font-head: Montserrat, Inter, -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--brand); text-decoration: none; } a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 34px; } h2 { font-size: 26px; } h3 { font-size: 19px; } h4 { font-size: 16px; }
p { margin: 0 0 1em; } small, .small { font-size: 13px; } .muted { color: var(--muted); } .muted-2 { color: var(--muted-2); }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
pre { background: #0F172A; color: #E2E8F0; padding: 14px 16px; border-radius: var(--r-sm); overflow: auto; line-height: 1.5; }
code:not(pre code) { background: var(--line-2); padding: 1px 6px; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; } .text-right { text-align: right; }
.mt-0{margin-top:0} .mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:24px} .mt-4{margin-top:32px} .mb-0{margin-bottom:0} .mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:24px}
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .grow { flex: 1; }
.grid { display: grid; gap: 16px; } .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } h1 { font-size: 28px; } h2 { font-size: 22px; } }

/* Icons */
.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .i-sm { width: 14px; height: 14px; } .i-lg { width: 24px; height: 24px; } .i-xl { width: 32px; height: 32px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: 600 14px/1.2 var(--font); cursor: pointer; transition: .15s; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(47,107,255,.25); } .btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); } .btn-secondary:hover { border-color: #C9D1DE; background: #FAFBFD; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); } .btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-danger { background: var(--down-bg); color: #B91C1C; } .btn-danger:hover { background: #FBDADA; color: #991B1B; }
.btn-success { background: var(--up); color: #fff; } .btn-success:hover { background: #16A34A; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: #0F172A; color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; } .btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; } .btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.btn-icon { padding: 8px; } .btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* Forms */
.form-group { margin-bottom: 16px; }
label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, .select, .textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: 14px/1.4 var(--font); color: var(--ink); transition: .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,107,255,.15); }
.input.is-invalid, .select.is-invalid { border-color: var(--down); }
.textarea { min-height: 90px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7383' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; } .error-text { font-size: 12px; color: var(--down); margin-top: 5px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; color: var(--ink); cursor: pointer; margin: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.input-group { display: flex; } .input-group .input { border-radius: 10px 0 0 10px; } .input-group .btn { border-radius: 0 10px 10px 0; }
.form-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 16px; }
.w-full { grid-column: span 6; } .w-half { grid-column: span 3; } .w-third { grid-column: span 2; } .w-twothirds { grid-column: span 4; } .w-sixth { grid-column: span 1; }
@media (max-width: 760px) { .w-half, .w-third, .w-twothirds { grid-column: span 6; } .w-sixth { grid-column: span 3; } }
.form-section { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); } .form-section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.kv-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; margin-bottom: 8px; }

/* Cards / layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-body { padding: 20px; } .card-header { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; } .card-header h3 { margin: 0; font-size: 16px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--line-2); background: #FAFBFD; border-radius: 0 0 var(--r) var(--r); }
.stat { padding: 18px 20px; } .stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; } .stat-value { font-family: var(--font-head); font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; line-height: 1.1; } .stat-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.stat--up .stat-value { color: #15803D; } .stat--down .stat-value { color: #B91C1C; } .stat--warn .stat-value { color: #B45309; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; } .table tbody tr:hover { background: #FAFBFD; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Badges & status */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.badge-up { background: var(--up-bg); color: #15803D; } .badge-down { background: var(--down-bg); color: #B91C1C; } .badge-degraded { background: var(--warn-bg); color: #B45309; } .badge-pending { background: var(--paused-bg); color: #4B5563; } .badge-paused { background: var(--paused-bg); color: #6B7280; } .badge-maintenance { background: var(--info-bg); color: #1D4ED8; } .badge-info { background: var(--info-bg); color: #1D4ED8; } .badge-brand { background: var(--brand-100); color: var(--brand-700); } .badge-neutral { background: var(--line-2); color: var(--ink-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: var(--paused); }
.dot-up { background: var(--up); box-shadow: 0 0 0 3px rgba(34,197,94,.18); } .dot-down { background: var(--down); box-shadow: 0 0 0 3px rgba(239,68,68,.2); animation: pulse 1.4s infinite; } .dot-degraded { background: var(--warn); box-shadow: 0 0 0 3px rgba(245,158,11,.2); } .dot-pending { background: var(--paused); } .dot-paused { background: #CBD5E1; } .dot-maintenance { background: var(--info); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(239,68,68,.2);} 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.08);} }
.type-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--line-2); padding: 3px 8px; border-radius: 6px; }

/* Alerts / flash */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--up-bg); color: #166534; border-color: #BBF7D0; } .alert-error { background: var(--down-bg); color: #991B1B; border-color: #FECACA; } .alert-info { background: var(--info-bg); color: #1E40AF; border-color: #BFDBFE; } .alert-warn { background: var(--warn-bg); color: #92400E; border-color: #FDE68A; }
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px; max-width: 360px; animation: toast-in .25s ease; }
.toast-down { background: #B91C1C; } .toast-up { background: #15803D; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

/* Tabs, dropdown, modal */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; } .tab.active, .tab:hover { color: var(--brand); border-color: var(--brand); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; } .pill { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); } .pill.active { background: var(--ink); color: #fff; border-color: var(--ink); } .pill:hover { border-color: #C9D1DE; }
.dropdown { position: relative; } .dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; display: none; } .dropdown.open .dropdown-menu { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; font-size: 14px; color: var(--ink); width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; } .dropdown-item:hover { background: var(--line-2); } .dropdown-item.danger { color: #B91C1C; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; } .modal-backdrop.open { display: flex; }
.modal { background: var(--card); border-radius: var(--r-lg); width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto; } .modal-header { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; } .modal-header h3 { margin: 0; } .modal-body { padding: 22px; } .modal-footer { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px; }
details.acc { border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-bottom: 8px; } details.acc summary { padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; } details.acc summary > span { flex: 1; } details.acc summary::-webkit-details-marker { display: none; } details.acc summary::after { content: "+"; color: var(--muted); font-size: 20px; } details.acc[open] summary::after { content: "–"; } details.acc .acc-body { padding: 0 18px 16px; color: var(--ink-2); }
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 20px; } .pagination a, .pagination span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; } .pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); } .empty h3 { color: var(--ink); } .empty .i { width: 40px; height: 40px; color: var(--muted-2); margin-bottom: 12px; }
.kbd { font: 12px ui-monospace, monospace; background: var(--line-2); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); }
.copy-field { display: flex; gap: 6px; } .copy-field .input { font-family: ui-monospace, monospace; font-size: 13px; }
.tooltip { position: relative; } .tooltip[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 6px; white-space: nowrap; z-index: 20; pointer-events: none; }
.progress { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; } .progress > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

/* Uptime bars */
.ubars { display: flex; gap: 2px; height: 28px; align-items: stretch; } .ubars span { flex: 1; border-radius: 2px; background: var(--up); min-width: 2px; position: relative; } .ubars span.na { background: var(--line); } .ubars span.warn { background: var(--warn); } .ubars span.bad { background: var(--down); }
.ubars span:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 6px; white-space: nowrap; z-index: 20; }
.ubars-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); margin-top: 6px; }

/* Chart */
.chart { width: 100%; height: 220px; } .chart svg { width: 100%; height: 100%; display: block; overflow: visible; } .chart-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 8px; } .chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 6px; white-space: nowrap; z-index: 30; display: none; }
.bars-mini { display: flex; align-items: flex-end; gap: 2px; height: 60px; } .bars-mini span { flex: 1; background: var(--brand-2); border-radius: 2px 2px 0 0; min-height: 2px; }

/* ───────────── Public layout ───────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink); } .logo img, .logo svg { height: 40px; width: auto; } .logo b { color: var(--brand); font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; } .nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); } .nav a:hover { background: var(--line-2); color: var(--ink); } .nav .btn { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; }
@media (max-width: 860px) { .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; flex-direction: column; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); } .nav.open { display: flex; } .nav a { width: 100%; } .nav-toggle { display: inline-flex; } }
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 48px 0 28px; margin-top: 80px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } .site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; } .site-footer a { color: var(--ink-2); display: block; padding: 4px 0; } .site-footer a:hover { color: var(--brand); }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--muted-2); font-size: 13px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.page { padding: 48px 0; } .page-head { margin-bottom: 32px; } .page-head p { font-size: 17px; color: var(--ink-2); max-width: 760px; }
.section { padding: 72px 0; } .section-title { text-align: center; max-width: 720px; margin: 0 auto 40px; } .section-title h2 { font-size: 32px; } .section-title p { font-size: 17px; color: var(--ink-2); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.prose { font-size: 16px; color: var(--ink-2); } .prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; } .prose ul { padding-left: 22px; } .prose li { margin-bottom: 6px; } .prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; } .prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; } .prose th { color: var(--muted); font-size: 12px; text-transform: uppercase; }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 500px at 80% -10%, rgba(47,107,255,.16), transparent 60%), radial-gradient(800px 400px at 10% 10%, rgba(86,168,255,.12), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; } @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: 46px; line-height: 1.08; margin-bottom: 18px; } .hero h1 span { color: var(--brand); } @media (max-width: 600px) { .hero h1 { font-size: 32px; } }
.hero p.lead { font-size: 18px; color: var(--ink-2); margin-bottom: 26px; max-width: 560px; }
.hero-check { display: flex; gap: 8px; max-width: 560px; } .hero-check .input { height: 52px; font-size: 16px; padding-left: 16px; border-radius: 12px; } .hero-check .btn { height: 52px; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 10px; } .hero-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; font-size: 13px; color: var(--ink-2); } .hero-badges span { display: inline-flex; align-items: center; gap: 6px; } .hero-badges .i { color: var(--up); }
.hero-visual { position: relative; } .mock { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px; } .mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px solid var(--line-2); font-size: 14px; } .mock-row:last-child { border: 0; } .mock-row .name { font-weight: 600; flex: 1; } .mock-row .ms { color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-alert { position: absolute; right: -14px; bottom: -22px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; border: 1px solid var(--line); max-width: 300px; animation: float 4s ease-in-out infinite; } .mock-alert b { display: block; } .mock-alert .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--down-bg); color: var(--down); display: flex; align-items: center; justify-content: center; flex: none; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-6px);} }
@media (max-width: 900px) { .mock-alert { position: static; margin-top: 12px; } }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; } .stats-row .stat { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); } @media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } .step { position: relative; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); } .step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; margin-bottom: 14px; } @media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } @media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { display: block; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); transition: .15s; } .feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #C9D6FF; color: var(--ink); } .feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-100); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; } .feature h3 { font-size: 16px; margin-bottom: 6px; } .feature p { font-size: 14px; color: var(--muted); margin: 0; }
.dark-section { background: var(--dark); color: #fff; } .dark-section h2, .dark-section h3 { color: #fff; } .dark-section p { color: #C7D2E5; }
.map-wrap { position: relative; color: rgba(255,255,255,.14); } .map-wrap svg.world { width: 100%; height: auto; display: block; } .map-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(86,168,255,.25); } .map-dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(86,168,255,.5); animation: ping 2s infinite; } .map-dot[data-name]:hover::before { content: attr(data-name); position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--ink); font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1;} 100% { transform: scale(1.8); opacity: 0;} }
.loc-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; } .loc-list span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; color: #E2E8F0; }
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } .channel { text-align: center; padding: 26px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); } .channel .ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: flex; align-items: center; justify-content: center; } @media (max-width: 760px) { .channels { grid-template-columns: repeat(2, 1fr); } }
.price-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; } .price-table th, .price-table td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); text-align: left; } .price-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #FAFBFD; } .price-table td.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; } .calc-result { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--brand); }
.cta { background: linear-gradient(135deg, var(--brand) 0%, #4C8DFF 100%); color: #fff; border-radius: 24px; padding: 56px 40px; text-align: center; } .cta h2 { color: #fff; font-size: 32px; } .cta p { color: rgba(255,255,255,.85); font-size: 17px; } .cta .btn-primary { background: #fff; color: var(--brand-700); box-shadow: none; } .cta .btn-primary:hover { background: #F3F6FF; color: var(--brand-700); }
.check-results .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); } .check-results .row:last-child { border: 0; } .check-results .loc { font-weight: 600; min-width: 160px; } .check-results .ms { font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 80px; text-align: right; } .check-results .err { color: #B91C1C; font-size: 13px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; } @keyframes spin { to { transform: rotate(360deg);} }

/* ───────────── Auth ───────────── */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; } @media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-side { background: var(--dark); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background-image: radial-gradient(600px 400px at 80% 20%, rgba(47,107,255,.35), transparent 60%); } .auth-side .logo, .auth-side .logo b { color: #fff; } .auth-side .logo b { color: var(--brand-2); }
.auth-side h2 { color: #fff; font-size: 30px; } .auth-side p { color: #C7D2E5; font-size: 16px; } .auth-side ul { list-style: none; padding: 0; margin: 24px 0; } .auth-side li { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: #E2E8F0; } .auth-side li .i { color: var(--brand-2); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; } .auth-card { width: 100%; max-width: 420px; } .auth-card h1 { font-size: 26px; margin-bottom: 6px; } .auth-card .sub { color: var(--muted); margin-bottom: 24px; }

/* ───────────── Cabinet ───────────── */
.cab { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar-backdrop { display: none; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 18px 14px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar .snav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.sidebar .logo { padding: 6px 10px 18px; font-size: 20px; } .sidebar .logo img { height: 34px; }
.snav a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 2px; } .snav a:hover { background: var(--line-2); color: var(--ink); } .snav a.active { background: var(--brand-100); color: var(--brand-700); } .snav a .i { width: 18px; height: 18px; } .snav .sep { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); padding: 12px 12px 4px; font-weight: 700; }
.snav .count { margin-left: auto; font-size: 11px; background: var(--line-2); padding: 1px 7px; border-radius: 999px; color: var(--muted); } .snav .count.down { background: var(--down); color: #fff; }
.sidebar-bottom { flex: none; margin-top: 8px; padding: 12px 10px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.balance-box { background: var(--bg); border-radius: 10px; padding: 12px; margin-bottom: 10px; } .balance-box .amount { font-family: var(--font-head); font-weight: 800; font-size: 20px; } .balance-box.low { background: var(--warn-bg); } .balance-box.zero { background: var(--down-bg); }
.cab-main { min-width: 0; } .cab-top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; } .cab-top h1 { font-size: 20px; margin: 0; } .cab-top .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.cab-body { padding: 24px 28px 60px; }
.menu-toggle { display: none; }
@media (max-width: 960px) { .cab { grid-template-columns: 1fr; } .sidebar { position: fixed; left: -280px; top: 0; width: 260px; z-index: 60; transition: left .2s; box-shadow: var(--shadow-lg); } .sidebar.open { left: 0; } .menu-toggle { display: inline-flex; } .cab-top, .cab-body { padding-left: 16px; padding-right: 16px; } .sidebar-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 55; } .sidebar-backdrop.open { display: block; } }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.mon-row .name { font-weight: 600; } .mon-row .target { font-size: 12px; color: var(--muted); } .mon-row td:first-child { width: 36px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; } .filters .input, .filters .select { width: auto; min-width: 160px; }
.type-card { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); height: 100%; transition: .15s; } .type-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); } .type-card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-100); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; } .type-card h3 { font-size: 15px; margin-bottom: 4px; } .type-card p { font-size: 13px; color: var(--muted); margin: 0 0 8px; } .type-card .price { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.loc-pick { display: flex; flex-wrap: wrap; gap: 8px; } .loc-pick label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-size: 13px; font-weight: 600; margin: 0; } .loc-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); } .loc-pick input { accent-color: var(--brand); }
.contact-pick { display: flex; flex-direction: column; gap: 6px; } .contact-pick .row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); } .contact-pick .row .input { width: 90px; margin-left: auto; padding: 5px 8px; }
.estimate { background: var(--brand-50); border: 1px solid #D6E2FF; border-radius: 12px; padding: 14px 16px; font-size: 14px; } .estimate b { font-family: var(--font-head); font-size: 20px; color: var(--brand-700); }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; } .timeline li:last-child { border: 0; } .timeline .t { color: var(--muted-2); font-size: 12px; white-space: nowrap; min-width: 92px; font-variant-numeric: tabular-nums; } .timeline .ev { flex: 1; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; } .loc-card { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); display: flex; gap: 10px; align-items: center; } .loc-card .n { font-weight: 600; font-size: 14px; } .loc-card .s { font-size: 12px; color: var(--muted); }
.sticky-actions { position: sticky; bottom: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 20px; display: flex; gap: 8px; justify-content: flex-end; z-index: 10; }
.bulk-bar { display: none; align-items: center; gap: 8px; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 10px; margin-bottom: 12px; } .bulk-bar.open { display: flex; } .bulk-bar .btn { background: rgba(255,255,255,.12); color: #fff; }
.api-key { font-family: ui-monospace, monospace; font-size: 13px; background: var(--warn-bg); border: 1px solid #FDE68A; padding: 10px 12px; border-radius: 8px; word-break: break-all; }
.day-bars { display: flex; gap: 3px; align-items: flex-end; height: 120px; } .day-bars span { flex: 1; background: var(--brand-2); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; } .day-bars span:hover { background: var(--brand); } .day-bars span:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 20; }

/* Status page */
.sp { max-width: 880px; margin: 0 auto; padding: 40px 20px 80px; } .sp-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; } .sp-head img { height: 40px; } .sp-overall { padding: 20px 24px; border-radius: 14px; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; } .sp-overall.up { background: var(--up-bg); color: #15803D; } .sp-overall.down { background: var(--down-bg); color: #B91C1C; } .sp-overall.degraded { background: var(--warn-bg); color: #B45309; }
.sp-mon { padding: 16px 20px; border-bottom: 1px solid var(--line-2); } .sp-mon:last-child { border: 0; } .sp-mon .top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .sp-mon .name { font-weight: 600; flex: 1; } .sp-mon .pct { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }
.sp-foot { text-align: center; color: var(--muted-2); font-size: 13px; margin-top: 32px; }
[data-theme="dark"] .sp-wrap, .sp-wrap.dark { --bg: #0F172A; --card: #1E293B; --ink: #F1F5F9; --ink-2: #CBD5E1; --muted: #94A3B8; --line: #334155; --line-2: #263244; --up-bg: rgba(34,197,94,.15); --down-bg: rgba(239,68,68,.15); --warn-bg: rgba(245,158,11,.15); }
