/* ==========================================================================
   YouTube-Style Subscribe Animation Stylesheet (60 FPS, OBS Compatible)
   ========================================================================== */

:root {
  --anim-speed: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: transparent;
  font-family: 'Roboto', 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Standalone OBS Browser-Source Auto-Fit Scaling */
body.subscribe-standalone {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

body.subscribe-standalone .yt-stage {
  transform-origin: center center !important;
  transform: scale(min(calc(100vw / 1920), calc(100vh / 1080))) !important;
}

/* 1920x1080 Stage Viewport */
.yt-stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  background-color: transparent;
  overflow: hidden;
  transform-origin: top left;
}

/* Explicit Background States */
body.yt-bg-green, body.yt-bg-green .yt-stage {
  background-color: #00FF00 !important;
}

body.yt-bg-blue, body.yt-bg-blue .yt-stage {
  background-color: #0000FF !important;
}

body.yt-bg-transparent, body.yt-bg-transparent .yt-stage {
  background-color: transparent !important;
}

/* Scaling container for browser previews */
.yt-stage-scaler {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Widget Container */
.yt-subscribe-widget {
  --anim-scale: 1.0;
  position: absolute;
  display: inline-flex;
  align-items: center;
  z-index: 10;
  transform-origin: center center;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
  will-change: transform, opacity;
  pointer-events: none;
}

/* Motion Wrapper for Independent Slide In / Slide Out (Separates position from motion) */
.yt-motion-wrapper {
  display: inline-flex;
  align-items: center;
  transform-origin: center center;
  will-change: transform, opacity;
}

/* Positions */
.yt-subscribe-widget.pos-bottom-center {
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%) scale(var(--anim-scale));
}

.yt-subscribe-widget.pos-bottom-left {
  bottom: 120px;
  left: 120px;
  transform: scale(var(--anim-scale));
}

.yt-subscribe-widget.pos-bottom-right {
  bottom: 120px;
  right: 120px;
  transform: scale(var(--anim-scale));
}

.yt-subscribe-widget.pos-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--anim-scale));
}

.yt-subscribe-widget.pos-top-center {
  top: 120px;
  left: 50%;
  transform: translateX(-50%) scale(var(--anim-scale));
}

/* ==========================================================================
   Element 1: Red Circular YouTube-Style Play Icon
   ========================================================================== */
.yt-icon-badge {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FF0000, #D90000);
  box-shadow: 0 8px 24px rgba(217, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0) translateX(-60px);
  transition: transform calc(0.6s / var(--anim-speed, 1)) cubic-bezier(0.34, 1.56, 0.64, 1), opacity calc(0.4s / var(--anim-speed, 1)) ease;
  will-change: transform, opacity;
}

.yt-icon-badge svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
  margin-left: 4px; /* Optical center for triangle */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* State 1: Icon pops in with soft bounce */
.state-icon-in .yt-icon-badge {
  opacity: 1;
  transform: scale(1) translateX(0);
}

/* ==========================================================================
   Element 2: White Rounded Subscribe Panel
   ========================================================================== */
.yt-panel {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 50px;
  height: 76px;
  margin-left: -38px; /* Smooth overlap with circular icon */
  padding-left: 54px;
  padding-right: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  z-index: 10;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  transition: max-width calc(0.65s / var(--anim-speed, 1)) cubic-bezier(0.16, 1, 0.3, 1), opacity calc(0.35s / var(--anim-speed, 1)) ease;
  will-change: max-width, opacity;
}

/* State 2: Panel expands horizontally */
.state-panel-expand .yt-panel {
  max-width: 720px;
  opacity: 1;
}

/* ==========================================================================
   Element 3: Channel Name
   ========================================================================== */
