/* Clean, Lightweight Habbo UI Styling */
:root {
  --habbo-dark: #141822;
  --habbo-cyan: #00e5ff;
  --habbo-border: rgba(255, 255, 255, 0.12);
  --habbo-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --terminal-green: #00ffcc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--habbo-dark);
  font-family: var(--habbo-font);
  color: #fff;
  overscroll-behavior: none;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none; /* Prevents mobile browser from hijacking drag gestures */
  -webkit-touch-callout: none;
}

#canvas-container:active {
  cursor: grabbing;
}

#render-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* --- HABBO FLOATING SPEECH BUBBLES --- */
#chat-bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.habbo-bubble {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: #ffffff;
  color: #1a1e24;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  max-width: min(84vw, 340px);
  width: max-content;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.habbo-bubble .bubble-tail {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
}

.habbo-bubble .bubble-avatar-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #161920;
  border: 1.5px solid #f1c40f;
  flex-shrink: 0;
  margin-top: 2px;
}

.habbo-bubble .bubble-content {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.habbo-bubble .bubble-sender {
  font-weight: 700;
  color: #0f141c;
  margin-right: 4px;
}

.habbo-bubble .bubble-text {
  color: #24292e;
}

.habbo-bubble.style-boss {
  background: #0f172a;
  color: #38bdf8;
  border: 1.5px solid #38bdf8;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
}

.habbo-bubble.style-boss .bubble-tail {
  border-top-color: #38bdf8;
}

.habbo-bubble.style-boss .bubble-avatar-icon {
  background: #38bdf8;
  border-color: #facc15;
}

.habbo-bubble.style-boss .bubble-sender {
  color: #facc15;
}

.habbo-bubble.style-boss .bubble-text {
  color: #f1f5f9;
}

/* --- AGENT GENERATING / PENDING PROMPT BANNER (UP TOP) --- */
.agent-status-banner {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid #38bdf8;
  border-radius: 24px;
  padding: 8px 18px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65), 0 0 16px rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 60;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  max-width: 90vw;
}

.agent-status-banner.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-16px);
  pointer-events: none;
}

.agent-status-banner.complete {
  border-color: #22c55e;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65), 0 0 16px rgba(34, 197, 94, 0.4);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #38bdf8;
  border-radius: 50%;
  flex-shrink: 0;
  animation: banner-pulse-glow 1.2s infinite ease-in-out;
}

.agent-status-banner.complete .pulse-dot {
  background: #22c55e;
  animation: none;
}

