/* Calquvo — supplemental styles. Utility classes (flex, spacing, colors,
   etc.) now live in utilities.css; this file holds custom, semantic
   components (prose, ad slots, buttons, glass cards, header, numpad).

   The site is permanently dark for every visitor (not tied to OS
   preference) — this file was consolidated on 2026-09-12 from several
   uncoordinated "final fix" layers that had accumulated over time
   (9 separate :root blocks, ~80 duplicate selectors, a light-mode
   header system fighting a dark one). All variables now live in ONE
   :root block below; every rule after it is the single, final,
   winning definition for that selector — no more override layers. */

:root {
  --color-text: #cbd5e1;
  --color-heading: #f8fafc;
  --color-heading-sub: #e7edf5;
  --color-muted: #8491a5;
  --color-link: #60a5fa;
  --color-link-hover: #93c5fd;
  --color-border: #374151;
  --color-surface: #1f2937;
  --color-focus: #60a5fa;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: dark;
  --cq-bg: #070b14;
  --cq-surface: #101827;
  --cq-surface-2: #151f31;
  --cq-border: rgba(148, 163, 184, .15);
  --cq-border-strong: rgba(148, 163, 184, .23);
  --cq-heading: #e7edf5;
  --cq-text: #cbd5e1;
  --cq-text-2: #cbd5e1;
  --cq-muted: #8491a5;
  --cq-blue: #60a5fa;
  --cq-blue-strong: #3b82f6;
  --cq-cyan: #22d3ee;
  --cq-success: #34d399;
  --cq-danger: #fb7185;
}

html {
  scroll-behavior: smooth;
  background: var(--cq-bg);
  color-scheme: dark;
}
body {
  position: relative;
  overflow-x: hidden;
  background: var(--cq-bg) !important;
  color: var(--cq-text) !important;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(37,99,235,.14), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(6,182,212,.10), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(99,102,241,.07), transparent 34%);
  background-attachment: fixed;
  min-width: 320px;
}
main { background: transparent !important; }

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

/* =========================================================
   Prose — hand-rolled since the Tailwind CDN build has no
   @tailwindcss/typography plugin available.
   ========================================================= */
.prose { color: var(--color-text); font-size: 1rem; line-height: 1.75; }
.prose h2 { font-size: 1.375rem; font-weight: 700; color: var(--color-heading); margin-top: 2rem; margin-bottom: 0.75rem; line-height: 1.3; }
.prose h3 { font-size: 1.125rem; font-weight: 600; color: var(--color-heading-sub); margin-top: 1.25rem; margin-bottom: 0.5rem; line-height: 1.35; }
.prose h4 { font-size: 1rem; font-weight: 600; color: var(--color-heading-sub); margin-top: 1rem; margin-bottom: 0.4rem; }
.prose p { margin-bottom: 1rem; color: var(--color-text); }
.prose ul, .prose ol { margin: 0 0 1rem 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.375rem; }
.prose li > ul, .prose li > ol { margin-top: 0.375rem; margin-bottom: 0; }
.prose a { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--color-link-hover); }
.prose strong { font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--color-border); margin: 2rem 0; }
.prose blockquote { border-left: 3px solid var(--color-border); padding-left: 1rem; margin: 1.25rem 0; color: var(--color-muted); font-style: italic; }
.prose code { font-family: var(--font-mono); font-size: 0.875em; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 4px; padding: 0.125rem 0.375rem; }
.prose pre { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; padding: 1rem; overflow-x: auto; margin-bottom: 1rem; }
.prose pre code { background: none; border: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--color-border); }
.prose th { font-weight: 600; color: var(--color-heading-sub); }

/* =========================================================
   Ad slots — reserve space so ads never cause layout shift
   into clickable content, and keep a visible label boundary
   so ads are never confused with the calculator UI itself.
   ========================================================= */
.ad-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin: 1.5rem 0;
  overflow: hidden;
  background: rgba(255,255,255,.025) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 8px;
}
.ad-slot:empty { display: none; margin: 0; border: none; background: none; }
.ad-slot__label { position: absolute; top: 4px; left: 8px; font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.ad-slot.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-border) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: ad-shimmer 1.4s infinite;
}
@keyframes ad-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* =========================================================
   Accessibility — focus visibility for keyboard users
   ========================================================= */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* =========================================================
   Print — legal/calculator pages are often printed or saved as PDF.
   Printing always uses black-on-white regardless of the on-screen
   dark theme.
   ========================================================= */
@media print {
  .ad-slot, [data-no-print] { display: none !important; }
  .prose a { color: inherit; text-decoration: underline; }
  body, .prose, .prose p, .prose li { background: #fff !important; color: #000 !important; }
}

.font-display { font-family: 'Quicksand', 'Inter', system-ui, sans-serif; }

/* =========================================================
   Buttons & glass cards
   ========================================================= */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-pill:active { transform: scale(0.98); }
.btn-pill-primary,
.bg-brand {
  background: linear-gradient(135deg, var(--cq-blue-strong), #2563eb) !important;
  color: #f8fbff !important;
  border-color: rgba(147,197,253,.24) !important;
  box-shadow: 0 10px 28px rgba(59,130,246,.20) !important;
}
.btn-pill-primary:hover { box-shadow: 0 14px 30px rgba(59,130,246,.32) !important; }
.btn-pill-primary.cg-pulse-once { animation: cg-btn-pulse 1.8s ease 1; }
@keyframes cg-btn-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(59,130,246,.20); }
  50% { box-shadow: 0 10px 34px rgba(59,130,246,.40); }
}
.btn-pill-ghost,
.cg-chip {
  background: rgba(255,255,255,.045) !important;
  color: var(--cq-text-2) !important;
  border: 1px solid var(--cq-border) !important;
}
.btn-pill-ghost:hover, .cg-chip:hover { background: rgba(255,255,255,.09) !important; }
.cg-chip.is-active {
  background: linear-gradient(135deg, var(--cq-blue-strong), var(--cq-cyan)) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: scale(1.04);
}

