/* ============================================================
   Grabber PRO · Official Website
   Inspired by dark sci-fi / cinematic composition.
   Theme: deep void black + crimson accent + neutralized glow
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(ellipse 40% 30% at 100% 100%, rgba(5,5,7,.96) 0%, rgba(5,5,7,.75) 45%, rgba(5,5,7,0) 100%),
    #050507 url('../images/page-bg.png') center / cover fixed no-repeat;
  color: #e8e8ed;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }
::selection { background: rgba(239, 68, 68, .35); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #08080a; }
::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #ef4444; }

/* ---- Design tokens ---- */
:root {
  --bg: #050507;
  --bg-2: #0a0a0e;
  --bg-3: #11111a;
  --surface: rgba(255, 255, 255, .03);
  --surface-2: rgba(255, 255, 255, .05);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #ececef;
  --text-2: #a8a8b3;
  --text-3: #6b6b75;
  --red: #ff3a2f;
  --red-2: #e5251b;
  --red-soft: rgba(255, 58, 47, .14);
  --red-glow: rgba(255, 58, 47, .45);
  --gold: #f59e0b;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .4);
  --shadow-red: 0 8px 32px rgba(239, 68, 68, .15);
  --max-width: 1240px;
  --nav-h: 64px;
  --font-display: 'Inter', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

/* ---- Layout helpers ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 24px; }
@media (max-width: 768px) { .section { padding: 64px 20px; } }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); padding: 6px 12px;
  background: var(--red-soft);
  border: 1px solid rgba(239, 68, 68, .25);
  border-radius: 100px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%;
  box-shadow: 0 0 8px var(--red-glow);
}
.section-title {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.section-title .accent { color: var(--red); }
.section-desc {
  color: var(--text-2);
  font-size: clamp(14px, 1.4vw, 16px);
  max-width: 640px;
  margin-bottom: 56px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  /* frosted glass: low-opacity tint so colors from below bleed through */
  background: linear-gradient(180deg, rgba(12, 12, 16, .42) 0%, rgba(8, 8, 11, .28) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 1px 0 0 rgba(255,255,255,.02) inset, 0 8px 30px rgba(0,0,0,.35);
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.nav.scrolled {
  background: linear-gradient(180deg, rgba(10, 10, 14, .62) 0%, rgba(6, 6, 9, .5) 100%);
  border-bottom-color: rgba(255, 255, 255, .08);
  backdrop-filter: blur(26px) saturate(200%);
  -webkit-backdrop-filter: blur(26px) saturate(200%);
}
.nav-inner {
  height: 100%; max-width: var(--max-width); margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 15px; letter-spacing: -.01em;
  color: var(--text);
}
.nav-brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav-brand .brand-tag {
  margin-left: 6px; padding: 2px 6px; font-size: 10px; font-weight: 600;
  background: var(--red-soft); color: var(--red);
  border-radius: 4px; letter-spacing: .05em;
}
.nav-menu {
  display: flex; gap: 28px; align-items: center; margin-left: auto;
}
.nav-menu a {
  font-size: 14px; color: var(--text-2); font-weight: 500;
  position: relative; padding: 6px 0;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
/* only direct top-level links get the static underline; sub-menu items have their own active pill style below */
.nav-menu > a.active::after,
.nav-menu > .has-sub > a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--red); border-radius: 1px;
  box-shadow: 0 0 8px var(--red-glow);
}
.nav-menu .has-sub { position: relative; }
/* invisible hover bridge so the dropdown stays open while moving from trigger to menu */
.nav-menu .has-sub::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 18px;
  background: transparent;
}
.nav-menu .sub-menu {
  position: absolute; top: calc(100% + 12px); left: -16px;
  min-width: 210px; padding: 10px;
  background: linear-gradient(180deg, rgba(22, 16, 20, .97) 0%, rgba(14, 10, 14, .99) 100%);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 100, 90, .42);
  border-radius: 14px;
  box-shadow:
    0 24px 60px -8px rgba(0, 0, 0, .75),
    0 8px 24px -6px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(255, 120, 110, .10) inset,
    0 1px 0 rgba(255, 255, 255, .08) inset;
  opacity: 0; pointer-events: none;
  transform: translateY(10px) scale(.96);
  transform-origin: top left;
  transition: opacity .28s ease, transform .4s var(--ease-spring);
  z-index: 100;
}
/* bottom red accent bar (moved from top to avoid clashing with trigger underline) */
.nav-menu .sub-menu::before {
  content: ''; position: absolute;
  bottom: -1px; left: 22px; right: 22px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 14px rgba(255, 58, 47, .6);
}
.nav-menu .has-sub:hover .sub-menu {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.nav-menu .sub-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; font-size: 14px;
  color: var(--text-2); border-radius: 9px;
  position: relative;
  transition: color .2s ease, background .25s ease, box-shadow .25s ease, transform .2s ease, padding-left .25s var(--ease-spring);
}
.nav-menu .sub-menu a::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--red); opacity: 0;
  box-shadow: 0 0 8px var(--red-glow);
  transition: opacity .2s ease, transform .2s var(--ease-spring);
}
/* Hover (non-active): light, transient — thin left accent + pulsing dot + slight nudge */
.nav-menu .sub-menu a:hover {
  background: linear-gradient(90deg, rgba(255, 58, 47, .16) 0%, rgba(255, 58, 47, .07) 60%, transparent 100%);
  color: #fff;
  padding-left: 20px;
  box-shadow: inset 2px 0 0 rgba(255, 58, 47, .7);
}
.nav-menu .sub-menu a:hover::before { opacity: 1; transform: scale(1.35); }
/* Active: persistent & weightier — filled red pill, bolder text, solid dot, no nudge */
.nav-menu .sub-menu a.active {
  background: linear-gradient(90deg, rgba(255, 58, 47, .42) 0%, rgba(255, 58, 47, .18) 55%, rgba(255, 58, 47, .04) 100%);
  color: #fff;
  font-weight: 600;
  padding-left: 18px;
  box-shadow:
    inset 3px 0 0 var(--red),
    inset 0 0 18px rgba(255, 58, 47, .14);
}
.nav-menu .sub-menu a.active::before { opacity: 1; transform: scale(1); }
/* Active + hover: keep the solid active treatment, only brighten and add glow */
.nav-menu .sub-menu a.active:hover {
  background: linear-gradient(90deg, rgba(255, 58, 47, .52) 0%, rgba(255, 58, 47, .24) 55%, rgba(255, 58, 47, .06) 100%);
  padding-left: 20px;
  box-shadow:
    inset 3px 0 0 var(--red),
    inset 0 0 22px rgba(255, 58, 47, .20),
    0 4px 14px -6px rgba(255, 58, 47, .40);
}
.nav-menu .sub-menu a.active:hover::before { transform: scale(1); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-btn-ghost {
  padding: 7px 14px; background: transparent;
  border: 1px solid var(--border-strong); border-radius: 8px;
  color: var(--text); font-size: 13px; font-weight: 500;
}
.nav-btn-ghost:hover { border-color: var(--red); color: var(--red); }
.nav-btn-primary {
  padding: 7px 16px; background: var(--red); border-radius: 8px;
  color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(239, 68, 68, .25);
}
.nav-btn-primary:hover { background: var(--red-2); transform: translateY(-1px); }
.nav-btn-primary.active, .nav-btn-ghost.active {
  border-color: var(--red);
  color: var(--red);
  background: rgba(255, 58, 47, .08);
}
.nav-btn-primary.active {
  background: var(--red);
  color: #fff;
}

/* logged-in user chip in nav */
.nav-user {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 6px 4px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.nav-user-name {
  font-size: 13px; color: var(--text);
  font-weight: 600; max-width: 140px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user .nav-btn-ghost {
  padding: 5px 12px; font-size: 12px;
}
.nav-mobile-user {
  font-size: 13px; color: var(--text-2);
  padding: 8px 0; border-bottom: 1px solid var(--border);
  word-break: break-all;
}

.nav-toggle { display: none; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; border-radius: 2px; }
.nav-mobile {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(8, 8, 11, .72); backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.08); padding: 20px 24px;
  flex-direction: column; gap: 14px;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 15px; color: var(--text-2); padding: 10px 0; border-bottom: 1px solid var(--border); }
.nav-mobile .nav-mobile-actions { display: flex; gap: 10px; margin-top: 8px; }
@media (max-width: 960px) {
  .nav-menu, .nav-right .nav-btn-ghost { display: none; }
  .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px 60px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 78%, rgba(255, 58, 47, .14), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(255, 58, 47, .06), transparent 45%);
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 60%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 60%, black 20%, transparent 75%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 3;
  max-width: var(--max-width); width: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center;
  text-align: left;
}
.hero-copy { max-width: 620px; }

/* badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(239,68,68,.3);
  background: rgba(239,68,68,.08);
  border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--red);
  margin-bottom: 28px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: heroIn .9s var(--ease-out-expo) .05s both, badgeFloat 4s ease-in-out 1.2s infinite;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(239,68,68,.6);
  animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); }
  70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* title with staggered line reveal */
.hero-title {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 900; letter-spacing: -.04em;
  line-height: 1.04; margin-bottom: 24px;
}
.hero-title .line { display: block; }
.hero-title .line.accent {
  color: var(--red);
  -webkit-text-fill-color: var(--red);
  text-shadow:
    0 0 28px rgba(239,68,52,.35),
    0 2px 18px rgba(239,68,52,.18);
}
.hero-title .line em {
  font-style: normal; position: relative;
  -webkit-text-fill-color: #fff;
  background: none;
  color: #fff;
  text-shadow: 0 2px 18px rgba(239,68,52,.25);
}

/* staggered entrance */
.hero-copy > * { opacity: 0; transform: translateY(24px); animation: heroIn .9s var(--ease-out-expo) forwards; }
.hero-copy > .hero-title { animation-delay: .15s; }
.hero-copy > .lead { animation-delay: .3s; }
.hero-copy > .hero-tags { animation-delay: .42s; }
.hero-copy > .hero-cta { animation-delay: .54s; }
.hero-copy > .hero-trust { animation-delay: .66s; }
.hero-copy > .hero-badge { opacity: 0; transform: translateY(24px); animation: heroIn .9s var(--ease-out-expo) .05s both, badgeFloat 4s ease-in-out 1.2s infinite; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero .lead {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-2); line-height: 1.7;
  max-width: 560px; margin-bottom: 22px;
}
.hero .lead strong {
  color: var(--text); font-weight: 600;
  background: rgba(255,255,255,.06);
  padding: 1px 7px; border-radius: 5px;
  margin: 0 2px; font-size: .92em;
}

/* pill tags */
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.ptag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 100px; color: var(--text-2);
  background: rgba(255,255,255,.02);
  transition: all .25s ease;
}
.ptag svg { opacity: .75; transition: opacity .25s ease, color .25s ease; }
.ptag:hover {
  border-color: rgba(255,58,47,.4);
  color: #fff; background: rgba(255,58,47,.08);
  transform: translateY(-2px);
}
.ptag:hover svg { opacity: 1; color: var(--red); }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.btn-ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-2px);
}
.hero-trust {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-2);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .check {
  color: var(--red); font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
}

