/* ============================================================
   Component styles — public site
   ============================================================ */

/* ---- Header / nav ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 18, .72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad-accent);
  color: #041018;
  box-shadow: var(--glow-cyan);
  font-size: 1rem;
}
.brand span { color: var(--text); }
.brand span b { color: var(--cyan); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad-accent);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: none; color: var(--text);
  font-size: 1.4rem;
}

/* ---- Hero -------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--sp-9) var(--sp-8);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--sp-8);
  align-items: center;
}
.status-row {
  display: flex;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px var(--good);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero h1 { margin-bottom: var(--sp-5); }
.hero .lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 30rem;
  margin-bottom: var(--sp-6);
}
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

.hero-features {
  display: flex;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  flex-wrap: wrap;
}
.hero-feature {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: .9rem; color: var(--muted);
}
.hero-feature i { color: var(--cyan); }

/* Hero panel — the glass "console" */
.hero-panel {
  padding: var(--sp-5);
  border-radius: var(--r-xl);
}
.panel-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.panel-bar .lights { display: flex; gap: 6px; }
.panel-bar .lights i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.panel-bar .lights i:nth-child(1){ background:#ff5f57; }
.panel-bar .lights i:nth-child(2){ background:#febc2e; }
.panel-bar .lights i:nth-child(3){ background:#28c840; }
.panel-bar .label { font-family: var(--font-mono); font-size:.72rem; color: var(--faint); letter-spacing:.1em; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.stat-cell {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(34,211,238,.04);
  border: 1px solid var(--line);
}
.stat-cell .k {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ice);
  line-height: 1;
}
.stat-cell .v {
  display: block;
  margin-top: var(--sp-2);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.meter { margin-top: var(--sp-4); }
.meter-row { display:flex; justify-content:space-between; font-size:.78rem; color:var(--muted); margin-bottom:6px; }
.meter-track { height: 6px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 99px; background: var(--grad-accent); box-shadow: var(--glow-cyan); }

/* ---- Catalog grid ----------------------------------------- */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-5);
}
.mod-card { display: flex; flex-direction: column; }
.mod-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.mod-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.mod-card:hover .mod-thumb img { transform: scale(1.06); }
.mod-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,10,18,.85) 100%);
}
.mod-tag {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--ice);
  background: rgba(6,10,18,.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.mod-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.mod-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.mod-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.mod-rating {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: .85rem; color: var(--ice);
  white-space: nowrap;
}
.mod-rating i { color: var(--warn); }
.mod-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.mod-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.mod-downloads { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); }
.mod-downloads b { color: var(--muted); font-weight: 600; }

/* ---- Footer ------------------------------------------------ */
.site-footer {
  margin-top: var(--sp-9);
  border-top: 1px solid var(--line);
  background: rgba(10,17,32,.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-6);
  padding-block: var(--sp-7);
}
.footer-grid h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: var(--sp-4); font-family: var(--font-mono); }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-grid a { color: var(--muted); font-size: .92rem; transition: color .2s var(--ease); }
.footer-grid a:hover { color: var(--cyan); }
.footer-about p { color: var(--muted); font-size: .92rem; max-width: 26rem; margin-top: var(--sp-3); }
.footer-bottom {
  padding-block: var(--sp-4);
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--faint);
  font-size: .82rem;
  font-family: var(--font-mono);
}

/* ---- Forms (shared) ---------------------------------------- */
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { resize: vertical; min-height: 100px; }
.field-error { color: var(--bad); font-size: .8rem; margin-top: 6px; display: none; }
.field.has-error .input,
.field.has-error .textarea { border-color: var(--bad); }
.field.has-error .field-error { display: block; }

/* ---- Toast ------------------------------------------------- */
.toast-wrap {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5);
  z-index: 999; display: flex; flex-direction: column; gap: var(--sp-3);
}
.toast {
  min-width: 260px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: var(--sp-3);
  animation: toast-in .35s var(--ease);
}
.toast.ok    { border-left: 3px solid var(--good); }
.toast.error { border-left: 3px solid var(--bad); }
.toast i.ok    { color: var(--good); }
.toast i.error { color: var(--bad); }
@keyframes toast-in { from{opacity:0; transform: translateX(20px)} to{opacity:1; transform:none} }

