/* ═════════════════════════════════════════════════════════════
   CS LAUNCHER V2 — COMPLETE REDESIGNED STYLESHEET
   Premium Dark UI · Mobile First · Glassmorphism
   ═════════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  --bg-primary: #0B0B0E;
  --bg-secondary: #101014;
  --bg-card: rgba(18, 18, 24, 0.82);
  --bg-card-hover: rgba(28, 28, 38, 0.92);
  --bg-elevated: rgba(24, 24, 32, 0.95);
  --bg-input: rgba(8, 8, 12, 0.8);
  --oled-bg: #05070D;

  --text-primary: #FFFFFF;
  --text-secondary: #B8B8C8;
  --text-muted: #6E6E82;
  --text-dim: #4A4A5E;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-glow: rgba(255, 255, 255, 0.35);
  --border-focus: rgba(255, 255, 255, 0.50);

  --accent-rose: #ff2d55;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 100px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 20px rgba(255,255,255,0.08);
  --shadow-glow-strong: 0 0 30px rgba(255,255,255,0.15);

  --header-height: 64px;
  --nav-height: 72px;
  --content-max: 820px;
  --content-padding: 16px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + 40px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

.minecraft-pixel {
  font-family: 'Press Start 2P', monospace;
  letter-spacing: -0.5px;
}

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ─── BACKGROUND SYSTEM ─── */
.bg-animation-container {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.bg-animation-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: contrast(1.1) brightness(0.7) saturate(0.8);
  transform: translateZ(0) scale(1.05);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 14, 0.55) 0%,
    rgba(11, 11, 14, 0.40) 30%,
    rgba(11, 11, 14, 0.55) 70%,
    rgba(11, 11, 14, 0.75) 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* ═════════════════════════════════════════
   HEADER / TOP BAR
   ═════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(11, 11, 14, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  transition: background 0.3s, border-color 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
}

