:root {
  /* Base palette */
  --bg-deep: #03060f;
  --bg-mid: #070d1c;

  /* Liquid glass layers */
  --glass-fill: rgba(255, 255, 255, 0.055);
  --glass-fill-hover: rgba(255, 255, 255, 0.09);
  --glass-fill-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-hover: rgba(255, 255, 255, 0.25);
  --glass-highlight: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(0, 0, 0, 0.45);
  --glass-inner-glow: rgba(255, 255, 255, 0.04);

  /* Accent palette */
  --accent-blue: #7eb8f7;
  --accent-sky: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-violet: #a78bfa;
  --accent-gold: #fcd34d;
  --accent-green: #6ee7b7;
  --accent-rose: #fca5a5;
  --accent-cyan: #67e8f9;

  /* Glow */
  --glow-blue: rgba(126, 184, 247, 0.30);
  --glow-indigo: rgba(129, 140, 248, 0.25);
  --glow-violet: rgba(167, 139, 250, 0.20);

  /* Text */
  --text-primary: #eef3ff;
  --text-secondary: rgba(238, 243, 255, 0.55);
  --text-muted: rgba(238, 243, 255, 0.28);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 14px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar — always visible */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.30);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.theme-light {
  scrollbar-color: rgba(0, 0, 0, 0.30) transparent;
}

body.theme-light ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
}

body.theme-light ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.30);
}

body.theme-light ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.55);
}


/* ===== BACKGROUND ===== */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Background image */
.bg-img {
  position: absolute;
  inset: 0;
  /* background set by JS */
  opacity: 0.18;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* Deep radial base */
.bg-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(14, 40, 120, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(20, 30, 100, 0.40) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 90%, rgba(8, 20, 70, 0.50) 0%, transparent 60%);
  z-index: 1;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
  will-change: transform;
  z-index: 2;
}

.bg-blob-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, #0d2b7a 0%, transparent 65%);
  top: -250px;
  left: -150px;
  animation: blobDrift 22s ease-in-out infinite;
}

.bg-blob-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #1a1f6e 0%, transparent 65%);
  top: 5%;
  right: -180px;
  animation: blobDrift 28s ease-in-out infinite reverse;
  animation-delay: -9s;
}

.bg-blob-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #0a1e52 0%, transparent 65%);
  bottom: 0%;
  left: 15%;
  animation: blobDrift 20s ease-in-out infinite;
  animation-delay: -14s;
}

.bg-blob-4 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #251560 0%, transparent 65%);
  top: 55%;
  left: 42%;
  animation: blobDrift 24s ease-in-out infinite reverse;
  animation-delay: -6s;
  opacity: 0.35;
}

@keyframes blobDrift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(45px, -35px) scale(1.07);
  }

  50% {
    transform: translate(-25px, 55px) scale(0.93);
  }

  75% {
    transform: translate(35px, 25px) scale(1.04);
  }
}

/* Grain texture */
.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  z-index: 3;
}

/* ===== LIQUID GLASS MIXIN ===== */
/* Core glass card вЂ” real liquid glass with specular layers */
.glass {
  position: relative;
  background: var(--glass-fill);
  backdrop-filter: blur(32px) saturate(1.6) brightness(1.08);
  -webkit-backdrop-filter: blur(32px) saturate(1.6) brightness(1.08);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
  /* Outer glass shadow */
  box-shadow:
    0 8px 32px var(--glass-shadow),
    0 1px 0 var(--glass-highlight) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset;
}

/* Top specular highlight вЂ” simulates light hitting glass edge */
.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.30) 30%,
      rgba(255, 255, 255, 0.50) 50%,
      rgba(255, 255, 255, 0.30) 70%,
      transparent);
  pointer-events: none;
  z-index: 1;
}

/* Inner glow layer вЂ” gives sense of thickness */
.glass::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--r-lg) - 1px);
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
  z-index: 0;
}

.glass:hover {
  background: var(--glass-fill-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-7px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(126, 184, 247, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 3rem);
  max-width: 1180px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(10, 8, 22, 0.45);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-xl);
  /* Glass highlight on top */
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset;
  transition: all 0.4s ease;
}

/* Adjust navbar position when tech works banner is visible */
body.tech-works-visible .navbar {
  top: calc(16px + 48px);
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.28) 40%,
      rgba(255, 255, 255, 0.45) 50%,
      rgba(255, 255, 255, 0.28) 60%,
      transparent);
  border-radius: 4px;
}

.navbar.scrolled {
  background: rgba(8, 6, 18, 0.72);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 12px 50px rgba(0, 0, 0, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7 60%, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  filter: drop-shadow(0 0 18px rgba(126, 184, 247, 0.5));
  transition: filter 0.3s ease;
}

.nav-logo:hover {
  filter: drop-shadow(0 0 28px rgba(126, 184, 247, 0.8));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.05rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
  letter-spacing: 0.1px;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.nav-links a.active {
  color: #c8e0ff;
  background: rgba(126, 184, 247, 0.10);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ===== MENU BUTTON ===== */
#menu-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset;
}

#menu-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
}

#menu-btn.active .hlines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#menu-btn.active .hlines span:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .hlines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hlines {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 20px;
}

.hlines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ===== SETTINGS PANEL ===== */
#settings-panel {
  position: fixed;
  width: 300px;
  background: rgba(10, 8, 22, 0.95);
  backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

#settings-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.p-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}

.p-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.p-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.p-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.p-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.ico-wrap {
  position: relative;
  width: 18px;
  height: 18px;
}

.ico-wrap svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.ico-sun {
  opacity: 0;
}

.p-info {
  display: flex;
  flex-direction: column;
}

