/* ==========================================================================
   PollFlux Flagship Design System (Ultra-Premium UI/UX)
   ========================================================================== */

:root {
  /* Curated Signature PluxVote Cyber-Aurora & Electric Gold Palette */
  --clr-primary: #090d16;           /* Midnight Obsidian / Deep Velvet */
  --clr-primary-hover: #161e31;     /* Cosmic Slate 800 */
  --clr-accent: #7c3aed;            /* Electric Violet / Cyber Aurora */
  --clr-accent-glow: rgba(124, 58, 237, 0.45);
  --clr-accent-secondary: #06b6d4;  /* Luminous Cyber Cyan */
  --clr-success: #10b981;           /* Neon Emerald */
  --clr-danger: #f43f5e;            /* Electric Rose / Pulse Pink */
  --clr-warning: #ffaa00;           /* Imperial Hot Gold / Reality Trophy Gold */

  /* Surfaces & Backgrounds */
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f3effe 50%, #eef2ff 100%);
  --surface-card: rgba(255, 255, 255, 0.92);
  --surface-glass: rgba(255, 255, 255, 0.78);
  --surface-glass-border: rgba(124, 58, 237, 0.2);

  /* Typography Pairing */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows (Elevated Luminous & Neon Hierarchy) */
  --shadow-xs: 0 1px 2px rgba(9, 13, 22, 0.05);
  --shadow-sm: 0 4px 14px rgba(124, 58, 237, 0.08);
  --shadow-md: 0 10px 32px rgba(9, 13, 22, 0.1);
  --shadow-lg: 0 20px 55px rgba(124, 58, 237, 0.16);
  --shadow-glow: 0 8px 30px var(--clr-accent-glow);
  --shadow-gold-glow: 0 8px 28px rgba(255, 170, 0, 0.4);

  /* Radii & Transitions */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
}

.min-w-0 {
  min-width: 0 !important;
}

html {
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: #f8fafc;
  background-image: 
    radial-gradient(at 15% 15%, rgba(124, 58, 237, 0.1) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 40%, rgba(255, 170, 0, 0.06) 0px, transparent 65%);
  background-attachment: fixed;
  color: #334155;
  margin: 0;
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--clr-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 0;
}

/* Force correct white text contrast on headings inside text-white or dark gradient containers */
.text-white, .text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bb-ai-section h1, .bb-ai-section h2, .bb-ai-section h3, .bb-ai-section h4, .bb-ai-section h5, .bb-ai-section h6,
.bb-studio-header h1, .bb-studio-header h2, .bb-studio-header h3, .bb-studio-header h4, .bb-studio-header h5, .bb-studio-header h6,
.bb-preview-dark h1, .bb-preview-dark h2, .bb-preview-dark h3, .bb-preview-dark h4, .bb-preview-dark h5, .bb-preview-dark h6,
.bb-preview-neon h1, .bb-preview-neon h2, .bb-preview-neon h3, .bb-preview-neon h4, .bb-preview-neon h5, .bb-preview-neon h6,
.bb-preview-glass h1, .bb-preview-glass h2, .bb-preview-glass h3, .bb-preview-glass h4, .bb-preview-glass h5, .bb-preview-glass h6,
[style*="linear-gradient(135deg, #4f46e5"] h1, [style*="linear-gradient(135deg, #4f46e5"] h2, [style*="linear-gradient(135deg, #4f46e5"] h3,
[style*="linear-gradient(135deg, #4f46e5"] h4, [style*="linear-gradient(135deg, #4f46e5"] h5, [style*="linear-gradient(135deg, #4f46e5"] h6,
[style*="linear-gradient(135deg, #090b16"] h1, [style*="linear-gradient(135deg, #090b16"] h2, [style*="linear-gradient(135deg, #090b16"] h3,
[style*="linear-gradient(135deg, #090b16"] h4, [style*="linear-gradient(135deg, #090b16"] h5, [style*="linear-gradient(135deg, #090b16"] h6,
[style*="linear-gradient(135deg, #1e293b"] h1, [style*="linear-gradient(135deg, #1e293b"] h2, [style*="linear-gradient(135deg, #1e293b"] h3 {
  color: #ffffff !important;
}

