/* ==========================================================================
   QuickPoll — Gold & Smoked Obsidian 3D Glassmorphism
   Typography: Fredoka | Main Text: #FFFFFF | Medium Bold Black Stroke
   ========================================================================== */

:root {
  --bg-black: #040407;
  --bg-obsidian: #090910;
  --glass-surface: rgba(11, 11, 18, 0.72);
  --glass-surface-deep: rgba(6, 6, 11, 0.88);
  --glass-rim: rgba(245, 197, 66, 0.34);
  --glass-specular: rgba(255, 255, 255, 0.24);

  --gold-light: #ffe580;
  --gold: #f5c542;
  --gold-deep: #9c670d;

  --blue-bright: #3b82f6;
  --blue: #1d4ed8;

  --purple-bright: #a855f7;
  --purple: #7c3aed;

  --red-bright: #ef4444;
  --red: #dc2626;

  --text-main: #ffffff;

  /* Controlled, non-excessive gradients */
  --grad-glass-top: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(0, 0, 0, 0.36) 100%);
  --grad-gold: linear-gradient(180deg, #ffe580 0%, #f5c542 54%, #a86f0e 100%);
  --grad-blue: linear-gradient(180deg, rgba(59, 130, 246, 0.42) 0%, rgba(23, 37, 84, 0.85) 100%);
  --grad-purple: linear-gradient(180deg, rgba(168, 85, 247, 0.42) 0%, rgba(59, 7, 100, 0.85) 100%);
  --grad-red: linear-gradient(180deg, rgba(239, 68, 68, 0.48) 0%, rgba(127, 29, 29, 0.88) 100%);
  --grad-bar: linear-gradient(90deg, rgba(245, 197, 66, 0.88) 0%, rgba(180, 120, 18, 0.72) 100%);

  --radius-xl: 12px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;

  --shadow-3d-glass:
    0 24px 52px rgba(0, 0, 0, 0.86),
    0 6px 0 rgba(0, 0, 0, 0.75),
    inset 0 1.5px 0 var(--glass-specular),
    inset 0 -2px 0 rgba(0, 0, 0, 0.7);

  --transition-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-juicy: 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Subtle Accent Modes */
body.theme-crimson-gold {
  --glass-rim: rgba(239, 68, 68, 0.45);
  --grad-bar: linear-gradient(90deg, rgba(239, 68, 68, 0.85) 0%, rgba(245, 197, 66, 0.82) 100%);
}

body.theme-cobalt-purple {
  --glass-rim: rgba(59, 130, 246, 0.45);
  --grad-bar: linear-gradient(90deg, rgba(59, 130, 246, 0.85) 0%, rgba(124, 58, 237, 0.85) 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
textarea,
select {
  appearance: none;
  -webkit-appearance: none;
  font-family: 'Fredoka', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
  background-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: 'Fredoka', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Fredoka Typography — White Text + Medium Bold Black Stroke
   ========================================================================== */

.stroke-display {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.015em;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #000000;
  text-shadow: 0 3px 0 #000000, 0 6px 18px rgba(0, 0, 0, 0.78);
}

.stroke-heading {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.01em;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #000000;
  text-shadow: 0 2px 0 #000000, 0 4px 12px rgba(0, 0, 0, 0.65);
}

.stroke-label,
.stroke-btn {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.01em;
  paint-order: stroke fill;
  -webkit-text-stroke: 2.2px #000000;
  text-shadow: 0 1.5px 0 #000000;
}

.stroke-body {
  color: #ffffff;
  font-weight: 500;
  paint-order: stroke fill;
  -webkit-text-stroke: 1.4px #000000;
  text-shadow: 0 1px 0 #000000, 0 2px 5px rgba(0, 0, 0, 0.72);
}

.stroke-subtle {
  color: #ffffff;
  font-weight: 500;
  paint-order: stroke fill;
  -webkit-text-stroke: 1.2px #000000;
  text-shadow: 0 1px 2px #000000;
}

/* ==========================================================================
   Rich Smoked Obsidian Backdrop (No Grid)
   ========================================================================== */

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 54% at 15% 8%, rgba(245, 197, 66, 0.16), transparent 62%),
    radial-gradient(ellipse 64% 52% at 88% 12%, rgba(37, 99, 235, 0.18), transparent 64%),
    radial-gradient(ellipse 68% 56% at 82% 88%, rgba(124, 58, 237, 0.18), transparent 64%),
    radial-gradient(ellipse 62% 52% at 14% 90%, rgba(220, 38, 38, 0.15), transparent 62%),
    radial-gradient(circle at 50% 42%, #0c0c18 0%, #05050a 56%, #020204 100%);
}

.aurora-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(115px);
  opacity: 0.3;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-gold {
  width: 460px;
  height: 460px;
  top: -150px;
  left: -90px;
  background: radial-gradient(circle, #f5c542 0%, transparent 72%);
}

.orb-blue {
  width: 460px;
  height: 460px;
  top: -110px;
  right: -130px;
  background: radial-gradient(circle, #2563eb 0%, transparent 72%);
  animation-delay: -5s;
}

.orb-purple {
  width: 500px;
  height: 500px;
  bottom: -170px;
  right: 10%;
  background: radial-gradient(circle, #7c3aed 0%, transparent 72%);
  animation-delay: -9s;
}

.orb-red {
  width: 430px;
  height: 430px;
  bottom: -150px;
  left: 5%;
  background: radial-gradient(circle, #dc2626 0%, transparent 72%);
  animation-delay: -13s;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.62) 100%);
}

@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(26px, 20px, 0) scale(1.06); }
}

/* ==========================================================================
   Transparent Blending Header (Fades in Separator on Scroll)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1.5px solid transparent;
  box-shadow: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition:
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    backdrop-filter 260ms ease;
}

.site-header.is-scrolled {
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  background: linear-gradient(180deg, rgba(16, 16, 28, 0.88) 0%, rgba(8, 8, 15, 0.82) 100%);
  border-bottom-color: var(--glass-rim);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  transition: transform var(--transition-juicy);
}

.brand-lockup:hover {
  transform: scale(1.03);
}

.brand-title {
  font-size: 1.72rem;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-header-controls {
  display: none;
  align-items: center;
  gap: 10px;
}

/* 3D Glass Hamburger Button */
.hamburger-btn {
  width: 44px;
  height: 42px;
  padding: 9px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--glass-rim);
  background:
    var(--grad-glass-top),
    rgba(12, 12, 22, 0.88);
  box-shadow:
    0 4px 0 #000000,
    inset 0 1.5px 0 rgba(255, 255, 255, 0.25);
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  cursor: pointer;
  transition: transform var(--transition-juicy), border-color var(--transition-fast);
}

.hamburger-btn:hover {
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

.hamburger-btn:active {
  transform: translateY(2px);
}

.ham-line {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 1px 0 #000000;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 180ms ease;
}

.hamburger-btn.is-open .ham-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.is-open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-open .ham-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 3D Smoked Glass Slide-out Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mobile-drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  width: min(300px, calc(100vw - 24px));
  z-index: 60;
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--glass-rim);
  background:
    var(--grad-glass-top),
    rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow: var(--shadow-3d-glass);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease;
}

.mobile-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245, 197, 66, 0.24);
}

