/* ============================================================================
   OPERATION: SCHWARZES BUCH — DER SNITCH-DIENST (3D-GAME STYLESHEET V2)
   Perfekt abgestimmt auf Bruderschaft.fun (Obsidian, Gold, Schärpen-Orange)
   ============================================================================ */

:root {
  --s3d-bg-dark: #07080c;
  --s3d-bg-panel: rgba(12, 14, 22, 0.92);
  --s3d-bg-glass: rgba(18, 22, 34, 0.82);
  --s3d-gold: #d4af37;
  --s3d-gold-bright: #ffd700;
  --s3d-orange: #ff6b00;
  --s3d-orange-glow: rgba(255, 107, 0, 0.55);
  --s3d-crimson: #ef4444;
  --s3d-crimson-dark: #991b1b;
  --s3d-green: #22c55e;
  --s3d-cyan: #38bdf8;
  --s3d-text: #f3f4f6;
  --s3d-muted: #9ca3af;
  --s3d-font-serif: 'Cinzel', Georgia, serif;
  --s3d-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#snitch-3d-game-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
  background: var(--s3d-bg-dark);
  overflow: hidden;
  user-select: none;
  font-family: var(--s3d-font-sans);
  color: var(--s3d-text);
}

#snitch-3d-game-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

/* ============================================================================
   1. HUD OVERLAY LAYER
   ============================================================================ */
.s3d-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 22px;
}

/* --- TOP BAR --- */
.s3d-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.s3d-left-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 320px;
}

/* Mission Banner (Kompakt oben links) */
.s3d-mission-box {
  background: linear-gradient(135deg, rgba(16, 20, 32, 0.9), rgba(10, 12, 18, 0.85));
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-left: 3px solid var(--s3d-orange);
  border-radius: 8px;
  padding: 6px 11px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.s3d-mission-phase {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--s3d-orange);
  font-weight: 800;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.s3d-mission-title {
  font-family: var(--s3d-font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.s3d-mission-sub {
  font-size: 0.68rem;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.25;
}

/* Quick Action Toolbar in HUD (Clickable!) */
.s3d-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.s3d-hud-btn {
  background: rgba(16, 20, 30, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--s3d-gold-bright);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.s3d-hud-btn:hover {
  background: linear-gradient(135deg, var(--s3d-gold), #b48608);
  color: #07080c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}

.s3d-hud-btn.s3d-hud-btn-orange {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.22), rgba(180, 60, 0, 0.25));
  border-color: var(--s3d-orange);
  color: #ff9e44;
}

.s3d-hud-btn.s3d-hud-btn-orange:hover {
  background: var(--s3d-orange);
  color: #fff;
}

/* --- TOP RIGHT: STATS + RADAR --- */
.s3d-right-column {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.s3d-stats-cluster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.s3d-stats-row {
  display: flex;
  gap: 10px;
}

.s3d-stat-pill {
  background: var(--s3d-bg-panel);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 115px;
  text-align: right;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.s3d-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--s3d-muted);
  display: block;
}

.s3d-stat-value {
  font-family: var(--s3d-font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--s3d-gold-bright);
}

.s3d-stat-pill.combo-active {
  border-color: var(--s3d-orange);
  box-shadow: 0 0 18px var(--s3d-orange-glow);
  animation: s3dPulse 0.9s infinite alternate;
}

.s3d-auto-pill {
  background: rgba(16, 26, 22, 0.92);
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.74rem;
  color: #86efac;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Radar / Minimap */
.s3d-radar-box {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 28, 38, 0.92) 0%, rgba(8, 12, 18, 0.96) 100%);
  border: 2px solid var(--s3d-gold);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.s3d-radar-box canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.s3d-radar-label {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--s3d-gold);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  padding: 1px 6px;
  border-radius: 4px;
}

@keyframes s3dPulse {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

/* ============================================================================
   2. CENTER CROSSHAIR, TARGET SCANNER & PROGRESS RING
   ============================================================================ */
.s3d-center-hud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.s3d-reticle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  position: relative;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}

.s3d-reticle-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff;
  transition: all 0.15s ease;
}

.s3d-reticle.locked-suspect {
  width: 66px;
  height: 66px;
  border-color: var(--s3d-gold-bright);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.45);
}

.s3d-reticle.locked-offender {
  width: 72px;
  height: 72px;
  border-color: var(--s3d-orange);
  box-shadow: 0 0 28px rgba(255, 107, 0, 0.7);
}

.s3d-reticle.locked-offender .s3d-reticle-dot {
  background: var(--s3d-orange);
  transform: scale(1.5);
}

/* Progress SVG Ring */
.s3d-progress-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 84px;
  height: 84px;
  transform: rotate(-90deg);
  opacity: 0;
  transition: opacity 0.15s;
}