.text-light {
  color: #f8fafc !important;
}


/* ==========================================================================
   Silicon Valley Flagship Navbar
   ========================================================================== */
.navbar-ultra {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.brand-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.brand-icon-box .material-icons {
  font-size: 22px;
  color: #ffffff;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.38rem;
  letter-spacing: -0.04em;
  color: #111827;
}

.navbar-ultra .nav-link {
  color: #374151 !important;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.navbar-ultra .nav-link:hover {
  color: #111827 !important;
  background: #f3f4f6;
}

.navbar-ultra .nav-link-trending {
  background: transparent;
  color: #374151 !important;
  border: none;
}

.navbar-ultra .nav-link-trending:hover {
  background: #f3f4f6;
  color: #111827 !important;
}

/* Flagship Mega-Menu Dropdown (`#navbarDropdownPopular`) */
#navbarDropdownPopular + .dropdown-menu .dropdown-item {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#navbarDropdownPopular + .dropdown-menu .dropdown-item:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateX(4px);
}
#navbarDropdownPopular + .dropdown-menu a[href="/bigg-boss-unofficial-voting-widget"]:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%) !important;
  transform: translateY(-3px) scale(1.01) !important;
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.25) !important;
  border-color: #4f46e5 !important;
}

.nav-link-premium {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #475569 !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link-premium:hover {
  color: var(--clr-primary) !important;
  background: rgba(124, 58, 237, 0.08);
}

/* Signature PluxVote Buttons */
.btn-premium {
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.38);
  transition: all var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-premium:hover {
  box-shadow: 0 14px 35px rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

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

.btn-premium-solid {
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  color: #ffffff !important;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(9, 13, 22, 0.15);
  transition: all 0.2s ease;
}

.btn-premium-solid:hover {
  border-color: #7c3aed;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.25);
  transform: translateY(-1px);
}

.btn-premium-solid:hover {
  background-color: var(--clr-primary-hover);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Surfaces & Glass Containers
   ========================================================================== */
.glass-surface {
  background: var(--surface-card);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--surface-glass-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.poll-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  border: 1px solid #f1f5f9;
  transition: all var(--transition-smooth);
  margin-bottom: 24px;
}

.poll-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #e2e8f0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 104px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
  max-width: 900px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: #64748b;
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-weight: 400;
}

/* Feature Grid */
.feature-card {
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-smooth);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.2);
}