/* Logo */
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-box {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  transition: all 0.3s var(--ease-out);
}
.logo-group:hover .logo-box {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: rotate(5deg) scale(1.05);
}
.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.logo-version {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-out);
  position: relative;
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
}
.nav-link-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s;
}
.nav-link.active .nav-link-dot {
  background: var(--text-primary);
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* Header CTA */
.header-cta {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--text-primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s var(--ease-out);
  flex-shrink: 0;
}
.header-cta svg {
  width: 14px;
  height: 14px;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

.desktop-only { display: none; }

/* ═════════════════════════════════════════
   PAGE SYSTEM
   ═════════════════════════════════════════ */
.page {
  display: none;
  padding: calc(var(--header-height) + 24px) var(--content-padding) 60px;
  min-height: 100vh;
  max-width: var(--content-max);
  margin: 0 auto;
  will-change: transform, opacity;
}
.page.active {
  display: block;
  animation: pageReveal 0.4s var(--ease-out) forwards;
}

@keyframes pageReveal {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Page Headers ─── */
.page-header-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-main-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.page-main-title span {
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.page-title-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.7;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 500px;
}

/* ─── Section Blocks ─── */
.section-block {
  margin-bottom: 36px;
}
.section-header {
  margin-bottom: 16px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  padding-bottom: 0;
  border-bottom: none;
}

/* ─── Empty State ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ═════════════════════════════════════════
   GLASSMORPHIC CARD SYSTEM
   ═════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  color: var(--text-primary);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: all 0.3s var(--ease-out);
  transform: translateZ(0);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-2px);
}

/* ═════════════════════════════════════════
   HERO SECTION
   ═════════════════════════════════════════ */
.hero-section {
  text-align: center;
  padding: 32px 0 16px;
  position: relative;
}

/* Hero Badges */
.hero-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.badge-outline {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}
.badge-glow {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.30);
  color: #10b981;
}
.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* Hero Title */
.hero-title {
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-title-sub {
  display: block;
  font-size: clamp(0.72rem, 2.5vw, 0.88rem);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-title-main {
  display: block;
  font-size: clamp(1.4rem, 6vw, 2.6rem);
  font-weight: 900;
  color: var(--text-primary);
  text-shadow: 0 0 40px rgba(255,255,255,0.15);
  line-height: 1.2;
}

.hero-desc {
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto 28px;
}

/* Social Chips */
.hero-social-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s var(--ease-out);
  border: 1px solid transparent;
}
.social-yt {
  background: rgba(255, 0, 0, 0.12);
  color: #ff4444;
  border-color: rgba(255, 0, 0, 0.25);
}
.social-yt:hover {
  background: rgba(255, 0, 0, 0.20);
  border-color: rgba(255, 0, 0, 0.45);
  transform: translateY(-2px);
}
.social-dc {
  background: rgba(88, 101, 242, 0.12);
  color: #7289da;
  border-color: rgba(88, 101, 242, 0.25);
}
.social-dc:hover {
  background: rgba(88, 101, 242, 0.20);
  border-color: rgba(88, 101, 242, 0.45);
  transform: translateY(-2px);
}

/* V3 Teaser Banner */
.v3-teaser {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.v3-teaser:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.v3-teaser-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,0,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.v3-teaser-content {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.v3-badge {
  background: #FF0000;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.v3-text {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

/* Sponsored Placements */
.sponsor-section {
  margin-top: 16px;
}

.sponsor-header {
  margin-bottom: 14px;
}

.sponsor-title {
  margin-bottom: 6px;
}

.sponsor-subtitle {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 560px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sponsor-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.sponsor-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.sponsor-pill,
.sponsor-live {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.sponsor-pill {
  padding: 5px 10px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
}

.sponsor-live {
  padding: 5px 10px;
  color: #10b981;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.25);
}

.sponsor-slot {
  min-height: 140px;
  border-radius: var(--radius-md);
  background: rgba(8, 8, 12, 0.55);
  border: 1px dashed rgba(255,255,255,0.12);
  overflow: hidden;
  position: relative;
}

.sponsor-slot:empty::before {
  content: 'Loading sponsored content...';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.sponsor-slot > * {
  max-width: 100%;
}

.sponsor-slot iframe {
  display: block;
  width: 100%;
  min-height: 140px;
  border: 0;
}

@media (min-width: 720px) {
  .sponsor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ═════════════════════════════════════════
   STATS STRIP
   ═════════════════════════════════════════ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
}
.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.stat-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
}

.stat-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-number {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}
.stat-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═════════════════════════════════════════
   SCREENSHOT GALLERY
   ═════════════════════════════════════════ */
.gallery-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-card {
  flex: 0 0 82%;
  max-width: 360px;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: center;
  transition: all 0.3s var(--ease-out);
}
.gallery-card:hover {
  border-color: var(--border-strong);
  transform: scale(1.02);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ═════════════════════════════════════════
   FEATURE CARDS (Home Page)
   ═════════════════════════════════════════ */
.features-grid-home {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card-new {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s var(--ease-out);
  cursor: default;
}
.feature-card-new:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateX(4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.feature-card-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}
.feature-card-new:hover .feature-card-icon {
  border-color: var(--border-glow);
  background: rgba(255,255,255,0.08);
}
.feature-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  fill: none;
}

.feature-card-body {
  flex: 1;
  min-width: 0;
}
.feature-card-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}
.feature-card-body p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.feature-card-arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s var(--ease-out);
}
.feature-card-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
}
.feature-card-new:hover .feature-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ═════════════════════════════════════════
   BUTTONS
   ═════════════════════════════════════════ */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
  padding: 14px 24px;
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  outline: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  pointer-events: none;
}
.btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}
.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.btn + .btn { margin-top: 0; }

/* Primary */
.btn-primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #E8E8EC 100%);
  color: #0B0B0E;
  border: 1px solid rgba(255,255,255,0.8);
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255,255,255,0.15);
}
.btn-primary::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 50%);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(255,255,255,0.25), var(--shadow-glow-strong);
  border-color: #FFFFFF;
}
.btn-primary svg { stroke: #0B0B0E; }

/* Ghost */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  box-shadow: none;
}
.btn-ghost::after { display: none; }
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
  border-color: var(--border-glow);
}

/* Large */
.btn-lg {
  padding: 16px 28px;
  font-size: 0.88rem;
  border-radius: var(--radius-lg);
}

/* ═════════════════════════════════════════
   DOWNLOAD PAGE
   ═════════════════════════════════════════ */
.download-hero-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.dl-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.dl-app-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dl-app-info {
  flex: 1;
}
.dl-app-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.dl-release-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* Download Stats Grid */
.dl-stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.dl-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 60px;
  padding: 4px 0;
}
.dl-stat-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}
.dl-stat-key {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dl-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.btn-download-main {
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
}

.dl-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.dl-security-note svg {
  stroke: var(--text-dim);
}

/* ═════════════════════════════════════════
   ACCORDION SYSTEM
   ═════════════════════════════════════════ */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.accordion-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.accordion-item:hover {
  border-color: var(--border-strong);
}

/* Compatibility aliases for old HTML classes */
.accordion {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  margin-bottom: 8px;
  transition: all 0.3s var(--ease-out);
  box-shadow: none;
}
.accordion:hover {
  border-color: var(--border-strong);
}

.accordion-trigger,
.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  outline: none;
  gap: 12px;
  transition: color 0.2s;
}
.accordion-trigger:hover,
.accordion-btn:hover {
  color: var(--text-primary);
}