.drawer-title {
  font-size: 1.25rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.drawer-nav-btn {
  width: 100%;
  justify-content: space-between;
}

.btn-nav {
  background:
    var(--grad-glass-top),
    rgba(12, 12, 22, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  font-size: 0.94rem;
  border-radius: var(--radius-md);
  box-shadow:
    0 3px 0 #000000,
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-nav.active {
  background:
    var(--grad-glass-top),
    var(--grad-gold);
  border-color: var(--gold-light);
  box-shadow:
    0 4px 0 #000000,
    0 8px 20px rgba(245, 197, 66, 0.3),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.45);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--radius-md);
  background: rgba(8, 8, 16, 0.9);
  border: 1.5px solid var(--glass-rim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.9);
  animation: pulseDot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* ==========================================================================
   Custom Transparent Icon Slots
   ========================================================================== */

.icon-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}

.icon-slot .slot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.72));
  transition: transform var(--transition-juicy);
}

.icon-slot:hover .slot-img {
  transform: scale(1.08) rotate(-3deg);
}

.icon-slot-logo { width: 48px; height: 48px; }
.icon-slot-xl { width: 60px; height: 60px; }
.icon-slot-lg { width: 48px; height: 48px; }
.icon-slot-md { width: 40px; height: 40px; }
.icon-slot-sm { width: 22px; height: 22px; }