.feature-icon {
  font-size: 3.2rem;
  color: var(--clr-accent);
  margin-bottom: 24px;
  display: inline-block;
  padding: 16px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Forms & Controls
   ========================================================================== */
.form-group {
  margin-bottom: 28px;
}

.form-label {
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
}

.form-control-premium,
.form-control-flagship {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background-color: #f8fafc;
  color: #0f172a;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control-premium:focus,
.form-control-flagship:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.form-select,
.form-select-flagship {
  padding: 16px 20px;
  font-size: 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  font-family: var(--font-body);
  color: #0f172a;
  background-color: #f8fafc;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-select:focus,
.form-select-flagship:focus {
  background-color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.create-flagship-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03);
}

.btn-flagship-launch {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #9333ea 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 18px 36px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px -4px rgba(79, 70, 229, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  text-decoration: none;
}

.btn-flagship-launch:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #7e22ce 100%);
  box-shadow: 0 16px 38px -4px rgba(79, 70, 229, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* ==========================================================================
   Live Voting Room Flagship UI
   ========================================================================== */
.poll-widget-container {
  max-width: 100%;
  margin: 0 auto;
}

.vote-option {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  margin-bottom: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  overflow: hidden;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background-color 0.25s ease;
  user-select: none;
  will-change: transform, box-shadow;
}

.vote-option:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 12px 28px -6px rgba(var(--option-color, 79, 70, 229), 0.18);
  border-color: rgba(var(--option-color, 79, 70, 229), 0.5);
}

.vote-option:active {
  transform: translateY(-1px) scale(0.998);
}

.vote-option.selected {
  border-color: rgb(var(--option-color, 79, 70, 229));
  background: rgba(var(--option-color, 79, 70, 229), 0.035);
  box-shadow: 0 0 0 1.5px rgb(var(--option-color, 79, 70, 229)), 0 10px 25px -5px rgba(var(--option-color, 79, 70, 229), 0.2);
  transform: translateY(-2px);
}

.vote-option.disabled-option:not(.selected) {
  opacity: 0.75;
  transform: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

/* Premium Circle & Tick Mark Indicator */
.vote-circle-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.vote-circle-indicator .indicator-tick {
  font-size: 16px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 900;
}

.vote-option:hover .vote-circle-indicator {
  border-color: rgb(var(--option-color, 79, 70, 229));
  box-shadow: 0 0 0 4px rgba(var(--option-color, 79, 70, 229), 0.15);
}

.vote-option.selected .vote-circle-indicator {
  background: rgb(var(--option-color, 79, 70, 229));
  border-color: rgb(var(--option-color, 79, 70, 229));
  box-shadow: 0 0 0 4px rgba(var(--option-color, 79, 70, 229), 0.2), 0 2px 6px rgba(var(--option-color, 79, 70, 229), 0.3);
}

.vote-option.selected .vote-circle-indicator .indicator-tick {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   Ultra-Premium Success Notification Pill
   ========================================================================== */
.premium-success-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 10px 22px 10px 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #6ee7b7;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.22), 0 0 0 4px rgba(16, 185, 129, 0.1);
  animation: pillPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: fit-content;
}

@keyframes pillPopIn {
  0% { transform: translateY(-8px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.premium-success-pill .pill-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.35);
  flex-shrink: 0;
}

.premium-success-pill .pill-text {
  color: #065f46;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.vote-option .vote-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.vote-option-text {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: #0f172a;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.vote-option .vote-count {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: rgb(var(--option-color, 79, 70, 229)) !important;
  background: rgba(var(--option-color, 79, 70, 229), 0.1);
  padding: 4px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}

.vote-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, 
    rgba(var(--option-color, 79, 70, 229), 0.08) 0%, 
    rgba(var(--option-color, 79, 70, 229), 0.22) 100%);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-xs);
}

/* Trending Badge Animation */
.badge-trending {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 8px 20px rgba(244, 63, 94, 0.65); }
}

/* Footer */
.footer-ultra {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 60px 0 40px;
  color: #64748b;
  font-size: 0.95rem;
}

.footer-ultra h4, .footer-ultra h6 {
  color: #0f172a;
  font-family: var(--font-heading);
}

.footer-ultra a {
  color: #64748b;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-ultra a:hover {
  color: var(--clr-accent) !important;
}

/* Main Spacing */
main {
  padding-top: 84px;
  flex: 1 0 auto;
}

/* ==========================================================================
   Silicon Valley Flagship Navbar & Dropdown
   ========================================================================== */