.p-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.p-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tog {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.tog.on {
  background: rgba(126, 184, 247, 0.25);
  border-color: rgba(126, 184, 247, 0.35);
}

.tog-knob {
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: all 0.25s ease;
}

.tog.on .tog-knob {
  left: 23px;
  background: var(#ffffff);
}

.p-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.5rem 0;
}

.p-foot {
  height: 8px;
}

.bg-preview {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.bg-option {
  width: 48px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  background-size: cover;
  background-position: center;
}

.bg-option:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.bg-option.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(126, 184, 247, 0.4);
}

.btn-upload {
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(126, 184, 247, 0.15);
  border: 1px solid rgba(126, 184, 247, 0.3);
  color: var(--accent-blue);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-upload:hover {
  background: rgba(126, 184, 247, 0.25);
  border-color: rgba(126, 184, 247, 0.5);
}

/* ===== THEME TABS ===== */
.theme-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0.1rem 0 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-sm);
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.theme-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.38rem 0.3rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.theme-tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.theme-tab.active {
  background: rgba(126, 184, 247, 0.18);
  color: var(--accent-blue);
  border: 1px solid rgba(126, 184, 247, 0.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

/* ===== CUSTOM THEME PANEL ===== */
.custom-theme-panel {
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-sm);
}

.custom-theme-panel.visible {
  display: flex;
}

.ctp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ctp-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
  flex: 1;
}

.ctp-color-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ctp-color {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 2px;
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.ctp-color:hover {
  border-color: rgba(126, 184, 247, 0.5);
  transform: scale(1.08);
}

.ctp-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.ctp-color::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.ctp-hex {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: monospace;
  min-width: 52px;
  text-align: right;
}

.ctp-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.ctp-btn {
  flex: 1;
  padding: 0.38rem 0;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ctp-reset {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.ctp-reset:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
}

.ctp-apply {
  background: rgba(126, 184, 247, 0.18);
  border-color: rgba(126, 184, 247, 0.3);
  color: var(--accent-blue);
}

.ctp-apply:hover {
  background: rgba(126, 184, 247, 0.28);
  border-color: rgba(126, 184, 247, 0.5);
}

/* Light theme overrides */
body.theme-light {
  --bg-deep: #e8edf5;
  --bg-mid: #f0f4fb;
  --glass-fill: rgba(255, 255, 255, 0.55);
  --glass-fill-hover: rgba(255, 255, 255, 0.70);
  --glass-fill-strong: rgba(255, 255, 255, 0.60);
  --glass-border: rgba(0, 0, 0, 0.09);
  --glass-border-hover: rgba(0, 0, 0, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.80);
  --glass-shadow: rgba(0, 0, 0, 0.12);
  --glass-inner-glow: rgba(255, 255, 255, 0.50);
  --text-primary: #0d1829;
  --text-secondary: rgba(13, 24, 41, 0.60);
  --text-muted: rgba(13, 24, 41, 0.35);
  --accent-blue: #2d7dd2;
  --accent-sky: #0ea5e9;
  --accent-indigo: #5b6ef5;
  --glow-blue: rgba(45, 125, 210, 0.20);
}

body.theme-light .navbar {
  background: rgba(240, 244, 251, 0.80);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.theme-light .navbar.scrolled {
  background: rgba(232, 237, 245, 0.92);
}

body.theme-light #settings-panel {
  background: rgba(240, 244, 251, 0.97);
  border-color: rgba(0, 0, 0, 0.10);
}

body.theme-light .bg-blob-1 {
  background: radial-gradient(circle, #a8c8ff 0%, transparent 65%);
}

body.theme-light .bg-blob-2 {
  background: radial-gradient(circle, #c4d8f8 0%, transparent 65%);
}

body.theme-light .bg-blob-3 {
  background: radial-gradient(circle, #b8d0f5 0%, transparent 65%);
}

body.theme-light .bg-blob-4 {
  background: radial-gradient(circle, #d0b8fa 0%, transparent 65%);
}

body.theme-light .bg-wrap::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(180, 210, 255, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(200, 220, 255, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 90%, rgba(160, 200, 250, 0.40) 0%, transparent 60%);
}

body.theme-light .theme-tab {
  color: rgba(13, 24, 41, 0.4);
}

body.theme-light .theme-tab:hover {
  color: rgba(13, 24, 41, 0.65);
  background: rgba(0, 0, 0, 0.04);
}

body.theme-light .theme-tab.active {
  background: rgba(45, 125, 210, 0.14);
  color: #2d7dd2;
  border-color: rgba(45, 125, 210, 0.25);
}

body.theme-light .custom-theme-panel {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.07);
}

body.theme-light .ctp-color {
  border-color: rgba(0, 0, 0, 0.15);
}

body.theme-light .ctp-btn {
  border-color: rgba(0, 0, 0, 0.10);
}

body.theme-light .ctp-reset {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(13, 24, 41, 0.45);
}

body.theme-light .ctp-reset:hover {
  background: rgba(0, 0, 0, 0.08);
}

body.theme-light .p-sep {
  background: rgba(0, 0, 0, 0.08);
}

body.theme-light .theme-tabs {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .tog {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

body.theme-light .tog.on {
  background: rgba(45, 125, 210, 0.20);
  border-color: rgba(45, 125, 210, 0.30);
}

body.theme-light .nav-logo {
  filter: drop-shadow(0 0 10px rgba(45, 125, 210, 0.3));
}

body.theme-light .btn-nav-primary {
  color: #fff;
}

/* в”Ђв”Ђ Light theme: hardcoded-white overrides в”Ђв”Ђ */

/* Navbar outline button */
body.theme-light .btn-nav-outline {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(13, 24, 41, 0.65);
}

body.theme-light .btn-nav-outline:hover {
  border-color: rgba(0, 0, 0, 0.28);
  background: rgba(0, 0, 0, 0.05);
  color: rgba(13, 24, 41, 0.90);
}

body.theme-light #menu-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

body.theme-light #menu-btn:hover {
  background: rgba(0, 0, 0, 0.10);
  border-color: rgba(0, 0, 0, 0.20);
}

body.theme-light .hlines span {
  background: rgba(13, 24, 41, 0.75);
}

/* Glass cards */
body.theme-light .glass {
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(0, 0, 0, 0.05) inset;
}

body.theme-light .glass:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.14),
    0 0 30px rgba(45, 125, 210, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(0, 0, 0, 0.05) inset;
}

body.theme-light .glass::before {
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.70) 30%,
      rgba(255, 255, 255, 0.90) 50%,
      rgba(255, 255, 255, 0.70) 70%,
      transparent);
}

body.theme-light .glass::after {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.45) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.03) 100%);
}

/* Hero season pill */
body.theme-light .hero-season-pill {
  background: rgba(45, 125, 210, 0.08);
  border-color: rgba(45, 125, 210, 0.22);
  color: #1a5fa8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* Hero badges */
body.theme-light .badge-vanilla {
  background: rgba(45, 125, 210, 0.10);
  border-color: rgba(45, 125, 210, 0.25);
  color: #1a5fa8;
}

body.theme-light .badge-devil {
  background: rgba(220, 60, 60, 0.10);
  border-color: rgba(220, 60, 60, 0.25);
  color: #b33030;
}

body.theme-light .badge-private {
  background: rgba(16, 130, 90, 0.10);
  border-color: rgba(16, 130, 90, 0.22);
  color: #0e7a56;
}

/* Hero title */
body.theme-light .hero-title-em {
  color: #0d1829;
  -webkit-text-fill-color: #0d1829;
}

/* Hero CTA glass button */
body.theme-light .btn-glass {
  color: rgba(13, 24, 41, 0.85);
  background: rgba(255, 255, 255, 0.60);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 18px rgba(0, 0, 0, 0.09);
}

body.theme-light .btn-glass:hover {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(0, 0, 0, 0.20);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Scroll mouse */
body.theme-light .scroll-mouse {
  border-color: rgba(0, 0, 0, 0.18);
}

/* Stat icon wraps */
body.theme-light .si-blue {
  background: rgba(45, 125, 210, 0.12);
  box-shadow: 0 0 20px rgba(45, 125, 210, 0.14), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.theme-light .si-rose {
  background: rgba(200, 60, 60, 0.10);
  box-shadow: 0 0 20px rgba(200, 60, 60, 0.12), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.theme-light .si-indigo {
  background: rgba(91, 110, 245, 0.10);
  box-shadow: 0 0 20px rgba(91, 110, 245, 0.12), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

/* Feature icon wraps */
body.theme-light .fi-1 {
  background: rgba(45, 125, 210, 0.12);
  box-shadow: 0 0 16px rgba(45, 125, 210, 0.15), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.theme-light .fi-2 {
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.15), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.theme-light .fi-3 {
  background: rgba(91, 110, 245, 0.12);
  box-shadow: 0 0 16px rgba(91, 110, 245, 0.15), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.theme-light .fi-4 {
  background: rgba(16, 140, 100, 0.12);
  box-shadow: 0 0 16px rgba(16, 140, 100, 0.15), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.theme-light .fi-5 {
  background: rgba(130, 90, 240, 0.12);
  box-shadow: 0 0 16px rgba(130, 90, 240, 0.15), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.theme-light .fi-6 {
  background: rgba(20, 185, 235, 0.12);
  box-shadow: 0 0 16px rgba(20, 185, 235, 0.15), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

/* News tags */
body.theme-light .tag-announce {
  background: rgba(45, 125, 210, 0.10);
  border-color: rgba(45, 125, 210, 0.25);
  color: #1a5fa8;
}

body.theme-light .tag-event {
  background: rgba(16, 140, 100, 0.10);
  border-color: rgba(16, 140, 100, 0.25);
  color: #0e7a56;
}

/* Thanks cards */
body.theme-light .tcard-avatar-placeholder {
  background: rgba(45, 125, 210, 0.10);
  border-color: rgba(45, 125, 210, 0.25);
}

body.theme-light .tcard-avatar-rose {
  background: rgba(200, 60, 60, 0.10);
  border-color: rgba(200, 60, 60, 0.25);
}

body.theme-light .tcard-badge-gold {
  background: rgba(200, 150, 10, 0.10);
  border-color: rgba(200, 150, 10, 0.25);
  color: #a07810;
}

body.theme-light .tcard-badge-blue {
  background: rgba(45, 125, 210, 0.10);
  border-color: rgba(45, 125, 210, 0.25);
}

body.theme-light .tcard-badge-rose {
  background: rgba(200, 60, 60, 0.10);
  border-color: rgba(200, 60, 60, 0.25);
  color: #b33030;
}

body.theme-light .tcard:nth-child(1):hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14), 0 0 40px rgba(180, 130, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

body.theme-light .tcard:nth-child(2):hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14), 0 0 40px rgba(45, 125, 210, 0.08), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

body.theme-light .tcard:nth-child(3):hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14), 0 0 40px rgba(200, 60, 60, 0.08), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

/* Social buttons */
body.theme-light .social-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.10);
  color: rgba(13, 24, 41, 0.55);
  box-shadow: none;
}

body.theme-light .social-btn:hover {
  background: rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.18);
  color: rgba(13, 24, 41, 0.85);
}

/* Footer */
body.theme-light footer {
  border-top-color: rgba(0, 0, 0, 0.09);
  background: rgba(232, 237, 245, 0.80);
}

body.theme-light footer::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.80) 40%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.80) 60%, transparent);
}

body.theme-light .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .footer-logo {
  background: linear-gradient(135deg, #1a4a8a, #2d7dd2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Divider */
body.theme-light .soft-divider {
  background: linear-gradient(90deg, transparent 3%, rgba(0, 0, 0, 0.09) 50%, transparent 97%);
}

/* Modal */
body.theme-light .modal-backdrop {
  background: rgba(180, 195, 220, 0.55);
}

body.theme-light .modal-card {
  background: rgba(240, 244, 251, 0.94);
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20), 0 1px 0 rgba(255, 255, 255, 0.90) inset;
}

body.theme-light .modal-card::before {
  background: linear-gradient(90deg, transparent, rgba(45, 125, 210, 0.40), rgba(14, 165, 233, 0.35), transparent);
}

body.theme-light .modal-close-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.11);
  color: rgba(13, 24, 41, 0.45);
}

body.theme-light .modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.10);
  border-color: rgba(0, 0, 0, 0.20);
  color: rgba(13, 24, 41, 0.85);
}