.yt-channel-info {
  display: flex;
  align-items: center;
  margin-right: 28px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity calc(0.4s / var(--anim-speed, 1)) ease, transform calc(0.4s / var(--anim-speed, 1)) cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.yt-channel-name {
  font-size: 24px;
  font-weight: 700;
  color: #0F0F0F;
  letter-spacing: -0.2px;
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-channel-in .yt-channel-info {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Element 4: Subscribe Button
   ========================================================================== */
.yt-sub-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  border-radius: 30px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.6);
  transition: background 0.3s ease, color 0.3s ease, transform calc(0.35s / var(--anim-speed, 1)) cubic-bezier(0.34, 1.56, 0.64, 1), opacity calc(0.3s / var(--anim-speed, 1)) ease, box-shadow 0.3s ease;
  will-change: transform, opacity, background;
  user-select: none;
}

.yt-sub-btn svg.check-icon {
  width: 18px;
  height: 18px;
  fill: #606060;
  display: none;
}

/* State 4: Button scales up with bounce */
.state-btn-in .yt-sub-btn {
  opacity: 1;
  transform: scale(1);
}

/* Cursor press effect */
.yt-sub-btn.is-pressed {
  transform: scale(0.92);
}

/* State 7: Button transforms to "SUBSCRIBED" */
.yt-sub-btn.is-subscribed {
  background: #F2F2F2;
  color: #606060;
  box-shadow: none;
}

/* ==========================================================================
   Element 5: Bell Icon & Notification Waves
   ========================================================================== */
.yt-bell-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 10px;
  opacity: 0;
  transform: scale(0);
  transition: transform calc(0.4s / var(--anim-speed, 1)) cubic-bezier(0.34, 1.56, 0.64, 1), opacity calc(0.3s / var(--anim-speed, 1)) ease;
  will-change: transform, opacity;
}

/* State 8: Bell pops in */
.state-bell-in .yt-bell-wrapper {
  opacity: 1;
  transform: scale(1);
}

.yt-bell-icon {
  position: relative;
  width: 26px;
  height: 26px;
  fill: #606060;
  z-index: 5;
  transition: fill 0.2s ease;
  transform-origin: top center;
}

.yt-bell-wrapper.active .yt-bell-icon {
  fill: #0F0F0F;
}

/* Bell shake animation */
.yt-bell-wrapper.ringing .yt-bell-icon {
  animation: bellShake calc(0.65s / var(--anim-speed, 1)) cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes bellShake {
  0% { transform: rotate(0); }
  15% { transform: rotate(22deg); }
  30% { transform: rotate(-18deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-10deg); }
  75% { transform: rotate(6deg); }
  90% { transform: rotate(-2deg); }
  100% { transform: rotate(0); }
}

/* Circular Ripple Waves from Bell */
.yt-bell-ripples {
  position: absolute;
  inset: -12px;
  pointer-events: none;
}

.yt-bell-ripples .wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(15, 15, 15, 0.4);
  opacity: 0;
}

.yt-bell-ripples.active .wave:nth-child(1) {
  animation: ripplePulse calc(0.8s / var(--anim-speed, 1)) ease-out;
}

.yt-bell-ripples.active .wave:nth-child(2) {
  animation: ripplePulse calc(0.8s / var(--anim-speed, 1)) calc(0.2s / var(--anim-speed, 1)) ease-out;
}

@keyframes ripplePulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ==========================================================================
   Element 6: Mouse Cursor
   ========================================================================== */
.yt-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: transform calc(0.75s / var(--anim-speed, 1)) cubic-bezier(0.25, 1, 0.5, 1), opacity calc(0.3s / var(--anim-speed, 1)) ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  will-change: transform, opacity;
}

.yt-cursor svg {
  width: 100%;
  height: 100%;
  fill: #FFFFFF;
  stroke: #000000;
  stroke-width: 1.5;
  transition: transform 0.12s ease;
  transform-origin: 16.67% 8.33%; /* Exact tip at (4px, 2px) in 24x24 viewBox */
}

.yt-cursor.cursor-clicking svg {
  transform: scale(0.84);
}

