/* Global safety: the `hidden` attribute must always win over class display rules
   (fixes modals/overlays showing on page load despite being hidden) */
[hidden] { display: none !important; }

:root {
  --bg: #0a0a0a;
  --bg-soft: #101012;
  --panel: #141416;
  --panel-2: #1a1a1d;
  --border: #232327;
  --border-soft: #1c1c1f;
  --text: #ececec;
  --text-dim: #9a9a9f;
  --text-faint: #6b6b70;
  --accent: #6d7cff;
  --accent-hover: #5b6bf0;
  --accent-soft: rgba(109, 124, 255, 0.14);
  --chip-bg: #1c1c1f;
  --chip-hover: #242428;
  --radius: 14px;
  --rail-w: 56px;
  --side-w: 264px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
textarea { font-family: inherit; }

#app { display: flex; height: 100vh; width: 100vw; overflow: hidden; }

/* ============ Icon rail ============ */
.rail {
  width: var(--rail-w);
  flex: 0 0 var(--rail-w);
  background: var(--bg-soft);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 6px;
}
.rail-logo { color: var(--text); margin-bottom: 10px; opacity: 0.9; }
.rail-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--text-dim);
  transition: background .12s, color .12s;
}
.rail-btn:hover { background: var(--chip-bg); color: var(--text); }
.rail-btn.active { background: var(--chip-bg); color: var(--text); }
.rail-spacer { flex: 1; }
.rail-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-weight: 600; font-size: 13px;
  margin-top: 8px;
}

/* ============ Sidebar ============ */
.sidebar {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  background: var(--bg-soft);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  gap: 4px;
  overflow: hidden;
}
.sidebar-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 13.5px; font-weight: 500;
  text-align: left;
  transition: background .12s, color .12s;
}
.side-link:hover { background: var(--chip-bg); color: var(--text); }
.side-link.active { background: var(--chip-bg); color: var(--text); }

.side-section { display: flex; flex-direction: column; gap: 2px; }
.side-section.grow { flex: 1; overflow-y: auto; min-height: 40px; }
.side-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 10px 6px;
}
.side-empty { color: var(--text-faint); font-size: 13px; padding: 4px 10px; }
.recent-list { display: flex; flex-direction: column; gap: 1px; }
.recent-item {
  padding: 7px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}
.recent-item:hover { background: var(--chip-bg); color: var(--text); }

.sidebar-foot { border-top: 1px solid var(--border-soft); padding-top: 10px; margin-top: 8px; }
.foot-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; }
.foot-user:hover { background: var(--chip-bg); }
.foot-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 600; font-size: 12px;
}
.foot-meta { display: flex; flex-direction: column; line-height: 1.2; }
.foot-name { font-size: 13px; font-weight: 500; }
.foot-plan { font-size: 11.5px; color: var(--text-faint); }

/* ============ Product buttons (sidebar) ============ */
.product-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 13px; font-weight: 500;
  text-align: left;
  transition: background .12s, color .12s, border-color .12s;
  border: 1px solid transparent;
}
.product-btn:hover { background: var(--chip-bg); color: var(--text); }
.product-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.product-btn svg { flex: 0 0 auto; }
.product-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price {
  font-size: 11.5px; font-weight: 600;
  color: var(--text-faint);
  background: var(--chip-bg);
  border-radius: 6px;
  padding: 1px 7px;
}
.product-btn.active .product-price { background: rgba(109,124,255,.2); color: var(--accent); }

/* ============ Product panel (canvas) ============ */
.product-panel {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  animation: panelIn .25s ease;
  --p-accent: var(--accent);
  --p-accent-hover: var(--accent-hover);
  --p-accent-soft: var(--accent-soft);
}
/* Per-product theming — each panel gets its own color identity */
.product-panel[data-product="license"] {
  --p-accent: #7d8cff; --p-accent-hover: #6674f5; --p-accent-soft: rgba(125,140,255,.15);
}
.product-panel[data-product="passport"] {
  --p-accent: #34d3a6; --p-accent-hover: #22c095; --p-accent-soft: rgba(52,211,166,.15);
}
.product-panel[data-product="idcard"] {
  --p-accent: #f0a850; --p-accent-hover: #e5953a; --p-accent-soft: rgba(240,168,80,.16);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pp-hero {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 26px;
}
.pp-media {
  flex: 0 0 260px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pp-media svg { width: 92px; height: 92px; opacity: .95; }
.pp-media-license { background: linear-gradient(135deg, #1b2a52 0%, #0f1830 60%, #0a0f22 100%); }
.pp-media-passport { background: linear-gradient(135deg, #123c33 0%, #0b2620 60%, #071a16 100%); }
.pp-media-idcard { background: linear-gradient(135deg, #3a2a14 0%, #241a0c 60%, #171108 100%); }
.pp-media-tag {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px; padding: 3px 9px;
}
.pp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--p-accent); background: var(--p-accent-soft);
  border: 1px solid var(--p-accent);
  border-radius: 20px; padding: 3px 10px;
  margin-bottom: 10px;
}
.pp-title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.pp-tagline { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }
.pp-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.pp-price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.pp-price-note { font-size: 12px; color: var(--text-faint); }
.pp-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pp-stat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 5px 10px;
}
.pp-stat svg { color: var(--p-accent); flex: 0 0 auto; }
.pp-cta-row { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.pp-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--p-accent); color: #fff;
  font-size: 13.5px; font-weight: 600;
  border-radius: 10px; padding: 10px 18px;
  transition: background .12s;
}
.pp-cta:hover { background: var(--p-accent-hover); }
.pp-cta-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  border-radius: 10px; padding: 10px 14px;
  transition: background .12s, color .12s;
}
.pp-cta-secondary:hover { background: var(--chip-bg); color: var(--text); }

.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.pp-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.pp-card h3 {
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.pp-card h3 svg { color: var(--p-accent); }
.pp-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pp-list li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13px; color: var(--text-dim); line-height: 1.45;
}
.pp-list li::before {
  content: "";
  flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--p-accent);
  margin-top: 6px;
}
.pp-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.pp-steps li {
  counter-increment: step;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px; color: var(--text-dim); line-height: 1.45;
}
.pp-steps li::before {
  content: counter(step);
  flex: 0 0 24px; width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--p-accent-soft); color: var(--p-accent);
  border: 1px solid var(--p-accent);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.pp-steps li strong { color: var(--text); font-weight: 600; }
.pp-faq { display: flex; flex-direction: column; gap: 0; }
.pp-faq-item { border-bottom: 1px solid var(--border-soft); }
.pp-faq-item:last-child { border-bottom: none; }
.pp-faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 2px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  text-align: left;
}
.pp-faq-q:hover { color: var(--p-accent); }
.pp-faq-q .chev { transition: transform .15s; color: var(--text-faint); }
.pp-faq-item.open .pp-faq-q .chev { transform: rotate(180deg); }
.pp-faq-a {
  display: none;
  padding: 0 2px 12px;
  font-size: 13px; color: var(--text-dim); line-height: 1.55;
}
.pp-faq-item.open .pp-faq-a { display: block; }
.pp-keywords { display: flex; flex-wrap: wrap; gap: 7px; }
.pp-kw {
  font-size: 12px; color: var(--text-dim);
  background: var(--chip-bg);
  border: 1px solid var(--border-soft);
  border-radius: 20px; padding: 4px 11px;
}
.pp-kw:hover { color: var(--p-accent); border-color: var(--p-accent); }
.pp-footer {
  margin-top: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-faint);
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}
.pp-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: 12.5px; font-weight: 500;
  border-radius: 8px; padding: 6px 10px;
  transition: background .12s, color .12s;
}
.pp-back:hover { background: var(--chip-bg); color: var(--text); }

@media (max-width: 720px) {
  .pp-hero { flex-direction: column; }
  .pp-media { flex: 0 0 auto; min-height: 150px; }
  .pp-grid { grid-template-columns: 1fr; }
}

/* ============ Canvas ============ */
.canvas {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  grid-template-areas:
    "topbar"
    "scroll"
    "services"
    "composer";
  min-width: 0;
  background: var(--bg);
  position: relative;
  min-height: 0;
}
.topbar { grid-area: topbar; }
.canvas-scroll {
  grid-area: scroll;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}
.services { grid-area: services; }
.composer-wrap { grid-area: composer; }
.welcome {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.welcome-title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ============ Demo badge ============ */
.demo-badge {
  margin-left: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 3px 9px;
  vertical-align: 2px;
}
.hint-demo { color: var(--accent); font-weight: 600; }

/* ============ Messages ============ */
.messages { width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 24px 40px; display: flex; flex-direction: column; gap: 22px; }
.msg { display: flex; gap: 14px; }
.msg-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  flex: 0 0 30px; display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
}
.msg.user .msg-avatar { background: var(--panel-2); color: var(--text-dim); }
.msg.assistant .msg-avatar { background: var(--accent-soft); color: var(--accent); }
.msg-body { min-width: 0; flex: 1; padding-top: 4px; }
.msg-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.msg.user .msg-name { display: none; }
.msg-text { color: var(--text); white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.msg-text p { margin: 0 0 10px; }
.msg-text p:last-child { margin-bottom: 0; }
.msg-text ul, .msg-text ol { margin: 0 0 10px 20px; }
.msg-text code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
.msg-text pre {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 12px 0;
  position: relative;
}
.msg-text pre code { background: none; padding: 0; font-size: 12.5px; line-height: 1.6; }
.code-head {
  display: flex; justify-content: space-between; align-items: center;
  margin: 12px 0 -6px;
  font-size: 11.5px; color: var(--text-faint);
}
.code-copy { font-size: 11.5px; color: var(--text-faint); padding: 2px 8px; border-radius: 6px; }
.code-copy:hover { background: var(--chip-bg); color: var(--text); }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.caret { display: inline-block; color: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ============ Composer ============ */
.composer-wrap {
  padding: 8px 24px 18px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}
.composer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 10px;
  transition: border-color .15s, box-shadow .15s;
}
.composer:focus-within { border-color: #34343a; box-shadow: 0 0 0 3px rgba(255,255,255,0.02); }
.composer textarea {
  width: 100%;
  background: none; border: none; outline: none; resize: none;
  color: var(--text); font-size: 15px; line-height: 1.5;
  max-height: 220px;
}
.composer textarea::placeholder { color: var(--text-faint); }
.composer-bar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; flex-wrap: wrap;
}
.composer-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--chip-bg);
  color: var(--text-dim);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 12.5px; font-weight: 500;
  transition: background .12s, color .12s;
}
.chip:hover { background: var(--chip-hover); color: var(--text); }
.chip .chev { opacity: .6; }
.chip.model { background: transparent; color: var(--text-dim); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; color: var(--text-dim);
  transition: background .12s, color .12s;
}
.icon-btn:hover { background: var(--chip-bg); color: var(--text); }
.send-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--text); color: var(--bg);
  transition: background .12s, opacity .12s;
}
.send-btn:hover { background: #fff; }
.send-btn:disabled { opacity: .35; cursor: default; }
.composer-hint { text-align: center; font-size: 11.5px; color: var(--text-faint); margin-top: 10px; }

/* ============ Popover ============ */
.popover {
  position: fixed;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  padding: 6px;
  min-width: 240px;
  max-width: 320px;
  z-index: 100;
  max-height: 360px;
  overflow-y: auto;
}
.popover-title { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); padding: 8px 10px 6px; }
.popover-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text);
  cursor: pointer;
}
.popover-item:hover { background: var(--chip-bg); }
.popover-item .check { margin-left: auto; color: var(--accent); opacity: 0; }
.popover-item.selected .check { opacity: 1; }
.popover-item .meta { font-size: 11px; color: var(--text-faint); }

/* ============ Top bar (mode switch) ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-soft);
  flex: 0 0 auto;
}
.topbar-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: .01em;
}
.mode-switch {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.mode-btn {
  padding: 5px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: background .12s, color .12s;
}
.mode-btn:hover { color: var(--text); }
.mode-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ============ Service chips (Chat mode) ============ */
.services {
  display: flex;
  gap: 8px;
  padding: 12px 24px 0;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  flex: 0 0 auto;
}
.services::-webkit-scrollbar { height: 6px; }
.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--chip-bg);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
}
.service-chip:hover {
  background: var(--chip-hover);
  color: var(--text);
}
.service-chip.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.service-chip svg { flex: 0 0 auto; }

/* ============ Welcome sub ============ */
.welcome-sub {
  font-size: 14px;
  color: var(--text-faint);
  margin-top: 8px;
  text-align: center;
}
.welcome { flex-direction: column; }

/* ============ Sidebar blog links ============ */
.side-label-toggle {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 6px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); text-align: left;
  transition: background .12s, color .12s;
}
.side-label-toggle:hover { background: var(--chip-bg); color: var(--text); }
.side-label-toggle .toggle-chev { margin-left: auto; transition: transform .18s ease; }
.side-label-toggle[aria-expanded="true"] .toggle-chev { transform: rotate(180deg); }
.blog-links { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.blog-links[hidden] { display: none; }
.blog-link {
  display: block; width: 100%;
  padding: 7px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text-dim);
  text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .12s, color .12s;
}
.blog-link:hover { background: var(--chip-bg); color: var(--text); }
.blog-link.active { background: var(--accent-soft); color: var(--accent); }

/* ============ Blog view (canvas) ============ */
.blog-view {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  animation: panelIn .25s ease;
}
.blog-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: 12.5px; font-weight: 500;
  border-radius: 8px; padding: 6px 10px;
  transition: background .12s, color .12s;
}
.blog-back:hover { background: var(--chip-bg); color: var(--text); }

/* --- Blog list --- */
.blog-head { margin: 14px 0 20px; }
.blog-head-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.blog-head-sub { color: var(--text-dim); font-size: 14px; max-width: 60ch; line-height: 1.55; }
.blog-list { display: flex; flex-direction: column; gap: 14px; }
.blog-card {
  display: flex; gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color .12s, transform .12s;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.blog-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.blog-card-media {
  flex: 0 0 120px; height: 120px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-soft);
}
.blog-card-media svg { width: 48px; height: 48px; }
.blog-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.blog-card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--text-faint);
  margin-bottom: 6px;
}
.blog-tag {
  font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 20px; padding: 2px 8px;
}
.blog-card-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; line-height: 1.3; }
.blog-card-excerpt { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-faint); }
.blog-read { color: var(--accent); font-weight: 600; }

/* --- Article --- */
.blog-article { margin-top: 14px; }
.blog-article-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
.blog-article-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); margin-bottom: 12px; flex-wrap: wrap; }
.blog-article-title { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.blog-article-sub { font-size: 15px; color: var(--text-dim); line-height: 1.6; max-width: 70ch; margin-bottom: 16px; }
.blog-article-kws { margin-top: 4px; }
.blog-kws-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 8px; }
.blog-kw-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.blog-kw-chip {
  font-size: 12px; color: var(--text-dim);
  background: var(--chip-bg);
  border: 1px solid var(--border-soft);
  border-radius: 20px; padding: 4px 11px;
}
.blog-kw-link { color: var(--accent); cursor: pointer; }
.blog-kw-link:hover { text-decoration: underline; }

