[data-lucide] {
  width: 24px;
  height: 24px;
  stroke-width: 2px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* 1. RESET AND VARIABLES */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Apple HIG Semantic Colors (Light) */
  --system-background: #F2F2F7;
  --secondary-system-background: #FFFFFF;
  --tertiary-system-background: #F2F2F7;

  --label: #000000;
  --secondary-label: #3C3C4399;
  --tertiary-label: #3C3C434D;

  --system-blue: #007AFF;
  --system-red: #FF3B30;
  --system-green: #34C759;

  --sky-top: #E0F2FE;
  --sky-bottom: #F0F9FF;
  --bg-page: var(--sky-top);
  --bg-nav: rgba(255, 255, 255, 0.75);
  --bg-card: rgba(255, 255, 255, 0.65);

  --accent: var(--system-blue);
  --accent-gradient: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);

  --text-main: var(--label);
  --text-secondary: var(--secondary-label);
  --text-inverse: #FFFFFF;

  --border-light: transparent;
  --border-premium: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.08);
  --glow-card-hover: 0 8px 32px rgba(0, 122, 255, 0.15);

  /* Spacing (8pt Grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-card: 28px;
  --radius-btn: 14px;

  --mtn-back: #94A3B8;
  --mtn-mid: #64748B;
  --mtn-mist: #F1F5F9;
  --mtn-forest-deep: #064E3B;
  --mtn-forest-mid: #15803D;
  --mtn-front: #14532D;
  --leaf-color: #22C55E;
}

[data-theme="dark"] {
  /* Apple HIG Semantic Colors (Dark) */
  --system-background: #000000;
  --secondary-system-background: #1C1C1E;
  --tertiary-system-background: #2C2C2E;

  --label: #FFFFFF;
  --secondary-label: #EBEBF599;
  --tertiary-label: #EBEBF54D;

  --sky-top: #020617;
  --sky-bottom: #0F172A;
  --bg-page: var(--sky-top);
  --bg-nav: rgba(28, 28, 30, 0.8);
  --bg-card: rgba(44, 44, 46, 0.6);

  --text-main: var(--label);
  --text-secondary: var(--secondary-label);
  --border-light: transparent;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.5);

  --mtn-back: #0F172A;
  --mtn-mid: #020617;
  --mtn-mist: #1E293B;
  --mtn-forest-deep: #022C22;
  --mtn-forest-mid: #064E3B;
  --mtn-front: #020617;
  --star-color: #FFFFFF;
  --star-glow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 12px rgba(255, 255, 255, 0.4);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 400;
  color: var(--text-main);
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.8s ease, color 0.3s ease;
  min-height: 100vh;
  min-height: 100dvh;
}

/* 2. TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(32px, 8vw, 64px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1.2;
}

h3 {
  font-size: clamp(20px, 4vw, 24px);
  line-height: 1.3;
}

/* 3. LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

section {
  padding: var(--space-8) 0;
}

@media (max-width: 600px) {
  .container {
    padding: 0 var(--space-2);
  }

  section {
    padding: var(--space-5) 0;
  }
}

/* 4. COMPONENTS */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  backdrop-filter: blur(32px) saturate(210%);
  -webkit-backdrop-filter: blur(32px) saturate(210%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
  overflow: hidden;
  position: relative;
}

/* Glass Noise Texture */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3BaseFilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/baseFilter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  box-shadow: var(--glow-card-hover);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Icon Animations */
[data-lucide] {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.card:hover [data-lucide],
.btn:hover [data-lucide] {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent);
}

.eco-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .eco-icon {
  transform: scale(1.2) rotate(-10deg);
}

.transparent-section {
  background-color: transparent;
  position: relative;
}

.transparent-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--bg-card);
  opacity: 0.5;
  z-index: -1;
  transition: background-color 0.3s ease;
}