.accordion-trigger-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.accordion-trigger-left svg {
  stroke: var(--text-muted);
  flex-shrink: 0;
}

.accordion-chevron,
.accordion-btn svg:last-child {
  width: 18px;
  height: 18px;
  stroke: var(--text-dim);
  stroke-width: 2.5;
  transition: transform 0.3s var(--ease-out), stroke 0.2s;
  flex-shrink: 0;
}

.accordion-trigger.open .accordion-chevron,
.accordion-btn.open svg:last-child {
  transform: rotate(180deg);
  stroke: var(--text-primary);
}

.accordion-content {
  display: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0 20px 20px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0;
  padding-top: 16px;
  line-height: 1.6;
}
.accordion-content.open {
  display: block;
  animation: accordionSlide 0.25s var(--ease-out) forwards;
}

@keyframes accordionSlide {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Install Steps */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.install-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}
.step-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-top: 4px;
}

/* ═════════════════════════════════════════
   FEATURES PAGE (Dynamic Grid)
   ═════════════════════════════════════════ */
.features-dynamic-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ═════════════════════════════════════════
   REVIEWS PAGE
   ═════════════════════════════════════════ */
/* Rating Overview */
.rating-overview-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.rating-big-score {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rating-number {
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}
.rating-stars-row {
  display: flex;
  gap: 3px;
}
.rating-stars-row svg {
  width: 16px;
  height: 16px;
}
.rating-count-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Rating Ring */
.rating-visual {
  flex-shrink: 0;
}
.rating-ring {
  position: relative;
  width: 80px;
  height: 80px;
}
.rating-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}
.rating-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Review Form */
.review-form-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.form-section-title svg {
  stroke: var(--text-muted);
  flex-shrink: 0;
}

/* Star Selector */
.star-select {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  justify-content: center;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.star-select svg {
  width: clamp(30px, 8vw, 38px);
  height: clamp(30px, 8vw, 38px);
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 1.5;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}
.star-select svg:hover {
  stroke: rgba(255,255,255,0.5);
  transform: scale(1.1);
}
.star-select svg.active {
  fill: var(--text-primary);
  stroke: var(--text-primary);
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
}

/* Form Inputs */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.input-group {
  position: relative;
}
.input-icon {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 18px;
  height: 18px;
  stroke: var(--text-dim);
  pointer-events: none;
  z-index: 1;
  transition: stroke 0.2s;
}
.input-icon.textarea-icon {
  top: 14px;
}
.input-group:focus-within .input-icon {
  stroke: var(--text-secondary);
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 13px 16px 13px 42px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s var(--ease-out);
}
.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
  background: rgba(12, 12, 18, 0.9);
}
.form-input::placeholder {
  color: var(--text-dim);
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-submit-review {
  margin-top: 4px;
}

/* Reviews Feed */
.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: all 0.3s var(--ease-out);
  margin-bottom: 0;
  box-shadow: none;
}
.review-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.review-avatar {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-meta { flex: 1; }
.review-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.review-date {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.review-content {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ═════════════════════════════════════════
   VIDEOS PAGE
   ═════════════════════════════════════════ */
.video-masonry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.video-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
}
.video-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: all 0.4s var(--ease-out);
}
.video-card:hover .video-thumb img {
  opacity: 0.95;
  transform: scale(1.05);
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  color: var(--bg-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all 0.3s var(--ease-out);
}
.play-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-left: 2px;
}
.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 8px 32px rgba(255,255,255,0.3);
}

.video-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 5;
  background: rgba(11, 11, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-default);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.video-info {
  padding: 14px 16px;
}
.video-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ═════════════════════════════════════════
   TEAM PAGE
   ═════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.team-member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

/* Crown Animation */
@keyframes crown-float {
  0%, 100% { transform: translateX(-50%) translateY(0px) rotate(-5deg); }
  50% { transform: translateX(-50%) translateY(-5px) rotate(5deg); }
}

.team-member-card.highlighted {
  border-color: rgba(251, 191, 36, 0.35) !important;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.06) 0%, var(--bg-card) 100%) !important;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(251, 191, 36, 0.08) !important;
}

.team-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}
.team-social-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Features Grid (alias for team page compatibility) */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