/* ---- Right: floating demo card ---- */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 460px;
  padding: 24px 28px;
  perspective: 1200px;
}
.demo-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px;
  background: linear-gradient(160deg, rgba(22,22,28,.85), rgba(12,12,16,.78));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 0; overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,.7),
    0 0 0 1px rgba(239,68,68,.08),
    0 0 60px -10px rgba(239,68,68,.25);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: cardFloat 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes cardFloat {
  0%,100% { transform: translateY(0) rotateX(2deg) rotateY(-3deg); }
  50% { transform: translateY(-12px) rotateX(-1deg) rotateY(2deg); }
}
.demo-top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a42; display: block; }
.demo-dots i:nth-child(1) { background: #ff5f57; }
.demo-dots i:nth-child(2) { background: #febc2e; }
.demo-dots i:nth-child(3) { background: #28c840; }
.demo-url {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-2);
  background: rgba(0,0,0,.3); padding: 4px 10px; border-radius: 6px;
  margin-left: 4px; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-body { display: flex; gap: 14px; padding: 18px; }
.demo-cover {
  width: 110px; height: 76px; flex-shrink: 0;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.25) 100%),
    url('../images/demo-cover.png?v=20260824g') center center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.demo-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.15) 50%, transparent 70%);
  animation: coverShine 3.5s ease-in-out infinite;
}
@keyframes coverShine {
  0%,100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.demo-play {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 58, 47, .45);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; padding-left: 3px;
  box-shadow: 0 0 18px rgba(255, 58, 47, .5);
  z-index: 1;
  transition: transform .25s var(--ease-spring), background .25s;
}
.demo-cover:hover .demo-play {
  transform: scale(1.12);
  background: rgba(255, 58, 47, .6);
}
.demo-info { flex: 1; min-width: 0; padding-top: 2px; }
.demo-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-meta { font-size: 11px; color: var(--text-2); margin-bottom: 12px;
  font-family: var(--font-mono); }
.demo-progress {
  height: 5px; background: rgba(255,255,255,.08); border-radius: 100px; overflow: hidden;
  margin-bottom: 8px;
}
.demo-progress span {
  display: block; height: 100%; width: 73%;
  background: linear-gradient(90deg, #b91c1c, #ef4444, #ff6b6b);
  border-radius: 100px;
  box-shadow: 0 0 10px rgba(239,68,68,.6);
  position: relative; overflow: hidden;
  animation: progressGrow 2.4s var(--ease-out-expo) .4s both;
}
.demo-progress span::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: progShine 2s linear infinite;
}
@keyframes progressGrow { from { width: 0; } to { width: 73%; } }
@keyframes progShine {
  from { transform: translateX(-100%); } to { transform: translateX(200%); }
}
.demo-stats { display: flex; justify-content: space-between; font-size: 11px; }
.demo-stats .speed { color: var(--red); font-family: var(--font-mono); font-weight: 600;
  text-shadow: 0 0 12px rgba(239,68,68,.5); }
.demo-stats .pct { color: var(--text-2); font-family: var(--font-mono); }
.demo-list {
  padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.dl-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 12px; color: var(--text-2);
  background: rgba(255,255,255,.02);
}
.dl-row .ic {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.dl-row.done .ic { background: rgba(40,200,64,.15); color: #28c840; }
.dl-row.active {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.2);
  color: #fff;
}
.dl-row.active .ic { background: var(--red); color: #fff; animation: dlBlink 1.2s ease-in-out infinite; }
@keyframes dlBlink { 0%,100%{opacity:1} 50%{opacity:.4} }
.dl-row em { margin-left: auto; font-style: normal; color: var(--text-2); font-size: 11px; font-family: var(--font-mono); }
.dl-row.active em { color: var(--red); }

/* floating chips around card */
.float-chip {
  position: absolute; z-index: 3;
  padding: 7px 13px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  background: rgba(15,15,20,.85);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  white-space: nowrap;
}
.fc1 { top: 4%; left: 2%; color: #fb7299; border-color: rgba(251,114,153,.35); animation: chipFloat 5s ease-in-out infinite; }
.fc2 { top: 44%; right: -10px; color: #ff5252; border-color: rgba(255,82,82,.35); animation: chipFloat 5s ease-in-out .8s infinite; }
.fc3 { bottom: 8%; left: 6%; color: #ff6b8a; border-color: rgba(255,107,138,.35); animation: chipFloat 5s ease-in-out 1.6s infinite; }
@keyframes chipFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* responsive: stack on smaller screens */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { margin: 0 auto; max-width: 640px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-tags, .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { min-height: 400px; order: -1; max-width: 380px; margin: 0 auto; width: 100%; }
  .demo-card { max-width: 360px; }
  .float-chip.fc1 { left: -2%; }
  .float-chip.fc2 { right: -2%; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: all .25s ease; cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, .35);
}
.btn-primary:hover {
  background: var(--red-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(239, 68, 68, .5);
}
.btn-secondary {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--red);
  color: var(--red);
}
.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); }
.btn-lg { padding: 16px 30px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Cards ---- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .3s ease;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(239, 68, 68, .35);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4), 0 0 30px rgba(239, 68, 68, .08);
}
.card-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.card-icon {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--red-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14px; line-height: 1.7; }
.card .meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 16px;
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; font-size: 11px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 100px; color: var(--text-2);
}
.chip-red { background: var(--red-soft); border-color: rgba(239, 68, 68, .25); color: var(--red); }
.chip-green { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .3); color: #10b981; }

/* ---- Stat tiles ---- */
.stat-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.stat-tile {
  text-align: left;
  padding: 28px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.stat-tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .5;
}
.stat-tile .num {
  font-family: var(--font-mono);
  font-size: 48px; font-weight: 700; line-height: 1;
  letter-spacing: -.02em;
}
.stat-tile .num .unit { font-size: 24px; color: var(--red); margin-left: 4px; }
.stat-tile .label { font-size: 13px; color: var(--text-2); margin-top: 10px; }
.stat-tile .sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---- CTA banner ---- */
.cta-banner {
  position: relative;
  margin: 60px auto;
  max-width: var(--max-width);
  padding: 56px 48px;
  background: linear-gradient(135deg, rgba(239, 68, 68, .12) 0%, rgba(220, 38, 38, .06) 100%);
  border: 1px solid rgba(239, 68, 68, .25);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(239, 68, 68, .18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(239, 68, 68, .12), transparent 50%);
  z-index: 0;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(22px, 3vw, 32px); font-weight: 800;
  margin-bottom: 12px;
}
.cta-banner p { color: var(--text-2); max-width: 520px; margin: 0 auto 28px; }
.cta-banner .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.cta-banner .note { font-size: 12px; color: var(--text-3); }

/* ---- Grids ---- */
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---- Page header (sub-pages) ---- */
.page-header {
  padding: 140px 24px 56px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at center top, rgba(239, 68, 68, .14), transparent 60%);
}
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 14px;
}
.page-header .lead {
  color: var(--text-2);
  max-width: 720px; margin: 0 auto;
  font-size: clamp(14px, 1.5vw, 17px);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  max-width: var(--max-width); margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px; color: var(--text-2);
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-3); }
.breadcrumb .current { color: var(--text); }