.s3d-progress-ring.active {
  opacity: 1;
}

.s3d-progress-ring circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.s3d-progress-bg {
  stroke: rgba(255, 255, 255, 0.15);
}

.s3d-progress-bar {
  stroke: var(--s3d-orange);
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  filter: drop-shadow(0 0 6px var(--s3d-orange));
}

/* Target Inspection Card (Kompakt & dezent) */
.s3d-scanner-card {
  margin-top: 10px;
  background: rgba(11, 14, 22, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 210px;
  max-width: 260px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: all 0.15s ease;
  text-align: center;
  backdrop-filter: blur(6px);
}

.s3d-scanner-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.s3d-scanner-card.is-offender {
  border-color: var(--s3d-orange);
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.3);
}

.s3d-scanner-name {
  font-family: var(--s3d-font-serif);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--s3d-gold-bright);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.s3d-scanner-checklist {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 5px;
  font-size: 0.65rem;
}

.s3d-check-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px 6px;
  border-radius: 4px;
  color: #cbd5e1;
}

.s3d-check-item.warn {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fca5a5;
  font-weight: 700;
}

.s3d-check-item.ok {
  background: rgba(34, 197, 94, 0.18);
  border-color: #22c55e;
  color: #86efac;
}

.s3d-scanner-action {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.22), rgba(212, 175, 55, 0.22));
  border-radius: 4px;
  padding: 3px 8px;
}

/* Interactive Prompt Pill ([E] Interaktion) */
.s3d-interact-prompt {
  margin-top: 12px;
  background: rgba(12, 15, 24, 0.95);
  border: 2px solid var(--s3d-gold-bright);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.35);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.s3d-interact-prompt.visible {
  opacity: 1;
  transform: translateY(0);
}

.s3d-key-badge {
  display: inline-block;
  background: var(--s3d-gold-bright);
  color: #07080c;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 5px;
  margin-right: 6px;
  font-size: 0.78rem;
}

/* ============================================================================
   3. BOTTOM HUD: ORANGE SASH, CONTROLS & BLACK BOOK WIDGET
   ============================================================================ */
.s3d-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 12;
}