body.theme-light .modal-callout {
  background: rgba(45, 125, 210, 0.07);
  border-color: rgba(45, 125, 210, 0.20);
  color: #1a5fa8;
}

body.theme-light .modal-date {
  color: #8a6500;
}

body.theme-light .modal-glow {
  background: radial-gradient(circle, rgba(45, 125, 210, 0.12), transparent 65%);
}

body.theme-light .modal-glow-2 {
  background: radial-gradient(circle, rgba(91, 110, 245, 0.08), transparent 65%);
}

/* Settings panel details */
body.theme-light .p-icon {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.09);
}

body.theme-light .btn-upload {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(13, 24, 41, 0.70);
}

body.theme-light .btn-upload:hover {
  background: rgba(0, 0, 0, 0.10);
  border-color: rgba(0, 0, 0, 0.20);
  color: rgba(13, 24, 41, 0.90);
}

body.theme-light .bg-option {
  border-color: rgba(0, 0, 0, 0.14);
}

body.theme-light .bg-option:hover {
  border-color: rgba(0, 0, 0, 0.28);
}

body.theme-light .bg-option.active {
  border-color: #2d7dd2;
  box-shadow: 0 0 10px rgba(45, 125, 210, 0.30);
}

body.theme-light .ctp-apply {
  background: rgba(45, 125, 210, 0.15);
  border-color: rgba(45, 125, 210, 0.30);
  color: #1a5fa8;
}

