/* =====================================================================
   TIME MACHINE INDICATOR — v2.0 DESIGN SYSTEM
   Cinematic Futuristic 3D
   ===================================================================== */

/* ===== TOKENS ===== */
:root {
  /* Surface */
  --bg-0:   #02040b;
  --bg-1:   #050810;
  --bg-2:   #0a1020;
  --bg-3:   #0d1426;
  --panel:  #0d1426;
  --panel-2:#111a30;
  --panel-3:#16203c;
  --line:        rgba(80, 160, 255, 0.10);
  --line-strong: rgba(80, 160, 255, 0.28);
  --line-bright: rgba(94, 224, 255, 0.45);

  /* Color */
  --blue:      #3da9ff;
  --blue-2:    #1a7bff;
  --blue-3:    #6cc4ff;
  --blue-glow: rgba(61, 169, 255, 0.4);
  --cyan:      #5ee0ff;
  --cyan-glow: rgba(94, 224, 255, 0.5);
  --gold:      #f5c85a;
  --gold-2:    #d9a82c;
  --gold-3:    #fff2c0;
  --gold-soft: rgba(245, 200, 90, 0.15);
  --gold-glow: rgba(245, 200, 90, 0.4);
  --silver:    #c9d4e6;
  --magenta:   #c061ff;
  --magenta-glow: rgba(192, 97, 255, 0.4);

  /* Text */
  --text:      #e8eef7;
  --text-dim:  #94a2bb;
  --text-mute: #5d6781;
  --text-deep: #3a4356;

  /* Signal */
  --red:    #ff5566;
  --red-2:  #ff7a8a;
  --green:  #2dd683;
  --green-2:#5fe6a4;
  --orange: #ffae3a;

  /* Geometry */
  --radius-s: 10px;
  --radius:   18px;
  --radius-l: 28px;
  --radius-xl:40px;

  /* Type */
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;

  /* Motion */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.5, 0, 0.75, 0);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft:  cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* Triple-layer horizontal scroll lockdown — iOS Safari is picky */
  overflow-x: hidden;
  overflow-x: clip; /* modern: doesn't create scroll container, safer than hidden */
  max-width: 100vw;
  width: 100%;
}
body {
  background: var(--bg-1);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
  /* Disable touch-pan-x on body so swipe right does nothing */
  touch-action: pan-y;
  overscroll-behavior-x: none;
}
/* Safety net: every section is a width-capped container */
body > * { max-width: 100vw; }
section { max-width: 100vw; overflow-x: clip; }
/* Images & video never push width over container */
img, video, iframe, svg { max-width: 100%; height: auto; }
/* Marquee/carousel containers MUST clip their overflowing children */
.ticker, [class*="marquee"] {
  overflow: hidden;
  max-width: 100vw;
}