.btn-create-flagship {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #9333ea 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  padding: 9px 20px;
  border-radius: 9999px; /* Executive Silicon Valley Capsule Pill */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 4px 18px -2px rgba(99, 102, 241, 0.45),
    0 0 0 1px rgba(147, 51, 234, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-create-flagship:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #7e22ce 100%);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 
    0 8px 25px -2px rgba(99, 102, 241, 0.6),
    0 0 0 2px rgba(147, 51, 234, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-flagship-secondary {
  width: 100%;
  background-color: #ffffff;
  color: #334155 !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.btn-flagship-secondary:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.btn-flagship-secondary .material-icons {
  font-size: 18px;
  color: #4f46e5;
  transition: color 0.15s ease;
}

.btn-flagship-secondary:hover .material-icons {
  color: #4338ca;
}

.nav-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%; /* Perfect circle executive halo */
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #c7d2fe !important; /* Glowing crystalline lavender typography */
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 
    0 4px 14px rgba(15, 23, 42, 0.2),
    0 0 0 2px rgba(99, 102, 241, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.nav-avatar-circle:hover {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff !important;
  box-shadow: 
    0 6px 20px rgba(99, 102, 241, 0.4),
    0 0 0 3px rgba(99, 102, 241, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transform: translateY(-1px) scale(1.03);
}

/* Remove ugly Bootstrap caret arrow */
.dropdown-toggle::after {
  display: none !important;
}

.flagship-dropdown-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
  border-radius: 18px !important;
  padding: 8px !important;
  min-width: 255px !important;
  margin-top: 10px !important;
  animation: menu-appear 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menu-appear {
  0% { opacity: 0; transform: translateY(-6px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.user-info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 6px;
}

.user-avatar-lg {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.28);
}

.user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.user-email {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f172a;
  margin-bottom: 4px;
  display: block;
}

.plan-badge {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.dropdown-sep {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}

.flagship-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.flagship-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.menu-icon {
  font-size: 18px;
  color: #64748b;
  transition: color 0.15s;
}

.flagship-menu-item:hover .menu-icon {
  color: #0f172a;
}

.item-logout {
  color: #e11d48;
}

.item-logout .menu-icon {
  color: #f43f5e;
}

.item-logout:hover {
  background: #ffe4e6;
  color: #be123c;
}

.item-logout:hover .menu-icon {
  color: #be123c;
}

/* ==========================================================================
   Flagship Dashboard Suite
   ========================================================================== */
.stat-overview-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(79, 70, 229, 0.08);
  border-color: #c7d2fe;
}

.stat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-poll-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.dashboard-poll-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.4);
}

.dashboard-poll-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #0ea5e9);
  opacity: 0;
  transition: opacity 0.25s;
}

.dashboard-poll-card:hover::before {
  opacity: 1;
}

.poll-title-flagship {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 12px;
  text-decoration: none;
}

.badge-live-emerald,
.badge-live-flagship {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(5, 150, 105, 0.08) 100%);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-live-emerald:hover,
.badge-live-flagship:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.15) 100%);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
  transform: translateY(-1px);
}