body.theme-light .ctp-apply:hover {
  background: rgba(45, 125, 210, 0.25);
}

/* Stat card accent lines */
body.theme-light .stat-card-1::after {
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0.5;
}

body.theme-light .stat-card-2::after {
  background: linear-gradient(90deg, transparent, #dc3c3c, transparent);
  opacity: 0.4;
}

body.theme-light .stat-card-3::after {
  background: linear-gradient(90deg, transparent, var(--accent-indigo), transparent);
  opacity: 0.5;
}

/* Navbar ::before top line */
body.theme-light .navbar::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.70) 40%, rgba(255, 255, 255, 0.90) 50%, rgba(255, 255, 255, 0.70) 60%, transparent);
}

/* Delete badge on custom thumbnail */
.bg-option[data-custom] {
  position: relative;
}

.bg-option-del {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(252, 165, 165, 0.85);
  color: #1a0a0a;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 2;
}

.bg-option-del:hover {
  background: rgba(248, 113, 113, 1);
  transform: scale(1.15);
}

.btn-nav-outline {
  padding: 0.42rem 1.05rem;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.22s ease;
  cursor: pointer;
  letter-spacing: 0.1px;
}

.btn-nav-outline:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.btn-nav-primary {
  white-space: nowrap;
  padding: 0.42rem 1.15rem;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: #06111e;
  background: linear-gradient(135deg, #7eb8f7 0%, #38bdf8 100%);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 14px rgba(126, 184, 247, 0.38);
  letter-spacing: 0.1px;
}

.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(126, 184, 247, 0.55);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 2rem 90px;
}

.hero-inner {
  max-width: 840px;
  width: 100%;
}

/* Floating glass orb behind hero text */
.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 30%,
      rgba(126, 184, 247, 0.06) 0%,
      rgba(56, 189, 248, 0.04) 40%,
      transparent 70%);
  border: 1px solid rgba(126, 184, 247, 0.06);
  pointer-events: none;
  z-index: -1;
  filter: blur(1px);
}

.hero-season-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.38rem 1.1rem;
  border-radius: 100px;
  background: rgba(126, 184, 247, 0.07);
  border: 1px solid rgba(126, 184, 247, 0.20);
  font-size: 0.78rem;
  color: #a8d4ff;
  letter-spacing: 0.3px;
  margin-bottom: 2.2rem;
  animation: fadeUp 0.8s ease both;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 4px 16px rgba(0, 0, 0, 0.3);
}

.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-sky);
  flex-shrink: 0;
  animation: pulseDot 2.2s ease infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5);
  }

  60% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0);
  }
}

.hero-title {
  font-size: clamp(3.8rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: 0.25rem;
  animation: fadeUp 0.8s ease 0.1s both;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  filter: none;
}

body.theme-light .hero-title {
  color: #0d1829;
  -webkit-text-fill-color: #0d1829;
}

.hero-title-em {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  filter: none;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  letter-spacing: 0.3px;
  animation: fadeUp 0.8s ease 0.15s both;
}

.hero-desc {
  font-size: 0.97rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.78;
  animation: fadeUp 0.8s ease 0.2s both;
}

/* Hero badges вЂ” liquid glass pills */
.hero-badges {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
  animation: fadeUp 0.8s ease 0.25s both;
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.79rem;
  font-weight: 500;
  backdrop-filter: blur(16px);
  letter-spacing: 0.2px;
  line-height: 1;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 4px 14px rgba(0, 0, 0, 0.3);
}

.hero-badge-item i {
  font-size: 0.78rem;
  line-height: 1;
  position: relative;
  top: 0;
}

.badge-vanilla {
  background: rgba(126, 184, 247, 0.08);
  border: 1px solid rgba(126, 184, 247, 0.20);
  color: #a8d4ff;
}

.badge-devil {
  background: rgba(250, 165, 165, 0.08);
  border: 1px solid rgba(250, 165, 165, 0.20);
  color: #ffc0c0;
}

.badge-private {
  background: rgba(110, 231, 183, 0.07);
  border: 1px solid rgba(110, 231, 183, 0.18);
  color: #9df0cc;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.4rem;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #05101e;
  background: linear-gradient(135deg, #85c0ff 0%, #38bdf8 100%);
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 6px 30px rgba(126, 184, 247, 0.40),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  letter-spacing: 0.1px;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 14px 45px rgba(126, 184, 247, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.4rem;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 6px 24px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.1px;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.20) inset,
    0 14px 40px rgba(0, 0, 0, 0.4);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: fadeIn 1.5s ease 1.2s both;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  backdrop-filter: blur(6px);
}

.scroll-mouse-dot {
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--accent-blue);
  animation: scrollDot 2.2s ease-in-out infinite;
}

@keyframes scrollDot {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(5px);
    opacity: 0.35;
  }
}

/* ===== STATS ===== */
.stats-section {
  position: relative;
  z-index: 1;
  padding: 0 2.5rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.stat-card {
  padding: 2.2rem 1.75rem;
  text-align: center;
  position: relative;
}

/* Colored accent glow per stat card */
.stat-card-1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  border-radius: 2px;
}

.stat-card-2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-rose), transparent);
  border-radius: 2px;
}

.stat-card-3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-indigo), transparent);
  border-radius: 2px;
}

.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin: 0 auto 1.2rem;
  position: relative;
  backdrop-filter: blur(8px);
}

.si-blue {
  background: rgba(126, 184, 247, 0.1);
  color: var(--accent-blue);
  box-shadow: 0 0 24px rgba(126, 184, 247, 0.2), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.si-rose {
  background: rgba(250, 165, 165, 0.1);
  color: var(--accent-rose);
  box-shadow: 0 0 24px rgba(250, 165, 165, 0.2), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.si-indigo {
  background: rgba(129, 140, 248, 0.1);
  color: var(--accent-indigo);
  box-shadow: 0 0 24px rgba(129, 140, 248, 0.2), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.38rem;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

/* ===== SECTION HEADER ===== */
.sec-header {
  margin-bottom: 3rem;
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.9rem;
  opacity: 0.75;
}

.sec-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue));
}

.sec-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.sec-title em {
  font-style: normal;
  color: var(--accent-blue);
}

.sec-sub {
  font-size: 0.94rem;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.72;
}