/* ---- Reveal on scroll -------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6,10,18,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-4) var(--sp-5);
    transform: translateY(-120%);
    transition: transform .3s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-7); }
}

/* ---- FAQ --------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 820px; }
.faq-item { overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: none; border: none; color: var(--text);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  text-align: left;
}
.faq-q i { color: var(--cyan); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 var(--sp-5) var(--sp-5); color: var(--muted); font-size: .95rem; }

/* ---- Catalog controls -------------------------------------- */
.catalog-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap;
}
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 380px; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search-box .input { padding-left: 40px; }
.tag-filters { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.tag-chip {
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  transition: all .2s var(--ease);
}
.tag-chip:hover { border-color: var(--cyan); color: var(--text); }
.tag-chip.active {
  color: #041018;
  background: var(--grad-accent);
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

/* ---- Download page ----------------------------------------- */
.back-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--muted); font-size: .9rem; margin-bottom: var(--sp-5);
  transition: color .2s var(--ease);
}
.back-link:hover { color: var(--cyan); }
.download-card { overflow: hidden; }
.download-hero { position: relative; aspect-ratio: 21/9; }
.download-hero img { width: 100%; height: 100%; object-fit: cover; }
.download-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15,27,48,.95) 100%);
}
.download-hero .mod-tag { top: var(--sp-4); left: var(--sp-4); }
.download-body { padding: var(--sp-6); }
.download-meta {
  display: flex; gap: var(--sp-5); flex-wrap: wrap;
  padding-top: var(--sp-4); border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .82rem; color: var(--muted);
}
.download-meta i { margin-right: 6px; color: var(--cyan); }
.password-gate { padding: var(--sp-5); border-radius: var(--r-md); background: rgba(34,211,238,.03); border: 1px solid var(--line); }

/* ---- Legal page -------------------------------------------- */
.legal h3 { font-size: 1.1rem; margin: var(--sp-5) 0 var(--sp-2); }
.legal h3:first-child { margin-top: 0; }
.legal p { color: var(--muted); font-size: .95rem; margin-bottom: var(--sp-3); }

/* ---- Nav right cluster + theme toggle ---------------------- */
.nav-right { display: flex; align-items: center; gap: var(--sp-3); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(125,211,252,.05); border: 1px solid var(--line);
  color: var(--text); font-size: 1rem;
  transition: all .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--cyan); background: rgba(34,211,238,.08); transform: translateY(-1px); }
.theme-toggle i { transition: transform .4s var(--ease); }
.theme-toggle:hover i { transform: rotate(20deg); }

/* ---- Cursor glow ------------------------------------------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1;
  width: 380px; height: 380px; margin: -190px 0 0 -190px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(34,211,238,.10) 0%, rgba(59,130,246,.05) 35%, transparent 70%);
  opacity: .8; transition: opacity .3s var(--ease), width .3s var(--ease), height .3s var(--ease);
  will-change: transform;
}
.cursor-glow.active { opacity: 1; width: 460px; height: 460px; margin: -230px 0 0 -230px; }
[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(8,145,178,.10) 0%, rgba(37,99,235,.05) 35%, transparent 70%);
}

/* ---- Hero panel 3D parallax -------------------------------- */
.hero-grid { perspective: 1000px; }
.hero-panel { transition: transform .3s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* ---- Enhanced mod-card hover ------------------------------- */
.mod-card { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.mod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2), var(--glow-cyan); }

/* ---- Catalog: sort box + filter bar ------------------------ */
.sort-box { position: relative; display: flex; align-items: center; }
.sort-box i { position: absolute; left: 14px; color: var(--faint); pointer-events: none; z-index: 1; }
.sort-box .select { padding-left: 40px; min-width: 190px; cursor: pointer; }
.catalog-filterbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap;
}
.result-count { font-family: var(--font-mono); font-size: .82rem; color: var(--faint); white-space: nowrap; }
@media (max-width: 680px) {
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .sort-box .select { width: 100%; }
  .search-box { max-width: none; }
}

