:root {
  --bg: #0a0e14;
  --bg-1: #0e141c;
  --bg-2: #131b25;
  --panel: #141d28;
  --border: #1f2c3a;
  --border-2: #2a3a4d;
  --text: #d7e2ee;
  --muted: #8295a8;
  --dim: #5c6e80;
  --accent: #36d399;
  --accent-2: #2bb789;
  --up: #2ea043;
  --grace: #d29922;
  --down: #f0506e;
  --paused: #6e7681;
  --new: #58708a;
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, #0f1a24 0%, var(--bg) 55%) fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); }

/* ---- layout ---- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10,14,20,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.3px; color: var(--text); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 22px; height: 22px; }
.nav-spring { flex: 1; }
.nav a { color: var(--muted); font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--bg-2); text-decoration: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text);
  padding: 9px 15px; border-radius: 10px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: .12s; font-family: inherit;
}
.btn:hover { border-color: #38506a; background: #18222e; text-decoration: none; }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: #042018; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--down); border-color: #3a2330; }
.btn.danger:hover { background: #241820; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- panels / cards ---- */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.grid { display: grid; gap: 14px; }
.grid.checks { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---- status dot / badge ---- */
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.up { background: var(--up); box-shadow: 0 0 0 3px rgba(46,160,67,.18); }
.dot.grace { background: var(--grace); box-shadow: 0 0 0 3px rgba(210,153,34,.18); }
.dot.down { background: var(--down); box-shadow: 0 0 0 3px rgba(240,80,110,.18); }
.dot.paused { background: var(--paused); }
.dot.new { background: var(--new); }
.pill { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 2px 8px; border-radius: 20px; }
.pill.up { color: var(--up); background: rgba(46,160,67,.12); }
.pill.grace { color: var(--grace); background: rgba(210,153,34,.12); }
.pill.down { color: var(--down); background: rgba(240,80,110,.12); }
.pill.paused { color: var(--paused); background: rgba(110,118,129,.15); }
.pill.new { color: var(--new); background: rgba(88,112,138,.15); }

/* ---- check card ---- */
.check-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: .12s; }
.check-card:hover { border-color: var(--border-2); transform: translateY(-1px); }
.check-card .row { display: flex; align-items: center; gap: 9px; }
.check-card h3 { margin: 0; font-size: 15.5px; font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-card .meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; }
.check-card .schedule { font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ---- forms ---- */
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 5px; font-weight: 600; }
input, select, textarea {
  width: 100%; background: var(--bg-1); border: 1px solid var(--border-2); color: var(--text);
  padding: 10px 12px; border-radius: 9px; font-size: 14px; font-family: inherit; outline: none; transition: .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(54,211,153,.12); }
.field { margin-bottom: 15px; }
.field .hint { color: var(--dim); font-size: 12px; margin-top: 4px; font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: inline-flex; border: 1px solid var(--border-2); border-radius: 9px; overflow: hidden; }
.seg button { background: var(--bg-1); border: none; color: var(--muted); padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: 13px; font-family: inherit; }
.seg button.active { background: var(--accent); color: #042018; }

/* ---- copy field ---- */
.copy { display: flex; gap: 8px; align-items: stretch; }
.copy input { font-family: var(--mono); font-size: 12.5px; }

/* ---- table ---- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
td { padding: 9px 10px; border-bottom: 1px solid var(--bg-2); font-family: var(--mono); font-size: 12.5px; color: var(--text); }
tr:hover td { background: var(--bg-1); }

/* ---- misc ---- */
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.h1 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; margin: 0; }
.section-head { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; }
.section-head h2 { font-size: 16px; margin: 0; flex: 1; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--border-2); border-radius: var(--radius); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #18222e; border: 1px solid var(--border-2); color: var(--text); padding: 11px 18px; border-radius: 10px; z-index: 100; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.toast.err { border-color: #3a2330; color: var(--down); }
.modal-bg { position: fixed; inset: 0; background: rgba(4,7,11,.72); display: flex; align-items: flex-start; justify-content: center; padding: 50px 16px; z-index: 60; overflow: auto; }
.modal { background: var(--panel); border: 1px solid var(--border-2); border-radius: 14px; max-width: 560px; width: 100%; padding: 24px; }
.modal h2 { margin: 0 0 18px; font-size: 18px; }
.spacer { height: 1px; background: var(--border); margin: 18px 0; }
.banner { padding: 12px 15px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.banner.warn { background: rgba(210,153,34,.1); border: 1px solid rgba(210,153,34,.3); color: #e8c886; }
.banner.info { background: rgba(54,211,153,.08); border: 1px solid rgba(54,211,153,.25); color: #9be9c9; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 5px; background: var(--bg-2); color: var(--muted); margin-right: 4px; }

/* ---- auth screen ---- */
.auth { max-width: 380px; margin: 8vh auto; }
.auth .card { padding: 28px; }
.auth h1 { font-size: 20px; margin: 0 0 6px; }

/* ---- landing ---- */
.hero { padding: 80px 0 50px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 18px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), #5ad1ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; margin: 40px 0; }
.feat h3 { margin: 0 0 7px; font-size: 16px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }
.feat .ic { font-size: 22px; margin-bottom: 8px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin: 24px 0; }
.price .amt { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.price .amt span { font-size: 15px; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 14px 0 0; }
.price li { padding: 5px 0; color: var(--muted); font-size: 14px; }
.price li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.price.featured { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2); }
.codeblock { background: #06090d; border: 1px solid var(--border); border-radius: 10px; padding: 16px; overflow: auto; font-family: var(--mono); font-size: 13px; color: #b7d4c8; }
.codeblock .c { color: var(--dim); }
.footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 30px 0; color: var(--dim); font-size: 13px; }
.footer a { color: var(--muted); }
hr.soft { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .topbar .wrap { gap: 10px; } .nav a { padding: 6px; } }