/* ---- Tables ---- */
.table-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data thead th {
  text-align: left;
  padding: 14px 18px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}
table.data tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface); }
table.data .site {
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
table.data .site-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: inherit; text-decoration: none;
  padding: 4px 10px 4px 0;
  border-radius: 6px;
  transition: color .2s ease, background .2s ease, transform .2s var(--ease-out-expo);
}
table.data .site-link:hover {
  color: #fff;
  background: rgba(239, 68, 68, .08);
  transform: translateX(2px);
}
table.data .site-link:hover .badge {
  background: rgba(239, 68, 68, .22);
  border-color: rgba(239, 68, 68, .55);
  color: #fff;
}
table.data .site-link::after {
  content: '↗';
  font-size: 12px;
  color: var(--red);
  opacity: 0;
  transform: translate(-3px, -1px);
  transition: opacity .2s ease, transform .2s var(--ease-out-expo);
  text-decoration: none;
}
table.data .site-link:hover::after {
  opacity: 1;
  transform: translate(0, -2px);
}
table.data .badge {
  display: inline-block; padding: 2px 8px;
  font-size: 11px; font-weight: 600;
  border-radius: 4px; background: var(--red-soft);
  color: var(--red); border: 1px solid rgba(239, 68, 68, .25);
}
table.data .badge.gold { background: rgba(245, 158, 11, .1); color: var(--gold); border-color: rgba(245, 158, 11, .3); }
table.data .badge.gray { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
table.data code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  background: var(--bg-3);
  border-radius: 4px;
  color: var(--text-2);
}

/* ---- Accordion / FAQ ---- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item.open { border-color: rgba(239, 68, 68, .35); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px; font-weight: 600;
  font-family: inherit; text-align: left;
  background: transparent; color: var(--text);
  border: none; outline: none;
  border-radius: var(--radius-lg);
  transition: background .2s, color .2s;
}
.faq-q:hover { background: var(--surface); color: #fff; }
.faq-q .toggle,
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; font-weight: 400;
  transition: transform .35s var(--ease-spring, cubic-bezier(.34,1.56,.64,1)), background .2s;
}
.faq-q:hover .toggle,
.faq-q:hover .faq-icon { background: rgba(239,68,68,.2); }
.faq-item.open .toggle,
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  padding: 0 24px;
  color: var(--text-2);
  font-size: 14px; line-height: 1.75;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 1200px; padding: 0 24px 22px; }
.faq-a ul, .faq-a ol { padding-left: 22px; margin: 10px 0; }
.faq-a li { list-style: disc; margin-bottom: 4px; }
.faq-a strong { color: var(--text); }

/* ---- Two-column with sidebar ---- */
.with-sidebar {
  display: grid; gap: 32px;
  grid-template-columns: 240px 1fr;
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 900px) { .with-sidebar { grid-template-columns: 1fr; } .sidebar { position: static !important; } }
.sidebar {
  position: sticky; top: 88px; align-self: start;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.sidebar h4 {
  font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 12px; padding: 0 8px;
}
.sidebar a {
  display: block; padding: 8px 12px;
  font-size: 13px; color: var(--text-2);
  border-radius: 6px; margin-bottom: 2px;
  transition: all .15s;
}
.sidebar a:hover, .sidebar a.active {
  background: var(--red-soft);
  color: var(--red);
}

/* ---- Architecture diagram ---- */
.arch-layer {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 16px;
  position: relative;
  display: grid; gap: 16px;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
}
.arch-layer:hover { border-color: rgba(239, 68, 68, .35); }
.arch-layer .lvl {
  font-family: var(--font-mono); font-weight: 700;
  color: var(--red); font-size: 18px;
  border-right: 1px solid var(--border);
  padding-right: 16px; text-align: center;
}
.arch-layer h3 { font-size: 16px; margin-bottom: 4px; }
.arch-layer .stack { font-size: 12px; color: var(--text-2); margin-bottom: 4px; font-family: var(--font-mono); }
.arch-layer .files { font-size: 12px; color: var(--text-3); }
.arch-layer .desc { font-size: 13px; color: var(--text-2); }
@media (max-width: 720px) { .arch-layer { grid-template-columns: 60px 1fr; } .arch-layer .files { grid-column: 1 / -1; } }

/* ---- Module blocks (long-form docs) ---- */
.module {
  margin-bottom: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.module:last-child { border-bottom: none; }
.module h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.module h2 .mod-no {
  font-family: var(--font-mono); font-size: 13px;
  padding: 4px 10px; background: var(--red-soft);
  color: var(--red); border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, .25);
}
.module .lead {
  color: var(--text-2); max-width: 700px;
  margin-bottom: 28px;
}
.sub-block {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--bg-2);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.sub-block h4 {
  font-size: 15px; margin-bottom: 8px;
  color: var(--text);
}
.sub-block p, .sub-block ul { color: var(--text-2); font-size: 14px; line-height: 1.75; }
.sub-block ul { padding-left: 20px; }
.sub-block li { list-style: disc; margin-bottom: 4px; }
.sub-block code, .module code {
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 2px 6px; background: var(--bg-3);
  border-radius: 4px; color: var(--red);
  border: 1px solid var(--border);
}
.pre-block {
  margin: 16px 0;
  padding: 16px 20px;
  background: #08080c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 12.5px;
  color: #d1d5db;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}

/* ---- Tags for files ---- */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--font-mono); font-size: 11px;
  padding: 3px 8px; background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px; color: var(--text-2);
}

/* ---- Two-col download cards ---- */
.download-cards {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.download-card {
  position: relative;
  padding: 32px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
}
.download-card.recommended {
  border-color: rgba(239, 68, 68, .35);
  box-shadow: 0 0 32px rgba(239, 68, 68, .12);
}
.download-card .ribbon {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  background: var(--red); color: #fff;
  border-radius: 4px; letter-spacing: .08em;
}
.download-card .ribbon.gold { background: var(--gold); color: #000; }
.download-card .type-icon {
  width: 56px; height: 56px;
  background: var(--red-soft); color: var(--red);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.download-card h3 { font-size: 20px; margin-bottom: 8px; }
.download-card .ver-line {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-2); margin-bottom: 14px;
}
.download-card .ver-line strong { color: var(--text); }
.download-card p { color: var(--text-2); font-size: 14px; margin-bottom: 16px; }
.download-card ol {
  padding-left: 22px; margin-bottom: 24px;
}
.download-card ol li { list-style: decimal; color: var(--text-2); font-size: 13px; margin-bottom: 4px; }
.download-card .meta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.download-card .meta-grid div { font-size: 12px; }
.download-card .meta-grid div strong {
  display: block; color: var(--text); font-weight: 600;
  font-family: var(--font-mono); font-size: 13px;
  margin-bottom: 2px;
}
.download-card .meta-grid div span { color: var(--text-3); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.download-card .sha {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-3); word-break: break-all;
  background: var(--bg-3);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.download-card .actions { margin-top: auto; }

/* ---- Auth (login/register) — shared form controls ---- */
/* NOTE: .auth-page / .auth-card / .auth-logo styles live in the dedicated
   AUTH PAGES section further below. This block only covers form fields. */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: var(--text);
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text); font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}
.form-control::placeholder { color: var(--text-3); }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 18px; }
.form-row label { display: flex; align-items: center; gap: 6px; color: var(--text-2); cursor: pointer; }
.form-row a { color: var(--text-2); }
.form-row a:hover { color: var(--red); }
.bottom-link {
  text-align: center; font-size: 13px; color: var(--text-2);
  margin-top: 20px;
}
.bottom-link a { color: var(--red); font-weight: 600; }