/* Feature Row (for old-style features) */
.feature-row {
  display: flex !important;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 0 !important;
}
.feature-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}
.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.feature-text { flex: 1; text-align: left; }
.feature-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 3px;
  color: var(--text-primary);
}
.feature-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ═════════════════════════════════════════
   HELP / CONTACT
   ═════════════════════════════════════════ */
.contact-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.contact-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.contact-header svg {
  stroke: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.contact-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ═════════════════════════════════════════
   LEGAL / NOTICE PAGE
   ═════════════════════════════════════════ */
.legal-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
}
.legal-card:hover {
  border-color: var(--border-strong);
}

.legal-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}
.legal-card-header svg {
  stroke: var(--text-muted);
  flex-shrink: 0;
}
.legal-card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.legal-card-body {
  padding: 20px 22px;
}
.legal-card-body p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.legal-card-body p:last-child { margin-bottom: 0; }
.legal-card-body strong { color: var(--text-primary); }
.legal-card-body code {
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.legal-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 12px;
}
.legal-key {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.legal-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.legal-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  text-align: right;
  transition: opacity 0.2s;
}
.legal-link:hover { opacity: 0.7; }

.legal-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 12px 0;
}

.legal-note {
  font-size: 0.8rem !important;
  color: var(--text-dim) !important;
}

.legal-source-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 12px 0;
}

.legal-sub-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.legal-license-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  transition: all 0.2s var(--ease-out);
}
.legal-license-link:hover {
  border-color: var(--border-glow);
  background: rgba(255,255,255,0.08);
}
.legal-license-link svg {
  stroke: var(--text-muted);
}

/* Warning Card */
.legal-card-warning {
  border-color: rgba(255, 45, 85, 0.20);
  border-left: 3px solid var(--accent-rose);
}
.legal-card-warning .legal-card-header {
  background: rgba(255, 45, 85, 0.04);
}
.legal-card-warning .legal-card-header h3 {
  color: var(--accent-rose);
}
.legal-card-warning .legal-card-header svg {
  stroke: var(--accent-rose);
}

.legal-warranty-text {
  font-size: 0.72rem !important;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(252, 165, 165, 0.8) !important;
  text-transform: uppercase;
  line-height: 1.7 !important;
  letter-spacing: 0.3px;
}

/* ═════════════════════════════════════════
   VIDEO MODAL
   ═════════════════════════════════════════ */
#video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#video-modal.show { display: flex; }

.video-modal-inner {
  width: 100%;
  max-width: 850px;
  position: relative;
}

.video-modal-close {
  position: absolute;
  top: -48px; right: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: var(--text-primary);
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.video-modal-close:hover {
  border-color: var(--border-glow);
  background: rgba(255,255,255,0.15);
}
.video-modal-close svg {
  width: 18px; height: 18px;
  stroke: currentColor;
}

.video-modal-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
}
.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Compatibility aliases */
.modal-content { width: 100%; max-width: 850px; position: relative; }
.close-modal {
  position: absolute; top: -46px; right: 0;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border-default);
  border-radius: 50%; color: var(--text-primary); width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.close-modal:hover { border-color: var(--border-glow); }
.close-modal svg { width: 18px; height: 18px; stroke: currentColor; }
.iframe-wrap {
  width: 100%; aspect-ratio: 16/9; background: #000;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-default); box-shadow: var(--shadow-lg);
}
.iframe-wrap iframe { width: 100%; height: 100%; border: none; }

/* ═════════════════════════════════════════
   ANNOUNCEMENT SYSTEM
   ═════════════════════════════════════════ */
#ann-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#ann-modal-overlay.show { display: flex; }

.ann-modal-box {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 64px rgba(0,0,0,0.8);
  overflow: hidden;
}

.ann-gif-area {
  width: 100%;
  max-height: 180px;
  overflow: hidden;
}
.ann-gif-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ann-body { padding: 24px; }

.ann-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  margin-bottom: 14px;
}

.ann-modal-text {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--text-primary);
  line-height: 1.5;
}

.ann-close-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.8);
  background: linear-gradient(180deg, #FFFFFF 0%, #E8E8EC 100%);
  color: var(--bg-primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s var(--ease-out);
}
.ann-close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.25);
}

/* Announcement Pill */
#ann-pill {
  position: fixed;
  top: calc(var(--header-height) + env(safe-area-inset-top) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-transform: uppercase;
  z-index: 98;
  width: max-content;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  transition: all 0.2s var(--ease-out);
}
#ann-pill.show { display: flex; }
#ann-pill:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.pill-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-rose);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* ═════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}