[data-theme="dark"] .transparent-section::before {
  opacity: 0.3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(2, 54, 242, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Premium Button Glow */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(2, 54, 242, 0.4), 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.btn-circle-profile {
  width: 48px !important;
  height: 48px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  color: var(--text-main) !important;
  z-index: 100 !important;
}

.btn-circle-profile:hover {
  transform: translateY(-2px) !important;
  background: var(--accent-gradient) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 8px 16px rgba(2, 54, 242, 0.3) !important;
}

.btn-circle-profile:hover [data-lucide] {
  color: var(--text-inverse) !important;
  transform: scale(1.1) rotate(5deg) !important;
}



.btn-circle-profile [data-lucide] {
  width: 20px !important;
  height: 20px !important;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 1s linear infinite;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  margin-left: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: var(--border-light);
}

/* ============================================================
       FIXED THEME TOGGLE (Standardized across all pages)
       ============================================================ */
.btn-theme-toggle {
  width: 48px !important;
  height: 48px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  z-index: 100 !important;
  color: var(--text-main) !important;
}

.btn-theme-toggle:hover {
  transform: translateY(-2px) !important;
  background: var(--accent-gradient) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 8px 16px rgba(2, 54, 242, 0.3) !important;
  color: var(--text-inverse) !important;
}

.btn-theme-toggle .theme-icon {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 20px !important;
  height: 20px !important;
  transform: translate(-50%, -50%) !important;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
  pointer-events: none !important;
}

/* Light Theme State (Default) */
.btn-theme-toggle .sun-icon {
  opacity: 0 !important;
  transform: translate(-50%, -50%) rotate(90deg) scale(0) !important;
}

.btn-theme-toggle .moon-icon {
  opacity: 1 !important;
  transform: translate(-50%, -50%) rotate(0) scale(1) !important;
}

/* Dark Theme State */
[data-theme="dark"] .btn-theme-toggle .sun-icon {
  opacity: 1 !important;
  transform: translate(-50%, -50%) rotate(0) scale(1) !important;
}

[data-theme="dark"] .btn-theme-toggle .moon-icon {
  opacity: 0 !important;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0) !important;
}

.btn-theme-toggle:hover {
  transform: translateY(-2px) !important;
  border-color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.4) !important;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  height: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-3);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 5. SPECIFIC BLOCKS */

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(var(--space-3), env(safe-area-inset-top)) var(--space-5) var(--space-3);
  transition: padding 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  will-change: background-color, border-color;
}

/* Create dummy flex items to force true centering of the middle element */
.nav-logo,
.nav-actions {
  flex: 1;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  /* Match the icon/image perfectly without extra tail spacing */
}

.nav-logo img {
  height: 32px;
  /* Set logo height to match navbar */
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: var(--space-4);
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links li {
  display: flex;
  align-items: center;
  /* Perfect vertical alignment within the link container */
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease, transform 0.2s ease;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* HIG tap target */
  padding: 0 12px;
}
.nav-links a:active {
  transform: scale(0.95);
}

.nav-links a:hover {
  color: var(--accent);
}

/* Desktop right actions */
.nav-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: var(--space-1);
  z-index: 1001;
  /* Above mobile menu */
}

/* Mobile Nav Adjustments */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    display: flex;
    gap: 8px;
    margin-right: 12px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }
}

@media (max-width: 600px) {
  .header-actions {
    display: flex;
    gap: 8px;
  }

  .nav-actions .btn-circle-profile {
    width: 40px !important;
    height: 40px !important;
  }

  .nav-actions .lang-selector {
    display: none;
  }

  /* Hide lang on very small screens if needed, but keep theme */
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links,
  .nav-actions .btn-primary {
    display: none;
    /* Hide links and the main button on mobile */
  }

  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--bg-nav);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: 80px 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform, visibility;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu-overlay .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    position: static;
    transform: none;
  }

  .mobile-menu-overlay .nav-links a {
    font-size: 24px;
    padding: 12px 24px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .mobile-menu-overlay .profile-btn-mobile {
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
  }
}

/* Small Mobile (600px) */
@media (max-width: 600px) {
  .header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .btn-circle-profile {
    width: 40px !important;
    height: 40px !important;
  }

  .btn-theme-toggle {
    width: 40px !important;
    height: 40px !important;
  }

  @media (max-width: 380px) {
    .nav-logo span {
      display: none;
    }
  }
}

/* Stars Background */
#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
  transition: background 0.5s ease;
}

[data-theme="dark"] #stars {
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
}

/* Sun & Moon Core */
.sun-core,
.moon-core {
  position: absolute;
  top: 0;
  right: 0;
  width: 15vw;
  height: 15vw;
  max-width: 200px;
  max-height: 200px;
  min-width: 125px;
  min-height: 125px;
  border-radius: 50%;
  z-index: 1;
}

