/* ==========================================================================
   REFERO DESIGN SYSTEM TOKENS & STYLESHEET
   Client: Bark Hotel for Dogs — Howl-O-Ween Dog Costume Poll
   Architecture: Mobile-First Responsive + Refero Dark Luxe Tokens
   ========================================================================== */

:root {
  /* Surfaces & Backgrounds */
  --bg-base: #07080b;
  --bg-subtle: #0d0f15;
  --bg-surface-1: #13161f;
  --bg-surface-2: #1a1e2b;
  --bg-surface-hover: #222738;
  --bg-surface-active: #2b3248;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(255, 107, 0, 0.45);
  --border-gold: rgba(245, 158, 11, 0.60);

  /* Festive Accents */
  --accent-pumpkin: #ff6b00;
  --accent-pumpkin-hover: #ff851b;
  --accent-pumpkin-glow: rgba(255, 107, 0, 0.28);
  --accent-pumpkin-subtle: rgba(255, 107, 0, 0.12);
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.32);
  --accent-purple: #9333ea;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.28);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-pumpkin: #ff8800;

  /* Elevation Shadows */
  --shadow-card: 0 8px 30px -4px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-subtle);
  --shadow-card-hover: 0 16px 40px -6px rgba(0, 0, 0, 0.85), 0 0 28px -4px var(--accent-pumpkin-glow), 0 0 0 1px var(--border-accent);
  --shadow-leader: 0 16px 40px -6px rgba(0, 0, 0, 0.85), 0 0 32px -4px var(--accent-gold-glow), 0 0 0 1px var(--border-gold);
  --shadow-modal: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--border-default);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Font Stack */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Mobile Optimization */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 24px);
  background: 
    radial-gradient(ellipse 90% 50% at 50% -15%, rgba(255, 107, 0, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 25%, rgba(147, 51, 234, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 75%, rgba(255, 107, 0, 0.06), transparent 60%),
    var(--bg-base);
}

/* Subtle Ambient Micro-Grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Responsive Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

/* Header & Client Logo */
.top-nav {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .top-nav {
    padding: 22px 0 18px;
    margin-bottom: 36px;
  }
}

.brand-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .brand-logo-img {
    height: 52px;
    max-width: 190px;
  }
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.02);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .status-pill {
    padding: 7px 14px;
    font-size: 12px;
  }
}

.status-pill.live {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.status-pill.live .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse-dot 1.8s infinite;
}

.status-pill.closed {
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

.status-pill.closed .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-icon {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-default);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 8px 0 28px;
  max-width: 780px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero {
    padding: 12px 0 36px;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-pumpkin-subtle);
  border: 1px solid var(--border-accent);
  color: var(--text-pumpkin);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .hero-tag {
    font-size: 12px;
    padding: 6px 14px;
    margin-bottom: 20px;
  }
}

.hero-title {
  font-size: clamp(26px, 7vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span.highlight {
  background: linear-gradient(90deg, #ff6b00 0%, #ffa726 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(14px, 3.8vw, 17px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 4px;
}

/* Winner Spotlight (When Poll Closed) */
.winner-banner {
  display: none;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(255, 107, 0, 0.12) 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-xl);
  padding: 24px 18px;
  margin-bottom: 32px;
  text-align: center;
  box-shadow: 0 0 40px -4px var(--accent-gold-glow);
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .winner-banner {
    padding: 32px;
    margin-bottom: 44px;
  }
}

.winner-banner.visible {
  display: block;
  animation: banner-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes banner-pop {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.winner-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f59e0b;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.winner-banner-title {
  font-size: clamp(22px, 5.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.winner-banner-desc {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
}

/* Live Standings Leaderboard */
.leaderboard-summary {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .leaderboard-summary {
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    margin-bottom: 44px;
  }
}

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

.leaderboard-header h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
}

.total-votes-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface-2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
}

.leader-bars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .leader-bars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 900px) {
  .leader-bars-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
}

.leader-bar-item {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.leader-bar-item.is-leader {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.09), var(--bg-surface-2));
}

.leader-bar-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.leader-bar-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-bar-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-pumpkin);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b00, #ffa726);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.leader-bar-item.is-leader .progress-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* Contestant Cards Grid (Mobile-First 1-col -> 2-col) */
.contestants-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 680px) {
  .contestants-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

.dog-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (hover: hover) {
  .dog-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
  }
}