/* ===== CINEMATIC BACKDROP ===== */
.cosmos {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cosmos::before {
  /* aurora gradient */
  content: '';
  position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 80% 60% at 15% -10%, rgba(61, 169, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(245, 200, 90, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(94, 224, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(192, 97, 255, 0.10), transparent 60%);
  filter: blur(20px);
  animation: drift 22s ease-in-out infinite alternate;
}
.cosmos::after {
  /* grid */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(80, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 30%, transparent 90%);
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-2%, 1%) scale(1.04); }
  100% { transform: translate(2%, -1%) scale(1); }
}

/* star field */
.stars {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.stars::before, .stars::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 75% 18%, rgba(94,224,255,0.5), transparent),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(245,200,90,0.5), transparent),
    radial-gradient(1px 1px at 55% 50%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 35% 65%, rgba(94,224,255,0.4), transparent),
    radial-gradient(2px 2px at 80% 40%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.4), transparent);
  background-size: 100% 100%;
  animation: twinkle 9s ease-in-out infinite;
}
.stars::after {
  background-image:
    radial-gradient(1px 1px at 40% 12%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 65% 80%, rgba(94,224,255,0.45), transparent),
    radial-gradient(2px 2px at 15% 55%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 95% 35%, rgba(245,200,90,0.4), transparent);
  animation: twinkle 14s ease-in-out infinite reverse;
  opacity: 0.5;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* cursor glow follower */
.cursor-glow {
  position: fixed;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,169,255,0.16), transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  mix-blend-mode: screen;
  opacity: 0;
}
@media (hover: hover) {
  .cursor-glow { opacity: 1; }
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}
.container.narrow { max-width: 980px; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* ===== NAV ===== */
.tmi-nav {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(5, 8, 16, 0.72);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.tmi-nav.scrolled {
  background: rgba(5, 8, 16, 0.88);
  border-bottom-color: var(--line-strong);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-weight: 800; letter-spacing: 0.05em;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: transform .3s var(--ease-spring);
}
.logo:hover { transform: scale(1.04); }
.logo svg {
  width: 36px; height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px var(--blue-glow));
}
.logo .name { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo .name .top { color: var(--silver); font-size: 13px; }
.logo .name .bot { color: var(--gold); font-size: 9px; letter-spacing: 0.32em; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-family: var(--mono);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease-spring), box-shadow .25s;
  box-shadow: 0 8px 28px -8px rgba(61, 169, 255, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-200%) skewX(-20deg);
  transition: transform .8s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(61, 169, 255, 0.9), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn:hover::before { transform: translateX(200%) skewX(-20deg); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-3) 0%, var(--gold) 50%, var(--gold-2) 100%);
  color: #1c1408;
  box-shadow: 0 8px 28px -8px rgba(245, 200, 90, 0.6), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-gold:hover { box-shadow: 0 16px 40px -10px rgba(245, 200, 90, 0.9), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-ghost {
  background: rgba(13, 20, 38, 0.5);
  backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 30px rgba(94, 224, 255, 0.2);
}
.btn-lg { padding: 16px 30px; font-size: 14px; }
.btn-sm { padding: 9px 16px; font-size: 12px; }

/* Pricing-specific Basic plan button — clearly a button, but secondary to Pro.
   More prominent than btn-ghost, less aggressive than full solid btn. */
.btn-pricing-basic {
  background: linear-gradient(135deg, rgba(94, 224, 255, 0.18) 0%, rgba(61, 169, 255, 0.10) 100%);
  color: #5ee0ff;
  border: 1.5px solid rgba(94, 224, 255, 0.55);
  box-shadow:
    0 6px 20px -4px rgba(61, 169, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 0 14px rgba(94, 224, 255, 0.3);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.btn-pricing-basic::before {
  background: linear-gradient(135deg, transparent 30%, rgba(94, 224, 255, 0.35) 50%, transparent 70%);
}
.btn-pricing-basic:hover {
  background: linear-gradient(135deg, rgba(94, 224, 255, 0.32) 0%, rgba(61, 169, 255, 0.20) 100%);
  border-color: #5ee0ff;
  color: #ffffff;
  box-shadow:
    0 12px 32px -6px rgba(61, 169, 255, 0.6),
    0 0 24px rgba(94, 224, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}
.btn-pricing-basic:active { transform: translateY(0); }

/* ===== SECTIONS ===== */
section { padding: 110px 0; position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(94, 224, 255, 0.05);
  backdrop-filter: blur(6px);
}
.section-label::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--text);
}
.section-title .gradient-blue {
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 40%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title .gradient-gold {
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-3) 30%, var(--gold) 70%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title .gradient-red {
  background: linear-gradient(135deg, #ffffff 0%, #ff9090 60%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  color: var(--text-dim);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 660px;
  margin-bottom: 60px;
  line-height: 1.65;
}
.section-sub b { color: var(--text); font-weight: 600; }

.center { text-align: center; }
.center .section-label { margin-left: auto; margin-right: auto; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ===== GLASS CARD BASE ===== */
.glass {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 40%),
    rgba(13, 20, 38, 0.5);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(94,224,255,0.06), transparent 50%);
  pointer-events: none;
}

/* ===== PILL ===== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
  background: rgba(61, 169, 255, 0.08);
}
.pill.cyan  { color: var(--cyan);   border-color: rgba(94,224,255,0.35); background: rgba(94,224,255,0.08); }
.pill.gold  { color: var(--gold);   border-color: rgba(245,200,90,0.35); background: rgba(245,200,90,0.08); }
.pill.green { color: var(--green);  border-color: rgba(45,214,131,0.35); background: rgba(45,214,131,0.08); }
.pill.red   { color: var(--red);    border-color: rgba(255,85,102,0.35); background: rgba(255,85,102,0.08); }
.pill.orange{ color: var(--orange); border-color: rgba(255,174,58,0.35); background: rgba(255,174,58,0.08); }
.pill.magenta{ color: var(--magenta); border-color: rgba(192,97,255,0.35); background: rgba(192,97,255,0.08); }

/* ===== STATUS DOT ===== */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ===== FOOTER ===== */
.tmi-footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 36px;
  margin-top: 60px;
  position: relative;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent, rgba(5,8,16,0.6));
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
.foot-brand .logo { margin-bottom: 18px; }
.foot-brand p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 320px;
}
.foot-brand .badges {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 18px;
}
.foot-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 11px; font-size: 13.5px; }
.foot-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  transition: color .2s;
}
.foot-col a:hover { color: var(--cyan); }
.foot-col li .ico { color: var(--gold); margin-right: 6px; font-size: 11px; }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-mute);
}
.foot-bottom .signal {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green);
}
.foot-disclaimer {
  margin-top: 28px;
  padding: 22px;
  background: rgba(255, 174, 58, 0.04);
  border: 1px solid rgba(255, 174, 58, 0.15);
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-mute);
  line-height: 1.75;
  text-align: center;
}
.foot-disclaimer b { color: var(--orange); }