.blog-article-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; align-items: start; }
.blog-toc { position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow: auto; scrollbar-width: thin; }
.blog-toc details { border: 1px solid var(--border-soft); border-radius: 12px; background: var(--panel); padding: 10px; }
.blog-toc summary { min-height: 36px; display: flex; align-items: center; cursor: pointer; color: var(--text); font-size: 12px; font-weight: 650; }
.blog-toc nav { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.blog-toc a { display: block; padding: 7px 8px; border-radius: 7px; color: var(--text-dim); font-size: 11.5px; line-height: 1.35; text-decoration: none; }
.blog-toc a:hover, .blog-toc a:focus-visible { color: var(--text); background: var(--chip-bg); outline: none; }
.blog-article-body { min-width: 0; overflow-wrap: break-word; font-size: 16px; color: var(--text); line-height: 1.72; }
.blog-article-body h3 {
  scroll-margin-top: 20px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em;
  margin: 32px 0 12px; padding-top: 6px;
}
.blog-article-body h3:focus { outline: none; }
.blog-article-body h4 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
.blog-article-body p { margin: 0 0 16px; color: var(--text-dim); }
.blog-article-body p strong, .blog-article-body li strong { color: var(--text); }
.blog-article-body a { color: var(--accent); text-underline-offset: 3px; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.blog-article-body li { color: var(--text-dim); line-height: 1.65; padding-left: 3px; }
.blog-article-body em { color: var(--text); font-style: italic; }
.blog-figure { margin: 26px 0; }
.blog-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--panel); }
.blog-figure figcaption { margin-top: 8px; color: var(--text-faint); font-size: 12px; line-height: 1.5; }
.blog-figure-animated img { animation: blogVisualFloat 5s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes blogVisualFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .blog-figure-animated img { animation: none; } }

/* --- Article CTA --- */
.blog-article-cta {
  display: flex; gap: 20px; align-items: center;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin: 28px 0;
}
.blog-cta-card {
  flex: 0 0 120px; height: 120px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-soft);
}
.blog-cta-card svg { width: 52px; height: 52px; }
.blog-article-cta h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.blog-article-cta p { font-size: 13.5px; color: var(--text-dim); margin-bottom: 14px; line-height: 1.5; }
.blog-cta-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* --- Article nav (next guide) --- */
.blog-article-nav { display: flex; flex-direction: column; gap: 10px; }
.blog-nav-card {
  display: flex; flex-direction: column; gap: 3px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .12s;
}
.blog-nav-card:hover { border-color: var(--accent); }
.blog-nav-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.blog-nav-title { font-size: 14px; font-weight: 600; color: var(--text); }

