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

:root {
  /* Curated Premium Color Palette */
  --clr-primary: #0f172a;           /* Deep Slate 900 */
  --clr-primary-hover: #1e293b;     /* Slate 800 */
  --clr-accent: #4f46e5;            /* Indigo 600 */
  --clr-accent-glow: rgba(79, 70, 229, 0.35);
  --clr-accent-secondary: #0ea5e9;  /* Sky 500 */
  --clr-success: #10b981;           /* Emerald 500 */
  --clr-danger: #f43f5e;            /* Rose 500 */
  --clr-warning: #f59e0b;           /* Amber 500 */

  /* Surfaces & Backgrounds */
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #f1f5f9 100%);
  --surface-card: rgba(255, 255, 255, 0.88);
  --surface-glass: rgba(255, 255, 255, 0.75);
  --surface-glass-border: rgba(255, 255, 255, 0.8);

  /* 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 Hierarchy) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 8px 25px var(--clr-accent-glow);

  /* Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --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;
}

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

body {
  font-family: var(--font-body);
  background: #f8fafc;
  background-image: 
    radial-gradient(at 10% 10%, rgba(79, 70, 229, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(14, 165, 233, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(124, 58, 237, 0.05) 0px, transparent 60%);
  background-attachment: fixed;
  color: #334155;
  margin: 0;
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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;
}

/* ==========================================================================
   Silicon Valley Flagship Navbar
   ========================================================================== */
.navbar-ultra {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(190%) blur(24px);
  -webkit-backdrop-filter: saturate(190%) blur(24px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  padding: 12px 0;
  box-shadow: 0 4px 28px -4px rgba(15, 23, 42, 0.04), inset 0 -1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  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.35rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-ultra .nav-link {
  color: #475569 !important;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 8px 16px !important;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-ultra .nav-link:hover {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.05);
}

.navbar-ultra .nav-link-trending {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706 !important;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.navbar-ultra .nav-link-trending:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309 !important;
  border-color: rgba(245, 158, 11, 0.35);
}

.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(241, 245, 249, 0.8);
}

/* Buttons */
.btn-premium {
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--clr-accent) 0%, #4338ca 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: var(--shadow-glow);
  transition: all var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-premium:hover {
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.45);
  color: #ffffff;
}

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

.btn-premium-solid {
  font-family: var(--font-heading);
  background-color: var(--clr-primary);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.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: 180px 0 120px;
  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: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.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 1px rgb(var(--option-color, 79, 70, 229)), 0 8px 24px rgba(var(--option-color, 79, 70, 229), 0.15);
}

.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;
  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;
  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: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

/* ==========================================================================
   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: 48px;
  position: relative;
  overflow: hidden;
}

.public-poll-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4f46e5, #ec4899, #38bdf8);
}

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

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

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

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

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

  .vote-option .vote-count {
    font-size: 1.15rem;
    padding: 4px 12px;
  }

  .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: column; align-items: flex-start; gap: 10px; }
  .vote-option .vote-count { align-self: flex-end; }
}

.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: 22px 16px !important;
    border-radius: 20px !important;
  }
  
  .poll-main-title {
    font-size: 1.25rem !important;
    line-height: 1.38 !important;
  }
}