.sun-core {
  background: radial-gradient(circle, #ffffff 0%, #fffce0 35%, rgba(255, 230, 0, 0.15) 65%, transparent 80%);
  filter: blur(4px);
  box-shadow: 0 0 120px 40px rgba(255, 215, 0, 0.3), inset 0 0 80px #ffffff;
  animation: pulse-sun 6s ease-in-out infinite alternate;
}

.moon-core {
  background-color: #d2d6df;
  background-image:
    /* Oceanus Procellarum */
    radial-gradient(ellipse at 25% 40%, rgba(70, 80, 100, 0.6) 0%, rgba(70, 80, 100, 0.2) 20%, transparent 35%),
    /* Mare Imbrium */
    radial-gradient(circle at 45% 25%, rgba(55, 65, 85, 0.7) 0%, rgba(55, 65, 85, 0.2) 15%, transparent 25%),
    /* Mare Serenitatis */
    radial-gradient(circle at 65% 30%, rgba(60, 70, 90, 0.6) 0%, rgba(60, 70, 90, 0.1) 12%, transparent 20%),
    /* Mare Tranquillitatis */
    radial-gradient(circle at 75% 45%, rgba(50, 60, 80, 0.65) 0%, rgba(50, 60, 80, 0.15) 15%, transparent 25%),
    /* Mare Fecunditatis */
    radial-gradient(ellipse at 85% 60%, rgba(65, 75, 95, 0.5) 0%, rgba(65, 75, 95, 0.1) 12%, transparent 20%),
    /* Mare Nubium */
    radial-gradient(circle at 40% 65%, rgba(75, 85, 105, 0.5) 0%, transparent 22%),
    /* Tycho Crater (Bright spot with rays) */
    radial-gradient(circle at 45% 82%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 3%, transparent 15%),
    /* Copernicus Crater */
    radial-gradient(circle at 33% 43%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 2%, transparent 10%),
    /* Overall Sphere Light/Shadow */
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 1) 0%, rgba(230, 235, 245, 0.5) 40%, rgba(120, 130, 150, 0.8) 85%, rgba(40, 50, 70, 0.95) 100%);
  background-blend-mode: multiply, multiply, multiply, multiply, multiply, multiply, screen, screen, normal;
  box-shadow:
    0 0 60px 15px rgba(200, 220, 255, 0.3),
    0 0 120px 30px rgba(100, 150, 255, 0.1),
    inset -15px -15px 35px rgba(0, 0, 0, 0.7),
    inset 10px 10px 30px rgba(255, 255, 255, 0.9);
  display: none;
  animation: pulse-moon 8s ease-in-out infinite alternate-reverse;
  transform-style: preserve-3d;
}

[data-theme="dark"] .moon-core {
  display: block;
}

@keyframes pulse-moon {
  0% {
    transform: scale(0.96) rotate(-15deg);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.04) rotate(-15deg);
    opacity: 1;
  }
}

@keyframes pulse-sun {
  0% {
    transform: scale(0.96);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.04);
    opacity: 1;
  }
}

/* Sun rays */
.sun-ray {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(255, 253, 230, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  transform-origin: top right;
  border-radius: 50px;
  filter: blur(8px);
  z-index: 1;
}

@keyframes sway-ray {
  0% {
    transform: rotate(var(--angle-start)) scaleY(0.9);
    opacity: calc(var(--base-opacity) * 0.7);
  }

  100% {
    transform: rotate(var(--angle-end)) scaleY(1.1);
    opacity: var(--base-opacity);
  }
}

/* Lens Flares (Р‘Р»РёРєРё) */
.lens-flare {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 30%, transparent 70%);
  mix-blend-mode: overlay;
  z-index: 2;
  animation: float-flare var(--flare-dur) ease-in-out var(--flare-del) infinite alternate;
  pointer-events: none;
}

.lens-flare.ring {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  mix-blend-mode: color-dodge;
}

@keyframes float-flare {
  0% {
    transform: translate(-50%, -50%) scale(0.9) translate(10px, -10px);
    opacity: calc(var(--base-opacity) * 0.5);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.1) translate(-10px, 10px);
    opacity: var(--base-opacity);
  }
}

/* Nature Landscape */
.landscape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  z-index: 1;
  pointer-events: none;
}

