/* ==========================================================================
   CyberIQ Arena — Təsadüfi Seçim Çarxı (Wheel of Names) Stylesheet
   ========================================================================== */

.wheel-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--navy);
  color: var(--paper);
  font-family: var(--font-b);
  overflow-x: hidden;
}

/* Header additions for Çarx */
.badge-wheel-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-m);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal-bright);
  background: rgba(58, 217, 255, 0.12);
  border: 1px solid rgba(58, 217, 255, 0.35);
  margin-left: 12px;
}

@media (max-width: 640px) {
  .badge-wheel-header {
    display: none;
  }
}

.btn-header-drawer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(58, 217, 255, 0.1);
  border: 1px solid rgba(58, 217, 255, 0.35);
  color: var(--teal-bright);
  font-family: var(--font-m);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-header-drawer:hover {
  background: rgba(58, 217, 255, 0.2);
  border-color: var(--teal-bright);
  color: #FFF;
  transform: translateY(-1px);
}

.header-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-m);
  background: rgba(58, 217, 255, 0.25);
  color: #FFF;
}

.btn-back-arena {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 26, 42, 0.8);
  border: 1px solid var(--navy-border);
  color: #B0C0D0;
  font-family: var(--font-m);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-back-arena:hover {
  background: rgba(58, 217, 255, 0.12);
  border-color: rgba(58, 217, 255, 0.4);
  color: #FFF;
  transform: translateX(-2px);
}

/* ==========================================================================
   Centered Wheel Layout (Clean, Grand, Balanced)
   ========================================================================== */
.wheel-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 8px 16px 20px;
  position: relative;
  z-index: 5;
}

.wheel-centered-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

/* Interactive Wheel Stage */
.wheel-stage-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.wheel-stage-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}

/* Top Pointer Needle */
.wheel-pointer-container {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
}

.wheel-pointer {
  width: 42px;
  height: 52px;
  background: linear-gradient(180deg, #3AD9FF 0%, #0B6FA0 100%);
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  filter: drop-shadow(0 4px 18px rgba(58, 217, 255, 0.9));
  transform-origin: 50% 0%;
  will-change: transform;
}

/* Canvas container */
.canvas-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow: 
    0 0 60px rgba(58, 217, 255, 0.18),
    0 0 0 8px #0B1A2A,
    0 0 0 10px rgba(58, 217, 255, 0.45);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.3s ease;
}

#wheelCanvas:hover {
  box-shadow: 
    0 0 80px rgba(58, 217, 255, 0.32),
    0 0 0 8px #0B1A2A,
    0 0 0 12px rgba(58, 217, 255, 0.75);
}

/* Center Glowing Hub Button */
.wheel-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #0F2A45 0%, #07111C 90%);
  border: 4px solid var(--teal-bright);
  color: #FFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  box-shadow: 
    0 0 25px rgba(58, 217, 255, 0.5),
    inset 0 0 16px rgba(58, 217, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.wheel-center-hub:hover {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: #FFF;
  box-shadow: 
    0 0 35px rgba(58, 217, 255, 0.8),
    inset 0 0 22px rgba(58, 217, 255, 0.5);
}

.wheel-center-hub:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.wheel-center-hub.spinning {
  pointer-events: none;
  border-color: rgba(58, 217, 255, 0.4);
  box-shadow: 0 0 15px rgba(58, 217, 255, 0.25);
  animation: hubPulse 1.2s infinite ease-in-out;
}

@keyframes hubPulse {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}

.hub-spin-text {
  font-family: var(--font-d);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teal-bright);
  line-height: 1.1;
  text-shadow: 0 0 8px rgba(58, 217, 255, 0.6);
}

.hub-sub-text {
  font-family: var(--font-m);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7A9AB8;
  margin-top: 2px;
}

/* ==========================================================================
   Spin Action Bar & Controls
   ========================================================================== */
.wheel-action-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  width: 100%;
}

.btn-spin-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #3AD9FF 0%, #0B6FA0 100%);
  color: #07111C;
  font-family: var(--font-d);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 14px 42px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 25px rgba(58, 217, 255, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}

.btn-spin-action:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 34px rgba(58, 217, 255, 0.7);
  filter: brightness(1.08);
}

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

.btn-spin-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.5);
}