.field-error, .form-error {
  color: #ff6b60; font-size: 12px; line-height: 1.5;
  min-height: 0; margin-top: 6px;
}
.form-error {
  text-align: center; margin: -6px 0 14px;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(255, 58, 47, .08);
  border: 1px solid rgba(255, 58, 47, .22);
  display: none;
}
.form-error:not(:empty) { display: block; }

.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; background: transparent;
  color: var(--text-3); cursor: pointer; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s ease, background .2s ease;
}
.pwd-toggle:hover { color: var(--red); background: rgba(255,255,255,.04); }

.link-red { color: var(--text-2); }
.link-red:hover { color: var(--red); }

.remember { user-select: none; }

/* step indicator */
.auth-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 0 0 22px;
}
.auth-steps .dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.05); color: var(--text-3);
  border: 1px solid var(--border);
  transition: all .3s var(--ease-spring);
}
.auth-steps .dot.active {
  background: var(--red); color: #fff; border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(255,58,47,.15);
}
.auth-steps .dot.done { background: rgba(255,58,47,.2); color: var(--red); border-color: rgba(255,58,47,.4); }
.auth-steps .bar { width: 32px; height: 2px; background: var(--border); border-radius: 2px; }
.auth-steps .bar.done { background: var(--red); }

.step { display: none; animation: fadeUp .4s var(--ease-out-expo); }
.step.active { display: block; }

.code-input {
  letter-spacing: 8px; text-align: center;
  font-family: var(--mono); font-size: 20px; font-weight: 600;
}
.resend-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-3); margin-top: 10px;
}
.resend-row button {
  background: none; border: none; color: var(--red);
  cursor: pointer; padding: 0; font-size: 12px; font-weight: 600;
}
.resend-row button:disabled { color: var(--text-3); cursor: not-allowed; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,24,.95); color: #fff;
  padding: 12px 20px; border-radius: 10px;
  font-size: 13px; z-index: 9999;
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s var(--ease-spring);
  max-width: 90vw;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(34,197,94,.4); }
.toast.error   { border-color: rgba(255,58,47,.4); }

/* ---- Footer ---- */
.footer {
  padding: 56px 24px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; gap: 36px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand p { color: var(--text-2); font-size: 13px; line-height: 1.7; max-width: 320px; }
.footer h5 {
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 14px;
}
.footer ul li { margin-bottom: 8px; }
.footer a { color: var(--text-2); font-size: 13px; }
.footer a:hover { color: var(--red); }
.footer-bar {
  max-width: var(--max-width); margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: var(--text-3);
}

/* ---- Misc utilities ---- */
.text-red { color: var(--red); }
.text-mute { color: var(--text-2); }
.text-mono { font-family: var(--font-mono); }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.divider { border-top: 1px solid var(--border); margin: 32px 0; }

/* ---- Star ratings (perf) ---- */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.stars .off { color: var(--text-3); }

/* ---- Page transition ---- */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ---- Scroll progress bar ---- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  z-index: 200; transition: width .05s linear;
  width: 0;
  box-shadow: 0 0 6px var(--red-glow);
}

/* ---- Hero & Page media backgrounds (AI-generated) ---- */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; z-index: 0; }
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}
/* Dark vignette on ALL sides so tadpoles emerge from the dark edges,
   while keeping the image visible in the central band. */
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    /* bottom-right watermark/AI-signature cover */
    radial-gradient(ellipse 38% 28% at 100% 100%, rgba(5,5,7,1) 0%, rgba(5,5,7,.9) 45%, rgba(5,5,7,0) 100%),
    /* LEFT: image melts into pure black so tadpoles swim out of dark */
    linear-gradient(90deg, #050507 0%, rgba(5,5,7,.88) 8%, rgba(5,5,7,.5) 18%, rgba(5,5,7,0) 32%),
    /* RIGHT: same */
    linear-gradient(270deg, #050507 0%, rgba(5,5,7,.88) 8%, rgba(5,5,7,.5) 18%, rgba(5,5,7,0) 32%),
    /* TOP: subtle */
    linear-gradient(180deg, rgba(5,5,7,.55) 0%, rgba(5,5,7,0) 22%),
    /* BOTTOM: blend into body bg */
    linear-gradient(0deg, #050507 0%, rgba(5,5,7,.7) 22%, rgba(5,5,7,0) 55%);
  z-index: 2;
  pointer-events: none;
}

.ph-media { position: absolute; inset: 0; z-index: 0; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.ph-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 45% 38% at 100% 100%, rgba(5,5,7,1) 0%, rgba(5,5,7,.98) 45%, rgba(5,5,7,.7) 72%, rgba(5,5,7,0) 100%),
    linear-gradient(180deg, rgba(5,5,7,.45) 0%, rgba(5,5,7,.2) 60%, #050507 100%);
  z-index: 1;
}
.page-header > *:not(.ph-media), .auth-page > *:not(.ph-media) { position: relative; z-index: 1; }

/* ============================================================
   INTERACTION & MOTION SYSTEM
   Buttons · cards · titles · nav · cursor spotlight · reveals
   ============================================================ */

/* Smooth global easing for a premium, spring-like feel */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Buttons: shimmer sweep + glow pulse + active press ---- */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out-expo),
              box-shadow .35s var(--ease-out-expo),
              background .3s ease, color .3s ease, border-color .3s ease;
  will-change: transform;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left .7s var(--ease-out-expo);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn-primary { animation: btnPulse 3s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(239,68,68,.35); }
  50% { box-shadow: 0 6px 30px rgba(239,68,68,.55); }
}
.btn-primary:hover { animation: none; }
.btn:active { transform: translateY(0) scale(.97) !important; }
.btn-secondary:active, .btn-ghost:active { transform: scale(.97) !important; }

/* ---- Cards: 3D tilt glow tracked by mouse (JS sets --mx/--my) ---- */
.card {
  transform-style: preserve-3d;
  transition: transform .4s var(--ease-out-expo),
              border-color .4s ease, box-shadow .4s ease;
}
.card::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(239,68,68,.16), transparent 60%
  );
  opacity: 0; transition: opacity .4s ease;
}
.card:hover::after { opacity: 1; }
.card.tilt { transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-3px); }

/* ---- Stat tiles: same glow tracking, stronger top accent ---- */
.stat-tile { transition: transform .4s var(--ease-out-expo), border-color .4s ease; }
.stat-tile:hover { transform: translateY(-4px); border-color: rgba(239,68,68,.4); }
.stat-tile .num { transition: transform .4s var(--ease-spring); }
.stat-tile:hover .num { transform: scale(1.06); }

/* ---- Hero title: solid crimson with glow (no fake gradient shimmer) ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordUp .9s var(--ease-out-expo) forwards;
}
@keyframes wordUp { to { transform: translateY(0); } }

/* ---- Section titles: animated red underline ---- */
.section-title { position: relative; display: inline-block; }
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: -10px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  transition: width .8s var(--ease-out-expo);
}
.section-title.in-view::after { width: 100%; }