/* ---- Download: platform tabs ------------------------------- */
.platform-tabs { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.platform-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--bg-1); border: 1px solid var(--line); color: var(--muted);
  font-weight: 600; font-size: .92rem; transition: all .2s var(--ease);
}
.platform-tab i { font-size: 1.05rem; }
.platform-tab:hover { color: var(--text); border-color: var(--cyan); }
.platform-tab.active {
  color: #041018; background: var(--grad-accent); border-color: transparent; box-shadow: var(--glow-cyan);
}
[data-theme="light"] .platform-tab.active { color: #fff; }
.platform-panel { animation: fade-in .3s var(--ease); }
.platform-panel[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.platform-note { margin-top: var(--sp-3); font-size: .84rem; color: var(--faint); text-align: center; }
.platform-note i { color: var(--cyan); margin-right: 5px; }
.platform-lead { font-size: .92rem; color: var(--muted); margin-bottom: var(--sp-3); }

/* ---- Command box ------------------------------------------- */
.cmd-box {
  display: flex; align-items: stretch; gap: 0;
  background: #05070D; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; position: relative;
}
.cmd-box code {
  flex: 1; padding: 14px 16px; font-family: var(--font-mono); font-size: .82rem;
  color: var(--ice); overflow-x: auto; white-space: nowrap; line-height: 1.6;
}
.cmd-copy {
  flex-shrink: 0; width: 52px; border: none; border-left: 1px solid var(--line);
  background: var(--bg-2); color: var(--cyan); font-size: 1rem; transition: all .18s var(--ease);
}
.cmd-copy:hover { background: var(--bg-3); color: var(--ice); }

/* ---- macOS steps ------------------------------------------- */
.mac-steps {
  margin-top: var(--sp-4); padding: var(--sp-4);
  background: rgba(34,211,238,.04); border: 1px solid var(--line); border-radius: var(--r-md);
}
.mac-steps h4 { font-size: .92rem; margin-bottom: var(--sp-2); display: flex; align-items: center; gap: var(--sp-2); }
.mac-steps h4 i { color: var(--cyan); }
.mac-steps p { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ---- Scroll progress bar ----------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: var(--grad-sheen); transform: scaleX(0); transform-origin: 0 50%;
  box-shadow: var(--glow-cyan); pointer-events: none;
}

/* Card tilt: keep the shadow on hover, let JS own the transform */
.mod-card { transition: box-shadow .4s var(--ease), transform .2s var(--ease); transform-style: preserve-3d; }
.mod-card:hover { box-shadow: var(--shadow-2), var(--glow-cyan); }
.btn-primary { transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); }

/* ---- Download timer page ----------------------------------- */
.dl-timer-card { overflow: hidden; }
.dl-timer-hero { position: relative; aspect-ratio: 21/9; }
.dl-timer-hero img { width: 100%; height: 100%; object-fit: cover; }
.dl-timer-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, var(--bg-2) 100%); }
.dl-timer-body { padding: var(--sp-6); margin-top: -40px; position: relative; z-index: 1; }

.timer-ring { position: relative; width: 130px; height: 130px; margin: var(--sp-4) auto var(--sp-5); }
.timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 6; }
.timer-ring .ring-bg { stroke: var(--bg-3); }
.timer-ring .ring-fg { stroke: url(#grad); stroke-linecap: round; transition: stroke-dashoffset 1s linear; stroke: var(--cyan); filter: drop-shadow(0 0 6px rgba(34,211,238,.6)); }
.timer-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 2.6rem; font-weight: 600; color: var(--ice); }
.timer-ring.done .ring-fg { stroke: var(--good); filter: drop-shadow(0 0 8px rgba(52,211,153,.7)); }
.timer-ring.done .timer-num { color: var(--good); font-size: 2rem; }

.dl-status {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 10px 18px; border-radius: 99px; font-size: .88rem;
  background: rgba(34,211,238,.06); border: 1px solid var(--line); color: var(--muted);
  margin-bottom: var(--sp-5);
}
.dl-status i { color: var(--cyan); }
.skip-link { display: block; font-size: .86rem; color: var(--faint); transition: color .2s var(--ease); }
.skip-link:hover { color: var(--cyan); }
.skip-link b { color: var(--muted); }

/* ---- Mobile block page ------------------------------------- */
.mobile-block { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.mb-wrap { position: relative; width: 100%; max-width: 420px; }
.mb-glow {
  position: absolute; inset: -40px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(34,211,238,.18), transparent 65%);
  filter: blur(20px);
}
.mb-card {
  position: relative; z-index: 1; text-align: center;
  padding: 40px 28px;
  background: linear-gradient(180deg, rgba(15,27,48,.95), rgba(10,17,32,.95));
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}
.mb-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 28px; }
.mb-icon { position: relative; width: 96px; height: 96px; margin: 0 auto 24px; display: grid; place-items: center;
  border-radius: 24px; background: rgba(34,211,238,.06); border: 1px solid var(--line); }