/* Speed Selector Pills */
.speed-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(11, 26, 42, 0.85);
  border: 1px solid var(--navy-border);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.btn-speed {
  background: transparent;
  border: none;
  color: #8CA0B4;
  font-family: var(--font-m);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-speed:hover {
  color: #FFF;
}

.btn-speed.active {
  background: rgba(58, 217, 255, 0.18);
  color: var(--teal-bright);
  border: 1px solid rgba(58, 217, 255, 0.4);
}

/* Quick Tools Bar (Directly below wheel) */
.quick-tools-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.btn-quick-tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(11, 26, 42, 0.85);
  border: 1px solid var(--navy-border);
  color: #B0C0D0;
  font-family: var(--font-b);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-quick-tool:hover {
  background: rgba(58, 217, 255, 0.12);
  border-color: rgba(58, 217, 255, 0.4);
  color: #FFF;
  transform: translateY(-1px);
}

.tool-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-m);
  background: rgba(58, 217, 255, 0.2);
  color: var(--teal-bright);
}

/* ==========================================================================
   Slide-out Drawer: Student List & Presets (Clean, Minimal, Unobtrusive)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 14, 0.72);
  backdrop-filter: blur(5px);
  z-index: 990;
  transition: opacity 0.25s ease;
}

.student-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 92vw;
  background: #0B1A2A;
  border-left: 1px solid var(--navy-border);
  box-shadow: -14px 0 50px rgba(0, 0, 0, 0.65);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.student-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--navy-border);
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title {
  font-family: var(--font-d);
  font-size: 1.12rem;
  font-weight: 700;
  color: #FFF;
}

.panel-count-badge {
  font-family: var(--font-m);
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(58, 217, 255, 0.12);
  color: var(--teal-bright);
  border: 1px solid rgba(58, 217, 255, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
}

.btn-drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--navy-border);
  color: #94A3B8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-drawer-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FFF;
}

/* Quick actions inside drawer */
.drawer-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-panel-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 34, 54, 0.85);
  border: 1px solid var(--navy-border);
  color: #A0B2C6;
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
  justify-content: center;
}

.btn-panel-action:hover {
  background: rgba(58, 217, 255, 0.12);
  border-color: rgba(58, 217, 255, 0.4);
  color: #FFF;
}

.btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #EF4444;
}

/* Textarea Box */
.textarea-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 220px;
}

#namesInput {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #07111C;
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: #F0F6FC;
  font-family: var(--font-m);
  font-size: 0.88rem;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#namesInput:focus {
  border-color: rgba(58, 217, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(58, 217, 255, 0.12);
}

#namesInput::placeholder {
  color: #4A5D70;
  font-size: 0.82rem;
}

