/* ==========================================================================
   STUDY FOX - LUXURIOUS CINEMATIC ATMOSPHERIC EDTECH HOMEPAGE
   - Deep Pure-Black Base (#000000)
   - Oversized, Heavily Blurred Emerald-Green Fog & Atmospheric Light Clouds
   - Zero Sharp Gradients or Hard Edges
   - Subtle Filmic Noise/Grain for Depth
   - Large, Impactful Serif Typography
   ========================================================================== */

:root {
  --bg-black: #000000;
  --bg-card: #000000;
  --bg-card-hover: #080d0a;

  --color-green-primary: #19b269;
  --color-green-bright: #22c55e;
  --color-green-neon: #10b981;
  --color-green-glow: rgba(34, 197, 94, 0.35);

  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #475569;

  --border-card: rgba(255, 255, 255, 0.08);
  --border-active: #00ff88;

  --radius-card: 22px;
  --radius-icon: 18px;
  --radius-btn: 18px;

  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-drawer: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: 'Playfair Display', Georgia, -apple-system, BlinkMacSystemFont, 'Segoe UI', serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Deep Pure-Black Base */
body {
  min-height: 100vh;
  background-color: #000000;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   EXACT STUDY PANDA ATMOSPHERIC LIGHTING
   - Solid Pure-Black Base (#000000)
   - Soft Dark-Green Top-Left Corner Vignette
   - Horizontal Diffuse Emerald Spotlight behind tagline
   - Pure black everywhere else (cards, right edge, bottom)
   -------------------------------------------------------------------------- */
.cinematic-atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* 1. Subtle Dark-Green Vignette on Top-Left Corner (behind Hamburger) - Ultra-Soft Blur Fade */
.bg-glow-top-left {
  position: absolute;
  top: -70px;
  left: -100px;
  width: 580px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(34, 197, 94, 0.16) 0%,
    rgba(22, 163, 74, 0.07) 35%,
    rgba(16, 185, 129, 0.015) 60%,
    transparent 80%
  );
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* 2. Horizontal Diffuse Green Spotlight behind Tagline (Ultra-Soft Gaussian Fade Blur) */
.blur-fog-text {
  position: absolute;
  top: 74%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 860px;
  max-width: 94vw;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(34, 197, 94, 0.44) 0%,
    rgba(34, 197, 94, 0.28) 22%,
    rgba(22, 163, 74, 0.16) 42%,
    rgba(16, 185, 129, 0.05) 60%,
    rgba(5, 120, 85, 0.01) 75%,
    transparent 88%
  );
  filter: blur(88px);
  pointer-events: none;
  z-index: 1;
  animation: glowSoftFade 8s infinite alternate ease-in-out;
  will-change: opacity, transform;
}

@keyframes glowSoftFade {
  0% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.03);
  }
}

/* --------------------------------------------------------------------------
   NAVBAR (Matching Screenshot: Hamburger on Left, Bell on Right)
   -------------------------------------------------------------------------- */
.navbar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 38px;
  background: transparent;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
}

/* Hamburger Button: Exact Match to User Screenshot */
.nav-icon-btn.hamburger-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #090e0b;
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  border-radius: 18px;
  cursor: pointer;
  position: relative;
  transition: transform var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  padding: 0;
}

.nav-icon-btn.hamburger-btn:hover {
  border-color: var(--color-green-bright);
  background: #0d1510;
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.45), 0 4px 12px rgba(0, 0, 0, 0.8);
  transform: scale(1.06);
}

.nav-icon-btn.hamburger-btn:active {
  transform: scale(0.94);
}

/* 3 Neon Green Bars */
.hamburger-bar {
  display: block;
  width: 24px;
  height: 2.8px;
  background-color: var(--color-green-bright);
  margin: 2px 0;
  border-radius: 4px;
  transition: transform 0.3s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 4px rgba(0, 255, 136, 0.4);
}

.nav-icon-btn.hamburger-btn:hover .hamburger-bar {
  background-color: #ffffff;
  box-shadow: 0 0 8px var(--color-green-bright);
}

