/* URLG — URL Garage */
:root {
  color-scheme: dark;
  --bg: #070a0e;
  --bg-soft: #0a0f15;
  --panel: #0e141c;
  --panel-2: #111925;
  --panel-3: #151f2c;
  --border: #1d2835;
  --border-soft: #17212c;
  --text: #e9eff7;
  --muted: #8ea0b4;
  --muted-2: #6d7f93;
  --lime: #b6ff3c;
  --lime-soft: rgba(182, 255, 60, .12);
  --cyan: #59e1ff;
  --cyan-soft: rgba(89, 225, 255, .1);
  --good: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--lime); color: #070a0e; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(900px 500px at 50% -10%, rgba(182, 255, 60, .09), transparent 60%),
    radial-gradient(700px 400px at 90% 20%, rgba(89, 225, 255, .06), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 20% 60%, rgba(182, 255, 60, .04), transparent 70%);
}
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(29, 40, 53, .75);
  background: rgba(7, 10, 14, .72);
  backdrop-filter: blur(16px) saturate(140%);
}
.header-in { height: 66px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--lime); color: #070a0e;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(182, 255, 60, .35), 0 8px 24px rgba(182, 255, 60, .14);
}
.brand-mark svg { width: 19px; height: 19px; display: block; }
.brand-name { font-weight: 850; letter-spacing: .1em; font-size: 18px; }
.brand-tag {
  font-size: 9px; letter-spacing: .22em; color: var(--muted-2);
  border-left: 1px solid var(--border); padding-left: 10px; margin-left: 2px;
  text-transform: uppercase; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 9px; transition: .18s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.header-cta { flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px;
  padding: 10px 16px; font-size: 14px; font-weight: 650;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s, background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary {
  background: var(--lime); color: #070a0e;
  border-color: var(--lime);
  box-shadow: 0 8px 28px rgba(182, 255, 60, .18);
}
.btn-primary:hover { background: #c7ff67; box-shadow: 0 10px 34px rgba(182, 255, 60, .26); }
.btn-primary:disabled { opacity: .7; cursor: wait; }
.btn-ghost {
  background: rgba(255, 255, 255, .03); color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: #2a3a4d; }
.btn-soft { background: var(--lime-soft); color: var(--lime); border-color: rgba(182, 255, 60, .18); }
.btn-soft:hover { background: rgba(182, 255, 60, .18); }
.btn-sm { padding: 7px 11px; font-size: 12.5px; border-radius: 9px; }
.btn-icon { padding: 9px; width: 36px; height: 36px; }

/* ---------- hero ---------- */
.hero { padding: 74px 0 34px; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: var(--lime); background: rgba(182, 255, 60, .06);
  border: 1px solid rgba(182, 255, 60, .18); border-radius: 100px;
  padding: 7px 13px; margin-bottom: 22px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(182, 255, 60, .12);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(182, 255, 60, .02); } }
.hero h1 {
  margin: 0 0 18px; font-size: clamp(38px, 6.6vw, 72px);
  line-height: .98; letter-spacing: -.045em; font-weight: 850;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--lime) 5%, var(--cyan) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 0 0 30px; color: var(--muted); font-size: clamp(15px, 2vw, 18px);
  max-width: 680px;
}
.checker { max-width: 880px; }
.checker-box {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #101823, #0c1219);
  border: 1px solid #263445;
  border-radius: 16px; padding: 9px 9px 9px 14px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .2s, box-shadow .2s;
}
.checker-box:focus-within {
  border-color: rgba(182, 255, 60, .55);
  box-shadow: var(--shadow), 0 0 0 4px rgba(182, 255, 60, .08);
}
.checker-icon { color: var(--lime); display: grid; place-items: center; flex: none; }
.checker-icon svg { width: 18px; height: 18px; }
#url-input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--text); font-family: var(--mono); font-size: 15px;
  padding: 10px 2px;
}
#url-input::placeholder { color: #5d6d7f; }
.checker-box .btn { min-width: 130px; height: 44px; font-size: 14.5px; }
.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(7, 10, 14, .25); border-top-color: #070a0e;
  animation: spin .7s linear infinite; display: none;
}
.is-loading .spinner { display: block; }
.is-loading .btn-label { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.checker-foot {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-top: 12px; min-height: 24px; flex-wrap: wrap;
}
.examples { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted-2); font-size: 12.5px; }
.examples > span { margin-right: 3px; }
.example {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  border-radius: 100px; padding: 3px 10px; font-size: 12px; font-family: var(--mono);
  transition: .18s;
}
.example:hover { color: var(--lime); border-color: rgba(182, 255, 60, .3); background: rgba(182, 255, 60, .04); }
.checker-error { color: var(--bad); font-size: 13px; margin-left: auto; min-height: 20px; }