.icon-slot-option {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(245, 197, 66, 0.35);
  background: rgba(8, 8, 16, 0.85);
}

.icon-slot-option:empty::after {
  content: '+';
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.icon-slot-optional:empty {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(245, 197, 66, 0.35);
  background: rgba(8, 8, 16, 0.85);
}

.icon-slot.hidden-slot {
  display: none;
}

/* ==========================================================================
   3D Tactile Glass Buttons
   ========================================================================== */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 4px 0 #000000,
    0 10px 22px rgba(0, 0, 0, 0.52),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.34),
    inset 0 -2px 0 rgba(0, 0, 0, 0.45);
  transition:
    transform var(--transition-juicy),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    filter var(--transition-fast);
  user-select: none;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -115%;
  width: 58%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: skewX(-20deg);
  transition: left 480ms ease;
  pointer-events: none;
}

.btn:hover::before {
  left: 145%;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow:
    0 6px 0 #000000,
    0 14px 26px rgba(245, 197, 66, 0.24),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.44);
}

.btn:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #000000,
    0 4px 10px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 1.06rem;
  border-radius: var(--radius-lg);
}

.btn-gold {
  background: var(--grad-glass-top), var(--grad-gold);
  border-color: var(--gold-light);
}

.btn-glass-blue {
  background: var(--grad-glass-top), var(--grad-blue);
  border-color: rgba(59, 130, 246, 0.65);
}

.btn-glass-purple {
  background: var(--grad-glass-top), var(--grad-purple);
  border-color: rgba(168, 85, 247, 0.65);
}

.btn-dark {
  background:
    var(--grad-glass-top),
    linear-gradient(180deg, rgba(20, 20, 34, 0.92), rgba(8, 8, 16, 0.96));
  border-color: rgba(245, 197, 66, 0.34);
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.82);
  border: 1px solid rgba(255, 229, 128, 0.48);
  font-size: 0.76rem;
  font-weight: 700;
}

/* ==========================================================================
   Shell, Views & 3D Smoked Glass Panels
   ========================================================================== */

.app-shell {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 22px 56px;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: pageSpringIn 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pageSpringIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.juicy-pop {
  animation: juicyPop 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes juicyPop {
  0% { transform: scale(0.985); }
  50% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 22px;
  align-items: start;
}

/* 3D Smoked Glass Card with Interactive Tilt & Specular Shine */
.glass-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 22px;
  background:
    var(--grad-glass-top),
    var(--glass-surface);
  border: 1.5px solid var(--glass-rim);
  box-shadow: var(--shadow-3d-glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), border-color var(--transition-fast);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 18%),
    rgba(255, 229, 128, 0.14),
    rgba(59, 130, 246, 0.05) 36%,
    transparent 65%
  );
  opacity: var(--shine-opacity, 0);
  transition: opacity 240ms ease;
  pointer-events: none;
  z-index: 1;
}

.glass-card > * {
  position: relative;
  z-index: 2;
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: 0 12px auto 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 229, 128, 0.55), transparent);
  pointer-events: none;
  z-index: 2;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-header-row.compact {
  margin-bottom: 10px;
}

