/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before, .hero-eyebrow::after {
  content: '◆';
  font-size: 0.5rem;
  opacity: 0.5;
}

.hero-title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.hero-title .line-1 {
  display: block;
  background: linear-gradient(90deg, #fff8f0 0%, rgba(255,255,255,0.5) 25%, #fff 50%, rgba(255,255,255,0.5) 75%, #fff8f0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer1 8s linear infinite;
}

@keyframes titleShimmer1 {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-title .line-2 {
  display: block;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 25%, var(--yellow) 50%, var(--orange) 75%, var(--red) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(255,80,0,0.55));
  animation: titleShimmer2 7s linear infinite;
}

@keyframes titleShimmer2 {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-subtitle {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.shimmer-name {
  background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 25%, #fff 50%, var(--yellow) 75%, var(--orange) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameShimmer 6s linear infinite;
  font-weight: 600;
}

@keyframes nameShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: justify;
  justify-content: center;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint .arrow { font-size: 1rem; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ─── Stats bar ─── */
.stats-bar {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,30,0,0.03);
}

.stats-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item {}
.stat-value {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 0 8px rgba(255,80,0,0.4));
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}

@media (max-width: 640px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .stat-item { padding: 0.5rem; }
  .stat-value { font-size: 1.6rem; }
  .stat-moddex {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .stat-moddex a { display: flex; justify-content: center; }
  .stat-moddex img { height: 40px !important; }
}

/* ─── Section ─── */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }

/* ─── Feature grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,80,0,0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--orange);
  margin-bottom: 1rem;
  transition: background 0.3s, border-color 0.3s;
}

.card:hover .feature-icon {
  background: rgba(255,106,0,0.18);
  border-color: var(--border-hot);
  color: var(--yellow);
}

.feature-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ─── Tech tree visual ─── */
.tech-showcase {
  background: rgba(10,3,0,0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.tech-showcase::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--orange), var(--yellow), var(--orange), var(--red), transparent);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ─── Tech Progression - Single Row (Desktop) ─── */
.tech-stages {
  display: flex;
  gap: 0.75rem;
  overflow: visible;
  padding: 0;
}

.tech-stage {
  position: relative;
  flex: 1;
  padding: 1.25rem 0.75rem;
  text-align: center;
  background: rgba(10,3,0,0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.tech-stage:hover {
  border-color: var(--orange);
  background: rgba(255,106,0,0.06);
}

/* Arrow between consecutive stages */
.tech-stage:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: calc(-0.5rem - 7px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  z-index: 1;
  pointer-events: none;
}

/* ─── Tech Progression - Carousel (Mobile, ≤768px) ─── */
@media (max-width: 768px) {
  .tech-stages {
    display: flex;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 1rem;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    overflow-x: auto;
  }
  .tech-stage {
    scroll-snap-align: center;
    min-width: 0;
    flex: 0 0 70vw;
    padding: 1rem 0.75rem;
    background: rgba(10,3,0,0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
  }
  .tech-stage:hover {
    border-color: var(--border);
    background: rgba(10,3,0,0.5);
  }
  .tech-stage::before,
  .tech-stage::after { display: none; }
  .tech-stage-icon { font-size: 1.5rem; }
  .progression-cards { grid-template-columns: 1fr !important; }
}

/* ─── Tech Progression Progress Bar (mobile only) ─── */
.tech-progress-bar {
  display: none;
}

@media (max-width: 768px) {
  .tech-progress-bar {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
  }

  .tech-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: 1px solid rgba(255,80,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
  }

  .tech-progress-dot.active {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 8px rgba(255,106,0,0.6);
    width: 24px;
    border-radius: 5px;
  }

  .tech-progress-dot:hover:not(.active) {
    background: rgba(255,255,255,0.2);
  }
}

.tech-stage-icon {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
  display: block;
}

.tech-stage-name {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-stage-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-mid);
  margin-top: 0.3rem;
}

/* ─── CTA / Community section ─── */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  text-align: center;
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255,60,0,0.08), transparent);
  pointer-events: none;
}

.cta-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-bright);
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* ─── Download section ─── */
.download-box {
  background: rgba(10,3,0,0.80);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.download-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--yellow));
  opacity: 0.08;
  z-index: -1;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 560px) {
  .links-grid { grid-template-columns: 1fr; }
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.link-item:hover { background: var(--red-glow); border-color: var(--border-hot); color: var(--orange); }
.link-item i { width: 16px; text-align: center; flex-shrink: 0; }

/* ═══ Screenshot Slider ═══ */
.screenshot-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: #050100;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(255,60,0,0.08), 0 24px 64px rgba(0,0,0,0.6);
  outline: none;
  cursor: grab;
}

