:root {
  --ink: #0f1320;
  --ink-2: #151b2a;
  --ink-3: #1c2435;
  --line: rgba(185, 199, 228, .13);
  --line-bright: rgba(185, 199, 228, .25);
  --text: #e9edf7;
  --muted: #8d99b1;
  --faint: #5e6a82;
  --lime: #c8f169;
  --lime-ink: #273214;
  --violet: #a9a5ff;
  --blue: #81c8ff;
  --amber: #f4c970;
  --red: #ff8c9f;
  --radius: 14px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.app-shell { min-height: 100vh; }
.boot-screen { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.brand-mark { font-size: 42px; color: var(--lime); line-height: 1; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 12% 12%, #273657 0, transparent 30%), var(--ink); }
.login-card { width: min(420px, 100%); padding: 38px; background: rgba(21, 27, 42, .92); border: 1px solid var(--line-bright); border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.brand-lockup { display: flex; gap: 12px; align-items: center; margin-bottom: 44px; }
.brand-lockup .brand-mark { font-size: 32px; }
.brand-name { font-weight: 730; letter-spacing: -.04em; font-size: 21px; }
.brand-sub { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 4vw, 45px); letter-spacing: -.055em; line-height: 1.02; }
h2 { font-size: 20px; letter-spacing: -.035em; }
h3 { font-size: 15px; }
.login-card h1 { font-size: 32px; margin-bottom: 10px; }
.lede { color: var(--muted); line-height: 1.6; font-size: 14px; }
.form-stack { display: grid; gap: 17px; margin-top: 28px; }
.field { display: grid; gap: 7px; }
.field-label { font-size: 12px; color: var(--muted); }
input, select, textarea { width: 100%; color: var(--text); background: #101624; border: 1px solid var(--line-bright); border-radius: 9px; padding: 12px 13px; transition: border-color .18s ease, box-shadow .18s ease; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(169,165,255,.13); outline: none; }
textarea { resize: vertical; min-height: 94px; }
.btn { border: 1px solid transparent; border-radius: 9px; padding: 11px 15px; color: var(--text); background: var(--ink-3); font-weight: 650; font-size: 13px; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); background: #263149; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: #d6fa84; }
.btn-quiet { color: var(--muted); background: transparent; border-color: var(--line); }
.btn-danger { color: var(--red); border-color: rgba(255,140,159,.25); background: rgba(255,140,159,.07); }
.btn-block { width: 100%; }
.error-box, .warning-box { border-radius: 9px; padding: 11px 13px; font-size: 13px; line-height: 1.5; }
.error-box { color: var(--red); background: rgba(255,140,159,.09); border: 1px solid rgba(255,140,159,.2); }
.warning-box { color: var(--amber); background: rgba(244,201,112,.08); border: 1px solid rgba(244,201,112,.2); }
.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 238px 1fr; }
.sidebar { padding: 28px 16px; border-right: 1px solid var(--line); background: rgba(15,19,32,.84); display: flex; flex-direction: column; }
.sidebar .brand-lockup { margin: 0 13px 58px; }
.nav { display: grid; gap: 5px; }
.nav button { text-align: left; border: 0; color: var(--muted); background: transparent; padding: 11px 13px; border-radius: 9px; font-size: 13px; display: flex; align-items: center; gap: 11px; }
.nav button:hover { color: var(--text); background: var(--ink-2); }
.nav button.active { color: var(--text); background: var(--ink-3); box-shadow: inset 3px 0 var(--lime); }
.nav-icon { width: 17px; text-align: center; color: var(--violet); font-size: 15px; }
.sidebar-foot { margin-top: auto; padding: 15px 12px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; line-height: 1.5; }
.status-light { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: 6px; box-shadow: 0 0 12px rgba(200,241,105,.7); }
.main { min-width: 0; padding: 31px clamp(20px, 4vw, 55px) 55px; background: radial-gradient(circle at 85% -10%, rgba(103,98,203,.12), transparent 33%); }
.topbar { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 48px; }
.mobile-menu { display: none; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb strong { color: var(--text); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.user-chip { color: var(--muted); font-size: 12px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 33px; }
.hero-copy { max-width: 620px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--lime); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 13px; }
.eyebrow::before { content: ""; width: 21px; height: 1px; background: var(--lime); }
.hero p { margin-top: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; margin-bottom: 25px; }
.stat { position: relative; min-height: 108px; padding: 17px; border: 1px solid var(--line); background: rgba(21,27,42,.68); border-radius: var(--radius); overflow: hidden; }
.stat::after { content: ""; position: absolute; width: 80px; height: 80px; right: -40px; bottom: -45px; border-radius: 50%; background: rgba(169,165,255,.12); }
.stat.highlight { border-color: rgba(200,241,105,.33); background: linear-gradient(135deg, rgba(200,241,105,.1), rgba(21,27,42,.72) 70%); }
.stat.highlight::after { background: rgba(200,241,105,.24); }
.stat-number { display: block; font-size: 30px; letter-spacing: -.06em; font-weight: 680; margin-bottom: 9px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-note { color: var(--faint); font-size: 11px; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 17px; }
.panel { background: rgba(21,27,42,.68); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-head small { color: var(--muted); font-size: 11px; }
.panel-body { padding: 19px 20px; }
.health-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.health-cell { padding: 14px; background: rgba(15,19,32,.55); border-radius: 10px; }
.health-cell .label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.health-cell .value { font-size: 14px; }
.health-good { color: var(--lime); }
.health-warn { color: var(--amber); }
.domain-list { display: grid; }
.domain-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 150px 115px; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .18s ease; }
.domain-row:last-child { border-bottom: 0; }
.domain-row:hover { background: rgba(169,165,255,.05); }
.domain-name { font-weight: 650; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-meta { color: var(--muted); font-size: 11px; margin-top: 5px; }
.domain-date { color: var(--muted); font-size: 11px; text-align: right; }
.badge { display: inline-flex; width: fit-content; align-items: center; gap: 6px; border: 1px solid var(--line-bright); border-radius: 99px; padding: 5px 8px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-registered { color: var(--blue); }
.badge-redemption_period, .badge-pending_delete { color: var(--amber); }
.badge-potentially_available, .badge-availability_confirmed { color: var(--lime); border-color: rgba(200,241,105,.3); }
.badge-lookup_error, .badge-rate_limited { color: var(--red); }
.badge-monitoring_paused { color: var(--faint); }
.badge-unknown { color: var(--violet); }
.empty { padding: 35px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty strong { display: block; color: var(--text); margin-bottom: 7px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-grid { display: grid; gap: 20px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.toolbar input { max-width: 280px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 14px 16px; font-size: 12px; }
th { color: var(--faint); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 620; }
tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 6px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); padding: 5px; }
.icon-btn:hover { color: var(--text); }
.detail-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 25px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-domain { font-size: clamp(27px, 4vw, 40px); letter-spacing: -.06em; overflow-wrap: anywhere; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 11px; bottom: 11px; width: 1px; background: var(--line-bright); }
.timeline-item { position: relative; display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 14px; padding: 0 0 22px; }
.timeline-dot { width: 15px; height: 15px; margin-top: 2px; border: 3px solid var(--ink-2); border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 1px var(--line-bright); }
.timeline-item:first-child .timeline-dot { background: var(--lime); }
.timeline-title { font-size: 13px; color: var(--text); }
.timeline-detail { color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 5px; }
.timeline-time { color: var(--faint); font-size: 10px; margin-top: 6px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr); gap: 17px; }
.notice-list { display: grid; gap: 9px; }
.notice { display: flex; align-items: start; gap: 9px; padding: 11px; border-radius: 8px; background: rgba(244,201,112,.07); color: var(--amber); font-size: 12px; line-height: 1.5; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; gap: 8px; max-width: 360px; }
.toast { padding: 13px 15px; background: #263149; border: 1px solid var(--line-bright); box-shadow: 0 14px 30px rgba(0,0,0,.25); border-radius: 9px; font-size: 12px; line-height: 1.45; }
.toast.success { border-color: rgba(200,241,105,.35); }
.toast.error { border-color: rgba(255,140,159,.35); color: var(--red); }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1050px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } .grid-2, .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .dashboard-shell { display: block; }
  .sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 238px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.3); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-flex; }
  .main { padding: 20px 15px 38px; }
  .topbar { margin-bottom: 35px; }
  .hero { display: block; }
  .hero .btn { margin-top: 19px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { min-height: 92px; padding: 13px; }
  .stat-number { font-size: 25px; }
  .domain-row { grid-template-columns: minmax(0,1fr) auto; padding: 14px; }
  .domain-date { display: none; }
  .panel-head, .panel-body { padding-left: 15px; padding-right: 15px; }
  .login-card { padding: 27px; }
  .detail-head { display: block; }
  .detail-actions { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