/* ---- Nav links: fast elastic underline (all top-level links, incl. dropdown parent) ---- */
.nav-menu > a,
.nav-menu > .has-sub > a {
  overflow: visible;
}
.nav-menu > a::before,
.nav-menu > .has-sub > a::before {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--red); border-radius: 2px;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .32s cubic-bezier(.22, 1.4, .36, 1);
  box-shadow: 0 0 10px var(--red-glow), 0 0 4px var(--red-glow);
  pointer-events: none;
}
/* underline on direct hover, on active page, and while its dropdown is open */
.nav-menu > a:hover::before,
.nav-menu > .has-sub:hover > a::before,
.nav-menu > a.active::before,
.nav-menu > .has-sub > a.active::before {
  transform: scaleX(1); transform-origin: left center;
}
/* hide the old static active underline (::after) on top-level links */
.nav-menu > a.active::after,
.nav-menu > .has-sub > a.active::after { display: none; }

/* ---- Dropdown: elastic spring (base transform defined above) ---- */
.nav-menu .sub-menu {
  transform-origin: top left;
}

/* ---- Global cursor spotlight (follows mouse over body) ---- */
.cursor-spotlight {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(239,68,68,.07) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity .4s ease;
  opacity: 0;
  mix-blend-mode: screen;
}
body.has-cursor .cursor-spotlight { opacity: 1; }
@media (hover: none) { .cursor-spotlight { display: none; } }

/* ---- Scroll reveal with stagger (enhanced fade-up) ---- */
.fade-up {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.fade-up.in { opacity: 1; transform: none; }
.grid-2 > .fade-up:nth-child(2),
.grid-3 > .fade-up:nth-child(2),
.stat-grid > .fade-up:nth-child(2) { transition-delay: .1s; }
.grid-2 > .fade-up:nth-child(3),
.grid-3 > .fade-up:nth-child(3),
.stat-grid > .fade-up:nth-child(3) { transition-delay: .2s; }
.grid-3 > .fade-up:nth-child(4) { transition-delay: .3s; }

/* ---- Floating idle motion for hero badges/icons ---- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.hero-trust { animation: floatY 5s ease-in-out infinite; }
.card-icon { transition: transform .5s var(--ease-spring); }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.1); }

/* ---- FAQ: smoother elastic open ---- */
.faq-item .toggle { transition: transform .4s var(--ease-spring); }
.faq-item.open .toggle { transform: rotate(45deg); }

/* ---- CTA button shimmer ring ---- */
.cta-banner .btn-primary { animation: btnPulse 3s ease-in-out infinite; }

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
  .reveal-word > span { transform: none; }
}

/* ============================================================
   HOMEPAGE INTERACTION ENHANCEMENTS (added)
   ============================================================ */

/* ---- Eyebrow entrance: red dot draws in ---- */
.eyebrow {
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo);
}
.eyebrow.in-view { opacity: 1; transform: translateY(0); }
.eyebrow::before {
  transform: scale(0);
  transition: transform .4s var(--ease-spring) .2s;
}
.eyebrow.in-view::before { transform: scale(1); }

/* ---- CTA banner entrance ---- */
.cta-banner {
  opacity: 0; transform: translateY(40px) scale(.98);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.cta-banner.in-view { opacity: 1; transform: translateY(0) scale(1); }
.cta-banner.in-view h2 { animation: ctaTitleIn .8s var(--ease-spring) .15s both; }
.cta-banner.in-view p  { animation: ctaTitleIn .8s var(--ease-spring) .25s both; }
.cta-banner.in-view .actions { animation: ctaTitleIn .8s var(--ease-spring) .35s both; }
@keyframes ctaTitleIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Card hover: lift + red border glow ---- */
.card {
  transition: transform .35s var(--ease-spring), box-shadow .35s ease,
              border-color .35s ease, background .35s ease;
}
.card.tilt {
  transform: perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0)) translateY(-4px);
  transition: transform .1s linear, box-shadow .35s ease, border-color .35s ease;
}
.card::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%),
              rgba(255,58,47,.10), transparent 40%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card:hover {
  border-color: rgba(255,58,47,.35);
  box-shadow: 0 18px 50px -12px rgba(255,58,47,.25),
              0 0 0 1px rgba(255,58,47,.12);
}

/* ---- Stat tile hover: red edge glow + spotlight ---- */
.stat-tile {
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-spring), border-color .35s ease, box-shadow .35s ease;
}
.stat-tile::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%),
              rgba(255,58,47,.10), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.stat-tile:hover::before { opacity: 1; }
.stat-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255,58,47,.4);
  box-shadow: 0 14px 36px -10px rgba(255,58,47,.3);
}
.stat-tile .num { transition: color .3s ease; }
.stat-tile:hover .num { color: var(--red); }

/* ---- Chip bounce ---- */
.chip {
  transition: transform .25s var(--ease-spring), background .25s ease,
              border-color .25s ease, color .25s ease;
}
.chip:hover {
  background: var(--red-soft);
  border-color: rgba(255,58,47,.4);
  color: var(--red);
}

/* ---- Button arrow slide ---- */
.btn { position: relative; overflow: hidden; }
.btn-arrow {
  display: inline-flex; align-items: center;
  margin-left: 2px;
  transition: transform .3s var(--ease-spring);
}
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary .btn-arrow svg { filter: drop-shadow(0 0 6px rgba(255,255,255,.4)); }

/* ---- Button ripple ---- */
.btn-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: scale(0); pointer-events: none;
  animation: ripple .6s ease-out forwards;
}
@keyframes ripple {
  to { transform: scale(2.4); opacity: 0; }
}
.btn-secondary .btn-ripple, .btn-ghost .btn-ripple {
  background: rgba(255,58,47,.25);
}

/* ---- Magnetic button override: don't break existing hover translate ---- */
.btn-primary, .btn-secondary {
  transition: transform .25s var(--ease-spring), background .25s ease,
              box-shadow .25s ease, border-color .25s ease, color .25s ease;
}

/* ---- Hero CTA buttons: stronger glow on hover ---- */
.hero-cta .btn-primary {
  box-shadow: 0 6px 24px rgba(255,58,47,.4), 0 0 0 0 rgba(255,58,47,.5);
  animation: heroBtnPulse 2.8s ease-in-out infinite;
}
.hero-cta .btn-primary:hover {
  animation: none;
  box-shadow: 0 12px 36px rgba(255,58,47,.55), 0 0 0 4px rgba(255,58,47,.12);
}
@keyframes heroBtnPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(255,58,47,.4), 0 0 0 0 rgba(255,58,47,.45); }
  50%      { box-shadow: 0 6px 24px rgba(255,58,47,.4), 0 0 0 10px rgba(255,58,47,0); }
}

/* ---- Hero trust badges ---- */
.hero-trust span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-3);
}
.hero-trust .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(34,197,94,.15); color: #22c55e;
  font-size: 10px; font-weight: 700;
}