.pulse-dot-emerald,
.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: live-pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes live-pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.badge-closed-slate {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.metric-chip-soft {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-dashboard-manage {
  background-color: #4f46e5;
  color: white !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  border: none;
}

.btn-dashboard-manage:hover {
  background-color: #4338ca;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  color: white;
}

.btn-dashboard-share {
  background: #eff6ff;
  color: #4f46e5 !important;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  flex-shrink: 0;
}

.btn-dashboard-share:hover {
  background: #4f46e5;
  color: white !important;
  transform: scale(1.05);
}

/* ==========================================================================
   Flagship Manage Analytics Suite
   ========================================================================== */
.manage-hero-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  padding: 32px;
}

.btn-back-workspace {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-back-workspace:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: translateX(-3px);
  border-color: #94a3b8;
}

.btn-toggle-status {
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-close-poll {
  background-color: #e11d48;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}

.btn-close-poll:hover {
  background-color: #be123c;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
}

.btn-reopen-poll {
  background-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-reopen-poll:hover {
  background-color: #059669;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.timeframe-segmented-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 6px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.timeframe-segmented-bar input[type="radio"] {
  display: none;
}

.timeframe-segmented-bar label {
  padding: 8px 16px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.84rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  margin: 0;
}

.timeframe-segmented-bar input[type="radio"]:checked + label {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.manage-settings-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.form-select-flagship, .form-control-flagship {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: #0f172a;
  transition: all 0.2s ease;
  width: 100%;
}

.form-select-flagship:focus, .form-control-flagship:focus {
  background: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  outline: none;
}

.btn-save-flagship {
  background-color: #0f172a;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn-save-flagship:hover {
  background-color: #1e293b;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.embed-obsidian-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-table-container {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  width: 100%;
}

.standings-table-container table th:nth-child(1),
.standings-table-container table td:nth-child(1) {
  width: 50% !important;
  max-width: 50% !important;
}
.standings-table-container table th:nth-child(2),
.standings-table-container table td:nth-child(2),
.standings-table-container table th:nth-child(3),
.standings-table-container table td:nth-child(3) {
  width: 25% !important;
  max-width: 25% !important;
}

@media (max-width: 576px) {
  .standings-table-container table {
    width: 100% !important;
    min-width: 300px !important;
  }
  .standings-table-container th,
  .standings-table-container td {
    padding: 10px 6px !important;
  }
  .standings-table-container th {
    font-size: 0.68rem !important;
  }
  .standings-table-container td .fw-bold {
    font-size: 0.82rem !important;
    word-break: break-word;
  }
  .standings-table-container td .badge {
    padding: 4px 6px !important;
    font-size: 0.75rem !important;
  }
  .standings-table-container td .vote-count-cell {
    font-size: 1.05rem !important;
  }
}

/* ==========================================================================
   Silicon Valley Public Voting Page Flagship Suite
   ========================================================================== */
.public-poll-hero-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 25px 70px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  padding: 56px 64px;
  position: relative;
  overflow: hidden;
}

.public-poll-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ffaa00, #f43f5e, #00f2fe, #7c3aed);
}

/* ==========================================================================
   Responsive Viewport Compatibility (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-section { padding: 76px 0 80px; }
  .glass-surface, .public-poll-hero-card { padding: 28px; }
}

@media (max-width: 768px) {
  main { padding-top: 74px; }
  
  .hero-section {
    padding: 52px 16px 64px;
  }

  .glass-surface {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  .vote-option {
    padding: 16px 18px;
    border-radius: 12px;
  }

  .vote-option-text {
    font-size: 0.95rem;
  }

  .vote-option .vote-count {
    font-size: 0.95rem;
    padding: 4px 10px;
  }

  .btn-premium {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
  }

  .poll-card {
    padding: 20px;
  }

  .form-control-premium, .form-select {
    padding: 14px 16px;
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
  }
}

@media (max-width: 480px) {
  .brand-text { font-size: 1.3rem; }
  .stat-chip { font-size: 0.8rem; padding: 6px 12px; }
  .vote-option .vote-content { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .vote-option .vote-count { align-self: auto; }
}

.footer-flagship-premium {
  background: #090d16;
  background-image: 
    radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.07) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.05) 0px, transparent 50%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 80px 0 50px;
  font-family: var(--font-body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 1021;
}
.footer-flagship-premium .text-muted {
  color: #94a3b8 !important;
}
.footer-flagship-premium h6 {
  color: #f8fafc;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-flagship-premium .footer-brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-flagship-premium a.footer-link {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
  text-decoration: none;
}
.footer-flagship-premium a.footer-link:hover {
  color: #ffffff !important;
  transform: translateX(4px);
}
.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.footer-social-icon:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #090d16 !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}
.newsletter-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.newsletter-input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px;
  transition: all 0.2s ease;
}
.newsletter-input-group:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.05);
}
.newsletter-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  padding: 10px 16px;
  font-size: 0.92rem;
  width: 100%;
}
.newsletter-input::placeholder {
  color: #64748b;
}
.newsletter-btn {
  background: linear-gradient(135deg, var(--clr-accent) 0%, #6366f1 100%);
  border: none;
  border-radius: 9px;
  color: #ffffff;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.newsletter-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

/* Public pages general styling definitions */
.premium-page-hero {
  padding: 40px 0 50px;
  text-align: center;
  position: relative;
}
.premium-gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #312e81 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.premium-subtitle {
  color: #64748b;
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 700px;
  margin: 16px auto 0;
  line-height: 1.6;
}
.premium-glow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.15);
  color: var(--clr-accent);
  padding: 6px 16px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.03);
}

