body.public-page {
  background: var(--bg);
}

.nav .logo {
  gap: 12px;
}
.nav .logo-img-mask,
.nav .brand-mask-nav,
.nav .brand-mask {
  width: 44px;
  height: 44px;
}
.footer-brand .logo {
  gap: 12px;
}
.footer-brand .brand-mask-footer,
.footer-brand .logo-img-mask,
.footer-brand .brand-mask {
  width: 40px;
  height: 40px;
}
.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cta-icon .brand-lockup {
  align-items: center;
}

.typing-word {
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 2px;
  background: #60a5fa;
  vertical-align: -0.08em;
  animation: bk-blink 1s step-end infinite;
}
@keyframes bk-blink {
  50% { opacity: 0; }
}

.hero-tags-icons span::before { display: none; }
.hero-tags-icons span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}
.hero-tags-icons span svg { color: var(--accent); flex-shrink: 0; }
.hero-tags-icons {
  gap: 28px;
  border-top: none;
}

.hero-preview-wrap { max-width: 980px; margin: 56px auto 0; padding: 0 24px 20px; }
.hero-preview-shot {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  background: var(--bg-card);
}
[data-theme="light"] .hero-preview-shot {
  box-shadow: 0 24px 80px rgba(0,0,0,0.12);
}
.hero-preview-shot img { width: 100%; display: block; }

/* ── Dashboard showcase (SaaS-style hero preview) ── */
.hero-showcase-section { padding-bottom: 48px; }
.hero-showcase-wrap {
  position: relative;
  max-width: 1024px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.hero-showcase-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.35);
  background: #09090b;
  aspect-ratio: 16 / 9;
}
[data-theme="light"] .hero-showcase-frame {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.08);
  background: #f4f4f5;
}
.hero-showcase-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* Premium CTA — gradient shine + inset depth (SaaS hero style) */
.hero-actions .btn-primary,
.cta-actions .btn-primary {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #fff;
  background-color: var(--accent);
  background-image: linear-gradient(
    to top,
    transparent 0%,
    transparent 55%,
    rgba(255, 255, 255, 0.4) 100%
  );
  box-shadow:
    0 12px 28px -8px color-mix(in srgb, var(--accent) 55%, transparent),
    inset 0 -1px 0 1px color-mix(in srgb, var(--accent) 72%, black 28%),
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 82%, black 14%),
    inset 0 1.5px 0 2.5px color-mix(in srgb, var(--accent) 90%, white 10%);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
@media (min-width: 768px) {
  .hero-actions .btn-primary,
  .cta-actions .btn-primary {
    min-height: 48px;
    padding: 12px 32px;
    font-size: 16px;
  }
}
.hero-actions .btn-primary:hover,
.cta-actions .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent), black 10%);
  background-image: linear-gradient(
    to top,
    transparent 0%,
    transparent 55%,
    rgba(255, 255, 255, 0.32) 100%
  );
  box-shadow:
    0 14px 32px -8px color-mix(in srgb, var(--accent) 62%, transparent),
    inset 0 -1px 0 1px color-mix(in srgb, var(--accent) 72%, black 28%),
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 82%, black 14%),
    inset 0 1.5px 0 2.5px color-mix(in srgb, var(--accent) 90%, white 10%);
}
.hero-actions .btn-primary:active,
.cta-actions .btn-primary:active {
  transform: scale(0.98);
}
.hero-actions .btn-primary:focus-visible,
.cta-actions .btn-primary:focus-visible {
  outline: none;
  box-shadow:
    0 12px 28px -8px color-mix(in srgb, var(--accent) 55%, transparent),
    inset 0 -1px 0 1px color-mix(in srgb, var(--accent) 72%, black 28%),
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 82%, black 14%),
    inset 0 1.5px 0 2.5px color-mix(in srgb, var(--accent) 90%, white 10%),
    0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
[data-theme="light"] .hero-actions .btn-primary,
[data-theme="light"] .cta-actions .btn-primary {
  background-image: linear-gradient(
    to top,
    transparent 0%,
    transparent 55%,
    rgba(255, 255, 255, 0.55) 100%
  );
  box-shadow:
    0 12px 28px -8px color-mix(in srgb, var(--accent) 38%, transparent),
    inset 0 -1px 0 1px color-mix(in srgb, var(--accent) 78%, black 16%),
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 88%, black 6%),
    inset 0 1px 0 2px rgba(255, 255, 255, 0.45);
}
[data-theme="light"] .hero-actions .btn-primary:hover,
[data-theme="light"] .cta-actions .btn-primary:hover {
  background-image: linear-gradient(
    to top,
    transparent 0%,
    transparent 55%,
    rgba(255, 255, 255, 0.42) 100%
  );
}