/* Notification Bell Button */
.bell-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #090e0b;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 50%;
  color: var(--color-green-bright);
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  transition: transform var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.bell-btn:hover {
  border-color: var(--color-green-bright);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  transform: scale(1.06);
  color: #ffffff;
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  background: var(--color-green-bright);
  border-radius: 50%;
  border: 2px solid #090e0b;
  box-shadow: 0 0 10px var(--color-green-bright);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--color-green-bright); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* --------------------------------------------------------------------------
   HERO SECTION & PROMINENT SERIF TYPOGRAPHY
   -------------------------------------------------------------------------- */
.main-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 36px 80px 36px;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 10px 52px;
  position: relative;
}

/* Mascot Container with Epic Fluid Floating Levitation */
.mascot-container {
  position: relative;
  margin-bottom: 24px;
  z-index: 5;
  animation: mascotEpicLevitate 4.2s ease-in-out infinite;
  will-change: transform;
}

@keyframes mascotEpicLevitate {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-7px) rotate(1.2deg);
  }
  50% {
    transform: translateY(-13px) rotate(0deg);
  }
  75% {
    transform: translateY(-7px) rotate(-1.2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Faint Emerald Rim Glow right behind Mascot Head - Ultra-Soft Blur */
.mascot-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.55) 0%,
    rgba(22, 163, 74, 0.25) 38%,
    rgba(16, 185, 129, 0.06) 62%,
    transparent 80%
  );
  filter: blur(38px);
  pointer-events: none;
  z-index: 0;
  animation: haloFluidPulse 4.2s infinite alternate ease-in-out;
}

@keyframes haloFluidPulse {
  0% {
    transform: translate(-50%, -46%) scale(0.9);
    opacity: 0.7;
    filter: blur(32px);
  }
  100% {
    transform: translate(-50%, -46%) scale(1.1);
    opacity: 1;
    filter: blur(42px);
  }
}

.mascot-img-wrap {
  position: relative;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  overflow: hidden;
  background: #000000;
  border: 2px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.95), 0 0 24px rgba(34, 197, 94, 0.3);
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s ease,
              border-color 0.45s ease;
  z-index: 2;
}

/* Rotating Emerald/Cyan Neon Energy Shimmer Ring */
.mascot-img-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(34, 197, 94, 0) 0deg,
    rgba(34, 197, 94, 0.75) 90deg,
    rgba(0, 242, 254, 0.85) 180deg,
    rgba(34, 197, 94, 0) 270deg
  );
  animation: spinEnergyRing 6.5s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes spinEnergyRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mascot-fox-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mascot-img-wrap:hover {
  transform: scale(1.08) translateY(-4px);
  border-color: rgba(34, 197, 94, 0.95);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.95), 0 0 36px rgba(34, 197, 94, 0.6);
}

.mascot-img-wrap:hover .mascot-fox-img {
  transform: scale(1.04);
}

/* Interactive Mascot Click Pop Celebration */
@keyframes mascotClickPop {
  0% {
    transform: scale(1) translateY(0) rotate(0deg);
  }
  18% {
    transform: scale(0.92, 0.88) translateY(6px) rotate(-4deg);
  }
  48% {
    transform: scale(1.18, 1.15) translateY(-16px) rotate(8deg);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.95), 0 0 45px rgba(34, 197, 94, 0.85);
  }
  72% {
    transform: scale(1.06, 1.04) translateY(-6px) rotate(-3deg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95), 0 0 30px rgba(34, 197, 94, 0.55);
  }
  88% {
    transform: scale(0.99) translateY(-1px) rotate(1deg);
  }
  100% {
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

.mascot-img-wrap.mascot-clicked {
  animation: mascotClickPop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Expanding Emerald Shockwave Ring on Click */
.mascot-shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2.5px solid #22c55e;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.9), inset 0 0 18px rgba(34, 197, 94, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.mascot-shockwave.trigger-wave {
  animation: mascotShockwaveBurst 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mascotShockwaveBurst {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 1;
    border-width: 3px;
  }
  50% {
    opacity: 0.75;
    border-width: 2px;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
    border-width: 1px;
  }
}

/* Floating Celebration Sparkles */
.mascot-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  font-size: 1.15rem;
  user-select: none;
  animation: sparkleFlyOut 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes sparkleFlyOut {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translate(var(--tx, 20px), var(--ty, -30px)) scale(1.2) rotate(var(--rot, 45deg));
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx-end, 30px), var(--ty-end, -50px)) scale(0.2) rotate(var(--rot-end, 90deg));
  }
}