/* Feature cards */
.premium-feature-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 36px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
  height: 100%;
  text-align: left;
}
/* Standalone cards in column flow should be auto height */
section.premium-feature-card,
.col-lg-10 > .premium-feature-card,
.col-lg-8 > .premium-feature-card,
.premium-feature-card.h-auto {
  height: auto !important;
}
.premium-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(79, 70, 229, 0.05);
}
.premium-feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}
.premium-feature-card:hover .premium-feature-icon-wrapper {
  transform: scale(1.1) rotate(3deg);
}

/* Code card for API Reference */
.premium-code-card {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.premium-code-card .text-muted {
  color: #94a3b8 !important;
}
.premium-code-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.premium-code-badge {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.premium-code-path {
  font-family: monospace;
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 600;
}
.premium-code-body {
  padding: 24px;
  margin: 0;
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e2e8f0;
  background: transparent;
  overflow-x: auto;
  text-align: left;
}

/* Pricing Card */
.premium-pricing-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  padding: 48px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: left;
}
.premium-pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.12);
}
.premium-pricing-card.popular {
  border-color: var(--clr-accent);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.08);
}
.premium-pricing-card.popular::before {
  content: 'POPULAR CHOICE';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--clr-accent) 0%, #6366f1 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 4px 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Docs Side-nav item */
.docs-nav-link {
  display: block;
  padding: 10px 16px;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0 10px 10px 0;
  position: relative;
  z-index: 1;
}
.docs-nav-link:hover {
  color: var(--clr-accent);
  background: rgba(79, 70, 229, 0.05);
  transform: translateX(3px);
}
.docs-nav-link.active {
  color: var(--clr-accent) !important;
  font-weight: 700;
  border-left-color: var(--clr-accent);
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.08) 0%, rgba(79, 70, 229, 0.01) 100%);
}

.docs-section {
  scroll-margin-top: 120px;
  transition: opacity 0.25s ease;
}

.docs-search-wrapper {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}
.docs-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}
.docs-search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 50px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  color: #0f172a;
}
.docs-search-input:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.15);
  background: #ffffff;
}

.docs-code-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.docs-code-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.docs-code-btn.copied {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* ==========================================================================
   Trending Live Polls Card & UI
   ========================================================================== */
.trending-poll-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.trending-poll-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981 0%, #0ea5e9 50%, #4f46e5 100%);
  opacity: 0.85;
  transition: height 0.25s ease, opacity 0.25s ease;
}

.trending-poll-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.3);
}

.trending-poll-card:hover::before {
  height: 6px;
  opacity: 1;
}

.trending-poll-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-poll-card:hover .trending-poll-title {
  color: #4f46e5;
}

.trending-vote-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-trending-vote {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  width: 100%;
}

.btn-trending-vote:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* ==========================================================================
   Poll Page Mobile Stability & Typography Constraints
   ========================================================================== */
.poll-description-content {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: break-word;
}

.poll-description-content h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem) !important;
  font-weight: 700 !important;
  color: #0f172a;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  line-height: 1.35;
}

.poll-description-content h2 {
  font-size: clamp(1.1rem, 2vw, 1.3rem) !important;
  font-weight: 700 !important;
  color: #0f172a;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  line-height: 1.35;
}

.poll-description-content h3,
.poll-description-content h4,
.poll-description-content h5,
.poll-description-content h6 {
  font-size: clamp(1rem, 1.8vw, 1.15rem) !important;
  font-weight: 600 !important;
  color: #1e293b;
  margin-top: 1em;
  margin-bottom: 0.4em;
  line-height: 1.4;
}

.poll-description-content p {
  margin-bottom: 0.8em;
}