.glass-card, .card, .panel, .surface-card, article, section[data-card] {
  background: linear-gradient(145deg, rgba(18,27,44,.88), rgba(8,13,24,.82)) !important;
  border: 1px solid var(--cq-border) !important;
  border-radius: 1.75rem;
  padding: 1.75rem;
  color: var(--cq-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 20px 55px rgba(0,0,0,.20);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
@media (max-width: 640px) {
  .glass-card, .card, .panel, .surface-card, article, section[data-card] { padding: 1.25rem; }
}

/* Global typography + utility-class color overrides — the whole public
   site (including legacy Tailwind-style utility classes still present
   in older templates) resolves to this one dark palette. */
.bg-white,.bg-bgsoft,.bg-slate-100,
.bg-bgsoft\/40,.bg-bgsoft\/60,
.hover\:bg-white\/90:hover,.hover\:bg-white\/60:hover,
.hover\:bg-bgsoft\/60:hover,
.focus\:bg-white:focus { background-color: var(--cq-surface) !important; }
.bg-gradient-to-b.from-white,.bg-gradient-to-t.from-white,
.bg-gradient-to-b.from-white.to-bgsoft {
  background-image: linear-gradient(to bottom, var(--cq-surface), var(--cq-bg)) !important;
}
h1,h2,h3,h4,h5,h6,.text-navy,.text-ink,.text-ink\/90 { color: var(--cq-heading) !important; }
p,li,dt,dd,.text-slate-600,.text-slate-700,.text-muted,.text-slate-400,.text-slate-500 { color: var(--cq-muted) !important; }
.text-slate-200,.text-slate-300 { color: var(--cq-text-2) !important; }
.text-white,.hover\:text-white:hover { color: var(--cq-heading) !important; }
a { color: inherit; }
.border-bordersoft,.border { border-color: var(--cq-border) !important; }
.bg-brand\/10 { background: rgba(59,130,246,.10) !important; }
.text-brand { color: var(--cq-blue) !important; }
.text-cyan { color: var(--cq-cyan) !important; }
.border-brand { border-color: rgba(96,165,250,.42) !important; }

/* =========================================================
   On-screen numeric keypad — replaces the native mobile
   keyboard for calculator number inputs. Dark unconditionally
   (previously only dark on OS-dark preference, which showed a
   white panel to light-OS visitors on this now-permanently-dark site).
   ========================================================= */
.numpad-input { caret-color: transparent; cursor: pointer; }
.numpad-panel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(17,24,39,.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -20px 50px -20px rgba(0,0,0,.5);
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform .22s ease;
}
.numpad-panel.is-open { transform: translateY(0); }
.numpad-panel__header { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 12px; font-size: 0.8125rem; color: var(--color-muted); }
.numpad-panel__display { font-family: var(--font-mono); font-size: 1.375rem; font-weight: 600; color: var(--color-heading); }
.numpad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numpad-key { border: none; border-radius: 1rem; padding: 16px 0; font-size: 1.25rem; font-weight: 600; background: var(--color-surface); color: var(--color-heading); transition: transform .1s ease, background .1s ease; }
.numpad-key:active { transform: scale(0.95); background: var(--color-border); }
.numpad-key--accent { background: linear-gradient(135deg, var(--cq-blue-strong), #06B6D4); color: #fff; }
.numpad-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 59; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.numpad-backdrop.is-open { opacity: 1; pointer-events: auto; }

#mobileMenu:not(.hidden) { display: block; }

/* =========================================================================
   Custom calculator inputs — range slider & quick-pick chips
   ========================================================================= */
.cg-range-wrap { position: relative; padding-top: 34px; }
.cg-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--cq-blue) var(--cg-range-fill, 50%), var(--cq-border) var(--cg-range-fill, 50%));
  outline: none; touch-action: pan-y;
}
.cg-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--cq-blue);
  box-shadow: 0 2px 8px rgba(37,99,235,.35); cursor: pointer;
  transition: transform .12s ease;
}
.cg-range::-webkit-slider-thumb:active { transform: scale(1.15); }
.cg-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--cq-blue); box-shadow: 0 2px 8px rgba(37,99,235,.35); cursor: pointer; }
.cg-range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--cq-border); }
.cg-range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--cq-blue); }
.cg-range-bubble {
  position: absolute; top: 0; left: var(--cg-range-fill, 50%); transform: translateX(-50%);
  background: var(--cq-surface); color: var(--cq-text);
  font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap; pointer-events: none; border: 1px solid var(--cq-border);
}
.cg-range-bubble::after { content: ''; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--cq-surface); }
.cg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* =========================================================================
   Result reveal — the "legendary" moment
   ========================================================================= */