/* ==========================================================================
   LARGE, IMPACTFUL SERIF TYPOGRAPHY ON TOP OF BLURRED FOG
   ========================================================================== */
.hero-text-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.hero-title {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.12;
}

/* "Welcome to" - Bold, prominent Serif in Crisp White */
.hero-welcome {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 4.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.9);
}

/* "Study Fox" - Large, refined emerald Serif */
.hero-brand {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 5.2rem;
  font-weight: 900;
  color: #22c55e;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  margin-top: 4px;
  letter-spacing: -0.5px;
}

/* "Education Must Be Free For Everyone" - Larger, high-contrast Serif */
.hero-tagline {
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 18px;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.free-badge {
  color: #22c55e;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(34, 197, 94, 0.7);
}

/* --------------------------------------------------------------------------
   PLATFORM CARDS GRID (Black Background Cards, 5 in Row 1, 4 in Row 2)
   -------------------------------------------------------------------------- */
.platforms-section {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

.platforms-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

/* Card Platform: Exact Dark Charcoal Tile with Green Active/Hover Outline */
.platform-card {
  position: relative;
  width: 240px;
  height: 236px;
  background-color: #101412;
  border: 1.5px solid rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 14px 20px;
  cursor: pointer;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.35s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
  overflow: visible;
  animation: cardFadeEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

@keyframes cardFadeEntrance {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.platform-card:nth-child(1) { animation-delay: 0.04s; }
.platform-card:nth-child(2) { animation-delay: 0.08s; }
.platform-card:nth-child(3) { animation-delay: 0.12s; }
.platform-card:nth-child(4) { animation-delay: 0.16s; }
.platform-card:nth-child(5) { animation-delay: 0.20s; }
.platform-card:nth-child(6) { animation-delay: 0.24s; }
.platform-card:nth-child(7) { animation-delay: 0.28s; }
.platform-card:nth-child(8) { animation-delay: 0.32s; }
.platform-card:nth-child(9) { animation-delay: 0.36s; }

/* Subtle Inner Glow on Hover */
.platform-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 30%, rgba(34, 197, 94, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   CURSER HOVER: SILKY SMOOTH CARD LIFT & LOGO ZOOM
   -------------------------------------------------------------------------- */
.platform-card:hover {
  border-color: #22c55e;
  background-color: #111714;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.94), 0 0 34px rgba(34, 197, 94, 0.45);
  transform: translateY(-14px) scale(1.035);
  z-index: 10;
}

.platform-card:hover::after {
  opacity: 1;
}

/* Curser le jane pe Logo Zoom (Crisp & Large) */
.platform-card:hover .platform-icon-wrap {
  transform: scale(1.14) translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.92), 0 0 28px rgba(34, 197, 94, 0.55);
}

.platform-card:hover .platform-icon-img {
  transform: scale(1.08);
}

.platform-card:hover .platform-title {
  color: #22c55e;
  text-shadow: 0 0 16px rgba(34, 197, 94, 0.7);
  transform: translateY(-2px);
}

/* Mouse Pressed Down (Subtle tactile click feedback, smooth release) */
.platform-card:active {
  transform: translateY(-8px) scale(1.01);
  transition-duration: 0.12s;
}

/* Focus outline reset */
.platform-card:focus,
.platform-card:focus-visible {
  outline: none;
}

/* Platform Icon Squircle (Exact 104px uniform square container for ALL platforms) */
.platform-icon-wrap {
  width: 104px;
  height: 104px;
  min-width: 104px;
  min-height: 104px;
  max-width: 104px;
  max-height: 104px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 14px;
  background-color: #0b100d;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-icon-img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  display: block;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Optical balance: circular/shield mascot logos (like Fox Books) match squircle visual scale */
.platform-card[data-id="fox-books"] .platform-icon-img,
.platform-icon-img[src*="studyfox-logo"],
.platform-icon-img[src*="fox-books"] {
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}

/* Platform Title - Bold Crisp Serif */
.platform-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  transition: color 0.32s ease, text-shadow 0.32s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95%;
  letter-spacing: 0.3px;
}

.platform-card:hover .platform-title {
  color: #22c55e;
  text-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
}

/* Editing Feature Completely Disabled */
.card-edit-btn,
.sidebar-section-divider,
.sidebar-quick-links,
.admin-post-footer,
#editModalOverlay,
#postModalOverlay {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* --------------------------------------------------------------------------
   FOOTER (Clean & Minimal)
   -------------------------------------------------------------------------- */
.footer {
  padding: 40px 20px 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  color: #64748b;
  font-size: 0.95rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.footer-credit {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.credit-author {
  color: #22c55e;
  font-weight: 800;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.6px;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
}

/* --------------------------------------------------------------------------
   SIDEBAR DRAWER (Enlarged Items & Bottom Telegram Widget)
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

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

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 335px;
  max-width: 88vw;
  background: #080d0a;
  border-right: 1.5px solid rgba(34, 197, 94, 0.25);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.95);
}

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

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-logo-glow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-green-bright);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
}

.sidebar-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-brand-title h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.text-neon {
  color: var(--color-green-bright);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--color-green-bright);
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1.5px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.15);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

.sidebar-nav-item:hover {
  transform: translateX(4px);
  background: rgba(34, 197, 94, 0.18);
}

.sidebar-platforms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-platform-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #f8fafc;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.12rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-platform-link:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--color-green-bright);
  transform: translateX(6px);
}

/* Enlarged 48px platform icons for crystal clear visibility in sidebar */
.sidebar-platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: contain;
  padding: 3px;
  background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-platform-link:hover .sidebar-platform-icon {
  transform: scale(1.1);
  border-color: var(--color-green-bright);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

/* Telegram card at the bottom of sidebar */
.sidebar-telegram-wrap {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-tg-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.2) 0%, rgba(14, 116, 184, 0.3) 100%);
  border: 1.5px solid rgba(29, 155, 240, 0.45);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.sidebar-tg-card:hover {
  transform: translateY(-2px);
  border-color: #1d9bf0;
  box-shadow: 0 12px 30px rgba(29, 155, 240, 0.4);
}

.sidebar-tg-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1d9bf0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(29, 155, 240, 0.4);
}

.sidebar-tg-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-tg-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.sidebar-tg-channel {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  color: #93c5fd;
  font-weight: 600;
}

.sidebar-tg-arrow {
  font-size: 0.85rem;
  color: #93c5fd;
  transition: transform 0.2s ease;
}

.sidebar-tg-card:hover .sidebar-tg-arrow {
  transform: translate(2px, -2px);
  color: #ffffff;
}

/* Hide unused legacy sidebar tools */
.sidebar-section-divider,
.sidebar-quick-links {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Bell Toggle Button (Matches User Screenshot 2) */
.bell-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111714;
  border: 1.5px solid rgba(34, 197, 94, 0.4);
  color: var(--color-green-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.bell-btn:hover {
  transform: scale(1.08);
  border-color: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

/* Admin Updates Drawer (Matches User Screenshot 1) */
.admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: #080d0a;
  border-left: 1.5px solid rgba(34, 197, 94, 0.25);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.95);
}

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

.admin-drawer-header {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.8px solid var(--color-green-bright);
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.35);
}

.admin-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-header-title h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.admin-updates-feed {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Empty State when no announcements are posted */
.admin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  color: #64748b;
  gap: 14px;
}

.admin-empty-state i {
  font-size: 3rem;
  color: rgba(34, 197, 94, 0.45);
  margin-bottom: 6px;
  filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.25));
}

.admin-empty-state h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.admin-empty-state p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 250px;
  line-height: 1.5;
}

.admin-post-card {
  background: #0c110e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-post-card:hover {
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.admin-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-author-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-green-bright);
  object-fit: cover;
}

.admin-tag {
  color: var(--color-green-bright);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
}

.admin-post-date {
  color: var(--text-dim);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
}

.admin-post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.admin-post-body {
  color: #cbd5e1;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-post-action-bar {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.like-button {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s var(--ease-spring);
}

.like-button:hover {
  color: #ef4444;
  transform: scale(1.06);
}

.like-button.liked {
  color: #ef4444;
}

.like-button.liked i {
  color: #ef4444;
  animation: heartPop 0.4s var(--ease-spring);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.admin-post-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-new-announcement {
  width: 100%;
  padding: 12px;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 12px;
  color: var(--color-green-bright);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-new-announcement:hover {
  background: var(--color-green-bright);
  color: #000;
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.4);
}

/* --------------------------------------------------------------------------
   MODALS (Change Logo & Add Announcement)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.modal-card {
  background: #0a0f0c;
  border: 1.5px solid rgba(0, 255, 136, 0.4);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 255, 136, 0.2);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s var(--ease-drawer);
}

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

.modal-card.modal-sm {
  max-width: 420px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-wrap h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #ef4444;
  color: #fff;
}

.modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Outfit', sans-serif;
}

.preview-stage {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #000;
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
}

.preview-card-replica {
  width: 110px;
  background: #000000;
  border: 1.5px solid var(--color-green-bright);
  border-radius: 16px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.25);
}

.preview-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  margin-bottom: 8px;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.preview-hint {
  flex: 1;
}

.badge-live {
  display: inline-block;
  padding: 3px 6px;
  background: rgba(0, 255, 136, 0.2);
  color: var(--color-green-bright);
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 4px;
  margin-bottom: 4px;
}

.preview-hint p {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.4;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-green-bright);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.tab-buttons {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.tab-btn {
  flex: 1;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--color-green-bright);
  color: var(--color-green-bright);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.dropzone {
  border: 2px dashed rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.04);
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--color-green-bright);
  background: rgba(0, 255, 136, 0.12);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}

.dropzone i {
  font-size: 1.8rem;
  color: var(--color-green-bright);
  margin-bottom: 2px;
}

.dropzone p {
  font-size: 0.88rem;
  color: #fff;
}

.dropzone span {
  font-size: 0.72rem;
  color: #64748b;
}

.url-input-box {
  display: flex;
  gap: 8px;
}

.url-input-box input {
  flex: 1;
}

.btn-check-url {
  padding: 0 14px;
  background: var(--color-green-bright);
  border: none;
  border-radius: 10px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-check-url:hover {
  box-shadow: 0 0 14px var(--color-green-bright);
}

.presets-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
  padding: 4px;
}

.preset-item {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preset-item:hover, .preset-item.selected {
  border-color: var(--color-green-bright);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
  transform: scale(1.06);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer-right {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.btn-modal-cancel {
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #cbd5e1;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-modal-save {
  padding: 9px 20px;
  background: var(--color-green-bright);
  border: none;
  border-radius: 10px;
  color: #000000;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 255, 136, 0.35);
  transition: all 0.2s ease;
}

.btn-modal-save:hover {
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.55);
  transform: translateY(-1px);
}

.btn-modal-delete {
  padding: 9px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  color: #ef4444;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0a0f0c;
  border: 1px solid var(--color-green-bright);
  border-radius: 12px;
  padding: 12px 18px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 3000;
  transform: translateY(80px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease-spring), opacity 0.2s ease, visibility 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-icon {
  color: var(--color-green-bright);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 1220px) {
  .platforms-grid {
    max-width: 1040px;
    gap: 16px;
  }
  .platform-card {
    width: 190px;
    height: 195px;
    padding: 18px 12px;
  }
  .platform-icon-wrap {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    margin-bottom: 12px;
  }
  .platform-title {
    font-size: 1.02rem;
  }
  .hero-welcome {
    font-size: 3.8rem;
  }
  .hero-brand {
    font-size: 4.6rem;
  }
  .hero-tagline {
    font-size: 1.45rem;
  }
}

@media (max-width: 860px) {
  .navbar {
    padding: 18px 20px;
  }
  .hero-welcome {
    font-size: 3rem;
  }
  .hero-brand {
    font-size: 3.6rem;
  }
  .hero-tagline {
    font-size: 1.25rem;
  }
  .platform-card {
    width: 165px;
    height: 168px;
  }
  .platform-icon-wrap {
    width: 72px;
    height: 72px;
  }
  .platform-title {
    font-size: 0.95rem;
  }
  .blur-fog-text {
    width: 600px;
    height: 160px;
    filter: blur(80px);
  }
}

@media (max-width: 580px) {
  .platforms-grid {
    gap: 12px;
  }
  .platform-card {
    width: 145px;
    height: 150px;
    padding: 14px 8px;
  }
  .platform-icon-wrap {
    width: 62px;
    height: 62px;
    margin-bottom: 10px;
  }
  .platform-title {
    font-size: 0.86rem;
  }
  .hero-welcome {
    font-size: 2.3rem;
  }
  .hero-brand {
    font-size: 2.8rem;
  }
  .hero-tagline {
    font-size: 1.05rem;
  }
  .mascot-img-wrap {
    width: 100px;
    height: 100px;
  }
  .blur-fog-text {
    width: 90vw;
    height: 130px;
    filter: blur(60px);
  }
}

@media (max-width: 340px) {
  .platform-card {
    width: 135px;
    height: 140px;
  }
}

/* ==========================================================================
   TELEGRAM COMMUNITY POPUP (Exact Match to User Reference Screenshot 2)
   ========================================================================== */
.tg-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

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

.tg-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #111519;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 38px 28px 32px;
  text-align: center;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 0, 0, 0.7);
  transform: scale(0.88) translateY(16px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1.25, 0.3, 1), opacity 0.35s ease;
}

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

