/* ==========================================================================
   L'etoile Atelier - Night U-Haul Truck Drop-Off Spin Wheel System
   Aesthetic: Luxury 3D Gold, Tactile iOS Switches & Authentic Physics
   Skill: Minimalist Visual-First UI (Ultra-concise labels, zero word clutter)
   ========================================================================== */

/* ─── QUICK BANNER IN WORKER TIMESHEET ─────────────────────────────────── */
.uhaul-timesheet-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin: 0 0 14px 0;
  border-radius: var(--radius-lg, 20px);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  user-select: none;
}

.uhaul-timesheet-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.uhaul-timesheet-banner:active {
  transform: scale(0.98);
}

.uhaul-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.uhaul-banner-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #fef5db, #d4af37 70%, #996e19);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.uhaul-banner-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.uhaul-banner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.uhaul-banner-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uhaul-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--gold-primary);
}

.uhaul-banner-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--gold-gradient, linear-gradient(135deg, #f5d77f, #d4af37));
  color: #111111;
  font-weight: 850;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
}

.uhaul-banner-action-btn:hover {
  filter: brightness(1.08);
}

/* ─── SUBNAV MINI ICON ─────────────────────────────────────────────────── */
.subnav-uhaul-mini-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

/* ─── DEDICATED U-HAUL STANDALONE APP VIEW ─────────────────────────────── */
#view-uhaul {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 14px 90px 14px;
  box-sizing: border-box;
}

#view-uhaul .app-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  width: 100%;
}

.wheel-sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.wheel-sound-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
}

.wheel-sound-toggle-btn:active {
  transform: scale(0.92);
}

.wheel-sound-toggle-btn.muted {
  opacity: 0.45;
}

/* ─── MAIN WHEEL SUBVIEW & HUB ─────────────────────────────────────────── */
#workers-wheel-subview {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 90px;
  box-sizing: border-box;
}

.wheel-hub-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Top Stats & Quick Actions */
.wheel-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 4px;
}

.wheel-stat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wheel-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
}

.wheel-count-pill.pill-active {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

.wheel-count-pill.pill-off {
  color: var(--text-muted);
}

.wheel-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wheel-action-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.78rem;
  font-weight: 750;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.wheel-action-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
}

.wheel-action-chip:active {
  transform: scale(0.96);
}

.wheel-sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.wheel-sound-toggle.muted {
  opacity: 0.5;
}

/* ─── STAGE: THE SPINNING WHEEL ────────────────────────────────────────── */
.wheel-stage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 20px 16px;
  border-radius: var(--radius-xl, 28px);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Glow backdrop */
.wheel-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Wheel Canvas Wrapper */
.wheel-canvas-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  max-width: 90vw;
  max-height: 90vw;
  margin: 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 400px) {
  .wheel-canvas-wrap {
    width: 290px;
    height: 290px;
  }
}

#uhaul-wheel-canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

/* Center 3D Hub */
.wheel-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.wheel-center-hub:hover {
  transform: translate(-50%, -50%) scale(1.08);
  filter: brightness(1.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 16px rgba(212, 175, 55, 0.6);
}

.wheel-center-hub:active {
  transform: translate(-50%, -50%) scale(0.93);
  filter: brightness(0.95);
}

.wheel-hub-logo-img,
.wheel-hub-truck-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.15s ease;
  display: block;
}

/* Top Pointer Needle */
.wheel-top-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 44px;
  z-index: 6;
  pointer-events: none;
  transform-origin: top center;
  transition: transform 0.06s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wheel-top-pointer.flapping {
  transform: translateX(-50%) rotate(-18deg);
}

.wheel-pointer-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Big Spin & Game Controls */
.wheel-bottom-controls {
  margin-top: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.wheel-spin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  padding: 14px 28px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--gold-gradient, linear-gradient(135deg, #fef4db 0%, #edd382 45%, #ca9628 100%));
  color: #121008;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  border: 1.8px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.42), inset 0 2px 2px #ffffff, inset 0 -2px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.wheel-spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.55);
}

.wheel-spin-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.wheel-spin-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.wheel-new-game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  padding: 12px 24px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--bg-card);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.wheel-new-game-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.wheel-new-game-btn:active {
  transform: scale(0.97);
}