/* ---- Float chip reset for JS parallax ---- */
.float-chip {
  transition: transform .3s ease-out, box-shadow .3s ease, border-color .3s ease;
  will-change: transform;
}
.float-chip:hover {
  border-color: rgba(255,58,47,.5);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

/* ---- Hero badge animate in ---- */
.hero-badge.animate-in {
  animation: badgeIn .7s var(--ease-spring) both;
}
@keyframes badgeIn {
  from { opacity: 0; transform: translateY(-12px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Section title underline already has in-view; ensure base state ---- */
.section-title { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo); }
.section-title.in-view { opacity: 1; transform: translateY(0); }

/* ---- Section desc fade with title ---- */
.section-desc {
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--ease-out-expo) .1s, transform .7s var(--ease-out-expo) .1s;
}
.section-title.in-view ~ .section-desc,
.section-title.in-view + .section-desc { opacity: 1; transform: translateY(0); }

/* ---- Card icon pop ---- */
.card-icon {
  transition: transform .4s var(--ease-spring), box-shadow .3s ease, background .3s ease;
}
.card:hover .card-icon {
  transform: rotate(-8deg) scale(1.12);
  box-shadow: 0 0 0 4px rgba(255,58,47,.12);
}

/* ---- Scroll-linked progress bar thicker + gradient ---- */
#scroll-progress {
  height: 3px !important;
  background: linear-gradient(90deg, var(--red), #ff7a6b, var(--red)) !important;
  box-shadow: 0 0 12px rgba(255,58,47,.6);
}

/* ============================================================
   AUTH PAGES — crab logo on top, cursor-following red border glow
   Pattern ported from SupperSeek border-glow.css (proven in production).
   ============================================================ */

/* Page wrapper */
.auth-page {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  overflow: hidden;
  background: #050507;
}

/* Background image layer */
.auth-page .ph-media img {
  opacity: .85;
  object-position: center;
}
.auth-page .ph-media::after {
  background:
    /* Dark plate directly behind the card for readability.
       Sized slightly smaller than the card so red light bleeds around edges. */
    radial-gradient(ellipse 22% 28% at 50% 46%, rgba(5,5,7,.88) 0%, rgba(5,5,7,.72) 50%, rgba(5,5,7,.3) 80%, transparent 100%),
    /* Outer vignette: keeps corners/edges pure black so the radial burst blends out */
    radial-gradient(ellipse 70% 55% at 50% 50%, transparent 35%, rgba(5,5,7,.55) 70%, #050507 100%),
    linear-gradient(180deg, rgba(5,5,7,.3) 0%, rgba(5,5,7,.15) 40%, rgba(5,5,7,.5) 100%);
}

/* ---- Card wrapper — SupperSeek-style border glow ----
   Outer wrapper is transparent (no backdrop-filter) so the masked ::after
   ring renders cleanly at corners. The inner surface carries the dark bg
   and blur, clipped by its own border-radius + overflow:hidden for
   perfectly smooth anti-aliased corners. */
.auth-card {
  --edge-proximity: 0;
  --cursor-angle: 0deg;
  --edge-sensitivity: 30;
  --color-sensitivity: 50;

  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 1.5px;
  /* Static red-tinted border ring — always visible so the card edge reads clearly */
  background: rgba(255, 58, 47, .18);
  isolation: isolate;
  z-index: 1;
  box-shadow:
    /* Outer drop shadows for depth */
    0 1px 2px rgba(0,0,0,.25),
    0 4px 8px rgba(0,0,0,.3),
    0 12px 24px rgba(0,0,0,.35),
    0 24px 48px rgba(0,0,0,.4),
    0 40px 80px rgba(0,0,0,.45),
    /* Soft red outer glow so the card lifts off the background */
    0 0 40px -8px rgba(255, 58, 47, .15);
}

/* The conic-gradient border ring — background-image is written by JS into
   --auth-glow-bg to avoid var()-inside-conic-gradient() browser quirks.
   mask-composite: exclude clips it to a 1.5px ring. */
.auth-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background-image: var(--auth-glow-bg, none);
  background-origin: border-box;
  background-clip: border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  transition: opacity .25s ease-out;
  pointer-events: none;
  z-index: 3;
}

/* Outer glow — tight, concentrated halo only at the highlight peak.
   Small spread + light blur so it reads as a small glow spot, not a
   broad diffuse band around the whole card. */
.auth-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 23px;
  padding: 4px;
  background-image: var(--auth-glow-bg, none);
  background-origin: border-box;
  background-clip: border-box;
  filter: blur(4px);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)) * 0.7);
  transition: opacity .2s ease-out;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

/* Slow fade-out when cursor leaves */
.auth-card:not(:hover)::after,
.auth-card:not(:hover)::before {
  opacity: 0;
  transition: opacity .75s ease-in-out;
}

/* Visible dark surface — carries backdrop blur, clipped by its own
   border-radius for perfectly smooth corners (no mask artifacts). */
.auth-card-inner {
  position: relative;
  z-index: 1;
  padding: 40px 36px 36px;
  border-radius: 18.5px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(22,18,26,.94) 0%, rgba(10,8,14,.97) 100%);
  backdrop-filter: blur(25px) saturate(140%);
  -webkit-backdrop-filter: blur(25px) saturate(140%);
  /* Static inner border — clearly visible red outline at rest */
  box-shadow:
    inset 0 0 0 1px rgba(255, 58, 47, .22),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* Crab logo — enlarged, centered on top */
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  width: 100%;
}
.auth-logo > img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  /* drop-shadow follows the PNG alpha edge — the glow hugs the crab silhouette */
  animation: authCrabGlow 4s ease-in-out infinite;
}
/* Breathing edge-glow: two stacked drop-shadows pulse outward then contract.
   drop-shadow traces the transparent-pixel outline of the crab PNG. */
@keyframes authCrabGlow {
  0%, 100% {
    filter:
      drop-shadow(0 0 6px rgba(255, 58, 47, .35))
      drop-shadow(0 0 14px rgba(255, 58, 47, .18));
  }
  50% {
    filter:
      drop-shadow(0 0 14px rgba(255, 58, 47, .65))
      drop-shadow(0 0 32px rgba(255, 58, 47, .35))
      drop-shadow(0 0 56px rgba(255, 58, 47, .15));
  }
}
.auth-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 24px rgba(255,58,47,.45);
}
.auth-brand .brand-dot {
  color: var(--red);
  margin: 0 2px;
}
.auth-card-inner h1 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 6px;
}
.auth-card-inner .sub {
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 28px;
}

/* Mobile */
@media (max-width: 520px) {
  .auth-card-inner { padding: 32px 22px 28px; }
  .auth-logo > img { width: 76px; height: 76px; }
  .auth-brand { font-size: 19px; letter-spacing: 1.5px; }
}

/* ============================================================
   USER MENU — avatar + name + dropdown (logged-in state)
   ============================================================ */
.user-menu {
  position: relative;
  display: inline-flex;
}
.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 100px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.user-menu-btn:hover {
  background: rgba(255,58,47,.08);
  border-color: rgba(255,58,47,.25);
}
.user-menu-btn.active {
  background: rgba(255,58,47,.12);
  border-color: rgba(255,58,47,.35);
}
.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #b91c1c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-avatar-letter {
  text-transform: uppercase;
}
.user-name-text {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-chevron {
  transition: transform .2s ease;
  color: var(--text-3);
  flex-shrink: 0;
}
.user-menu-btn.active .user-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: linear-gradient(180deg, rgba(22,16,20,.97), rgba(14,10,14,.99));
  border: 1px solid rgba(255,90,80,.28);
  border-radius: 14px;
  padding: 8px;
  box-shadow:
    0 4px 12px rgba(0,0,0,.4),
    0 24px 60px rgba(0,0,0,.5),
    0 0 40px rgba(255,58,47,.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transition: opacity .2s ease, transform .2s var(--ease-spring), visibility .2s;
  z-index: 200;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
/* Hover bridge */
.user-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 14px;
}
.dropdown-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #b91c1c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.dropdown-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dropdown-user-text {
  min-width: 0;
}
.dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-email {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 4px 0;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  transition: all .15s ease;
  cursor: pointer;
}
.dropdown-item:hover {
  background: rgba(255,58,47,.1);
  color: #fff;
}
.dropdown-item:hover svg {
  color: var(--red);
}
.dropdown-item svg {
  color: var(--text-3);
  transition: color .15s;
}
.dropdown-danger {
  color: #ff6b60;
}
.dropdown-danger:hover {
  background: rgba(255,58,47,.15);
  color: #ff8a7a;
}
.dropdown-danger svg {
  color: #ff6b60;
}

/* ---- Modals (avatar + username) ---- */
.um-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: umFadeIn .2s ease;
}
@keyframes umFadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes umSlideUp { from { opacity:0; transform:translateY(24px) scale(.96) } to { opacity:1; transform:translateY(0) scale(1) } }
.um-modal {
  background: linear-gradient(180deg, rgba(22,18,26,.98), rgba(10,8,14,.99));
  border: 1px solid rgba(255,58,47,.15);
  border-radius: 18px;
  width: 440px;
  max-width: calc(100vw - 32px);
  padding: 28px 32px 20px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 60px rgba(255,58,47,.08);
  animation: umSlideUp .25s var(--ease-spring);
}
.um-modal-sm { width: 380px; }
.um-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .2s;
}
.um-modal-close:hover {
  background: rgba(255,58,47,.12);
  color: var(--red);
}
.um-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  text-align: center;
}
.um-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.um-avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #b91c1c);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid rgba(255,58,47,.2);
  flex-shrink: 0;
}
.um-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.um-avatar-letter {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
}
.um-crop-container {
  width: 100%;
  max-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}