.tg-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1c2229;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #8899a6;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-spring);
}

.tg-modal-close-btn:hover {
  background: #252d37;
  color: #ffffff;
  transform: scale(1.08);
}

/* Telegram Avatar with Emerald Backlight Glow */
.tg-avatar-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
}

.tg-avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.55) 0%, rgba(34, 197, 94, 0.15) 50%, transparent 75%);
  filter: blur(12px);
  pointer-events: none;
}

.tg-avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  background: #080c09;
  border: 2px solid rgba(34, 197, 94, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9), 0 0 20px rgba(34, 197, 94, 0.35);
}

.tg-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.tg-modal-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.55;
  max-width: 340px;
  margin: 0 auto 22px;
  font-weight: 400;
}

/* Dark Pill Badge with Live Green Indicator Dot */
.tg-members-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #07150c;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 22px;
  padding: 8px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(34, 197, 94, 0.08);
}

.tg-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseLiveDot 2s infinite ease-in-out;
}

@keyframes pulseLiveDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.3);
    box-shadow: 0 0 14px #22c55e;
  }
}

.tg-members-count {
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

/* Telegram Big Blue Button */
.tg-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border-radius: 16px;
  background: #1d9bf0;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  box-shadow: 0 10px 28px rgba(29, 155, 240, 0.42);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, box-shadow 0.25s ease;
}

.tg-join-btn:hover {
  background: #1a8cd8;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(29, 155, 240, 0.6);
  color: #ffffff;
}

.tg-join-btn:active {
  transform: scale(0.98);
}