.history { margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.history-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-right: 3px; }
.history-item {
  display: inline-flex; align-items: center; gap: 7px; max-width: 280px;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--border-soft);
  border-radius: 100px; padding: 4px 10px 4px 8px; color: var(--muted);
  font-size: 12px; font-family: var(--mono);
}
.history-item:hover { color: var(--text); border-color: var(--border); }
.history-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-score { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; font-weight: 800; color: #070a0e; flex: none; }

/* ---------- pipeline ---------- */
.pipeline {
  margin-top: 26px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  border: 1px solid var(--border-soft); background: rgba(14, 20, 28, .55);
  border-radius: 14px; padding: 12px 14px;
}
.step { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted-2); padding: 3px 5px; }
.step::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #2a3849; flex: none; transition: .2s;
}
.step.active { color: var(--text); }
.step.active::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(182, 255, 60, .1); animation: pulse 1.4s infinite; }
.step.done { color: var(--muted); }
.step.done::before { background: var(--good); box-shadow: none; }
.step.fail::before { background: var(--bad); }
.step-sep { width: 16px; height: 1px; background: var(--border); }

/* ---------- results / summary ---------- */
.results { padding: 18px 0 40px; scroll-margin-top: 84px; }
.summary {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(150deg, #101823 0%, #0b1118 60%);
  padding: 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px;
  align-items: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.summary::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 0% 0%, rgba(182, 255, 60, .08), transparent 70%);
  pointer-events: none;
}
.score-ring {
  --score: 0; --ring: var(--lime);
  width: 108px; height: 108px; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--score) * 1%), #1a2532 0);
  display: grid; place-items: center; position: relative; flex: none;
  transition: --score .6s;
}
.score-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #0b1118; }
.score-ring-in { position: relative; text-align: center; line-height: 1; }
.score-ring b { display: block; font-size: 32px; letter-spacing: -.04em; font-weight: 850; }
.score-ring small { display: block; color: var(--muted-2); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; margin-top: 5px; }
.summary-main { min-width: 0; }
.summary-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.verdict { font-size: 13px; font-weight: 700; color: var(--lime); }
.verdict.warn { color: var(--warn); }
.verdict.bad { color: var(--bad); }
.summary-url {
  font-family: var(--mono); font-size: 14.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.summary-url a { color: var(--text); text-decoration: none; border-bottom: 1px dashed #33465b; }
.summary-url a:hover { color: var(--lime); border-color: var(--lime); }
.summary-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 11px; }
.smeta { font-size: 12px; color: var(--muted-2); }
.smeta b { display: block; color: var(--text); font-size: 13px; font-weight: 650; margin-top: 1px; }
.summary-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.score-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.score-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted);
  border: 1px solid var(--border-soft); background: rgba(255, 255, 255, .02);
  border-radius: 100px; padding: 3px 9px;
}
.score-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--lime)); display: block; }
.score-chip b { color: var(--text); font-weight: 650; }