.cg-result {
  position: relative;
  margin-top: 1.75rem;
  padding: 1.75rem 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(18,29,48,.88), rgba(9,15,27,.9)) !important;
  border: 1px solid rgba(96,165,250,.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 24px 60px rgba(0,0,0,.25);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.cg-result.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.cg-result.is-error { background: linear-gradient(145deg, rgba(69,25,35,.55), rgba(20,12,20,.82)) !important; border-color: rgba(248,113,113,.24) !important; }
.cg-result p { color: var(--cq-text-2) !important; }
.cg-result .text-muted { color: var(--cq-muted) !important; }
.cg-result-glow {
  position: absolute; top: -60%; right: -20%; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(96,165,250,.16), transparent 65%);
  border-radius: 999px; pointer-events: none;
}
#resultValue { display: inline-block; }
.cg-result.is-visible #resultValue { animation: cg-result-pop .4s ease .35s both; }
@keyframes cg-result-pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .cg-result, .cg-result.is-visible #resultValue { animation: none !important; transition: none !important; }
}
#cgConfettiCanvas { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

/* =========================================================
   Form inputs (calculator + header search + admin uses its own
   --admin-* scoped rules further below)
   ========================================================= */
.calc-input,input,select,textarea {
  color: var(--cq-text) !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid var(--cq-border-strong) !important;
}
.calc-input::placeholder,input::placeholder,textarea::placeholder { color: #718096 !important; }
.calc-input:focus,input:focus,select:focus,textarea:focus {
  border-color: rgba(96,165,250,.58) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.10) !important;
}
select option { background: var(--cq-surface) !important; color: var(--cq-text) !important; }

/* =========================================================
   Calculator result-focus mode — after Calculate, inputs collapse
   away so the answer becomes the visual focus.
   ========================================================= */
.calc-form-shell { transition: opacity .32s ease, transform .42s cubic-bezier(.2,.8,.2,1), max-height .5s ease; overflow: hidden; max-height: 1400px; }
.calc-form-shell form { transition: opacity .24s ease, transform .4s cubic-bezier(.2,.8,.2,1), max-height .45s ease; }
.calc-form-shell form.cg-form-hidden { opacity: 0; transform: translateY(-12px) scale(.985); max-height: 0; pointer-events: none; overflow: hidden; }
.cg-edit-inputs { margin: 14px auto 0; display: flex !important; width: max-content; position: relative; z-index: 3; }
#calculator-app.cg-result-mode #calculatorResult { margin-top: 4px; min-height: 230px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
#calculator-app.cg-result-mode #calculatorResult .cg-result-glow { opacity: .9; }
#calculator-app.cg-result-mode #resultValue { font-size: clamp(3rem,9vw,5.6rem); line-height: 1; font-weight: 850; letter-spacing: -.045em; }
@media (max-width: 640px) {
  #calculator-app.cg-result-mode #calculatorResult { min-height: 200px; padding: 28px 18px; }
  .cg-edit-inputs { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .calc-form-shell, .calc-form-shell form { transition: none !important; } }

/* =========================================================
   Per-calculator icon badge — shown next to the H1 on each
   calculator's own page.
   ========================================================= */
.calc-icon-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-top: 2px;
  border-radius: 16px;
  color: var(--cq-blue);
  background: linear-gradient(145deg, rgba(96,165,250,.16), rgba(34,211,238,.07));
  border: 1px solid rgba(96,165,250,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 20px rgba(0,0,0,.18);
}
.calc-icon-badge svg { width: 27px; height: 27px; }
@media (max-width: 640px) {
  .calc-icon-badge { width: 44px; height: 44px; border-radius: 13px; }
  .calc-icon-badge svg { width: 22px; height: 22px; }
}

/* =========================================================================
   Header — floating dark glass top bar, its search/menu, and the
   attached dropdown panels below it.
   ========================================================================= */
.site-header { position: sticky; top: 0; z-index: 50; width: 100%; padding: 14px 14px 10px; background: transparent !important; }
.site-header__inner {
  position: relative;
  width: min(1180px, calc(100% - 8px));
  min-height: 62px;
  margin: 0 auto;
  padding: 8px 10px 8px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(145deg, rgba(18,27,44,.88), rgba(8,13,24,.82)) !important;
  border: 1px solid var(--cq-border) !important;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  z-index: 51;
}
.site-header__inner::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,.055), transparent 28%, transparent 72%, rgba(34,211,238,.025));
}
.site-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--cq-heading) !important; text-decoration: none !important; transition: opacity .18s ease, transform .28s cubic-bezier(.2,.8,.2,1); transform-origin: left center; }
.site-brand__icon { width: 42px; height: 42px; display: block; border-radius: 11px; box-shadow: 0 5px 18px rgba(37,99,235,.28); }
.site-brand__name { color: var(--cq-heading) !important; font-size: 19px; line-height: 1; font-weight: 800; letter-spacing: -.035em; }

.site-nav { display: flex; align-items: center; justify-content: center; gap: 3px; margin-left: auto; }
.site-nav__link, .site-nav__categories { appearance: none; display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent !important; color: var(--cq-text-2) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; cursor: pointer; transition: background .16s ease, color .16s ease; }
.site-nav__link:hover, .site-nav__link:focus-visible, .site-nav__categories:hover { color: #fff !important; background: rgba(255,255,255,.07) !important; outline: none; }
.site-nav__chevron { width: 15px; height: 15px; }
.site-nav__dropdown { position: relative; }
.site-nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; width: 240px; padding: 8px;
  background: linear-gradient(145deg, rgba(18,27,44,.96), rgba(8,13,24,.94)) !important;
  border: 1px solid var(--cq-border) !important;
  border-radius: 14px;
  box-shadow: 0 20px 55px rgba(0,0,0,.4);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden; transform: translateY(-5px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.site-nav__dropdown:hover .site-nav__menu, .site-nav__dropdown:focus-within .site-nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav__menu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--cq-text-2) !important; font-size: 14px; font-weight: 500; text-decoration: none !important; }