/* ===== DIVIDER ===== */
.soft-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 3%, rgba(255, 255, 255, 0.065) 50%, transparent 97%);
  margin: 0 4rem;
  overflow: hidden;
}

.soft-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(126, 184, 247, 0.55), rgba(56, 189, 248, 0.7), rgba(126, 184, 247, 0.55), transparent);
  animation: dividerSweep 4.5s ease-in-out infinite;
}

@keyframes dividerSweep {
  0% {
    left: -40%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 140%;
    opacity: 0;
  }
}

body.theme-light .soft-divider::after {
  background: linear-gradient(90deg, transparent, rgba(45, 125, 210, 0.45), rgba(14, 165, 233, 0.6), rgba(45, 125, 210, 0.45), transparent);
}

/* ===== FEATURES ===== */
.features-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feat-card {
  padding: 2.1rem 1.9rem;
  --r-lg: 20px;
}

.feat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  backdrop-filter: blur(8px);
}

.fi-1 {
  background: rgba(126, 184, 247, 0.10);
  color: #7eb8f7;
  box-shadow: 0 0 20px rgba(126, 184, 247, 0.18), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.fi-2 {
  background: rgba(56, 189, 248, 0.10);
  color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.fi-3 {
  background: rgba(129, 140, 248, 0.10);
  color: #818cf8;
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.18), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.fi-4 {
  background: rgba(110, 231, 183, 0.10);
  color: #6ee7b7;
  box-shadow: 0 0 20px rgba(110, 231, 183, 0.18), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.fi-5 {
  background: rgba(167, 139, 250, 0.10);
  color: #a78bfa;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.18), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.fi-6 {
  background: rgba(103, 232, 249, 0.10);
  color: #67e8f9;
  box-shadow: 0 0 20px rgba(103, 232, 249, 0.18), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.feat-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  letter-spacing: -0.2px;
}

.feat-desc {
  font-size: 0.862rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== NEWS ===== */
.news-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.1rem;
}

.news-main {
  padding: 2.6rem;
}

.news-main::after {
  content: '';
  position: absolute;
  top: -90px;
  right: -90px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.12), transparent 65%);
  pointer-events: none;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.72rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.tag-announce {
  background: rgba(126, 184, 247, 0.09);
  border: 1px solid rgba(126, 184, 247, 0.22);
  color: var(--accent-blue);
}

.tag-event {
  background: rgba(110, 231, 183, 0.09);
  border: 1px solid rgba(110, 231, 183, 0.22);
  color: var(--accent-green);
}

.news-main-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  letter-spacing: -0.5px;
}

.news-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 1.6rem;
}

.news-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-small {
  padding: 1.7rem;
  flex: 1;
}

.news-small-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.2px;
}

.news-small-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

/* ===== THANKS ===== */
.thanks-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.thanks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.tcard {
  padding: 1.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  --r-lg: 22px;
  transition: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tcard:hover {
  transform: translateY(-9px) scale(1.01);
}

.tcard:nth-child(1):hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(252, 211, 77, 0.10), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.tcard:nth-child(2):hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(126, 184, 247, 0.10), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.tcard:nth-child(3):hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(250, 165, 165, 0.10), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.tcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.tcard-avatar-wrap {
  position: relative;
}

.tcard-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(252, 211, 77, 0.35);
  box-shadow: 0 0 22px rgba(252, 211, 77, 0.20), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
  display: block;
}

.tcard-avatar-placeholder {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(126, 184, 247, 0.09);
  border: 2px solid rgba(126, 184, 247, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--accent-blue);
  backdrop-filter: blur(8px);
}

.tcard-avatar-rose {
  background: rgba(250, 165, 165, 0.09);
  border-color: rgba(250, 165, 165, 0.22);
  color: var(--accent-rose);
}

.tcard-crown {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: var(--accent-gold);
  filter: drop-shadow(0 0 8px rgba(252, 211, 77, 0.6));
}

.tcard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.72rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.tcard-badge-gold {
  background: rgba(252, 211, 77, 0.09);
  border: 1px solid rgba(252, 211, 77, 0.22);
  color: var(--accent-gold);
}

.tcard-badge-blue {
  background: rgba(126, 184, 247, 0.09);
  border: 1px solid rgba(126, 184, 247, 0.22);
  color: var(--accent-blue);
}

.tcard-badge-rose {
  background: rgba(250, 165, 165, 0.09);
  border: 1px solid rgba(250, 165, 165, 0.22);
  color: var(--accent-rose);
}

.tcard-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  letter-spacing: -0.3px;
}

.tcard-text {
  font-size: 0.845rem;
  color: var(--text-secondary);
  line-height: 1.66;
  flex: 1;
}

.tcard-arrow {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.25s ease;
  align-self: flex-end;
}

.tcard:hover .tcard-arrow {
  color: var(--accent-blue);
  transform: translateX(5px);
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 4, 14, 0.65);
  backdrop-filter: blur(30px) saturate(1.4);
  padding: 3.5rem 2.5rem 2.5rem;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 40%, rgba(255, 255, 255, 0.20) 50%, rgba(255, 255, 255, 0.12) 60%, transparent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3rem;
}

.footer-logo {
  font-size: 1.55rem;
  font-weight: 800;
  background: linear-gradient(135deg, #dbeeff, #7eb8f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 1.5rem;
}

.socials {
  display: flex;
  gap: 0.6rem;
}

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset;
}

.social-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

.social-btn.discord:hover {
  color: #7289da;
  border-color: rgba(114, 137, 218, 0.4);
  box-shadow: 0 0 18px rgba(114, 137, 218, 0.22), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.social-btn.vk:hover {
  color: #5b8fc7;
  border-color: rgba(91, 143, 199, 0.4);
  box-shadow: 0 0 18px rgba(91, 143, 199, 0.22), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.social-btn.tg:hover {
  color: #40b3e0;
  border-color: rgba(64, 179, 224, 0.4);
  box-shadow: 0 0 18px rgba(64, 179, 224, 0.22), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-nav a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  font-size: 0.77rem;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 8px rgba(110, 231, 183, 0.7);
  animation: pulseDot 2.5s ease infinite;
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(3, 6, 15, 0.70);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: rgba(10, 8, 22, 0.80);
  backdrop-filter: blur(50px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--r-xl);
  padding: 3rem;
  max-width: 510px;
  width: 100%;
  position: relative;
  overflow: hidden;
  transform: scale(0.88) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset;
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 184, 247, 0.55), rgba(56, 189, 248, 0.45), transparent);
}