@keyframes banner-pulse-glow {
  0% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.status-text-content {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.status-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #38bdf8;
}

.agent-status-banner.complete .status-title {
  color: #22c55e;
}

.status-prompt {
  font-size: 12.5px;
  color: #f1f5f9;
  font-weight: 500;
  max-width: 270px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- MINIMAL TOP BAR --- */
#top-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 50;
}

.room-title {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 22, 32, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--habbo-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  pointer-events: auto;
}

.top-actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.icon-btn {
  background: rgba(18, 22, 32, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--habbo-border);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: rgba(40, 50, 70, 0.9);
  transform: translateY(-1px);
}

.icon-btn.muted {
  opacity: 0.5;
}

/* --- ZONE 1 LIVE COUNTDOWN TICKER PILL --- */
.zone1-live-ticker {
  position: absolute;
  top: 60px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 24, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 10px rgba(34, 197, 94, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #f1f5f9;
  cursor: pointer;
  z-index: 52;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  max-width: calc(100vw - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zone1-live-ticker:hover {
  background: rgba(12, 34, 22, 0.95);
  border-color: #22c55e;
  box-shadow: 0 4px 22px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

.zone1-ticker-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 2px 7px;
  border-radius: 10px;
}

.zone1-ticker-text {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zone1-ticker-label {
  color: #cbd5e1;
  font-weight: 500;
}

.zone1-ticker-timer {
  color: #4ade80;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

.zone1-ticker-match {
  color: #94a3b8;
  font-size: 11px;
}

.zone1-ticker-action {
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  margin-left: 2px;
}

@media (max-width: 600px) {
  .zone1-live-ticker {
    top: 56px;
    font-size: 11px;
    padding: 4px 10px;
    gap: 6px;
  }
  .zone1-ticker-match {
    display: none;
  }
}

/* --- ZONE 2A LIVE PIPELINE QUEUE & TILE TIME PILL --- */
.zone2a-live-ticker {
  position: absolute;
  top: 60px;
  left: 360px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 16, 8, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(249, 115, 22, 0.5);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 10px rgba(249, 115, 22, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #f1f5f9;
  cursor: pointer;
  z-index: 52;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
}

.zone2a-live-ticker:hover {
  background: rgba(42, 20, 10, 0.96);
  border-color: #f97316;
  box-shadow: 0 4px 22px rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
}

.zone2a-ticker-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(249, 115, 22, 0.2);
  color: #fed7aa;
  border: 1px solid rgba(249, 115, 22, 0.4);
  padding: 2px 7px;
  border-radius: 10px;
}

.zone2a-ticker-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zone2a-ticker-process {
  color: #fb923c;
  font-weight: 800;
}

.zone2a-ticker-sep {
  color: #64748b;
  font-size: 10px;
}

.zone2a-ticker-timer {
  color: #fed7aa;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.zone2a-ticker-action {
  color: #fdba74;
  font-size: 11px;
  font-weight: 700;
  margin-left: 2px;
}

@media (max-width: 900px) {
  .zone2a-live-ticker {
    top: 98px;
    left: 14px;
  }
}

@media (max-width: 600px) {
  .zone2a-live-ticker {
    top: 92px;
    left: 14px;
    font-size: 11px;
    padding: 4px 10px;
    gap: 6px;
  }
}

/* --- HABBO BOTTOM DOCK & FULL-WIDTH CHAT BAR --- */
#bottom-dock {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 20px));
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
  z-index: 999;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  transition: bottom 0.2s ease-out;
}

/* Automatically remove/hide bottom dock & chat text box whenever any modal is open */
body:has(#zone3-modal.visible) #bottom-dock,
body:has(#zone3-modal.active) #bottom-dock,
body:has(#gelato-pod-modal.visible) #bottom-dock,
body:has(#gelato-pod-modal.active) #bottom-dock,
body:has(.habbo-modal.visible) #bottom-dock,
body:has(.habbo-modal.active) #bottom-dock,
body.zone3-modal-open #bottom-dock,
body.gelato-modal-open #bottom-dock,
body.modal-open #bottom-dock,
#bottom-dock.modal-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.dock-action-row {
  display: none !important;
}

.dock-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
}

.dock-pill-btn.desk-pill {
  background: rgba(0, 229, 255, 0.18);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: var(--habbo-cyan);
}

.dock-pill-btn.desk-pill:hover,
.dock-pill-btn.desk-pill:active {
  background: rgba(0, 229, 255, 0.32);
}

.dock-pill-btn.style-pill {
  background: rgba(22, 28, 40, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

.dock-pill-btn.style-pill:hover,
.dock-pill-btn.style-pill:active {
  background: rgba(35, 45, 65, 0.95);
  color: #fff;
}

.habbo-chat-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 22, 32, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 4px 6px 4px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.chat-lock-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  padding: 0;
}

.chat-lock-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}

.chat-lock-btn.active-locked {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
}

.chat-lock-btn .lock-icon {
  font-size: 13px;
  line-height: 1;
}

.habbo-chat-bar.is-locked,
.habbo-chat-bar.is-disabled {
  background: rgba(15, 18, 26, 0.88);
  border-color: rgba(245, 158, 11, 0.45);
  cursor: not-allowed;
}

.habbo-chat-bar.is-locked #chat-input-field,
.habbo-chat-bar.is-disabled #chat-input-field,
#chat-input-field:disabled,
#chat-input-field[readonly] {
  color: #718096 !important;
  cursor: not-allowed !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  pointer-events: none;
}

.habbo-chat-bar.is-locked .chat-send-btn,
.habbo-chat-bar.is-disabled .chat-send-btn,
.chat-send-btn:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(1);
}

.chat-prefix-icon {
  font-size: 14px;
  opacity: 0.85;
  flex-shrink: 0;
}

#chat-input-field {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14.5px;
  font-family: inherit;
  padding: 6px 2px;
  user-select: text;
  -webkit-user-select: text;
}

#chat-input-field::placeholder {
  color: #718096;
}

.chat-send-btn {
  flex-shrink: 0;
  background: var(--habbo-cyan);
  color: #0b0e14;
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.chat-send-btn:hover,
.chat-send-btn:active {
  background: #55efff;
  transform: scale(1.02);
}

.send-arrow-svg {
  display: inline-block;
  vertical-align: middle;
}

/* --- SIMPLE MODALS --- */
.habbo-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100%;
  height: 100dvh;
  background: rgba(5, 8, 14, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000 !important;
  overscroll-behavior: contain;
  padding: 12px;
}

.habbo-modal.visible,
.habbo-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  width: min(440px, 92vw);
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #1a202c;
  border: 1px solid var(--habbo-border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #11151e;
  border-bottom: 1px solid var(--habbo-border);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 14px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: #8b9bb4;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  touch-action: manipulation;
}

.modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

.pwa-confirm-btn {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

/* --- HABBO WARDROBE & DRESSING ROOM MODAL --- */
.wardrobe-pill {
  border-color: rgba(244, 63, 94, 0.4) !important;
  background: rgba(244, 63, 94, 0.16) !important;
  color: #fda4af !important;
}

.wardrobe-pill:hover,
.wardrobe-pill:active {
  background: rgba(244, 63, 94, 0.3) !important;
  border-color: #f43f5e !important;
  color: #fff !important;
}

.wardrobe-window {
  width: min(720px, 94vw);
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-icon {
  font-size: 18px;
}

.wardrobe-container {
  display: flex;
  gap: 16px;
  padding: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

/* Left: Avatar Preview Frame */
.wardrobe-preview-pane {
  flex: 0 0 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preview-canvas-card {
  background: radial-gradient(circle at center, #1b2333 0%, #0d121c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.3);
  width: 100%;
}

#wardrobe-preview-canvas {
  display: block;
  width: 156px;
  height: 196px;
  image-rendering: auto;
}

.preview-rotate-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.preview-rot-btn {
  background: #202738;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  border-radius: 6px;
  width: 28px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preview-rot-btn:hover {
  background: #2e384e;
  color: #fff;
  border-color: #00e5ff;
}

.preview-hint {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Right: Customization Controls */
.wardrobe-controls-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wardrobe-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wardrobe-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--habbo-cyan);
}

.gender-segmented-control {
  display: flex;
  gap: 8px;
}

.wardrobe-gender-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  background: #202736;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wardrobe-gender-btn:hover {
  background: #2a3449;
  color: #fff;
}

.wardrobe-gender-btn.active {
  background: #00e5ff;
  color: #0c121d;
  border-color: #00e5ff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}

.presets-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-pill-btn {
  background: #1c2230;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-pill-btn:hover {
  background: #293245;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.preset-pill-btn.active {
  background: #38bdf8;
  color: #09101d;
  border-color: #38bdf8;
  font-weight: 700;
}

.wardrobe-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wardrobe-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-sublabel {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.wardrobe-select {
  width: 100%;
  background: #151a24;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.wardrobe-select:focus {
  border-color: var(--habbo-cyan);
}

.accessories-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.acc-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a202d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.acc-check-item:hover {
  background: #252e40;
}

.acc-check-item input[type="checkbox"] {
  accent-color: var(--habbo-cyan);
  cursor: pointer;
}

.color-picker-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 6px;
}

.swatch-group-title {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.swatches-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.color-swatch:hover {
  transform: scale(1.15);
  border-color: #ffffff;
}

.color-swatch.active {
  transform: scale(1.22);
  border-color: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}

.wardrobe-modal-footer {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wardrobe-action-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.wardrobe-action-btn.apply-btn {
  background: linear-gradient(135deg, #00e5ff, #0284c7);
  color: #0b1320;
}

.wardrobe-action-btn.apply-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #0369a1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.35);
}

.wardrobe-action-btn.random-btn {
  background: #222a3a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.wardrobe-action-btn.random-btn:hover {
  background: #2d374d;
  color: #fff;
  border-color: var(--habbo-cyan);
}

@media (max-width: 640px) {
  .wardrobe-container {
    flex-direction: column;
    align-items: stretch;
  }
  .wardrobe-preview-pane {
    flex: 0 0 auto;
    width: 100%;
    max-width: 220px;
    align-self: center;
  }
  .wardrobe-controls-pane {
    width: 100%;
  }
  .wardrobe-row-2col {
    grid-template-columns: 1fr;
  }
}

/* --- MAP HUD ICON & GROUPS MODAL --- */
.map-icon-clickable {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease;
  user-select: none;
}

.map-icon-clickable:hover {
  transform: scale(1.22);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.7));
}

.groups-window {
  width: min(640px, 94vw);
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.groups-modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

.groups-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.groups-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-card {
  background: #151c28;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.group-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.group-card.green-stripe-card {
  border-left: 5px solid #22c55e;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.18) 0%, rgba(15, 23, 42, 0.9) 100%);
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.15);
}

.group-card.blue-command-card {
  border-left: 5px solid #38bdf8;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.group-card.gold-sector-card {
  border-left: 5px solid #f59e0b;
}

.group-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.group-badge-stripe {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stripe-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.stripe-swatch.green {
  background: #22c55e;
}

.stripe-swatch.black {
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.stripe-swatch.blue {
  background: #38bdf8;
}

.stripe-swatch.gold {
  background: #f59e0b;
}

.group-title-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
}

.group-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

.group-status-pill.active {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid #22c55e;
}

.group-status-pill.online {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid #38bdf8;
}

.group-status-pill.standby {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.group-card-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

.group-meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
}

.group-meta-item {
  display: flex;
  gap: 6px;
}

.meta-label {
  color: #94a3b8;
  font-weight: 600;
}

.meta-val {
  color: #f1f5f9;
}

.group-action-row {
  margin-top: 4px;
}

.group-action-btn {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.group-action-btn.green-btn {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  border: 1px solid #22c55e;
}

.group-action-btn.green-btn:hover {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.group-action-btn.blue-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
}

/* --- NZ SPORTS INTELLIGENCE RADAR MODAL --- */
.sports-radar-window {
  width: min(760px, 94vw);
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.green-stripe-header {
  border-bottom: 2px solid #22c55e !important;
  background: #09130d !important;
  flex-shrink: 0;
}

.header-subtitle {
  display: block;
  font-size: 11px;
  color: #4ade80;
  font-weight: 500;
}

.sports-radar-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

/* --- ZONE 1 COUNTDOWN HERO CARD IN MODAL --- */
.zone1-countdown-hero-card {
  background: linear-gradient(135deg, rgba(8, 26, 17, 0.95) 0%, rgba(13, 38, 25, 0.92) 100%);
  border: 1.5px solid rgba(34, 197, 94, 0.4);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(34, 197, 94, 0.08);
  position: relative;
  overflow: hidden;
}

.zone1-countdown-hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #86efac;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 2px 8px;
  border-radius: 12px;
}

.hero-live-clock {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.hero-countdown-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-timer-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.timer-prefix {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.timer-digits {
  font-family: 'Courier New', monospace;
  font-size: 26px;
  font-weight: 900;
  color: #4ade80;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
  line-height: 1;
}

.hero-match-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.hero-match-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: #94a3b8;
}

.hero-match-details .sep {
  opacity: 0.4;
}

.hero-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.hero-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #15803d, #22c55e, #4ade80);
  border-radius: 4px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.hero-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-sync-info {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-btns-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-test-skip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hero-test-skip:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-hero-package {
  background: #15803d;
  border: 1px solid #22c55e;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.25);
}

.btn-hero-package:hover {
  background: #16a34a;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

.sports-agent-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #0c1813;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
}

.agent-occupancy-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #86efac;
}

.agent-occupancy-badge.status-warning {
  color: #fca5a5;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.status-pulse-dot.warning {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.btn-seat-agent-now {
  background: #166534;
  color: #fff;
  border: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 8px;
}

.sports-rescan-btn {
  background: #15803d;
  color: #fff;
  border: 1px solid #22c55e;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sports-rescan-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.sports-kpi-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.kpi-box {
  background: #131a26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kpi-num {
  font-size: 13.5px;
  font-weight: 800;
  color: #22c55e;
}

.kpi-sub {
  font-size: 10.5px;
  color: #94a3b8;
}

/* ==========================================================================
   Horizontal Sports Tabulation Bar (Ball Icons - Top Header Placement)
   ========================================================================== */

.sports-top-tabulation-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 4px 2px 8px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
  flex-shrink: 0;
}

.sports-top-tabulation-bar::-webkit-scrollbar {
  display: none;
}

.sports-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111722;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  user-select: none;
  touch-action: manipulation;
}

.sports-nav-tab:hover {
  background: #1a2538;
  border-color: rgba(34, 197, 94, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.sports-nav-tab.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.28);
}

.tab-ball-icon {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-sport-name {
  font-weight: 700;
}

.tab-count-badge {
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  transition: all 0.15s ease;
}

.sports-nav-tab.active .tab-count-badge {
  background: #22c55e;
  color: #052e16;
}

.btn-reset-sport-filter {
  margin-top: 10px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-reset-sport-filter:hover {
  background: #22c55e;
  color: #052e16;
}

.sports-filter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  flex-shrink: 0;
  padding-bottom: 3px;
}

.sports-filter-btn {
  background: #1a2332;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 5px 11px;
  border-radius: 18px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.sports-filter-btn:hover {
  background: #27344a;
  color: #fff;
}

.sports-filter-btn.active {
  background: #22c55e;
  color: #052e16;
  font-weight: 700;
  border-color: #22c55e;
}

/* ==========================================================================
   Sports Timeline Horizon Bar (Now, Future, Expired)
   ========================================================================== */
.sports-timeline-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 4px 0 10px 0;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.sports-timeline-bar::-webkit-scrollbar {
  display: none;
}

.timeline-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111722;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  user-select: none;
  touch-action: manipulation;
}

.timeline-tab-btn:hover {
  background: #1a2538;
  border-color: rgba(34, 197, 94, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.timeline-tab-btn.active {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

.timeline-tab-btn[data-timeline="future"].active {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

.timeline-tab-btn[data-timeline="now"].active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.timeline-tab-btn[data-timeline="past"].active,
.timeline-tab-btn[data-timeline="expired"].active {
  background: rgba(100, 116, 139, 0.25);
  border-color: #94a3b8;
  color: #e2e8f0;
  box-shadow: 0 0 10px rgba(100, 116, 139, 0.25);
}

.timeline-count {
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  transition: all 0.15s ease;
}

.timeline-tab-btn.active .timeline-count {
  background: #22c55e;
  color: #052e16;
}

.timeline-tab-btn[data-timeline="future"].active .timeline-count {
  background: #22c55e;
  color: #052e16;
}

.timeline-tab-btn[data-timeline="now"].active .timeline-count {
  background: #ef4444;
  color: #fff;
}

.timeline-tab-btn[data-timeline="past"].active .timeline-count,
.timeline-tab-btn[data-timeline="expired"].active .timeline-count {
  background: #64748b;
  color: #fff;
}

.timeline-dot.now-dot {
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot-red 1.4s ease-in-out infinite;
}

@keyframes pulse-dot-red {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.sports-games-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sports-card {
  background: #111722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.sports-card:hover {
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

.sports-card.pill-today {
  border-left: 4px solid #ef4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, #111722 100%);
}

.sports-card.pill-tomorrow {
  border-left: 4px solid #f59e0b;
}

.sports-card.pill-soon {
  border-left: 4px solid #22c55e;
}

.sports-card.pill-past,
.sports-card.pill-expired {
  border-left: 4px solid #64748b;
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.08) 0%, #111722 100%);
  opacity: 0.92;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-sport-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.14);
  padding: 2px 7px;
  border-radius: 4px;
}

.card-comp-name {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  flex: 1;
}

.card-days-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-days-badge.pill-today {
  background: #ef4444;
  color: #fff;
}

.card-days-badge.pill-tomorrow {
  background: #f59e0b;
  color: #0f172a;
}

.card-days-badge.pill-soon {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.card-days-badge.pill-normal {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.card-days-badge.pill-past,
.card-days-badge.pill-expired {
  background: #334155;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-processed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
  text-transform: uppercase;
  white-space: nowrap;
  animation: badgePulseGreen 2.4s ease-in-out infinite alternate;
}

@keyframes badgePulseGreen {
  0% {
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.45);
  }
  100% {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.65);
    border-color: rgba(52, 211, 153, 0.95);
  }
}

.card-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.teams-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Match Intel Button (placed exactly where user circled in red) */
.btn-match-intel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-match-intel:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
  transform: translateY(-1px);
}

.btn-match-intel.active {
  background: #22c55e;
  color: #052e16;
  border-color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.intel-btn-icon {
  font-size: 11px;
}

.intel-btn-chevron {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.btn-match-intel.active .intel-btn-chevron {
  transform: rotate(180deg);
}

.vs-badge {
  font-size: 10px;
  color: #64748b;
  font-weight: 800;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
}

.footer-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-icon {
  font-size: 12px;
}

.meta-val {
  color: #cbd5e1;
}

.sports-empty-state {
  padding: 30px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

/* ==========================================================================
   Match Intel Drawer Styles (Hardware Accelerated, Lean Footprint)
   ========================================================================== */

.sports-card.card-expanded {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.card-intel-drawer {
  background: #0b0f17;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  animation: intelDrawerSlide 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate3d(0, 0, 0);
}

@keyframes intelDrawerSlide {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Quick Bar Chips */
.intel-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.intel-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.intel-chip.chip-soldout {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.intel-chip.chip-weather {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.intel-chip.chip-winprob {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.intel-chip.chip-rivalry {
  background: rgba(245, 158, 11, 0.16);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

/* Intel Tab Nav */
.intel-tab-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.intel-tab-nav::-webkit-scrollbar {
  display: none;
}

.intel-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.intel-tab-btn:hover {
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.2);
}

.intel-tab-btn.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: #22c55e;
  color: #4ade80;
}

/* Sections Grid */
.intel-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  font-size: 11px;
}

.intel-section-grid.mt-2 {
  margin-top: 8px;
}

.intel-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.intel-box-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.intel-box-val {
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 500;
}

.intel-box-val.highlight {
  color: #38bdf8;
  font-weight: 700;
}

.intel-box-val.highlight-green {
  color: #4ade80;
  font-weight: 700;
}

.intel-box-val.highlight-amber {
  color: #fbbf24;
  font-weight: 700;
}

.intel-box-sub {
  color: #94a3b8;
  font-size: 10.5px;
  line-height: 1.35;
}

.intel-box-sub.alert-note {
  color: #fca5a5;
  font-weight: 500;
  margin-top: 2px;
}

.intel-box-sub.highlight-green {
  color: #86efac;
  font-weight: 600;
}

.text-dim {
  color: #64748b;
  font-weight: normal;
}

.text-amber {
  color: #f59e0b;
}

/* Squad & Duel Components */
.squad-marquee-banner {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.12) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.marquee-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: #f87171;
  letter-spacing: 0.5px;
}

.marquee-title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 2px;
}

.marquee-desc {
  font-size: 10.5px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.35;
}

.playmakers-duel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.playmaker-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px;
}

.col-team-header {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  padding: 3px 6px;
}

.player-jersey {
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  padding: 1px 4px;
  border-radius: 3px;
  min-width: 18px;
  text-align: center;
}

.player-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.player-name {
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9;
}

.player-role {
  font-size: 9.5px;
  color: #64748b;
}

.player-rating {
  font-size: 10px;
  font-weight: 800;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Analytics & Win Probability */
.analytics-win-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
}

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

.prob-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.projected-margin {
  font-size: 10px;
  font-weight: 600;
  color: #4ade80;
}

.prob-bar-container {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
}

.prob-fill-home {
  background: #22c55e;
  height: 100%;
  transition: width 0.3s ease;
}

.prob-fill-away {
  background: #3b82f6;
  height: 100%;
  transition: width 0.3s ease;
}

.prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}

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

.form-row.mt-1 {
  margin-top: 4px;
}

.team-form-tag {
  font-size: 10px;
  color: #94a3b8;
  width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-pills {
  display: flex;
  gap: 3px;
}

.form-pill {
  font-size: 9px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.form-pill.w {
  background: #22c55e;
  color: #052e16;
}

.form-pill.l {
  background: #ef4444;
  color: #ffffff;
}

.form-pill.d {
  background: #64748b;
  color: #ffffff;
}

/* ==========================================================================
   Zone 9a // Yellow Print-on-Demand (Gelato) Styles & Modal
   ========================================================================== */

/* Directory Group Card for Zone 9a */
.group-card.yellow-pod-card {
  border-left: 5px solid #eab308;
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.18) 0%, rgba(15, 23, 42, 0.9) 100%);
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.12);
}

.stripe-swatch.yellow {
  background: #eab308;
}

.group-action-btn.yellow-btn {
  background: linear-gradient(180deg, #ca8a04 0%, #a16207 100%);
  border: 1px solid #facc15;
  color: #fef08a;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.25);
}

.group-action-btn.yellow-btn:hover {
  background: linear-gradient(180deg, #eab308 0%, #ca8a04 100%);
  color: #ffffff;
  transform: translate3d(0, -1px, 0);
}

/* Bottom Dock Pill for Zone 9a POD */
.dock-pill-btn.pod-pill {
  border-color: rgba(234, 179, 8, 0.45);
  background: rgba(202, 138, 4, 0.15);
  color: #fef08a;
}

.dock-pill-btn.pod-pill:hover {
  background: rgba(234, 179, 8, 0.28);
  border-color: #facc15;
  color: #ffffff;
}

/* Gelato POD Modal Window */
#gelato-pod-modal {
  z-index: 1000 !important;
}

.modal-window.gelato-window {
  width: 95vw;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #0b1120;
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(234, 179, 8, 0.15);
  transform: translate3d(0, 0, 0);
}

@media (max-width: 640px) {
  #gelato-pod-modal {
    padding: 0 !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: max(2px, env(safe-area-inset-top, 0px)) !important;
  }
  .modal-window.gelato-window {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 0 16px 16px !important;
    border-top: none !important;
  }
  .gelato-modal-body {
    padding: 8px 8px 20px !important;
    gap: 8px !important;
  }
  .gelato-nav-tabs {
    padding: 2px 0 4px !important;
    gap: 4px !important;
  }
  .gelato-nav-tab {
    padding: 5px 9px !important;
    font-size: 11px !important;
  }
}

.modal-header.yellow-pod-header {
  background: linear-gradient(90deg, #1e1b10 0%, #17130a 100%);
  border-bottom: 2px solid #ca8a04;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header.yellow-pod-header .modal-icon {
  font-size: 20px;
}

.modal-header.yellow-pod-header h2 {
  font-size: 14px;
  font-weight: 800;
  color: #fef08a;
  margin: 0;
  letter-spacing: 0.4px;
}

.modal-header.yellow-pod-header .header-subtitle {
  font-size: 10.5px;
  color: #facc15;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.gelato-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}

/* Catalog Navigation Tabs - Solid, Never Squished */
.gelato-nav-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
  flex-shrink: 0 !important;
  min-height: 40px;
  align-items: center;
  -webkit-overflow-scrolling: touch;
}

.gelato-nav-tabs::-webkit-scrollbar {
  height: 4px;
}

.gelato-nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(234, 179, 8, 0.35);
  border-radius: 4px;
}

.gelato-nav-tab {
  flex-shrink: 0 !important;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  transform: translate3d(0, 0, 0);
}

.gelato-nav-tab:hover {
  background: rgba(234, 179, 8, 0.15);
  color: #fef08a;
  border-color: rgba(234, 179, 8, 0.4);
}

.gelato-nav-tab.active {
  background: #ca8a04;
  color: #0b0f19;
  border-color: #facc15;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
  font-weight: 800;
}

.gelato-nav-tab.active .tab-icon {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

/* Controls: Search & Rescan */
.gelato-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gelato-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.gelato-search-wrap .search-lens {
  position: absolute;
  left: 12px;
  font-size: 13px;
  opacity: 0.6;
}

.gelato-search-wrap input {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 8px;
  padding: 9px 12px 9px 34px;
  font-size: 12.5px;
  color: #f8fafc;
  outline: none;
  transition: border-color 0.15s ease;
}

.gelato-search-wrap input:focus {
  border-color: #facc15;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.25);
}

.btn-rescan-gelato {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid #ca8a04;
  color: #fef08a;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-rescan-gelato:hover {
  background: #ca8a04;
  color: #0b0f19;
  transform: translate3d(0, -1px, 0);
}

/* Summary Bar */
.gelato-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.summary-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  display: block;
}

.summary-meta {
  font-size: 11px;
  color: #94a3b8;
}

.summary-meta .nz-text {
  color: #facc15;
}

.summary-count-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #ca8a04;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
}

/* Loading & Empty States */
.gelato-loading {
  text-align: center;
  padding: 40px 20px;
  color: #facc15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.gelato-loading.hidden, .gelato-empty.hidden {
  display: none;
}

.gelato-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(234, 179, 8, 0.2);
  border-top-color: #facc15;
  border-radius: 50%;
  animation: gelatoSpin 0.75s infinite linear;
}

@keyframes gelatoSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.gelato-empty {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
}

.gelato-empty .empty-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

/* Blanks Grid — Strictly 2x Grid per user request */
.gelato-blanks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px;
}

@media (min-width: 900px) {
  .gelato-blanks-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
  }
}

.gelato-blank-card {
  background: #0f172a;
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  transform: translate3d(0, 0, 0);
  min-width: 0;
  overflow: hidden;
}

.gelato-blank-card:hover {
  border-color: #facc15;
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 10px rgba(234, 179, 8, 0.15);
}

.blank-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}

.blank-status-badge.ship-nz {
  font-size: 8.5px;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.blank-cat-pill {
  font-size: 8px;
  font-weight: 700;
  color: #fef08a;
  background: rgba(234, 179, 8, 0.15);
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.blank-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 4px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 29px;
}

.blank-uid-code {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.blank-uid-code code {
  font-family: monospace;
  font-size: 8.5px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 85px;
}

.btn-copy-uid {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #fef08a;
  padding: 1.5px 5px;
  border-radius: 3px;
  font-size: 8.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-copy-uid:hover {
  background: #ca8a04;
  color: #0b0f19;
}

/* Prominent NZD Pricing Section */
.blank-pricing-section {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blank-price-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border-bottom: 1px dashed rgba(234, 179, 8, 0.2);
  padding-bottom: 4px;
}

.price-retail-wrap {
  display: flex;
  flex-direction: column;
}

.price-type-label {
  font-size: 7.5px;
  text-transform: uppercase;
  font-weight: 800;
  color: #ca8a04;
  letter-spacing: 0.3px;
}

.price-val-main {
  font-size: 13.5px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: -0.2px;
}

.price-margin-badge {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 4px;
  padding: 2px 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price-margin-badge .margin-label {
  font-size: 7px;
  text-transform: uppercase;
  color: #4ade80;
  font-weight: 700;
}

.price-margin-badge .margin-val {
  font-size: 10px;
  font-weight: 800;
  color: #22c55e;
  white-space: nowrap;
}

.price-margin-badge .margin-val small {
  font-size: 8px;
  opacity: 0.85;
}

.blank-cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
}

.cost-label {
  color: #94a3b8;
  font-weight: 600;
}

.cost-val {
  color: #e2e8f0;
  font-weight: 700;
}

.cost-val.shipping-val {
  color: #38bdf8;
  font-size: 8.5px;
}

.courier-note {
  display: none;
}

.hub-val {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.blank-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 6px;
  background: rgba(2, 6, 23, 0.4);
  padding: 5px 6px;
  border-radius: 6px;
}

.blank-spec-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spec-label {
  font-size: 8px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
}

.spec-val {
  font-size: 9.5px;
  color: #e2e8f0;
  font-weight: 600;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.spec-val.nz-val {
  color: #facc15;
  font-weight: 700;
}

.blank-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
}

.fulfillment-tag {
  color: #94a3b8;
  font-size: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 65%;
}

.live-tag {
  color: #22c55e;
  font-weight: 700;
  font-size: 8px;
}

/* ==========================================================================
   Zone 3 AI Studio & Store Listing Modal Styles
   ========================================================================== */
.zone3-pill {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.25), rgba(6, 182, 212, 0.25)) !important;
  border: 1px solid rgba(192, 132, 252, 0.45) !important;
  color: #c084fc !important;
}

.zone3-pill:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.45), rgba(6, 182, 212, 0.45)) !important;
  border-color: #a855f7 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.purple-stripe-header {
  border-bottom: 3px solid #a855f7 !important;
}

.purple-dot {
  background: #a855f7 !important;
  box-shadow: 0 0 8px #a855f7;
}

.yellow-dot {
  background: #eab308 !important;
  box-shadow: 0 0 8px #eab308;
}

.green-dot {
  background: #22c55e !important;
  box-shadow: 0 0 8px #22c55e;
}

#zone3-modal {
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 0 !important;
  padding-top: max(2px, env(safe-area-inset-top, 0px)) !important;
  z-index: 1000 !important;
}

.zone3-window {
  max-width: 1060px !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  background: #0d111a !important;
  border-radius: 0 0 16px 16px !important;
  border-top: none !important;
  margin: 0 auto !important;
}

@media (min-width: 1024px) {
  #zone3-modal {
    padding: 10px !important;
    align-items: center !important;
  }
  .zone3-window {
    height: 96dvh !important;
    max-height: 96dvh !important;
    width: 95vw !important;
    border-radius: 16px !important;
    border-top: 1px solid var(--habbo-border) !important;
  }
}

#zone3-modal .modal-header {
  padding: 8px 14px !important;
}

#zone3-modal .modal-header h2 {
  font-size: 13px !important;
  margin: 0 !important;
}

#zone3-modal .zone3-nav-tabs {
  padding: 2px !important;
  margin-bottom: 2px !important;
  gap: 4px !important;
}

#zone3-modal .zone3-tab-btn {
  padding: 5px 10px !important;
  font-size: 11px !important;
}

.zone3-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px !important;
  display: flex;
  flex-direction: column;
  gap: 6px !important;
}

