/* ============================================================
   CYBERPROBD — Premium Features Stylesheet
   Version: v1.0
   Author: MD Abu Bokkar
   ============================================================ */

/* ============================================
   01. SOUND TOGGLE BUTTON
   ============================================ */
.prem-sound-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 997;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.prem-sound-toggle:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: scale(1.08);
}

.prem-sound-toggle.muted {
  opacity: 0.5;
}

.prem-sound-toggle svg {
  width: 18px;
  height: 18px;
}

.prem-sound-toggle .prem-icon-on { display: block; }
.prem-sound-toggle .prem-icon-off { display: none; }
.prem-sound-toggle.muted .prem-icon-on { display: none; }
.prem-sound-toggle.muted .prem-icon-off { display: block; }

/* Mobile: উপরে তুলে দাও */
@media (max-width: 900px) {
  .prem-sound-toggle {
    bottom: 90px;
    left: 16px;
    width: 38px;
    height: 38px;
  }
  .prem-sound-toggle svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .prem-sound-toggle {
    bottom: 84px;
    left: 13px;
    width: 36px;
    height: 36px;
  }
}

/* ============================================
   02. WAVE DIVIDERS
   ============================================ */
.prem-wave {
  position: relative;
  display: block;
  width: 100%;
  height: 60px;
  overflow: hidden;
  pointer-events: none;
  margin: -1px 0;
  opacity: 0.9;
}

.prem-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.prem-wave path {
  fill: var(--bg-2);
}

.prem-wave.wave-pink path {
  fill: rgba(236, 72, 153, 0.06);
}

@media (max-width: 600px) {
  .prem-wave { height: 36px; }
}

/* ============================================
   03. PAGE TRANSITIONS
   ============================================ */
body.prem-loaded {
  opacity: 1;
  transition: opacity 0.35s ease;
}

body.prem-loading {
  opacity: 0;
}

body.prem-leaving {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* ============================================
   04. THEME CUSTOMIZER
   ============================================ */
.prem-theme-btn {
  position: fixed;
  bottom: 20px;
  left: 72px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 997;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
}

.prem-theme-btn:hover {
  transform: scale(1.08) rotate(45deg);
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.6);
}

.prem-theme-btn svg {
  width: 18px;
  height: 18px;
}

.prem-theme-panel {
  position: fixed;
  bottom: 74px;
  left: 20px;
  width: 280px;
  max-width: calc(100vw - 40px);
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 20px;
  z-index: 996;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prem-theme-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.prem-theme-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.prem-theme-panel-head h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.prem-theme-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  line-height: 1;
}

.prem-theme-close:hover {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}

.prem-theme-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 10px;
  display: block;
}

.prem-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.prem-theme-swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.prem-theme-swatch:hover {
  transform: scale(1.06);
}

.prem-theme-swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.prem-theme-swatch.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 6 Preset themes */
.sw-purple { background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #ec4899 100%); }
.sw-gold   { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%); }
.sw-ocean  { background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 50%, #0369a1 100%); }
.sw-forest { background: linear-gradient(135deg, #4ade80 0%, #10b981 50%, #047857 100%); }
.sw-sunset { background: linear-gradient(135deg, #fb7185 0%, #f97316 50%, #ea580c 100%); }
.sw-mono   { background: linear-gradient(135deg, #94a3b8 0%, #475569 50%, #1e293b 100%); }

.prem-theme-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.prem-theme-custom label {
  font-size: 12px;
  color: var(--text-2);
  flex: 1;
  font-weight: 500;
}

.prem-theme-custom input[type="color"] {
  width: 36px;
  height: 30px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: 2px;
}

.prem-theme-reset {
  width: 100%;
  padding: 9px;
  margin-top: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.prem-theme-reset:hover {
  border-color: var(--pink);
  color: var(--pink);
}

@media (max-width: 900px) {
  .prem-theme-btn {
    bottom: 90px;
    left: 62px;
    width: 38px;
    height: 38px;
  }
  .prem-theme-btn svg { width: 16px; height: 16px; }
  .prem-theme-panel { bottom: 136px; }
}

@media (max-width: 480px) {
  .prem-theme-btn {
    bottom: 84px;
    left: 57px;
    width: 36px;
    height: 36px;
  }
  .prem-theme-panel {
    left: 13px;
    right: 13px;
    width: auto;
    max-width: none;
    bottom: 128px;
  }
}

/* ============================================
   05. ACHIEVEMENT TOAST
   ============================================ */
.prem-achievement {
  position: fixed;
  top: 90px;
  right: 20px;
  max-width: 320px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9998;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
}

.prem-achievement.show {
  transform: translateX(0);
}

.prem-achievement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.06));
  pointer-events: none;
}

.prem-ach-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
  position: relative;
  z-index: 1;
}

.prem-ach-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.prem-ach-title {
  font-size: 9.5px;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 2px;
}

.prem-ach-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.prem-ach-desc {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.4;
}

@media (max-width: 480px) {
  .prem-achievement {
    top: 76px;
    right: 13px;
    left: 13px;
    max-width: none;
  }
}

/* ============================================
   06. CONFETTI
   ============================================ */
.prem-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  overflow: hidden;
}

.prem-confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0.9;
  animation: premConfettiFall 3s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes premConfettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(720deg) scale(0.4);
    opacity: 0;
  }
}

/* ============================================
   07. SPOTIFY WIDGET
   ============================================ */
.prem-spotify {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 996;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prem-spotify.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.prem-spotify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(30, 215, 96, 0.12), rgba(30, 215, 96, 0.04));
}

