:root {
  --primary-gold: #cfa856;
  --primary-gold-hover: #b89243;
  --primary-gold-light: rgba(207, 168, 86, 0.15);
  --bg-dark: #0f141c;
  --bg-card: #18202d;
  --bg-card-hover: #202b3d;
  --bg-surface: #131a24;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-rose: #f43f5e;
  --accent-emerald: #10b981;
  --accent-indigo: #6366f1;
  --border-color: rgba(207, 168, 86, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 25px rgba(207, 168, 86, 0.2);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(207, 168, 86, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
}

/* Header & Navigation */
header.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(19, 26, 36, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-gold), #8c6d2c);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--primary-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  background: rgba(207, 168, 86, 0.1);
  color: var(--primary-gold);
}

.nav-btn:hover {
  background: var(--primary-gold);
  color: #0f141c;
  box-shadow: var(--shadow-glow);
}

.nav-btn-secondary {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.nav-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  box-shadow: none;
}

/* Main Container */
main.container {
  flex: 1;
  max-width: 1560px;
  width: 96%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Screens */
.screen {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.screen.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

/* Welcome Screen */
.welcome-card {
  max-width: 580px;
  margin: 3rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.wedding-badge {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  border-radius: 9999px;
  background: var(--primary-gold-light);
  color: var(--primary-gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
}

.welcome-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.welcome-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.event-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.event-preview-card {
  padding: 0.6rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.event-preview-card:hover {
  background: rgba(207, 168, 86, 0.12);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  transform: translateY(-2px);
}

.event-preview-icon {
  font-size: 1.25rem;
}

.event-preview-name {
  font-weight: 700;
  font-size: 0.8rem;
}

.event-preview-count {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  margin-bottom: 1.75rem;
}

.input-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.name-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 1.05rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.name-input:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(207, 168, 86, 0.2);
}

.btn-primary {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-gold), #b89243);
  color: #0f141c;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(207, 168, 86, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(207, 168, 86, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Event Step Indicator */
.stepper-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stepper-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.step-item.active {
  background: var(--primary-gold-light);
  color: var(--primary-gold);
  border-color: var(--border-color);
}

.step-item.completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.2);
}

.event-dropdown-select {
  background: var(--bg-surface);
  color: var(--primary-gold);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-dropdown-select:hover {
  border-color: var(--primary-gold);
  background: rgba(207, 168, 86, 0.1);
}

.event-dropdown-select option {
  background: var(--bg-card);
  color: var(--text-main);
}

.stepper-user {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stepper-user strong {
  color: var(--primary-gold);
}

/* Matchup Arena Screen */
.arena-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.event-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

.event-info .meta-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.arena-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-undo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-undo:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-undo:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Matchup Arena Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
  flex: 1;
}

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

.option-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-header-bar {
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.lives-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.lives-2 {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.lives-1 {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.card-image-wrap {
  flex: 1;
  min-height: 560px;
  height: 64vh;
  max-height: 780px;
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.card-image {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  background-color: #06090e;
  transition: transform 0.3s ease;
}

.option-card:hover .card-image {
  transform: scale(1.02);
}

.image-zoom-overlay-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 20, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.85;
  transition: all 0.2s ease;
  pointer-events: none;
}

.option-card:hover .image-zoom-overlay-hint {
  opacity: 1;
  background: rgba(207, 168, 86, 0.95);
  color: #0f141c;
  border-color: var(--primary-gold);
}

.card-actions-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
  z-index: 25;
}

/* Card Inline Video & YouTube-style Seek Bar */
.card-video-wrap {
  flex: 1;
  min-height: 560px;
  height: 64vh;
  max-height: 780px;
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #06090e;
}

.video-reel-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 20, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 22;
  pointer-events: none;
}

.reel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff0033;
  box-shadow: 0 0 8px #ff0033;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.video-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 25;
  transition: opacity 0.25s ease;
}

.yt-seek-bar-container {
  position: relative;
  width: 100%;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.yt-seek-bar-bg {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  transition: height 0.15s ease;
}

.yt-seek-bar-container:hover .yt-seek-bar-bg,
.yt-seek-bar-container.is-seeking .yt-seek-bar-bg {
  height: 7px;
}

.yt-seek-buffered {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  width: 0%;
}

.yt-seek-played {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, #ff0033, #e6002e);
  border-radius: 3px;
  width: 0%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.yt-seek-scrubber-handle {
  width: 14px;
  height: 14px;
  background: #ff0033;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  transform: scale(0);
  transition: transform 0.15s ease;
  margin-right: -7px;
}

.yt-seek-bar-container:hover .yt-seek-scrubber-handle,
.yt-seek-bar-container.is-seeking .yt-seek-scrubber-handle {
  transform: scale(1);
}

.yt-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yt-left-controls, .yt-right-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.yt-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.yt-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--primary-gold);
}

.yt-time-display {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-left: 0.3rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.overlay-action-btn {
  background: rgba(15, 20, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.overlay-action-btn:hover {
  background: var(--primary-gold);
  color: #0f141c;
}

.card-footer-action {
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.btn-pick {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(207, 168, 86, 0.12);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.option-card:hover .btn-pick {
  background: var(--primary-gold);
  color: #0f141c;
  box-shadow: 0 4px 15px rgba(207, 168, 86, 0.3);
}

/* Arena VS Divider & "Both" Column */
.arena-vs-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.vs-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-gold);
  box-shadow: var(--shadow-glow);
}

.btn-select-both {
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(207, 168, 86, 0.15));
  border: 1px solid rgba(207, 168, 86, 0.4);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 140px;
}

.btn-select-both:hover {
  background: linear-gradient(135deg, #6366f1, var(--primary-gold));
  color: #0f141c;
  border-color: transparent;
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-select-both span.subtext {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
}

.keyboard-hints {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kbd-key {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: monospace;
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* Event Winner Celebration Screen */
.winner-celebration-card {
  max-width: 680px;
  margin: 1rem auto;
  background: var(--bg-card);
  border: 2px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.trophy-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.winner-headline {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.winner-subtitle {
  color: var(--primary-gold);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.winner-showcase {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.winner-item-card {
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.winner-item-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.winner-item-footer {
  padding: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
}

/* Overall Final Lookbook Screen */
.final-lookbook-container {
  max-width: 1000px;
  margin: 0 auto;
}

.lookbook-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.lookbook-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
}

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.lookbook-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.lookbook-event-tag {
  padding: 0.6rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lookbook-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #000;
}

.lookbook-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lookbook-pick-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.lookbook-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.lightbox-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 95vw;
  width: 95vw;
  height: 92vh;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
}

.zoom-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zoom-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.zoom-btn:hover {
  background: var(--primary-gold);
  color: #0f141c;
  border-color: var(--primary-gold);
}

.zoom-level-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-gold);
  min-width: 48px;
  text-align: center;
}

.zoom-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040609;
  cursor: grab;
  user-select: none;
}

.zoom-viewport.is-dragging {
  cursor: grabbing;
}

.zoom-stage-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  pointer-events: none;
}

.zoom-hint-pill {
  position: absolute;
  bottom: 14px;
  background: rgba(15, 20, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

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

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body video {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-sm);
}

.modal-body img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* Toast Messages */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 200;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--primary-gold);
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  animation: toastIn 0.3s ease forwards;
  pointer-events: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .arena-vs-column {
    flex-direction: row;
    padding: 0.5rem 0;
  }
  
  .card-image-wrap {
    min-height: 280px;
  }

  header.app-header {
    padding: 0.75rem 1rem;
  }

  main.container {
    padding: 1rem;
  }
}
