/* FSM Checker Accurate — full-viewport modern product UI */
:root {
  --bg: #0a0b0d;
  --bg-elev: #111316;
  --bg-panel: #161a1f;
  --bg-soft: #1c2128;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --ink: #f3f4f6;
  --ink-soft: #c4c9d2;
  --muted: #7c8493;
  --accent: #ff5c1a;
  --accent-2: #ff7a2f;
  --accent-glow: rgba(255, 92, 26, 0.35);
  --ahrefs: #ff6a00;
  --semrush: #ff642d;
  --moz: #2dd4a8;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --info: #60a5fa;
  --side-w: 248px;
  --top-h: 58px;
  --radius: 14px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.app {
  overflow: hidden;
}
a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
a:hover { color: #ffb08a; }

/* ========== APP SHELL (1 layar penuh) ========== */
.app-shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(255, 92, 26, 0.09), transparent 55%),
    radial-gradient(700px 380px at 100% 100%, rgba(45, 212, 168, 0.05), transparent 50%),
    var(--bg);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  background: linear-gradient(180deg, #0d0f12 0%, #0a0b0d 100%);
  border-right: 1px solid var(--line);
  min-height: 0;
  z-index: 20;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 18px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.side-brand:hover { color: #fff; }
.mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, #ff7a2f, #ff3d00 70%);
  box-shadow: 0 10px 24px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.25);
  flex: 0 0 auto;
}
.side-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.side-brand-text b {
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.side-brand-text small {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 0;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.side-link:hover {
  background: rgba(255,255,255,.04);
  color: #fff;
}
.side-link.on {
  background: linear-gradient(90deg, rgba(255, 92, 26, 0.18), rgba(255, 92, 26, 0.05));
  color: #fff;
  border-color: rgba(255, 92, 26, 0.28);
  box-shadow: inset 3px 0 0 var(--accent);
}
.side-link.muted { color: var(--muted); margin-top: auto; }
.side-space { flex: 1; min-height: 12px; }

/* simple CSS icons */
.side-link i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-block;
  position: relative;
  opacity: 0.9;
  background: rgba(255,255,255,.08);
  flex: 0 0 auto;
}
.side-link i::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 2px;
  border: 1.5px solid currentColor;
  opacity: 0.75;
}
.side-link.on i { background: rgba(255, 92, 26, 0.25); color: var(--accent-2); }

.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  margin-top: 8px;
}
.side-user .avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: linear-gradient(145deg, #ff7a2f, #c2410c);
  color: #fff;
  flex: 0 0 auto;
}
.side-user b { display: block; font-size: 0.85rem; font-weight: 700; }
.side-user small { color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.side-foot {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
  padding: 12px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

/* Main column */
.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100dvh;
  background: transparent;
}
.topbar {
  height: var(--top-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10;
}
.page-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.topbar-right { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.pill-orange {
  color: #ffd0ba;
  background: rgba(255, 92, 26, 0.12);
  border-color: rgba(255, 92, 26, 0.28);
}

.workspace {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 28px;
  scroll-behavior: smooth;
}

/* ========== PANELS ========== */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.panel-solid {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.panel h1, .panel h2, .card h1 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.sub, .card .sub {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Dashboard fills viewport with grid */
.dash-layout {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  min-height: calc(100dvh - var(--top-h) - 46px);
}

.dash-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .dash-toolbar { grid-template-columns: 1fr; }
}

.check-form {
  display: flex;
  align-items: stretch;
  min-height: 54px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.check-form:focus-within {
  border-color: rgba(255, 92, 26, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 92, 26, 0.12);
}
.check-form .prefix {
  display: grid;
  place-items: center;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(0,0,0,.25);
  border-right: 1px solid var(--line);
  letter-spacing: 0.06em;
}
.check-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0 16px;
}
.check-form input::placeholder { color: #5b6370; font-weight: 500; }
.check-form .btn {
  border-radius: 0;
  min-width: 140px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 11px;
  background: #2a303a;
  color: #fff;
  font-weight: 750;
  min-height: 46px;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  letter-spacing: -0.01em;
  transition: transform .12s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.7; cursor: wait; filter: none; }
.btn-accent {
  background: linear-gradient(180deg, #ff7d3d 0%, var(--accent) 48%, #e03d00 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 28px var(--accent-glow);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.btn-block { width: 100%; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field input {
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--bg-soft);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  outline: none;
  border-color: rgba(255, 92, 26, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 92, 26, 0.14);
}

.alert {
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 12px;
}
.alert-error {
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.28);
}
.alert-ok {
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.notice {
  border-left: 3px solid var(--accent);
  background: rgba(255, 92, 26, 0.08);
  color: #ffd0ba;
  padding: 12px 14px;
  border-radius: 0 11px 11px 0;
  font-size: 0.86rem;
  font-weight: 550;
  line-height: 1.5;
  margin: 0 0 12px;
}
.notice a { color: #ffb08a; }
.notice strong { color: #fff; font-weight: 750; }

.meta { margin-top: 16px; text-align: center; color: var(--muted); font-size: 0.86rem; }

/* ========== LOADER ========== */
.loader-panel {
  display: none;
  margin-top: 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 92, 26, 0.28);
  background: linear-gradient(180deg, rgba(255, 92, 26, 0.1), rgba(255, 92, 26, 0.03));
}
.loader-panel.on { display: block; animation: fade-up .22s ease; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.loader-head { display: flex; align-items: center; gap: 12px; }
.loader-spin {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2.5px solid rgba(255, 92, 26, 0.2);
  border-top-color: var(--accent);
  animation: spin .65s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-titles { flex: 1; min-width: 0; }
.loader-titles strong { display: block; font-size: 0.95rem; font-weight: 750; }
.loader-titles span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.loader-timer {
  font-family: var(--mono);
  text-align: right;
  line-height: 1;
}
.loader-timer #loader-elapsed {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: -0.03em;
}
.loader-timer small { color: var(--muted); font-size: 0.75rem; font-weight: 700; margin-left: 2px; }
.loader-bar {
  margin-top: 14px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 4%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb088, var(--accent), var(--ahrefs));
  transition: width .3s ease;
  position: relative;
}
.loader-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shine 1.1s linear infinite;
}
@keyframes shine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.loader-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.loader-steps li {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.2);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.loader-steps li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a4150;
  flex: 0 0 auto;
}
.loader-steps li.active {
  color: #ffd0ba;
  border-color: rgba(255, 92, 26, 0.35);
  background: rgba(255, 92, 26, 0.1);
}
.loader-steps li.active::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 26, 0.2);
}
.loader-steps li.done {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.08);
}
.loader-steps li.done::before { background: var(--ok); }
.loader-hint {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 900px) {
  .loader-steps { grid-template-columns: 1fr 1fr; }
}

/* ========== RESULTS ========== */
.result-shell {
  display: grid;
  grid-template-rows: auto auto minmax(120px, 1fr);
  gap: 14px;
  min-height: 0;
  height: 100%;
  animation: fade-up .28s ease;
}
.result-host {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}
.host-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(145deg, #ff7a2f, #ff3d00);
  box-shadow: 0 12px 28px var(--accent-glow);
  flex: 0 0 auto;
}
.result-host h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.host-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,.05);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.badge.warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.28);
}
.metric.is-na b {
  color: #6b7280 !important;
  font-size: 1.35rem !important;
  letter-spacing: 0.02em !important;
}
.metric.is-na {
  opacity: 0.78;
}
.metric.is-na::before {
  background: #374151 !important;
}
.pipe-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.5;
  font-weight: 500;
}
.pipe-list li { margin-bottom: 6px; }
.pipe-impl {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.badge.tag-ahrefs {
  background: rgba(255, 106, 0, 0.12);
  color: #ffc49a;
  border-color: rgba(255, 106, 0, 0.28);
}
.badge.tag-moz {
  background: rgba(45, 212, 168, 0.1);
  color: #a7f3d0;
  border-color: rgba(45, 212, 168, 0.25);
}
.badge.tag-engine {
  background: rgba(96, 165, 250, 0.1);
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.25);
}