.modal-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(126, 184, 247, 0.18), transparent 65%);
  pointer-events: none;
}

.modal-glow-2 {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.12), transparent 65%);
  pointer-events: none;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

.modal-season-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 0.45rem;
  letter-spacing: -0.8px;
}

.modal-date {
  font-size: 0.84rem;
  color: var(--accent-gold);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.modal-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.76;
}

.modal-body p {
  margin-bottom: 0.7rem;
}

.modal-body strong {
  color: var(--text-primary);
}

.modal-callout {
  background: rgba(126, 184, 247, 0.06);
  border: 1px solid rgba(126, 184, 247, 0.16);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  margin: 1.2rem 0;
  font-size: 0.87rem;
  color: #a8d4ff;
  line-height: 1.68;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.modal-footer {
  margin-top: 2.1rem;
}

.modal-confirm-btn {
  width: 100%;
  padding: 0.95rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #85c0ff 0%, #38bdf8 100%);
  color: #05101e;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow:
    0 4px 22px rgba(126, 184, 247, 0.40),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.modal-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 32px rgba(126, 184, 247, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

/* ===== PAGE TRANSITIONS ===== */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.page-transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.78s ease, transform 0.78s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .thanks-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    top: 10px;
    width: calc(100% - 2rem);
  }
}

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .navbar {
    padding: 0 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .bg-blob,
  .pulse-dot,
  .scroll-mouse-dot {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
       PATCH v1 вЂ” Mobile Drawer, Counters, IP Copy,
       Carousel, Countdown
       в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */

/* [1] BURGER BTN */
#burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(126, 184, 247, 0.10);
  border: 1px solid rgba(126, 184, 247, 0.25);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset, 0 0 12px rgba(126, 184, 247, 0.12);
  flex-shrink: 0;
  color: var(--accent-blue);
  font-size: 1rem;
}

#burger-btn:hover {
  background: rgba(126, 184, 247, 0.18);
  border-color: rgba(126, 184, 247, 0.45);
  box-shadow: 0 0 20px rgba(126, 184, 247, 0.22), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
  color: #b8d8ff;
}

#burger-btn.open {
  background: rgba(126, 184, 247, 0.22);
  border-color: rgba(126, 184, 247, 0.5);
}

#burger-btn i {
  pointer-events: none;
  transition: transform 0.3s ease;
}

#burger-btn.open i {
  transform: rotate(90deg);
}

body.theme-light #burger-btn {
  background: rgba(45, 125, 210, 0.10);
  border-color: rgba(45, 125, 210, 0.28);
  color: #2d7dd2;
}

body.theme-light #burger-btn:hover {
  background: rgba(45, 125, 210, 0.18);
  border-color: rgba(45, 125, 210, 0.5);
}

/* Countdown flip animation */
.countdown-box {
  perspective: 200px;
}

.countdown-num {
  display: block;
  transition: none;
}

.countdown-num.flip {
  animation: cdFlip 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cdFlip {
  0% {
    transform: translateY(-30%) scaleY(0.5);
    opacity: 0;
  }

  60% {
    transform: translateY(6%) scaleY(1.05);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }
}

/* IP copy block вЂ” centered properly */
.ip-copy-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
}

/* Overlay */
#drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.35s ease;
}

#drawer-overlay.visible {
  display: block;
}

#drawer-overlay.open {
  opacity: 1;
}

/* Drawer */
#nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 285px;
  height: 100vh;
  z-index: 1060;
  background: rgba(8, 6, 20, 0.96);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: -12px 0 60px rgba(0, 0, 0, 0.6), -1px 0 0 rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.34, 1.28, 0.64, 1);
  overflow-y: auto;
}

#nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.drawer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7 60%, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(126, 184, 247, 0.45));
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text-primary);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 1rem;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.22s ease;
  border: 1px solid transparent;
}

.drawer-nav a i {
  width: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.drawer-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.drawer-nav a:hover i {
  color: var(--accent-blue);
}

.drawer-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 1rem 0;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

.drawer-btn-outline {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.drawer-btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-primary);
}

.drawer-btn-primary {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #7eb8f7 0%, #38bdf8 100%);
  border: none;
  color: #06111e;
  box-shadow: 0 4px 18px rgba(126, 184, 247, 0.40);
  transition: all 0.25s ease;
}

.drawer-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 24px rgba(126, 184, 247, 0.58);
}

body.theme-light #nav-drawer {
  background: rgba(235, 240, 252, 0.97);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .drawer-nav a {
  color: rgba(13, 24, 41, 0.65);
}

body.theme-light .drawer-nav a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0d1829;
}

body.theme-light .drawer-sep {
  background: rgba(0, 0, 0, 0.08);
}

body.theme-light .drawer-close {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.10);
}

body.theme-light .drawer-btn-outline {
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(13, 24, 41, 0.6);
}

@media (max-width: 1000px) {
  #burger-btn {
    display: flex !important;
  }

  .nav-actions .btn-nav-outline,
  .nav-actions .btn-nav-primary {
    display: none;
  }
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Notifications */
.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.notification {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 8, 22, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  max-width: 400px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-icon {
  font-size: 1.5rem;
}

.notification-content {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  transition: color 0.2s;
}

.notification-close:hover {
  color: var(--text-primary);
}

.notification .progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--text-primary);
  width: 100%;
  animation: progress 5s linear forwards;
}

@keyframes progress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* Colors */
.notification.error {
  border-color: rgba(244, 67, 54, 0.3);
  background: rgba(244, 67, 54, 0.1);
}

.notification.error .notification-icon {
  color: #f44336;
}

.notification.error .progress-bar {
  background: #f44336;
}

.notification.warning {
  border-color: rgba(255, 152, 0, 0.3);
  background: rgba(255, 152, 0, 0.1);
}

.notification.warning .notification-icon {
  color: #ff9800;
}

.notification.warning .progress-bar {
  background: #ff9800;
}

.notification.info {
  border-color: rgba(33, 150, 243, 0.3);
  background: rgba(33, 150, 243, 0.1);
}

.notification.info .notification-icon {
  color: #2196f3;
}

.notification.info .progress-bar {
  background: #2196f3;
}