.header-title-block {
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.card-desc {
  margin: 3px 0 0;
  font-size: 0.94rem;
  opacity: 0.92;
}

.page-narrow {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-wide {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.banner-text-grow {
  flex: 1;
  min-width: 180px;
}

.page-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.page-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

/* ==========================================================================
   Live Status & Readiness Strip
   ========================================================================== */

.readiness-chip {
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 16, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition-juicy);
}

.readiness-chip.is-ready {
  background: var(--grad-gold);
  border-color: var(--gold-light);
  box-shadow: 0 2px 0 #000000, 0 0 16px rgba(245, 197, 66, 0.35);
}

.live-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.mini-status-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  background: rgba(7, 7, 13, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
}

.mini-status-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  flex-shrink: 0;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.mini-status-chip.is-ready {
  border-color: rgba(245, 197, 66, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 229, 128, 0.22);
}

.mini-status-chip.is-ready .mini-dot {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(245, 197, 66, 0.9);
}

.mini-status-chip.is-warn {
  border-color: rgba(239, 68, 68, 0.72);
}

.mini-status-chip.is-warn .mini-dot {
  background: var(--red-bright);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
}

/* ==========================================================================
   Form Inputs & Live Feedback
   ========================================================================== */

.field-group {
  margin-bottom: 18px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.field-label {
  font-size: 1.02rem;
}

.live-counter {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 16, 0.92);
  border: 1.5px solid var(--glass-rim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.live-counter.warn {
  border-color: var(--red-bright);
  background: rgba(127, 29, 29, 0.85);
}

.field-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(5, 5, 10, 0.95), rgba(11, 11, 20, 0.9));
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field-input.stroke-body {
  -webkit-text-stroke: 0.9px #000000;
  text-shadow: 0 1px 2px #000000;
}

.field-input::placeholder {
  color: rgba(255, 255, 255, 0.48);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.field-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.8),
    0 0 0 3px rgba(245, 197, 66, 0.24);
}

.field-input.is-invalid {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
  animation: shakeInvalid 340ms ease;
}

@keyframes shakeInvalid {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.field-textarea {
  resize: vertical;
  min-height: 74px;
}

.live-meter-track {
  margin-top: 8px;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-sm);
  background: rgba(6, 6, 12, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.live-meter-fill {
  width: 0%;
  height: 100%;
  background: var(--grad-bar);
  transition: width 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.field-feedback {
  margin-top: 5px;
  font-size: 0.84rem;
  min-height: 16px;
}

/* Answer Option Rows */
.options-builder-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 8px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  background:
    var(--grad-glass-top),
    rgba(11, 11, 20, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-color var(--transition-fast), transform var(--transition-juicy);
  animation: optionSlideIn 260ms cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.option-row:focus-within {
  border-color: var(--gold);
  transform: translateX(2px);
}

@keyframes optionSlideIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.option-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  background: var(--grad-gold);
  border: 1px solid var(--gold-light);
  box-shadow: 0 2px 0 #000000;
}

.option-input {
  flex: 1;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 6px;
}

.option-input:focus {
  box-shadow: none;
}

.reorder-btn,
.remove-option-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 0 #000000, inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform var(--transition-juicy), opacity var(--transition-fast);
}

.reorder-btn {
  border: 1px solid rgba(59, 130, 246, 0.55);
  background: var(--grad-blue);
}

.remove-option-btn {
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: var(--grad-red);
}

.reorder-btn:hover:not(:disabled),
.remove-option-btn:hover:not(:disabled) {
  transform: scale(1.08);
}

.reorder-btn:disabled,
.remove-option-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.option-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Custom Toggle Switch */
.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.92rem;
  user-select: none;
}

.toggle-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  width: 42px;
  height: 22px;
  border-radius: var(--radius-sm);
  padding: 2px;
  background: rgba(8, 8, 16, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  display: inline-flex;
  align-items: center;
  transition: background var(--transition-fast);
}

.toggle-thumb {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  transition: transform var(--transition-juicy);
}

.toggle-chip input:checked + .toggle-track {
  background: var(--grad-gold);
  border-color: var(--gold-light);
}

.toggle-chip input:checked + .toggle-track .toggle-thumb {
  transform: translateX(20px);
}

/* Expiry Panel */
.expiry-panel {
  padding: 14px;
  border-radius: var(--radius-lg);
  background:
    var(--grad-glass-top),
    rgba(9, 9, 18, 0.82);
  border: 1.5px solid var(--glass-rim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preset-pill {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(18, 18, 30, 0.92), rgba(7, 7, 14, 0.96));
  box-shadow: 0 3px 0 #000000, inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-juicy);
}

.preset-pill:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.preset-pill.active {
  background: var(--grad-glass-top), var(--grad-gold);
  border-color: var(--gold-light);
  box-shadow: 0 3px 0 #000000, 0 6px 16px rgba(245, 197, 66, 0.28);
}

.custom-date-wrap {
  margin-top: 10px;
}

.hidden {
  display: none !important;
}

/* Accent Swatches & Icon Picker */
.style-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.style-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.theme-swatches,
.icon-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(18, 18, 30, 0.92), rgba(7, 7, 14, 0.96));
  box-shadow: 0 3px 0 #000000, inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-juicy);
}

.swatch-btn:hover {
  transform: translateY(-2px);
}

.swatch-btn.active {
  border-color: var(--gold-light);
  box-shadow: 0 3px 0 #000000, 0 0 0 2px rgba(245, 197, 66, 0.35);
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid #000000;
}

.swatch-gold { background: linear-gradient(135deg, #ffe580, #f5c542); }
.swatch-crimson { background: linear-gradient(135deg, #ef4444, #991b1b); }
.swatch-cobalt { background: linear-gradient(135deg, #3b82f6, #7c3aed); }

.icon-pick-btn {
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(18, 18, 30, 0.92), rgba(7, 7, 14, 0.96));
  box-shadow: 0 3px 0 #000000, inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition-juicy);
}

.icon-pick-btn:hover {
  transform: translateY(-2px);
}

.icon-pick-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-pick-btn.active {
  border-color: var(--gold-light);
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.25), rgba(12, 12, 22, 0.92));
  box-shadow: 0 3px 0 #000000, 0 0 0 2px rgba(245, 197, 66, 0.35);
}

.submit-row .btn {
  width: 100%;
}

/* ==========================================================================
   Live Preview & Active Poll Display
   ========================================================================== */

.preview-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 84px;
}

.preview-top-bar,
.poll-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 20, 0.92);
  border: 1.5px solid var(--glass-rim);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-badge.expired {
  background: var(--grad-red);
  border-color: var(--red-bright);
}

.live-badge.expired .pulse-dot {
  animation: none;
  background: var(--red-bright);
}

.countdown-chip,
.countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 16, 0.92);
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.poll-display-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}

.poll-display-head.large {
  gap: 16px;
  margin-bottom: 22px;
}

.poll-question {
  margin: 0 0 4px;
  font-size: 1.42rem;
  line-height: 1.18;
  word-break: break-word;
}

.active-poll-title {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.12;
  word-break: break-word;
}

.poll-meta {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.92;
}

.preview-options-list,
.active-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vote-option-btn {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background:
    var(--grad-glass-top),
    rgba(11, 11, 20, 0.92);
  box-shadow: 0 4px 0 #000000, inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-juicy), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.vote-option-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 6px 0 #000000, 0 10px 20px rgba(245, 197, 66, 0.22);
}

.vote-option-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #000000;
}