.screenshot-slider:active { cursor: grabbing; }

.screenshot-slider:focus-visible {
  border-color: var(--border-hot);
  box-shadow: 0 0 0 2px var(--orange), 0 24px 64px rgba(0,0,0,0.6);
}

/* Viewport - clips the sliding track */
.slider-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slider-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

/* Track that actually slides */
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* Individual slides */
.slider-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Vignette: darkens bottom + sides for readability */
.slider-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(0,0,0,0.72) 0%, transparent 48%),
    linear-gradient(to right, rgba(0,0,0,0.25) 0%, transparent 28%);
  pointer-events: none;
}

/* ─── Arrows ─── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-hot);
  background: rgba(0,0,0,0.55);
  color: var(--orange);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, opacity 0.25s;
  opacity: 0;
}

.screenshot-slider:hover .slider-arrow,
.screenshot-slider:focus-visible .slider-arrow { opacity: 1; }

/* Always show arrows on touch-only devices */
@media (hover: none) and (pointer: coarse) {
  .slider-arrow { opacity: 1; }
}

.slider-arrow:hover {
  background: var(--red-glow);
  border-color: var(--orange);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev { left: 1.25rem; }
.slider-arrow-next { right: 1.25rem; }

/* ─── Info card - bottom-right overlay ─── */
.slider-info-card {
  position: absolute;
  bottom: 2.75rem;
  right: 1.75rem;
  z-index: 10;
  background: rgba(5,1,0,0.88);
  border: 1px solid var(--border-hot);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  min-width: 170px;
  max-width: min(300px, 45%);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 24px rgba(255,80,0,0.18);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.slider-info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow));
}

/* Flicker during slide transition */
.slider-info-card.transitioning {
  opacity: 0;
  transform: translateY(6px);
}

.slider-info-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slider-info-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ─── Dot indicators ─── */
.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--orange);
  width: 18px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255,106,0,0.6);
}

.slider-dot:hover:not(.active) { background: rgba(255,255,255,0.5); }

/* ─── Auto-advance progress bar ─── */
.slider-progress-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.05);
  z-index: 10;
}

.slider-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow));
  box-shadow: 0 0 6px rgba(255,106,0,0.5);
}

/* ─── Counter badge (top-left) ─── */
.slider-counter {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  z-index: 10;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  pointer-events: none;
}

/* ─── Error / empty state ─── */
.slider-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-align: center;
  gap: 0.6rem;
  padding: 2rem;
  line-height: 1.7;
}

.slider-error i { font-size: 2rem; color: var(--red); display: block; }
.slider-error code {
  font-family: 'JetBrains Mono', monospace;
  color: var(--orange);
  font-size: 0.7rem;
}

@media (max-width: 640px) {
  .screenshot-slider {
    aspect-ratio: 4 / 3;
    min-height: 300px;
    border-radius: 12px;
  }
  .slider-arrow {
    opacity: 1;
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.7);
  }
  .slider-arrow-prev { left: 0.6rem; }
  .slider-arrow-next { right: 0.6rem; }
  .slider-info-card {
    right: auto;
    left: 0.75rem;
    bottom: 2.75rem;
    min-width: 0;
    max-width: calc(100% - 1.5rem);
    padding: 0.65rem 0.85rem;
  }
  .slider-info-title { font-size: 0.78rem; white-space: normal; }
  .slider-info-desc  { font-size: 0.62rem; }
  .slider-counter    { display: none; }
  .slider-dots       { bottom: 0.7rem; }
  .slider-progress-bar { height: 2px; }
  .slider-loading i  { font-size: 1.5rem; }
}

@media (max-width: 400px) {
  .screenshot-slider { aspect-ratio: 1 / 1; min-height: 280px; }
  .slider-info-card  { left: 0.5rem; bottom: 2.5rem; max-width: calc(100% - 1rem); padding: 0.5rem 0.7rem; }
  .slider-info-title { font-size: 0.72rem; }
  .slider-info-desc  { font-size: 0.58rem; }
}


/* ═══════════════════════════════════════════════════
   SUPPORT / KO-FI SECTION
   ═══════════════════════════════════════════════════ */

/* ─── Nav: Support link highlight ─── */
.nav-link-support {
  color: var(--yellow) !important;
  position: relative;
}