/* ===== UTILITY ===== */
.muted { color: var(--text-mute); }
.dim   { color: var(--text-dim); }
.brand-blue  { color: var(--blue); }
.brand-cyan  { color: var(--cyan); }
.brand-gold  { color: var(--gold); }
.brand-green { color: var(--green); }
.brand-red   { color: var(--red); }
.text-mono { font-family: var(--mono); }
.text-display { font-family: var(--display); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  section { padding: 80px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .container { padding: 0 22px; }
  .cursor-glow { display: none; }
}
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .nav-inner { padding: 12px 0; }
  .logo svg { width: 32px; height: 32px; }
  .logo .name .top { font-size: 12px; }
  .logo .name .bot { font-size: 8.5px; }
  .btn { padding: 10px 18px; font-size: 12px; }
}

/* ===== LOGO IMG (shared) ===== */
.tmi-logo-img {
  width: 36px; height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px var(--blue-glow));
  object-fit: contain;
  display: block;
}
.tmi-svg-logo {
  width: 36px; height: 36px;
  filter: drop-shadow(0 0 10px var(--blue-glow));
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--magenta));
  box-shadow: 0 0 12px var(--cyan-glow);
  z-index: 100;
  transition: width 0.1s linear;
}

/* ===== TOOLTIPS / TAGS ===== */
.tag-mini {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.tag-mini.live { background: rgba(255,85,102,0.15); color: var(--red); border: 1px solid rgba(255,85,102,0.35); }
.tag-mini.beta { background: rgba(192,97,255,0.15); color: var(--magenta); border: 1px solid rgba(192,97,255,0.35); }
.tag-mini.new  { background: rgba(45,214,131,0.15); color: var(--green); border: 1px solid rgba(45,214,131,0.35); }
.tag-mini::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* ===== TELEGRAM BADGE & GRADIENT ===== */
.tg-grad {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
}
.tg-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(42, 171, 238, 0.12);
  color: #2AABEE;
  border: 1px solid rgba(42, 171, 238, 0.35);
}
.tg-badge svg { width: 12px; height: 12px; }

/* ===== PROMO LAUNCH BOTTOM STICKY BAR ===== */
/* Slides up from bottom when user scrolls past hero. Eye-catching but dismissible. */
.promo-bottom {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 140%);
  width: calc(100% - 32px);
  max-width: 720px;
  z-index: 90;
  background:
    linear-gradient(180deg, rgba(13,20,38,0.92), rgba(8,12,24,0.96));
  border: 1px solid rgba(245, 200, 90, 0.45);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(245, 200, 90, 0.08),
    0 0 40px rgba(245, 200, 90, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 14px 18px;
  transition: transform 0.6s var(--ease-spring), opacity 0.4s var(--ease-out);
  opacity: 0;
  pointer-events: none;
}
.promo-bottom.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
/* Animated gold border pulse */
.promo-bottom::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(120deg,
    rgba(245, 200, 90, 0.7) 0%,
    rgba(255, 174, 58, 0.3) 25%,
    rgba(245, 200, 90, 0.7) 50%,
    rgba(255, 174, 58, 0.3) 75%,
    rgba(245, 200, 90, 0.7) 100%);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: promoBorderShift 4s linear infinite;
  pointer-events: none;
}
@keyframes promoBorderShift {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.promo-bottom .inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
}
.promo-bottom .pb-fire {
  font-size: 26px;
  animation: pbBounce 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 174, 58, 0.6));
}
@keyframes pbBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-3px) scale(1.08); }
}
.promo-bottom .pb-content { min-width: 0; }
.promo-bottom .pb-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.promo-bottom .pb-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pbPulse 1.2s ease-in-out infinite;
}
@keyframes pbPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.6); }
}
.promo-bottom .pb-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  white-space: nowrap;
}
.promo-bottom .pb-old {
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 85, 102, 0.7);
}
.promo-bottom .pb-new {
  color: var(--gold);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 0 16px rgba(245, 200, 90, 0.5);
}
.promo-bottom .pb-save {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--green);
  background: rgba(45, 214, 131, 0.12);
  border: 1px solid rgba(45, 214, 131, 0.3);
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

