
:root {
  --bg-main: #09090b;
  --bg-card: #121216;
  --bg-card-hover: #18181f;
  --bg-card-subtle: #16161c;
  --border-subtle: #27272a;
  --border-focus: #3f3f46;
  --emerald-main: #10b981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --gold-main: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.15);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dim: #52525b;
  --red-accent: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: #fff;
  text-transform: uppercase;
}

.brand-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--emerald-main);
}

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

/* Twitch Auth Button */
.btn-twitch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #9146ff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
}

.btn-twitch:hover {
  background-color: #772ce8;
  transform: translateY(-1px);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.btn-logout {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.btn-logout:hover {
  color: var(--red-accent);
}

/* Live Status Ribbon */
.live-ribbon {
  background: #0f172a;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 1.5rem;
  font-size: 0.825rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.status-indicator.live {
  background-color: var(--red-accent);
  color: #fff;
}

.status-indicator.offline {
  background-color: var(--text-dim);
  color: #d4d4d8;
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fff;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* Main Container */
main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Common UI Elements */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.highlight-code {
  color: var(--emerald-main);
  font-weight: 700;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--emerald-main), var(--emerald-hover));
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 20px var(--emerald-glow);
  transition: transform 0.15s ease, filter 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-focus);
}

/* Tracker Card */
.tracker-card {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08), transparent 70%), var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 650px;
  margin: 0 auto 3rem auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tracker-label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--emerald-main);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.tracker-value {
  font-size: 3.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.tracker-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Leaderboard Podium */
.podium-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: end;
  margin: 2.5rem 0;
}

.podium-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.75rem;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.podium-card:hover {
  transform: translateY(-4px);
}

.podium-card.first {
  border-color: rgba(245, 158, 11, 0.4);
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.1), transparent 75%), var(--bg-card);
  padding: 2.25rem 1.75rem;
  order: 2;
}

.podium-card.second {
  order: 1;
}

.podium-card.third {
  order: 3;
}

.podium-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podium-card.first .podium-badge { background: #f59e0b; color: #000; }
.podium-card.second .podium-badge { background: #94a3b8; color: #000; }
.podium-card.third .podium-badge { background: #d97706; color: #fff; }

.podium-user {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: #fff;
}

.podium-wager {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.podium-prize-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  padding: 0.6rem;
}

.podium-prize-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.podium-prize-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--emerald-main);
}

/* Data Tables */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background-color: var(--bg-card-subtle);
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.925rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: var(--bg-card-hover);
}

.rank-badge {
  font-weight: 700;
  color: var(--text-dim);
}

.text-emerald { color: var(--emerald-main); font-weight: 700; }
.text-gold { color: var(--gold-main); font-weight: 700; }
.text-red { color: var(--red-accent); font-weight: 700; }

/* Bonus Hunt Specifics */
.hunt-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hunt-stat {
  display: flex;
  flex-direction: column;
}

.hunt-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hunt-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

/* Wager Tiers Grid */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.5rem;
  position: relative;
  transition: transform 0.15s ease;
}

.tier-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.tier-badge-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background: #27272a;
  color: #a1a1aa;
  display: inline-block;
  margin-bottom: 1rem;
}

.tier-goal {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.tier-threshold {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.tier-reward-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Merch Grid */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.merch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.merch-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
}

.merch-img-box {
  background: #18181b;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.merch-img-box img {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain;
}

.merch-content {
  padding: 1.25rem;
}

.merch-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.merch-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--emerald-main);
  margin-bottom: 1rem;
}

/* Forms & Admin Dashboard */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
}

.admin-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input, .form-select {
  width: 100%;
  background: #18181b;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--emerald-main);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Compact Streamer Top Dropdown Drawer */
.streamer-drawer {
  background: #141418;
  border: 1px solid var(--border-subtle);
  border-radius: 0.65rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.streamer-drawer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #18181d;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
}

.streamer-drawer.open .streamer-drawer-bar {
  border-bottom-color: var(--border-subtle);
}

.streamer-drawer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.streamer-drawer-badge {
  font-family: monospace;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  background: #27272a;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.streamer-drawer-summary {
  color: var(--text-muted);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.streamer-drawer-summary b {
  color: #e4e4e7;
  font-weight: 600;
}

.streamer-drawer-btn {
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #e4e4e7;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.streamer-drawer-body {
  padding: 1rem 1.25rem;
  display: none;
  background: #141418;
}

.streamer-drawer.open .streamer-drawer-body {
  display: block;
}

.streamer-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.streamer-compact-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  background: #1a1a20;
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
}

.streamer-compact-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #27272a;
}