/* [2] IP COPY BLOCK - In content */
.ip-copy-block {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-md);
  background: var(--glass-fill);
  backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid var(--glass-border);
  padding: 0.55rem 1rem;
  box-shadow: 0 8px 32px var(--glass-shadow), 0 1px 0 var(--glass-highlight) inset;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ip-copy-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.30) 30%,
      rgba(255, 255, 255, 0.50) 50%,
      rgba(255, 255, 255, 0.30) 70%,
      transparent);
  pointer-events: none;
  z-index: 1;
}

.ip-copy-block:hover {
  background: var(--glass-fill-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(126, 184, 247, 0.08), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.ip-copy-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  user-select: all;
  cursor: text;
}

.ip-copy-label i {
  font-size: 0.72rem;
  color: var(--accent-blue);
  opacity: 0.8;
}

.ip-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.10);
  flex-shrink: 0;
  margin: 0 0.65rem;
}

.ip-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.ip-copy-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.ip-copy-btn i {
  font-size: 0.72rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ip-copy-btn.copied {
  color: var(--accent-green);
}

.ip-copy-btn.copied i {
  color: var(--accent-green);
}

.ip-copy-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(110, 231, 183, 0.12);
  opacity: 0;
}

.ip-copy-btn.copied::after {
  animation: ipFlash 0.5s ease forwards;
}

@keyframes ipFlash {
  0% {
    opacity: 1
  }

  100% {
    opacity: 0
  }
}

body.theme-light .ip-copy-block {
  background: var(--glass-fill);
  border-color: var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body.theme-light .ip-copy-block:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 0 30px rgba(45, 125, 210, 0.07), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

body.theme-light .ip-copy-btn {
  color: rgba(13, 24, 41, 0.55);
}

body.theme-light .ip-copy-btn:hover {
  color: rgba(13, 24, 41, 0.85);
}

body.theme-light .ip-copy-label {
  color: rgba(13, 24, 41, 0.85);
}

body.theme-light .ip-divider {
  background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .ip-copy-block {
    padding: 0.5rem 0.85rem;
  }

  .ip-copy-label {
    font-size: 0.78rem;
  }

  .ip-copy-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.7rem;
  }
}

/* Toast notification - Right side with progress bar */
.toast {
  position: fixed;
  top: 5rem;
  right: 2rem;
  transform: translateX(120%);
  background: var(--glass-fill);
  backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 8px 32px var(--glass-shadow),
    0 1px 0 var(--glass-highlight) inset;
  min-width: 280px;
  max-width: 380px;
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.30) 30%,
      rgba(255, 255, 255, 0.50) 50%,
      rgba(255, 255, 255, 0.30) 70%,
      transparent);
  pointer-events: none;
  z-index: 1;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 0.85rem;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(110, 231, 183, 0.15), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.toast-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.toast-message {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.toast-close {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  border-radius: 0 0 8px 8px;
  width: 100%;
  transform-origin: left;
  animation: toastProgress 2.5s linear forwards;
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

body.theme-light .toast {
  background: var(--glass-fill);
  border-color: var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body.theme-light .toast::before {
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.70) 30%,
      rgba(255, 255, 255, 0.90) 50%,
      rgba(255, 255, 255, 0.70) 70%,
      transparent);
}

body.theme-light .toast-icon {
  background: rgba(16, 140, 100, 0.12);
  border-color: rgba(16, 140, 100, 0.25);
  color: #0e7a56;
  box-shadow: 0 0 12px rgba(16, 140, 100, 0.12), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.theme-light .toast-title {
  color: rgba(13, 24, 41, 0.85);
}

body.theme-light .toast-message {
  color: rgba(13, 24, 41, 0.55);
}

body.theme-light .toast-close {
  color: rgba(13, 24, 41, 0.4);
}

body.theme-light .toast-close:hover {
  color: rgba(13, 24, 41, 0.85);
}

body.theme-light .toast-progress {
  background: linear-gradient(90deg, #0e7a56, #2d7dd2);
}

@media (max-width: 640px) {
  .toast {
    right: 1rem;
    left: 1rem;
    top: 4rem;
    min-width: auto;
    max-width: none;
  }
}

/* [3] COUNTDOWN */
.countdown-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.75rem;
  gap: 0.9rem;
}

.countdown-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.85rem;
  border-radius: 100px;
  background: rgba(126, 184, 247, 0.10);
  border: 1px solid rgba(126, 184, 247, 0.22);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.countdown-badge-pill .dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px rgba(126, 184, 247, 0.8);
  animation: livePulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: 0.35;
    transform: scale(0.65)
  }
}

.countdown-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 66px;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.75rem;
  min-width: 66px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28) 50%, transparent);
}

.countdown-box.pulse {
  border-color: rgba(126, 184, 247, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), 0 0 16px rgba(126, 184, 247, 0.18), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
  animation: pulseGlow 0.6s ease-out forwards;
}

@keyframes pulseGlow {
  0% {
    border-color: rgba(126, 184, 247, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), 0 0 16px rgba(126, 184, 247, 0.18), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
  }

  50% {
    border-color: rgba(126, 184, 247, 0.55);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), 0 0 28px rgba(126, 184, 247, 0.35), 0 1px 0 rgba(255, 255, 255, 0.20) inset;
  }

  100% {
    border-color: rgba(126, 184, 247, 0.20);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), 0 0 8px rgba(126, 184, 247, 0.10), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
  }
}

.countdown-num {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #e0eeff 0%, #7eb8f7 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.countdown-lbl {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.countdown-sep {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 1rem;
  opacity: 0.4;
  animation: sepBlink 1s ease-in-out infinite;
}

@keyframes sepBlink {

  0%,
  100% {
    opacity: 0.4
  }

  50% {
    opacity: 0.12
  }
}

.countdown-opened {
  display: none;
}

.countdown-opened.show {
  display: flex;
  justify-content: center;
}

.countdown-row.done {
  display: none;
}

body.theme-light .countdown-box {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.theme-light .countdown-badge-pill {
  background: rgba(45, 125, 210, 0.10);
  border-color: rgba(45, 125, 210, 0.22);
  color: #2d7dd2;
}

@media (max-width: 480px) {
  .countdown-item {
    min-width: 54px;
  }

  .countdown-box {
    min-width: 54px;
    padding: 0.45rem 0.55rem;
  }

  .countdown-num {
    font-size: 1.55rem;
  }

  .countdown-sep {
    font-size: 1.2rem;
  }
}

/* [4] CAROUSEL */
.screenshots-section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.carousel-wrap:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16/7;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-lg);
  pointer-events: none;
  transition: transform 0.6s ease;
}

.carousel-wrap:hover .carousel-slide img {
  transform: scale(1.02);
}