/* --- Keyword page FAQ --- */
.kw-faq { border-bottom: 1px solid var(--border-soft); padding: 12px 0; }
.kw-faq:last-child { border-bottom: none; }
.kw-faq-q { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.kw-faq-a { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }

@media (max-width: 900px) {
  .blog-article-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .blog-toc { position: static; max-height: none; }
  .blog-toc details { padding: 8px 12px; }
  .blog-toc summary { min-height: 44px; font-size: 14px; }
  .blog-toc a { min-height: 44px; display: flex; align-items: center; font-size: 13px; }
}
@media (max-width: 640px) {
  .blog-view { padding: 20px 16px 32px; }
  .blog-card { flex-direction: column; }
  .blog-card-media { flex: 0 0 auto; width: 100%; height: 90px; }
  .blog-article-title { font-size: 26px; overflow-wrap: break-word; }
  .blog-article-body { font-size: 16px; line-height: 1.7; }
  .blog-article-body h3 { font-size: 20px; margin-top: 28px; }
  .blog-figure { margin: 22px 0; }
  .blog-figure img { border-radius: 10px; }
  .blog-article-cta { flex-direction: column; align-items: flex-start; padding: 16px; }
  .blog-cta-card { flex: 0 0 auto; width: 100%; height: 90px; }
}

/* ============ Page views (Contact / About / Reviews) ============ */
.page-view {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  animation: panelIn .25s ease;
}
.page-head { margin-bottom: 22px; }
.page-title { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.page-sub { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; max-width: 70ch; }
.page-sub strong { color: var(--text); }

/* --- Contact Us --- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
}
.contact-form label { display: flex; flex-direction: column; gap: 7px; }
.contact-form label > span { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13.5px;
  padding: 11px 12px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-full { grid-column: 1 / -1; }
.contact-form .pp-cta { grid-column: 1 / -1; justify-content: center; }
.contact-note { grid-column: 1 / -1; font-size: 13px; padding: 10px 12px; border-radius: 10px; }
.contact-note.ok { color: #7fd6a0; background: rgba(127,214,160,.1); border: 1px solid rgba(127,214,160,.3); }
.contact-note.err { color: #ff9b9b; background: rgba(255,155,155,.1); border: 1px solid rgba(255,155,155,.3); }
.contact-aside { display: flex; flex-direction: column; gap: 12px; }
.contact-aside-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.contact-aside-card h3 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.contact-aside-card p { font-size: 13px; color: var(--text-dim); line-height: 1.55; word-break: break-word; }

/* --- About Us --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.about-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.about-card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.about-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.about-list li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.about-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.about-cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* --- Reviews (ported from ReviewFlow, themed to the dashboard) --- */
.lf-unified-reviews { position: relative; }
.lf-unified-reviews-space { position: relative; }
.lf-review-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 22px;
}
.lf-review-eyebrow {
  display: inline-block; margin-bottom: 8px;
  color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .16em;
}
.lf-review-heading h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.lf-review-heading p { margin: 8px 0 0; color: var(--text-dim); font-size: 13.5px; max-width: 50ch; line-height: 1.55; }
.lf-review-score {
  min-width: 150px; text-align: center;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 16px;
}
.lf-review-score strong { display: block; font-size: 30px; font-weight: 700; color: var(--text); }
.lf-review-score > span { display: block; color: #ffd06d; letter-spacing: 2px; margin: 3px 0; }
.lf-review-score small { color: var(--text-faint); font-size: 12px; }
.lf-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.lf-review-card {
  display: flex; flex-direction: column; min-height: 180px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform .15s, border-color .15s;
}
.lf-review-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.lf-review-card-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lf-review-stars { color: #ffd06d; font-size: 15px; }
.lf-review-stars span { color: var(--text-faint); }
.lf-review-service { color: var(--accent); font-size: 11px; font-weight: 700; text-align: right; max-width: 140px; }
.lf-review-card blockquote { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.lf-review-card footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--text-faint); }
.lf-review-card footer strong { color: var(--text); }
.lf-review-empty {
  padding: 32px; text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 18px;
}
.lf-review-empty > div { color: #ffd06d; font-size: 32px; }
.lf-review-empty h3 { color: var(--text); margin: 8px 0 4px; font-size: 16px; }
.lf-review-empty p { color: var(--text-dim); font-size: 13px; margin: 0; }
.lf-review-form-wrap {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--panel);
}
.lf-review-form-wrap summary { cursor: pointer; padding: 14px 18px; color: var(--text); font-weight: 600; font-size: 14px; }
.lf-review-form-panel { padding: 0 18px 18px; }
.lf-review-form-panel h3 { color: var(--text); font-size: 16px; margin: 4px 0 4px; }
.lf-review-form-panel > p { color: var(--text-dim); font-size: 13px; margin: 0 0 16px; }
.lf-review-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lf-review-fields label, .lf-rating-field { display: flex; flex-direction: column; gap: 7px; }
.lf-review-fields label > span, .lf-rating-field legend { color: var(--text-dim); font-size: 12px; font-weight: 600; }
.lf-review-fields input, .lf-review-fields select, .lf-review-fields textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13.5px;
  padding: 11px 12px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.lf-review-fields input:focus, .lf-review-fields select:focus, .lf-review-fields textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.lf-review-fields textarea { resize: vertical; min-height: 110px; }
.lf-review-full, .lf-rating-field { grid-column: 1 / -1; }
.lf-rating-field { margin: 0; padding: 0; border: 0; }
.lf-rating-options { display: flex; gap: 8px; flex-wrap: wrap; }
.lf-rating-options label { position: relative; }
.lf-rating-options input { position: absolute; opacity: 0; }
.lf-rating-options span {
  display: inline-flex; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 20px;
  cursor: pointer; color: var(--text-dim); font-size: 13px;
  transition: background .12s, color .12s, border-color .12s;
}
.lf-rating-options input:checked + span { background: #ffd36d; color: #1a1a1a; border-color: #ffd36d; }
.lf-review-submit {
  margin-top: 16px;
  padding: 12px 18px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .12s;
}
.lf-review-submit:hover { background: var(--accent-hover); }
.review-note { margin-top: 12px; font-size: 13px; padding: 10px 12px; border-radius: 10px; }
.review-note.ok { color: #7fd6a0; background: rgba(127,214,160,.1); border: 1px solid rgba(127,214,160,.3); }
.review-note.err { color: #ff9b9b; background: rgba(255,155,155,.1); border: 1px solid rgba(255,155,155,.3); }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .lf-review-heading { flex-direction: column; align-items: flex-start; }
  .lf-review-score { width: 100%; }
  .lf-review-grid { grid-template-columns: 1fr; }
  .lf-review-fields { grid-template-columns: 1fr; }
  .lf-review-full, .lf-rating-field { grid-column: auto; }
}

/* ============ Scrollbars ============ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #34343a; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ Responsive ============ */
@media (max-width: 640px) {
  .rail { width: 52px; flex-basis: 52px; }
  .welcome-title { font-size: 24px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .canvas-scroll { scroll-behavior: auto; }
  .typing span, .caret { animation: none; }
  * { transition: none !important; }
}

/* ===== Full-screen page overlay (one page at a time) ===== */
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--bg, #0a0b10);
}
.page-overlay[hidden] { display: none; }
.page-overlay-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
  background: rgba(255,255,255,.02);
}
.page-overlay-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border, rgba(255,255,255,.1));
  color: var(--text, #e7e9f2);
  font: 600 13px/1 inherit;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.page-overlay-close:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.page-overlay-title { font-size: 15px; font-weight: 600; color: var(--text-dim, #9aa0b4); }
.page-overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: 26px clamp(18px, 5vw, 64px) 48px;
}
.page-overlay-body > * { max-width: 920px; margin-left: auto; margin-right: auto; }
body.page-overlay-open .site-marquee,
body.page-overlay-open .composer-wrap,
body.page-overlay-open .sidebar { visibility: hidden; }

/* ===== Site links marquee (continuous scroll) ===== */
.site-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border, rgba(255,255,255,.08));
  border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
  background: rgba(255,255,255,.02);
  padding: 10px 0;
  flex: none;
}
.site-marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: site-marquee-scroll 30s linear infinite;
}
.site-marquee:hover .site-marquee-track { animation-play-state: paused; }
@keyframes site-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.site-link {
  background: none;
  border: none;
  color: var(--text-dim, #9aa0b4);
  font: 500 13px/1 inherit;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.site-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.site-link-sep { color: rgba(255,255,255,.18); font-size: 11px; padding: 0 2px; }

/* ===== Static pages (Proof, Refund, FAQ, Disclaimer, Privacy, Terms) ===== */
.static-page { padding: 8px 4px 24px; }
.static-page-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.static-page-head h2 { font-size: 22px; font-weight: 700; color: #fff; margin: 0; }
.static-page-sub { color: var(--text-dim, #9aa0b4); font-size: 14px; margin: 0; }
.static-page-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 8px;
  background: rgba(109,124,255,.12); color: #8b98ff;
}
.static-page-sec { margin-bottom: 18px; }
.static-page-sec h3 { font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 6px; }
.static-page-sec p { color: var(--text-dim, #9aa0b4); font-size: 14px; line-height: 1.65; margin: 0; }
.static-page-sec a { color: #8b98ff; text-decoration: none; }
.static-page-sec a:hover { text-decoration: underline; }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
  background: rgba(255,255,255,.02);
}
.faq-item summary {
  cursor: pointer; padding: 14px 16px; font-size: 14px; font-weight: 600; color: #fff;
  list-style: none; position: relative; padding-right: 36px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim, #9aa0b4); font-size: 18px; transition: transform .2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 16px 14px; margin: 0; color: var(--text-dim, #9aa0b4); font-size: 14px; line-height: 1.65; }

/* ===== Shop ===== */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.shop-card {
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.02);
  display: flex; flex-direction: column;
}
.shop-card-media { height: 120px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--p-accent) 18%, transparent), transparent); }
.shop-card-media svg { width: 56px; height: 56px; }
.shop-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shop-card-body h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 0; }
.shop-card-tag { font-size: 13px; color: var(--text-dim, #9aa0b4); margin: 0; }
.shop-card-price { font-size: 20px; font-weight: 700; color: var(--p-accent, #8b98ff); }
.shop-card-inc { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 4px; }
.shop-card-inc li { font-size: 12.5px; color: var(--text-dim, #9aa0b4); padding-left: 16px; position: relative; }
.shop-card-inc li::before { content: "✓"; position: absolute; left: 0; color: var(--p-accent, #8b98ff); }
.shop-card-cta { margin-top: auto; width: 100%; }

/* ===== Videos / upload ===== */
.video-drop {
  border: 2px dashed var(--border, rgba(255,255,255,.15));
  border-radius: 16px; padding: 36px 20px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s; background: rgba(255,255,255,.02);
}
.video-drop:hover, .video-drop.drag { border-color: #8b98ff; background: rgba(109,124,255,.06); }
.video-drop-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.video-drop-inner svg { color: #8b98ff; }
.video-drop-title { font-size: 15px; font-weight: 600; color: #fff; margin: 6px 0 0; }
.video-drop-hint { font-size: 13px; color: var(--text-dim, #9aa0b4); margin: 0; }
.video-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.video-preview video { width: 100%; max-height: 320px; border-radius: 12px; background: #000; }
.video-file-name { font-size: 13px; color: var(--text-dim, #9aa0b4); margin: 0; }
.video-note { margin-top: 12px; font-size: 13px; }
.video-note.ok { color: #34d3a6; }
.video-note.err { color: #ff7a7a; }

/* ===== Admin System ===== */
.admin-gear {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim, #9aa0b4); cursor: pointer; margin-bottom: 10px;
  transition: all 0.15s;
}
.admin-gear:hover { background: rgba(255,255,255,0.12); color: #fff; }

.admin-modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.admin-modal {
  background: #1a1d2e; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 32px; width: 100%; max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.admin-modal-head { text-align: center; margin-bottom: 24px; }
.admin-modal-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #6d7cff, #9b6dff);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; color: #fff;
}
.admin-modal-head h3 { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.admin-modal-sub { font-size: 13px; color: var(--text-dim, #9aa0b4); margin: 0; }
.admin-login-form { display: flex; flex-direction: column; gap: 16px; }
.admin-field { display: flex; flex-direction: column; gap: 6px; }
.admin-field label { font-size: 12px; font-weight: 600; color: var(--text-dim, #9aa0b4); text-transform: uppercase; letter-spacing: 0.05em; }
.admin-field input {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #fff;
  outline: none; transition: border-color 0.15s;
}
.admin-field input:focus { border-color: #6d7cff; }
.admin-login-msg { font-size: 13px; text-align: center; }
.admin-login-msg.error { color: #ff7a7a; }
.admin-login-msg.success { color: #34d3a6; }
.admin-login-actions { display: flex; gap: 10px; justify-content: flex-end; }
.admin-login-actions .btn-ghost {
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-dim, #9aa0b4); padding: 8px 16px; border-radius: 8px;
  font-size: 13px; cursor: pointer; transition: all 0.15s;
}
.admin-login-actions .btn-ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-login-actions .btn-primary {
  background: linear-gradient(135deg, #6d7cff, #9b6dff); border: none;
  color: #fff; padding: 8px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.15s;
}
.admin-login-actions .btn-primary:hover { opacity: 0.9; }

.admin-dashboard {
  position: fixed; inset: 0; z-index: 900;
  background: #0f1119; display: flex; flex-direction: column;
}
.admin-dash-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #1a1d2e;
}
.admin-dash-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #fff; }
.admin-dash-brand svg { color: #6d7cff; }
.admin-dash-actions { display: flex; gap: 8px; }
.admin-dash-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim, #9aa0b4); padding: 6px 12px; border-radius: 8px;
  font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.admin-dash-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.admin-dash-body { display: flex; flex: 1; overflow: hidden; }
.admin-dash-nav {
  width: 200px; padding: 16px 10px; display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid rgba(255,255,255,0.08); background: #141625;
  overflow-y: auto;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; border: none;
  background: transparent; color: var(--text-dim, #9aa0b4);
  font-size: 13px; font-weight: 500; cursor: pointer; text-align: left;
  transition: all 0.15s;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav-item.active { background: linear-gradient(135deg, rgba(109,124,255,0.2), rgba(155,109,255,0.2)); color: #fff; }
.admin-dash-content { flex: 1; overflow-y: auto; padding: 24px; }
.admin-section h2 { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.admin-sub { font-size: 13px; color: var(--text-dim, #9aa0b4); margin: 0 0 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim, #9aa0b4); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #e0e0e0; }
.admin-table tr:hover td { background: rgba(255,255,255,0.03); }
.admin-empty-cell { text-align: center; color: var(--text-dim, #9aa0b4); padding: 32px !important; }
.admin-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; text-transform: capitalize;
}
.admin-badge.sent, .admin-badge.completed { background: rgba(52,211,166,0.15); color: #34d3a6; }
.admin-badge.failed, .admin-badge.cancelled { background: rgba(255,122,122,0.15); color: #ff7a7a; }
.admin-badge.pending { background: rgba(240,168,80,0.15); color: #f0a850; }
.admin-card {
  background: #1a1d2e; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 16px; margin-bottom: 12px;
}
.admin-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.admin-card-head strong { font-size: 14px; color: #fff; }
.admin-card-date { font-size: 12px; color: var(--text-dim, #9aa0b4); }
.admin-card-sub { font-size: 13px; color: var(--text-dim, #9aa0b4); margin-bottom: 6px; }
.admin-card-body { font-size: 13px; color: #e0e0e0; line-height: 1.5; }
.admin-card-meta { font-size: 12px; color: var(--text-dim, #9aa0b4); margin-top: 8px; }
.admin-empty { text-align: center; padding: 48px 0; color: var(--text-dim, #9aa0b4); font-size: 14px; }
.admin-video-upload { margin-bottom: 20px; }
.admin-video-label { font-size: 13px; font-weight: 600; color: var(--text-dim, #9aa0b4); display: block; margin-bottom: 8px; }
.admin-video-upload input[type="file"] {
  width: 100%; padding: 10px; background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.15); border-radius: 8px;
  color: var(--text-dim, #9aa0b4); font-size: 13px; cursor: pointer;
}
.admin-video-preview { margin-top: 12px; }
.admin-video-preview video { width: 100%; max-height: 200px; border-radius: 8px; background: #000; }
.admin-video-meta { font-size: 12px; color: var(--text-dim, #9aa0b4); margin-top: 4px; }
.admin-video-list { display: flex; flex-direction: column; gap: 12px; }
.admin-video-item {
  background: #1a1d2e; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 12px;
}
.admin-video-item video { width: 100%; max-height: 160px; border-radius: 8px; background: #000; margin-bottom: 8px; }
.admin-video-del {
  background: rgba(255,122,122,0.15); border: none; color: #ff7a7a;
  padding: 4px 12px; border-radius: 6px; font-size: 12px; cursor: pointer;
  transition: all 0.15s;
}
.admin-video-del:hover { background: rgba(255,122,122,0.3); }

/* ============================================================
   Responsive & device hardening (appended — wins the cascade)
   ============================================================ */

/* Real viewport height on mobile browsers (URL bar safe) */
#app { height: 100vh; height: 100dvh; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,.1));
  background: transparent; color: var(--text, #ececec);
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,.06); }
.topbar-left { display: flex; align-items: center; gap: 10px; }

/* Tablet & phone: sidebar becomes an overlay drawer */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1200;
    width: min(300px, 84vw);
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 0 0 48px rgba(0,0,0,.5);
    overflow-y: auto;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
  }
  body.nav-open { overflow: hidden; }

  /* Admin dashboard stacks vertically */
  .admin-dash-body { flex-direction: column; }
  .admin-dash-nav {
    width: 100%; flex-direction: row; overflow-x: auto;
    border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 10px;
  }
  .admin-nav-item { white-space: nowrap; }
}

/* Phone fine-tuning */
@media (max-width: 640px) {
  .topbar { padding: 10px 12px; }
  .welcome { padding: 16px; }
  .welcome-title { font-size: clamp(22px, 6.5vw, 28px); text-align: center; }
  .welcome-sub { text-align: center; }
  .composer-wrap { padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .admin-modal {
    margin: 14px; padding: 22px;
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
  }
  .admin-dash-header { flex-wrap: wrap; gap: 8px; }
  .admin-dash-actions .admin-dash-btn { padding: 8px 10px; font-size: 12px; }
  /* Prevent iOS auto-zoom on focus (needs >= 16px) */
  input, textarea, select { font-size: 16px; }
}

@media (max-width: 520px) {
  .demo-badge { display: none; }
}

/* Admin tables/cards never overflow small screens */
.admin-dash-content { overflow: auto; }
.admin-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { min-width: 560px; }

/* Comfortable touch targets on touch devices */
@media (pointer: coarse) {
  .side-link, .product-btn, .blog-link, .side-label-toggle { min-height: 40px; }
  .mode-btn { min-height: 36px; }
  .nav-toggle { width: 40px; height: 40px; flex-basis: 40px; }
}

/* Notched phones: keep top bar clear of the status area */
.topbar { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }

/* Visible keyboard focus */
:focus-visible { outline: 2px solid var(--accent, #6d7cff); outline-offset: 2px; }

/* Guard against any horizontal bleed */
html, body { overflow-x: hidden; }

/* ============================================================
   vrylon brand + home flow animation + inline pages
   ============================================================ */

/* ---- Brand mark ---- */
.brand-mark { display: inline-flex; align-items: center; flex: 0 0 auto; filter: drop-shadow(0 2px 8px rgba(109,124,255,.35)); }
.topbar-brand { font-weight: 700; letter-spacing: .01em; }
.foot-avatar {
  background: linear-gradient(135deg, #6d7cff, #a06bff) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 10px !important;
}

/* ---- Animated process flow (home welcome) ---- */
.flow-anim {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(680px, 100%);
  margin-top: 38px;
  user-select: none;
}
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.flow-chip {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #c6cfff;
  background: rgba(109,124,255,.10);
  border: 1px solid rgba(109,124,255,.30);
  animation: flowBob 3s ease-in-out infinite, flowPulse 3s ease-in-out infinite;
}
.flow-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint, #6b6b70);
}
.flow-line {
  position: relative;
  flex: 1 1 44px;
  min-width: 28px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.10);
  margin-bottom: 26px; /* lift line to chip center */
}
.flow-progress {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #6d7cff, #a06bff, transparent);
  background-size: 45% 100%;
  background-repeat: no-repeat;
  animation: flowSlide 2.6s linear infinite;
}
.flow-dot, .flow-pkg {
  position: absolute;
  top: 50%; left: 0;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8fa0ff, #a06bff);
  box-shadow: 0 0 12px rgba(140,150,255,.85);
  animation: flowTravel 2.6s linear infinite;
}
.flow-pkg { border-radius: 3px; } /* the "package" traveling to the van */
.flow-van svg { animation: vanRock 1.15s ease-in-out infinite; transform-origin: 50% 80%; }

/* Stagger the three connectors so the motion reads as one continuous journey */
.flow-anim > :nth-child(4) .flow-dot,
.flow-anim > :nth-child(4) .flow-progress { animation-delay: .85s; }
.flow-anim > :nth-child(6) .flow-dot,
.flow-anim > :nth-child(6) .flow-pkg,
.flow-anim > :nth-child(6) .flow-progress { animation-delay: 1.7s; }

@keyframes flowTravel {
  0%   { left: 0;    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes flowSlide {
  0%   { background-position: -45% 0; }
  100% { background-position: 145% 0; }
}
@keyframes flowBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes flowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(109,124,255,.18); }
  50%      { box-shadow: 0 0 22px 3px rgba(109,124,255,.16); }
}
@keyframes vanRock {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25%      { transform: translateX(1.5px) rotate(-1.5deg); }
  75%      { transform: translateX(-1.5px) rotate(1.5deg); }
}

@media (max-width: 640px) {
  .flow-anim { gap: 6px; margin-top: 26px; }
  .flow-chip { width: 44px; height: 44px; border-radius: 13px; }
  .flow-chip svg { width: 18px; height: 18px; }
  .flow-label { font-size: 9px; }
  .flow-line { min-width: 14px; margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-chip, .flow-progress, .flow-dot, .flow-pkg, .flow-van svg { animation: none !important; }
}

/* ---- Pages open INSIDE the chat section — surrounding UI stays visible ---- */
.page-overlay {
  position: relative;
  inset: auto;
  z-index: 30;
  grid-area: scroll;
  min-height: 0;
}
body.page-overlay-open .site-marquee,
body.page-overlay-open .composer-wrap,
body.page-overlay-open .sidebar { visibility: visible; }

/* ============================================================
   vrylon premium features — themes · pickers · chat · account
   ============================================================ */

/* ---------- 6 premium themes ---------- */
:root, [data-theme="onyx"] {
  --bg: #0a0a0a; --bg-soft: #101012; --panel: #141416; --panel-2: #1a1a1d;
  --border: #232327; --border-soft: #1c1c1f;
  --text: #ececec; --text-dim: #9a9a9f; --text-faint: #6b6b70;
  --accent: #6d7cff; --accent-hover: #5b6bf0; --accent-soft: rgba(109, 124, 255, 0.14);
  --accent-2: #a06bff;
  --chip-bg: #1c1c1f; --chip-hover: #242428;
  --aura-1: rgba(109, 124, 255, .13); --aura-2: rgba(160, 107, 255, .10);
  --ok: #34d3a6; --danger: #ff7a7a;
}
[data-theme="aurora"] {
  --bg: #0d0a1f; --bg-soft: #130f2a; --panel: #171232; --panel-2: #1e1840;
  --border: #2a2350; --border-soft: #221b45;
  --text: #efedff; --text-dim: #a8a3cc; --text-faint: #7671a0;
  --accent: #a06bff; --accent-hover: #8f55f5; --accent-soft: rgba(160, 107, 255, 0.16);
  --accent-2: #5ec8ff;
  --chip-bg: #1e1840; --chip-hover: #282054;
  --aura-1: rgba(160, 107, 255, .16); --aura-2: rgba(94, 200, 255, .10);
}
[data-theme="emerald"] {
  --bg: #07120d; --bg-soft: #0a1811; --panel: #0d1f15; --panel-2: #11281b;
  --border: #1b3a28; --border-soft: #143022;
  --text: #e8f7ee; --text-dim: #93b8a2; --text-faint: #5f8570;
  --accent: #22c88a; --accent-hover: #1bb67a; --accent-soft: rgba(34, 200, 138, 0.15);
  --accent-2: #7ef0c0;
  --chip-bg: #11281b; --chip-hover: #163523;
  --aura-1: rgba(34, 200, 138, .13); --aura-2: rgba(126, 240, 192, .08);
}
[data-theme="sunset"] {
  --bg: #160c06; --bg-soft: #1c100a; --panel: #241409; --panel-2: #2c1a0c;
  --border: #452b14; --border-soft: #33200f;
  --text: #fdf1e4; --text-dim: #c9a888; --text-faint: #8f7355;
  --accent: #f59e0b; --accent-hover: #e08d06; --accent-soft: rgba(245, 158, 11, 0.15);
  --accent-2: #ff6b4a;
  --chip-bg: #2c1a0c; --chip-hover: #3a2210;
  --aura-1: rgba(245, 158, 11, .13); --aura-2: rgba(255, 107, 74, .09);
}
[data-theme="rose"] {
  --bg: #160a11; --bg-soft: #1c0e16; --panel: #241119; --panel-2: #2c1620;
  --border: #47222f; --border-soft: #331a24;
  --text: #fdeef4; --text-dim: #cda0b2; --text-faint: #91687a;
  --accent: #f472b6; --accent-hover: #ef5da6; --accent-soft: rgba(244, 114, 182, 0.15);
  --accent-2: #c084fc;
  --chip-bg: #2c1620; --chip-hover: #3a1d2b;
  --aura-1: rgba(244, 114, 182, .13); --aura-2: rgba(192, 132, 252, .09);
}
[data-theme="glacier"] {
  --bg: #eef1f8; --bg-soft: #e4e9f4; --panel: #ffffff; --panel-2: #f2f5fb;
  --border: #d4dcec; --border-soft: #e0e6f2;
  --text: #17203a; --text-dim: #4c5a7d; --text-faint: #8a97b8;
  --accent: #3b82f6; --accent-hover: #2f74e8; --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-2: #7cc4ff;
  --chip-bg: #e8edf8; --chip-hover: #dde4f4;
  --aura-1: rgba(59, 130, 246, .12); --aura-2: rgba(124, 196, 255, .14);
}
/* glacier light-mode fixes for hardcoded dark surfaces */
[data-theme="glacier"] .site-marquee { background: rgba(23, 32, 58, .03); }
[data-theme="glacier"] .msg-text pre { background: #f2f5fb; }
[data-theme="glacier"] .flow-line { background: rgba(23, 32, 58, .14); }
[data-theme="glacier"] .flow-chip { color: #2f74e8; background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.30); }
html { transition: background .35s ease; }
body { transition: background .35s ease, color .35s ease; }

/* ---------- living aura behind the app ---------- */
.theme-aura {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.aura-blob {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(90px); opacity: .9;
  animation: auraDrift 26s ease-in-out infinite alternate;
}
.aura-blob.a1 { background: radial-gradient(circle at 35% 35%, var(--aura-1), transparent 62%); top: -12vmax; left: -10vmax; }
.aura-blob.a2 { background: radial-gradient(circle at 60% 60%, var(--aura-2), transparent 62%); bottom: -14vmax; right: -8vmax; animation-delay: -13s; animation-duration: 32s; }
@keyframes auraDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6vmax, 4vmax) scale(1.12); }
  100% { transform: translate(-4vmax, 7vmax) scale(.94); }
}
#app { position: relative; z-index: 1; }

/* ---------- tool buttons (theme / language) ---------- */
.tool-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  transition: background .15s, color .15s, transform .15s;
  position: relative;
}
.tool-btn:hover { color: var(--text); background: var(--chip-bg); transform: translateY(-1px); }
.tool-btn[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); }
.tool-btn-label { letter-spacing: .02em; }
.tool-btn.theme-pop { animation: toolPop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes toolPop {
  0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); }
}

/* ---------- floating picker panels ---------- */
.tool-pop {
  position: fixed; z-index: 950;
  width: min(340px, calc(100vw - 20px));
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset;
  padding: 14px;
  opacity: 0; transform: translateY(-8px) scale(.97);
  transition: opacity .2s ease, transform .22s cubic-bezier(.34, 1.3, .64, 1);
}
[data-theme="glacier"] .tool-pop { box-shadow: 0 24px 60px rgba(23,32,58,.18); }
.tool-pop.in { opacity: 1; transform: translateY(0) scale(1); }
.tool-pop-head { display: flex; flex-direction: column; gap: 2px; padding: 2px 6px 12px; }
.tool-pop-title { font-size: 14px; font-weight: 700; color: var(--text); }
.tool-pop-sub { font-size: 11.5px; color: var(--text-faint); }

/* ---------- theme picker ---------- */
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--panel-2);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-align: left; position: relative;
}
.theme-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 22px rgba(0,0,0,.3); }
.theme-sw { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.theme-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.theme-meta b { font-size: 12.5px; color: var(--text); }
.theme-meta small { font-size: 10.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-check {
  position: absolute; top: 6px; right: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #fff; background: var(--accent);
  opacity: 0; transform: scale(.4); transition: opacity .18s, transform .22s cubic-bezier(.34,1.56,.64,1);
}
.theme-card.active .theme-check { opacity: 1; transform: scale(1); }

/* ---------- language picker ---------- */
.lang-search { padding: 0 2px 10px; }
.lang-search input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border-soft);
  border-radius: 9px; padding: 8px 12px; font-size: 13px; color: var(--text); outline: none;
}
.lang-search input:focus { border-color: var(--accent); }
.lang-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.lang-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px; position: relative;
  font-size: 13px; color: var(--text-dim);
  transition: background .12s, color .12s;
}
.lang-item:hover { background: var(--chip-bg); color: var(--text); }
.lang-item.active { background: var(--accent-soft); color: var(--accent); }
.lang-flag { font-size: 16px; }
.lang-name { flex: 1; text-align: left; }
.lang-code { font-size: 10.5px; color: var(--text-faint); letter-spacing: .06em; }
.lang-item .theme-check { top: 50%; right: 10px; transform: translateY(-50%) scale(.4); }
.lang-item.active .theme-check { opacity: 1; transform: translateY(-50%) scale(1); }

/* ---------- TRACK YOUR DOCUMENT badge ---------- */
.track-badge {
  cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 7px;
  animation: badgeGlow 2.6s ease-in-out infinite;
  transition: transform .15s;
}
.track-badge:hover { transform: translateY(-1px) scale(1.04); }
.track-badge:active { transform: scale(.97); }
.badge-pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: badgeDot 1.8s ease-out infinite;
}
@keyframes badgeDot {
  0% { box-shadow: 0 0 0 0 var(--accent-soft), 0 0 6px var(--accent); }
  70% { box-shadow: 0 0 0 7px transparent, 0 0 6px var(--accent); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 6px var(--accent); }
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 14px 1px var(--accent-soft); }
}
@media (max-width: 520px) { .demo-badge.track-badge { display: inline-flex; font-size: 9px; padding: 3px 7px; } }

/* ---------- track portal view (full-bleed in chat section) ---------- */
.page-overlay-body:has(> .track-view:not([hidden])) { padding: 0; }
.page-overlay-body > .track-view { max-width: none; width: 100%; height: 100%; margin: 0; }
.track-iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; background: var(--bg); }

/* ---------- global buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent)));
  border: none; color: #fff; padding: 10px 20px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: opacity .15s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px var(--accent-soft);
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 8px 22px var(--accent-soft); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-dim); padding: 10px 18px; border-radius: 10px;
  font-size: 13px; cursor: pointer; transition: all .15s;
}
.btn-ghost:hover { background: var(--chip-bg); color: var(--text); border-color: var(--accent); }

/* ---------- vrylon chat (email capture modal) ---------- */
.email-modal-backdrop {
  position: fixed; inset: 0; z-index: 960;
  background: rgba(4, 4, 8, .62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 18px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.email-modal {
  position: relative; width: min(430px, 100%);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  overflow: hidden;
  animation: modalIn .32s cubic-bezier(.34, 1.3, .64, 1);
}
[data-theme="glacier"] .email-modal { box-shadow: 0 30px 80px rgba(23,32,58,.25); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.vrylon-chat-glow {
  position: absolute; top: -70px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 160px; border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--aura-1), transparent 70%);
  filter: blur(24px); pointer-events: none;
  animation: glowBreathe 3.4s ease-in-out infinite;
}
@keyframes glowBreathe { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
.email-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; position: relative; }
.email-modal-icon {
  width: 42px; height: 42px; border-radius: 13px; flex: 0 0 42px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent)));
  box-shadow: 0 6px 18px var(--accent-soft);
}
.email-modal-head h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 0; }
.email-modal-sub { font-size: 12px; color: var(--text-faint); margin: 1px 0 0; }
.vrylon-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--ok, #34d3a6);
  text-transform: uppercase; letter-spacing: .05em;
}
.vrylon-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok, #34d3a6);
  animation: badgeDot 1.8s ease-out infinite;
}
.vrylon-chat-thread {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 14px; margin-bottom: 16px;
  max-height: 180px; overflow-y: auto;
}
.vrylon-bubble {
  max-width: 85%; padding: 9px 13px; border-radius: 14px;
  font-size: 13px; line-height: 1.45; word-break: break-word;
  animation: bubbleIn .3s cubic-bezier(.34, 1.3, .64, 1);
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.vrylon-bubble-agent {
  align-self: flex-start; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border-soft); border-bottom-left-radius: 4px;
}
.vrylon-bubble-you {
  align-self: flex-end; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent)));
  border-bottom-right-radius: 4px;
}
.email-modal-form { display: flex; flex-direction: column; gap: 10px; position: relative; }
.vrylon-field-label { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.email-modal-form input {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px; font-size: 14px; color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.email-modal-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.email-modal-msg { font-size: 12.5px; color: var(--ok, #34d3a6); }
.email-modal-msg.error { color: var(--danger, #ff7a7a); }
.email-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.vrylon-send { display: inline-flex; align-items: center; gap: 8px; }
.vrylon-send svg { transition: transform .2s; }
.vrylon-send:hover svg { transform: translateX(2px) translateY(-2px); }

/* ---------- account button (sidebar foot) ---------- */
.account-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 6px 8px; border-radius: 9px; position: relative;
  text-align: left; transition: background .12s;
}
.account-btn:hover { background: var(--chip-bg); }
.account-avatar { flex: 0 0 28px; }
.account-dot {
  position: absolute; top: 6px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.account-dot.dot-pop { animation: dotPop .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes dotPop { 0% { transform: scale(0); } 60% { transform: scale(1.6); } 100% { transform: scale(1); } }

/* ---------- auth pages ---------- */
.auth-wrap { display: grid; place-items: center; min-height: 100%; padding: 24px 12px 40px; }
.auth-card {
  position: relative; width: min(420px, 100%);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 22px; padding: 30px 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.4);
  overflow: hidden;
  animation: modalIn .35s cubic-bezier(.34, 1.3, .64, 1);
}
[data-theme="glacier"] .auth-card { box-shadow: 0 24px 70px rgba(23,32,58,.16); }
.auth-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 340px; height: 170px; border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--aura-1), transparent 70%);
  filter: blur(26px); pointer-events: none;
  animation: glowBreathe 3.6s ease-in-out infinite;
}
.auth-brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 18px; position: relative; }
.auth-brand b { font-size: 19px; letter-spacing: .01em; color: var(--text); }
.auth-mark { display: grid; place-items: center; filter: drop-shadow(0 4px 12px var(--accent-soft)); }
.auth-tabs {
  display: flex; gap: 4px; background: var(--bg-soft);
  border: 1px solid var(--border-soft); border-radius: 11px;
  padding: 4px; margin-bottom: 18px;
}
.auth-tab {
  flex: 1; padding: 8px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  transition: background .15s, color .15s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: var(--accent); color: #fff; box-shadow: 0 4px 12px var(--accent-soft); }
.auth-info {
  background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--accent); border-radius: 10px;
  font-size: 12.5px; padding: 10px 13px; margin-bottom: 14px;
}
.auth-msg { font-size: 12.5px; border-radius: 10px; padding: 10px 13px; margin-bottom: 14px; }
.auth-msg.ok { background: rgba(52, 211, 166, .12); border: 1px solid rgba(52, 211, 166, .4); color: var(--ok, #34d3a6); }
.auth-msg.err { background: rgba(255, 122, 122, .10); border: 1px solid rgba(255, 122, 122, .4); color: var(--danger, #ff7a7a); }
.auth-form { display: flex; flex-direction: column; gap: 13px; position: relative; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-dim); }
.auth-form input {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px; font-size: 14px; color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s; font-weight: 400;
}
.auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-submit { margin-top: 6px; width: 100%; padding: 12px; font-size: 14px; }
.auth-link {
  background: none; border: none; color: var(--accent);
  font-size: 12.5px; cursor: pointer; padding: 2px 0;
  transition: opacity .15s;
}
.auth-link:hover { opacity: .8; text-decoration: underline; }
.auth-swap { font-size: 12.5px; color: var(--text-faint); text-align: center; margin: 2px 0 0; }
.auth-title { font-size: 17px; font-weight: 700; color: var(--text); margin: 0 0 6px; position: relative; }
.auth-sub { font-size: 13px; color: var(--text-dim); margin: 0 0 16px; position: relative; }
.auth-mailbox {
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 13px 15px; margin-bottom: 14px;
  font-size: 12.5px; color: var(--text-dim); position: relative;
}
.auth-mailbox-head {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-faint); margin-bottom: 8px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border-soft);
}
.auth-mailbox-head b { color: var(--text); }
.auth-mailbox-head span { margin-left: auto; }
.auth-code {
  font-size: 24px; font-weight: 800; letter-spacing: .35em;
  color: var(--accent); text-align: center; padding: 8px 0 2px;
  font-variant-numeric: tabular-nums;
}

/* ---------- auth welcome (confetti) ---------- */
.auth-welcome { text-align: center; }
.auth-welcome h2 { font-size: 21px; color: var(--text); margin: 4px 0 10px; position: relative; }
.auth-welcome p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin: 0 0 20px; position: relative; }
.auth-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-confetti i {
  position: absolute; top: -12px; width: 8px; height: 12px;
  border-radius: 2px; opacity: .9;
  animation: confettiFall 2.8s ease-in infinite;
}
.auth-confetti i:nth-child(1) { left: 8%;  background: var(--accent); animation-delay: 0s; }
.auth-confetti i:nth-child(2) { left: 22%; background: var(--accent-2, #a06bff); animation-delay: .5s; }
.auth-confetti i:nth-child(3) { left: 36%; background: #34d3a6; animation-delay: 1.1s; }
.auth-confetti i:nth-child(4) { left: 50%; background: #f59e0b; animation-delay: .3s; }
.auth-confetti i:nth-child(5) { left: 64%; background: var(--accent); animation-delay: .9s; }
.auth-confetti i:nth-child(6) { left: 76%; background: #f472b6; animation-delay: 1.5s; }
.auth-confetti i:nth-child(7) { left: 88%; background: var(--accent-2, #a06bff); animation-delay: .7s; }
.auth-confetti i:nth-child(8) { left: 45%; background: #7cc4ff; animation-delay: 1.9s; }
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  8%   { opacity: .95; }
  100% { transform: translateY(460px) rotate(540deg); opacity: 0; }
}

/* ---------- account dashboard ---------- */
.acct { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; animation: fadeIn .25s ease; }
.acct-head { display: flex; align-items: center; gap: 12px; }
.acct-hello { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct-avatar {
  width: 44px; height: 44px; border-radius: 14px; flex: 0 0 44px;
  display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent)));
  box-shadow: 0 6px 18px var(--accent-soft);
}
.acct-hello b { font-size: 16px; color: var(--text); display: block; }
.acct-hello small { font-size: 12px; color: var(--text-faint); }
.acct-logout { margin-left: auto; padding: 7px 14px; font-size: 12px; }
.acct-nav {
  display: flex; gap: 4px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px; padding: 4px;
}
.acct-tab {
  flex: 1; padding: 9px 8px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s, color .15s;
}
.acct-tab:hover { color: var(--text); }
.acct-tab.active { background: var(--accent); color: #fff; box-shadow: 0 4px 12px var(--accent-soft); }
.acct-badge {
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--danger, #ff7a7a); color: #fff;
  font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center;
}
.acct-body { display: flex; flex-direction: column; gap: 12px; }
.acct-empty {
  text-align: center; padding: 46px 20px;
  background: var(--panel); border: 1px dashed var(--border); border-radius: 16px;
}
.acct-empty b { font-size: 15px; color: var(--text); display: block; margin-bottom: 6px; }
.acct-empty p { font-size: 12.5px; color: var(--text-faint); margin: 0; }
.acct-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, transform .15s;
}
.acct-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.acct-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acct-card-head b { font-size: 14.5px; color: var(--text); }
.acct-status {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent); border-radius: 20px; padding: 3px 10px;
  white-space: nowrap;
}
.acct-card-meta { font-size: 12px; color: var(--text-faint); }
.acct-mini-progress, .acct-big-progress {
  height: 6px; border-radius: 4px; background: var(--panel-2);
  overflow: hidden; border: 1px solid var(--border-soft);
}
.acct-big-progress { height: 10px; border-radius: 6px; margin: 10px 0 4px; }
.acct-mini-progress span, .acct-big-progress span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, var(--accent)));
  box-shadow: 0 0 10px var(--accent-soft);
  transition: width .6s cubic-bezier(.34, 1.2, .64, 1);
}
.acct-thread { display: flex; flex-direction: column; gap: 10px; }
.acct-msg { max-width: 78%; animation: bubbleIn .3s cubic-bezier(.34,1.3,.64,1); }
.acct-msg.in { align-self: flex-start; }
.acct-msg.out { align-self: flex-end; }
.acct-msg-body {
  padding: 10px 14px; border-radius: 15px; font-size: 13px; line-height: 1.5;
  word-break: break-word;
}
.acct-msg.in .acct-msg-body {
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text); border-bottom-left-radius: 4px;
}
.acct-msg.out .acct-msg-body {
  background: linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent)));
  color: #fff; border-bottom-right-radius: 4px;
}
.acct-msg-meta { font-size: 10.5px; color: var(--text-faint); margin-top: 4px; padding: 0 4px; }
.acct-msg.out .acct-msg-meta { text-align: right; }
.acct-track-top { display: flex; flex-direction: column; gap: 12px; }
.acct-select {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 13px; font-size: 13.5px; color: var(--text); outline: none;
}
.acct-select:focus { border-color: var(--accent); }
.acct-track-summary {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
}
.acct-track-summary > b { font-size: 15px; color: var(--text); margin-right: 10px; }
.acct-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.acct-step-group {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-faint); padding: 14px 0 6px 4px;
}
.acct-step {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 4px; font-size: 13px; color: var(--text-faint);
  position: relative;
}
.acct-step:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 30px; bottom: -6px;
  width: 2px; background: var(--border);
}
.acct-step.done { color: var(--text-dim); }
.acct-step.done:not(:last-child)::after { background: var(--accent); }
.acct-step.now { color: var(--text); font-weight: 600; }
.acct-pip {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px; z-index: 1;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text-faint);
}
.acct-step.done .acct-pip { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.acct-step.now .acct-pip {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: badgeDot 2s ease-out infinite;
}
.acct-track-live { margin-top: 16px; width: 100%; }
.acct-track-any {
  margin-top: 8px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 18px;
}
.acct-track-any b { font-size: 13.5px; color: var(--text); display: block; margin-bottom: 10px; }
.acct-track-bar { display: flex; gap: 8px; }
.acct-track-bar input {
  flex: 1; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 13px; font-size: 13px; color: var(--text); outline: none;
}
.acct-track-bar input:focus { border-color: var(--accent); }
.acct-track-bar .btn-primary { padding: 10px 16px; white-space: nowrap; }

/* ---------- admin order & reply tools ---------- */
.adm-ordertools {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 16px; margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.adm-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-form input, .adm-form select {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 8px 11px; font-size: 13px; color: #fff; outline: none;
}
.adm-form input:focus, .adm-form select:focus { border-color: #6d7cff; }
.adm-order-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 9px 0; border-top: 1px solid rgba(255,255,255,.07);
  font-size: 12.5px; color: #cfd3e4;
}
.adm-order-row span { flex: 1 1 180px; }
.adm-order-row select, .adm-order-row input {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px; padding: 6px 9px; font-size: 12px; color: #fff; outline: none;
}
.adm-order-row .btn-ghost { padding: 6px 12px; font-size: 12px; }
.adm-reply { font-size: 11.5px; padding: 5px 11px; }
.adm-reply-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.adm-reply-form textarea {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 9px 12px; font-size: 13px; color: #fff;
  min-height: 74px; resize: vertical; outline: none; font-family: inherit;
}
.adm-reply-form textarea:focus { border-color: #6d7cff; }
.adm-reply-form .btn-primary { align-self: flex-end; padding: 7px 16px; font-size: 12.5px; }

/* ---------- responsive & motion guards ---------- */
@media (max-width: 640px) {
  .tool-btn-label { display: none; }
  .tool-btn { padding: 6px 10px; }
  .tool-pop { width: calc(100vw - 20px); }
  .theme-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 24px 20px; }
  .acct-head { flex-wrap: wrap; }
  .acct-nav { overflow-x: auto; }
  .acct-tab { white-space: nowrap; }
  .email-modal { padding: 18px; }
  .vrylon-bubble { max-width: 92%; }
  .acct-msg { max-width: 90%; }
  .acct-track-bar { flex-direction: column; }
}
@media (max-width: 380px) {
  .theme-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .aura-blob, .theme-aura, .badge-pulse-dot, .track-badge, .vrylon-live-dot,
  .vrylon-chat-glow, .auth-glow, .auth-confetti i, .acct-step.now .acct-pip,
  .tool-btn.theme-pop, .account-dot.dot-pop { animation: none !important; }
  .email-modal, .auth-card, .vrylon-bubble, .acct-msg { animation: none !important; }
  html, body { transition: none !important; }
}

/* ---------- Sample Video gallery (view-only; admin publishes) ---------- */
.video-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.video-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.video-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.video-card-meta { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.video-card-meta b { font-size: 13.5px; color: var(--text); word-break: break-word; }
.video-card-meta span { font-size: 11.5px; color: var(--text-faint); }
.video-empty {
  text-align: center; padding: 60px 20px;
  background: var(--panel); border: 1px dashed var(--border); border-radius: 18px;
  color: var(--text-faint);
}
.video-empty svg { opacity: .6; margin-bottom: 12px; }
.video-empty b { display: block; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.video-empty p { font-size: 12.5px; margin: 0; }
@media (max-width: 640px) {
  .video-gallery { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   reviewflow+ — moving nebula reviews, count badge, SHOP button
   ============================================================ */

/* ---- SHOP button (topbar) ---- */
.shop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  color: var(--text); padding: 4px 12px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  transition: transform .15s, box-shadow .25s, background .2s;
  animation: shopGlow 3s ease-in-out infinite;
}
.shop-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px var(--accent-soft); }
.shop-btn:active { transform: scale(.97); }
.shop-btn-arrow { font-size: 11px; color: var(--accent); transition: transform .2s; }
.shop-btn:hover .shop-btn-arrow { transform: translateY(2px); }
@keyframes shopGlow {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 16px 1px var(--accent-soft); }
}

/* ---- live review-count badge on the Reviews nav button ---- */
.nav-review-count {
  margin-left: auto;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 11px;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f472b6);
  box-shadow: 0 2px 10px rgba(244, 114, 182, .45);
}
.nav-review-count.pop { animation: countPop .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes countPop {
  0% { transform: scale(.3); } 60% { transform: scale(1.35); } 100% { transform: scale(1); }
}

/* Live review total on the top-menu star icon. */
#reviews-btn { position: relative; overflow: visible; }
.top-review-status {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 22px;
  height: 18px;
  padding: 0 4px;
  color: #dffbed;
  background: #173e33;
  border: 1px solid rgba(112,228,179,.55);
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(0,0,0,.28);
  pointer-events: none;
}
.top-review-status i {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: #70e4b3;
  animation: top-review-beep 1.4s ease-out infinite;
}
.top-review-status b {
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  animation: top-review-number-beep 1.4s ease-in-out infinite;
}
@keyframes top-review-beep {
  0% { box-shadow: 0 0 0 0 rgba(112,228,179,.55); opacity: 1; }
  70% { box-shadow: 0 0 0 4px rgba(112,228,179,0); opacity: .65; }
  100% { box-shadow: 0 0 0 0 rgba(112,228,179,0); opacity: 1; }
}
@keyframes top-review-number-beep {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .78; }
}
@media (max-width: 768px) {
  .top-review-status { top: -5px; right: -5px; min-width: 20px; height: 17px; padding: 0 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .top-review-status i, .top-review-status b { animation: none; }
}

/* ---- nebula skin (adapted from reviewflow nebula design) ---- */
.lf-nebula {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 18%, var(--aura-1), transparent 27%),
    radial-gradient(circle at 16% 82%, var(--aura-2), transparent 30%),
    radial-gradient(circle at 55% 48%, var(--accent-soft), transparent 35%),
    linear-gradient(135deg, var(--panel) 0%, var(--bg-soft) 55%, var(--panel) 100%);
  border: 1px solid var(--border);
  padding: 22px;
}
.lf-nebula::before {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 7% 17%, rgba(255,255,255,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 72%, var(--accent) 0 1px, transparent 2px),
    radial-gradient(circle at 47% 19%, rgba(255,255,255,.5) 0 1px, transparent 2px),
    radial-gradient(circle at 69% 74%, var(--accent-2, var(--accent)) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 29%, rgba(255,255,255,.5) 0 1px, transparent 2px);
  opacity: .8;
  animation: nebulaDrift 18s ease-in-out infinite alternate;
}
@keyframes nebulaDrift {
  0% { transform: translate(0, 0) scale(1); opacity: .55; }
  100% { transform: translate(2%, 3%) scale(1.06); opacity: .95; }
}
.lf-nebula .lf-review-card { background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(3px); }

/* ---- moving review box (vertical glide, pause on hover) ---- */
.lf-marquee-viewport {
  position: relative; overflow: hidden;
  max-height: 470px; border-radius: 16px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}
.lf-marquee-track {
  display: flex; flex-direction: column;
  animation: lfGlide 30s linear infinite;
  will-change: transform;
}
.lf-marquee-viewport:hover .lf-marquee-track,
.lf-marquee-viewport:focus-within .lf-marquee-track { animation-play-state: paused; }
.lf-marquee-set {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; padding: 7px 2px;
  align-content: start;
}
@keyframes lfGlide {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(-100% / var(--sets, 2))); }
}
.lf-marquee-track:has(.lf-marquee-set:nth-child(3)) { --sets: 3; }
.lf-marquee-page { margin-bottom: 18px; }
@media (max-width: 640px) {
  .lf-marquee-set { grid-template-columns: 1fr; }
  .lf-marquee-viewport { max-height: 420px; }
  .lf-nebula { padding: 16px; border-radius: 18px; }
}

/* ---- per-product review section ---- */
.prod-reviews { margin-top: 22px; }
.prod-reviews-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.prod-reviews-title h3 { margin: 0; font-size: 17px; color: var(--text); }
.prod-reviews-score {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 8px 14px;
  transition: border-color .15s, transform .15s, box-shadow .2s;
  cursor: pointer;
}
.prod-reviews-score:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.prod-reviews-score strong { font-size: 18px; color: var(--text); }
.prod-reviews-stars { color: #ffd06d; font-size: 12px; letter-spacing: .05em; }
.prod-reviews-stars span { color: var(--text-faint); }
.prod-reviews-score small { font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.prod-reviews-chev { color: var(--accent); font-size: 11px; animation: chevBounce 1.8s ease-in-out infinite; }
@keyframes chevBounce {
  0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); }
}
.prod-reviews-box { max-height: 300px; border: 1px solid var(--border-soft); }
.prod-reviews-box .lf-marquee-set { grid-template-columns: 1fr; }
.prod-review-empty-card { min-height: 0; }
.prod-reviews-more {
  margin-top: 12px; width: 100%;
  background: transparent; border: 1px dashed var(--border);
  color: var(--accent); border-radius: 12px; padding: 10px;
  font-size: 12.5px; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.prod-reviews-more:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 640px) {
  .prod-reviews-head { flex-direction: column; align-items: stretch; }
  .prod-reviews-score { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lf-marquee-track, .lf-nebula::before, .shop-btn, .nav-review-count.pop, .prod-reviews-chev { animation: none !important; }
}

/* ============================================================
   MOBILE PERFECTION PASS — phones & small tablets
   Big chat screen, every feature reachable, nothing overflows.
   ============================================================ */

/* Modern viewport units (iOS Safari address-bar safe) */
#app { height: 100vh; height: 100dvh; }
.canvas-scroll, .page-overlay-body, .acct-body, .vrylon-chat-thread,
.lang-list, .admin-dash-content, .messages {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media (max-width: 768px) {
  /* ---- topbar: compact, everything reachable ---- */
  .topbar { gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px; }
  .topbar-left { gap: 8px; min-width: 0; flex: 1; }
  .brand-mark svg { width: 18px; height: 18px; }
  .shop-btn { font-size: 12.5px; padding: 4px 9px; }
  .track-badge { font-size: 9px; padding: 3px 7px; margin-left: 2px; white-space: nowrap; }
  .mode-switch { padding: 2px; }

  /* ---- big clean chat screen ---- */
  .canvas-scroll { padding: 0; }
  .welcome { padding: 20px 16px 8px; }
  .welcome-title { font-size: clamp(22px, 7vw, 30px); }
  .welcome-sub { font-size: 13.5px; }
  .messages { padding: 8px 14px 32px; gap: 18px; }
  .msg-text { font-size: 15px; }

  /* service chips scroll sideways with momentum */
  .services { padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; }
  .services::-webkit-scrollbar { display: none; }

  /* ---- pages inside the chat section: full-bleed & readable ---- */
  .page-overlay-body { padding: 16px 14px 40px; }
  .page-overlay-close { min-width: 40px; min-height: 40px; }
  .page-overlay-title { font-size: 13.5px; }
  .static-page-head h2 { font-size: 22px; }
  .static-page-sub { font-size: 13px; }
  .static-page-sec h3 { font-size: 15px; }
  .static-page img, .static-page video, .page-view img, .page-view video { max-width: 100%; height: auto; }
  .shop-grid { grid-template-columns: 1fr !important; }
  .about-grid { grid-template-columns: 1fr !important; }

  /* product panels */
  .pp-hero { grid-template-columns: 1fr !important; }
  .pp-grid { grid-template-columns: 1fr !important; }
  .pp-cta-row { flex-direction: column; align-items: stretch; }
  .pp-cta, .pp-cta-secondary { width: 100%; justify-content: center; text-align: center; }
  .pp-title { font-size: 21px; }

  /* reviews */
  .lf-review-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lf-review-score { align-self: stretch; justify-content: center; }
  .lf-review-grid { grid-template-columns: 1fr; }
  .lf-review-fields { grid-template-columns: 1fr !important; }

  /* track portal fills the chat area */
  .track-iframe { min-height: 100%; }

  /* ---- marquee (site links) ---- */
  .site-marquee { padding: 8px 0; }
  .site-link { font-size: 11.5px; }

  /* ---- composer: thumb-friendly ---- */
  .composer { border-radius: 14px; }
  .composer textarea { font-size: 16px; /* no iOS zoom */ }
  .composer-bar { flex-wrap: wrap; }
  .composer-hint { font-size: 10.5px; }

  /* ---- floating pickers become bottom sheets ---- */
  .tool-pop {
    left: 10px !important; right: 10px;
    bottom: auto;
    width: auto !important; max-height: 62dvh; overflow-y: auto;
    border-radius: 18px;
    transform: translateY(16px) scale(.98);
  }
  .tool-pop.in { transform: translateY(0) scale(1); }
  .lang-list { max-height: 38dvh; }

  /* ---- vrylon chat modal: bottom sheet feel ---- */
  .email-modal-backdrop { align-items: end; padding: 10px; place-items: end center; }
  .email-modal { width: 100%; border-radius: 18px; }

  /* ---- account pages ---- */
  .auth-wrap { padding: 10px 4px 30px; align-items: start; }
  .auth-card { border-radius: 18px; }
  .acct { gap: 14px; }
  .acct-head { gap: 10px; }
  .acct-avatar { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; font-size: 16px; }
  .acct-logout { padding: 8px 12px; }
  .acct-nav { padding: 3px; }
  .acct-tab { padding: 9px 6px; font-size: 12px; }
  .acct-card, .acct-track-summary, .acct-track-any { border-radius: 14px; padding: 14px; }
  .acct-step { padding: 6px 2px; font-size: 12.5px; }

  /* ---- sidebar drawer already overlays; make links thumb-sized ---- */
  .side-link, .product-btn { min-height: 44px; }
  .nav-review-count { min-width: 22px; height: 22px; }
}

/* small phones */
@media (max-width: 400px) {
  .shop-btn { font-size: 11.5px; padding: 4px 8px; }
  .track-badge { display: none; } /* badge reachable inside account + shop on tiny screens */
  .flow-chip { width: 40px; height: 40px; }
  .theme-grid { grid-template-columns: 1fr 1fr; }
}

/* touch devices: generous targets everywhere */
@media (pointer: coarse) {
  .tool-btn { min-height: 40px; min-width: 40px; justify-content: center; }
  .theme-card { min-height: 56px; }
  .lang-item { min-height: 44px; }
  .shop-card-cta, .prod-reviews-more, .acct-track-live { min-height: 46px; }
  .site-link { padding: 6px 4px; }
  .page-overlay-close { min-width: 44px; min-height: 44px; }
  .vrylon-send, #email-modal-cancel { min-height: 46px; }
  .auth-submit { min-height: 48px; }
}

/* ---- mobile fit fixes (390 px measured) ---- */
.canvas { min-width: 0; }           /* let the main column shrink below content width */
.topbar-left { min-width: 0; }      /* topbar can compress instead of pushing the app wide */
@media (max-width: 430px) {
  /* earlier rule .demo-badge.track-badge{display:inline-flex} had higher specificity — beat it */
  .demo-badge.track-badge { display: none !important; }
}

/* ============================================================
   HERO FLOW BUTTONS — Passport · License · ID · Shop · Track
   Each button: unique accent, animated icon, glow. Phone-first.
   ============================================================ */
.flow-btn {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 6px 4px; border-radius: 18px;
  transition: transform .18s cubic-bezier(.34, 1.4, .64, 1);
}
.flow-btn:hover { transform: translateY(-4px); }
.flow-btn:active { transform: scale(.94); }
.flow-btn .flow-chip {
  position: relative;
  width: 62px; height: 62px; border-radius: 19px;
  animation: flowBob 3s ease-in-out infinite;
  transition: box-shadow .25s, transform .25s;
  overflow: hidden;
}
.flow-btn:hover .flow-chip { transform: scale(1.08); }
.flow-btn .flow-label {
  font-size: 11.5px; font-weight: 700; letter-spacing:.04em;
  text-transform: none; text-align: center; line-height: 1.25;
  max-width: 96px; color: var(--text-dim);
}
.flow-btn:hover .flow-label { color: var(--text); }

/* per-button accent identities */
.fb-passport .flow-chip { color: #c6cfff; background: rgba(109,124,255,.12); border: 1px solid rgba(109,124,255,.4); }
.fb-passport:hover .flow-chip { box-shadow: 0 10px 26px rgba(109,124,255,.4); }
.fb-license .flow-chip { color: #ffd9a3; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.42); animation-delay: .35s; }
.fb-license:hover .flow-chip { box-shadow: 0 10px 26px rgba(245,158,11,.38); }
.fb-idcard .flow-chip { color: #9ef0d3; background: rgba(34,200,138,.12); border: 1px solid rgba(34,200,138,.42); animation-delay: .7s; }
.fb-idcard:hover .flow-chip { box-shadow: 0 10px 26px rgba(34,200,138,.36); }
.fb-shop .flow-chip { color: #f5b8d6; background: rgba(244,114,182,.12); border: 1px solid rgba(244,114,182,.42); animation-delay: 1.05s; }
.fb-shop:hover .flow-chip { box-shadow: 0 10px 26px rgba(244,114,182,.38); }
.fb-track .flow-chip { color: #d8c3ff; background: rgba(160,107,255,.13); border: 1px solid rgba(160,107,255,.45); animation-delay: 1.4s; }
.fb-track:hover .flow-chip { box-shadow: 0 10px 26px rgba(160,107,255,.42); }

/* passport: stamp pulse */
.fb-stamp {
  position: absolute; right: 7px; bottom: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid currentColor; opacity: .8;
  animation: stampPulse 2.2s ease-in-out infinite;
}
@keyframes stampPulse {
  0%, 100% { transform: scale(.6); opacity: .25; }
  45% { transform: scale(1.15); opacity: .95; }
  60% { transform: scale(1); opacity: .8; }
}
/* license: steering wheel slowly turns */
.fb-wheel { transform-origin: 8px 12px; animation: wheelTurn 5s ease-in-out infinite; }
@keyframes wheelTurn {
  0%, 100% { transform: rotate(-14deg); }
  50% { transform: rotate(14deg); }
}
/* id card: scan line sweeps down */
.fb-scan { stroke: currentColor; opacity: 0; animation: scanSweep 2.6s ease-in-out infinite; }
@keyframes scanSweep {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: .9; }
  75% { opacity: .9; }
  100% { opacity: 0; transform: translateY(11px); }
}
/* shop: bag gently swings */
.fb-bag { transform-origin: 12px 6px; animation: bagSwing 3.2s ease-in-out infinite; }
@keyframes bagSwing {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
/* track: radar rings */
.fb-radar {
  position: absolute; inset: 6px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: 0;
  animation: radarRing 2.4s ease-out infinite;
}
.fb-radar.r2 { animation-delay: 1.2s; }
@keyframes radarRing {
  0% { transform: scale(.55); opacity: .7; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* phone: hero buttons become the main 2-col action grid */
@media (max-width: 640px) {
  .flow-anim {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; width: 100%; margin-top: 26px;
  }
  .flow-line { display: none; }
  .flow-btn {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px 10px 14px;
    min-height: 118px; justify-content: center;
  }
  .flow-btn:active { transform: scale(.96); }
  .flow-btn .flow-chip { width: 54px; height: 54px; border-radius: 16px; }
  .flow-btn .flow-label { max-width: none; font-size: 12px; }
  .fb-track { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .fb-stamp, .fb-wheel, .fb-scan, .fb-bag, .fb-radar { animation: none !important; }
}

/* ============================================================
   MOBILE SHOP SHEET — products only, thumb-friendly (phones)
   ============================================================ */
.mshop-backdrop {
  position: fixed; inset: 0; z-index: 940;
  background: rgba(4, 4, 8, .55);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .22s ease;
}
.mshop-backdrop.in { opacity: 1; }
.mshop-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.34, 1.2, .64, 1);
  box-shadow: 0 -18px 50px rgba(0,0,0,.45);
}
.mshop-backdrop.in .mshop-sheet { transform: translateY(0); }
.mshop-grab {
  width: 42px; height: 4px; border-radius: 3px;
  background: var(--border); margin: 2px auto 12px;
}
.mshop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mshop-head b { font-size: 16px; color: var(--text); }
.mshop-close {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--panel-2); color: var(--text-dim);
  font-size: 14px; display: grid; place-items: center;
}
.mshop-close:hover { color: var(--text); }
.mshop-list { display: flex; flex-direction: column; gap: 10px; }
.mshop-item {
  display: flex; align-items: center; gap: 13px;
  padding: 14px; border-radius: 16px;
  background: var(--panel-2); border: 1px solid var(--border-soft);
  transition: transform .15s, border-color .15s, box-shadow .2s;
  animation: mshopIn .3s cubic-bezier(.34, 1.3, .64, 1) backwards;
}
.mshop-item:nth-child(2) { animation-delay: .05s; }
.mshop-item:nth-child(3) { animation-delay: .1s; }
.mshop-item:nth-child(4) { animation-delay: .15s; }
@keyframes mshopIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.mshop-item:hover { transform: translateX(3px); border-color: var(--accent); }
.mshop-item:active { transform: scale(.98); }
.mshop-ic {
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 44px;
  display: grid; place-items: center;
}
.msi-passport .mshop-ic { color: #c6cfff; background: rgba(109,124,255,.14); border: 1px solid rgba(109,124,255,.4); }
.msi-license .mshop-ic { color: #ffd9a3; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.4); }
.msi-idcard .mshop-ic { color: #9ef0d3; background: rgba(34,200,138,.14); border: 1px solid rgba(34,200,138,.4); }
.msi-track .mshop-ic { color: #d8c3ff; background: rgba(160,107,255,.15); border: 1px solid rgba(160,107,255,.45); }
.mshop-name { font-size: 14.5px; font-weight: 600; color: var(--text); text-align: left; flex: 1; }
.mshop-arrow { color: var(--accent); font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  .mshop-sheet, .mshop-backdrop, .mshop-item { transition: none !important; animation: none !important; }
}


/* ============================================================
   vrylon chat launcher — floating draggable button + big panel
   ============================================================ */
.vchat-fab {
  position: fixed; right: 18px; bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  z-index: 930;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent)));
  box-shadow: 0 10px 26px var(--accent-soft), 0 4px 12px rgba(0,0,0,.45);
  cursor: grab; touch-action: none; user-select: none;
  transition: transform .2s, box-shadow .25s, opacity .2s;
}
.vchat-fab.left { right: auto; left: 18px; }
.vchat-fab:hover { transform: scale(1.07); }
.vchat-fab:active { cursor: grabbing; }
.vchat-fab-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--accent);
  animation: vchatPing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes vchatPing {
  0% { transform: scale(.85); opacity: .8; }
  70%, 100% { transform: scale(1.28); opacity: 0; }
}
.vchat-fab-dot {
  position: absolute; top: 3px; right: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ok, #34d3a6);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--ok, #34d3a6);
}
.vchat-fab-label {
  position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  font-size: 9.5px; font-weight: 700; letter-spacing: .05em;
  color: var(--text-dim); background: var(--panel);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 3px 9px; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  pointer-events: none;
}
body.vchat-open .vchat-fab { opacity: 0; pointer-events: none; transform: scale(.5); }

.vchat-overlay {
  position: fixed; inset: 0; z-index: 945;
  display: flex; justify-content: flex-end; align-items: stretch;
  padding: 74px 18px 18px;
  background: rgba(4,4,8,.45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s ease;
}
.vchat-overlay.in { opacity: 1; }
.vchat-panel {
  width: min(600px, 50vw);
  display: flex; flex-direction: column; min-height: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  overflow: hidden;
  transform: translateX(36px);
  transition: transform .3s cubic-bezier(.34, 1.2, .64, 1);
}
.vchat-overlay.in .vchat-panel { transform: none; }
[data-theme="glacier"] .vchat-panel { box-shadow: 0 30px 80px rgba(23,32,58,.25); }
.vchat-head {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}
.vchat-brand-mark { display: inline-flex; filter: drop-shadow(0 2px 8px var(--accent-soft)); }
.vchat-title { font-size: 14.5px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.vchat-head .vrylon-live { margin-left: 0; }
.vchat-close {
  margin-left: auto; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--panel-2); color: var(--text-dim);
  border: 1px solid var(--border-soft);
  transition: background .15s, color .15s, transform .15s;
}
.vchat-close:hover { color: #fff; background: var(--danger, #ff7a7a); border-color: transparent; transform: scale(1.06); }
.vchat-mount {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--bg);
}
.vchat-mount > .canvas-scroll { grid-row: 1; grid-column: 1; min-height: 0; }
.vchat-mount > .page-overlay { grid-row: 1; grid-column: 1; position: relative; inset: auto; z-index: 30; min-height: 0; }
.vchat-mount > .composer-wrap { grid-row: 2; grid-column: 1; width: 100%; max-width: none; }

@media (max-width: 768px) {
  .vchat-fab { width: 56px; height: 56px; right: 14px; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .vchat-fab.left { left: 14px; }
  .vchat-overlay { padding: 0; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .vchat-panel { width: 100%; border: none; border-radius: 0; transform: translateY(24px); }
  .vchat-overlay.in .vchat-panel { transform: none; }
  .vchat-head { padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; }
  /* product page bar on phones: compact, never crowds the screen */
  .page-overlay-bar { padding: 8px 10px; gap: 8px; }
  .page-overlay-close { padding: 8px 12px; font-size: 12px; min-width: 40px; min-height: 38px; border-radius: 12px; }
  .page-overlay-title { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  .vchat-fab-ring { animation: none !important; }
  .vchat-overlay, .vchat-panel, .vchat-fab { transition: none !important; }
}

/* ============================================================
   In-chat opt-out row ("Back to Home" after sending a message)
   ============================================================ */
.chat-escape {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px; padding: 12px 14px; margin-top: 4px;
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 14px; animation: bubbleIn .35s ease;
}
.chat-escape-text { font-size: 12.5px; color: var(--text-dim); }
.chat-escape-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent)));
  color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 9px 16px; border-radius: 999px;
  box-shadow: 0 4px 14px var(--accent-soft);
  transition: transform .15s, box-shadow .2s;
}
.chat-escape-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px var(--accent-soft); }
.chat-escape-btn:active { transform: scale(.96); }

/* ============================================================
   Email modal — editable message bubble
   ============================================================ */
.vrylon-edit {
  width: 100%; max-width: 100%; align-self: stretch;
  resize: vertical; min-height: 66px; max-height: 180px;
  font-family: inherit; outline: none;
  transition: box-shadow .15s;
}
.vrylon-edit:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
.vrylon-edit-hint { font-size: 11px; color: var(--text-faint); align-self: flex-end; }

/* ============================================================
   Review boxes — manual scroll + always-visible pause control
   ============================================================ */
.lf-marquee-wrap { position: relative; }
.lf-marquee-viewport { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.lf-marquee-wrap.paused .lf-marquee-track { animation-play-state: paused; }
.lf-marquee-pause {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,.4), 0 0 10px var(--accent-soft);
  cursor: pointer; opacity: .96;
  transition: transform .15s, background .15s, color .15s;
}
.lf-marquee-pause:hover { transform: scale(1.12); background: var(--accent); color: #fff; }
.lf-marquee-wrap.paused .lf-marquee-pause { background: var(--accent); color: #fff; }

/* ============================================================
   Product hero star-rating chip (auto count, jumps to reviews)
   ============================================================ */
.pp-rating-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--p-accent, var(--accent));
  border-radius: 999px; padding: 6px 12px;
  font-size: 12px; font-weight: 600;
  box-shadow: 0 0 12px var(--p-accent-soft, var(--accent-soft));
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  animation: badgeGlow 2.8s ease-in-out infinite;
}
.pp-rating-chip:hover { transform: translateY(-1px) scale(1.04); }
.pp-rating-chip:active { transform: scale(.96); }
.pp-rating-chip b { font-size: 13px; }
.pp-rating-star { color: #ffd06d; font-size: 14px; }
.pp-rating-count { color: var(--text-dim); white-space: nowrap; }
.pp-rating-chev { color: var(--p-accent, var(--accent)); font-size: 11px; animation: chevBounce 1.8s ease-in-out infinite; }
.prod-reviews.flash .prod-reviews-box { box-shadow: 0 0 0 2px var(--p-accent, var(--accent)), 0 0 26px var(--p-accent-soft, var(--accent-soft)); }
@media (max-width: 640px) {
  .pp-rating-chip { padding: 8px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-rating-chip, .pp-rating-chev { animation: none !important; }
}

/* ============================================================
   Home button (topbar, beside SHOP) + phone quick menu
   ============================================================ */
.home-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700;
  color: var(--text); padding: 5px 12px; border-radius: 9px;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: transform .15s, border-color .15s, box-shadow .2s, background .15s;
}
.home-btn svg { color: var(--accent); }
.home-btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 16px var(--accent-soft); }
.home-btn:active { transform: scale(.95); }

.qmenu-trigger {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 10px; color: var(--text);
  background: var(--panel); border: 1px solid var(--border);
  transition: border-color .15s, transform .15s;
}
.qmenu-trigger:hover { border-color: var(--accent); transform: translateY(-1px); }
.qmenu-trigger[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.qmenu-edge { display: none; }
.qmenu-backdrop {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(4,4,8,.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .22s ease;
}
.qmenu-backdrop.in { opacity: 1; }
.qmenu-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw);
  background: var(--panel);
  border-left: 1px solid var(--border);
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 10px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.34, 1.2, .64, 1);
  box-shadow: -18px 0 50px rgba(0,0,0,.45);
  overflow-y: auto;
}
.qmenu-backdrop.in .qmenu-panel { transform: translateX(0); }
.qmenu-grab { display: none; }
.qmenu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.qmenu-head b { font-size: 16px; color: var(--text); }
.qmenu-close {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--panel-2); color: var(--text-dim);
  font-size: 14px; display: grid; place-items: center;
}
.qmenu-close:hover { color: var(--text); }
.qmenu-item {
  display: flex; align-items: center; gap: 13px;
  padding: 14px; border-radius: 16px; text-align: left;
  background: var(--panel-2); border: 1px solid var(--border-soft);
  transition: transform .15s, border-color .15s;
  animation: mshopIn .3s cubic-bezier(.34, 1.3, .64, 1) backwards;
}
.qmenu-item:nth-child(3) { animation-delay: .04s; }
.qmenu-item:nth-child(4) { animation-delay: .08s; }
.qmenu-item:nth-child(5) { animation-delay: .12s; }
.qmenu-item:nth-child(6) { animation-delay: .16s; }
.qmenu-item:hover { border-color: var(--accent); transform: translateX(-3px); }
.qmenu-item:active { transform: scale(.98); }
.qmenu-ic {
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 44px;
  display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.qmi-home .qmenu-ic { color: #c6cfff; background: rgba(109,124,255,.14); border-color: rgba(109,124,255,.4); }
.qmi-shop .qmenu-ic { color: #f5b8d6; background: rgba(244,114,182,.12); border-color: rgba(244,114,182,.4); }
.qmi-track .qmenu-ic { color: #d8c3ff; background: rgba(160,107,255,.13); border-color: rgba(160,107,255,.45); }
.qmi-theme .qmenu-ic { color: #ffd9a3; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.4); }
.qmi-lang .qmenu-ic { color: #9ef0d3; background: rgba(34,200,138,.12); border-color: rgba(34,200,138,.4); }
.qmenu-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qmenu-meta b { font-size: 14.5px; color: var(--text); }
.qmenu-meta small { font-size: 11.5px; color: var(--text-faint); }
.qmenu-arrow { color: var(--accent); font-size: 16px; }

/* phone topbar: slim — full controls move into the side quick menu */
@media (max-width: 768px) {
  .qmenu-trigger { display: inline-flex; }
  #shop-btn, #demo-badge, .mode-switch { display: none !important; }
  .home-btn { padding: 6px 9px; }
  .home-btn-label { display: none; }
  .qmenu-edge {
    display: grid; place-items: center;
    position: fixed; right: 0; top: 38%; z-index: 920;
    width: 22px; height: 64px;
    border-radius: 12px 0 0 12px;
    color: var(--accent);
    background: var(--panel);
    border: 1px solid var(--border); border-right: none;
    box-shadow: -6px 0 18px rgba(0,0,0,.35);
    opacity: .9;
  }
  .qmenu-edge:active { transform: scale(.94); }
  body.vchat-open .qmenu-edge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .qmenu-backdrop, .qmenu-panel, .qmenu-item { transition: none !important; animation: none !important; }
}

/* ============================================================
   Track portal — a FULL page inside the chat screen (no box)
   ============================================================ */
.page-overlay-body:has(> .track-view:not([hidden])) {
  padding: 0 !important;
  display: flex; flex-direction: column;
}
.page-overlay-body > .track-view {
  position: relative;
  flex: 1 1 auto; width: 100%; max-width: none;
  height: auto; min-height: 0; margin: 0;
  display: block;
}
.track-view > .track-iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block; background: var(--bg);
}
.page-overlay:has(.track-view:not([hidden])) .page-overlay-bar {
  padding-top: 8px; padding-bottom: 8px;
}


/* ============================================================
   Footer marquee — richly colored icon links + manual scroll
   ============================================================ */
.site-marquee {
  overflow-x: auto; scrollbar-width: none;
  cursor: grab; touch-action: pan-x;
}
.site-marquee::-webkit-scrollbar { display: none; }
.site-marquee.dragging { cursor: grabbing; }
.site-link { display: inline-flex; align-items: center; gap: 6px; }
.site-link svg { flex: 0 0 auto; }
.sl-videos { color: #f5b8d6; }
.sl-shop { color: #ffd9a3; }
.sl-proof { color: #9ef0d3; }
.sl-refund { color: #7cc4ff; }
.sl-faqs { color: #c6cfff; }
.sl-disclaimer { color: #f0a850; }
.sl-review { color: #ffd06d; }
.sl-privacy { color: #d8c3ff; }
.sl-terms { color: #a8b8d0; }
.site-link:hover { color: #fff; background: rgba(255,255,255,.06); }

/* Phone: composer lives ONLY inside vrylon chat — home stays big */
@media (max-width: 768px) {
  .canvas > .composer-wrap { display: none; }
  .vchat-mount > .composer-wrap { display: block; }
  .vchat-fab { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* vrylon chat header: clear "Back" pill (returns to previous view) */
.vchat-close {
  width: auto; height: auto; padding: 8px 14px; gap: 6px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  display: inline-flex; align-items: center;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--panel-2);
}
.vchat-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateX(-2px); }


/* ============================================================
   vrylon chat launcher — quiet mode: small, calm, never in the way
   ============================================================ */
.vchat-fab {
  width: 44px; height: 44px;
  opacity: .68;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.vchat-fab > svg { width: 20px; height: 20px; }
.vchat-fab-ring { display: none; }               /* no pulsing ring */
.vchat-fab-dot { width: 9px; height: 9px; top: 2px; right: 3px; box-shadow: none; }
.vchat-fab-label {
  opacity: 0; transition: opacity .18s ease;    /* name appears only on hover/focus */
}
.vchat-fab:hover, .vchat-fab:focus-visible, .vchat-fab:active { opacity: 1; }
.vchat-fab:hover { transform: scale(1.06); }
.vchat-fab:hover .vchat-fab-label, .vchat-fab:focus-visible .vchat-fab-label { opacity: 1; }
@media (max-width: 768px) {
  .vchat-fab { width: 42px; height: 42px; right: 12px; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .vchat-fab.left { left: 12px; }
}


/* ============================================================
   Topbar tools — well-described icons only (no text)
   ============================================================ */
.tool-btn-label { display: none; }
.tool-btn { padding: 6px 10px; }
#reviews-btn svg { color: #ffd06d; }
#reviews-btn:hover { color: #ffd06d; }

/* ============================================================
   Marquee shell + "drag to scroll" hint
   ============================================================ */
.marquee-shell { position: relative; grid-area: services; flex: none; }
.marquee-hint {
  position: absolute; right: 0; top: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center;
  padding: 0 12px 0 30px;
  font-size: 10px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-faint);
  background: linear-gradient(90deg, transparent, var(--bg) 55%);
  pointer-events: none; white-space: nowrap;
}
@media (max-width: 768px) {
  .marquee-hint { font-size: 9px; padding: 0 8px 0 24px; }
}

/* ============================================================
   vrylon chat panel — CHAT ONLY (intro + thread + composer)
   ============================================================ */
.vchat-intro { flex: none; padding: 14px 16px 0; }
.vchat-intro-bubble {
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 14px; border-bottom-left-radius: 4px;
  padding: 12px 14px;
  font-size: 13px; line-height: 1.55; color: var(--text-dim);
  animation: bubbleIn .35s cubic-bezier(.34, 1.3, .64, 1);
}
.vchat-intro-bubble b { color: var(--accent); }
.vchat-msgs {
  grid-row: 1; grid-column: 1;
  min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.vchat-mount > .composer-wrap { grid-row: 2; grid-column: 1; width: 100%; max-width: none; }

/* the [×] beside where users type — visible only inside vrylon chat */
.composer { position: relative; }
.vchat-x { display: none; }
.vchat-mount .vchat-x {
  display: grid; place-items: center;
  position: absolute; top: 7px; right: 9px; z-index: 3;
  width: 22px; height: 22px; border-radius: 50%;
  color: var(--text-faint); background: var(--panel-2);
  border: 1px solid var(--border-soft);
  transition: color .15s, background .15s, transform .15s;
}
.vchat-mount .vchat-x:hover { color: #fff; background: var(--danger, #ff7a7a); border-color: transparent; transform: scale(1.1); }

/* ============================================================
   SHOP page — per-product rating chip on each card
   ============================================================ */
.shop-rating-chip {
  align-self: flex-start;
  margin: 2px 0 4px;
  animation: none;
  box-shadow: none;
}
.shop-rating-chip:hover { box-shadow: 0 6px 16px var(--accent-soft); }


/* shop cards: whole card is clickable */
.shop-card { cursor: pointer; }
.shop-card:hover { border-color: var(--accent); }


/* ============================================================
   CRITICAL layout fix — the wide marquee track must never size
   the canvas grid column (was pushing the whole page off-screen)
   ============================================================ */
.canvas { grid-template-columns: minmax(0, 1fr); }
.canvas > * { min-width: 0; }
.marquee-shell, .site-marquee { min-width: 0; max-width: 100%; }
.canvas-scroll { width: 100%; }


/* v16: make the vrylon chat typing area unmistakable */
.vchat-mount .composer-wrap::before {
  content: "Type your message below — our team replies right here";
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 8px;
}
.vchat-mount .composer {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px var(--accent-soft);
}
.vchat-mount .composer:focus-within {
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 26px var(--accent-soft);
}
.vchat-mount .composer textarea { min-height: 48px; }
@media (max-width: 768px) {
  .vchat-mount .composer-wrap { padding-top: 10px; }
  .vchat-mount .composer-wrap::before { font-size: 12px; margin-bottom: 8px; }
}


/* v18: phone side-icon rail — tap anywhere to reveal the full labelled drawer */
.nav-rail { display: none; }
@keyframes navRailIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 768px) {
  .canvas { margin-left: 48px; }
  .nav-rail {
    position: fixed;
    left: 0;
    top: calc(62px + env(safe-area-inset-top, 0px));
    bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    z-index: 850;
    width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    background: var(--bg-soft);
    border-right: 1px solid var(--border-soft);
    box-shadow: 8px 0 24px rgba(0,0,0,.16);
    cursor: pointer;
    animation: navRailIn .24s ease-out both;
    transition: opacity .18s ease-out;
  }
  .nav-rail::-webkit-scrollbar { display: none; }
  .nav-rail-item {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: color .16s ease-out, background .16s ease-out, transform .16s ease-out;
  }
  .nav-rail-item svg { width: 18px; height: 18px; }
  .nav-rail-item:hover,
  .nav-rail-item:focus-visible { color: var(--text); background: var(--chip-bg); }
  .nav-rail-item:active { transform: scale(.94); }
  .nav-rail-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .nav-rail-item[data-rail="passport"] { color: #c6cfff; }
  .nav-rail-item[data-rail="license"] { color: #ffd9a3; }
  .nav-rail-item[data-rail="idcard"] { color: #9ef0d3; }
  .nav-rail-section {
    padding: 6px 0 2px;
    color: var(--text-dim);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
  }
  body.nav-open .nav-rail { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-rail, .nav-rail-item { animation: none !important; transition: none !important; }
}


/* v19: automatically tuck the phone rail away; edge tab brings it back */
.nav-rail-handle { display: none; }
@media (max-width: 768px) {
  .nav-rail { transition: transform .22s ease-out, opacity .18s ease-out; }
  body.nav-rail-collapsed .canvas { margin-left: 0; }
  body.nav-rail-collapsed .nav-rail {
    animation: none;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
  }
  .nav-rail-handle {
    position: fixed;
    left: 0;
    top: 46%;
    z-index: 850;
    width: 44px;
    height: 72px;
    margin-top: -36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    opacity: .5;
    transition: opacity .16s ease-out;
  }
  .nav-rail-handle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 48px;
    border-radius: 0 6px 6px 0;
    background: var(--accent);
  }
  .nav-rail-handle svg { margin-left: 2px; }
  body.nav-rail-collapsed .nav-rail-handle { display: grid; place-items: center; }
  .nav-rail-handle:hover,
  .nav-rail-handle:focus-visible { opacity: 1; }
  .nav-rail-handle:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
  body.nav-open .nav-rail-handle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-rail-handle { transition: none !important; }
}


/* v21: the collapsed rail must never cover or intercept the full menu */
@media (max-width: 768px) {
  body.nav-open .nav-rail {
    display: none !important;
    animation: none !important;
    pointer-events: none !important;
  }
  body.nav-open .canvas { margin-left: 0; }
}


/* ============================================================
   Country edition flags — direct language-homepage navigation
   ============================================================ */
.topbar { gap: 12px; }
.country-flags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  flex: 0 0 auto;
}
.country-flag {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--chip-bg);
  cursor: pointer;
  transition: transform .16s ease-out, border-color .16s ease-out, box-shadow .16s ease-out, background .16s ease-out;
}
.country-flag svg { display: block; border-radius: 3px; box-shadow: 0 2px 7px rgba(0,0,0,.28); }
.country-flag:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 6px 16px var(--accent-soft);
}
.country-flag:active { transform: scale(.94); }
.country-flag:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 1100px) and (min-width: 769px) {
  .country-flags { gap: 4px; }
  .country-flag { width: 32px; height: 32px; }
}

@media (max-width: 768px) {
  .topbar { flex-wrap: wrap; }
  .topbar-left { order: 1; }
  .qmenu-trigger { order: 2; }
  .country-flags {
    order: 3;
    flex: 0 0 100%;
    justify-content: center;
    gap: 8px;
    margin-top: 1px;
    padding: 4px;
  }
  .country-flag { width: 44px; height: 44px; }
}

@media (max-width: 350px) {
  .country-flags { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .country-flag { transition: none; }
  .country-flag:hover { transform: none; }
}


/* Highlight the active English homepage flag. */
.country-flag[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--accent);
}


/* Phone site tools: Reviews · Theme · Language stay in the top menu.
   The same accessible buttons are reused; nothing floats over page content. */
@media (max-width: 768px) {
  .mode-switch {
    display: inline-flex !important;
    position: static;
    order: 2;
    flex: 0 0 auto;
    gap: 2px;
    padding: 2px;
    border-radius: 12px;
    background: var(--panel);
    box-shadow: none;
  }
  .qmenu-trigger { order: 3; }
  .country-flags { order: 4; }
  .mode-switch .tool-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    justify-content: center;
    padding: 0;
    border-radius: 9px;
    cursor: pointer;
  }
  .mode-switch .tool-btn svg { width: 19px; height: 19px; }
  .mode-switch .tool-btn-label { display: none; }
  body.vchat-open .mode-switch {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
@media (max-width: 480px) {
  .topbar-brand { display: none; }
}
@media (max-width: 350px) {
  .topbar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .topbar-left { gap: 6px; }
  .brand-mark { display: none; }
  .country-flags { flex-wrap: wrap; row-gap: 4px; }
}

/* Phone-only current-country disclosure; desktop retains the complete flag row. */
.country-current { display: none; }
.country-flag-list { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1100px) and (min-width: 769px) {
  .country-flag-list { gap: 4px; }
}
@media (max-width: 768px) {
  .country-flags.country-flags-enhanced {
    position: relative;
    order: 4;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .country-current {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--accent);
    border-radius: 12px;
    color: var(--text);
    background: var(--panel);
    box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--accent-soft);
    cursor: pointer;
    transition: transform .16s ease-out, background .16s ease-out, box-shadow .16s ease-out;
  }
  .country-current:hover { background: var(--accent-soft); transform: translateY(-1px); }
  .country-current:active { transform: scale(.94); }
  .country-current:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .country-current[aria-expanded="true"] { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--accent); }
  .country-current-flag { display: grid; place-items: center; }
  .country-current-flag svg { display: block; border-radius: 3px; box-shadow: 0 2px 7px rgba(0,0,0,.28); }
  .country-current-chevron {
    position: absolute;
    right: -3px;
    bottom: -3px;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 2px solid var(--panel);
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
    animation: country-chevron-beep 1.8s ease-in-out infinite;
  }
  .country-current-chevron svg { transition: transform .16s ease-out; }
  .country-current[aria-expanded="true"] .country-current-chevron svg { transform: rotate(180deg); }
  .country-flags-enhanced .country-flag-list {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    grid-template-columns: repeat(3, 44px);
    gap: 8px;
    width: max-content;
    max-width: calc(100vw - 20px);
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 18px 44px rgba(0,0,0,.38);
    transform-origin: top right;
  }
  .country-flags-enhanced.is-open .country-flag-list {
    display: grid;
    animation: country-list-in .18s ease-out;
  }
  .country-flags-enhanced .country-flag-list .country-flag { width: 44px; height: 44px; }
}
@keyframes country-chevron-beep {
  0%, 68%, 100% { transform: translateY(0); opacity: 1; }
  78% { transform: translateY(2px); opacity: .72; }
  88% { transform: translateY(0); opacity: 1; }
}
@keyframes country-list-in {
  from { transform: scale(.95) translateY(-4px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .country-current, .country-current-chevron svg { transition: none; }
  .country-current-chevron, .country-flags-enhanced.is-open .country-flag-list { animation: none; }
  .country-current:hover { transform: none; }
}

/* Homepage trust statement — one compact panel, meaningful service cues. */
.welcome-trust {
  position: relative;
  width: min(940px, 100%);
  margin: 18px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.trust-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.trust-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  padding: 16px 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.035);
}
.trust-visual::before {
  content: "";
  position: absolute;
  top: -36px;
  left: -24px;
  width: 120px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: .55;
  pointer-events: none;
}
.trust-lead {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: -.01em;
  animation: trust-lead-in .24s ease-out;
}
.trust-beacon {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #42d39a;
  box-shadow: 0 0 0 4px rgba(66,211,154,.11);
  animation: trust-beacon-pulse 2.2s ease-in-out infinite;
}
.trust-values {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-width: 0;
}
.trust-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 550;
  animation: trust-value-in .26s ease-out both;
}
.trust-value svg {
  flex: 0 0 17px;
  color: var(--accent);
  filter: drop-shadow(0 2px 5px var(--accent-soft));
}
@keyframes trust-lead-in {
  from { transform: scale(.98); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes trust-value-in {
  from { transform: translateY(6px) scale(.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes trust-beacon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: .62; }
}
@media (max-width: 1050px) {
  .trust-visual { justify-content: center; flex-wrap: wrap; }
  .trust-values { justify-content: center; }
}
@media (max-width: 640px) {
  .welcome-trust { margin-top: 14px; font-size: 14px; }
  .trust-visual { flex-direction: column; align-items: stretch; gap: 13px; padding: 14px 15px; border-radius: 16px; }
  .trust-lead { justify-content: center; align-items: flex-start; flex-wrap: nowrap; font-size: 14px; text-align: left; }
  .trust-lead > span:last-child { min-width: 0; }
  .trust-lead .trust-beacon { margin-top: 5px; }
  .trust-values { flex-direction: column; align-items: stretch; gap: 9px; }
  .trust-value { align-items: flex-start; justify-content: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; }
  .trust-value svg { margin-top: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .trust-lead, .trust-value, .trust-beacon { animation: none !important; }
}


/* ============================================================
   Large readable review lounges — blog, product, and main page
   ============================================================ */
.page-overlay-body > #reviews-view {
  max-width: 1320px;
  padding: 32px clamp(20px, 3vw, 40px) 56px;
}
.page-overlay-body > #blog-view { max-width: 1120px; }
.page-overlay-body > #product-panel { max-width: 1040px; }
#reviews-view .lf-nebula { padding: clamp(22px, 2.5vw, 34px); }
#reviews-view .lf-review-heading h2 { font-size: clamp(28px, 3vw, 38px); }
#reviews-view .lf-review-heading p { font-size: 15px; max-width: 64ch; }
#reviews-view .lf-review-score { min-width: 176px; padding: 18px 20px; }
#reviews-view .lf-review-score strong { font-size: 38px; }
.blog-reviews { margin: 36px 0 30px; }
.prod-reviews { margin-top: 30px; }
.prod-reviews-head { margin-bottom: 18px; }
.prod-reviews-title h3 { font-size: clamp(20px, 2.2vw, 27px); line-height: 1.25; }
.prod-reviews-score { min-height: 48px; padding: 10px 16px; }
.prod-reviews-score strong { font-size: 22px; }
.prod-reviews-stars { font-size: 15px; }
.prod-reviews-score small { font-size: 12.5px; }
.lf-marquee-viewport {
  height: clamp(520px, 64dvh, 780px);
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-padding: 20px;
  scrollbar-width: auto;
  scrollbar-color: var(--accent) var(--bg-soft);
  scrollbar-gutter: stable;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  -webkit-mask-image: none;
  mask-image: none;
}
#reviews-view .lf-marquee-page { height: clamp(580px, 70dvh, 840px); }
.prod-reviews-box { height: clamp(520px, 64dvh, 760px); max-height: none; }
.lf-marquee-viewport::-webkit-scrollbar { width: 11px; }
.lf-marquee-viewport::-webkit-scrollbar-track { background: var(--bg-soft); }
.lf-marquee-viewport::-webkit-scrollbar-thumb { background: var(--accent); border: 3px solid var(--bg-soft); border-radius: 999px; }
.lf-marquee-viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lf-marquee-wrap.manual-reading .lf-marquee-track { animation-play-state: paused; }
.lf-marquee-set { gap: 18px; padding: 18px; }
.prod-reviews-box .lf-marquee-set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lf-review-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 18px;
  border-color: var(--border);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.lf-review-card-top { flex-wrap: wrap; margin-bottom: 14px; }
.lf-review-stars { font-size: 18px; }
.lf-review-service { max-width: 200px; font-size: 12.5px; line-height: 1.45; }
.lf-review-card blockquote { color: var(--text); font-size: 16px; line-height: 1.72; overflow-wrap: anywhere; }
.lf-review-card footer { flex-wrap: wrap; padding-top: 18px; font-size: 13.5px; }
.lf-business-response p { font-size: 14.5px; line-height: 1.65; }
.lf-review-results-grid { gap: 18px; }
.lf-marquee-pause {
  width: 42px;
  height: 42px;
  top: 14px;
  right: 14px;
  border-width: 2px;
  background: var(--panel-2);
}
.lf-marquee-pause svg { width: 16px; height: 16px; }
.lf-marquee-pause:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (min-width: 1200px) {
  #reviews-view .lf-marquee-page .lf-marquee-set,
  #reviews-view .lf-review-results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-overlay-body > #reviews-view { padding: 20px 12px 40px; }
  #reviews-view .lf-nebula { padding: 16px; }
  .lf-marquee-set,
  .prod-reviews-box .lf-marquee-set { grid-template-columns: 1fr; }
  #reviews-view .lf-marquee-page { height: clamp(500px, 66dvh, 680px); }
  .prod-reviews-box { height: clamp(480px, 62dvh, 660px); }
  .lf-marquee-set { padding: 14px; gap: 14px; }
  .lf-review-card { min-height: 190px; padding: 20px; }
  .lf-review-card blockquote { font-size: 16px; line-height: 1.68; }
  .lf-marquee-pause { width: 44px; height: 44px; top: 10px; right: 10px; }
}
@media (max-width: 430px) {
  .page-overlay-body > #reviews-view { padding-left: 8px; padding-right: 8px; }
  #reviews-view .lf-nebula { padding: 12px; border-radius: 18px; }
  .prod-reviews-head { gap: 12px; }
  .prod-reviews-score { width: 100%; justify-content: center; flex-wrap: wrap; }
  .lf-marquee-set { padding: 12px; }
  .lf-review-card { padding: 18px; }
  .lf-review-service { max-width: 100%; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .lf-marquee-viewport { scroll-behavior: auto; }
}

/* Reading interactions use a timed pause; hover/focus must not stop motion forever. */
.lf-marquee-viewport:hover .lf-marquee-track,
.lf-marquee-viewport:focus-within .lf-marquee-track { animation-play-state: running; }
.lf-marquee-wrap.manual-reading .lf-marquee-track,
.lf-marquee-wrap.paused .lf-marquee-track { animation-play-state: paused; }


/* ============================================================
   Rating summary bar — visible on phones, tablets, and desktops
   ============================================================ */
.lf-review-pulse {
  display: grid;
  grid-template-columns: 132px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 160px;
  margin: 0 0 22px;
  padding: 22px 26px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg-soft) 90%, var(--panel));
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.025);
  visibility: visible;
}
.lf-pulse-score { min-width: 0; }
.lf-pulse-score > strong { display: block; color: var(--text); font-size: 40px; line-height: 1; letter-spacing: -.04em; }
.lf-pulse-stars { display: block; margin: 12px 0 7px; color: #ffd06d; font-size: 18px; letter-spacing: 1px; white-space: nowrap; }
.lf-pulse-stars span { color: var(--text-faint); }
.lf-pulse-score small { color: var(--text-dim); font-size: 14px; font-weight: 600; }
.lf-pulse-bars { display: grid; gap: 7px; min-width: 0; }
.lf-pulse-row { display: grid; grid-template-columns: 14px minmax(60px, 1fr) 38px; align-items: center; gap: 9px; color: var(--text-dim); font-size: 12px; }
.lf-pulse-row small { text-align: right; font-size: 12px; }
.lf-pulse-row progress { width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; -webkit-appearance: none; background: var(--panel-2); accent-color: #ffd06d; }
.lf-pulse-row progress::-webkit-progress-bar { background: var(--panel-2); border-radius: 999px; }
.lf-pulse-row progress::-webkit-progress-value { background: #ffd06d; border-radius: 999px; }
.lf-pulse-row progress::-moz-progress-bar { background: #ffd06d; border-radius: 999px; }
.lf-pulse-action { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 12px; text-align: right; }
.lf-pulse-action > strong { color: #55dca5; font-size: 15px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.lf-pulse-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 0 8px 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: 700 16px/1.3 inherit;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
}
.lf-pulse-link:hover { color: var(--accent); transform: translateX(3px); }
.lf-pulse-link:active { transform: translateX(1px) scale(.98); }
.lf-pulse-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lf-unified-reviews.has-review-pulse .lf-review-heading > .lf-review-score,
.lf-unified-reviews.has-review-pulse .lf-review-analytics { display: none; }
@media (max-width: 1100px) {
  .lf-review-pulse { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; min-height: 0; padding: 20px; }
  .lf-pulse-action { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); text-align: left; }
  .lf-pulse-action > strong { font-size: 13px; }
}
@media (max-width: 480px) {
  .lf-review-pulse { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 16px; margin-bottom: 18px; border-radius: 17px; }
  .lf-pulse-score > strong { font-size: 34px; }
  .lf-pulse-stars { margin-top: 10px; font-size: 15px; letter-spacing: 0; }
  .lf-pulse-score small { font-size: 12.5px; }
  .lf-pulse-row { grid-template-columns: 12px minmax(40px, 1fr) 34px; gap: 7px; font-size: 11px; }
  .lf-pulse-row small { font-size: 11px; }
  .lf-pulse-action { align-items: center; flex-wrap: wrap; gap: 8px; }
  .lf-pulse-action > strong { max-width: 100%; min-width: 0; font-size: 11.5px; line-height: 1.4; }
  .lf-pulse-link { flex: 0 1 auto; min-width: 0; max-width: 100%; padding-left: 6px; font-size: 14px; white-space: normal; }
  .lf-pulse-link svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .lf-pulse-link { transition: none; }
  .lf-pulse-link:hover { transform: none; }
}

/* Keep the complete summary visible before any homepage or product scrolling. */
.home-review-pulse {
  width: min(940px, 100%);
  margin: 18px auto 0;
}
.home-review-pulse .lf-review-pulse,
.pp-top-review-pulse .lf-review-pulse { margin-bottom: 0; }
.pp-top-review-pulse { width: 100%; margin: 20px 0 24px; }
@media (max-width: 640px) {
  .home-review-pulse { margin-top: 14px; }
  .pp-top-review-pulse { margin: 16px 0 20px; }
}

/* Small phones: reclaim nested padding for the complete rating summary. */
@media (max-width: 480px) {
  .home-review-pulse { width: calc(100% + 16px); margin-left: -8px; }
  .page-overlay-body > #product-panel,
  .page-overlay-body > #blog-view { padding-left: 8px; padding-right: 8px; }
  #product-panel .prod-reviews.lf-nebula,
  #blog-view .prod-reviews.lf-nebula { padding: 10px; }
}


/* === vrylon genuine review system === */
.lf-review-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.lf-review-badges:empty { display: none; }
.lf-review-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.lf-review-badge.verified { color: #8de6c1; background: rgba(46, 160, 110, .14); border: 1px solid rgba(105, 220, 168, .3); }
.lf-review-badge.demo { color: #ffd68a; background: rgba(180, 120, 30, .16); border: 1px solid rgba(255, 200, 100, .35); }
.lf-business-response { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--border-soft); }
.lf-business-response strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--accent); font-size: 10px; letter-spacing: .06em; margin-bottom: 6px; }
.lf-team-status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 5px; color: #70e4b3; background: rgba(46,160,110,.12); border: 1px solid rgba(105,220,168,.24); border-radius: 999px; font-size: 8px; font-weight: 800; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
.lf-team-status i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #55dca5; box-shadow: 0 0 0 0 rgba(85,220,165,.5); animation: lf-team-active-beep 1.6s ease-out infinite; }
@keyframes lf-team-active-beep { 0% { box-shadow: 0 0 0 0 rgba(85,220,165,.5); opacity: 1; } 70% { box-shadow: 0 0 0 5px rgba(85,220,165,0); opacity: .72; } 100% { box-shadow: 0 0 0 0 rgba(85,220,165,0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lf-team-status i { animation: none; } }
.lf-business-response p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.55; }
.lf-review-card footer time { white-space: nowrap; }
.lf-review-analytics { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--panel); color: var(--text-dim); font-size: 13px; }
.lf-review-analytics > span b { color: var(--text); }
.lf-rating-bars { display: grid; gap: 4px; min-width: min(100%, 230px); flex: 1; }
.lf-rating-bars > div { display: grid; grid-template-columns: 32px minmax(70px, 1fr) 34px; align-items: center; gap: 8px; }
.lf-rating-bars progress { width: 100%; height: 6px; accent-color: #ffd06d; }
.lf-rating-bars small { text-align: right; }
.welcome-trust { max-width: 680px; margin: 10px auto 0; color: var(--text-dim); font-size: 14px; font-weight: 600; line-height: 1.6; text-wrap: balance; }
.acct-review-invite { margin-top: 14px; min-height: 44px; cursor: pointer; }
.lf-review-browser { margin: 24px 0; }
.lf-review-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.lf-review-filters label { display: grid; gap: 6px; }
.lf-review-filters .lf-review-search { grid-column: 1 / -1; }
.lf-review-filters label > span { color: var(--text-dim); font-size: 12px; font-weight: 600; }
.lf-review-filters select, .lf-review-filters input { width: 100%; min-height: 44px; padding: 9px 12px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.lf-review-filters select:focus-visible, .lf-review-filters input:focus-visible, .lf-review-pagination button:focus-visible, .review-admin-card button:focus-visible, .review-admin-card textarea:focus-visible, .review-admin-card input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.review-admin-card input[type="text"] { width: 100%; min-height: 44px; padding: 10px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.lf-review-result-count { color: var(--text-faint); font-size: 12px; margin: 8px 0; }
.lf-review-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lf-review-results-grid .lf-review-empty { grid-column: 1 / -1; }
.lf-review-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; color: var(--text-dim); font-size: 13px; }
.lf-review-pagination button { min-height: 44px; padding: 8px 16px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.lf-review-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.review-admin-note { margin: 14px 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text-dim); line-height: 1.55; }
.review-admin-note code { color: var(--text); overflow-wrap: anywhere; }
.review-admin-analytics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.review-admin-analytics > div { padding: 14px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--panel); }
.review-admin-analytics span { display: block; min-height: 32px; color: var(--text-dim); font-size: 12px; }
.review-admin-analytics b { display: block; margin-top: 6px; color: var(--text); font-size: 22px; }
.review-admin-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.review-admin-stats-grid section { padding: 14px; border: 1px solid var(--border-soft); border-radius: 10px; }
.review-admin-stats-grid h3 { margin-top: 0; font-size: 14px; }
.review-admin-stat-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--text-dim); font-size: 12px; border-bottom: 1px solid var(--border-soft); }
.review-admin-stat-row b { color: var(--text); }
.review-admin-list { display: grid; gap: 12px; margin: 12px 0 24px; }
.review-admin-card { padding: 16px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--panel); }
.review-admin-card-head { display: flex; justify-content: space-between; gap: 16px; color: var(--text-dim); font-size: 12px; }
.review-admin-card-head b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.review-admin-card p { color: var(--text-dim); line-height: 1.6; }
.review-admin-card > label { display: grid; gap: 6px; margin-top: 12px; color: var(--text-dim); font-size: 12px; }
.review-admin-card textarea { width: 100%; resize: vertical; padding: 10px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.review-admin-card .review-admin-verify { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.review-admin-verify input { width: 18px; height: 18px; }
.review-admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.review-admin-actions button { min-height: 44px; cursor: pointer; }
@media (max-width: 760px) {
  .lf-review-filters, .lf-review-results-grid, .review-admin-stats-grid { grid-template-columns: 1fr; }
  .review-admin-analytics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-admin-card-head { flex-direction: column; gap: 6px; }
}
@media (max-width: 430px) {
  .review-admin-analytics { grid-template-columns: 1fr; }
  .lf-review-analytics { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .lf-review-card, .lf-review-pagination button { transition: none; }
}