.toast {
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-default);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.82rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastSlide 0.3s var(--ease-spring) forwards;
  width: 100%;
}
.toast.success { border-color: rgba(16, 185, 129, 0.30); }
.toast.error { border-color: rgba(255, 45, 85, 0.30); color: var(--accent-rose); }

@keyframes toastSlide {
  0% { opacity: 0; transform: translateY(12px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 36px 20px 20px;
  display: block;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.6;
}
.footer-brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--border-subtle);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}

.footer-notice-link {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--border-default);
  transition: color 0.2s;
}
.footer-notice-link:hover {
  color: var(--text-secondary);
}

/* ═════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION
   ═════════════════════════════════════════ */
.mobile-nav {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 64px;
  background: rgba(14, 14, 18, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.6);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding: 0 4px;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: none;
  background: transparent;
  height: 100%;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  padding: 0;
}

.mobile-nav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-out);
}
.mobile-nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.mobile-nav-item.active {
  color: var(--text-primary);
}
.mobile-nav-item.active .mobile-nav-icon {
  background: rgba(255,255,255,0.08);
}
.mobile-nav-item.active .mobile-nav-icon svg {
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.5));
}

/* Compatibility aliases */
.bottom-nav { display: none; }
.nav-item[data-tab] { display: none; }

/* ═════════════════════════════════════════
   MORE MENU OVERLAY
   ═════════════════════════════════════════ */
#more-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(8px);
  z-index: 98;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease-out);
  padding: 0 12px 90px;
}
#more-menu.show {
  opacity: 1;
  pointer-events: all;
}

.menu-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-spring);
}
#more-menu.show .menu-panel {
  transform: translateY(0);
}

/* Compatibility */
.menu-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform 0.25s var(--ease-spring);
}
#more-menu.show .menu-content { transform: scale(1); }

.menu-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.menu-panel-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.menu-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-default);
}
.menu-close-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.menu-panel-links {
  padding: 8px 10px;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease-out);
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 2px;
}
.menu-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.menu-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}
.menu-link span { flex: 1; }
.menu-link-arrow {
  width: 16px !important;
  height: 16px !important;
  opacity: 0.3;
  stroke: currentColor !important;
}

.menu-panel-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.menu-panel-footer span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}



/* ═════════════════════════════════════════
   RATING HEADER (Compatibility)
   ═════════════════════════════════════════ */
.rating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 22px;
}
.rating-score {
  font-size: clamp(2.2rem, 8vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.rating-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--text-primary);
}

/* Stats Row Compatibility */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 28px;
}
.stat-box {
  padding: 16px 8px;
  text-align: center;
}
.stat-value {
  font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1;
}

/* ═════════════════════════════════════════
   RESPONSIVE — TABLET
   ═════════════════════════════════════════ */
@media (min-width: 520px) {
  .video-masonry {
    grid-template-columns: 1fr 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-actions {
    flex-direction: row;
    max-width: 480px;
  }
  
  .contact-actions {
    flex-direction: row;
  }
  
  .gallery-card {
    flex: 0 0 60%;
    max-width: 400px;
  }
}

/* ═════════════════════════════════════════
   RESPONSIVE — DESKTOP
   ═════════════════════════════════════════ */
@media (min-width: 768px) {
  :root {
    --content-padding: 24px;
  }
  
  body {
    padding-bottom: 40px;
  }
  
  /* Show Desktop Nav */
  .desktop-nav {
    display: flex;
  }
  .desktop-only {
    display: flex;
  }
  .header-cta {
    display: flex;
  }
  
  /* Hide Mobile Nav */
  .mobile-nav {
    display: none;
  }
  
  /* Hide More Menu on desktop */
  #more-menu {
    display: none !important;
  }
  
  /* Better grid layouts */
  .features-grid-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .video-masonry {
    grid-template-columns: 1fr 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-strip {
    gap: 14px;
  }
  
  .stat-card {
    flex-direction: row;
    padding: 18px 20px;
    gap: 14px;
    text-align: left;
  }
  .stat-data {
    align-items: flex-start;
  }
  
  /* Download page improvements */
  .dl-stats-grid {
    flex-wrap: nowrap;
  }
  
  /* Gallery */
  .gallery-card {
    flex: 0 0 45%;
    max-width: 450px;
  }
  
  /* Header adjustments */
  .header-inner {
    padding: 0 32px;
  }
  
  .page {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ═════════════════════════════════════════
   RESPONSIVE — LARGE DESKTOP
   ═════════════════════════════════════════ */
@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .features-dynamic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  
  .stat-card {
    padding: 22px 24px;
  }
  
  .hero-title-main {
    font-size: 2.8rem;
  }
}

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

/* Focus Visible */
:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}