.metrics-mega {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1200px) {
  .metrics-mega { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .metrics-mega { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.metric {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 16px 14px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  min-height: 132px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.metric:hover {
  border-color: rgba(255, 92, 26, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}
.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
}
.metric.mod-dr::before, .metric.mod-ur::before {
  background: linear-gradient(90deg, #ff9a4d, var(--ahrefs));
}
.metric.mod-da::before, .metric.mod-pa::before {
  background: linear-gradient(90deg, #5eead4, var(--moz));
}
.metric.mod-ss::before {
  background: linear-gradient(90deg, #93c5fd, #3b82f6);
}
.metric.mod-age::before {
  background: linear-gradient(90deg, #cbd5e1, #64748b);
}
.metric > span:first-of-type {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.metric .metric-name {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #8b93a1;
  font-weight: 600;
}
.metric b {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.metric.mod-age b { font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -0.02em; }

.metric.score-low b { color: #f87171; }
.metric.score-mid-low b { color: #fb923c; }
.metric.score-mid b { color: #fbbf24; }
.metric.score-mid-high b { color: #a3e635; }
.metric.score-high b { color: #34d399; }

.metric-ring {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  opacity: 0.9;
  background:
    conic-gradient(var(--accent) calc(var(--p, 0) * 1%), rgba(255,255,255,.08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
  pointer-events: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  min-height: 0;
}
@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.detail-grid .panel-solid { min-height: 0; }
.detail-grid h3 {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 750;
}
.signals {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 500;
}
.signals code {
  font-family: var(--mono);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: #e5e7eb;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.8em;
  font-weight: 600;
}
.elapsed-done {
  display: inline-flex;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffd0ba;
  background: rgba(255, 92, 26, 0.1);
  border: 1px solid rgba(255, 92, 26, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
}

/* Empty state */
.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 100%;
  padding: 32px 16px;
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 16px;
  background:
    radial-gradient(500px 220px at 50% 30%, rgba(255, 92, 26, 0.1), transparent 70%),
    rgba(255,255,255,.015);
}
.empty-state .orb {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  margin: 0 auto 16px;
  background: linear-gradient(145deg, #ff7a2f, #ff3d00);
  box-shadow: 0 18px 40px var(--accent-glow);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
}
.empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.empty-state p {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
}
.empty-state .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.empty-state .chip {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  font-family: var(--mono);
}

/* When has result, hide empty */
.has-result #empty-state { display: none; }
.no-result #result { display: none !important; }

/* Home / auth content */
.home-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 16px;
  min-height: calc(100dvh - var(--top-h) - 46px);
}
@media (max-width: 960px) {
  .home-grid { grid-template-columns: 1fr; min-height: auto; }
}
.hero-full {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 36px 32px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(600px 320px at 90% 10%, rgba(255, 92, 26, 0.28), transparent 55%),
    radial-gradient(500px 280px at 10% 90%, rgba(45, 212, 168, 0.1), transparent 50%),
    linear-gradient(160deg, #161a20 0%, #0c0e12 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-full .eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffc4a8;
  margin-bottom: 14px;
}
.hero-full h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 12ch;
  font-weight: 800;
}
.hero-full p {
  margin: 0 0 24px;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 500;
}
.hero-full .row { display: flex; flex-wrap: wrap; gap: 10px; }

.stack { display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.feat {
  flex: 1;
  padding: 18px;
  border-radius: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.feat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.feat.accent-ahrefs::before { background: var(--ahrefs); }
.feat.accent-moz::before { background: var(--moz); }
.feat.accent-semrush::before { background: var(--semrush); }
.feat h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  font-weight: 750;
}
.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  font-weight: 500;
}

.auth-wrap {
  min-height: calc(100dvh - var(--top-h) - 46px);
  display: grid;
  place-items: center;
}
.auth-card {
  width: min(440px, 100%);
  padding: 28px 26px;
  border-radius: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.auth-card h1 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.method {
  max-width: 860px;
}
.method h2 {
  font-size: 1.05rem;
  margin: 1.35rem 0 .45rem;
  letter-spacing: -0.02em;
}
.method p, .method li {
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 500;
}
.method ul { padding-left: 1.15rem; }
.method.card, .method.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 28px;
}

/* Legacy class aliases */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h1 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -0.03em; }
.wrap { /* no-op; full shell */ }

/* Mobile: collapse sidebar */
@media (max-width: 860px) {
  body.app { overflow: auto; }
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side-brand {
    border: 0;
    margin: 0;
    padding: 4px 6px;
    flex: 1;
  }
  .side-brand-text small { display: none; }
  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    order: 3;
    overflow: auto;
    gap: 4px;
  }
  .side-link { padding: 8px 10px; font-size: 0.82rem; }
  .side-space { display: none; }
  .side-user, .side-foot { display: none; }
  .app-main { height: auto; min-height: calc(100dvh - 110px); }
  .workspace { padding: 14px 14px 24px; }
  .dash-layout { min-height: auto; }
  .check-form .btn { min-width: 110px; }
}