/* Standalone Giveaway Picker Stage */
.picker-body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0d0d14 0%, #050508 70%, #020204 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  user-select: none;
}

#picker-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.picker-hud-top {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  pointer-events: none;
}

.picker-hud-top * {
  pointer-events: auto;
}

.picker-badge-link {
  background: rgba(24, 24, 27, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.picker-badge-link:hover {
  background: rgba(39, 39, 42, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.picker-title-box {
  text-align: center;
  background: rgba(18, 18, 22, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.5rem 1.75rem;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.1);
}

.picker-title-text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-main);
  font-family: monospace;
}

.picker-prize-text {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
}

.picker-hud-bottom {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 20;
  pointer-events: none;
}

.picker-hud-bottom * {
  pointer-events: auto;
}

.picker-controls-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.picker-spin-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.85rem 3rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.45), 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.picker-spin-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.65), 0 6px 20px rgba(0, 0, 0, 0.5);
}

.picker-spin-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

.picker-spin-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.picker-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  animation: fadeIn 0.3s ease;
}

.picker-modal-card {
  background: linear-gradient(180deg, #18181f 0%, #121216 100%);
  border: 2px solid var(--gold-main);
  border-radius: 1.5rem;
  padding: 2.5rem 3rem;
  text-align: center;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 0 80px rgba(245, 158, 11, 0.35), 0 20px 50px rgba(0, 0, 0, 0.8);
  animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Winner Showcase on the Right Side (when cylinder moves left) */
.picker-winner-showcase {
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%) translateX(20px);
  width: 48%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(16, 16, 22, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 1.5rem;
  padding: 2.5rem 3rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(245, 158, 11, 0.2);
}

.picker-winner-showcase.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.picker-winner-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-main);
  text-transform: uppercase;
  font-family: monospace;
}

.picker-winner-name {
  font-size: 3.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  word-break: break-word;
  text-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
}

.picker-winner-prize-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.picker-winner-prize-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.picker-winner-prize-val {
  font-size: 2.85rem;
  font-weight: 900;
  color: var(--gold-main);
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.35);
}

.picker-winner-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-picker-save {
  background: #10b981;
  color: #000;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.4rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-picker-save:hover {
  background: #059669;
}

.btn-picker-back,
.btn-picker-reroll {
  background: #27272a;
  color: #e4e4e7;
  border: 1px solid #3f3f46;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.4rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-picker-back:hover,
.btn-picker-reroll:hover {
  background: #3f3f46;
  color: #fff;
}

.btn-picker-remove-reroll {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.4rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-picker-remove-reroll:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.6);
}

.btn-picker-remove-reroll:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.streamer-pill {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.streamer-pill.live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.streamer-pill.closed {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.streamer-pill.gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.keyword-chip {
  background: #27272a;
  color: #a7f3d0;
  border: 1px solid #3f3f46;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
}

.preset-chip {
  background: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--border-subtle);
  font-family: monospace;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  background: #27272a;
  color: #fff;
  border-color: var(--emerald-main);
}

.btn-sm {
  padding: 0.35rem 0.75rem !important;
  font-size: 0.825rem !important;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-gold {
  background: #d97706;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

.btn-gold:hover {
  background: #b45309;
}

/* Enterprise Dashboard Layout & Right-Side Tabs */
.admin-enterprise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-console-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-enterprise-workspace {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 1.75rem;
  align-items: start;
}

.admin-tab-content {
  min-width: 0;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
  animation: fadeInPane 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.admin-right-rail {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-rail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.admin-rail-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: monospace;
}

.admin-tab-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  padding: 0.5rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.admin-tab-btn:hover {
  background: #18181f;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-tab-btn.active {
  background: #1c1c24;
  color: #fff;
  border-color: var(--gold-main);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.admin-tab-btn.active .admin-tab-btn-title {
  color: #fff;
}

.admin-tab-btn-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-tab-btn-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.admin-tab-btn-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-tab-btn-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.2;
  margin-top: 0.15rem;
}

@media (max-width: 1024px) {
  .admin-enterprise-workspace {
    grid-template-columns: 1fr;
  }
  .admin-right-rail {
    position: static;
    order: -1;
  }
  .admin-tab-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* Footer */
footer {
  background: #09090b;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.social-icon:hover {
  color: var(--emerald-main);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .podium-container {
    grid-template-columns: 1fr;
  }
  .podium-card.first { order: 1; }
  .podium-card.second { order: 2; }
  .podium-card.third { order: 3; }
  .nav-links { display: none; }
  .hero-title { font-size: 2.5rem; }
  .tracker-value { font-size: 2.25rem; }
}