.mtn {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transition: fill 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mtn-back {
  fill: var(--mtn-back);
  height: 85%;
}

.mtn-mid {
  fill: var(--mtn-mid);
  height: 75%;
  opacity: 0.95;
}

.mtn-mist {
  fill: var(--mtn-mist);
  height: 60%;
  opacity: 0.5;
  filter: blur(4px);
}

.mtn-forest {
  fill: var(--mtn-forest-mid);
  height: 45%;
}

.mtn-front {
  fill: var(--mtn-front);
  height: 25%;
}

.tree-parallax-wrapper {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.tree {
  width: 100%;
  height: 100%;
  fill: var(--mtn-forest-deep);
  transition: fill 0.8s ease;
  transform-origin: bottom center;
  animation: sway-veg 10s ease-in-out infinite alternate;
  /* removed z-index and absolute positioning to inherit from wrapper */
}

/* Base Ground Fade */
.landscape::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--sky-bottom), transparent);
  z-index: 4;
}

@keyframes sway-veg {
  0% {
    transform: rotate(-2deg) skewX(-1deg);
  }

  100% {
    transform: rotate(2deg) skewX(1deg);
  }
}

/* Nature Particles (Leaves) */
.leaf-particle {
  position: absolute;
  background-color: var(--leaf-color);
  border-radius: 2px 10px;
  pointer-events: none;
  z-index: 1;
  animation: fall-and-sway var(--leaf-dur) linear var(--leaf-del) infinite;
}