.preview-shell {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 1.2;
}
.preview-shell--photo .preview-shot {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #09090b;
}
.preview-shell--photo .preview-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.preview-shell--photo .preview-shot[hidden] { display: none !important; }
.preview-browser {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #18181b;
  border-bottom: 1px solid #27272a;
  flex-shrink: 0;
}
[data-theme="light"] .preview-browser { background: #e4e4e7; border-color: #d4d4d8; }
.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3f3f46;
}
.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #eab308; }
.preview-dots span:nth-child(3) { background: #22c55e; }
.preview-url {
  flex: 1;
  text-align: center;
  color: #a1a1aa;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 6px;
  background: #09090b;
  max-width: 280px;
  margin: 0 auto;
}
[data-theme="light"] .preview-url { background: #fff; color: #71717a; }

.preview-app {
  flex: 1;
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 0;
  background: #0c0c0e;
}
.preview-app[hidden] { display: none !important; }
.preview-sidebar {
  background: #111113;
  border-right: 1px solid #27272a;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preview-sidebar.light { background: #fafafa; border-color: #e4e4e7; }
.preview-logo {
  width: 28px; height: 28px; border-radius: 8px;
  margin: 0 auto 8px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}
.preview-nav-item {
  height: 28px;
  border-radius: 8px;
  background: #27272a;
  opacity: 0.55;
}
.preview-nav-item.active {
  opacity: 1;
  background: linear-gradient(90deg, rgba(59,130,246,0.25), transparent);
  box-shadow: inset 2px 0 0 #3b82f6;
}
.preview-nav-spacer { flex: 1; }
.preview-main {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  background: #0c0c0e;
}
.preview-main.light { background: #fff; }
.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preview-crumb { font-weight: 600; color: #fafafa; font-size: 12px; }
.preview-main.light .preview-crumb { color: #18181b; }
.preview-pill {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.preview-greeting { display: flex; flex-direction: column; gap: 6px; }
.preview-line {
  height: 8px;
  border-radius: 4px;
  background: #3f3f46;
}
.preview-line.dim { opacity: 0.45; }
.preview-line.mono { font-family: var(--font-mono, monospace); }
.preview-line.w15 { width: 15%; }
.preview-line.w18 { width: 18%; }
.preview-line.w20 { width: 20%; }
.preview-line.w22 { width: 22%; }
.preview-line.w24 { width: 24%; }
.preview-line.w25 { width: 25%; }
.preview-line.w28 { width: 28%; }
.preview-line.w30 { width: 30%; }
.preview-line.w35 { width: 35%; }
.preview-line.w40 { width: 40%; }
.preview-line.w60 { width: 60%; }
.preview-line.w80 { width: 80%; }

.preview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.preview-stat {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #27272a;
  background: #141416;
  position: relative;
}
.preview-stat.light { background: #f4f4f5; border-color: #e4e4e7; }
.preview-num {
  font-size: 18px;
  font-weight: 700;
  color: #fafafa;
  margin: 6px 0 4px;
  letter-spacing: -0.02em;
}
.preview-num.accent { color: #60a5fa; }
.preview-stat.light .preview-num { color: #18181b; }
.preview-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 999px;
}
.preview-badge.up { background: rgba(34,197,94,0.15); color: #4ade80; }
.preview-badge.live { background: rgba(59,130,246,0.15); color: #60a5fa; }

.preview-panel {
  flex: 1;
  border: 1px solid #27272a;
  border-radius: 10px;
  background: #141416;
  padding: 10px 12px;
  min-height: 0;
}
.preview-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.preview-rows { display: flex; flex-direction: column; gap: 0; }
.preview-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #27272a;
}
.preview-row:first-child { border-top: none; }
.preview-tag {
  font-size: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: capitalize;
}
.preview-tag.ok { background: rgba(34,197,94,0.15); color: #4ade80; }
.preview-tag.wait { background: rgba(239,68,68,0.12); color: #f87171; }
.preview-time { color: #71717a; font-size: 8px; white-space: nowrap; }

@media (max-width: 720px) {
  .hero-showcase-frame { aspect-ratio: 4 / 3; }
  .preview-stats { grid-template-columns: repeat(2, 1fr); }
  .preview-panel { display: none; }
  .preview-greeting { display: none; }
}

.state-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}
.state-row-label { width: 72px; color: var(--text-muted); flex-shrink: 0; }
.state-row-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.state-row-fill { height: 100%; border-radius: 999px; }
.state-row-fill.green { background: #22c55e; }
.state-row-fill.orange { background: #f97316; }
.state-row-fill.gray { background: #52525b; }
.state-row-val { width: 72px; text-align: right; color: var(--text-dim); font-size: 12px; }

.activity-list { display: flex; flex-direction: column; }
.activity-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.activity-item:last-child { border-bottom: none; }
.activity-ip { font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.activity-domain { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.activity-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
  text-transform: capitalize;
}
.activity-status.approved { background: rgba(34,197,94,0.15); color: #22c55e; }
.activity-status.pending { background: rgba(239,68,68,0.12); color: #f87171; }
.activity-status.other { background: var(--bg-elevated); color: var(--text-dim); }
.activity-meta { color: var(--text-dim); text-align: right; white-space: nowrap; font-size: 12px; }

.dash-stat-trend { font-size: 11px; color: #22c55e; font-weight: 500; }
.dash-stat-badge-created { background: rgba(59,130,246,0.15); color: #60a5fa; }
.dash-stat-badge-active { background: rgba(34,197,94,0.12); color: #22c55e; }

.stray-perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.stray-perk-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.stray-perk-card h4 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.stray-perk-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.stray-perk-card.accent {
  background: linear-gradient(135deg, rgba(59,130,246,0.1), transparent);
  border-color: rgba(59,130,246,0.2);
}

.dash-header-telegram {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
}
.dash-header-telegram:hover { color: var(--text); background: var(--bg-elevated); }

.stray-perk-hero {
  margin-top: 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59,130,246,0.2);
  background: linear-gradient(135deg, rgba(59,130,246,0.1), transparent);
}
.stray-perk-hero-head h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.stray-perk-hero-head p { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.stray-perk-hero-body { display: flex; gap: 14px; align-items: flex-start; }
.stray-perk-mascot {
  width: 72px; height: 72px; flex-shrink: 0; object-fit: contain;
  border-radius: 12px; background: rgba(59,130,246,0.08);
}
.stray-perk-mascot-light { display: none; }
[data-theme="light"] .stray-perk-mascot-dark { display: none; }
[data-theme="light"] .stray-perk-mascot-light { display: block; }
.stray-perk-hero-copy h5 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.stray-perk-hero-copy p { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.stray-perk-btn { font-size: 12px; padding: 6px 12px; }

.sub-simple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.sub-purchase-card h2,
.sub-includes-card h2 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.sub-purchase-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.sub-purchase-summary {
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.sub-purchase-summary div { display: flex; justify-content: space-between; gap: 12px; }
.sub-purchase-summary span { color: var(--text-muted); }
.sub-includes-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
}
.sub-includes-foot li { margin-bottom: 6px; padding-left: 18px; position: relative; }
.sub-includes-foot li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
}
.site-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color .15s, background .15s;
}
.site-card:hover { border-color: var(--accent); background: var(--bg-elevated); }
.site-card-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-elevated); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text-muted); flex-shrink: 0;
}
.site-card-body { flex: 1; min-width: 0; }
.site-card-body strong { display: block; font-size: 13px; margin-bottom: 2px; }
.site-card-body span { font-size: 12px; color: var(--text-dim); }
.site-card-stat { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.page-top-stats-sep { color: var(--text-dim); }

/* ── Tool pages (TOTP / Generator) ── */
.tool-page { max-width: 720px; }
.tool-input-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  margin-bottom: 20px;
}
.tool-textarea {
  width: 100%;
  min-height: 160px;
  border: none;
  background: transparent;
  padding: 18px 20px;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  resize: vertical;
  outline: none;
  font-family: var(--font-mono);
}
.tool-textarea::placeholder { color: var(--text-dim); }
.tool-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.tool-input-hint { font-size: 12px; color: var(--text-dim); }
.tool-privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.tool-privacy svg { flex-shrink: 0; margin-top: 2px; color: var(--text-dim); }
.tool-privacy p + p { margin-top: 10px; }

.totp-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.totp-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
}
.totp-card-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  word-break: break-all;
}
.totp-card-code {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--text);
}
.totp-card-timer { font-size: 11px; color: var(--text-dim); margin-top: 6px; }

.gen-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 16px;
}
.gen-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
}
.gen-tab.active { background: var(--bg-elevated); color: var(--text); }

.gen-output-card {
  position: relative;
  padding: 20px 56px 20px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 16px;
}
.gen-output {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.5;
  word-break: break-all;
  min-height: 28px;
}
.gen-output-colored { letter-spacing: 0.02em; }
.gen-ch-letter { color: var(--text); }
.gen-ch-digit { color: #60a5fa; }
.gen-ch-symbol { color: #fbbf24; }
.gen-output-actions {
  position: absolute;
  top: 16px;
  right: 12px;
  display: flex;
  gap: 4px;
}
.gen-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gen-icon-btn:hover { color: var(--text); background: var(--bg-elevated); }
.gen-strength {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.gen-strength-bar { display: flex; gap: 4px; flex: 1; }
.gen-strength-seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--bg-elevated);
}
.gen-strength-seg.on { background: #22c55e; }
.gen-strength-label { font-size: 12px; font-weight: 500; color: #22c55e; white-space: nowrap; }

.gen-settings { padding: 20px; margin-bottom: 16px; }
.gen-setting-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}
.gen-length-val { font-weight: 600; font-family: var(--font-mono); }
.gen-slider {
  width: 100%;
  margin-bottom: 18px;
  accent-color: var(--accent);
}
.gen-toggle-list { display: flex; flex-direction: column; gap: 0; }
.gen-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}
.gen-toggle-row:first-child { border-top: none; padding-top: 0; }
.gen-toggle-input { width: 44px; height: 24px; accent-color: var(--accent); cursor: pointer; }

@media (max-width: 768px) {
  .sub-simple-grid { grid-template-columns: 1fr; }
  .stray-perk-hero-body { flex-direction: column; }
}

@media (max-width: 768px) {
  .stray-perks-grid { grid-template-columns: 1fr; }
}