.wheel-new-game-primary-btn {
  background: var(--gold-gradient, linear-gradient(135deg, #fef4db 0%, #edd382 45%, #ca9628 100%)) !important;
  color: #121008 !important;
  border: 1.8px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.42), inset 0 2px 2px #ffffff !important;
}

body.theme-light .wheel-new-game-primary-btn {
  background: linear-gradient(135deg, #27272a 0%, #111111 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

body.theme-light .wheel-new-game-primary-btn * {
  color: #ffffff !important;
  fill: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.wheel-new-game-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.55) !important;
}

.wheel-new-game-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.wheel-new-game-btn:hover .wheel-new-game-icon,
.wheel-new-game-primary-btn:hover .wheel-new-game-icon {
  transform: rotate(-60deg);
}

/* ─── ROSTER & TOGGLE SECTION ──────────────────────────────────────────── */
.wheel-roster-card {
  border-radius: var(--radius-xl, 28px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wheel-roster-card.roster-collapsed {
  gap: 0;
  padding: 14px 18px;
}

.wheel-roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px 2px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.15s ease;
}

.wheel-roster-header:hover {
  opacity: 0.92;
}

.wheel-roster-header:active {
  transform: scale(0.995);
}

.wheel-roster-card.roster-collapsed .wheel-roster-header {
  border-bottom: none;
  padding-bottom: 2px;
}

.wheel-roster-header-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wheel-roster-title {
  font-size: 1.1rem;
  font-weight: 850;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  user-select: none;
}

.wheel-roster-truck-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  transform: translateY(-0.5px);
  flex-shrink: 0;
}

.wheel-roster-title-text {
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Haute Couture Count Badge: 5 / 8 */
.wheel-roster-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.88rem;
  font-weight: 800;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-primary);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.wheel-roster-count-num {
  font-weight: 850;
}

.wheel-roster-count-slash {
  opacity: 0.45;
  font-weight: 600;
  font-size: 0.82em;
  margin: 0 0.5px;
}

.wheel-roster-count-total {
  font-weight: 750;
  opacity: 0.88;
}

/* Gold Premium Theme Badge Refinement */
body.theme-gold-premium .wheel-roster-count-badge {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(184, 134, 11, 0.10) 100%);
  border: 1px solid rgba(184, 134, 11, 0.38);
  color: #8c6716;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 2px 6px rgba(184, 134, 11, 0.12);
}

body.theme-gold-premium .wheel-roster-count-badge .wheel-roster-count-num,
body.theme-gold-premium .wheel-roster-count-badge .wheel-roster-count-total {
  color: #8c6716;
}

body.theme-gold-premium .wheel-roster-count-badge .wheel-roster-count-slash {
  color: #8c6716;
  opacity: 0.45;
}

/* Dark Theme Badge Refinement */
body.theme-dark .wheel-roster-count-badge {
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.16) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 1px solid rgba(229, 193, 88, 0.35);
  color: #f5d77f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.theme-dark .wheel-roster-count-badge .wheel-roster-count-num,
body.theme-dark .wheel-roster-count-badge .wheel-roster-count-total {
  color: #f5d77f;
}

body.theme-dark .wheel-roster-count-badge .wheel-roster-count-slash {
  color: #f5d77f;
  opacity: 0.45;
}

/* Minimal Light Theme Badge Refinement */
body.theme-light .wheel-roster-count-badge {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 1px solid #d1d5db;
  color: #111827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.theme-light .wheel-roster-count-badge .wheel-roster-count-num,
body.theme-light .wheel-roster-count-badge .wheel-roster-count-total {
  color: #111827;
}

body.theme-light .wheel-roster-count-badge .wheel-roster-count-slash {
  color: #6b7280;
  opacity: 0.5;
}

.wheel-collapse-chevron {
  color: var(--text-muted);
  opacity: 0.65;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, color 0.2s ease;
  transform: rotate(180deg);
  flex-shrink: 0;
}

.wheel-collapse-chevron.collapsed {
  transform: rotate(0deg);
}

.wheel-roster-header:hover .wheel-collapse-chevron {
  opacity: 1;
  color: var(--gold-primary);
}

.wheel-roster-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wheel-quick-add-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0 4px 0;
}

.wheel-quick-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border-radius: var(--radius-md, 14px);
  background: var(--bg-input, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  color: var(--text-primary, #ffffff);
  font-size: 0.92rem;
  font-weight: 650;
  padding: 0 14px;
  outline: none;
  transition: all 0.2s ease;
}

.wheel-quick-input:focus {
  border-color: var(--gold-primary, #d4af37);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
  background: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
}

.wheel-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md, 14px);
  background: var(--gold-gradient, linear-gradient(135deg, #f5d77f, #d4af37));
  color: #121008;
  font-size: 0.85rem;
  font-weight: 850;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
}

.wheel-quick-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.42);
}

.wheel-quick-btn:active {
  transform: scale(0.96);
}

.wheel-roster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 500px) {
  .wheel-roster-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.driver-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md, 14px);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.driver-toggle-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
}