.dog-card.is-leader {
  border-color: var(--border-gold);
}

.dog-card.is-winner {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-leader);
}

.dog-card.has-user-vote {
  border-color: #10b981;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.8), 0 0 24px -2px var(--accent-emerald-glow), 0 0 0 1px #10b981;
}

/* Card Media / Image Frame */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3.8;
  max-height: 480px;
  overflow: hidden;
  background-color: var(--bg-surface-2);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .dog-card:hover .card-media img {
    transform: scale(1.02);
  }
}

/* Floating Badges */
.card-floating-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(15, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.rank-badge.rank-1 {
  background: rgba(245, 158, 11, 0.92);
  color: #000;
  border-color: transparent;
  font-weight: 800;
}

.user-voted-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.winner-crown-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #f59e0b;
  color: #000;
  font-size: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
  z-index: 5;
  animation: crown-bounce 2s ease infinite;
}

@keyframes crown-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(6deg); }
}

/* Card Content & Action */
.card-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 640px) {
  .card-content {
    padding: 22px 24px;
  }
}

.card-header {
  margin-bottom: 14px;
}

.dog-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.dog-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .dog-name {
    font-size: 24px;
  }
}

.dog-costume {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-pumpkin);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Metrics & Progress Track */
.card-metrics {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.metrics-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.metrics-vote-count {
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.metrics-vote-count strong {
  color: var(--text-primary);
  font-size: 15px;
}

.metrics-percentage {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-pumpkin);
  font-variant-numeric: tabular-nums;
}

.card-progress-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b00, #ffa726);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dog-card.is-leader .card-progress-fill,
.dog-card.is-winner .card-progress-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* Primary Vote CTA Button (Mobile Optimized) */
.btn-vote {
  width: 100%;
  height: 52px;
  min-height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(180deg, #ff7a1a 0%, #ff6b00 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.32);
}

.btn-vote:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff8526 0%, #ff740a 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.42);
}

.btn-vote:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.btn-vote:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-vote.has-voted {
  background: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  color: #fff;
}

.btn-vote.has-voted:hover:not(:disabled) {
  background: #059669;
}

.btn-vote.poll-ended {
  background: var(--bg-surface-2);
  border-color: var(--border-subtle);
  color: var(--text-tertiary);
  box-shadow: none;
}

/* Share Section */
.share-section {
  text-align: center;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .share-section {
    border-radius: var(--radius-xl);
    padding: 36px 24px;
    margin-bottom: 56px;
  }
}

.share-section h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

@media (min-width: 640px) {
  .share-section h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }
}

.share-section p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 18px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.share-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-share {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  min-height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-share:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-default);
}

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

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--text-pumpkin);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

/* Admin Modal (Mobile Safe) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Prevent iOS auto-zoom by setting 16px font-size */
.form-input {
  width: 100%;
  height: 48px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent-pumpkin);
  box-shadow: 0 0 0 3px var(--accent-pumpkin-glow);
}

.admin-action-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-bottom: 10px;
  border: 1px solid transparent;
}

.admin-btn-primary {
  background: var(--accent-pumpkin);
  color: #fff;
}

.admin-btn-primary:hover {
  background: var(--accent-pumpkin-hover);
}

.admin-btn-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.admin-btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
}

.admin-btn-secondary {
  background: var(--bg-surface-2);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.admin-btn-secondary:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* Toast Notifications (Safe Mobile Bottom Layout) */
.toast-container {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 16px) + 16px);
  left: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

@media (min-width: 640px) {
  .toast-container {
    left: auto;
    right: 24px;
    align-items: flex-end;
  }
}

.toast {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  max-width: 100%;
  animation: toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
}

.toast.toast-success {
  border-color: rgba(16, 185, 129, 0.4);
  background: #111e1c;
}

.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.4);
  background: #201316;
}

@keyframes toast-in {
  0% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}