.poll-description-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .public-poll-hero-card {
    padding: 20px 16px !important;
    border-radius: 20px !important;
  }
  
  .poll-main-title {
    font-size: 1.25rem !important;
    line-height: 1.38 !important;
  }
}

@media (max-width: 576px) {
  .public-poll-hero-card {
    padding: 16px 12px !important;
    border-radius: 16px !important;
  }
}

/* ==========================================================================
   Ultra-Premium Hero Trust Badges
   ========================================================================== */
.premium-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px;
  box-shadow: 
    0 10px 25px -5px rgba(15, 23, 42, 0.07), 
    0 4px 10px -6px rgba(15, 23, 42, 0.03), 
    inset 0 1px 0 rgba(255, 255, 255, 1);
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.premium-trust-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 
    0 20px 35px -10px rgba(79, 70, 229, 0.18), 
    0 8px 15px -6px rgba(79, 70, 229, 0.1), 
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.badge-icon-glow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.15);
}

.badge-icon {
  font-size: 16px !important;
  color: #ffffff;
}

.bg-gradient-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.bg-gradient-purple {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.bg-gradient-emerald {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

@media (max-width: 576px) {
  .premium-trust-badge {
    padding: 8px 16px;
    gap: 10px;
    font-size: 0.86rem;
  }
  .badge-icon-glow {
    width: 24px;
    height: 24px;
  }
  .badge-icon {
    font-size: 14px !important;
  }
}


/* ==========================================================================
   Custom External DOM Chart Legend
   ========================================================================== */
.custom-chart-legend {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 11px !important;
  padding: 4px 2px !important;
  margin-top: 5px !important;
  margin-bottom: 15px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.custom-legend-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: auto !important;
  max-width: 100% !important;
}

.custom-legend-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.custom-legend-text {
  font-size: 0.72rem !important;
  line-height: 1.3 !important;
  color: #475569 !important;
  font-weight: 500 !important;
  word-break: break-word !important;
}

/* ==========================================================================
   Poll Header Chips Mobile Single-Line Optimization
   ========================================================================== */
@media (max-width: 576px) {
  .poll-header-chips {
    gap: 6px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .poll-header-chips::-webkit-scrollbar {
    display: none;
  }
  .poll-header-chips .metric-chip-soft {
    padding: 4px 8px !important;
    font-size: 0.74rem !important;
    gap: 4px !important;
    flex-shrink: 0;
  }
  .poll-header-chips .metric-chip-soft .chip-icon {
    font-size: 15px !important;
  }
  .poll-header-chips .badge-live-flagship {
    padding: 4px 8px !important;
    font-size: 0.7rem !important;
    gap: 5px !important;
    flex-shrink: 0;
  }
  .poll-header-chips .live-pulse-dot {
    width: 6px !important;
    height: 6px !important;
  }
}

/* --- Premium Floating Cookie Consent Banner --- */
.cookie-consent-modal {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  width: calc(100% - 48px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15), 0 0 1px 1px rgba(0, 112, 243, 0.1);
  padding: 24px;
  z-index: 99999;
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.cookie-consent-modal.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #94A3B8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}
.cookie-close-btn:hover {
  background: #F1F5F9;
  color: #334155;
}
.cookie-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-text {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
}
.cookie-text a {
  color: #0070F3;
  text-decoration: underline;
  font-weight: 500;
}
.cookie-actions {
  display: flex;
  gap: 10px;
}
.cookie-btn-accept {
  flex: 1;
  background: linear-gradient(135deg, #0070F3, #4F46E5);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.25);
  transition: all 0.2s;
}
.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 112, 243, 0.35);
}
.cookie-btn-decline {
  background: #F8FAFC;
  color: #64748B;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-btn-decline:hover {
  background: #F1F5F9;
  color: #334155;
}
@media (max-width: 576px) {
  .cookie-consent-modal {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: calc(100% - 32px);
    padding: 20px;
  }
}