.driver-toggle-card.driver-active {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.05);
}

.driver-toggle-card.driver-off {
  opacity: 0.55;
  filter: grayscale(0.5);
}

.driver-toggle-card.driver-chosen {
  opacity: 0.72;
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
}

.driver-chosen-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--gold-gradient, linear-gradient(135deg, #f5d77f, #d4af37));
  color: #121008;
  font-size: 0.65rem;
  font-weight: 900;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.35);
}

.driver-toggle-card.is-winner-highlight {
  border-color: var(--gold-primary) !important;
  background: rgba(212, 175, 55, 0.2) !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
  animation: pulseWinner 1.5s ease-in-out infinite;
}

@keyframes pulseWinner {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

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

.driver-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.driver-info-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.driver-name-text {
  font-size: 1rem;
  font-weight: 850;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-role-chip {
  display: none !important;
}

.driver-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.driver-guest-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted, #9ca3af);
  font-size: 1.25rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-guest-remove-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* iOS Tactile Toggle Switch */
.driver-ios-switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 9999px;
  background: #4b5563;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.driver-ios-switch.on {
  background: #10b981; /* Apple Green */
}

.driver-ios-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.driver-ios-switch.on .driver-ios-switch-knob {
  transform: translateX(20px);
}

/* ─── RECENT DROP-OFFS HISTORY ─────────────────────────────────────────── */
.wheel-history-card {
  border-radius: var(--radius-xl, 28px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.wheel-history-title {
  font-size: 0.98rem;
  font-weight: 850;
  color: var(--text-primary);
}

.wheel-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wheel-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-input);
  font-size: 0.82rem;
}

.wheel-history-name {
  font-weight: 800;
  color: var(--gold-primary);
}

.wheel-history-time {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.wheel-history-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 12px 0;
}

/* ─── WINNER CELEBRATION MODAL ─────────────────────────────────────────── */
.wheel-winner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wheel-winner-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.wheel-confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10001;
}

.wheel-winner-card {
  position: relative;
  z-index: 10002;
  width: 100%;
  max-width: 360px;
  border-radius: 28px;
  background: var(--bg-card);
  border: 2px solid #d4af37;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.35);
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wheel-winner-overlay.active .wheel-winner-card {
  transform: scale(1);
}

.wheel-winner-badge-box {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 30%, #fff1c4, #d4af37 60%, #996e19);
  padding: 4px;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.5), inset 0 2px 2px #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceTruck 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite alternate;
}

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

.wheel-winner-badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.wheel-winner-header-title {
  display: none !important;
}

.wheel-winner-avatar-wrap {
  position: relative;
  margin-top: 4px;
  margin-bottom: 2px;
}

.wheel-winner-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid #d4af37;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.wheel-winner-name,
#uhaul-winner-name-display {
  display: none !important;
}

.wheel-winner-role,
#uhaul-winner-role-display {
  display: none !important;
}

.wheel-winner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.wheel-post-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--gold-gradient);
  color: #121008;
  font-weight: 900;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  transition: all 0.2s ease;
}

.wheel-post-chat-btn:hover {
  filter: brightness(1.08);
}

.wheel-post-chat-btn:active {
  transform: scale(0.97);
}

.wheel-dismiss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 18px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.88rem;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wheel-dismiss-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* Modal Spin & New Game Actions */
.wheel-modal-spin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--bg-input);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  color: var(--text-primary);
  font-weight: 850;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wheel-modal-spin-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.wheel-modal-spin-btn:active {
  transform: scale(0.97);
}

.wheel-modal-newgame-btn {
  background: var(--gold-gradient, linear-gradient(135deg, #fef4db 0%, #edd382 45%, #ca9628 100%)) !important;
  color: #121008 !important;
  font-weight: 900 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45) !important;
}

body.theme-light .wheel-modal-newgame-btn {
  background: linear-gradient(135deg, #27272a 0%, #111111 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

body.theme-light .wheel-modal-newgame-btn * {
  color: #ffffff !important;
  fill: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.wheel-modal-text-btn {
  display: none !important;
}

/* Roster Reset / New Game Chip */
.wheel-roster-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill, 9999px);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-primary);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.wheel-roster-reset-btn:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-primary);
  transform: scale(1.02);
}

.wheel-roster-reset-btn:active {
  transform: scale(0.96);
}