.um-crop-container img { max-width: 100%; display: block; }
.um-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 18px;
  cursor: pointer;
  border: 2px dashed rgba(255,255,255,.1);
  border-radius: 12px;
  transition: all .25s;
  background: rgba(255,255,255,.02);
}
.um-upload-area:hover {
  border-color: rgba(255,58,47,.4);
  background: rgba(255,58,47,.05);
}
.um-upload-area svg { color: rgba(255,255,255,.3); transition: color .25s; }
.um-upload-area:hover svg { color: var(--red); }
.um-upload-text { font-size: 14px; color: var(--text-2); font-weight: 500; }
.um-upload-hint { font-size: 11px; color: var(--text-3); }
.um-error {
  font-size: 12px;
  color: #ff6b60;
  text-align: center;
  min-height: 0;
  line-height: 1.4;
}
.um-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.um-btn {
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  border: none;
}
.um-btn-cancel {
  background: rgba(255,255,255,.06);
  color: var(--text-2);
}
.um-btn-cancel:hover { background: rgba(255,255,255,.1); color: #fff; }
.um-btn-save {
  background: linear-gradient(135deg, var(--red), #b91c1c);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,58,47,.3);
}
.um-btn-save:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,58,47,.4);
}
.um-btn-save:disabled { opacity: .4; cursor: not-allowed; }
.um-btn-save.loading {
  opacity: .7;
  pointer-events: none;
  color: transparent;
  position: relative;
}
.um-btn-save.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: umSpin .6s linear infinite;
}
@keyframes umSpin { to { transform: rotate(360deg) } }

/* Username form */
.um-form-group { width: 100%; }
.um-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.um-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.um-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,58,47,.15);
}
.um-input::placeholder { color: var(--text-3); }

/* Mobile */
@media (max-width: 520px) {
  .user-name-text { display: none; }
  .user-menu-btn { padding: 4px; }
  .um-modal { padding: 24px 20px 18px; }
}

/* ============================================================
   FEEDBACK PAGE — e-commerce style contact/support
   ============================================================ */
.page-hero {
  padding: 120px 0 40px;
  text-align: center;
  position: relative;
}
.page-hero .eyebrow { justify-content: center; }
.page-title {
  font-size: 40px; font-weight: 800; letter-spacing: -.5px;
  margin: 14px 0 10px; color: #fff;
}
.page-desc {
  font-size: 15px; color: var(--text-2); max-width: 520px;
  margin: 0 auto; line-height: 1.7;
}
.section-tight { padding-top: 20px; padding-bottom: 80px; }

.feedback-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .feedback-layout { grid-template-columns: 1fr; }
}

/* Left card */
.fb-card {
  background: linear-gradient(180deg, rgba(18,14,20,.95), rgba(10,8,14,.97));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 34px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.5);
}
.fb-card-head { margin-bottom: 28px; }
.fb-card-head h2 {
  font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.fb-card-head p {
  font-size: 13px; color: var(--text-2); line-height: 1.6;
}

.fb-form { display: flex; flex-direction: column; gap: 20px; }
.fb-field label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 7px; color: var(--text);
}

/* ---- Custom category select ---- */
.fb-select {
  position: relative;
  width: 100%;
}
.fb-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.fb-select-trigger:hover {
  border-color: rgba(255,58,47,.4);
}
.fb-select.open .fb-select-trigger,
.fb-select-trigger:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,58,47,.15);
}
.fb-select-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.fb-opt-icon {
  color: var(--red);
  flex-shrink: 0;
  opacity: .8;
}
.fb-opt-label { font-size: 14px; }
.fb-select-chevron {
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform .25s var(--ease-spring);
}
.fb-select.open .fb-select-chevron {
  transform: rotate(180deg);
}

/* Dropdown menu — dark surface with red border, matches nav sub-menu style */
.fb-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(22,16,20,.98), rgba(12,9,15,.99));
  border: 1px solid rgba(255,90,80,.42);
  border-radius: 10px;
  padding: 6px;
  box-shadow:
    0 4px 8px rgba(0,0,0,.3),
    0 12px 32px rgba(0,0,0,.5),
    0 0 0 1px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top center;
  transition: opacity .18s ease, transform .22s var(--ease-spring), visibility .18s;
}
.fb-select.open .fb-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
/* Transparent bridge so the menu doesn't close when cursor crosses the gap */
.fb-select-menu::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
}
.fb-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.fb-option:hover {
  background: linear-gradient(90deg, rgba(255,58,47,.22), rgba(255,58,47,.06));
  color: #fff;
}
.fb-option:hover .fb-opt-icon { opacity: 1; }
.fb-option.selected {
  background: rgba(255,58,47,.12);
  color: #fff;
}
.fb-option.selected::after {
  content: '';
  margin-left: auto;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff3a2f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}
.fb-textarea {
  resize: vertical; min-height: 120px; line-height: 1.6;
  font-family: inherit;
}
.fb-char-count {
  text-align: right; font-size: 11px; color: var(--text-3);
  margin-top: 4px; font-family: var(--font-mono);
}
.fb-hint {
  font-size: 11px; color: var(--text-3); margin-top: 5px;
}

/* Upload zone */
.fb-upload-zone {
  border: 1.5px dashed rgba(255,58,47,.25);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .25s, background .25s;
  background: rgba(255,58,47,.03);
}
.fb-upload-zone:hover,
.fb-upload-zone.dragover {
  border-color: var(--red);
  background: rgba(255,58,47,.08);
}
.fb-upload-icon {
  color: var(--red); opacity: .7; margin-bottom: 10px;
  display: flex; justify-content: center;
}
.fb-upload-text {
  font-size: 14px; color: var(--text); margin-bottom: 4px;
}
.fb-upload-text strong { color: var(--red); font-weight: 600; }
.fb-upload-text kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-bottom-width: 2px;
  border-radius: 4px;
  line-height: 1.5;
}
.fb-upload-hint {
  font-size: 11px; color: var(--text-3);
}

/* Thumbnails */
.fb-thumbs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.fb-thumb {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
}
.fb-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  cursor: zoom-in;
  transition: transform .2s;
}
.fb-thumb img:hover { transform: scale(1.06); }
.fb-thumb-remove {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.7);
  color: #fff; border: none;
  font-size: 14px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.fb-thumb-remove:hover { background: var(--red); }

.fb-submit { margin-top: 4px; }

/* Success state */
.fb-success {
  flex-direction: column; align-items: center; text-align: center;
  padding: 40px 20px;
}
.fb-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(34,197,94,.1);
  border: 2px solid rgba(34,197,94,.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.fb-success h3 {
  font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.fb-success p {
  font-size: 14px; color: var(--text-2); line-height: 1.6;
  margin-bottom: 24px; max-width: 340px;
}

/* Sidebar cards */
.fb-sidebar { display: flex; flex-direction: column; gap: 18px; }
.fb-side-card {
  background: linear-gradient(180deg, rgba(18,14,20,.92), rgba(10,8,14,.94));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 18px;
}
.fb-side-card h3 {
  font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.fb-side-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px rgba(255,58,47,.5);
}
.fb-contact-row {
  display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start;
}
.fb-contact-row:last-child { margin-bottom: 0; }
.fb-contact-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,58,47,.08);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fb-contact-row strong {
  display: block; font-size: 13px; color: #fff; font-weight: 600;
  margin-bottom: 2px;
}
.fb-contact-row span {
  font-size: 12px; color: var(--text-2); line-height: 1.5;
}

/* Quick links */
.fb-quick-links { display: flex; flex-direction: column; gap: 6px; }
.fb-quick-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13px; color: var(--text-2);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.fb-quick-link:hover {
  background: rgba(255,58,47,.06);
  color: #fff;
}
.fb-quick-link svg { color: var(--text-3); transition: color .2s; }
.fb-quick-link:hover svg { color: var(--red); }

/* Tips card */
.fb-tips ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.fb-tips li {
  font-size: 12px; color: var(--text-2); line-height: 1.6;
  padding-left: 18px; position: relative;
}
.fb-tips li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); opacity: .6;
}
.fb-tips strong { color: #fff; font-weight: 600; }

/* Lightbox */
.fb-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
}
.fb-lightbox.open { display: flex; }
.fb-lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  object-fit: contain;
}
.fb-lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.fb-lightbox-close:hover { background: rgba(255,255,255,.2); }

@media (max-width: 520px) {
  .fb-card { padding: 28px 20px; }
  .page-title { font-size: 30px; }
  .fb-thumb { width: 68px; height: 68px; }
}