/* ==========================================================================
   State 12: Smooth Exit / Slide Out
   Direction & distance are dynamically configured and applied to .yt-motion-wrapper
   ========================================================================== */
.state-slide-out {
  pointer-events: none;
}

/* ==========================================================================
   THEME 1: CYBERPUNK (Futuristic Neon Sci-Fi)
   ========================================================================== */
.yt-subscribe-widget.yt-theme-cyberpunk {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  filter: drop-shadow(0 0 25px rgba(0, 255, 204, 0.4)) drop-shadow(0 14px 28px rgba(0, 0, 0, 0.6));
}

.yt-subscribe-widget.yt-theme-cyberpunk .yt-panel {
  background: linear-gradient(135deg, rgba(10, 14, 23, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px solid #00ffcc;
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(0, 255, 204, 0.35), inset 0 0 14px rgba(0, 255, 204, 0.15), 0 12px 32px rgba(0, 0, 0, 0.8);
}

.yt-subscribe-widget.yt-theme-cyberpunk .yt-icon-badge {
  background: linear-gradient(135deg, #00ffcc 0%, #ff007f 100%);
  border: 2px solid #00ffcc;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.6);
}

.yt-subscribe-widget.yt-theme-cyberpunk .yt-icon-badge svg {
  fill: #0a0e17;
  filter: drop-shadow(0 0 6px rgba(0, 255, 204, 0.8));
}

.yt-subscribe-widget.yt-theme-cyberpunk .yt-channel-name {
  font-family: 'Orbitron', sans-serif;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
}

.yt-subscribe-widget.yt-theme-cyberpunk .yt-sub-btn {
  background: #ff007f;
  color: #ffffff;
  border: 1.5px solid #ff77ba;
  border-radius: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 18px rgba(255, 0, 127, 0.7);
}

.yt-subscribe-widget.yt-theme-cyberpunk .yt-sub-btn.is-subscribed {
  background: rgba(0, 255, 204, 0.18);
  color: #00ffcc;
  border: 1.5px solid #00ffcc;
  box-shadow: 0 0 18px rgba(0, 255, 204, 0.45);
}

.yt-subscribe-widget.yt-theme-cyberpunk .yt-sub-btn svg.check-icon {
  fill: #00ffcc;
}

.yt-subscribe-widget.yt-theme-cyberpunk .yt-bell-icon {
  fill: #ff007f;
}

.yt-subscribe-widget.yt-theme-cyberpunk .yt-bell-wrapper.active .yt-bell-icon {
  fill: #00ffcc;
  filter: drop-shadow(0 0 8px #00ffcc);
}

.yt-subscribe-widget.yt-theme-cyberpunk .yt-bell-ripples .wave {
  border: 2px solid #00ffcc;
  box-shadow: 0 0 10px #00ffcc;
}

.yt-subscribe-widget.yt-theme-cyberpunk ~ .yt-cursor svg,
.yt-subscribe-widget.yt-theme-cyberpunk + .yt-cursor svg {
  fill: #00ffcc;
  stroke: #ff007f;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px #00ffcc);
}

/* ==========================================================================
   THEME 2: MINIMAL (Clean Modern Professional)
   ========================================================================== */
.yt-subscribe-widget.yt-theme-minimal {
  font-family: 'Inter', sans-serif;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
}

.yt-subscribe-widget.yt-theme-minimal .yt-panel {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.yt-subscribe-widget.yt-theme-minimal .yt-icon-badge {
  background: #2563eb;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.yt-subscribe-widget.yt-theme-minimal .yt-channel-name {
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.yt-subscribe-widget.yt-theme-minimal .yt-sub-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.yt-subscribe-widget.yt-theme-minimal .yt-sub-btn.is-subscribed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.yt-subscribe-widget.yt-theme-minimal .yt-sub-btn svg.check-icon {
  fill: #475569;
}

.yt-subscribe-widget.yt-theme-minimal .yt-bell-icon {
  fill: #94a3b8;
}

.yt-subscribe-widget.yt-theme-minimal .yt-bell-wrapper.active .yt-bell-icon {
  fill: #2563eb;
}

.yt-subscribe-widget.yt-theme-minimal .yt-bell-ripples .wave {
  border: 1.5px solid rgba(37, 99, 235, 0.4);
}

.yt-subscribe-widget.yt-theme-minimal ~ .yt-cursor svg,
.yt-subscribe-widget.yt-theme-minimal + .yt-cursor svg {
  fill: #ffffff;
  stroke: #0f172a;
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

/* ==========================================================================
   THEME 3: ESPORTS (High-Energy Competitive Gaming)
   ========================================================================== */
.yt-subscribe-widget.yt-theme-esports {
  font-family: 'Rajdhani', sans-serif;
  filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.3)) drop-shadow(0 14px 30px rgba(0, 0, 0, 0.8));
}

.yt-subscribe-widget.yt-theme-esports .yt-panel {
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
  border: 2px solid #eab308;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85), 0 0 16px rgba(234, 179, 8, 0.35);
}

.yt-subscribe-widget.yt-theme-esports .yt-icon-badge {
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
  border: 2px solid #fef08a;
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.55);
}

.yt-subscribe-widget.yt-theme-esports .yt-icon-badge svg {
  fill: #09090b;
}

.yt-subscribe-widget.yt-theme-esports .yt-channel-name {
  font-family: 'Rajdhani', sans-serif;
  color: #fef08a;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
}

.yt-subscribe-widget.yt-theme-esports .yt-sub-btn {
  background: #eab308;
  color: #09090b;
  border: none;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.45);
}

.yt-subscribe-widget.yt-theme-esports .yt-sub-btn.is-subscribed {
  background: #27272a;
  color: #fef08a;
  border: 2px solid #eab308;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.3);
}

.yt-subscribe-widget.yt-theme-esports .yt-sub-btn svg.check-icon {
  fill: #fef08a;
}

.yt-subscribe-widget.yt-theme-esports .yt-bell-icon {
  fill: #a1a1aa;
}

.yt-subscribe-widget.yt-theme-esports .yt-bell-wrapper.active .yt-bell-icon {
  fill: #eab308;
  filter: drop-shadow(0 0 8px #eab308);
}

.yt-subscribe-widget.yt-theme-esports .yt-bell-ripples .wave {
  border: 2px solid #eab308;
  box-shadow: 0 0 10px #eab308;
}

.yt-subscribe-widget.yt-theme-esports ~ .yt-cursor svg,
.yt-subscribe-widget.yt-theme-esports + .yt-cursor svg {
  fill: #facc15;
  stroke: #09090b;
  stroke-width: 2;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

/* ==========================================================================
   THEME 4: RETRO 8-BIT (Arcade Pixel Aesthetics)
   ========================================================================== */
.yt-subscribe-widget.yt-theme-retro {
  font-family: 'Press Start 2P', monospace;
  filter: drop-shadow(6px 6px 0 #000);
}

.yt-subscribe-widget.yt-theme-retro .yt-panel {
  background: #000000;
  border: 4px solid #4ade80;
  border-radius: 0;
  box-shadow: 6px 6px 0 #16a34a, -4px -4px 0 #14532d;
  image-rendering: pixelated;
  padding-left: 50px;
  padding-right: 18px;
}

.yt-subscribe-widget.yt-theme-retro .yt-icon-badge {
  background: #16a34a;
  border: 3px solid #4ade80;
  border-radius: 0;
  box-shadow: 3px 3px 0 #000;
  image-rendering: pixelated;
}

.yt-subscribe-widget.yt-theme-retro .yt-icon-badge svg {
  fill: #ffffff;
}

.yt-subscribe-widget.yt-theme-retro .yt-channel-name {
  font-family: 'Press Start 2P', monospace;
  color: #4ade80;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.4;
  text-shadow: 2px 2px 0 #14532d;
}

.yt-subscribe-widget.yt-theme-retro .yt-sub-btn {
  background: #22c55e;
  color: #000000;
  border: 3px solid #4ade80;
  border-radius: 0;
  box-shadow: 4px 4px 0 #14532d;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  font-weight: 400;
  padding: 10px 14px;
}

.yt-subscribe-widget.yt-theme-retro .yt-sub-btn.is-subscribed {
  background: #052e16;
  color: #4ade80;
  border: 3px solid #22c55e;
  box-shadow: 2px 2px 0 #000;
}

.yt-subscribe-widget.yt-theme-retro .yt-sub-btn svg.check-icon {
  fill: #4ade80;
}

.yt-subscribe-widget.yt-theme-retro .yt-bell-icon {
  fill: #16a34a;
}

.yt-subscribe-widget.yt-theme-retro .yt-bell-wrapper.active .yt-bell-icon {
  fill: #4ade80;
  filter: drop-shadow(2px 2px 0 #000);
}

.yt-subscribe-widget.yt-theme-retro .yt-bell-ripples .wave {
  border: 3px solid #4ade80;
  border-radius: 0;
}

.yt-subscribe-widget.yt-theme-retro ~ .yt-cursor svg,
.yt-subscribe-widget.yt-theme-retro + .yt-cursor svg {
  fill: #4ade80;
  stroke: #000000;
  stroke-width: 2;
  filter: drop-shadow(3px 3px 0 #000);
  shape-rendering: crispEdges;
}

/* ==========================================================================
   THEME 5: GLASS PILL (Frosted Glassmorphism)
   ========================================================================== */
.yt-subscribe-widget.yt-theme-glass {
  font-family: 'Montserrat', sans-serif;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.45));
}

.yt-subscribe-widget.yt-theme-glass .yt-panel {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.yt-subscribe-widget.yt-theme-glass .yt-icon-badge {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.45);
}

.yt-subscribe-widget.yt-theme-glass .yt-channel-name {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.yt-subscribe-widget.yt-theme-glass .yt-sub-btn {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(2, 132, 199, 0.85));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

.yt-subscribe-widget.yt-theme-glass .yt-sub-btn.is-subscribed {
  background: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.yt-subscribe-widget.yt-theme-glass .yt-sub-btn svg.check-icon {
  fill: #38bdf8;
}

.yt-subscribe-widget.yt-theme-glass .yt-bell-icon {
  fill: #94a3b8;
}

.yt-subscribe-widget.yt-theme-glass .yt-bell-wrapper.active .yt-bell-icon {
  fill: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.yt-subscribe-widget.yt-theme-glass .yt-bell-ripples .wave {
  border: 1.5px solid rgba(56, 189, 248, 0.5);
}

.yt-subscribe-widget.yt-theme-glass ~ .yt-cursor svg,
.yt-subscribe-widget.yt-theme-glass + .yt-cursor svg {
  fill: #e0f2fe;
  stroke: #0284c7;
  stroke-width: 1.5;
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.5));
}

/* ==========================================================================
   THEME 6: RED ALERT (High-Contrast Urgent Emergency Alert)
   ========================================================================== */
.yt-subscribe-widget.yt-theme-red-alert {
  font-family: 'Bebas Neue', sans-serif;
  filter: drop-shadow(0 0 24px rgba(239, 68, 68, 0.45)) drop-shadow(0 14px 36px rgba(0, 0, 0, 0.9));
}

.yt-subscribe-widget.yt-theme-red-alert .yt-panel {
  background: #09090b;
  border: 2px solid #ef4444;
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.45), 0 14px 40px rgba(0, 0, 0, 0.9);
}

.yt-subscribe-widget.yt-theme-red-alert .yt-icon-badge {
  background: linear-gradient(145deg, #dc2626 0%, #991b1b 100%);
  border: 2px solid #f87171;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.65);
}

.yt-subscribe-widget.yt-theme-red-alert .yt-channel-name {
  font-family: 'Bebas Neue', sans-serif;
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.yt-subscribe-widget.yt-theme-red-alert .yt-sub-btn {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #f87171;
  border-radius: 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.65);
  padding: 8px 20px;
}

.yt-subscribe-widget.yt-theme-red-alert .yt-sub-btn.is-subscribed {
  background: #1c1917;
  color: #ef4444;
  border: 1.5px solid #dc2626;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.yt-subscribe-widget.yt-theme-red-alert .yt-sub-btn svg.check-icon {
  fill: #ef4444;
}

.yt-subscribe-widget.yt-theme-red-alert .yt-bell-icon {
  fill: #78716c;
}

.yt-subscribe-widget.yt-theme-red-alert .yt-bell-wrapper.active .yt-bell-icon {
  fill: #ef4444;
  filter: drop-shadow(0 0 8px #ef4444);
}

.yt-subscribe-widget.yt-theme-red-alert .yt-bell-ripples .wave {
  border: 2px solid #ef4444;
  box-shadow: 0 0 12px #ef4444;
}

.yt-subscribe-widget.yt-theme-red-alert ~ .yt-cursor svg,
.yt-subscribe-widget.yt-theme-red-alert + .yt-cursor svg {
  fill: #ffffff;
  stroke: #ef4444;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8));
}

/* ==========================================================================
   THEME 7: GOLDEN LUXE (Polished Aristocratic Royal Gold)
   ========================================================================== */
.yt-subscribe-widget.yt-theme-golden {
  font-family: 'Outfit', sans-serif;
  filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.3)) drop-shadow(0 16px 40px rgba(0, 0, 0, 0.8));
}

.yt-subscribe-widget.yt-theme-golden .yt-panel {
  background: linear-gradient(135deg, #0d0c0a 0%, #171410 100%);
  border: 1.5px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 24px rgba(212, 175, 55, 0.28), inset 0 1px 0 rgba(255, 240, 180, 0.3);
}

.yt-subscribe-widget.yt-theme-golden .yt-icon-badge {
  background: radial-gradient(circle, #fef08a 0%, #d4af37 60%, #996515 100%);
  border: 2px solid #fef08a;
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.55), inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.yt-subscribe-widget.yt-theme-golden .yt-icon-badge svg {
  fill: #171202;
}

.yt-subscribe-widget.yt-theme-golden .yt-channel-name {
  font-family: 'Outfit', sans-serif;
  color: #fef9c3;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 12px rgba(212, 175, 55, 0.35);
}

.yt-subscribe-widget.yt-theme-golden .yt-sub-btn {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #171202;
  border: 1px solid #fef08a;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(202, 138, 4, 0.45);
}

.yt-subscribe-widget.yt-theme-golden .yt-sub-btn.is-subscribed {
  background: rgba(35, 26, 12, 0.85);
  color: #fde047;
  border: 1px solid #ca8a04;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}

.yt-subscribe-widget.yt-theme-golden .yt-sub-btn svg.check-icon {
  fill: #fde047;
}

.yt-subscribe-widget.yt-theme-golden .yt-bell-icon {
  fill: #a18a5b;
}

.yt-subscribe-widget.yt-theme-golden .yt-bell-wrapper.active .yt-bell-icon {
  fill: #d4af37;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.yt-subscribe-widget.yt-theme-golden .yt-bell-ripples .wave {
  border: 2px solid #d4af37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.yt-subscribe-widget.yt-theme-golden ~ .yt-cursor svg,
.yt-subscribe-widget.yt-theme-golden + .yt-cursor svg {
  fill: #fef08a;
  stroke: #78350f;
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.6));
}