.mb-icon > i { font-size: 2.6rem; background: var(--grad-sheen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mb-slash { position: absolute; right: -8px; bottom: -8px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-0); border: 1px solid var(--line); }
.mb-slash i { font-size: 1rem; color: var(--bad); }
.mb-card h1 { font-size: 1.7rem; margin-bottom: 12px; }
.mb-card > p { color: var(--muted); font-size: .95rem; line-height: 1.65; margin-bottom: 28px; }
.mb-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; text-align: left; }
.mb-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--bg-1); border: 1px solid var(--line); font-size: .9rem; color: var(--text); }
.mb-step i { width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; background: var(--grad-accent); color: #041018; font-family: var(--font-mono); }
.mb-step b { color: var(--ice); }
.mb-foot { font-size: .78rem; color: var(--faint); font-family: var(--font-mono); }
.mb-foot i { color: var(--good); margin-right: 5px; }

/* ---- Copy deterrent: disable selection & image saving (public) --- */
body:not(.admin-body) {
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
/* but keep inputs/textareas usable */
body:not(.admin-body) input,
body:not(.admin-body) textarea,
body:not(.admin-body) [contenteditable="true"],
body:not(.admin-body) code {
  -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;
}
body:not(.admin-body) img {
  -webkit-user-drag: none; user-drag: none; pointer-events: auto;
}

/* ---- Trust marquee (live activity ticker) ------------------ */
.trust-marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(10,17,32,.5); padding: 14px 0; position: relative;
}
.trust-marquee::before, .trust-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.trust-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.trust-marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-0), transparent); }
.marquee-track { display: inline-flex; gap: var(--sp-6); white-space: nowrap; animation: marquee 40s linear infinite; }
.trust-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.marquee-item b { color: var(--text); font-weight: 600; }
.marquee-item .mq-flag { font-size: 1.1rem; }
.marquee-item i { color: var(--good); font-size: .8rem; }