/* ---- Download page hero (matches other page-header style) ---- */
.page-hero--download {
  padding: 140px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center top, rgba(239, 68, 68, .14), transparent 60%);
}
.page-hero--download > .container { position: relative; z-index: 1; }
.page-hero--download h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.page-hero--download .lead {
  color: var(--text-2);
  font-size: 17px;
}
.page-hero--download .ph-media img {
  opacity: .55;
  object-position: center center;
}
.page-hero--download .ph-media::after {
  background:
    linear-gradient(180deg, rgba(5,5,7,.55) 0%, rgba(5,5,7,.08) 35%, rgba(5,5,7,.08) 65%, rgba(5,5,7,.65) 100%);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.download-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s var(--ease-spring), box-shadow .25s;
}
.download-card:hover {
  border-color: rgba(255,58,47,.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -12px rgba(255,58,47,.18);
}
.dl-icon {
  width: 60px; height: 60px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.download-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.dl-meta {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 14px;
}
.dl-desc {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.dl-specs {
  list-style: none;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.dl-specs li {
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 0;
}
.dl-specs li::before {
  content: '✓ ';
  color: var(--red);
  font-weight: 700;
}

.changelog-entry {
  padding: 20px 0;
}
.changelog-version {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}
.changelog-date {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 10px;
}
.changelog-entry ul {
  padding-left: 20px;
}
.changelog-entry li {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.9;
  list-style: disc;
}

/* ---- Feedback thread list (sidebar) ---- */
.fb-threads-card { padding-bottom: 18px; }
.fb-threads-empty {
  font-size: 13px; color: var(--text-3);
  line-height: 1.8; margin: 12px 0 4px;
}
.fb-thread-list {
  display: flex; flex-direction: column; gap: 8px;
  margin: 12px 0 10px;
  max-height: 340px; overflow-y: auto;
  padding-right: 4px;
}
.fb-thread-item {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
  font: inherit;
  transition: background .2s, border-color .2s, transform .15s;
}
.fb-thread-item:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateX(2px);
}
.fb-thread-dot {
  flex: 0 0 auto;
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 6px;
}
.fb-thread-dot.st-pending { background: var(--gold); box-shadow: 0 0 8px rgba(245,158,11,.6); }
.fb-thread-dot.st-replied { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.5); }
.fb-thread-dot.st-closed  { background: var(--text-3); }
.fb-thread-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fb-thread-subject {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fb-thread-meta { font-size: 11px; color: var(--text-3); }
.fb-thread-status {
  flex: 0 0 auto;
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 100px;
  margin-top: 2px;
}
.fb-thread-status.st-pending { background: rgba(245,158,11,.14); color: var(--gold); }
.fb-thread-status.st-replied { background: rgba(34,197,94,.14); color: #22c55e; }
.fb-thread-status.st-closed  { background: rgba(255,255,255,.06); color: var(--text-3); }
.fb-threads-hint { font-size: 11px; color: var(--text-3); text-align: center; }

/* ---- Feedback thread dialog ---- */
.fb-dlg-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.fb-dlg-overlay.open { display: flex; }
.fb-dlg {
  width: 100%; max-width: 640px;
  max-height: 86vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  overflow: hidden;
  animation: fbDlgIn .25s var(--ease-spring);
}
@keyframes fbDlgIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fb-dlg-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.fb-dlg-head-info { flex: 1; min-width: 0; }
.fb-dlg-head h3 {
  font-size: 16px; font-weight: 700; margin: 0 0 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fb-dlg-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.fb-dlg-status {
  font-size: 10px; font-weight: 600;
  padding: 2px 9px; border-radius: 100px;
}
.fb-dlg-status.st-pending { background: rgba(245,158,11,.14); color: var(--gold); }
.fb-dlg-status.st-replied { background: rgba(34,197,94,.14); color: #22c55e; }
.fb-dlg-status.st-closed  { background: rgba(255,255,255,.06); color: var(--text-3); }
.fb-dlg-close {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.fb-dlg-close:hover { background: var(--red-soft); color: var(--red); border-color: rgba(255,58,47,.3); }
.fb-dlg-msgs {
  flex: 1; overflow-y: auto;
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 30px;
}
.fb-dlg-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 40px 0; }
.fb-dlg-msg { display: flex; gap: 10px; max-width: 80%; align-items: flex-start; }
.fb-dlg-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.fb-dlg-msg.admin { align-self: flex-start; }
.fb-dlg-avatar {
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.fb-dlg-msg.user .fb-dlg-avatar { background: var(--red); }
.fb-dlg-msg.admin .fb-dlg-avatar { background: #890101; }
.fb-dlg-avatar.fb-dlg-avatar-img {
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  padding: 0;
}
.fb-dlg-msg-body { min-width: 0; display: flex; flex-direction: column; }
.fb-dlg-msg.user .fb-dlg-msg-body { align-items: flex-end; }
.fb-dlg-msg.admin .fb-dlg-msg-body { align-items: flex-start; }
.fb-dlg-msg-name { display: none; }
.fb-dlg-bubble {
  display: inline-block; text-align: left;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px; line-height: 1.65;
  word-break: break-word; white-space: normal;
}
.fb-dlg-msg.user .fb-dlg-bubble {
  background: #400e4e;
  border: 1px solid #000;
  border-top-right-radius: 5px;
  color: #fff;
}
.fb-dlg-msg.admin .fb-dlg-bubble {
  background: #0c3800;
  border: 1px solid #000;
  border-top-left-radius: 5px;
  color: var(--text);
}
.fb-dlg-msg-time { font-size: 10px; color: var(--text-3); margin-top: 5px; opacity: .7; }
.fb-dlg-input {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.fb-dlg-input textarea {
  flex: 1; resize: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  height: 44px;
  min-height: 44px;
  max-height: 82px;
  line-height: 24px;
  overflow-y: hidden;
  color: var(--text); font: inherit; font-size: 13.5px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.fb-dlg-input textarea:focus {
  border-color: rgba(255,58,47,.5);
  box-shadow: 0 0 0 3px rgba(255,58,47,.12);
}
.fb-dlg-input .btn { flex: 0 0 auto; padding: 10px 22px; }
.fb-dlg-closed {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  text-align: center; font-size: 13px; color: var(--text-3);
}

/* 对话气泡内图片 */
.fb-dlg-content {
  display: inline-flex; flex-direction: column; gap: 6px;
  max-width: 240px;
}
.fb-dlg-imgs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
}
.fb-dlg-msg.user .fb-dlg-content { align-items: flex-end; }
.fb-dlg-msg.admin .fb-dlg-content { align-items: flex-start; }
.fb-dlg-msg.user .fb-dlg-imgs {
  justify-content: flex-end;
  background: #000;
  border: 1px solid rgba(255,58,47,.35);
  transition: border-color .2s, box-shadow .2s;
}
.fb-dlg-msg.admin .fb-dlg-imgs {
  justify-content: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.fb-dlg-imgs:hover {
  border-color: rgba(255,58,47,.8);
  box-shadow: 0 0 0 2px rgba(255,58,47,.18), 0 0 18px rgba(255,58,47,.12);
}
/* 纯图片消息（无文字）时图片容器即为气泡 */
.fb-dlg-msg.user .fb-dlg-content:not(:has(.fb-dlg-bubble)) .fb-dlg-imgs {
  border-top-right-radius: 5px;
}
.fb-dlg-msg-img {
  width: 104px; height: 104px;
  border-radius: 8px;
  border: none;
  object-fit: cover; cursor: zoom-in;
  flex: 0 0 auto;
}
/* 单张图片时放大显示 */
.fb-dlg-imgs:has(.fb-dlg-msg-img:only-child) .fb-dlg-msg-img {
  width: 200px; height: 200px;
}

/* 待发送图片缩略条 */
.fb-dlg-pending {
  display: none; flex-wrap: wrap; gap: 8px;
  padding: 10px 20px 0;
}
.fb-dlg-pending-item { position: relative; width: 52px; height: 52px; }
.fb-dlg-pending-item img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border-strong);
}
.fb-dlg-pending-rm {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: #fff; border: none;
  font-size: 13px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}

/* 输入区图片按钮 */
.fb-dlg-imgbtn {
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s, background .2s;
}
.fb-dlg-imgbtn:hover { color: var(--red); border-color: rgba(255,58,47,.4); background: var(--red-soft); }
.fb-dlg-input.drag { border-top-color: rgba(255,58,47,.5); background: var(--red-soft); }