.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 6, 15, 0.75) 0%, rgba(3, 6, 15, 0.12) 45%, transparent 65%);
  border-radius: var(--r-lg);
  pointer-events: none;
}

.carousel-caption {
  position: absolute;
  bottom: 1.4rem;
  left: 1.6rem;
  z-index: 2;
  pointer-events: none;
}

.carousel-caption-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.2rem;
}

.carousel-caption-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.carousel-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
}

.carousel-ph i {
  font-size: 2.2rem;
  opacity: 0.18;
  color: var(--text-muted);
}

.carousel-ph span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 8, 22, 0.52);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38), 0 1px 0 rgba(255, 255, 255, 0.10) inset;
}

.carousel-btn:hover {
  background: rgba(126, 184, 247, 0.18);
  border-color: rgba(126, 184, 247, 0.35);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5), 0 0 14px rgba(126, 184, 247, 0.14);
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  padding: 0;
}

.carousel-dot.active {
  width: 24px;
  background: var(--accent-blue);
  box-shadow: 0 0 10px rgba(126, 184, 247, 0.5);
}

@media (max-width: 640px) {
  .carousel-slide {
    aspect-ratio: 4/3;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}

/* ===== 3D TILT CARDS ===== */
.glass {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.glass.tilt-ready {
  transition: background 0.35s ease, border-color 0.35s ease,
    transform 0.12s ease,
    box-shadow 0.35s ease;
}

.glass.tilt-ready:hover {
  transform: none;
}

/* ===== IP ONLINE COUNTER ===== */
.ip-online-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(110, 231, 183, 0.06);
  border: 1px solid rgba(110, 231, 183, 0.15);
  font-size: 0.72rem;
  color: var(--accent-green);
  margin-left: 0.1rem;
  transition: all 0.3s ease;
}

.ip-online-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(110, 231, 183, 0.9);
  animation: pulseDot 2s ease infinite;
  flex-shrink: 0;
}

.ip-online-count {
  font-weight: 600;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}

body.theme-light .ip-online-wrap {
  background: rgba(16, 140, 100, 0.08);
  border-color: rgba(16, 140, 100, 0.20);
  color: #0e7a56;
}


/* ===== GLOBAL MODAL ANIMATIONS ===== */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalContentPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-backdrop,
.wiki-modal {
  animation: modalFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.modal-content,
.wiki-modal-dialog,
.gallery-modal-content {
  animation: modalContentPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}



/* SCROLLBARS */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* NOTIFICATIONS */
.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 400px;
  animation: notifSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: all;
  position: relative;
  overflow: hidden;
}

.notification.hide {
  animation: notifSlideOut 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.notification-icon {
  font-size: 1.5rem;
}

.notification.error .notification-icon {
  color: var(--accent-rose);
}

.notification.warning .notification-icon {
  color: var(--accent-gold);
}

.notification.info .notification-icon {
  color: var(--accent-blue);
}

.notification-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* NOTIFICATIONS PROGRESS */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent-blue);
  animation: progress 5s linear forwards;
}

.notification.error .progress-bar {
  background: var(--accent-rose);
}

.notification.warning .progress-bar {
  background: var(--accent-gold);
}

@keyframes notifSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes notifSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes progress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* TOGGLE FIX */
.tog {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.tog-knob {
  position: absolute !important;
  top: 50% !important;
  left: 3px !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
}

.tog.on .tog-knob {
  transform: translate(20px, -50%) !important;
}

/* GLOBAL MODAL BASE STYLES */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 6, 15, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal.closing {
  opacity: 0;
}

.modal.closing .modal-content {
  animation: modalOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  to {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
}

.modal-content {
  background: rgba(8, 12, 30, 0.90);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg, 16px);
  width: 90%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  position: relative;
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal .close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
  z-index: 10;
}

.modal .close:hover {
  color: var(--text-primary);
}

.ticket-modal-content input,
.ticket-modal-content textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: 0.3s;
}

.ticket-modal-content input:focus,
.ticket-modal-content textarea:focus {
  border-color: var(--accent-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(126, 184, 247, 0.1);
}

.ticket-modal-content label {
  position: absolute;
  left: 16px;
  top: 12px;
  color: var(--text-muted);
  pointer-events: none;
  transition: 0.3s;
}

.ticket-modal-content input:focus~label,
.ticket-modal-content input:not(:placeholder-shown)~label,
.ticket-modal-content textarea:focus~label,
.ticket-modal-content textarea:not(:placeholder-shown)~label {
  top: -10px;
  left: 12px;
  font-size: 0.8rem;
  background: var(--bg-card);
  padding: 0 4px;
  color: var(--accent-blue);
}

.ticket-modal-content .btn {
  width: 100%;
  padding: 12px;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.3s;
}

.ticket-modal-content .btn:hover {
  background: #5b8ec2;
}

/* ===== TECHNICAL WORKS BANNER ===== */
.tech-works-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.15), rgba(251, 146, 60, 0.12));
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(252, 211, 77, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(252, 211, 77, 0.2) inset;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tech-works-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fcd34d;
  text-shadow: 0 0 10px rgba(252, 211, 77, 0.3);
}

.tech-works-content i {
  font-size: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Light theme override */
body.theme-light .tech-works-banner {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.25), rgba(251, 146, 60, 0.20));
  border-bottom-color: rgba(251, 146, 60, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(252, 211, 77, 0.3) inset;
}

body.theme-light .tech-works-content {
  color: #b45309;
  text-shadow: none;
}

/* ===== USER WIDGET & NOTIF BTN ===== */
.user-widget-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-right: 0.5rem;
}

#notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset;
}

#notif-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-2px);
}

#notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ff4757;
  color: white;
  font-size: 0.6rem;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  display: none;
}

.user-widget {
  position: relative;
  display: inline-block;
  z-index: 2100;
}

.widget-trigger {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset;
  font-size: 1.1rem;
}

.widget-trigger:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-2px);
}

.widget-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: rgba(10, 8, 22, 0.95);
  backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0.5rem;
  overflow: hidden;
}

.user-widget.active .widget-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding-left: 1.2rem;
}

.dropdown-header {
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #7eb8f7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.25rem;
  text-align: left;
  word-break: break-all;
}

.faq-empty {
  text-align: center;
  color: var(--text-secondary);
  opacity: 0.7;
  padding: 1.5rem;
}

.reviews-grid .faq-empty {
  grid-column: 1 / -1;
}