/* Group Presets in drawer */
.panel-groups {
  padding-top: 14px;
  border-top: 1px solid var(--navy-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.groups-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.groups-title {
  font-family: var(--font-d);
  font-size: 0.86rem;
  font-weight: 700;
  color: #B0C4D8;
}

.groups-row {
  display: flex;
  gap: 8px;
}

.group-select {
  flex: 1;
  background: #07111C;
  border: 1px solid var(--navy-border);
  color: #DCE6EC;
  font-family: var(--font-b);
  font-size: 0.82rem;
  padding: 7px 10px;
  border-radius: 6px;
  outline: none;
}

.group-select:focus {
  border-color: var(--teal-bright);
}

.btn-group-load, .btn-group-delete, .btn-group-save {
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-group-load {
  background: rgba(58, 217, 255, 0.15);
  border: 1px solid rgba(58, 217, 255, 0.4);
  color: var(--teal-bright);
}

.btn-group-load:hover {
  background: rgba(58, 217, 255, 0.28);
  color: #FFF;
}

.btn-group-delete {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #EF4444;
}

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

.groups-save-row {
  display: flex;
  gap: 8px;
}

.group-input {
  flex: 1;
  background: #07111C;
  border: 1px solid var(--navy-border);
  color: #DCE6EC;
  font-family: var(--font-b);
  font-size: 0.82rem;
  padding: 7px 10px;
  border-radius: 6px;
  outline: none;
}

.group-input:focus {
  border-color: var(--teal-bright);
}

.btn-group-save {
  background: #0B6FA0;
  border: 1px solid #1480B6;
  color: #FFF;
}

.btn-group-save:hover {
  background: #0E83BD;
}

/* ==========================================================================
   Winner Celebration Modal (Photo 3 Clean Style with CyberIQ Theme)
   ========================================================================== */
.winner-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 14, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
  animation: modalFadeIn 0.18s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.winner-modal-card {
  width: 100%;
  max-width: 480px;
  background: #0B1A2A;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(58, 217, 255, 0.35);
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.75),
    0 0 45px rgba(58, 217, 255, 0.22);
  display: flex;
  flex-direction: column;
  animation: modalPop 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Clean Header Banner strip like Image 3 */
.winner-modal-header {
  background: #3B9EE8;
  background: linear-gradient(90deg, #3AD9FF 0%, #2086DE 100%);
  color: #07111C;
  font-family: var(--font-d);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  display: flex;
  align-items: center;
}

/* Main body with huge, legible student name */
.winner-modal-body {
  padding: 44px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #0A1622;
}

.winner-name-text {
  font-family: var(--font-d);
  font-size: 2.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  word-break: break-word;
}

/* Footer with actions aligned right like Image 3 */
.winner-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: #07111C;
  border-top: 1px solid rgba(27, 47, 68, 0.7);
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: #A0B2C6;
  font-family: var(--font-b);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.btn-modal-remove {
  background: linear-gradient(135deg, #4F6AF0 0%, #3B54D4 100%);
  border: 1px solid rgba(120, 150, 255, 0.4);
  color: #FFFFFF;
  font-family: var(--font-b);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(79, 106, 240, 0.4);
  transition: all 0.15s ease;
}

.btn-modal-remove:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(79, 106, 240, 0.55);
}

.btn-modal-remove:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Confetti Canvas
   ========================================================================== */
#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1050;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 680px) {
  .wheel-main {
    padding: 12px 14px 36px;
  }
  .canvas-box {
    max-width: 90vw;
  }
  .wheel-center-hub {
    width: 86px;
    height: 86px;
  }
  .hub-spin-text {
    font-size: 0.88rem;
  }
  .hub-sub-text {
    display: none;
  }
  .btn-spin-action {
    padding: 12px 30px;
    font-size: 1.02rem;
  }
  .winner-name-text {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   CyberIQ Arena — Çarx Pultu (Mobile Remote Controller)
   ========================================================================== */
html.pult-mode body,
body.pult-mode {
  background-color: #07111C;
  color: #F0F6FC;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html.pult-mode .arena-header,
html.pult-mode .wheel-main,
html.pult-mode .student-drawer,
html.pult-mode .drawer-backdrop,
html.pult-mode .winner-modal-backdrop,
html.pult-mode #confettiCanvas,
body.pult-mode .arena-header,
body.pult-mode .wheel-main,
body.pult-mode .student-drawer,
body.pult-mode .drawer-backdrop,
body.pult-mode .winner-modal-backdrop,
body.pult-mode #confettiCanvas {
  display: none !important;
}

.pult-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 14px 16px 110px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.pult-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.pult-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pult-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pult-title {
  font-family: var(--font-h, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.pult-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-m, 'JetBrains Mono', monospace);
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  transition: all 0.25s ease;
}

.pult-status-badge.connected {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.pult-status-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.pult-status-badge.connected .status-dot {
  background-color: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

/* Target Status Card */
.pult-target-card {
  background: linear-gradient(145deg, #0E1F33, #091523);
  border: 1.5px solid rgba(0, 210, 255, 0.25);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pult-target-card.has-target {
  border-color: #00D2FF;
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.2);
}

.target-card-label {
  font-family: var(--font-m, 'JetBrains Mono', monospace);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7A9AB8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.target-card-name {
  font-family: var(--font-h, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  word-break: break-word;
  transition: color 0.2s ease;
}

.pult-target-card.has-target .target-card-name {
  color: #00D2FF;
  text-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
}

.target-card-sub {
  font-size: 0.78rem;
  color: #8BA1B8;
  line-height: 1.35;
}

.btn-pult-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #F87171;
  font-family: var(--font-b, 'Manrope', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pult-reset:active {
  background: rgba(239, 68, 68, 0.25);
  transform: scale(0.97);
}

/* Search Bar */
.pult-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0B1A2A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.pult-search-bar svg {
  color: #7A9AB8;
  flex-shrink: 0;
}

.pult-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-b, 'Manrope', sans-serif);
  font-size: 16px; /* Prevents auto-zoom on iOS Safari */
  outline: none;
}

.pult-search-bar input::placeholder {
  color: #55708C;
}

.pult-count-chip {
  font-family: var(--font-m, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
}

/* Pult Tabs */
.pult-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.pult-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  background: #0B1A2A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #94A3B8;
  font-family: var(--font-b, 'Manrope', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pult-tab-btn.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.4);
  color: #00D2FF;
}

.pult-tab-badge {
  font-family: var(--font-m, 'JetBrains Mono', monospace);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}

.pult-tab-btn.active .pult-tab-badge {
  background: #00D2FF;
  color: #07111C;
}

/* Immunity Shield Button inside Name Item */
.btn-pult-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 1rem;
}

.btn-pult-shield:active {
  transform: scale(0.92);
}

.btn-pult-shield.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: #F59E0B;
  color: #F59E0B;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.pult-name-item.is-immune {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.04);
}

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

/* Nemesis / Chain Section */
.pult-chain-card {
  background: linear-gradient(145deg, #101F30, #0A1624);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

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

.chain-title {
  font-family: var(--font-h, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #C4B5FD;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chain-status-pill {
  font-family: var(--font-m, 'JetBrains Mono', monospace);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
}

.chain-status-pill.armed {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #C4B5FD;
}

.chain-select-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.chain-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chain-select-label {
  font-size: 0.78rem;
  color: #8BA1B8;
  width: 90px;
  flex-shrink: 0;
}

.pult-select {
  flex: 1;
  background: #07111C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  color: #FFFFFF;
  font-family: var(--font-b, 'Manrope', sans-serif);
  font-size: 0.86rem;
  outline: none;
}

.chain-actions-row {
  display: flex;
  gap: 8px;
}

.btn-chain-apply {
  flex: 1;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid #8B5CF6;
  color: #DDD6FE;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: var(--font-b, 'Manrope', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-chain-apply:active {
  background: rgba(139, 92, 246, 0.35);
  transform: scale(0.97);
}

.btn-chain-clear {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: var(--font-b, 'Manrope', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Ghost / Resurrect Section */
.pult-ghost-card {
  background: linear-gradient(145deg, #1C1318, #0E1118);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

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

.ghost-title {
  font-family: var(--font-h, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FDA4AF;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ghost-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.ghost-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090D14;
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
}

.ghost-name {
  font-family: var(--font-b, 'Manrope', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: #E2E8F0;
}

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

.btn-ghost-readd {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost-readd:active {
  transform: scale(0.95);
}

.btn-ghost-target {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid #00D2FF;
  color: #00D2FF;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost-target:active {
  background: rgba(0, 210, 255, 0.3);
  transform: scale(0.95);
}

/* Names Grid */
.pult-names-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 360px);
  max-height: calc(100dvh - 360px);
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.pult-name-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0E1F33;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pult-name-item:active {
  transform: scale(0.98);
}

.pult-name-item.selected {
  background: rgba(0, 210, 255, 0.12);
  border-color: #00D2FF;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.22);
}

.pult-name-text {
  font-family: var(--font-b, 'Manrope', sans-serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: #E2E8F0;
}

.pult-name-item.selected .pult-name-text {
  color: #00D2FF;
  font-weight: 700;
}

.pult-item-badge {
  font-family: var(--font-m, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #64748B;
  transition: all 0.2s ease;
}

.pult-name-item.selected .pult-item-badge {
  background: #00D2FF;
  color: #07111C;
}

/* Sticky Bottom Bar */
.pult-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 17, 28, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.btn-pult-spin {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #00D2FF 0%, #0099FF 100%);
  color: #07111C;
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  font-family: var(--font-h, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 24px rgba(0, 210, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pult-spin:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.3);
}

.btn-pult-spin:disabled {
  opacity: 0.6;
  background: #1B2F44;
  color: #7A9AB8;
  box-shadow: none;
  cursor: not-allowed;
}

/* Toast message on PC */
.carx-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(14, 31, 51, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-b, 'Manrope', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
}

.carx-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Multi-Wheel Switcher in Pult */
.pult-wheel-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(10, 22, 36, 0.85);
  border: 1px solid rgba(58, 217, 255, 0.2);
  border-radius: 14px;
  margin-bottom: 12px;
}

.pult-wheel-btn {
  flex: 1 1 auto;
  min-width: 96px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #c8d3dc;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.pult-wheel-btn:hover {
  background: rgba(58, 217, 255, 0.12);
  border-color: rgba(58, 217, 255, 0.4);
}

.pult-wheel-btn.active {
  background: linear-gradient(135deg, rgba(58, 217, 255, 0.24), rgba(11, 111, 160, 0.35));
  border-color: #3ad9ff;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(58, 217, 255, 0.25);
}

.pult-wheel-btn .wheel-count-pill {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #8fe8ff;
}