.zone3-alert-banner {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #86efac;
}

.zone3-alert-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.zone3-view-store-link {
  color: #fff;
  background: #15803d;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.zone3-pipeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

@media (max-width: 860px) {
  .zone3-pipeline-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
}

.zone3-col {
  background: #131926;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.col-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-header h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0;
}

.col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.col-desc {
  font-size: 11px;
  color: #94a3b8;
  margin: 4px 0 10px 0;
}

.zone3-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

.zone3-game-card, .zone3-blank-card {
  background: #182032;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.zone3-game-card:hover, .zone3-blank-card:hover {
  background: #202b42;
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}

.zone3-game-card.selected {
  background: rgba(34, 197, 94, 0.12);
  border-color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.zone3-blank-card.selected {
  background: rgba(234, 179, 8, 0.12);
  border-color: #eab308;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
}

.zone3-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.zone3-tag-win {
  font-size: 10px;
  font-weight: 800;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.zone3-score-pill {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  font-family: monospace;
}

.zone3-game-title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}

.zone3-hero-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.zone3-hero-name {
  font-weight: 700;
  color: #facc15;
}

.zone3-telemetry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.zone3-stat-tag {
  font-size: 9.5px;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 5px;
  border-radius: 4px;
  color: #cbd5e1;
}

.zone3-feed-badge {
  font-size: 9px;
  color: #64748b;
  font-family: monospace;
}

.zone3-blank-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.zone3-blank-name {
  font-size: 12px;
  color: #f8fafc;
}

.zone3-blank-price {
  font-size: 11.5px;
  font-weight: 800;
  color: #facc15;
}

.zone3-blank-specs {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.zone3-blank-hub {
  font-size: 9.5px;
  color: #38bdf8;
}

.preview-col {
  display: flex;
  flex-direction: column;
}

.zone3-preview-stage {
  flex: 1;
  background: #0a0e17;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  overflow: hidden;
}

.zone3-empty-preview {
  text-align: center;
  padding: 20px;
  color: #94a3b8;
}

.zone3-empty-preview .empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.zone3-empty-preview h4 {
  color: #fff;
  margin: 0 0 6px 0;
  font-size: 14px;
}

.zone3-empty-preview p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.zone3-generating-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.zone3-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(168, 85, 247, 0.2);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.zone3-gen-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #c084fc;
}

.zone3-gen-sub {
  font-size: 11px;
  color: #94a3b8;
  max-width: 320px;
}

.zone3-fitted-preview {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 4px;
}

.fitted-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fitted-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  flex: 0 0 auto;
}

.badge-style {
  background: #7e22ce;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-blank {
  background: #1e293b;
  color: #94a3b8;
  padding: 3px 8px;
  border-radius: 4px;
}

.mockup-display-stage {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #111a2e 0%, #070b14 70%, #03050a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  align-items: center;
  flex: 1 1 auto !important;
  min-height: 380px !important;
  height: 100% !important;
  max-height: none !important;
  overflow: hidden;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.6);
}