.vote-option-btn.selected {
  border-color: var(--gold-light);
  box-shadow:
    0 4px 0 #000000,
    0 0 0 2px rgba(245, 197, 66, 0.42);
}

.vote-option-btn.leading {
  border-color: var(--gold-light);
  box-shadow:
    0 4px 0 #000000,
    0 0 18px rgba(245, 197, 66, 0.22);
}

.vote-option-btn:disabled {
  cursor: default;
}

.vote-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--grad-bar);
  opacity: 0.45;
  transition: width 540ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.vote-option-btn.leading .vote-bar-fill {
  background: linear-gradient(90deg, rgba(245, 197, 66, 0.9), rgba(212, 160, 23, 0.72));
}

.vote-option-btn.selected .vote-bar-fill,
.vote-option-btn.leading .vote-bar-fill {
  opacity: 0.76;
}

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

.vote-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vote-check-ring {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-juicy);
}

.vote-option-btn.multi .vote-check-ring {
  border-radius: 5px;
}

.vote-option-btn.selected .vote-check-ring {
  border-color: var(--gold-light);
  background: var(--grad-gold);
}

.vote-option-btn.selected .vote-check-ring::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000000;
}

.vote-option-btn.multi.selected .vote-check-ring::after {
  border-radius: 2px;
}