/* Countdown clock */
.promo-bottom .pb-clock {
  display: flex;
  gap: 4px;
  align-items: center;
}
.promo-bottom .pb-clock .pbc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 38px;
}
.promo-bottom .pb-clock .pbc .v {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(245, 200, 90, 0.25);
  border-radius: 8px;
  padding: 5px 8px 4px;
  letter-spacing: 0.04em;
  line-height: 1;
  min-width: 36px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.promo-bottom .pb-clock .pbc .l {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.promo-bottom .pb-clock .sep {
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 16px;
  padding-bottom: 12px;
  align-self: center;
  animation: pbBlink 1s steps(2) infinite;
}
@keyframes pbBlink {
  50% { opacity: 0.2; }
}

.promo-bottom .pb-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #FFD56B, #F5B038);
  color: #1a1208;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(245, 200, 90, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.promo-bottom .pb-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(245, 200, 90, 0.5), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* Close button */
.promo-bottom .pb-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(13, 20, 38, 0.95);
  border: 1px solid rgba(245, 200, 90, 0.4);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--mono);
  font-weight: 700;
  z-index: 2;
}
.promo-bottom .pb-close:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: rotate(90deg) scale(1.1);
}

/* Mobile layout */
@media (max-width: 720px) {
  .promo-bottom {
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    transform: translateY(140%);
    width: auto !important;
    max-width: none !important;
    padding: 12px 14px;
    border-radius: 16px;
  }
  .promo-bottom.show {
    transform: translateY(0) !important;
  }
  .promo-bottom .inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "fire content"
      "clock clock"
      "cta cta";
    gap: 10px 10px;
  }
  .promo-bottom .pb-fire { grid-area: fire; font-size: 22px; align-self: start; padding-top: 2px; }
  .promo-bottom .pb-content { grid-area: content; min-width: 0; }
  .promo-bottom .pb-clock { grid-area: clock; justify-content: center; padding-top: 6px; border-top: 1px dashed rgba(245, 200, 90, 0.15); }
  .promo-bottom .pb-cta { grid-area: cta; justify-content: center; padding: 11px 18px; }
  .promo-bottom .pb-price { gap: 8px; flex-wrap: wrap; }
  .promo-bottom .pb-old { font-size: 13px; }
  .promo-bottom .pb-new { font-size: 19px; }
  .promo-bottom .pb-clock .pbc .v { font-size: 15px; padding: 4px 6px 3px; min-width: 30px; }
  /* Close button — make it bigger on mobile for easier tap */
  .promo-bottom .pb-close {
    width: 32px;
    height: 32px;
    font-size: 16px;
    line-height: 30px;
    top: -12px;
    right: -8px;
  }
}
@media (max-width: 380px) {
  .promo-bottom .pb-tag { font-size: 8.5px; letter-spacing: 0.14em; }
  .promo-bottom .pb-old { font-size: 12px; }
  .promo-bottom .pb-new { font-size: 17px; }
  .promo-bottom .pb-save { font-size: 8.5px; padding: 2px 5px; }
}

/* ===== SCROLL-TO-TOP BUTTON ===== */
.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(94, 224, 255, 0.35);
  background: linear-gradient(180deg, rgba(13, 20, 38, 0.85), rgba(8, 12, 24, 0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--cyan);
  cursor: pointer;
  z-index: 91;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: all 0.4s var(--ease-spring);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.4),
    0 0 0 1px rgba(94, 224, 255, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 0;
  font-size: 0;
}
.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.scroll-top-btn:hover {
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.5),
    0 0 20px rgba(94, 224, 255, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.scroll-top-btn:active {
  transform: translateY(-1px) scale(0.98);
}
.scroll-top-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}
/* Outer pulse ring */
.scroll-top-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(94, 224, 255, 0.3);
  opacity: 0;
  animation: stPulse 2s ease-out infinite;
  pointer-events: none;
}
.scroll-top-btn.show::after { opacity: 1; }
@keyframes stPulse {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Position adjustment when promo-bottom is visible — stack scroll-top above it */
.promo-bottom.show ~ .scroll-top-btn,
body.promo-active .scroll-top-btn {
  bottom: 110px;
}
@media (max-width: 720px) {
  .scroll-top-btn { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .scroll-top-btn svg { width: 18px; height: 18px; }
  body.promo-active .scroll-top-btn { bottom: 175px; }
}

/* ===== PRINT ===== */
@media print {
  .cosmos, .stars, .cursor-glow, .scroll-progress,
  .promo-bottom, .scroll-top-btn { display: none; }
  body { background: white; color: black; }
}