.mockup-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 2px;
  z-index: 5;
  padding: 2px 4px;
  flex: 0 0 auto;
}

.mockup-title-tag {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.4px;
}

.mockup-mode-toggle {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.btn-mode-toggle {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mode-toggle.active {
  background: #7e22ce;
  color: #ffffff;
  box-shadow: 0 1px 6px rgba(126, 34, 206, 0.4);
}

.mockup-stage-content {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mockup-3d-viewport {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.mockup-3d-canvas {
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

.mockup-3d-hud-bar {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 3px 6px;
  z-index: 10;
  pointer-events: auto;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-badge {
  font-size: 8.5px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.hud-hint {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 600;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.hud-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hud-btn-active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
}

#m3d-btn-spin.hud-btn-active {
  background: #15803d;
  border-color: #22c55e;
}

.compact-fitted-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px !important;
  margin-bottom: 2px !important;
}

.compact-fitted-bar .badge-blank {
  background: rgba(30, 41, 59, 0.8) !important;
  color: #e2e8f0 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
}

.compact-fitted-bar .btn-toggle-view {
  background: rgba(126, 34, 206, 0.2) !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  color: #c084fc !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.compact-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #94a3b8;
  padding: 2px 4px;
  gap: 8px;
}

.compact-meta-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-compact-publish {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.zone3-mockup-svg {
  width: 100%;
  max-height: 220px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

.zone3-mockup-svg:hover {
  transform: scale(1.02);
}

.fitted-meta-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}

.fitted-meta-row {
  display: flex;
  justify-content: space-between;
}

.fitted-meta-row .meta-label {
  color: #64748b;
}

.fitted-meta-row .meta-val {
  color: #e2e8f0;
}

.zone3-action-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.btn-zone3-generate {
  background: linear-gradient(135deg, #7e22ce, #a855f7);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-zone3-generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn-zone3-list {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-zone3-list:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-zone3-list:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.purple-sector-card, .purple-studio-card {
  border-left: 4px solid #a855f7 !important;
}

.stripe-swatch.purple {
  background: #a855f7 !important;
}

.stripe-swatch.cyan {
  background: #06b6d4 !important;
}

.purple-btn {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
}

.purple-btn:hover {
  background: rgba(168, 85, 247, 0.3) !important;
  color: #fff !important;
}

/* Zone 1 Live Packaging Action Bar */
.card-zone1-packaging-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(6, 95, 70, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 10px;
}

.zone1-feed-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #a7f3d0;
}

.live-dot-mini {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: radarPulse 1.4s ease-in-out infinite alternate;
}

.btn-package-zone3 {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-package-zone3:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4);
}

.packaged-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-packaged {
  font-size: 10.5px;
  font-weight: 800;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.btn-jump-zone3 {
  background: #7e22ce;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-jump-zone3:hover {
  background: #9333ea;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

.zone1-packaging-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-fully-process {
  background: linear-gradient(135deg, #059669 0%, #10b981 45%, #f59e0b 100%);
  background-size: 200% 200%;
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.6);
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35), 0 0 4px rgba(245, 158, 11, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.btn-fully-process:hover {
  transform: translateY(-1px);
  background-position: right center;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6), 0 0 8px rgba(245, 158, 11, 0.7);
  border-color: #fbbf24;
}

.btn-fully-process:active {
  transform: translateY(1px);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.btn-fully-process.processed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.15);
  text-shadow: none;
  font-weight: 700;
  cursor: default;
}

.btn-fully-process.processed:hover {
  transform: none;
  background: rgba(16, 185, 129, 0.22);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  border-color: rgba(52, 211, 153, 0.7);
}

.btn-fully-process.processing {
  background: rgba(100, 116, 139, 0.35);
  color: #cbd5e1;
  border-color: rgba(100, 116, 139, 0.5);
  cursor: wait;
  pointer-events: none;
  animation: pulseProcessing 1.6s ease-in-out infinite alternate;
}

@keyframes pulseProcessing {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sports-pipeline-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #10b981;
  border-left: 5px solid #10b981;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(16, 185, 129, 0.35);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 100000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 440px;
  line-height: 1.45;
}

.sports-pipeline-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* Groups Modal Tab Switcher */
.groups-tab-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.groups-tab-btn {
  background: #182032;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.groups-tab-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* 25 Autonomous Agents Operational Matrix */
.agents-matrix-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.matrix-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 10px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-custom-row {
  display: grid;
  grid-template-columns: 100px 180px 130px 1.4fr 170px 110px 95px;
  align-items: center;
  gap: 8px;
  background: #131926;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  transition: all 0.15s ease;
}

.agent-custom-row:hover {
  background: #1a2234;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.agent-custom-row.agent-row-zone1 {
  border-left: 3px solid #22c55e;
}

.agent-custom-row.agent-row-zone2 {
  border-left: 3px solid #eab308;
}

.agent-custom-row.agent-row-zone3 {
  border-left: 3px solid #a855f7;
}

.agent-custom-row.agent-row-zone5a {
  border-left: 3px solid #f97316;
}

.agent-custom-row.agent-row-cmd {
  border-left: 3px solid #3b82f6;
}

.agent-id-pill {
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: #1e293b;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 2px;
}

.agent-zone-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  display: inline-block;
}

.zone1-tag { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.zone2-tag, .zone9a-tag { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.zone3-tag { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.zone5a-tag { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.cmd-tag { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

.agent-col-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-avatar-mini {
  font-size: 18px;
}

.agent-name-role {
  display: flex;
  flex-direction: column;
}

.agent-name {
  font-size: 12px;
  color: #f8fafc;
}

.agent-role {
  font-size: 10px;
  color: #94a3b8;
}

.station-label {
  font-size: 9px;
  color: #64748b;
  display: block;
}

.station-val {
  font-size: 11px;
  color: #cbd5e1;
  font-family: monospace;
}

.domain-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
  display: block;
}

.domain-sub {
  font-size: 10px;
  color: #64748b;
  display: block;
}

.feed-badge {
  font-size: 9.5px;
  font-family: monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 6px;
  border-radius: 4px;
}

.agent-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.agent-status-badge.status-live {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.agent-status-badge.status-idle {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.pulse-dot-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.btn-agent-action {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: center;
}

.btn-agent-action:hover {
  background: #2563eb;
  color: #fff;
  border-color: #3b82f6;
}

/* Zone 3 Multi-Blank Showcase Grid */
.zone3-multiblank-showcase {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.multiblank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-toggle-view {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle-view:hover {
  background: #7e22ce;
  color: #fff;
  border-color: #a855f7;
}

.multiblank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.multiblank-card {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.multiblank-card:hover, .multiblank-card.active-blank {
  background: #131b2e;
  border-color: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.multiblank-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
}

.multiblank-card-top .b-name {
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.multiblank-card-top .b-price {
  color: #facc15;
  font-weight: 800;
}

.multiblank-svg-wrap {
  background: #020617;
  border-radius: 4px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
}

.multiblank-svg-wrap svg {
  max-width: 100%;
  max-height: 85px;
}

.multiblank-specs {
  font-size: 8px;
  color: #64748b;
  text-align: center;
}

.btn-zone3-list-all {
  background: linear-gradient(135deg, #15803d, #22c55e);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-zone3-list-all:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.btn-zone3-list-all:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Zone 3 Top Navigation Switcher */
.zone3-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.zone3-nav-tabs::-webkit-scrollbar {
  display: none;
}

.zone3-tab-btn {
  background: #151c2c;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.zone3-tab-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}

.zone3-tab-btn.active {
  background: linear-gradient(135deg, #7e22ce, #a855f7);
  color: #fff;
  border-color: #c084fc;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}

.zone3-view-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

/* Zone 3 Showcase Toolbar & Game Switcher Pills */
/* Zone 3 Showcase Toolbar & Game Switcher Pills */
.zone3-showcase-toolbar {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px 6px !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zone3-showcase-toolbar.compact-toolbar {
  padding: 3px 6px !important;
}

.showcase-toolbar-info {
  display: none !important;
}

.zone3-game-pills {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 1px 0 2px 0;
  scrollbar-width: thin;
}

.game-pill-btn {
  background: #182235;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px !important;
  border-radius: 12px !important;
  font-size: 10px !important;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.game-pill-btn:hover {
  background: #23304a;
  border-color: #38bdf8;
  color: #fff;
}

.game-pill-btn.active {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  color: #f3e8ff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}

/* Zone 3 Showcase Stage */
.zone3-showcase-stage {
  flex: 1 1 auto !important;
  background: #0a0e17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px !important;
  overflow-y: auto;
  min-height: 380px !important;
  display: flex !important;
  flex-direction: column !important;
}

.zone3-showcase-actions {
  display: flex;
  flex-direction: column;
  gap: 4px !important;
  padding-top: 2px !important;
}

.compact-actions .btn-zone3-list-all {
  padding: 8px 10px !important;
  font-size: 11.5px !important;
}

.action-sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.compact-actions .btn-zone3-generate,
.compact-actions .btn-zone3-store-link {
  padding: 6px 8px !important;
  font-size: 10.5px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
}

.btn-zone3-store-link {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-zone3-store-link:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #7dd3fc;
}

/* Published Drops View */
.zone3-drops-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.zone3-drops-header h3 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #f8fafc;
}

.zone3-drops-header p {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
}

.zone3-drops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  overflow-y: auto;
  max-height: 480px;
  padding-right: 4px;
}

.zone3-drop-card {
  background: #131926;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}

.zone3-drop-card:hover {
  border-color: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.drop-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.drop-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.drop-price {
  font-size: 13px;
  font-weight: 800;
  color: #facc15;
}

.drop-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.drop-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.drop-telemetry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.drop-stat-pill {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #38bdf8;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   ZONE 2A // PLAYER INTELLIGENCE, BIOMETRICS & FACIAL LIKENESS PIPELINE
   Strictly Scoped to Zone 2a (Station 1: Rosters & Sources / Station 2: Biometrics)
   ========================================================================== */

.zone2a-window {
  width: 92vw;
  max-width: 900px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #0f131c;
  border: 2px solid #ea580c;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(234, 88, 12, 0.35);
  border-radius: 8px;
  overflow: hidden;
}

.orange-stripe-header {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  border-bottom: 2px solid #fb923c;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.orange-stripe-header h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.zone2a-modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0f131c;
}

/* --- ZONE 2A PIPELINE QUEUE & TELEMETRY MONITOR --- */
.zone2a-pipeline-monitor {
  background: linear-gradient(135deg, rgba(20, 26, 38, 0.95) 0%, rgba(15, 19, 28, 0.95) 100%);
  border: 1px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(251, 146, 60, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.monitor-chips-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.monitor-chip {
  background: rgba(24, 32, 48, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 130px;
}

.chip-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #94a3b8;
  text-transform: uppercase;
}

.chip-value-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip-val {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.process-chip .chip-val {
  color: #fb923c;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.timer-chip .chip-val {
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.timer-val.active-timer {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

.timer-val.idle-timer {
  color: #fed7aa;
}

.chip-sub {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 600;
}

.agent-chip {
  flex: 1;
  min-width: 180px;
}

.agent-chip-avatar {
  font-size: 18px;
}

.agent-chip-meta {
  display: flex;
  flex-direction: column;
}

.agent-chip-name {
  font-size: 12px;
  font-weight: 800;
  color: #fed7aa;
}

.agent-chip-role {
  font-size: 10px;
  color: #94a3b8;
}

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

.zone2a-monitor-btn {
  background: #ea580c;
  color: #fff;
  border: 1px solid #f97316;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.zone2a-monitor-btn:hover {
  background: #c2410c;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.4);
}

.zone2a-monitor-btn.btn-pause {
  background: #334155;
  border-color: #64748b;
  color: #f1f5f9;
}

.zone2a-monitor-btn.btn-pause:hover {
  background: #475569;
}

.zone2a-monitor-btn.btn-reset {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

.zone2a-monitor-btn.btn-reset:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.monitor-progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.monitor-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.monitor-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea580c, #fb923c);
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

.monitor-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #94a3b8;
}

.player-queue-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
}

.player-queue-badge.active {
  background: rgba(234, 88, 12, 0.25);
  border: 1px solid #ea580c;
  color: #fb923c;
}

.player-queue-badge.done {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #4ade80;
}

.queue-processing-row {
  background: rgba(234, 88, 12, 0.14) !important;
  border-left: 3px solid #f97316;
}

.zone2a-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0 !important;
  min-height: 48px;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.zone2a-nav-tabs::-webkit-scrollbar {
  height: 4px;
}

.zone2a-nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(234, 88, 12, 0.4);
  border-radius: 4px;
}

.zone2a-tab-btn {
  flex-shrink: 0 !important;
  background: #182030;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
  min-height: 36px;
}

.zone2a-tab-btn:hover {
  background: #243048;
  color: #fff;
  border-color: #f97316;
}

.zone2a-tab-btn.active {
  background: rgba(234, 88, 12, 0.2);
  border-color: #f97316;
  color: #fb923c;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
}

/* Station 1 Styles */
.zone2a-control-card {
  background: #141a26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zone2a-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.badge-team {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid #22c55e;
}

.badge-indiv {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid #0284c7;
}

.zone2a-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zone2a-meta-chip {
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.zone2a-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.zone2a-select {
  flex: 1;
  min-width: 240px;
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.zone2a-btn-primary {
  background: #ea580c;
  border: 1px solid #f97316;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zone2a-btn-primary:hover {
  background: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

.zone2a-table-container {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #0d121c;
}

.zone2a-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 11.5px;
  text-align: left;
}

.zone2a-table th {
  background: #182030;
  color: #94a3b8;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.zone2a-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.zone2a-player-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.zone2a-player-row:hover {
  background: rgba(234, 88, 12, 0.1);
}

.zone2a-player-row.selected {
  background: rgba(234, 88, 12, 0.22);
  border-left: 3px solid #f97316;
}

.player-spelling {
  font-weight: 800;
  color: #fff;
  display: block;
}

.player-team-sub {
  font-size: 10px;
  color: #94a3b8;
}

.zone2a-source-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.zone2a-source-link:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

.btn-select-player {
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid #f97316;
  color: #fb923c;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-select-player:hover {
  background: #ea580c;
  color: #fff;
}

/* Station 2: Facial Biometrics Layout */
.zone2a-s2-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}

@media (max-width: 700px) {
  .zone2a-s2-layout {
    grid-template-columns: 1fr;
  }
}

.zone2a-scanner-box {
  background: #090c13;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 0 16px rgba(234, 88, 12, 0.1);
}

#zone2a-scanner-canvas {
  width: 100%;
  max-width: 260px;
  height: 220px;
  background: #05070a;
  border-radius: 6px;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.scanner-legend {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  font-size: 9.5px;
  color: #94a3b8;
}

.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 3px;
}

.zone2a-biometric-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zone2a-likeness-meter-box {
  background: #141a26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.likeness-meter-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.likeness-score-val {
  font-size: 15px;
  font-weight: 900;
  color: #4ade80;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.zone2a-feature-box {
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: #cbd5e1;
}

.zone2a-feature-box strong {
  color: #fb923c;
  display: block;
  margin-bottom: 2px;
}

.zone2a-prompt-box {
  background: #07090e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px;
  font-family: monospace;
  font-size: 10.5px;
  color: #38bdf8;
  line-height: 1.4;
  word-break: break-all;
}

.btn-handoff-zone3 {
  background: linear-gradient(135deg, #7e22ce 0%, #ea580c 100%);
  border: 1px solid #c084fc;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(126, 34, 206, 0.4);
}

.btn-handoff-zone3:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
}

/* 10 Agent Rule Cards */
.zone2a-agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 10px;
}

.zone2a-agent-rule-card {
  background: #141a26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease;
}

.zone2a-agent-rule-card:hover {
  border-color: #f97316;
}

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

.agent-rule-id .id-tag {
  background: rgba(234, 88, 12, 0.2);
  color: #fb923c;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.agent-rule-id .station-tag {
  font-size: 9.5px;
  color: #94a3b8;
  margin-left: 6px;
}

.agent-rule-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-rule-title .agent-avatar {
  font-size: 16px;
}

.agent-rule-title strong {
  font-size: 12px;
  color: #fff;
  display: block;
}

.agent-rule-title .role-desc {
  font-size: 10px;
  color: #cbd5e1;
}

.agent-custom-rules-box {
  background: #090c13;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-custom-rules-box strong {
  color: #fb923c;
}

/* Source Explorer Cards */
.zone2a-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.zone2a-source-card {
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.source-card-header strong {
  font-size: 11px;
  color: #38bdf8;
}

.source-sport-tag {
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
  color: #94a3b8;
}

.source-pattern code {
  font-size: 9.5px;
  color: #cbd5e1;
  word-break: break-all;
}

.source-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #64748b;
  margin-top: 2px;
}

.pulse-dot-mini.orange {
  background: #f97316;
  box-shadow: 0 0 6px #f97316;
}

.pulse-dot-mini.indigo {
  background: #818cf8;
  box-shadow: 0 0 6px #818cf8;
}

/* ==========================================================================
   ZONE 3A // STYLE STUDIO, PROMPT SHAPER & DEMO SANDBOX
   ========================================================================== */

/* Top HUD Pill for Zone 3a */
.zone3a-live-ticker {
  position: absolute;
  top: 10px;
  left: 600px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 10px rgba(99, 102, 241, 0.15);
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 100;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  user-select: none;
}

.zone3a-live-ticker:hover {
  border-color: #818cf8;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.zone3a-ticker-badge {
  font-size: 10px;
  font-weight: 800;
  color: #818cf8;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
}

.zone3a-ticker-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.zone3a-ticker-process {
  color: #e2e8f0;
  font-weight: 700;
}

.zone3a-ticker-sep {
  color: #64748b;
}

.zone3a-ticker-timer {
  color: #a5b4fc;
  font-family: monospace;
  font-weight: 700;
}

.zone3a-ticker-action {
  font-size: 10px;
  color: #6366f1;
  font-weight: 800;
  margin-left: 2px;
}

/* Zone 3a Modal Window */
.zone3a-window {
  width: 94vw;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #0b0f19;
  border: 2px solid #6366f1;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 28px rgba(99, 102, 241, 0.35);
  border-radius: 8px;
  overflow: hidden;
}

.indigo-stripe-header {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #fff;
  border-bottom: 2px solid #818cf8;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.indigo-stripe-header h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.zone3a-modal-body {
  padding: 12px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0b0f19;
}

/* Zone 3a Ingested Athlete Banner */
.zone3a-athlete-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
}

.zone3a-athlete-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.athlete-badge-icon {
  font-size: 22px;
}

.athlete-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.athlete-id-row strong {
  font-size: 14px;
  color: #fff;
}

.player-num-pill {
  font-size: 10.5px;
  font-weight: 800;
  background: #6366f1;
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
}

.team-pill {
  font-size: 10.5px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.athlete-role-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
}

.zone3a-biometric-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.biometric-tag-item {
  display: flex;
  flex-direction: column;
}

.tag-title {
  font-size: 9px;
  font-weight: 700;
  color: #818cf8;
  letter-spacing: 0.5px;
}

.tag-val {
  font-size: 11px;
  color: #e2e8f0;
}

.likeness-highlight {
  color: #22c55e;
  font-weight: 800;
}

/* Zone 3a 2-Column Studio Layout */
.zone3a-studio-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
}

@media (max-width: 820px) {
  .zone3a-studio-layout {
    grid-template-columns: 1fr;
  }
}

.zone3a-left-pane,
.zone3a-right-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #f1f5f9;
}

.active-styles-badge {
  font-size: 10px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.btn-zone3a-action-mini {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-zone3a-action-mini:hover {
  background: #6366f1;
  color: #fff;
  border-color: #818cf8;
}

/* Style Deck Grid & Chips */
.style-deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.style-chip {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.style-chip:hover {
  border-color: var(--style-color, #818cf8);
  background: rgba(30, 27, 75, 0.5);
  transform: translateY(-1px);
}

.style-chip.active {
  border-color: var(--style-color, #818cf8);
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.style-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.style-chip-icon {
  font-size: 14px;
}

.style-chip-toggle {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.style-chip.active .style-chip-toggle {
  background: #22c55e;
  color: #052e16;
}

.style-chip-title {
  font-size: 11px;
  color: #fff;
  line-height: 1.2;
}

.style-chip-desc {
  font-size: 9.5px;
  color: #94a3b8;
  line-height: 1.3;
  margin: 0;
}

/* Prompt Shaper Section */
.prompt-shaper-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px;
}

.shaper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.shaper-hint {
  font-size: 9.5px;
  color: #64748b;
}

.zone3a-prompt-box {
  background: #050811;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 4px;
  padding: 6px 8px;
  font-family: monospace;
  font-size: 10px;
  color: #a5b4fc;
  line-height: 1.4;
  word-break: break-word;
  max-height: 70px;
  overflow-y: auto;
}

.zone3a-prompt-box.neg-box {
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
  max-height: 50px;
}

/* Right Pane: Demo Sandbox */
.ping-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-family: monospace;
}

.ping-pill.in-flight {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.zone3a-demo-stage {
  background: #050811;
  border: 1.5px dashed rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  padding: 10px;
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-placeholder {
  text-align: center;
  color: #64748b;
  padding: 20px;
}

.demo-placeholder-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 6px;
  opacity: 0.6;
}

.demo-placeholder p {
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}

.demo-render-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.demo-art-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-render-meta {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.demo-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

.demo-meta-row .meta-label {
  color: #94a3b8;
}

.demo-meta-row .meta-value {
  color: #f1f5f9;
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Zone 3a Action Bar */
.zone3a-action-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-zone3a-demo {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #fff;
  border: 1px solid #818cf8;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-zone3a-demo:hover {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.btn-zone3a-approve {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: #fff;
  border: 1px solid #c084fc;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.btn-zone3a-approve:hover {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}

/* Zone 3a 3 Autonomous Agents Bar */
.zone3a-agents-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
}

@media (max-width: 680px) {
  .zone3a-agents-bar {
    grid-template-columns: 1fr;
  }
}

.zone3a-agent-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zone3a-agent-pill div {
  display: flex;
  flex-direction: column;
}

.zone3a-agent-pill strong {
  font-size: 10px;
  color: #e2e8f0;
}

.zone3a-agent-pill span {
  font-size: 9px;
  color: #818cf8;
}

/* ==========================================================================
   Zone 1b // Telecommunications & Live Audio Station Styles
   ========================================================================== */

.zone1b-window {
  width: 92vw;
  max-width: 980px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #081b24;
  border: 2px solid #0891b2;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(6, 182, 212, 0.25);
  color: #e2e8f0;
  overflow: hidden;
}

.cyan-stripe-header {
  background: linear-gradient(135deg, #083344 0%, #0e7490 100%);
  border-bottom: 2px solid #06b6d4;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zone1b-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zone1b-match-banner {
  background: rgba(8, 51, 68, 0.5);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.zone1b-match-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zone1b-badge-icon {
  font-size: 26px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid #06b6d4;
  border-radius: 8px;
  padding: 4px 8px;
}

.zone1b-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zone1b-title-row strong {
  font-size: 15px;
  color: #ffffff;
}

.status-pill-cyan {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
  border: 1px solid #06b6d4;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.zone1b-venue-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.zone1b-signal-summary {
  display: flex;
  gap: 16px;
}

.signal-tag-item {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.signal-tag-item .tag-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #67e8f9;
}

.signal-highlight {
  font-size: 11.5px;
  font-weight: 800;
  color: #22d3ee;
}

.zone1b-audio-deck {
  background: #04121a;
  border: 1px solid #0e7490;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tuner-display {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tuner-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.wave-bar {
  width: 4px;
  background: #06b6d4;
  border-radius: 2px;
  animation: wavePulse 1.2s infinite ease-in-out;
}

.wave-bar:nth-child(1) { height: 12px; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 22px; animation-delay: 0.3s; }
.wave-bar:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 24px; animation-delay: 0.4s; }
.wave-bar:nth-child(5) { height: 14px; animation-delay: 0.15s; }
.wave-bar:nth-child(6) { height: 19px; animation-delay: 0.35s; }

@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

.tuner-meta {
  display: flex;
  flex-direction: column;
}

.tuner-label {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
}

.tuner-station {
  font-size: 13px;
  color: #38bdf8;
}

.tuner-freq {
  font-size: 11px;
  color: #22d3ee;
  font-family: monospace;
}

.btn-zone1b-audio-toggle {
  background: #0891b2;
  color: #ffffff;
  border: 1px solid #06b6d4;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-zone1b-audio-toggle:hover {
  background: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.btn-zone1b-audio-toggle.playing {
  background: #e11d48;
  border-color: #f43f5e;
}

.zone1b-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.z1b-tab-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(14, 116, 144, 0.4);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.z1b-tab-btn:hover {
  background: rgba(8, 51, 68, 0.9);
  color: #e2e8f0;
}

.z1b-tab-btn.active {
  background: #0891b2;
  border-color: #06b6d4;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.zone1b-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.z1b-channel-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(14, 116, 144, 0.35);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.z1b-channel-card:hover {
  border-color: #06b6d4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.z1b-channel-card.selected {
  border-color: #22d3ee;
  background: rgba(8, 51, 68, 0.7);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.z1b-channel-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.z1b-channel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.z1b-channel-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.z1b-frequency-pill {
  font-size: 10px;
  font-family: monospace;
  color: #a5f3fc;
}

.z1b-channel-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.z1b-channel-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

.z1b-channel-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(4, 18, 26, 0.6);
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid rgba(14, 116, 144, 0.2);
}

.z1b-meta-col {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
}

.z1b-meta-label {
  color: #64748b;
}

.z1b-meta-val {
  color: #cbd5e1;
  font-weight: 600;
}

.z1b-meta-val.highlight {
  color: #38bdf8;
}

.z1b-channel-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.btn-z1b-tune {
  flex: 1;
  background: rgba(14, 116, 144, 0.25);
  border: 1px solid #0e7490;
  color: #67e8f9;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-z1b-tune:hover {
  background: #0891b2;
  color: #ffffff;
}

.btn-z1b-tune.active-tuned {
  background: #06b6d4;
  color: #04121a;
  border-color: #22d3ee;
}

.btn-z1b-open-stream {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(14, 116, 144, 0.4);
  color: #94a3b8;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-z1b-open-stream:hover {
  color: #ffffff;
  border-color: #06b6d4;
}

.zone1b-protocol-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(6, 182, 212, 0.05);
  border: 1px dashed rgba(6, 182, 212, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
}

.protocol-card {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

.protocol-card strong {
  color: #38bdf8;
  display: block;
  margin-bottom: 2px;
}

/* ==========================================================================
   SETTINGS MODAL & ROOM EDITOR TOOLBAR
   ========================================================================== */

/* Settings Window Content */
.settings-window {
  width: min(480px, 94vw);
  background: #0f141f;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.15);
}

.settings-content {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: 75vh;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
}

/* High-Impact Editor Card inside Settings */
.settings-card.editor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.12);
}

.settings-card.editor-card:hover {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.9) 0%, rgba(15, 23, 42, 1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.settings-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-card-info {
  flex: 1;
}

.settings-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-card-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.settings-card-badge {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.settings-row-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.settings-btn.danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.settings-btn.danger:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
}

/* Floating Room Editor Toolbar */
.room-editor-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(13, 17, 26, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  padding: 10px 16px 14px;
  gap: 10px;
  animation: slideUpToolbar 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-editor-toolbar.visible {
  display: flex;
}

@keyframes slideUpToolbar {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.editor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 8px;
  border-radius: 12px;
}

.editor-hint {
  font-size: 12px;
  color: #cbd5e1;
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-hint strong {
  color: #38bdf8;
}

.editor-btn-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.editor-btn-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
}

.editor-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-tools-grid {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
}

.editor-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.editor-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.editor-tool-btn.active {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.editor-tool-btn.erase-tool.active {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.tool-icon {
  font-size: 15px;
}

.tool-label {
  font-size: 12px;
}

.editor-palette-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.palette-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.editor-color-palette {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.color-swatch:hover {
  transform: scale(1.15);
  border-color: #ffffff;
}

.color-swatch.active {
  transform: scale(1.25);
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

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

.editor-action-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.editor-action-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

/* Floating Toast Notifications */
.editor-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  white-space: nowrap;
}

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

.editor-toast.warn {
  border-color: rgba(245, 158, 11, 0.6);
  color: #fde68a;
}