.nav-link-support::before {
  content: '';
  position: absolute;
  inset: -4px -8px;
  border-radius: 5px;
  background: rgba(255, 204, 0, 0.07);
  border: 1px solid rgba(255, 204, 0, 0.18);
  transition: background 0.2s, border-color 0.2s;
}

.nav-link-support:hover {
  color: #ffe066 !important;
}

.nav-link-support:hover::before {
  background: rgba(255, 204, 0, 0.14);
  border-color: rgba(255, 204, 0, 0.4);
}

/* Ko-fi icon button in nav */
.icon-btn-kofi {
  color: var(--yellow) !important;
  border-color: rgba(255, 204, 0, 0.3) !important;
  background: rgba(255, 204, 0, 0.05) !important;
}

.icon-btn-kofi:hover {
  background: rgba(255, 204, 0, 0.14) !important;
  border-color: rgba(255, 204, 0, 0.55) !important;
  color: #ffe566 !important;
}

/* ─── Support section layout ─── */
.support-section {
  position: relative;
  z-index: 1;
}

.support-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255, 180, 0, 0.04), transparent);
  pointer-events: none;
}

.support-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;
  margin-top: 3.5rem;
}

@media (max-width: 960px) {
  .support-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── Reason list (left column) ─── */
.support-reasons {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.support-reason-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.support-reason-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 204, 0, 0.07);
  border: 1px solid rgba(255, 204, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--yellow);
  margin-top: 2px;
}

.support-reason-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}

.support-reason-desc {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ─── Ko-fi card (right column) ─── */
.kofi-card {
  position: sticky;
  top: 90px;
}

.kofi-card-inner {
  background: rgba(10, 5, 0, 0.88);
  border: 1px solid rgba(255, 204, 0, 0.22);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 60px rgba(255, 170, 0, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.5);
}

.kofi-card-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, transparent, var(--yellow), var(--orange), var(--yellow), transparent);
  background-size: 200% auto;
  animation: kofiShimmer 4s linear infinite;
}

@keyframes kofiShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.kofi-card-inner::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 0, 0.07), transparent 70%);
  pointer-events: none;
}

.kofi-card-top {
  text-align: center;
  margin-bottom: 1.75rem;
}

/* ─── Animated mug ─── */
.kofi-mug-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
  height: 64px;
}

.kofi-mug {
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255, 200, 0, 0.5));
  animation: mugFloat 3s ease-in-out infinite;
}

@keyframes mugFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.kofi-steam {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.kofi-steam span {
  display: block;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 220, 120, 0.5);
  animation: steamRise 2s ease-in-out infinite;
  transform-origin: bottom center;
}

.kofi-steam span:nth-child(1) { animation-delay: 0s; }
.kofi-steam span:nth-child(2) { animation-delay: 0.3s; height: 16px; }
.kofi-steam span:nth-child(3) { animation-delay: 0.6s; }

@keyframes steamRise {
  0%   { opacity: 0;   transform: translateY(0)    scaleX(1); }
  40%  { opacity: 0.7; transform: translateY(-8px) scaleX(1.3); }
  100% { opacity: 0;   transform: translateY(-18px) scaleX(0.5); }
}

.kofi-card-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

.kofi-card-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.kofi-card-sub {
  font-size: 0.855rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 300px;
  margin: 0 auto;
}

/* ─── Ko-fi button ─── */
.btn-kofi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #d4a017, #f0c040, #ffe066, #f0c040, #d4a017);
  background-size: 200% auto;
  color: #1a0f00;
  box-shadow:
    0 0 28px rgba(255, 200, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s, transform 0.2s, filter 0.3s;
  animation: kofiBtn 5s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes kofiBtn {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.btn-kofi:hover {
  box-shadow:
    0 0 44px rgba(255, 210, 0, 0.65),
    0 6px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-kofi:active { transform: translateY(0); }

/* ─── Transparency notes ─── */
.kofi-transparency {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 204, 0, 0.1);
  padding-top: 1.25rem;
}

.kofi-transparency-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.kofi-transparency-row i {
  color: rgba(255, 204, 0, 0.45);
  font-size: 0.75rem;
  width: 14px;
  flex-shrink: 0;
}

/* ─── Bottom alt-support callout ─── */
.support-alt {
  margin-top: 3.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.support-alt strong { font-weight: 600; }
.support-alt a { transition: color 0.2s; }
.support-alt a:hover { color: var(--yellow) !important; }

/* ─── Video Teaser Section ─── */
.video-outer {
  max-width: 860px;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-hot);
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 80, 0, 0.08),
    0 0 60px rgba(255, 60, 0, 0.10),
    0 32px 80px rgba(0, 0, 0, 0.7);
}

/* Top gradient bar - reuses the shimmer keyframe already defined in shared-styles.css */
.video-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 10;
  background: linear-gradient(90deg,
    transparent, var(--red), var(--orange), var(--yellow),
    var(--orange), var(--red), transparent);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

.video-thumb {
  position: absolute;
  inset: 0;
  cursor: pointer;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.68) saturate(0.75);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.video-thumb:hover img {
  transform: scale(1.03);
  filter: brightness(0.82) saturate(1.1);
}

.video-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 22%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 45%);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px; /* optical centre for the play icon */
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  box-shadow: 0 0 28px rgba(255, 106, 0, 0.35);
}

