/* Kit — landing, app shell and admin styles */
:root {
  --bg: #0b1120; --bg2: #0f172a; --card: #16213a; --card2: #1e293b;
  --text: #e2e8f0; --muted: #94a3b8; --line: #26334d;
  --accent: #0ea5e9; --accent2: #38bdf8; --green: #4ade80; --pink: #f472b6;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background:
  radial-gradient(1100px 560px at 12% -6%, rgba(14,165,233,.16), transparent 60%),
  radial-gradient(950px 520px at 92% -2%, rgba(168,85,247,.13), transparent 55%),
  radial-gradient(820px 520px at 50% 112%, rgba(236,72,153,.09), transparent 62%),
  var(--bg);
  background-attachment: fixed; color: var(--text); line-height: 1.55; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; }
button { font: inherit; cursor: pointer; }

/* nav */
.nav { display: flex; align-items: center; gap: 20px; padding: 14px 28px; position: sticky; top: 0; background: rgba(11,17,32,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 50; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-sub { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.nav-links { display: flex; gap: 18px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }

/* buttons */
.btn { border: 1px solid var(--line); background: var(--card2); color: var(--text); border-radius: 10px; padding: 9px 16px; font-weight: 600; font-size: 14px; transition: transform .06s ease, background .15s ease; }
.btn:hover { background: #243350; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #04121f; }
.btn.primary:hover { background: var(--accent2); }
.btn.ghost { background: transparent; }
.btn.big { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* hero */
.hero { max-width: 900px; margin: 0 auto; padding: 84px 24px 40px; text-align: center; }
.eyebrow { color: var(--accent2); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); margin: 14px 0 18px; font-weight: 800; }
.accent { color: var(--accent2); }
.lede { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.lede strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 13px; margin-top: 14px; }
.trust-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0; margin: 30px 0 0; }
.trust-chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--muted); }

/* stats */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 26px 20px; border-block: 1px solid var(--line); background: var(--bg2); }
.stats div { text-align: center; min-width: 130px; }
.stats strong { display: block; font-size: 30px; color: var(--accent2); }
.stats span { color: var(--muted); font-size: 13px; }

/* sections */
.section { max-width: 1100px; margin: 0 auto; padding: 64px 24px 8px; }
.section h2 { font-size: 30px; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 26px; max-width: 720px; }

