:root {
  --bg: #070b16;
  --bg-soft: #0e1528;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: #ffffff;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: #e8edf6;
  --text: #f8fafc;
  --text-dark: #0f172a;
  --muted: #94a3b8;
  --muted-dark: #64748b;
  --brand: #6366f1;
  --brand-2: #22d3ee;
  --brand-3: #a78bfa;
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
  --radius: 22px;
  --font: Inter, system-ui, sans-serif;
  --display: Sora, Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: #f5f7fb;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand img, .brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 22px; color: #cbd5e1; font-size: 14px; }
.nav-links a:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #8b5cf6 55%, var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
  pointer-events: none;
}
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid var(--line);
}
.btn-light { background: #fff; color: var(--text-dark); border: 1px solid var(--line-dark); }
.btn-danger { background: #fee2e2; color: #991b1b; }
.btn-sm { padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.btn-block { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(99,102,241,.35), transparent 55%),
    radial-gradient(700px 380px at 90% 10%, rgba(34,211,238,.22), transparent 50%),
    linear-gradient(180deg, #070b16 0%, #10182d 100%);
  color: #fff;
  padding: 72px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto 10% -180px;
  height: 360px;
  background: radial-gradient(circle, rgba(99,102,241,.25), transparent 70%);
  filter: blur(20px);
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50% { transform: translateY(-18px); opacity: 1; }
}
.hero-grid { position: relative; display: grid; gap: 28px; }
.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: #c7d2fe;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, .display {
  font-family: var(--display);
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 16px 0;
}
.hero h1 { font-size: clamp(40px, 7vw, 72px); max-width: 14ch; }
.lede { max-width: 54ch; color: #cbd5e1; font-size: 18px; }
.shorten-card {
  margin-top: 32px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.shorten-form { display: flex; gap: 8px; }
.shorten-form input {
  flex: 1;
  border: 0;
  background: rgba(7,11,22,.55);
  color: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  outline: none;
}
.shorten-form input::placeholder { color: #94a3b8; }
.result-card {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #fff;
  color: var(--text-dark);
  border-radius: 18px;
  padding: 14px 16px;
}
.result-card code { color: var(--brand); font-weight: 700; word-break: break-all; }

.section { padding: 84px 0; }
.section.alt { background: #fff; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-title h2 { font-family: var(--display); font-size: 36px; letter-spacing: -0.04em; margin: 0 0 8px; }
.muted { color: var(--muted-dark); }
.grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card, .glass {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.feature-card { transition: .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.08); }
.icon-wrap {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  color: var(--brand);
  margin-bottom: 14px;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-card {
  text-align: center;
  padding: 32px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--line-dark);
}
.stat-card strong {
  display: block;
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer {
  background: #070b16;
  color: #cbd5e1;
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer a:hover { color: #fff; }
.copyright { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; }

.page-hero { padding: 48px 0 12px; }
.prose { max-width: 760px; }
.prose h1 { font-family: var(--display); letter-spacing: -0.04em; }
.form-grid { display: grid; gap: 14px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input, select, textarea {
  width: 100%;
  border: 1px solid #dbe3f0;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
.input:focus, select:focus, textarea:focus { border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.help { color: var(--muted-dark); font-size: 12px; margin-top: 6px; }

.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; }
.toast {
  min-width: 240px;
  background: #0f172a;
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.toast.success { background: #065f46; }
.toast.error { background: #9f1239; }
.alert { padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; }
.alert-error { background: #fff1f2; color: #9f1239; }
.alert-success { background: #ecfdf5; color: #047857; }
.alert-info { background: #eef2ff; color: #3730a3; }

.admin-shell { display: flex; min-height: 100vh; background: #eef2f7; }
.sidebar {
  width: 268px;
  background: #0b1220;
  color: #cbd5e1;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.side-nav a, .side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { flex: 1; min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
}
.menu-toggle { display: none; }
.admin-content { padding: 0 24px 40px; }
.cards-6, .cards-4 { display: grid; gap: 14px; margin-bottom: 18px; }
.cards-6 { grid-template-columns: repeat(6, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.kpi {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--line-dark);
}
.kpi span { color: var(--muted-dark); font-size: 12px; }
.kpi b { display: block; font-size: 28px; letter-spacing: -0.04em; margin-top: 4px; }
.table-wrap { overflow: auto; background: #fff; border-radius: 18px; border: 1px solid var(--line-dark); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef2f7; font-size: 14px; }
th { color: var(--muted-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-ok { background: #d1fae5; color: #065f46; }
.badge-off { background: #fee2e2; color: #991b1b; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted-dark);
}
.chart-card { background: #fff; border-radius: 18px; padding: 18px; border: 1px solid var(--line-dark); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .input, .filters select { width: auto; min-width: 160px; }
.pager { display: flex; gap: 8px; justify-content: flex-end; padding: 12px; }

.links-page { display: grid; gap: 16px; }
.links-toolbar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 0;
}
.links-search {
  position: relative;
  flex: 1;
  min-width: min(280px, 100%);
}
.links-search i, .links-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}
.links-search .input { width: 100%; min-width: 0; padding-left: 40px; }
.links-table { box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06); }
.links-table table { min-width: 980px; }
.links-table thead th {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 1;
  font-weight: 700;
}
.links-table tbody tr { transition: background .15s ease; }
.links-table tbody tr:hover { background: #f8fafc; }
.links-table td, .links-table th { padding: 16px 14px; vertical-align: middle; }
.short-cell { display: grid; gap: 2px; }
.short-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: -0.02em;
}
.short-code:hover { text-decoration: underline; }
.short-host { font-size: 12px; color: var(--muted-dark); }
.orig-cell { color: #475569; max-width: 280px; }
.num-cell { font-variant-numeric: tabular-nums; font-weight: 700; }
.action-bar { display: inline-flex; align-items: center; gap: 6px; }
.action-bar form { display: inline-flex; margin: 0; }
.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e8edf6;
  background: #fff;
  color: #334155;
  cursor: pointer;
  padding: 0;
  transition: .15s ease;
}
.icon-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}
.icon-btn.danger { color: #be123c; }
.icon-btn.danger:hover { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.is-copied { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  color: var(--brand);
}
.empty-icon svg { width: 24px; height: 24px; }

.widget-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.widget-head h3 { margin: 0; font-family: var(--display); letter-spacing: -0.03em; }
.dash-grid .chart-card { min-width: 0; }
.dash-embed { border: 0; box-shadow: none; }
.dash-embed table { min-width: 640px; }
.device-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.device-pill {
  background: #f8fafc;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: 12px;
}
.device-pill span, .device-pill em { display: block; color: var(--muted-dark); font-size: 12px; font-style: normal; }
.device-pill b { display: block; font-size: 22px; letter-spacing: -0.04em; margin: 4px 0; }
.meter {
  height: 6px;
  border-radius: 99px;
  background: #e8edf6;
  overflow: hidden;
  margin-top: 8px;
}
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.country-list { display: grid; gap: 10px; margin-bottom: 12px; }
.country-row > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.country-row strong { color: var(--text-dark); }
.country-row span { color: var(--muted-dark); }
.dash-links { margin-top: 22px; }
.dash-links > .widget-head { margin-bottom: 12px; }
.dash-links > .widget-head p { margin: 0; }

.link-form {
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
}
.link-form .form-grid { gap: 18px; }
.link-form .input { border-radius: 12px; padding: 13px 14px; }
.link-urlbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line-dark);
}
.link-urlbar span { display: block; font-size: 11px; color: var(--muted-dark); text-transform: uppercase; letter-spacing: .06em; }
.link-urlbar code { color: #4f46e5; font-weight: 700; word-break: break-all; }
.link-inline-url {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted-dark);
  word-break: break-all;
}
.link-inline-url strong { color: #4f46e5; }
.link-quiet {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line-dark);
  color: #475569;
  font-size: 14px;
}
.link-quiet a { color: #4f46e5; font-weight: 600; margin-left: 6px; }
.link-form-actions { display: flex; gap: 10px; margin-top: 22px; }
.link-form-actions .btn-primary { min-width: 180px; }

.g-workspace { max-width: 820px; margin: 8px auto 0; }
.g-workspace-dash { max-width: 920px; margin: 0 auto 28px; }
.g-workspace-dash .g-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.g-hero { text-align: center; margin-bottom: 28px; }
.g-hero p {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 700;
  color: #64748b;
}
.g-hero h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.05em;
  color: #0f2744;
}
.g-hero span { color: #64748b; }
.g-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 18px;
  padding: 10px 10px 10px 18px;
  box-shadow: 0 16px 40px rgba(15, 39, 68, 0.08);
  border: 1px solid #e8eef5;
}
.g-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #0f2744;
  min-width: 0;
  padding: 12px 0;
}
.g-input::placeholder { color: #94a3b8; }
.g-cut {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
.g-cut:hover { filter: brightness(1.06); }
.g-cut svg { width: 22px; height: 22px; }
.g-advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 4px 0;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
}
.g-advanced-toggle input { accent-color: #2563eb; }
.g-advanced {
  display: none;
  margin-top: 14px;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  padding: 16px;
  gap: 14px;
}
.g-advanced.is-open { display: grid; }
.g-result {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(15, 39, 68, 0.05);
}
.g-check {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #dcfce7;
  color: #166534;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.g-result-copy { min-width: 0; flex: 1; }
.g-result-copy p {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #16a34a;
}
.g-result-copy strong { display: block; color: #0f2744; word-break: break-all; }
.g-result-actions { display: flex; gap: 8px; flex-shrink: 0; }
.g-copy, .g-open {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.g-copy { border: 0; background: #0d9488; color: #fff; }
.g-copy:hover { filter: brightness(1.05); }
.g-open { border: 1px solid #0d9488; color: #0d9488; background: #fff; }
@media (max-width: 700px) {
  .g-result { flex-wrap: wrap; }
  .g-result-actions { width: 100%; }
  .g-copy, .g-open { flex: 1; text-align: center; }
}

.settings-page { width: 100%; max-width: none; }
.settings-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: stretch;
}
.panel-hero { margin-bottom: 22px; }
.panel-hero p {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.panel-hero h1 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.04em;
  color: #0f2744;
}
.panel-hero span { color: #64748b; }
.panel-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 12px 36px rgba(15, 39, 68, 0.04);
}
.panel-head { margin-bottom: 16px; }
.panel-head h2 { margin: 0 0 4px; font-size: 18px; font-family: var(--display); letter-spacing: -0.03em; }
.panel-head p { margin: 0; color: var(--muted-dark); font-size: 14px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel-grid .span-2 { grid-column: 1 / -1; }
.upload-row { display: flex; align-items: center; gap: 10px; }
.upload-preview {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: #f8fafc; border: 1px solid var(--line-dark);
  display: grid; place-items: center; overflow: hidden; color: #94a3b8;
}
.upload-preview.sm { width: 40px; height: 40px; border-radius: 12px; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview svg { width: 18px; height: 18px; }
.pref-list { display: grid; gap: 4px; }
.pref-toggle {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}
.pref-toggle:last-child { border-bottom: 0; }
.pref-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pref-switch {
  width: 44px; height: 26px; border-radius: 999px; background: #e2e8f0; position: relative; transition: .2s ease;
}
.pref-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.15); transition: .2s ease;
}
.pref-toggle input:checked + .pref-switch { background: #4f46e5; }
.pref-toggle input:checked + .pref-switch::after { transform: translateX(18px); }
.pref-toggle strong { display: block; font-size: 14px; }
.pref-toggle em { display: block; font-style: normal; color: var(--muted-dark); font-size: 13px; }
.panel-save { display: flex; justify-content: flex-end; padding: 4px 0 24px; }
.profile-top {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line-dark); border-radius: 20px;
  padding: 16px 18px; margin-bottom: 16px;
}
.profile-avatar {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #fff; font-weight: 700; font-size: 18px;
}
.profile-top strong { display: block; font-size: 16px; }
.profile-top p { margin: 2px 0 0; }
.snapshot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.snapshot-logo {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #fff; display: grid; place-items: center; overflow: hidden; font-weight: 700;
}
.snapshot-logo img { width: 100%; height: 100%; object-fit: cover; }
.snapshot-brand strong { display: block; }
.snapshot-brand a { color: #4f46e5; font-size: 13px; word-break: break-all; }
.snapshot-list { margin: 0; display: grid; gap: 10px; }
.snapshot-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #f1f5f9; font-size: 14px; }
.snapshot-list dt { color: var(--muted-dark); }
.snapshot-list dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 980px) {
  .settings-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .panel-grid { grid-template-columns: 1fr; }
  .panel-grid .span-2 { grid-column: auto; }
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(99,102,241,.35), transparent 55%),
    #070b16;
  padding: 24px;
}
.auth-card { width: min(440px, 100%); background: rgba(255,255,255,.96); border-radius: 24px; padding: 28px; }
.auth-card h1 { margin-top: 8px; font-family: var(--display); }

.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 24px;
}
.landing-bg, .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
}
.orb-a { width: 420px; height: 420px; background: #6366f1; top: -80px; left: -80px; animation: float 10s ease-in-out infinite; }
.orb-b { width: 360px; height: 360px; background: #22d3ee; right: -60px; bottom: -80px; animation: float 12s ease-in-out infinite reverse; }
.orb-c { width: 220px; height: 220px; background: #a78bfa; right: 20%; top: 18%; opacity: .7; animation: float 9s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.05); }
}
.glass-panel {
  position: relative;
  width: min(520px, 100%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 32px;
  padding: 36px 28px;
  text-align: center;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}
.glass-panel h1 { font-size: 34px; margin: 12px 0; }
.landing-icon {
  width: 72px; height: 72px; margin: 0 auto 8px;
  display: grid; place-items: center;
  border-radius: 24px;
  background: rgba(255,255,255,.12);
}
.host-chip { display: inline-block; margin: 8px 0 18px; color: #dbeafe; font-size: 14px; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-screen { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.error-screen svg { width: 180px; margin: 0 auto 16px; }

.wizard {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(99,102,241,.28), transparent 50%),
    radial-gradient(700px 400px at 100% 0%, rgba(34,211,238,.18), transparent 46%),
    #070b16;
  color: #fff;
  padding: 32px 16px;
}
.wizard-card {
  width: min(860px, 100%);
  margin: 0 auto;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 28px;
  backdrop-filter: blur(18px);
}
.steps-bar { display: flex; gap: 8px; margin: 18px 0 24px; }
.steps-bar span {
  flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.12);
}
.steps-bar span.on { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.req { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.ok { color: #34d399; } .fail { color: #fb7185; }
.wizard .input, .wizard select { background: rgba(7,11,22,.55); color: #fff; border-color: rgba(255,255,255,.12); }
.hidden { display: none !important; }
.skeleton { background: linear-gradient(90deg, #eef2f7, #fff, #eef2f7); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1100px) {
  .cards-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .grid-3, .steps, .stats-row, .footer-grid, .cards-4, .grid-2 { grid-template-columns: 1fr; }
  .shorten-form { flex-direction: column; }
  .sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-110%); z-index: 50; transition: .2s ease; }
  .sidebar.open { transform: none; }
  .menu-toggle { display: inline-flex; }
  .device-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards-6 { grid-template-columns: 1fr; }
  .header-inner { min-height: 64px; }
  .hero { padding: 48px 0 64px; }
}