.site-nav__menu a:hover { background: rgba(96,165,250,.10) !important; color: #fff !important; }

.site-header__actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; margin-left: auto; }
.site-search, .site-mobile-search { position: relative; display: flex; align-items: center; }
.site-search { width: 230px; background: rgba(255,255,255,.055) !important; border: 1px solid rgba(255,255,255,.09) !important; border-radius: 11px; }
.site-search:focus-within { border-color: rgba(96,165,250,.55) !important; box-shadow: 0 0 0 3px rgba(96,165,250,.09); }
.site-search input, .site-mobile-search input {
  width: 100%; height: 40px; padding: 0 16px;
  background: transparent !important; color: var(--cq-heading) !important;
  border: 0 !important; font-size: 14px; outline: none; text-align: center;
}
.site-search input::placeholder, .site-mobile-search input::placeholder { color: #64748b !important; }

.site-search-wrap, .site-mobile-search-wrap { position: relative; min-width: 0; }
.site-search-suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 100;
  min-width: 320px; max-height: 60vh; padding: 6px;
  border: 1px solid var(--cq-border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17,26,42,.99), rgba(8,13,24,.98));
  box-shadow: 0 24px 60px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  overflow-y: auto; overflow-x: hidden;
}
.search-suggestion-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; border-radius: 11px; text-decoration: none !important; color: var(--cq-text) !important; background: transparent !important; border: 0 !important; transition: background .16s ease, transform .16s ease; }
.search-suggestion-item:hover { background: rgba(96,165,250,.09) !important; transform: translateX(2px); }
.search-suggestion-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(96,165,250,.10); color: var(--cq-blue); font-size: 15px; flex: 0 0 auto; }
.search-suggestion-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-suggestion-title { font-size: 13px; font-weight: 700; color: var(--cq-heading) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggestion-desc { font-size: 11px; color: var(--cq-muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggestion-arrow { margin-left: auto; color: #68768a; font-size: 18px; }
.search-suggestion-empty { padding: 14px 12px; color: var(--cq-muted); font-size: 12px; text-align: center; }
#autocompleteResults { background: linear-gradient(145deg, rgba(17,26,42,.99), rgba(8,13,24,.98)) !important; border: 1px solid var(--cq-border) !important; border-radius: 16px !important; box-shadow: 0 24px 60px rgba(0,0,0,.48) !important; color: var(--cq-text) !important; }

.site-home-button { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; flex: 0 0 42px; border: 1px solid var(--cq-border) !important; border-radius: 11px; background: rgba(255,255,255,.055) !important; color: var(--cq-text-2) !important; cursor: pointer; text-decoration: none !important; transition: background .16s ease, border-color .16s ease, transform .12s ease; }
.site-home-button:hover { background: rgba(255,255,255,.10) !important; color: #fff !important; }
.site-home-button:active { transform: scale(.97); }
.site-home-button svg { width: 21px; height: 21px; }
.site-menu-button { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; flex: 0 0 42px; border: 1px solid var(--cq-border) !important; border-radius: 11px; background: rgba(255,255,255,.055) !important; color: var(--cq-text-2) !important; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .12s ease; }
.site-menu-button:hover { background: rgba(255,255,255,.10) !important; }
.site-menu-button:active { transform: scale(.97); }
.site-menu-button svg { width: 21px; height: 21px; }
.site-menu-button__close { display: none; }
.site-menu-button__search { display: none; }
.site-menu-button[aria-expanded="true"] .site-menu-button__open { display: none; }
.site-menu-button[aria-expanded="true"] .site-menu-button__close { display: block; }
.site-menu-button.is-searching .site-menu-button__open,
.site-menu-button.is-searching .site-menu-button__close { display: none !important; }
.site-menu-button.is-searching .site-menu-button__search { display: block !important; }

/* The mobile menu is physically attached to the underside of the floating top bar. */
.site-mobile-menu {
  position: absolute !important;
  top: calc(100% - 1px) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(-8px) !important;
  width: min(1180px, calc(100% - 20px)) !important;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  margin: 0 !important;
  padding: 12px !important;
  border-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-radius: 18px;
  box-shadow: 0 26px 65px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.025) !important;
  background: linear-gradient(180deg, rgba(14,22,36,.98), rgba(8,13,24,.97)) !important;
  border: 1px solid var(--cq-border) !important;
  color: var(--cq-text) !important;
  z-index: 52;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .22s cubic-bezier(.2,.8,.2,1);
}
.site-mobile-menu.hidden { display: none !important; }
.site-mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) !important;
}

.site-mobile-menu-backdrop {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(3,6,12,.55);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
.site-mobile-menu-backdrop.hidden { display: none !important; }
.site-mobile-menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

.site-mobile-search-wrap { width: 100%; position: relative; }
.site-mobile-search { width: 100%; background: rgba(255,255,255,.055) !important; border: 1px solid rgba(255,255,255,.09) !important; border-radius: 11px; margin-bottom: 10px; }
.site-mobile-suggestions { position: relative; top: auto; left: auto; right: auto; margin-top: 7px; min-width: 0; z-index: 3; }
.site-mobile-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.site-mobile-links a { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 8px 12px; border-radius: 12px; color: var(--cq-heading) !important; background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.07); font-size: 14px; font-weight: 700; text-decoration: none !important; transition: background .16s ease, border-color .16s ease, transform .12s ease; }
.site-mobile-links a:hover, .site-mobile-links a:active { background: rgba(96,165,250,.14) !important; border-color: rgba(96,165,250,.3); transform: translateY(-1px); }
.site-mobile-links a:first-child, .site-mobile-links a:last-child { grid-column: 1 / -1; }
.site-mobile-links a.is-active { background: linear-gradient(145deg, rgba(96,165,250,.20), rgba(34,211,238,.12)) !important; border-color: rgba(96,165,250,.4); color: #fff !important; }
.site-mobile-links a.is-active .site-mobile-links__icon { background: linear-gradient(145deg, var(--cq-blue-strong), var(--cq-cyan)); color: #fff; border-color: transparent; }
.site-mobile-links__icon {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 9px;
  color: var(--cq-cyan);
  background: linear-gradient(145deg, rgba(96,165,250,.22), rgba(34,211,238,.10));
  border: 1px solid rgba(96,165,250,.22);
}
.site-mobile-links__icon svg { width: 17px; height: 17px; }
.site-mobile-links a:hover .site-mobile-links__icon, .site-mobile-links a:active .site-mobile-links__icon {
  background: linear-gradient(145deg, var(--cq-blue-strong), var(--cq-cyan)); color: #fff; border-color: transparent;
}
.site-mobile-suggestions-list { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.site-mobile-suggestions-list.hidden { display: none; }

/* Mobile: the menu button expands search to fill all available space */
@media (max-width: 767px) {
  .site-header { padding: 10px 10px 8px; }
  .site-header__inner { width: calc(100% - 4px); min-height: 58px; padding: 7px 8px 7px 11px; border-radius: 19px; display: flex; align-items: center; gap: 8px; overflow: visible !important; }
  .site-brand { min-width: 0; flex: 0 0 auto; }
  .site-brand__icon { width: 36px; height: 36px; }
  .site-brand__name { font-size: 18px; }
  .site-nav { display: none; }
  .site-header__actions { margin-left: auto; gap: 8px; flex: 1 1 auto; min-width: 0; }
  .site-search-wrap { display: block; position: relative; flex: 1 1 auto; min-width: 0; width: 100%; }
  .site-search { 
    display: flex !important; 
    position: relative !important; 
    z-index: 8; 
    left: auto !important; 
    right: auto !important; 
    top: auto !important; 
    margin: 0 !important; 
    width: 100% !important; 
    max-width: none !important;
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
    transform: translateY(-7px) scale(.985); 
    transform-origin: center center; 
    transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1), visibility .2s; 
  }
  .site-search input { width: 100% !important; padding: 0 16px !important; text-align: center !important; height: 42px !important; border-radius: 12px !important; }
  .site-home-button { display: inline-flex; position: relative; z-index: 10; width: 42px; height: 42px; flex: 0 0 42px; }
  .site-menu-button { display: inline-flex; position: relative; z-index: 10; width: 42px; height: 42px; flex: 0 0 42px; }
  .site-header__inner:has(.site-menu-button[aria-expanded="true"]) .site-home-button { display: none !important; }
  .site-header__inner:has(.site-menu-button[aria-expanded="true"]) .site-brand { display: none !important; }
  .site-header__inner:has(.site-menu-button[aria-expanded="true"]) .site-search-wrap { flex: 1 1 100% !important; width: 100% !important; }
  .site-header__inner:has(.site-menu-button[aria-expanded="true"]) .site-search { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
  .site-header__inner:has(.site-menu-button[aria-expanded="true"]) .site-search::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -7px; height: 8px; background: linear-gradient(180deg, rgba(18,27,44,.72), transparent); border-radius: 0 0 12px 12px; pointer-events: none; }
  .site-mobile-menu { width: calc(100% - 20px) !important; }
  .site-search-wrap > .site-search-suggestions { display: none !important; }
}
@media (min-width: 768px) {
  .site-header__inner { border-radius: 24px; }
  .site-header .site-mobile-menu,
  .site-mobile-menu.is-open { display: none !important; }
  .site-search-wrap { width: 100%; max-width: 280px; min-width: 0; flex: 0 1 280px; }
  .site-search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .site-brand, .site-search, .search-suggestion-item { transition: none !important; }
}

/* =========================================================
   Height comparison — 2D fallback stage
   ========================================================= */
.hc-stage-wrap{min-width:0}.hc-stage{position:relative;height:470px;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:28px;background:radial-gradient(circle at 50% 15%,rgba(96,165,250,.12),transparent 34%),linear-gradient(180deg,rgba(15,23,42,.82),rgba(7,11,20,.96));box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 24px 70px rgba(0,0,0,.28);isolation:isolate}.hc-stage:before{content:"";position:absolute;inset:-25%;background:radial-gradient(circle at 30% 30%,rgba(59,130,246,.08),transparent 24%),radial-gradient(circle at 72% 62%,rgba(34,211,238,.06),transparent 25%);animation:hcAmbient 9s ease-in-out infinite alternate;z-index:-1}.hc-stage-grid{position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:40px 40px;mask-image:linear-gradient(to bottom,transparent,black 15%,black 85%,transparent)}.hc-ruler{position:absolute;left:15px;top:24px;bottom:44px;width:54px;display:flex;flex-direction:column;justify-content:space-between;color:#64748b;font-size:10px;text-align:right;padding-right:10px;border-right:1px solid rgba(255,255,255,.08)}.hc-ground{position:absolute;left:12%;right:12%;bottom:25px;height:18px;border-radius:50%;background:radial-gradient(ellipse,rgba(59,130,246,.22),rgba(0,0,0,0) 70%);filter:blur(3px)}.hc-person{position:absolute;bottom:38px;width:78px;transform-origin:bottom center;transition:height .55s cubic-bezier(.2,.8,.2,1),transform .55s ease;filter:drop-shadow(0 18px 18px rgba(0,0,0,.3));}.hc-person-a{left:32%;}.hc-person-b{right:30%;}.hc-head{position:absolute;top:0;left:50%;width:36px;height:36px;margin-left:-18px;border-radius:50%;background:linear-gradient(145deg,#dbeafe,#94a3b8);box-shadow:inset -5px -5px 10px rgba(15,23,42,.18),inset 4px 4px 9px rgba(255,255,255,.38)}.hc-neck{position:absolute;top:31px;left:50%;width:13px;height:13px;margin-left:-6.5px;border-radius:5px;background:#cbd5e1}.hc-torso{position:absolute;top:39px;left:50%;width:42px;height:86px;margin-left:-21px;border-radius:18px 18px 12px 12px;background:linear-gradient(145deg,#60a5fa,#2563eb 58%,#172554);box-shadow:inset 5px 3px 9px rgba(255,255,255,.16),inset -7px -7px 12px rgba(0,0,0,.25)}.hc-arm{position:absolute;top:44px;width:13px;height:79px;border-radius:10px;background:linear-gradient(180deg,#cbd5e1,#94a3b8);transform-origin:top center}.hc-arm-l{left:7px;transform:rotate(7deg)}.hc-arm-r{right:7px;transform:rotate(-7deg)}.hc-leg{position:absolute;top:117px;width:16px;height:calc(100% - 122px);min-height:65px;border-radius:10px;background:linear-gradient(180deg,#334155,#0f172a);transform-origin:top center}.hc-leg-l{left:22px;transform:rotate(2deg)}.hc-leg-r{right:22px;transform:rotate(-2deg)}.hc-foot{position:absolute;bottom:-3px;width:30px;height:10px;border-radius:8px 11px 5px 5px;background:#020617}.hc-foot-l{left:12px}.hc-foot-r{right:10px}.hc-height-tag{position:absolute;top:4px;left:calc(100% + 9px);white-space:nowrap;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:rgba(15,23,42,.78);padding:5px 8px;color:#e2e8f0;font-size:10px;backdrop-filter:blur(10px)}.hc-person-b .hc-torso{background:linear-gradient(145deg,#67e8f9,#0891b2 58%,#164e63)}.hc-avatar{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;border-radius:12px;font-weight:800;border:1px solid rgba(255,255,255,.1)}.hc-avatar-a{background:rgba(59,130,246,.14);color:#93c5fd}.hc-avatar-b{background:rgba(34,211,238,.12);color:#67e8f9}.hc-person-card{padding:16px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.025)}.hc-result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.hc-stat{padding:13px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035)}.hc-stat span{display:block;color:#64748b;font-size:11px}.hc-stat strong{display:block;margin-top:5px;color:#f8fafc;font-size:14px}.hc-summary{margin-top:10px;text-align:center;border:1px solid rgba(96,165,250,.16);border-radius:15px;background:linear-gradient(135deg,rgba(59,130,246,.09),rgba(34,211,238,.06));padding:13px;color:#dbeafe;font-size:14px}.hc-step{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;border-radius:10px;background:rgba(59,130,246,.12);color:#93c5fd;font-weight:800}.hc-pop{animation:hcPop .55s cubic-bezier(.2,.8,.2,1)}@keyframes hcPop{0%{transform:translateY(7px) scale(.98)}100%{transform:translateY(0) scale(1)}}@keyframes hcAmbient{from{transform:translate3d(-2%,0,0) scale(1)}to{transform:translate3d(2%,2%,0) scale(1.04)}}@media(max-width:767px){.hc-stage{height:360px;border-radius:22px}.hc-ruler{left:8px;font-size:9px;width:42px}.hc-person{bottom:36px;width:62px}.hc-person-a{left:29%}.hc-person-b{right:25%}.hc-head{width:29px;height:29px;margin-left:-14.5px}.hc-neck{top:25px}.hc-torso{top:32px;width:34px;height:67px;margin-left:-17px}.hc-arm{top:36px;width:10px;height:61px}.hc-arm-l{left:7px}.hc-arm-r{right:7px}.hc-leg{top:96px;width:13px}.hc-leg-l{left:18px}.hc-leg-r{right:18px}.hc-foot{height:8px;width:24px}.hc-foot-l{left:9px}.hc-foot-r{right:8px}.hc-height-tag{font-size:9px;padding:4px 6px}.hc-result-grid{grid-template-columns:1fr}.hc-stat{display:flex;align-items:center;justify-content:space-between}.hc-stat strong{margin-top:0;text-align:right}}@media(prefers-reduced-motion:reduce){.hc-stage:before,.hc-pop{animation:none!important}.hc-person{transition:none!important}}

/* True 3D height stage */
.hc-stage-3d{isolation:isolate;overflow:hidden;cursor:grab;touch-action:none}
.hc-stage-3d:active{cursor:grabbing}
.hc-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:2}
.hc-stage-3d .hc-stage-grid{z-index:1}
.hc-stage-3d .hc-ground{z-index:3;pointer-events:none}
.hc-stage-3d .hc-ruler{z-index:4}
.hc-3d-badge{position:absolute;top:14px;right:14px;z-index:6;padding:7px 10px;border:1px solid rgba(148,163,184,.14);border-radius:999px;background:rgba(7,11,20,.62);backdrop-filter:blur(12px);color:#94a3b8;font-size:11px;font-weight:700;letter-spacing:.04em}
.hc-3d-label{position:absolute;z-index:6;top:0;left:0;padding:7px 10px;border-radius:10px;background:rgba(7,11,20,.72);border:1px solid rgba(148,163,184,.14);backdrop-filter:blur(12px);font-size:12px;font-weight:800;color:#e2e8f0;pointer-events:none;white-space:nowrap;will-change:transform}
.hc-fallback-figures{display:none}
@media(max-width:640px){.hc-3d-badge{top:10px;right:10px}}
@media(prefers-reduced-motion:reduce){.hc-stage-3d{cursor:default}.admin-shell .admin-sidebar a,.admin-shell .admin-sidebar button{transition:none}}

/* =========================================================
   Bottom bar — floating pill-style app tab bar (Home /
   Categories / Calculators / Search / More), matching the
   floating header's glass/gradient language. The "More" tab
   opens a floating sheet holding everything the old footer
   had (explore links, legal links, popular categories,
   copyright).
   ========================================================= */
body:not(.admin-shell) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

.site-bottombar-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 0 14px calc(14px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.site-bottombar {
  pointer-events: auto;
  position: relative;
  width: min(480px, 100%);
  margin: 0 auto;
  display: flex; align-items: stretch;
  height: 64px;
  background: linear-gradient(145deg, rgba(18,27,44,.90), rgba(8,13,24,.86)) !important;
  border: 1px solid var(--cq-border) !important;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  overflow: hidden;
}
.site-bottombar::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,.05), transparent 28%, transparent 72%, rgba(34,211,238,.02));
}
.site-bottombar__item {
  position: relative; flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; border: 0; background: transparent !important; cursor: pointer;
  color: var(--cq-muted) !important; text-decoration: none !important;
  font-size: 10.5px; font-weight: 600; padding: 8px 2px;
  min-height: 48px; min-width: 44px;
  transition: color .25s cubic-bezier(.2,.8,.2,1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
.site-bottombar__icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 30px; border-radius: 13px;
  background: transparent;
  transition: background .18s cubic-bezier(.2,.8,.2,1), transform .12s cubic-bezier(.2,.8,.2,1);
}
.site-bottombar__icon svg { width: 20px; height: 20px; transition: transform .12s cubic-bezier(.2,.8,.2,1); }
.site-bottombar__label { transition: opacity .2s ease, transform .12s cubic-bezier(.2,.8,.2,1); }

.site-bottombar__item:hover, .site-bottombar__item:focus-visible { color: var(--cq-text) !important; outline: none; }

/* Touch feedback: an immediate, snappy press state (fast transition, no
   delay) so the bar feels responsive to a finger tap rather than a mouse
   hover. Applies to touch and mouse alike via :active. */
.site-bottombar__item:active { color: var(--cq-text) !important; }
.site-bottombar__item:active .site-bottombar__icon {
  transform: scale(.88);
  background: rgba(255,255,255,.10);
  transition-duration: .08s;
}
.site-bottombar__item:active .site-bottombar__label { transform: scale(.96); }

.site-bottombar__item.is-active,
.site-bottombar__item[aria-expanded="true"] { color: var(--cq-blue) !important; }
.site-bottombar__item.is-active .site-bottombar__icon,
.site-bottombar__item[aria-expanded="true"] .site-bottombar__icon {
  background: linear-gradient(145deg, rgba(96,165,250,.22), rgba(34,211,238,.14));
}
.site-bottombar__item.is-active:active .site-bottombar__icon,
.site-bottombar__item[aria-expanded="true"]:active .site-bottombar__icon {
  background: linear-gradient(145deg, rgba(96,165,250,.34), rgba(34,211,238,.22));
}
.site-bottombar__item.is-active .site-bottombar__label { transform: translateY(-1px); }

@media (hover: none) {
  /* Touch devices: skip the hover color change entirely so a finger resting
     near an item (without tapping) never leaves it looking "stuck" active. */
  .site-bottombar__item:hover { color: var(--cq-muted) !important; }
  .site-bottombar__item.is-active:hover,
  .site-bottombar__item[aria-expanded="true"]:hover { color: var(--cq-blue) !important; }
}

.site-bottombar-backdrop {
  position: fixed; inset: 0; z-index: 46; background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.site-bottombar-backdrop:not(.hidden) { opacity: 1; pointer-events: auto; }

.site-bottombar-more {
  pointer-events: auto;
  position: fixed; left: 14px; right: 14px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 47; margin: 0 auto;
  width: min(480px, calc(100% - 28px));
  max-height: min(70vh, 520px); overflow-y: auto;
  background: linear-gradient(145deg, rgba(18,27,44,.96), rgba(8,13,24,.94)) !important;
  border: 1px solid var(--cq-border-strong) !important;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(16px) scale(.96);
  opacity: 0;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
}
.site-bottombar-more:not(.hidden) { transform: translateY(0) scale(1); opacity: 1; }
.site-bottombar-more.hidden { display: block !important; pointer-events: none; }
.site-bottombar-more__handle { display: none; }
.site-bottombar-more__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.site-bottombar-more__logo { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-weight: 800; flex: 0 0 auto; }
.site-bottombar-more__name { display: block; font-weight: 800; color: var(--cq-heading); font-size: 15px; }
.site-bottombar-more__brand p { margin: 2px 0 0; font-size: 12px; color: var(--cq-muted); }
.site-bottombar-more__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.site-bottombar-more__cols h3 { font-size: 12px; font-weight: 700; color: var(--cq-heading); margin: 0 0 8px; }
.site-bottombar-more__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-bottombar-more__cols a { font-size: 13px; color: var(--cq-muted) !important; text-decoration: none !important; transition: color .16s ease; }
.site-bottombar-more__cols a:hover { color: #fff !important; }
.site-bottombar-more__legal { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--cq-border); font-size: 11px; color: var(--cq-muted); display: flex; flex-direction: column; gap: 4px; }
.site-bottombar-more__legal a { color: var(--cq-muted); text-decoration: underline; }
.site-bottombar-more__legal a:hover { color: #fff; }

@media (max-width: 480px) {
  .site-bottombar-more__cols { grid-template-columns: 1fr 1fr; }
  .site-bottombar-more__cols > div:last-child { grid-column: 1 / -1; }
}

/* =========================================================
   Admin dashboard — self-contained dark theme, scoped under
   .admin-shell so it never conflicts with the public site above.
   ========================================================= */
.admin-shell{
  --admin-bg:#070b14; --admin-panel:rgba(16,23,38,.82); --admin-panel-2:rgba(20,30,48,.78);
  --admin-border:rgba(148,163,184,.14); --admin-text:#f8fafc; --admin-muted:#94a3b8;
  --admin-blue:#3b82f6; --admin-cyan:#22d3ee; --admin-green:#34d399; --admin-amber:#fbbf24;
  background:var(--admin-bg)!important;color:var(--admin-text)!important;
}
.admin-shell .admin-sidebar{background:linear-gradient(180deg,#0b1220 0%,#070b14 100%)!important;border-right:1px solid var(--admin-border)!important;box-shadow:18px 0 50px rgba(0,0,0,.22)}
.admin-shell .admin-sidebar > div:first-child{border-bottom-color:var(--admin-border)!important}
.admin-shell .admin-sidebar a,.admin-shell .admin-sidebar button{transition:background .2s ease,color .2s ease,transform .2s ease}
.admin-shell .admin-sidebar a:hover,.admin-shell .admin-sidebar button:hover{background:rgba(96,165,250,.09)!important;color:#fff!important;transform:translateX(2px)}
.admin-shell .admin-sidebar a.bg-white\/10{background:linear-gradient(135deg,rgba(59,130,246,.22),rgba(34,211,238,.08))!important;border:1px solid rgba(96,165,250,.16)}
.admin-shell .admin-topbar{background:rgba(9,14,25,.78)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom-color:var(--admin-border)!important;box-shadow:0 12px 40px rgba(0,0,0,.14)}
.admin-shell .admin-main{color:var(--admin-text)!important}
.admin-shell .admin-panel,.admin-shell .admin-stat-card{background:linear-gradient(145deg,rgba(18,27,44,.88),rgba(8,13,24,.82))!important;border:1px solid var(--admin-border)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 18px 50px rgba(0,0,0,.18)}
.admin-shell .admin-panel{border-radius:18px}
.admin-shell .admin-stat-card{min-height:132px}
.admin-stat-icon{position:relative;z-index:2;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:11px;margin-bottom:14px;font-weight:800;background:rgba(255,255,255,.06);color:#fff;border:1px solid rgba(255,255,255,.08)}
.admin-stat-blue .admin-stat-icon{color:#93c5fd;background:rgba(59,130,246,.13)}
.admin-stat-green .admin-stat-icon{color:#6ee7b7;background:rgba(52,211,153,.12)}
.admin-stat-amber .admin-stat-icon{color:#fde68a;background:rgba(251,191,36,.12)}
.admin-stat-cyan .admin-stat-icon{color:#67e8f9;background:rgba(34,211,238,.12)}
.admin-stat-violet .admin-stat-icon{color:#c4b5fd;background:rgba(139,92,246,.12)}
.admin-stat-glow{position:absolute;right:-30px;bottom:-45px;width:130px;height:130px;border-radius:50%;filter:blur(30px);opacity:.13;background:#3b82f6}
.admin-stat-green .admin-stat-glow{background:#34d399}.admin-stat-amber .admin-stat-glow{background:#fbbf24}.admin-stat-cyan .admin-stat-glow{background:#22d3ee}.admin-stat-violet .admin-stat-glow{background:#8b5cf6}
.admin-shell .admin-panel input,.admin-shell .admin-panel select,.admin-shell .admin-panel textarea,
.admin-shell .input-row input,.admin-shell .input-row select,.admin-shell .input-row textarea{background:rgba(255,255,255,.045)!important;color:var(--admin-text)!important;border-color:var(--admin-border)!important}
.admin-shell .admin-panel input:focus,.admin-shell .admin-panel select:focus,.admin-shell .admin-panel textarea:focus,
.admin-shell .input-row input:focus,.admin-shell .input-row select:focus,.admin-shell .input-row textarea:focus{border-color:rgba(96,165,250,.55)!important;box-shadow:0 0 0 3px rgba(59,130,246,.10)!important;outline:none!important}
.admin-shell .divide-bordersoft > :not([hidden]) ~ :not([hidden]){border-color:var(--admin-border)!important}
.admin-shell .bg-green-50,.admin-shell .bg-amber-50,.admin-shell .bg-red-50,.admin-shell .bg-white{background:rgba(255,255,255,.045)!important}
.admin-shell .text-green-600{color:#6ee7b7!important}.admin-shell .text-amber-600,.admin-shell .text-amber-500{color:#fcd34d!important}.admin-shell .text-red-800{color:#fda4af!important}
.admin-shell .border-green-200,.admin-shell .border-red-200,.admin-shell .border-bordersoft{border-color:var(--admin-border)!important}
.admin-shell .bg-navy{background:#0b1220!important}
.admin-shell canvas{max-width:100%}