.prem-spotify-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prem-spotify-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1DB954;
  box-shadow: 0 0 8px #1DB954;
  animation: pulse 2s infinite;
}

.prem-spotify-head strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.prem-spotify-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.prem-spotify-close:hover {
  background: var(--pink);
  color: white;
}

.prem-spotify-body {
  padding: 10px;
  background: var(--bg-2);
}

.prem-spotify-body iframe {
  width: 100%;
  height: 152px;
  border: none;
  border-radius: 10px;
  background: #000;
  display: block;
}

.prem-spotify-body p {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.5;
  padding: 8px 4px;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 900px) {
  .prem-spotify {
    bottom: 90px;
    right: 16px;
    width: 280px;
  }
}

@media (max-width: 480px) {
  .prem-spotify {
    bottom: 84px;
    right: 13px;
    left: 13px;
    width: auto;
    max-width: none;
  }
}

/* Spotify toggle button */
.prem-spotify-btn {
  position: fixed;
  bottom: 20px;
  right: 96px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1DB954, #15873e);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 997;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.4);
}

.prem-spotify-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(29, 185, 84, 0.6);
}

.prem-spotify-btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .prem-spotify-btn {
    bottom: 90px;
    right: 72px;
    width: 38px;
    height: 38px;
  }
  .prem-spotify-btn svg { width: 16px; height: 16px; }
}

@media (max-width: 480px) {
  .prem-spotify-btn {
    bottom: 84px;
    right: 65px;
    width: 36px;
    height: 36px;
  }
}

/* ============================================
   08. SMOOTH THEME TRANSITION
   ============================================ */
html.prem-theme-transition,
html.prem-theme-transition *,
html.prem-theme-transition *::before,
html.prem-theme-transition *::after {
  transition: background-color 1.5s ease, color 1.5s ease, border-color 1.5s ease !important;
}

/* ============================================
   09. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .prem-wave,
  .prem-confetti,
  .prem-achievement {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   DESKTOP FORCE FIX — One Block
   ============================================ */
@media (min-width: 901px) {
  .prem-sound-toggle,
  .prem-theme-btn,
  .prem-spotify-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
  }

  .prem-sound-toggle {
    bottom: 24px !important;
    left: 24px !important;
  }

  .prem-theme-btn {
    bottom: 24px !important;
    left: 78px !important;
  }

  .prem-spotify-btn {
    bottom: 24px !important;
    right: 92px !important;
  }
}




/* ============================================
   10. RSS SUBSCRIBE BUTTON
   ============================================ */
.rss-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: white;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  font-family: 'Inter', sans-serif;
}

.rss-subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.6);
}

.rss-subscribe-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .rss-subscribe-btn {
    font-size: 11.5px;
    padding: 9px 14px;
  }
}


/* Hero Live Activity */
.hero-live-activity {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  margin-top: 4px;
}
.hla-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.hla-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hla-green {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}
@media (max-width: 480px) {
  .hero-live-activity { gap: 8px; }
  .hla-item { font-size: 10.5px; padding: 3px 8px; }
}






/* ============================================
   HERO LIVE ACTIVITY
   ============================================ */
.hero-live-activity {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  margin-top: 4px;
}



@media (max-width: 480px) {
  
  
}

/* ============================================
   DESKTOP FORCE FIX for Sound Toggle
   ============================================ */
@media (min-width: 901px) {
  .prem-sound-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    bottom: 24px !important;
    left: 24px !important;
  }
}

/* ============================================
   RSS SUBSCRIBE BUTTON
   ============================================ */
.rss-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: white;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  font-family: 'Inter', sans-serif;
}


@media (max-width: 480px) {
  
}