/* ---- Trust stats ------------------------------------------- */
.trust-section { padding-block: var(--sp-7); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.trust-stat { text-align: center; padding: var(--sp-5); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(15,27,48,.6), rgba(10,17,32,.6)); border: 1px solid var(--line); }
.ts-num { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600;
  background: var(--grad-sheen); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.ts-label { margin-top: var(--sp-2); font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 700px) { .trust-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Testimonials ------------------------------------------ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.testi-card { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.testi-stars { color: var(--warn); font-size: .82rem; display: flex; gap: 2px; }
.testi-text { color: var(--text); font-size: .95rem; line-height: 1.6; flex: 1; }
.testi-author { display: flex; align-items: center; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-accent); color: #041018; font-weight: 700; flex-shrink: 0; }
.testi-author b { display: block; font-size: .9rem; }
.testi-author span { font-size: .8rem; color: var(--faint); }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---- Guarantees -------------------------------------------- */
.guarantee-section { padding-top: 0; }
.guarantee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.guarantee { text-align: center; padding: var(--sp-6) var(--sp-5); border-radius: var(--r-lg);
  background: rgba(34,211,238,.03); border: 1px solid var(--line); }
.g-icon { width: 56px; height: 56px; margin: 0 auto var(--sp-4); border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; background: rgba(34,211,238,.08); color: var(--cyan); border: 1px solid var(--line); }
.guarantee h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.guarantee p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
@media (max-width: 800px) { .guarantee-grid { grid-template-columns: 1fr; } }

/* ---- Archive password box ---------------------------------- */
.archive-pass {
  margin-top: var(--sp-5); padding: var(--sp-4);
  background: rgba(251,191,36,.05); border: 1px solid var(--line); border-radius: var(--r-md);
}
.ap-label { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--warn); margin-bottom: var(--sp-3); }
.ap-box { display: flex; align-items: stretch; background: #05070D; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.ap-box code {
  flex: 1; padding: 12px 14px; font-family: var(--font-mono); font-size: 1rem; font-weight: 600;
  color: var(--ice); letter-spacing: .04em; overflow-x: auto; white-space: nowrap;
  -webkit-user-select: all; user-select: all;
}
.ap-copy { flex-shrink: 0; width: 52px; border: none; border-left: 1px solid var(--line); background: var(--bg-2); color: var(--warn); font-size: 1rem; transition: all .18s var(--ease); }
.ap-copy:hover { background: var(--bg-3); color: var(--ice); }
.ap-hint { font-size: .8rem; color: var(--faint); margin-top: var(--sp-2); }

/* ---- World map (public) ------------------------------------ */
.map-section { padding-top: 0; }
.map-card { padding: var(--sp-2); overflow: hidden; }
.world-map { width: 100%; aspect-ratio: 2 / 1; height: auto; min-height: 380px; }
.world-map svg { width: 100%; height: 100%; }
.jvm-tooltip {
  background: #0A1120 !important; border: 1px solid #1E3350 !important;
  border-radius: 10px !important; padding: 8px 12px !important;
  font-family: 'Inter', sans-serif !important; font-size: .82rem !important;
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.6) !important; color: #E8F0FA !important;
}
.jvm-zoom-btn { background: #16263F !important; border: 1px solid #1E3350 !important; color: #93A7C4 !important; border-radius: 6px !important; }
@media (max-width: 900px) { .world-map { aspect-ratio: 16 / 10; } }
@media (max-width: 680px) { .world-map { aspect-ratio: 4 / 3; min-height: 300px; } }

/* ---- Latest updates feed ----------------------------------- */
.updates-feed { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 820px; }
.update-item { display: flex; gap: 0; padding: 0; overflow: hidden; }
.update-line { width: 4px; flex-shrink: 0; background: var(--grad-accent); }
.update-content { padding: var(--sp-5); flex: 1; }
.update-top { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.update-tag {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .1em;
  padding: 4px 9px; border-radius: 5px; color: var(--ice);
  background: rgba(34,211,238,.1); border: 1px solid var(--line);
}
.update-tag.tag-new { color: var(--good); background: rgba(52,211,153,.1); }
.update-tag.tag-fix { color: var(--warn); background: rgba(251,191,36,.1); }
.update-date { font-family: var(--font-mono); font-size: .76rem; color: var(--faint); }
.update-title { font-size: 1.1rem; margin-bottom: 4px; }
.update-body { color: var(--muted); font-size: .9rem; }

/* ---- Favorite heart button --------------------------------- */
.mod-thumb { position: relative; }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: .95rem;
  background: rgba(6,10,18,.6); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: #fff; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.fav-btn:hover { background: rgba(6,10,18,.85); transform: scale(1.1); }
.fav-btn.active { color: #ff4d6d; border-color: #ff4d6d; }
.fav-btn.pop { animation: heart-pop .4s var(--ease); }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---- Search autosuggest ------------------------------------ */
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); overflow: hidden; max-height: 380px; overflow-y: auto;
}
.suggest-item {
  display: flex; align-items: center; gap: var(--sp-3); padding: 10px 14px;
  border-bottom: 1px solid var(--line); transition: background .15s var(--ease);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: rgba(34,211,238,.06); }
.suggest-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.suggest-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.suggest-main b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-meta { font-size: .76rem; color: var(--faint); font-family: var(--font-mono); }
.suggest-item > i { color: var(--faint); font-size: .8rem; }
.suggest-item:hover > i { color: var(--cyan); }

/* ---- Recently viewed --------------------------------------- */
.recent-viewed { margin-bottom: var(--sp-6); padding: var(--sp-4); background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.recent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.recent-head h3 { font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.recent-head h3 i { color: var(--cyan); }
.recent-clear {
  font-size: .8rem; color: var(--faint); cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 5px 12px; font-family: inherit; transition: all .15s var(--ease);
}
.recent-clear:hover { color: var(--bad); border-color: var(--bad); background: rgba(239,68,68,.06); }
.recent-row { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: 4px; }
.recent-card { flex-shrink: 0; width: 120px; }
.recent-card img { width: 120px; height: 68px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--line); }
.recent-card span { display: block; font-size: .8rem; margin-top: 6px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-card:hover span { color: var(--text); }

/* ============================================================
   Loading screen + language picker
   ============================================================ */
.loading-lock { overflow: hidden; }

.app-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 40%, #0F1B30, #060A12 70%);
  display: grid; place-items: center;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.app-loader.hide { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; animation: loader-in .5s var(--ease); }
@keyframes loader-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.loader-mark {
  width: 84px; height: 84px; margin: 0 auto var(--sp-4); border-radius: 22px;
  display: grid; place-items: center; font-size: 2.4rem; color: #041018;
  background: var(--grad-accent); box-shadow: var(--glow-cyan);
  animation: loader-pulse 1.4s var(--ease) infinite;
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,211,238,.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 30px 6px rgba(34,211,238,.25); }
}
.loader-name { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: var(--sp-5); }
.loader-bar { width: 220px; height: 6px; margin: 0 auto var(--sp-3); border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.loader-fill { height: 100%; width: 0; background: var(--grad-sheen); border-radius: 99px; box-shadow: var(--glow-cyan); }
.loader-pct { font-family: var(--font-mono); font-size: .82rem; color: var(--faint); }

/* language picker */
.lang-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(6,10,18,.85); backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 24px;
  transition: opacity .35s var(--ease);
}
.lang-overlay.hide { opacity: 0; }
.lang-modal {
  width: 100%; max-width: 460px; text-align: center;
  padding: 40px 32px; border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(15,27,48,.95), rgba(10,17,32,.95));
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
  animation: loader-in .4s var(--ease);
}
.lang-mark {
  width: 60px; height: 60px; margin: 0 auto var(--sp-4); border-radius: 16px;
  display: grid; place-items: center; font-size: 1.6rem; color: #041018;
  background: var(--grad-accent); box-shadow: var(--glow-cyan);
}
.lang-modal h2 { font-size: 1.5rem; margin-bottom: var(--sp-5); }
.lang-grid { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.lang-opt {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  padding: 13px 16px; border-radius: var(--r-md);
  background: var(--bg-1); border: 1px solid var(--line); color: var(--text);
  font-size: .98rem; font-family: inherit; transition: all .18s var(--ease);
}
.lang-opt:hover { border-color: var(--cyan); background: rgba(34,211,238,.05); }
.lang-opt.active { border-color: var(--cyan); background: rgba(34,211,238,.08); box-shadow: var(--glow-cyan); }
.lang-flag { font-size: 1.5rem; line-height: 1; }
.lang-name { flex: 1; text-align: left; font-weight: 500; }
.lang-opt i { opacity: 0; color: var(--cyan); transition: opacity .18s var(--ease); }
.lang-opt.active i { opacity: 1; }
.lang-continue { width: 100%; }

/* language switcher in header */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  font-size: .82rem; font-family: var(--font-mono); transition: all .18s var(--ease);
}
.lang-switch:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---- World map: glowing pulsing markers -------------------- */
.jvm-marker.glow-dot {
  fill: #22D3EE;
  filter: drop-shadow(0 0 6px rgba(34,211,238,.9));
  animation: dot-pulse 2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; r: 5px; filter: drop-shadow(0 0 5px rgba(34,211,238,.8)); }
  50% { opacity: .75; r: 7px; filter: drop-shadow(0 0 12px rgba(34,211,238,1)); }
}

/* ---- Card cursor spotlight --------------------------------- */
.mod-card { position: relative; }
.mod-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(34,211,238,.12), transparent 60%);
}
.mod-card:hover::before { opacity: 1; }