@keyframes fall-and-sway {
  0% {
    transform: translate(0, -20px) rotate(0deg) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
    scale: 1;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translate(var(--leaf-x, 100px), 100vh) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

[data-theme="dark"] .leaf-particle {
  display: none;
}

[data-theme="dark"] .sun-core,
[data-theme="dark"] .sun-ray,
[data-theme="dark"] .lens-flare {
  display: none;
}

:root:not([data-theme="dark"]) .star {
  display: none;
}

.star {
  position: absolute;
  background-color: var(--star-color);
  border-radius: 50%;
  box-shadow: var(--star-glow);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes twinkle {
  0% {
    opacity: 0.1;
    scale: 0.8;
  }

  100% {
    opacity: 1;
    scale: 1.2;
  }
}

@keyframes drift {
  0% {
    translate: 0 0;
  }

  100% {
    translate: 0 -30px;
  }
}

@keyframes sway {
  0% {
    transform: rotate(-15deg) translateY(0);
  }

  100% {
    transform: rotate(5deg) translateY(20px);
  }
}

/* Hero */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 100px;
  /* navbar clearance */
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(32px, 9vw, 84px);
  /* Slightly larger max size */
  line-height: 1.05;
  letter-spacing: -0.04em;
  /* Tighter tracking for main title */
  margin-bottom: var(--space-3);
  max-width: 1000px;
  /* Hero Legibility Backdrop Glow */
  position: relative;
}

.hero-title::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

[data-theme="dark"] .hero-title::after {
  background: radial-gradient(ellipse at center, rgba(2, 6, 23, 0.6) 0%, transparent 70%);
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    padding: 0 var(--space-4);
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Countdown */
#countdown {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-grid {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-2);
}

@media (max-width: 480px) {
  .countdown-grid {
    gap: var(--space-2);
  }

  .countdown-item {
    min-width: calc(50% - var(--space-2));
    padding: var(--space-2);
  }

  .countdown-num {
    font-size: 42px;
  }
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  padding: var(--space-3);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.countdown-num {
  font-size: 56px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.countdown-unit {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* Section Layout Details */
.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  /* Slightly larger */
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Ecosystem */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.eco-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.eco-icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.eco-title {
  font-size: 24px;
  margin-bottom: var(--space-1);
}

.eco-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eco-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.eco-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.eco-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
}

.eco-features li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.feat-card {
  display: flex;
  flex-direction: column;
}

.feat-title {
  font-size: 20px;
  margin-bottom: var(--space-2);
}

.feat-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.feat-desc {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 800px;
  margin: 0 auto;
}

.tl-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}

.tl-item-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.tl-date {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.tl-title {
  font-size: 20px;
}

.tl-desc {
  color: var(--text-secondary);
  font-size: 16px;
}

@media (max-width: 600px) {
  .tl-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.stack-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  background-color: var(--bg-card);
}

.stack-logo {
  font-size: 32px;
  color: var(--accent);
}

.stack-info {
  display: flex;
  flex-direction: column;
}

.stack-name {
  font-weight: 500;
  font-size: 18px;
}

.stack-role {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Notify */
#notify {
  border-top: 1px solid var(--border-light);
}

.notify-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.email-form {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.email-input {
  flex-grow: 1;
  height: 48px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-light);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  background-color: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease;
  color: var(--text-main);
}

.email-input::placeholder {
  color: var(--text-secondary);
}

.email-input:focus {
  border-color: var(--text-main);
}

@media (max-width: 480px) {
  .email-form {
    flex-direction: column;
  }

  .btn-submit {
    width: 100%;
  }
}

.form-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.success-msg {
  display: none;
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: var(--space-3);
  border-radius: var(--radius-card);
  font-weight: 500;
  margin-top: var(--space-3);
}

.success-msg.show {
  display: block;
}

/* Footer */
footer {
  padding: var(--space-5) 0 max(var(--space-5), env(safe-area-inset-bottom));
  background-color: var(--bg-page);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.footer-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  padding: 12px 16px;
  min-height: 44px; /* Apple HIG standard tap target */
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 14px;
}

    /* 6. LANGUAGE SELECTOR AND BOTTOM BAR */
    .lang-selector {
      position: relative;
      background-color: var(--bg-card);
      border: none;
      border-radius: var(--radius-btn);
      height: 48px;
      padding: 0 14px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 600;
      color: var(--text-main);
      user-select: none;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .lang-selector:active { transform: scale(0.97); }
    .lang-selector:hover { background-color: rgba(255, 255, 255, 0.8); }
    [data-theme="dark"] .lang-selector:hover { background-color: var(--border-light); }

    .lang-icon { color: var(--text-secondary); width: 20px; height: 20px; }
    .lang-arrow { color: var(--text-secondary); width: 16px; height: 16px; transition: transform 0.2s ease; }
    .lang-selector.open .lang-arrow { transform: rotate(180deg); }

    .lang-dropdown {
      position: absolute;
      top: calc(100% + 12px);
      right: 0;
      background-color: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(24px) saturate(200%);
      -webkit-backdrop-filter: blur(24px) saturate(200%);
      border: none;
      border-radius: 20px;
      padding: 10px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
      min-width: 180px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-12px) scale(0.95);
      transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.1);
      z-index: 100;
    }

    [data-theme="dark"] .lang-dropdown {
      background-color: rgba(15, 23, 42, 0.98);
      border: none;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    .lang-selector.open .lang-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .lang-option {
      padding: 12px 16px;
      border-radius: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--text-main);
      font-weight: 500;
      transition: background-color 0.2s ease;
    }

    .lang-option:hover { background-color: var(--bg-page); }
    .lang-option.active { color: var(--accent); background-color: rgba(2, 54, 242, 0.05); }

    .lang-option-content { display: flex; align-items: center; gap: 12px; flex-grow: 1; }
    .lang-flag { font-size: 18px; line-height: 1; }
    .lang-label { font-size: 14px; }
    .lang-label-text { font-size: 14px; }
    .lang-option-check { color: var(--accent); width: 18px; height: 18px; opacity: 0; transform: scale(0.8); transition: all 0.2s ease; }
    .lang-option.active .lang-option-check { opacity: 1; transform: scale(1); }

    .bottom-bar {
      position: fixed;
      bottom: max(var(--space-4), env(safe-area-inset-bottom));
      left: 50%;
      transform: translateX(-50%);
      z-index: 2000;
      width: calc(100% - var(--space-6));
      max-width: 500px;
      padding: var(--space-2) var(--space-4);
      background-color: var(--bg-nav);
      backdrop-filter: blur(28px) saturate(200%);
      -webkit-backdrop-filter: blur(28px) saturate(200%);
      border: none;
      border-radius: 100px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-3);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
      transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
      opacity: 0;
      pointer-events: none;
      transform: translateX(-50%) translateY(20px);
    }

    .bottom-bar.active {
      opacity: 1;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0);
    }

    .bottom-bar-text {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    @media (max-width: 600px) {
      .bottom-bar {
        bottom: max(var(--space-3), calc(12px + env(safe-area-inset-bottom)));
        width: calc(100% - var(--space-4));
        padding: 8px 12px 8px 16px;
        gap: var(--space-2);
      }
      .bottom-bar-text { font-size: 14px; }
      .bottom-bar .btn { min-width: 100px; height: 40px; font-size: 14px; }
    }

    /* 7. AUTH, PROFILE, AND SECONDARY PAGES STYLES */
    body:has(.login-container),
    body:has(.register-container),
    body:has(.warning-box) {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .login-container, .register-container {
      width: 100%;
      max-width: 440px;
      padding: 100px 20px 40px;
      z-index: 10;
    }

    @media (min-height: 700px) {
      .login-container, .register-container { padding-top: 40px; }
    }

    .logo-container {
      display: flex; align-items: center; justify-content: center; gap: 12px;
      margin-bottom: 32px; text-decoration: none; color: var(--text-main);
    }
    .logo-container img { width: 40px; height: 40px; }
    .logo-container span { font-size: 24px; font-weight: 700; }

    .card h1 { font-size: 28px; margin-bottom: 8px; font-weight: 600; letter-spacing: -0.03em; }
    .card p.subtitle { color: var(--text-secondary); font-size: 16px; margin-bottom: 32px; }

    /* Auth Buttons */
    .login-container .btn-primary,
    .register-container .btn-primary,
    body:has(.warning-box) .btn-danger {
      width: 100%; height: 52px; border: none; border-radius: var(--radius-btn);
      font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 12px;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }

    .login-container .btn-secondary,
    .register-container .btn-secondary {
      width: 100%; height: 48px; border-radius: var(--radius-btn);
      font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 12px;
      display: flex; align-items: center; justify-content: center; text-decoration: none;
    }

    .form-group { margin-bottom: 20px; text-align: left; }
    label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
    input {
      width: 100%; height: 52px; padding: 0 16px; border-radius: var(--radius-btn);
      border: 1px solid var(--border-light); background: var(--bg-card);
      backdrop-filter: blur(8px); color: var(--text-main); font-family: inherit;
      font-size: 16px; box-sizing: border-box; transition: all 0.3s ease;
    }
    input:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.5); }
    [data-theme="dark"] input:focus { background: rgba(15, 23, 42, 0.8); }

    .header-container {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: var(--space-3) var(--space-5);
      z-index: 1000;
      background-color: var(--bg-nav);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      transition: all 0.3s ease;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .back-btn, .back-to-site {
      display: flex; align-items: center; gap: 8px; text-decoration: none;
      color: var(--text-main); font-size: 14px; font-weight: 600; height: 48px;
      padding: 0 20px; background: var(--bg-card);
      border-radius: var(--radius-btn); transition: all 0.3s ease;
    }

    .profile-container {
      max-width: 1000px; margin: 100px auto 60px; padding: 0 24px;
      display: grid; grid-template-columns: 320px 1fr; gap: 40px;
    }
    .avatar-placeholder {
      width: 120px; height: 120px; background: var(--accent-gradient);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      margin: 0 auto 24px; color: white; font-size: 40px; font-weight: 700;
      box-shadow: 0 12px 24px rgba(2, 54, 242, 0.2);
      position: relative; overflow: hidden;
    }
    .user-avatar-img {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      object-fit: cover; border-radius: 50%; display: none;
    }
    .avatar-placeholder.has-image #userInitial { display: none; }
    .avatar-placeholder.has-image .user-avatar-img { display: block; }

    .avatar-upload-trigger {
      position: absolute; bottom: 0; right: 0;
      width: 36px; height: 36px;
      background: var(--bg-card);
      border: 1px solid var(--border-light);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: var(--text-main);
      box-shadow: var(--shadow-sm);
      transition: all 0.2s ease;
      z-index: 5;
    }
    .avatar-upload-trigger:hover {
      transform: scale(1.1);
      background: var(--accent);
      color: white;
    }

    .avatar-spinner {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.4);
      display: none; align-items: center; justify-content: center;
      color: white; z-index: 4;
    }
    .avatar-placeholder.is-loading .avatar-spinner { display: flex; }

    @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    .spin { animation: spin 1s linear infinite; }
    .stats { display: flex; justify-content: center; gap: 24px; margin-top: 32px; border-top: 1px solid var(--border-light); padding-top: 24px; }
    .stat-value { display: block; font-size: 20px; font-weight: 700; color: var(--accent); }

    .trip-item {
      display: flex; align-items: center; gap: 16px; padding: 16px;
      border-radius: 16px; background: rgba(255, 255, 255, 0.2); margin-bottom: 12px; transition: all 0.3s ease;
    }
    [data-theme="dark"] .trip-item { background: rgba(0, 0, 0, 0.1); }
    .trip-item:hover { background: rgba(255, 255, 255, 0.3); transform: translateX(4px); }
    .trip-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(2, 54, 242, 0.1); display: flex; align-items: center; justify-content: center; color: var(--accent); }

    .danger-zone { margin-top: 20px; border: 1px solid rgba(239, 68, 68, 0.2); background: rgba(239, 68, 68, 0.02); padding: 20px; border-radius: 16px; }
    .btn-danger {
      background-color: transparent; color: var(--danger); border: 1px solid var(--danger);
      padding: 0 20px; height: 44px; border-radius: var(--radius-btn); cursor: pointer;
      font-weight: 600; transition: all 0.3s ease; margin-top: 12px;
    }
    .btn-danger:hover { background-color: var(--danger); color: white; }

    .modal-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px);
      z-index: 2000; display: none; align-items: center; justify-content: center;
    }
    .modal { background: var(--bg-card); border-radius: var(--radius-card); padding: 40px; max-width: 400px; width: 100%; text-align: center; }

    .warning-box { background: rgba(239, 68, 68, 0.05); border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 16px; padding: 20px; margin-bottom: 32px; text-align: left; }

    /* Auth Footer */
    .auth-footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
    .auth-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }
    .auth-footer a:hover { text-decoration: underline; }

    /* Premium Card / Notify */
    .notify-container.premium-card {
      background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(16px);
      border: none; border-radius: 32px; padding: 60px 40px; max-width: 800px; margin: 0 auto; text-align: center; overflow: hidden;
    }
    [data-theme="dark"] .notify-container.premium-card { background: rgba(15, 23, 42, 0.3); }

    .subscribe-form {
      display: flex; gap: 12px; padding: 8px; background: var(--bg-card); border: none; border-radius: 100px; transition: all 0.3s ease;
    }
    .subscribe-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(2, 54, 242, 0.1); transform: translateY(-2px); }

    .input-group { flex: 1; display: flex; align-items: center; padding-left: 20px; gap: 12px; }
    .btn-subscribe { height: 52px; padding: 0 32px; border-radius: 100px; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; white-space: nowrap; }

    .success-overlay {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-card);
      display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.5s ease; border-radius: 100px; z-index: 2;
    }
    .success-overlay.active { opacity: 1; visibility: visible; }

    @media (max-width: 600px) {
      .header-container { padding: 16px 24px; }
      .login-container, .register-container { padding: 100px 16px 40px; }
      .profile-container { grid-template-columns: 1fr; margin-top: 80px; }
      .subscribe-form { flex-direction: column; background: transparent; padding: 0; }
      .input-group { background: var(--bg-card); border-radius: 16px; padding: 12px 16px; }
      .btn-subscribe { width: 100%; justify-content: center; border-radius: 16px; }
    }

    /* 8. ADMIN PANEL */
    .admin-logo-link {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }

    .admin-logo-img {
      height: 36px;
      width: auto;
      object-fit: contain;
    }

    .admin-logo-text {
      display: flex;
      flex-direction: column;
      gap: 1px;
    }

    .admin-logo-title {
      font-size: 17px;
      font-weight: 700;
      color: var(--text-main);
      line-height: 1;
    }

    .admin-logo-sub {
      font-size: 11px;
      font-weight: 500;
      color: var(--accent);
      letter-spacing: 0.05em;
      text-transform: uppercase;
      line-height: 1;
    }

    .admin-logout-btn {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 14px;
      height: 40px !important;
      min-width: 0 !important;
      padding: 0 16px !important;
    }

    /* Main layout */
    .admin-main {
      max-width: 860px;
      margin: 0 auto;
      padding: 110px 24px 80px;
    }

    /* Hero */
    .admin-hero {
      text-align: center;
      margin-bottom: 36px;
    }

    .admin-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 14px;
      border-radius: 20px;
      background: rgba(59, 130, 246, 0.08);
      border: 1px solid rgba(59, 130, 246, 0.18);
      color: var(--accent);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    .admin-hero-title {
      font-size: clamp(24px, 4vw, 38px);
      font-weight: 700;
      color: var(--text-main);
      letter-spacing: -0.03em;
      margin-bottom: 10px;
    }

    .admin-hero-subtitle {
      font-size: 15px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    /* Toolbar */
    .admin-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      gap: 12px;
    }

    .admin-updated-text {
      font-size: 12px;
      color: var(--text-secondary);
      font-family: 'Courier New', monospace;
    }

    .admin-refresh-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      height: 36px !important;
      min-width: 0 !important;
      padding: 0 14px !important;
    }

    /* Section card */
    .admin-section {
      padding: 24px 24px 20px;
      background-color: var(--bg-card);
      border-radius: var(--radius-card);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      margin-bottom: 24px;
    }

    .admin-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border-light);
      gap: 12px;
    }

    .admin-section-title-wrap {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .admin-section-icon {
      font-size: 26px;
      line-height: 1;
      flex-shrink: 0;
    }

    .admin-section-title {
      font-size: 17px;
      font-weight: 700;
      color: var(--text-main);
      margin: 0 0 2px;
    }

    .admin-apk-items {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    /* Single APK row */
    .admin-apk-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid var(--border-light);
      background: rgba(255, 255, 255, 0.03);
      transition: all 0.2s ease;
    }

    .admin-apk-item:hover {
      background: rgba(59, 130, 246, 0.04);
      border-color: rgba(59, 130, 246, 0.18);
      transform: translateY(-1px);
    }

    .admin-apk-info {
      flex: 1;
      min-width: 0;
    }

    .admin-apk-name-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 5px;
    }

    .admin-apk-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-family: 'Courier New', monospace;
    }

    .admin-apk-badge {
      background: var(--accent);
      color: #fff;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.08em;
      padding: 2px 7px;
      border-radius: 10px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .admin-apk-meta {
      display: flex;
      gap: 14px;
      font-size: 12px;
      color: var(--text-secondary);
    }

    .admin-apk-btn {
      height: 38px !important;
      min-width: 0 !important;
      padding: 0 16px !important;
      font-size: 13px !important;
      gap: 6px;
      border-radius: 10px !important;
      text-decoration: none;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
    }

    /* Skeleton loading */
    .admin-skeleton {
      height: 64px;
      border-radius: 14px;
      background: linear-gradient(90deg,
          var(--border-light) 25%,
          rgba(255, 255, 255, 0.06) 50%,
          var(--border-light) 75%);
      background-size: 200% 100%;
      animation: admin-shimmer 1.6s ease-in-out infinite;
    }

    @keyframes admin-shimmer {
      0% {
        background-position: 200% 0;
      }
      100% {
        background-position: -200% 0;
      }
    }

    /* Responsive */
    @media (max-width: 600px) {
      .admin-main {
        padding: 90px 16px 60px;
      }
      .admin-section {
        padding: 18px 16px 16px;
      }
      .admin-apk-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
      }
      .admin-apk-btn {
        width: 100% !important;
        justify-content: center;
      }
      .admin-logo-sub {
        display: none;
      }
    }


/* 10. AUTH & ACTION PAGES */
.container-auth {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: var(--space-4);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-premium);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-6);
  border-radius: var(--radius-card);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-weight: 700;
  font-size: 24px;
  color: var(--text-main);
  text-decoration: none;
}

.logo-container img {
  width: 64px;
  height: 64px;
}

.warning-box {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin: var(--space-4) 0;
  text-align: left;
}

.warning-box p {
  color: var(--system-red);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.warning-box ul {
  list-style: none;
  padding: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.warning-box li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.warning-box li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--system-red);
}

.actions-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.header-container {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 48px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .header-container {
    padding: var(--space-2) var(--space-4);
  }
}

[data-theme="dark"] .header-container {
  background: rgba(2, 6, 23, 0.4);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:hover {
  transform: translateX(-4px);
  background: var(--secondary-system-background);
  box-shadow: var(--shadow-sm);
}

.btn-danger {
  background-color: var(--system-red);
  color: #FFFFFF;
}

.btn-danger:hover {
  background-color: #D70015;
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.3);
}
