:root {
  --bg: #0b0c10;
  --bg-soft: #121318;
  --panel: #14151b;
  --panel-2: #1a1c23;
  --border: #262831;
  --border-strong: #333642;
  --text: #e9e9ee;
  --muted: #9a9da9;
  --faint: #6b6e7a;
  --accent: #ecd65a;
  --accent-ink: #1d1a05;
  --green: #78dc9a;
  --red: #f07878;
  --amber: #ecd65a;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav-logo {
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo .dot {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent); display: inline-block;
}
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; font-weight: 600; font-size: 14.5px;
  padding: 10px 18px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  font-family: var(--sans);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f4e270; box-shadow: 0 0 0 3px rgba(236, 214, 90, 0.18); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.03); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.03);
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600;
  color: var(--muted);
}
.badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 64px; text-align: center; }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 800; margin: 28px auto 20px; max-width: 900px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub {
  color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .kicker {
  color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

/* ---------- Live bridge card ---------- */
.bridge-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.bridge-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); background: var(--bg-soft);
}
.bridge-dots { display: flex; gap: 6px; }
.bridge-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.bridge-title { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.bridge-status { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--green); }
.code-host { background: #0d0e12; overflow: auto; }
.code-host pre { padding: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: #d7d9e0; }
.tok-k { color: #c792ea; } .tok-f { color: #82aaff; }
.tok-s { color: #c3e88d; } .tok-c { color: #5b6070; font-style: italic; }
.tok-n { color: #f78c6c; } .tok-v { color: #89ddff; }

/* ---------- Command stream ---------- */
.stream { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 18px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; margin-top: 24px; }
.stream-row {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 13px;
  padding: 10px 12px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--border);
  opacity: 0; transform: translateY(6px); animation: rowIn 0.4s ease forwards;
}
.stream-row .cmd-type { color: var(--accent); font-weight: 700; }
.stream-row .cmd-path { color: var(--muted); }
.stream-row .check { color: var(--green); font-weight: 800; }
@keyframes rowIn { to { opacity: 1; transform: none; } }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feature {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature .icon { font-size: 26px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.step .num {
  position: absolute; top: -14px; left: 20px; width: 28px; height: 28px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; margin-top: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(180deg, transparent, rgba(236,214,90,0.05));
  border-top: 1px solid var(--border); padding: 84px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; font-weight: 800; max-width: 720px; margin: 0 auto 16px; }
.cta-band p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0 48px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-note { margin-left: auto; color: var(--faint); font-size: 13px; }

/* ---------- Page header ---------- */
.page { padding: 72px 0 96px; }
.page h1 { font-size: clamp(30px, 4.5vw, 48px); letter-spacing: -0.02em; font-weight: 800; margin-bottom: 14px; }
.page .lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.page-block { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px; margin-top: 24px; }
.page-block h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.page-block p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.page-block ul { padding-left: 20px; color: var(--muted); font-size: 15px; }
.page-block ul li { margin-bottom: 6px; }
.page-block code, .inline-code { font-family: var(--mono); font-size: 0.9em; background: var(--bg-soft); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; color: var(--accent); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 30px; position: relative; }
.plan.featured { border-color: var(--accent); }
.plan .plan-name { font-weight: 700; font-size: 15px; color: var(--muted); }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 4px; }
.plan .price span { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 18px 0 8px; }
.plan ul li { padding: 7px 0; color: var(--muted); font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.plan ul li::before { content: "✓"; color: var(--green); font-weight: 800; }
.plan .featured-tag { position: absolute; top: -12px; right: 24px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }

/* ---------- Plugin page ---------- */
.step-card { display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-top: 14px; }
.step-card .n { flex-shrink: 0; width: 30px; height: 30px; background: var(--accent); color: var(--accent-ink); font-weight: 800; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.step-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

.copy-wrap { position: relative; }
.copy-btn { position: absolute; top: 12px; right: 12px; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.dash-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.dash-panel h3 { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: var(--sans); outline: none;
}
.input:focus { border-color: var(--accent); }
.input[readonly] { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
textarea.input { resize: vertical; min-height: 80px; font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status-pill.online { color: var(--green); }
.status-pill.online::before { background: var(--green); }
.status-pill.offline { color: var(--red); }
.status-pill.offline::before { background: var(--red); }

.chat { display: flex; flex-direction: column; height: 460px; }
.chat-log { flex: 1; overflow-y: auto; padding: 4px 2px 12px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.chat-log::-webkit-scrollbar { width: 8px; }
.chat-log::-webkit-scrollbar-track { background: transparent; }
.chat-log::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.msg { max-width: 82%; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.msg.ai { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--border); }
.msg .cmd-chip { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--accent); border: 1px solid var(--border-strong); background: var(--panel); border-radius: 6px; padding: 6px 10px; }
.chat-input-row { display: flex; gap: 10px; margin-top: 12px; }
.chat-input-row .input { flex: 1; }

.log-list { max-height: 300px; overflow-y: auto; }
.log-row { font-family: var(--mono); font-size: 12.5px; padding: 7px 10px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.log-row .t { color: var(--faint); }
.log-row.done { border-color: rgba(120,220,154,0.35); }
.log-row.error { border-color: rgba(240,120,120,0.4); }
.log-row .s.done { color: var(--green); } .log-row .s.error { color: var(--red); }
.log-row .s.pending { color: var(--amber); }

.tree-wrap { max-height: 340px; overflow: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.tree-wrap .svc { color: var(--accent); font-weight: 700; }
.tree-row { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 5px; cursor: pointer; white-space: nowrap; }
.tree-row:hover { background: var(--bg-soft); }
.tree-row.selected { background: rgba(236,214,90,0.14); }
.tree-row.selected .tname { color: var(--accent); }
.tree-row .tchev { width: 14px; text-align: center; color: var(--faint); flex: none; cursor: pointer; user-select: none; }
.tree-row .tname { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.tree-row .tcls { color: var(--faint); font-size: 11px; }
.tree-children { border-left: 1px solid var(--border); }
.target-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 9px 12px; background: rgba(236,214,90,0.1); border: 1px solid var(--border-strong); border-radius: 8px; font-size: 13px; }
.target-bar .target-label { color: var(--faint); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }
.target-bar .target-path { font-family: var(--mono); font-size: 12.5px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.spin { width: 14px; height: 14px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Profile bar ---------- */
.profile-bar { margin-bottom: 24px; }
.profile-row {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 16px; animation: pageIn 0.4s var(--ease);
}
.profile-row .avatar {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--accent), #b88f2e);
  color: var(--accent-ink); font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.profile-name { font-size: 14px; font-weight: 700; }
.profile-tag {
  font-size: 10.5px; font-weight: 700; color: var(--green);
  border: 1px solid rgba(120,220,154,0.4); border-radius: 999px; padding: 1px 7px; margin-left: 4px;
}
.profile-sub { font-size: 12px; color: var(--faint); }
.profile-plan {
  margin-left: auto; background: var(--bg-soft); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 5px 14px;
}
.profile-plan-name {
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--accent), #fff0a0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.credits-row {
  display: flex; gap: 14px; align-items: center; margin-top: 12px;
  padding: 10px 14px; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 12px;
}
.credits-row span { font-size: 12px; color: var(--faint); }
.credits-row b { font-size: 13px; font-weight: 800; }
.plan-result {
  margin-top: 14px; font-size: 13px; font-weight: 600; text-align: center;
}

/* ---------- Version badge ---------- */
#version-badge {
  position: fixed; top: 2px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--text); opacity: 0.22; z-index: 40;
  pointer-events: none; letter-spacing: 0.12em; font-weight: 600;
  font-family: var(--mono); user-select: none;
}

/* ---------- Settings gear + panel ---------- */
.settings-gear {
  position: fixed; top: 16px; left: 16px; z-index: 90;
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 21, 27, 0.75); border: 1px solid var(--border-strong);
  color: var(--muted); cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.15s var(--ease), color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.settings-gear:hover { color: var(--accent); border-color: var(--accent); transform: rotate(35deg); box-shadow: 0 0 18px rgba(236,214,90,0.25); }
.settings-gear:active { transform: rotate(35deg) scale(0.92); }

.settings-panel {
  position: fixed; top: 64px; left: 16px; z-index: 95;
  width: 330px; max-width: calc(100vw - 32px);
  background: rgba(18, 19, 24, 0.92); border: 1px solid var(--border-strong);
  border-radius: 14px; backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.settings-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.settings-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
}
.modal-close { background: none; border: none; color: var(--faint); font-size: 15px; cursor: pointer; padding: 4px; border-radius: 6px; transition: color 0.12s ease; }
.modal-close:hover { color: var(--text); }
.settings-body { padding: 6px 16px; max-height: 70vh; overflow-y: auto; }
.settings-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border-bottom: none; }
.settings-col { flex-direction: column; align-items: stretch; }
.settings-label { font-size: 14px; font-weight: 600; }
.settings-desc { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.settings-foot { padding: 10px 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--faint); font-family: var(--mono); }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--border-strong); transition: background 0.2s ease;
}
.switch .slider::before {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  left: 3px; top: 3px; background: var(--text);
  transition: transform 0.2s var(--ease);
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); background: var(--accent-ink); }

/* ---------- Premium buttons ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%); transition: none;
}
.btn:hover::after { animation: shimmer 0.9s var(--ease); }
@keyframes shimmer { to { transform: translateX(120%); } }

/* ---------- Reveal on scroll (GPU-friendly) ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); will-change: transform, opacity; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Premium cards ---------- */
.feature, .step, .plan, .dash-panel, .page-block, .bridge-card, .step-card {
  transition: transform 0.18s var(--ease), border-color 0.18s ease, box-shadow 0.25s ease;
}
.feature:hover, .step:hover, .step-card:hover, .dash-panel:hover, .bridge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,0.5); }

/* ---------- Hero glow ---------- */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 420px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(236,214,90,0.09), transparent 65%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

/* ---------- Page fade-in ---------- */
.page, .hero, .cta-band { animation: pageIn 0.5s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.auth-card {
  width: 400px; max-width: 100%; background: var(--panel);
  border: 1px solid var(--border-strong); border-radius: 18px; padding: 32px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5); animation: pageIn 0.45s var(--ease);
}
.auth-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tab { flex: 1; text-align: center; padding: 9px 0; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border: none; background: none; transition: all 0.15s ease; }
.auth-tab.active { background: var(--panel-2); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 10px; padding: 11px 0; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.google-btn:hover { border-color: var(--accent); background: rgba(255,255,255,0.04); }
.google-btn svg { flex: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-link { color: var(--accent); font-size: 13.5px; cursor: pointer; background: none; border: none; padding: 0; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.auth-msg { font-size: 13.5px; margin-top: 14px; text-align: center; }
.auth-msg.ok { color: var(--green); }
.auth-msg.err { color: var(--red); }

/* ---------- Notification dot on done ---------- */
@keyframes doneGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(120,220,154,0.4); } 50% { box-shadow: 0 0 12px 3px rgba(120,220,154,0.35); } }
.log-row.done { animation: doneGlow 2.4s ease infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--panel-2); border: 1px solid var(--border-strong); color: var(--text); padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--red); }

.empty { color: var(--faint); font-size: 13.5px; text-align: center; padding: 30px 10px; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .footer-note { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .hero { padding: 64px 0 48px; }
  .btn-sm { display: none; }
}