.video-play-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 106, 0, 0.28);
  animation: ringPulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1);    opacity: 0.35; }
  50%       { transform: scale(1.18); opacity: 0.75; }
}

.video-thumb:hover .video-play-btn {
  background: rgba(255, 50, 0, 0.22);
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 50px rgba(255, 160, 0, 0.55);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-meta {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  z-index: 5;
  pointer-events: none;
}

.video-meta-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.video-meta-title {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* HUD corner markers */
.video-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 10;
  pointer-events: none;
}

.vc-tl { top: 10px;    left: 10px;  border-top: 2px solid var(--orange); border-left:  2px solid var(--orange); }
.vc-tr { top: 10px;    right: 10px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); }
.vc-bl { bottom: 10px; left: 10px;  border-bottom: 2px solid var(--orange); border-left:  2px solid var(--orange); }
.vc-br { bottom: 10px; right: 10px; border-bottom: 2px solid var(--orange); border-right: 2px solid var(--orange); }

/* The iframe that replaces the thumbnail */
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Project Activity Bar ─── */
.activity-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(10, 3, 0, 0.88);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  position: relative;
  transition: border-color 0.3s;
}

.activity-bar:hover {
  border-color: var(--border-hot);
}

.activity-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.4), transparent);
}

.activity-pulse-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.1rem 1.75rem;
  flex-shrink: 0;
}

.activity-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  flex-shrink: 0;
  animation: dotBlink 2s ease-in-out infinite;
}

.activity-dot.dot-yellow {
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.8);
}

.activity-dot.dot-red {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 34, 0, 0.8);
  animation: none;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.activity-label {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Vertical divider between cells */
.act-divv {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
}

.activity-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.5rem;
  gap: 0.22rem;
  flex: 1;
  min-width: 110px;
}

.act-val {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.act-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.act-gh-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 1.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.act-gh-link:hover {
  color: var(--orange);
  background: var(--red-glow);
}

/* Mobile stacking */
@media (max-width: 780px) {
  .activity-bar      { flex-direction: column; }
  .act-divv          { width: 100%; height: 1px; align-self: auto; }
  .activity-stat     { width: 100%; flex-direction: row; justify-content: space-between; min-width: 0; }
  .activity-pulse-wrap { width: 100%; }
  .act-gh-link       { width: 100%; justify-content: center; border-top: 1px solid var(--border); }
}

/* ═══ ModDex Reviews Section ═══ */
.reviews-container {
  max-width: 700px;
  margin: 0 auto;
}

.reviews-scroll {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.reviews-scroll::-webkit-scrollbar {
  width: 6px;
}

.reviews-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.reviews-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.reviews-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--border-hot);
}

.reviews-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  gap: 0.5rem;
}

.review-card {
  background: rgba(10,3,0,0.75);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.25s, background 0.25s;
}

.review-card:hover {
  border-color: var(--border-hot);
  background: rgba(10,3,0,0.88);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.review-author {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
}

.review-stars {
  font-size: 0.85rem;
  color: var(--yellow);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.review-stars .star-empty {
  color: var(--text-muted);
  opacity: 0.35;
}

.review-text {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.review-text::before {
  content: '\201C';
  color: var(--orange);
  opacity: 0.5;
  margin-right: 0.15rem;
}

.review-text::after {
  content: '\201D';
  color: var(--orange);
  opacity: 0.5;
  margin-left: 0.15rem;
}

.reviews-empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
}

.reviews-empty i {
  font-size: 2rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.reviews-error {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.7;
}

.reviews-error i {
  font-size: 1.5rem;
  color: var(--red-dim);
  display: block;
  margin-bottom: 0.5rem;
}