.vote-option-label {
  word-break: break-word;
}

.vote-option-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.preview-footer-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
}

.text-link-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.share-card {
  animation: pageSpringIn 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-url-box {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.url-input {
  font-size: 0.86rem;
}

.qr-share-layout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(7, 7, 14, 0.86);
  border: 1.5px solid rgba(245, 197, 66, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.qr-glass-frame {
  flex-shrink: 0;
  padding: 8px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 2px solid var(--gold-light);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
  line-height: 0;
}

.qr-glass-frame canvas {
  width: 126px;
  height: 126px;
  display: block;
  image-rendering: pixelated;
}

.qr-share-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.qr-btn-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.social-share-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.social-share-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 9px;
}

.social-share-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background:
    var(--grad-glass-top),
    rgba(12, 12, 22, 0.92);
  box-shadow:
    0 3px 0 #000000,
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform var(--transition-juicy), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.social-icon-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  background: transparent;
}

.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--gold-light);
  box-shadow: 0 5px 0 #000000, 0 8px 18px rgba(245, 197, 66, 0.25);
}

.social-icon-btn[data-social="whatsapp"]:hover { border-color: #25d366; box-shadow: 0 5px 0 #000000, 0 8px 18px rgba(37, 211, 102, 0.3); }
.social-icon-btn[data-social="x"]:hover { border-color: #ffffff; box-shadow: 0 5px 0 #000000, 0 8px 18px rgba(255, 255, 255, 0.24); }
.social-icon-btn[data-social="facebook"]:hover { border-color: #1877f2; box-shadow: 0 5px 0 #000000, 0 8px 18px rgba(24, 119, 242, 0.34); }
.social-icon-btn[data-social="telegram"]:hover { border-color: #26a5e4; box-shadow: 0 5px 0 #000000, 0 8px 18px rgba(38, 165, 228, 0.32); }
.social-icon-btn[data-social="reddit"]:hover { border-color: #ff4500; box-shadow: 0 5px 0 #000000, 0 8px 18px rgba(255, 69, 0, 0.32); }
.social-icon-btn[data-social="discord"]:hover { border-color: #5865f2; box-shadow: 0 5px 0 #000000, 0 8px 18px rgba(88, 101, 242, 0.34); }

.social-icon-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #000000;
}

.active-share-drawer {
  margin-top: 16px;
  animation: pageSpringIn 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Poll Templates Page
   ========================================================================== */

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.template-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}

.template-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.template-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 16, 0.9);
  border: 1.5px solid rgba(245, 197, 66, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.template-question {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.22;
}

.template-options-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-option-chip {
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
}

.template-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.template-meta-text {
  font-size: 0.82rem;
  opacity: 0.88;
}

/* ==========================================================================
   How to Use, Q&A & Privacy Pages
   ========================================================================== */

.howto-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.howto-step-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.howto-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.step-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--grad-gold);
  border: 1.5px solid var(--gold-light);
  box-shadow: 0 2px 0 #000000;
  font-size: 0.8rem;
  font-weight: 700;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background:
    var(--grad-glass-top),
    rgba(10, 10, 18, 0.9);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--gold);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-plus {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform var(--transition-juicy);
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-body {
  grid-template-rows: 1fr;
}

.faq-body > p {
  margin: 0;
  padding: 0 16px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 220ms ease, padding 220ms ease;
}

.faq-item.open .faq-body > p {
  padding: 0 16px 15px;
  opacity: 0.96;
}

.policy-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.policy-section h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.policy-section p {
  margin: 0 0 8px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Active Unique Poll Page View
   ========================================================================== */

.poll-page-wrap {
  max-width: 760px;
  margin: 8px auto 0;
}

.active-poll-card {
  padding: 26px;
}

.active-poll-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.active-poll-actions .btn-lg {
  flex: 1;
  min-width: 200px;
}

.active-poll-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.total-votes-label {
  font-size: 1.04rem;
  font-weight: 700;
}

.expiry-exact-date {
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-share-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Saved Polls View
   ========================================================================== */

.saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.saved-polls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.saved-poll-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background:
    var(--grad-glass-top),
    rgba(10, 10, 18, 0.92);
  border: 1.5px solid var(--glass-rim);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform var(--transition-juicy), border-color var(--transition-fast);
}

.saved-poll-item:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
}

.saved-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.saved-item-question {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.saved-item-meta {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.saved-item-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.saved-item-actions .btn {
  padding: 7px 10px;
  font-size: 0.85rem;
  flex: 1;
}

.empty-saved-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 18px;
  border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(245, 197, 66, 0.35);
  background: rgba(8, 8, 16, 0.88);
}

/* ==========================================================================
   Standout Emerald Green Donation Button & Donation Page
   ========================================================================== */

.btn-donate-green {
  background:
    var(--grad-glass-top),
    linear-gradient(135deg, #22c55e 0%, #16a34a 52%, #0d7a38 100%);
  border: 2px solid #86efac;
  box-shadow:
    0 5px 0 #000000,
    0 12px 28px rgba(22, 163, 74, 0.45),
    0 0 24px rgba(34, 197, 94, 0.28),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.48);
  padding: 11px 22px;
  gap: 13px;
  border-radius: var(--radius-lg);
}

.btn-donate-green:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--gold-light);
  box-shadow:
    0 7px 0 #000000,
    0 16px 34px rgba(34, 197, 94, 0.56),
    0 0 30px rgba(245, 197, 66, 0.25),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.58);
}

.icon-slot-donate-btn {
  width: 38px;
  height: 38px;
}

.donate-btn-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.donate-btn-title {
  font-size: 1.12rem;
  font-weight: 700;
}

.donate-btn-sub {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.96;
}

.footer-donate-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.pledge-badge {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #22c55e, #15803d);
  border: 1.5px solid #86efac;
  box-shadow: 0 3px 0 #000000, 0 0 18px rgba(34, 197, 94, 0.35);
  font-size: 0.9rem;
  font-weight: 700;
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.donate-info-card,
.donate-calc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pledge-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pledge-point-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(7, 7, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pledge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.pledge-dot-green {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.pledge-dot-gold {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.9);
}

.donate-custom-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.impact-breakdown-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(7, 7, 14, 0.9);
  border: 1.5px solid rgba(34, 197, 94, 0.38);
}

.impact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}

.impact-highlight {
  color: #86efac;
  font-size: 1.05rem;
}

.impact-bar-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-sm);
  background: rgba(245, 197, 66, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.impact-bar-homeless {
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #86efac);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.donate-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.video-slot-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background:
    var(--grad-glass-top),
    rgba(8, 8, 16, 0.9);
  border: 1.5px dashed rgba(34, 197, 94, 0.45);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.65);
}

.video-status-pill {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(22, 163, 74, 0.24);
  border: 1px solid rgba(134, 239, 172, 0.5);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================================
   Toast & Footer
   ========================================================================== */

.toast-banner {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 24px) scale(0.95);
  z-index: 90;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--grad-glass-top), var(--grad-gold);
  border: 2px solid var(--gold-light);
  box-shadow: 0 6px 0 #000000, 0 16px 36px rgba(0, 0, 0, 0.82);
  font-size: 0.96rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-banner.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.site-footer {
  position: relative;
  z-index: 10;
  padding: 18px 22px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-nav-link {
  border: none;
  background: none;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.88;
  transition: opacity var(--transition-fast);
}

.footer-nav-link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile & Tablet Hamburger <= 900px)
   ========================================================================== */

@media (max-width: 960px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .preview-column {
    position: static;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-header-controls {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 10px 14px;
  }

  .app-shell {
    padding: 18px 14px 44px;
  }

  .glass-card,
  .active-poll-card {
    padding: 16px;
  }

  .live-status-strip,
  .style-row,
  .share-action-buttons,
  .donate-grid {
    grid-template-columns: 1fr;
  }

  .share-url-box {
    flex-direction: column;
  }

  .qr-share-layout {
    flex-direction: column;
    text-align: center;
  }

  .qr-btn-stack {
    justify-content: center;
  }

  .social-share-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-card {
    transform: none !important;
  }
}