/* app grid */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cat-filter button { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 6px 13px; font-size: 13px; }
.cat-filter button.active { background: var(--accent); border-color: var(--accent); color: #04121f; font-weight: 700; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.app-card { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-items: flex-start; }
.app-card img { flex: none; border-radius: 10px; }
.app-card h3 { margin: 0 0 3px; font-size: 15px; }
.app-card p { margin: 0; font-size: 12.5px; color: var(--muted); }
.badges { margin-top: 7px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; border-radius: 6px; padding: 2px 7px; letter-spacing: .04em; }
.badge.free { background: rgba(74,222,128,.15); color: var(--green); }
.badge.plus { background: rgba(56,189,248,.15); color: var(--accent2); }
.badge.pro { background: rgba(244,114,182,.15); color: var(--pink); }
.badge.status { background: rgba(148,163,184,.12); color: var(--muted); }
.badge.live { background: rgba(74,222,128,.15); color: var(--green); }
.badge.status.soon { background: rgba(251,191,36,.14); color: #fbbf24; }
.badge.status.review { background: rgba(167,139,250,.16); color: #a78bfa; }
.badge.status.paused { background: rgba(148,163,184,.12); color: var(--muted); }

/* Availability summary */
.app-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.sum-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.sum-chip strong { font-size: 15px; }
.sum-chip.live strong { color: var(--green); }
.sum-chip.soon strong { color: #fbbf24; }
.sum-chip.review strong { color: #a78bfa; }

/* App card hover affordance */
.app-card { position: relative; cursor: default; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; outline: none; }
.app-card:hover, .app-card:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(2,8,23,.5); }
.app-card:focus-visible { box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(2,8,23,.5); }
.app-card-body { min-width: 0; }
.app-info { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-style: italic; font-family: Georgia, serif; display: grid; place-items: center; opacity: .55; transition: opacity .16s, color .16s, border-color .16s; }
.app-card:hover .app-info, .app-card:focus-visible .app-info { opacity: 1; color: var(--accent2); border-color: var(--accent); }

/* Hover / focus / touch tooltip */
.app-tooltip { position: fixed; z-index: 90; width: min(320px, calc(100vw - 16px)); background: var(--card2); border: 1px solid var(--line); border-left: 3px solid var(--tip-accent, var(--accent)); border-radius: 12px; padding: 14px 16px; box-shadow: 0 16px 40px rgba(2,8,23,.65); pointer-events: none; animation: tipIn .15s ease; }
.app-tooltip[hidden] { display: none; }
@keyframes tipIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.tip-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tip-head strong { font-size: 14.5px; color: var(--text); margin-right: 2px; }
.tip-desc { margin: 0 0 10px; font-size: 12.5px; line-height: 1.55; color: var(--text); }
.tip-use-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--tip-accent, var(--accent2)); margin-bottom: 3px; }
.tip-use { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .app-card, .app-tooltip { transition: none; animation: none; } }

/* featured */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin: 12px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.price-card.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pop-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #04121f; font-size: 11px; font-weight: 800; padding: 3px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.price-card h3 { margin: 0; font-size: 20px; }
.price { font-size: 34px; font-weight: 800; margin: 8px 0 14px; }
.price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.price .price-amount { font-size: 34px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-card li { padding: 5px 0 5px 24px; position: relative; font-size: 14px; color: var(--text); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card li.cap { color: var(--muted); font-size: 12.5px; }
/* plan apps explorer (Free / Plus / Pro selection buttons) */
.plan-apps { margin-top: 26px; }
.plan-apps-title { font-size: 17px; margin-bottom: 12px; }
.plan-apps-toggle { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.plan-apps-btn { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 8px 26px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.plan-apps-btn:hover { border-color: var(--accent); color: var(--text); }
.plan-apps-btn.active { background: var(--accent); border-color: var(--accent); color: #04121f; }
.plan-apps-hint { margin: 12px 0 14px; }
.plan-apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.plan-app-card { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.plan-app-card img { border-radius: 7px; flex-shrink: 0; margin-top: 2px; }
.plan-app-body { min-width: 0; }
.plan-app-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; }
.plan-app-body p { margin: 5px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.fine { color: var(--muted); font-size: 12.5px; max-width: 860px; margin-top: 18px; }

/* security */
.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sec-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sec-grid h3 { margin: 0 0 8px; font-size: 16px; }
.sec-grid p { margin: 0; color: var(--muted); font-size: 14px; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 2px; font-size: 14.5px; }

/* final cta + footer */
.final-cta { text-align: center; padding: 80px 24px; margin-top: 60px; background: linear-gradient(180deg, var(--bg) 0%, #0c1a30 100%); border-top: 1px solid var(--line); }
.final-cta h2 { font-size: clamp(24px, 4vw, 36px); max-width: 640px; margin: 0 auto 26px; }
.footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 26px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer p { margin: 0; }

/* modals */
.modal-backdrop { position: fixed; inset: 0; background: rgba(2,6,17,.75); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 30px; width: 100%; max-width: 420px; }
.modal h3 { margin: 0 0 6px; }
.modal-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted); font-size: 24px; line-height: 1; }
.modal label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.modal input { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
.modal input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.hint { color: var(--muted); font-size: 12px; margin: 2px 0 12px; }
.form-error { color: #f87171; font-size: 13px; margin: 0 0 12px; }
.switch { text-align: center; font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--line); color: var(--text); padding: 12px 20px; border-radius: 12px; z-index: 200; max-width: 90vw; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.toast[hidden] { display: none; }

/* ---- app shell ---- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--bg2); border-right: 1px solid var(--line); padding: 18px 14px; overflow-y: auto; }
.side .brand { margin-bottom: 16px; }
.side-user { font-size: 12.5px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; word-break: break-all; }
.side-user .tier-tag { display: inline-block; margin-top: 4px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 9px; color: var(--muted); font-size: 13.5px; }
.side nav a img { border-radius: 7px; }
.side nav a:hover { background: var(--card); color: var(--text); text-decoration: none; }
.side nav a.active { background: var(--card2); color: var(--text); font-weight: 600; }
.side nav a.locked { opacity: .55; }
.side-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin: 14px 0 4px 9px; font-weight: 700; }
.workspace { padding: 26px 30px; max-width: 980px; }
.workspace h1 { font-size: 24px; margin: 0 0 4px; display: flex; align-items: center; gap: 12px; }
.workspace .app-blurb { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel h2 { font-size: 15px; margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
textarea, input[type=text], input[type=number], input[type=email], input[type=password], select { background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; width: 100%; }
textarea { min-height: 130px; resize: vertical; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }
label.field { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
label.field input, label.field select, label.field textarea { margin-top: 5px; }
.out { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; min-height: 44px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: ui-monospace, Consolas, monospace; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.drop.over { border-color: var(--accent); color: var(--text); background: rgba(14,165,233,.08); }
.verify-banner { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.35); color: #fbbf24; border-radius: 10px; padding: 10px 16px; margin: 0 0 16px; font-size: 13.5px; }

/* Admin console */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.admin-tabs button { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; cursor: pointer; transition: background .15s, color .15s; }
.admin-tabs button.active { background: var(--accent); border-color: var(--accent); color: #04121f; font-weight: 700; }
.admin-section h3 { font-size: 14px; color: var(--text); }
.tuning-list { margin: 6px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tuning-list li { margin: 4px 0; }
.mb-20 { margin-bottom: 20px; }
.mt-18 { margin-top: 18px; }
.field-flex1 { flex: 1; }
.field-flex2 { flex: 2; }
.input-days { max-width: 90px; }
.app-row-icon { border-radius: 5px; vertical-align: middle; }
.diff-view { font-family: ui-monospace, Consolas, monospace; font-size: 13px; border: 1px solid var(--line); border-radius: 10px; overflow: auto; max-height: 420px; }
.diff-line { padding: 1px 10px; white-space: pre-wrap; }
.diff-add { background: rgba(74,222,128,.12); color: #86efac; }
.diff-del { background: rgba(248,113,113,.12); color: #fca5a5; }
.diff-ctx { color: var(--muted); }
.locked-note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.locked-note img { margin-bottom: 10px; }
.locked-note h2 { margin: 6px 0; }
.locked-note p { color: var(--muted); max-width: 460px; margin: 8px auto 18px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.home-card { display: flex; gap: 11px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px; color: var(--text); }
.home-card:hover { background: var(--card2); text-decoration: none; }
.home-card img { border-radius: 9px; }
.home-card strong { font-size: 14px; display: block; }
.home-card span { font-size: 11.5px; color: var(--muted); }

/* admin */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td select, td input { width: auto; padding: 5px 8px; font-size: 13px; }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.pill.admin { background: rgba(244,114,182,.18); color: var(--pink); }
.pill.user { background: rgba(148,163,184,.15); color: var(--muted); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { border-right: none; border-bottom: 1px solid var(--line); max-height: 40vh; }
  .workspace { padding: 20px 16px; }
}

@media (max-width: 640px) {
  .nav { padding: 10px 14px; gap: 10px; }
  .brand-sub { display: none; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 7px 12px; font-size: 13px; }
  .hero { padding-top: 56px; }
}

/* current-section nav state */
.nav-links a.active { color: var(--accent2); font-weight: 600; }

/* respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- themed scrollbars ---- */
* { scrollbar-width: thin; scrollbar-color: #334155 var(--bg2); }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--bg2); }
*::-webkit-scrollbar-thumb { background: #334155; border-radius: 6px; border: 2px solid var(--bg2); }
*::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ---- timezone overlap grid ---- */
.tz-row { display: grid; grid-template-columns: 150px repeat(24, minmax(38px, 1fr)); gap: 2px; margin-bottom: 2px; align-items: stretch; }
.tz-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; padding-right: 8px; font-weight: 600; }
.tz-cell { font-size: 10.5px; font-family: ui-monospace, Consolas, monospace; text-align: center; padding: 6px 2px; border-radius: 5px; background: var(--bg2); color: var(--muted); cursor: pointer; border: 1px solid transparent; }
.tz-cell:hover { border-color: var(--accent); color: var(--text); }
.tz-head { background: transparent; cursor: default; color: #64748b; font-weight: 700; }
.tz-head:hover { border-color: transparent; color: #64748b; }
.tz-biz { background: rgba(74,222,128,.16); color: #86efac; }
.tz-overlap { background: rgba(56,189,248,.30); color: #e0f2fe; box-shadow: inset 0 0 0 1px var(--accent); }

/* ---- markdown preview ---- */
.md-preview { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; font-size: 14.5px; line-height: 1.65; overflow-x: auto; }
.md-preview h1 { font-size: 24px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.md-preview h2 { font-size: 19px; margin-top: 22px; }
.md-preview h3 { font-size: 16px; }
.md-preview code { background: var(--card2); padding: 2px 6px; border-radius: 5px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.md-preview pre { background: var(--card2); padding: 14px; border-radius: 10px; overflow-x: auto; }
.md-preview pre code { background: none; padding: 0; }
.md-preview blockquote { border-left: 4px solid var(--accent); margin: 12px 0; padding: 4px 16px; color: var(--muted); background: rgba(14,165,233,.06); border-radius: 0 8px 8px 0; }
.md-preview table { border-collapse: collapse; margin: 12px 0; }
.md-preview th, .md-preview td { border: 1px solid var(--line); padding: 7px 13px; }
.md-preview th { background: var(--card2); }
.md-preview img { max-width: 100%; border-radius: 8px; }
.md-preview a { color: var(--accent2); }
.md-preview hr { border: none; border-top: 1px solid var(--line); margin: 20px 0; }
.md-preview ul, .md-preview ol { padding-left: 24px; }
.md-preview input[type=checkbox] { accent-color: var(--accent); margin-right: 6px; }

/* ---- sections: anchor jumps land below the sticky nav ---- */
section[id] { scroll-margin-top: 84px; }

/* ---- feature / plan icons + card polish ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero > * { animation: fadeUp .55s ease both; }
.hero > *:nth-child(2) { animation-delay: .05s; } .hero > *:nth-child(3) { animation-delay: .1s; }
.hero > *:nth-child(4) { animation-delay: .15s; } .hero > *:nth-child(5) { animation-delay: .2s; }
.app-card, .feature, .sec-card, .price-card, .home-card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.app-card:hover, .feature:hover, .sec-card:hover { transform: translateY(-3px); border-color: #3b4a6b; box-shadow: 0 12px 32px rgba(2,6,23,.5); }
.sec-card { display: flex; flex-direction: column; align-items: flex-start; }
.sec-card img { border-radius: 13px; margin-bottom: 12px; box-shadow: 0 8px 20px rgba(2,6,23,.45); }
.plan-icon { border-radius: 15px; margin-bottom: 14px; box-shadow: 0 10px 24px rgba(2,6,23,.5); }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(2,6,23,.55); }
.plan-billing { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: center; line-height: 1.4; }
.price-card .btn.block { margin-top: auto; }

/* ---- billing panel (in-app) ---- */
.billing-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.billing-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(74,222,128,.7); }
.billing-dot.cancel { background: #fbbf24; box-shadow: 0 0 10px rgba(251,191,36,.7); }

/* ---- privacy page ---- */
.privacy-hero { padding-bottom: 20px; }
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.privacy-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.privacy-card:hover { transform: translateY(-3px); border-color: #3b4a6b; box-shadow: 0 12px 32px rgba(2,6,23,.5); }
.privacy-card img { border-radius: 13px; margin-bottom: 12px; box-shadow: 0 8px 20px rgba(2,6,23,.45); }
.privacy-card h3 { margin: 0 0 8px; font-size: 17px; }
.privacy-card p, .privacy-card li { color: var(--muted); font-size: 14px; }
.privacy-card ul { margin: 6px 0 0; padding-left: 20px; }
.privacy-card li { margin: 5px 0; }
.privacy-card strong { color: var(--text); }
.privacy-gap { margin-top: 8px; }
.privacy-wide { grid-column: 1 / -1; }

/* ---- app shell helpers ---- */
.ico { display: inline-block; vertical-align: -0.15em; flex: none; }
.nav-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; }
.nav-ico .ico { vertical-align: 0; }
.lock-ico { display: inline-flex; vertical-align: middle; color: var(--muted); margin-left: 3px; }
.btn .ico { margin-right: 3px; }
.panel-note { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.side-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }

/* ---- password form + live requirements checklist ---- */
.pw-form .field { margin-bottom: 12px; }
.pw-checklist { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: 12.5px; }
.pw-checklist li { color: var(--muted); padding-left: 20px; position: relative; line-height: 1.4; }
.pw-checklist li::before { content: '○'; position: absolute; left: 0; color: var(--muted); }
.pw-checklist li.met { color: var(--green); }
.pw-checklist li.met::before { content: '✓'; color: var(--green); }
@media (max-width: 480px) { .pw-checklist { grid-template-columns: 1fr; } }

/* ---- billing currency selector ---- */
.currency-toggle { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; }
.currency-label { color: var(--muted); font-size: 13px; margin-right: 4px; }
.currency-btn { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 6px 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.currency-btn:hover { border-color: var(--accent); color: var(--text); }
.currency-btn.active { background: var(--accent); border-color: var(--accent); color: #04121f; }
.period-toggle { display: inline-flex; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.period-btn { border: none; background: transparent; color: var(--muted); padding: 8px 20px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .15s ease, color .15s ease; }
.period-btn.active { background: var(--accent); color: #04121f; }
.save-badge { background: rgba(74,222,128,.18); color: var(--green); font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; letter-spacing: .02em; }
.period-btn.active .save-badge { background: rgba(4,18,31,.22); color: #04121f; }

/* ---- CSP-safe layout utilities (replace inline style attributes) ---- */
.admin-workspace { max-width: 1200px; margin: 0 auto; }
.share-workspace { max-width: 680px; margin: 0 auto; }
.mb-20 { margin-bottom: 20px; }
.mt-18 { margin-top: 18px; }
.field-flex1 { flex: 1; }
.field-flex2 { flex: 2; }
.input-days { width: 80px; }
.app-row-icon { vertical-align: middle; border-radius: 5px; }
.qr-placeholder { color: #64748b; margin: auto; }
.regex-mark { background: rgba(56,189,248,.35); color: inherit; border-radius: 3px; }
.regex-none { color: var(--muted); }

/* admin utility classes (CSP style-src 'self' — no inline style attributes) */
.adm-danger { color:#f87171 }
.adm-row-flex { display:flex;gap:8px;align-items:center;font-size:14px }
.adm-flex-420 { flex:1;max-width:420px }
.mb-10 { margin-bottom:10px }
.mb-12 { margin-bottom:12px }
.mb-4 { margin-bottom:4px }
.ml-auto { margin-left:auto }
.mt-10 { margin-top:10px }
.mt-12 { margin-top:12px }
.m-0 { margin:0 }
.m-0-0-10 { margin:0 0 10px }
.m-12-0-6 { margin:12px 0 6px }
.m-14-0-6 { margin:14px 0 6px }
.m-16-0-6 { margin:16px 0 6px }
.mw-100 { max-width:100px }
.mw-110 { max-width:110px }
.mw-220 { max-width:220px }
.mw-240 { max-width:240px }
.mw-280 { max-width:280px }
.mw-80 { max-width:80px }
.mw-90 { max-width:90px }
.minh-60 { min-height:60px }
.minw-110 { min-width:110px }
.minw-140 { min-width:140px }
.break-all { word-break:break-all }