.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 14px; }
.card {
  grid-column: span 6;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  min-width: 0;
  animation: fadeUp .4s both;
  overflow: hidden;
}
.card--wide { grid-column: span 12; }
.card--third { grid-column: span 4; }
.card--two-thirds { grid-column: span 8; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card-head {
  display: flex; align-items: center; gap: 11px; padding: 15px 17px;
  border-bottom: 1px solid var(--border-soft);
}
.card-icon {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--panel-3); color: var(--card-accent, var(--lime)); flex: none;
}
.card-icon svg { width: 17px; height: 17px; }
.card-title { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.card-sub { color: var(--muted-2); font-size: 11px; margin-top: 1px; }
.card-side { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.pill {
  font-size: 10.5px; font-weight: 750; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 100px; border: 1px solid transparent; white-space: nowrap;
}
.pill.good { background: rgba(74, 222, 128, .1); color: var(--good); border-color: rgba(74, 222, 128, .22); }
.pill.warn { background: rgba(251, 191, 36, .09); color: var(--warn); border-color: rgba(251, 191, 36, .2); }
.pill.bad { background: rgba(248, 113, 113, .1); color: var(--bad); border-color: rgba(248, 113, 113, .22); }
.pill.neutral { background: rgba(255, 255, 255, .04); color: var(--muted); border-color: var(--border); }
.pill.lime { background: var(--lime-soft); color: var(--lime); border-color: rgba(182, 255, 60, .2); }
.pill.cyan { background: var(--cyan-soft); color: var(--cyan); border-color: rgba(89, 225, 255, .2); }
.card-body { padding: 15px 17px 17px; }

.kv { display: grid; grid-template-columns: 132px 1fr; gap: 7px 12px; font-size: 13px; }
.kv dt { color: var(--muted-2); padding-top: 1px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.dim { color: var(--muted); }
.empty-note { color: var(--muted-2); font-size: 13px; }
.dot-status { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); margin-right: 6px; vertical-align: 1px; }
.dot-status.good { background: var(--good); }
.dot-status.warn { background: var(--warn); }
.dot-status.bad { background: var(--bad); }

.copy-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.copy-line .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  border: 1px solid var(--border); background: transparent; color: var(--muted-2);
  width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; flex: none;
  transition: .15s;
}
.icon-btn:hover { color: var(--text); border-color: #2c3d50; background: rgba(255, 255, 255, .03); }
.icon-btn svg { width: 12px; height: 12px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 11px; font-family: var(--mono); color: var(--muted);
  border: 1px solid var(--border-soft); background: rgba(255, 255, 255, .02);
  border-radius: 6px; padding: 2px 7px;
}
.tag.utm { color: var(--cyan); border-color: rgba(89, 225, 255, .18); background: var(--cyan-soft); }
.tag.track { color: var(--warn); border-color: rgba(251, 191, 36, .18); background: rgba(251, 191, 36, .07); }

/* url params */
.param-list { display: flex; flex-direction: column; border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; }
.param-row { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 10px; padding: 7px 11px; font-family: var(--mono); font-size: 12px; border-bottom: 1px solid rgba(29, 40, 53, .55); }
.param-row:last-child { border-bottom: 0; }
.param-key { color: var(--cyan); overflow-wrap: anywhere; }
.param-val { color: var(--muted); overflow-wrap: anywhere; }

/* domain */
.dns-groups { display: flex; flex-direction: column; gap: 9px; margin-top: 13px; }
.dns-group { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; }
.dns-label { font-size: 10.5px; letter-spacing: .08em; color: var(--muted-2); font-family: var(--mono); padding-top: 3px; }
.warn { color: var(--warn); }

/* chain */
.chain { display: flex; flex-direction: column; gap: 0; }
.chain-hop { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; position: relative; padding-bottom: 16px; }
.chain-hop:last-child { padding-bottom: 0; }
.chain-rail { display: flex; flex-direction: column; align-items: center; height: 100%; position: relative; }
.chain-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted-2); margin-top: 5px; flex: none; z-index: 1; }
.chain-dot.good { background: var(--good); }
.chain-dot.redirect { background: var(--cyan); }
.chain-dot.bad { background: var(--bad); }
.chain-hop:not(:last-child) .chain-rail::after { content: ""; width: 1px; flex: 1; background: #253243; margin-top: 4px; }
.chain-url { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.chain-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted-2); font-size: 11px; margin-top: 4px; }
.chain-meta b { color: var(--muted); font-weight: 600; }
.chain-badge { font-size: 10.5px; font-weight: 750; padding: 2px 7px; border-radius: 6px; background: var(--panel-3); color: var(--muted); white-space: nowrap; }
.chain-badge.good { color: var(--good); background: rgba(74, 222, 128, .09); }
.chain-badge.redirect { color: var(--cyan); background: var(--cyan-soft); }
.chain-badge.bad { color: var(--bad); background: rgba(248, 113, 113, .09); }
.note {
  margin-top: 12px; border: 1px solid rgba(251, 191, 36, .18); background: rgba(251, 191, 36, .05);
  color: #e6c46a; border-radius: 10px; padding: 9px 11px; font-size: 12px;
}
.note.info { border-color: rgba(89, 225, 255, .18); background: var(--cyan-soft); color: var(--cyan); }
.note.bad { border-color: rgba(248, 113, 113, .2); background: rgba(248, 113, 113, .06); color: #f9a8a8; }

/* checks */
.check-list { display: flex; flex-direction: column; gap: 0; }
.check-row { display: grid; grid-template-columns: 9px 120px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); align-items: baseline; }
.check-row:last-child { border-bottom: 0; padding-bottom: 0; }
.check-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; background: var(--muted-2); }
.check-dot.good { background: var(--good); }
.check-dot.warn { background: var(--warn); }
.check-dot.bad { background: var(--bad); }
.check-name { font-size: 12.5px; color: var(--muted-2); }
.check-value { font-size: 13px; overflow-wrap: anywhere; }
.check-value .hint { display: block; color: var(--muted-2); font-size: 11px; margin-top: 2px; }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* previews */
.google-preview { border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 13px; background: #0b1118; margin-top: 4px; }
.gp-site { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.gp-fav { width: 16px; height: 16px; border-radius: 50%; background: var(--panel-3); display: grid; place-items: center; font-size: 9px; overflow: hidden; }
.gp-fav img { width: 100%; height: 100%; object-fit: cover; }
.gp-title { color: #8ab4f8; font-size: 15px; line-height: 1.3; margin-bottom: 3px; }
.gp-desc { color: #bdc1c6; font-size: 12.5px; line-height: 1.45; }
.social-preview { border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; background: #0b1118; }
.sp-img { aspect-ratio: 1.91 / 1; background: linear-gradient(135deg, #16212e, #0d141d); display: grid; place-items: center; color: var(--muted-2); font-size: 12px; overflow: hidden; }
.sp-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-body { padding: 11px 12px; }
.sp-site { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.sp-title { font-size: 14px; font-weight: 650; line-height: 1.3; margin: 3px 0; }
.sp-desc { font-size: 11.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* metrics */
.metric-list { display: flex; flex-direction: column; gap: 12px; }
.metric-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.metric-head span { color: var(--muted-2); }
.metric-head b { font-weight: 650; font-variant-numeric: tabular-nums; }
.metric-bar { height: 5px; border-radius: 100px; background: #1a2532; overflow: hidden; }
.metric-bar i { display: block; height: 100%; border-radius: 100px; background: var(--lime); transition: width .5s; }
.metric-bar i.warn { background: var(--warn); }
.metric-bar i.bad { background: var(--bad); }
.metric-bar i.cyan { background: var(--cyan); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 12px; margin-top: 14px; }
.metric-cell { border: 1px solid var(--border-soft); border-radius: 10px; padding: 9px 10px; background: rgba(255, 255, 255, .015); }
.metric-cell span { display: block; font-size: 10.5px; color: var(--muted-2); }
.metric-cell b { display: block; font-size: 14px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* security */
.grade-box { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(255, 255, 255, .015); margin-bottom: 13px; }
.grade { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; font-weight: 850; background: var(--panel-3); flex: none; }
.grade.A { color: var(--good); background: rgba(74, 222, 128, .1); }
.grade.B { color: var(--lime); background: var(--lime-soft); }
.grade.C { color: var(--warn); background: rgba(251, 191, 36, .08); }
.grade.D, .grade.F { color: var(--bad); background: rgba(248, 113, 113, .09); }
.grade-text { font-size: 12px; color: var(--muted); }
.grade-text b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.header-status-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; margin-top: 12px; }
.hs { display: flex; align-items: center; gap: 7px; font-size: 12px; min-width: 0; }
.hs .hint { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tls-line { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }

/* headers table */
details.raw-headers { border: 1px solid var(--border-soft); border-radius: 10px; margin-top: 13px; overflow: hidden; }
details.raw-headers summary {
  list-style: none; cursor: pointer; padding: 9px 11px; font-size: 12px; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, .015);
}
details.raw-headers summary::-webkit-details-marker { display: none; }
details.raw-headers summary:hover { color: var(--text); }
details.raw-headers[open] summary { border-bottom: 1px solid var(--border-soft); }
.headers-scroll { max-height: 320px; overflow: auto; padding: 9px 11px; }
.header-row { display: grid; grid-template-columns: minmax(120px, 210px) 1fr; gap: 10px; font-family: var(--mono); font-size: 11.5px; padding: 3px 0; border-bottom: 1px solid rgba(29, 40, 53, .5); }
.header-row:last-child { border-bottom: 0; }
.header-row .hn { color: var(--cyan); overflow-wrap: anywhere; }
.header-row .hv { color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }

/* actions */
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.action-hint { text-align: center; color: var(--muted-2); font-size: 11.5px; margin-top: 10px; }

/* skeleton */
.skeleton { position: relative; overflow: hidden; background: #111a24; border-radius: 7px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .045), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-line { height: 11px; margin: 8px 0; }

/* sections */
.section { padding: 58px 0; border-top: 1px solid var(--border-soft); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-kicker { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); font-weight: 700; margin-bottom: 10px; }
.section h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature {
  border: 1px solid var(--border); background: var(--panel); border-radius: 14px; padding: 17px;
  transition: .2s;
}
.feature:hover { border-color: #2b3c4f; transform: translateY(-2px); }
.feature-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--panel-3); display: grid; place-items: center; color: var(--lime); margin-bottom: 12px; }
.feature-ico svg { width: 17px; height: 17px; }
.feature h3 { font-size: 14px; margin: 0 0 5px; }
.feature p { color: var(--muted-2); font-size: 12.5px; margin: 0; line-height: 1.5; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.step-card { border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: var(--panel); position: relative; }
.step-num { font-family: var(--mono); font-size: 11px; color: var(--lime); border: 1px solid rgba(182, 255, 60, .2); border-radius: 6px; padding: 2px 7px; display: inline-block; margin-bottom: 12px; }
.step-card h3 { margin: 0 0 6px; font-size: 15px; }
.step-card p { margin: 0; color: var(--muted-2); font-size: 13px; }
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.code {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #0a1017;
}
.code-top { display: flex; align-items: center; gap: 6px; padding: 9px 13px; border-bottom: 1px solid var(--border-soft); background: rgba(255, 255, 255, .02); }
.code-top i { width: 8px; height: 8px; border-radius: 50%; background: #2a3a4c; display: block; }
.code-top span { margin-left: 6px; font-size: 11px; color: var(--muted-2); font-family: var(--mono); }
.code pre { margin: 0; padding: 14px; overflow: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: #c6d5e6; }
.code .k { color: var(--cyan); }
.code .s { color: var(--lime); }
.code .c { color: #5f7387; }
.quote { border-left: 2px solid var(--lime); padding: 4px 0 4px 16px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.quote b { color: var(--text); }
.faq details { border-bottom: 1px solid var(--border); padding: 15px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--lime); font-family: var(--mono); font-size: 18px; width: 16px; flex: none; }
.faq details[open] summary::before { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0 28px; font-size: 14px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 30px 0 34px; }
.footer-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-note { color: var(--muted-2); font-size: 12px; max-width: 460px; }
.footer-links { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 12.5px; }
.footer-links a:hover { color: var(--lime); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 9, .72); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; width: min(420px, 100%); background: var(--panel);
  border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow);
  animation: modalIn .2s ease both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal h3 { margin: 0 0 4px; font-size: 18px; }
.modal p { margin: 0 0 16px; color: var(--muted); font-size: 12.5px; }
.qr-holder { background: #fff; border-radius: 14px; padding: 14px; display: grid; place-items: center; margin: 0 auto 14px; width: 252px; height: 252px; }
.qr-holder canvas, .qr-holder svg, .qr-holder img { width: 100% !important; height: 100% !important; display: block; }
.modal-link { display: flex; gap: 7px; margin-bottom: 12px; }
.modal-link input {
  flex: 1; min-width: 0; background: #0a1017; border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); padding: 9px 10px; font-family: var(--mono); font-size: 12.5px; outline: 0;
}
.modal-actions { display: flex; gap: 8px; }
.modal-actions .btn { flex: 1; }
.short-result { border: 1px solid rgba(182, 255, 60, .2); background: var(--lime-soft); border-radius: 12px; padding: 13px; margin-bottom: 12px; }
.short-result .label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 4px; }
.short-result .url { font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px);
  background: #151f2c; border: 1px solid #2a3a4d; color: var(--text);
  border-radius: 11px; padding: 10px 16px; font-size: 13px; z-index: 120;
  opacity: 0; pointer-events: none; transition: .2s; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .summary { grid-template-columns: auto 1fr; }
  .summary-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .card--third { grid-column: span 6; }
  .card--two-thirds { grid-column: span 12; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 28px); }
  .header-in { height: 60px; }
  .brand-tag { display: none; }
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero { padding-top: 52px; }
  .checker-box { flex-wrap: wrap; padding: 10px; }
  #url-input { flex-basis: calc(100% - 34px); }
  .checker-box .btn { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .card, .card--wide, .card--third, .card--two-thirds { grid-column: auto; }
  .summary { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .score-ring { width: 88px; height: 88px; }
  .score-ring b { font-size: 27px; }
  .summary-actions { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .api-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 108px 1fr; }
  .check-row { grid-template-columns: 9px 96px 1fr; }
  .header-status-list { grid-template-columns: 1fr; }
  .footer-links { margin-left: 0; }
  .summary-meta { gap: 12px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .examples { font-size: 11.5px; }
  .checker-error { margin-left: 0; }
  .result-actions .btn { flex: 1; }
  .brand-name { font-size: 16px; }
  .card-head { padding: 13px 14px; }
  .card-body { padding: 13px 14px 15px; }
  .check-row { grid-template-columns: 9px 1fr; }
  .check-row .check-name { grid-column: 2; }
  .check-row .check-value { grid-column: 2; }
  .check-row { row-gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