/* Fillmore! Orange Safety Sash */
.s3d-sash-overlay {
  position: absolute;
  bottom: -45px;
  left: -70px;
  width: 440px;
  height: 115px;
  background: linear-gradient(135deg, #ff8800 0%, #ff5100 55%, #c23b00 100%);
  transform: rotate(15deg) translateY(180px);
  box-shadow: 0 -8px 35px rgba(255, 107, 0, 0.65), inset 0 4px 12px rgba(255, 255, 255, 0.45);
  border-top: 5px solid #ffd000;
  border-bottom: 5px solid #ffd000;
  z-index: 8;
  transition: transform 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.s3d-sash-overlay.active {
  transform: rotate(15deg) translateY(0);
}

.s3d-sash-stripe {
  font-family: var(--s3d-font-serif);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: rgba(15, 10, 5, 0.85);
  text-transform: uppercase;
  background: rgba(255, 235, 160, 0.45);
  padding: 4px 28px;
  border-radius: 4px;
}

/* Controls Hint Box */
.s3d-controls-card {
  background: rgba(10, 13, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.74rem;
  color: var(--s3d-muted);
  line-height: 1.65;
  backdrop-filter: blur(8px);
  z-index: 15;
}

.s3d-controls-card b {
  color: var(--s3d-gold-bright);
}

/* Black Book HUD Card (Bottom Right) */
.s3d-book-widget {
  background: linear-gradient(145deg, #161822 0%, #090b10 100%);
  border: 2px solid var(--s3d-gold);
  border-radius: 14px;
  padding: 12px 18px;
  min-width: 245px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(212, 175, 55, 0.18);
  transform: translateY(150%);
  transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  pointer-events: auto;
}

.s3d-book-widget.active {
  transform: translateY(0);
}

.s3d-book-widget.writing {
  border-color: var(--s3d-orange);
  box-shadow: 0 12px 35px rgba(255, 107, 0, 0.45);
  transform: translateY(-6px) scale(1.03);
}

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

.s3d-book-title {
  font-family: var(--s3d-font-serif);
  font-size: 0.9rem;
  color: var(--s3d-gold-bright);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.s3d-book-count {
  font-family: var(--s3d-font-serif);
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
}

.s3d-book-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.s3d-book-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--s3d-orange), var(--s3d-gold-bright));
  transition: width 0.3s ease;
}

.s3d-book-last-entry {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-style: italic;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================================
   4. TOAST NOTIFICATIONS (KLEIN & GANZ OBEN)
   ============================================================================ */
.s3d-toast-area {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 35;
  pointer-events: none;
  max-width: 360px;
}

.s3d-toast {
  background: rgba(12, 15, 24, 0.92);
  border: 1px solid var(--s3d-gold);
  border-left: 3px solid var(--s3d-orange);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  max-width: 350px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  animation: s3dToastIn 0.18s ease forwards;
}

@keyframes s3dToastIn {
  from { opacity: 0; transform: translateY(-14px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================================
   5. START / PAUSE OVERLAY & MODALS
   ============================================================================ */
.s3d-overlay-screen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 18, 30, 0.84) 0%, rgba(5, 7, 12, 0.95) 100%);
  backdrop-filter: blur(8px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.s3d-overlay-screen.hidden {
  display: none;
}

.s3d-hero-card {
  background: linear-gradient(160deg, rgba(20, 24, 38, 0.96) 0%, rgba(10, 12, 20, 0.98) 100%);
  border: 2px solid var(--s3d-gold);
  border-radius: 18px;
  padding: 32px 38px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.2);
}

.s3d-badge-top {
  display: inline-block;
  background: rgba(255, 107, 0, 0.18);
  border: 1px solid var(--s3d-orange);
  color: #ff9e44;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.s3d-hero-title {
  font-family: var(--s3d-font-serif);
  font-size: 2.1rem;
  color: var(--s3d-gold-bright);
  margin: 0 0 10px;
  text-shadow: 0 4px 20px rgba(255, 215, 0, 0.35);
}

.s3d-hero-desc {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.s3d-violation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  text-align: left;
  margin-bottom: 24px;
}

.s3d-violation-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.s3d-violation-item strong {
  color: var(--s3d-gold-bright);
  display: block;
  margin-bottom: 2px;
}

.s3d-btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.s3d-btn-primary {
  background: linear-gradient(135deg, #ff7b00 0%, #e04800 100%);
  color: #fff;
  font-family: var(--s3d-font-serif);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 32px;
  border: 2px solid #ffd000;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.5);
  transition: all 0.2s ease;
}

.s3d-btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 35px rgba(255, 107, 0, 0.75);
}

.s3d-btn-secondary {
  background: rgba(212, 175, 55, 0.14);
  color: var(--s3d-gold-bright);
  font-family: var(--s3d-font-serif);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 22px;
  border: 1px solid var(--s3d-gold);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.s3d-btn-secondary:hover {
  background: var(--s3d-gold);
  color: #07080c;
}

/* ============================================================================
   6. UPGRADE & AUTOMATION MODAL + CHIEF CASH-IN MODAL
   ============================================================================ */
.s3d-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(10px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.s3d-modal-backdrop.active {
  display: flex;
}

.s3d-modal-card {
  background: linear-gradient(160deg, #151926 0%, #0b0d14 100%);
  border: 2px solid var(--s3d-gold);
  border-radius: 16px;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px 30px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);
  color: var(--s3d-text);
}

.s3d-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.s3d-modal-title {
  font-family: var(--s3d-font-serif);
  font-size: 1.5rem;
  color: var(--s3d-gold-bright);
  margin: 0;
}

.s3d-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

.s3d-close-btn:hover {
  background: var(--s3d-crimson);
  border-color: var(--s3d-crimson);
}

/* Stamp Cash-In List */
.s3d-stamp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  max-height: 240px;
  overflow-y: auto;
}

.s3d-stamp-row {
  background: #f5eedc;
  color: #1c1917;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 5px solid #1c1917;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: 600;
  font-size: 0.86rem;
}

.s3d-stamp-badge {
  position: absolute;
  right: 95px;
  border: 3px solid #dc2626;
  color: #dc2626;
  font-family: var(--s3d-font-serif);
  font-weight: 900;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  transform: rotate(-10deg) scale(2.2);
  opacity: 0;
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(255, 245, 245, 0.92);
}

.s3d-stamp-badge.stamped {
  transform: rotate(-10deg) scale(1);
  opacity: 1;
}

/* Upgrade & Automation Grid */
.s3d-section-label {
  font-family: var(--s3d-font-serif);
  font-size: 0.95rem;
  color: var(--s3d-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 16px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.s3d-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.s3d-upgrade-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.18s ease;
}

.s3d-upgrade-card:hover {
  border-color: var(--s3d-gold-bright);
  background: rgba(212, 175, 55, 0.07);
}

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

.s3d-upgrade-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.s3d-upgrade-lvl {
  background: rgba(212, 175, 55, 0.2);
  color: var(--s3d-gold-bright);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.s3d-upgrade-desc {
  font-size: 0.76rem;
  color: var(--s3d-muted);
  line-height: 1.4;
}

.s3d-buy-btn {
  background: linear-gradient(135deg, var(--s3d-gold), #b48608);
  color: #07080c;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
}

.s3d-buy-btn:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.s3d-buy-btn:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #6b7280;
  cursor: not-allowed;
}

/* ============================================================================
   7. INTRO VIDEO IFRAME OVERLAY (MIT SKIP-BUTTON)
   ============================================================================ */
.s3d-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.96);
  backdrop-filter: blur(12px);
  z-index: 60;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.s3d-video-overlay.active {
  display: flex;
}

.s3d-video-box {
  width: 100%;
  max-width: 860px;
  background: #0b0e17;
  border: 2px solid var(--s3d-gold);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 107, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.s3d-video-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(20, 24, 38, 0.98), rgba(12, 15, 24, 0.98));
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  gap: 12px;
  flex-wrap: wrap;
}

.s3d-video-title {
  font-family: var(--s3d-font-serif);
  color: var(--s3d-gold-bright);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.s3d-video-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.s3d-video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.s3d-video-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #0d101a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
  flex-wrap: wrap;
}

.s3d-skip-btn {
  background: linear-gradient(135deg, #ff7b00 0%, #e04800 100%);
  color: #fff;
  font-family: var(--s3d-font-serif);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 24px;
  border: 2px solid #ffd000;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.s3d-skip-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.75);
}

@media (max-width: 768px) {
  .s3d-violation-grid {
    grid-template-columns: 1fr;
  }
  .s3d-radar-box {
    width: 96px;
    height: 96px;
  }
}
