/* iRotatio PWA - Tactical Dark Theme & Responsive Styles */

:root {
  --bg-main: #080c14;
  --bg-card: #101726;
  --bg-card-hover: #162035;
  --border-color: #1e2c44;
  --border-focus: #00f0ff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --cyan: #00f0ff;
  --green: #00ff88;
  --amber: #ffb800;
  --red: #ff3366;
  --purple: #b026ff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

#app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   TABLET ORIENTATION GUARD (Consiglio Landscape)
   ============================================================ */
.orientation-guard {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 9, 15, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.guard-card {
  background: #111a29;
  border: 1.5px solid var(--cyan);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.3);
  max-width: 480px;
  width: 100%;
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.guard-icon-anim {
  width: 80px;
  height: 80px;
  animation: rotatePrompt 2.5s infinite ease-in-out;
}

@keyframes rotatePrompt {
  0% { transform: rotate(0deg); }
  35% { transform: rotate(-90deg); }
  65% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

.guard-card h2 {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
}

.guard-card p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

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

/* ============================================================
   SCREEN 1: LANDING PAGE INTRODUTTIVA (Pre-Login)
   ============================================================ */
.landing-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 15%, #132238 0%, #070b12 75%);
  overflow-y: auto;
  padding: 24px 36px;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  flex-shrink: 0;
}

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

.landing-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1.1;
}

.landing-title span {
  color: var(--cyan);
}

.landing-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.landing-intro-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 0;
}

.intro-hero-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.intro-hero-text h2 {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.intro-hero-text p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

.features-presentation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background: var(--bg-card-hover);
}

.feature-icon {
  font-size: 32px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FOOTER LANDING PAGE (Google Login) */
.landing-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-box {
  background: #111a29;
  border: 1.5px solid #23344d;
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.auth-box-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.auth-info-text strong {
  font-size: 15px;
  color: #ffffff;
  display: block;
}

.auth-info-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.google-login-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #1f2937;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.google-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.google-login-btn:active {
  transform: scale(0.98);
}

.footer-meta {
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

/* ============================================================
   SCREEN 2: DASHBOARD / HUB (Post-Login)
   ============================================================ */
.dashboard-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, #152238 0%, #080c14 70%);
  overflow-y: auto;
  padding: 20px 32px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  flex-shrink: 0;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
}

.dash-title span {
  color: var(--cyan);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111a29;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 6px 14px 6px 8px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan);
  color: #0b111a;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.user-status {
  font-size: 10px;
  color: var(--green);
  font-weight: 700;
}

.dashboard-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 0;
  justify-content: center;
}

.dash-welcome h2 {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
}

.dash-welcome p {
  font-size: 13px;
  color: var(--text-muted);
}

.dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.action-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.action-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background: var(--bg-card-hover);
}

.action-card.primary {
  border-color: var(--cyan);
  background: linear-gradient(145deg, #122036 0%, #0d1726 100%);
}

.action-card .card-icon {
  font-size: 30px;
  line-height: 1;
}

.action-card h3 {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.action-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}

.card-btn {
  background: var(--cyan);
  color: #0b111a;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s ease;
}

.card-btn.secondary {
  background: #1c2a3f;
  color: var(--cyan);
  border: 1px solid var(--border-color);
}

.card-btn:hover {
  opacity: 0.9;
}

/* ============================================================
   SCREEN 3: SCOUT SCREEN & TOP BAR HUD
   ============================================================ */
.scout-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #101724 0%, #0c121d 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  height: 64px;
  flex-shrink: 0;
  z-index: 50;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 30px;
  height: 30px;
}

.brand-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.brand-title span {
  color: var(--cyan);
}

.match-status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

/* SCOREBOARD CENTER HUD */
.scoreboard-hud {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 4px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.team-score-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-score-block.home {
  color: var(--cyan);
}

.team-score-block.away {
  color: var(--amber);
}

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

.team-meta .team-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.team-meta .team-rot {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.team-meta .team-rot.serving {
  color: var(--green);
}

.team-pts {
  font-size: 26px;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
}

.set-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  padding: 0 10px;
}

.set-count {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-mono);
}

/* TOP CONTROLS */
.top-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-btn {
  background: #172133;
  color: #e2e8f0;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

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

.hud-btn.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan);
  color: var(--cyan);
}

.hud-btn.undo-btn {
  background: #2a1b24;
  border-color: #632238;
  color: #ff7597;
}

.hud-btn.undo-btn:hover {
  background: #3d1c2d;
  color: #ffffff;
}

.hud-btn.ghost-btn {
  border-color: var(--purple);
  color: #d8b4fe;
}

.hud-btn.freeball-btn {
  background: #112d26;
  border-color: #175e4c;
  color: var(--green);
}

/* MAIN VIEWPORT */
.main-viewport {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

.court-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #080c13;
}

/* TACTICAL TOAST */
.tactical-toast {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 22, 36, 0.94);
  border: 1px solid var(--cyan);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* HOTSPOT PULSE ANIMATION */
@keyframes hotspotPulse {
  0% { stroke-opacity: 0.4; fill-opacity: 0.18; }
  50% { stroke-opacity: 1; fill-opacity: 0.32; }
  100% { stroke-opacity: 0.4; fill-opacity: 0.18; }
}

.hotspot-rect-pulse {
  animation: hotspotPulse 1.8s infinite ease-in-out;
}

/* TOKEN PULSE ANIMATION */
@keyframes tokenPulse {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.4; }
}

.token-pulse {
  transform-origin: center;
  animation: tokenPulse 2s infinite ease-in-out;
}

/* RADIAL HALO */
.radial-halo {
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.halo-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 12, 0.6);
  backdrop-filter: blur(2px);
  z-index: 101;
}

.halo-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  z-index: 102;
}

.halo-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  margin-left: -28px;
  border-radius: 50%;
  background: #0f1826;
  border: 3px solid var(--cyan);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.1s ease;
  z-index: 103;
  padding: 0;
  user-select: none;
}

.halo-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
}

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

.halo-btn .btn-symbol {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-shadow: 0 0 8px currentColor;
}

.halo-center-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #162235;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 103;
}

.halo-center-pill:hover {
  color: #ffffff;
  border-color: #ff3366;
}

.halo-extra-bar {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 104;
  white-space: nowrap;
}

.halo-extra-controls {
  display: flex;
  gap: 8px;
  background: #0f1724;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.shot-toggle-group, .block-toggle-group {
  display: flex;
  gap: 4px;
}

.shot-toggle {
  background: #192538;
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.shot-toggle.active {
  background: var(--cyan);
  color: #0b111a;
  border-color: var(--cyan);
}

.extra-btn-block, .extra-btn-err {
  background: #231929;
  border: 1px solid #632238;
  color: #ff7597;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.extra-btn-block:hover, .extra-btn-err:hover {
  background: #ff3366;
  color: #ffffff;
}

/* GRID SIMPLE MODE */
.grid-simple-container {
  display: none;
  width: 100%;
  height: 100%;
  padding: 16px;
  flex-direction: column;
  gap: 14px;
  background: #090e17;
  overflow-y: auto;
}

.grid-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.grid-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.grid-player-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.grid-player-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.grid-player-card .p-num {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
}

.grid-player-card .p-role {
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan);
}

.grid-player-card .p-name {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.grid-zone-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.grid-zone-btn {
  background: #172233;
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.grid-zone-btn:hover {
  border-color: var(--cyan);
  background: #1e2d45;
}

/* MODAL DIALOGS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 9, 15, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-content {
  background: #101724;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
}

.modal-tab-btn.active {
  background: #1a2538;
  color: var(--cyan);
}

/* DATA VOLLEY TABLES */
.dv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dv-table th, .dv-table td {
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid #1a2536;
}

.dv-table th {
  background: #141d2d;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
}

.dv-table td.text-left {
  text-align: left;
}

.dv-table tr.total-row {
  background: #162235;
  font-weight: 900;
  color: #ffffff;
}

/* OPPONENT NUMPAD OVERLAY */
.numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 260px;
  margin: 16px auto;
}

.numpad-btn {
  background: #172233;
  border: 1px solid var(--border-color);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.numpad-btn:hover {
  border-color: var(--amber);
  background: #1f2e45;
}

/* TABLET LANDSCAPE MEDIA QUERIES */
@media (orientation: portrait) {
  #orientation-guard {
    display: flex !important;
  }
}

@media (max-width: 800px) {
  .brand-title {
    display: none;
  }
  .scoreboard-hud {
    padding: 4px 8px;
    gap: 10px;
  }
  .team-pts {
    font-size: 22px;
  }
  .top-bar {
    padding: 6px 8px;
  }
}

/* ============================================================
   COLLAPSIBLE DATA VOLLEY HISTORY SIDEBAR
   ============================================================ */
.dv-history-sidebar {
  width: 260px;
  background: #0b111a;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
  z-index: 45;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
}

.dv-history-sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  overflow: hidden;
  border-left: none;
  opacity: 0;
  pointer-events: none;
  padding: 0 !important;
  margin: 0 !important;
}

.dv-history-header {
  padding: 10px 14px;
  background: #111a28;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dv-history-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--cyan);
}

.dv-history-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  background: #192638;
  padding: 2px 8px;
  border-radius: 10px;
}

.dv-history-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.dv-history-close:hover {
  color: #ffffff;
}

.dv-history-feed {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dv-empty-msg {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 30px 10px;
  font-style: italic;
}

.dv-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #121b2a;
  border: 1px solid #1e2c40;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.dv-history-item:hover {
  background: #182438;
  border-color: var(--cyan);
  transform: translateX(-2px);
}

.dv-history-item.home-team {
  border-left: 3px solid var(--cyan);
}

.dv-history-item.away-team {
  border-left: 3px solid var(--amber);
}

.dv-item-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.dv-item-code .dv-team {
  font-weight: 900;
}
.dv-item-code .dv-team.home { color: var(--cyan); }
.dv-item-code .dv-team.away { color: var(--amber); }

.dv-item-code .dv-player { color: #ffffff; }

.dv-item-code .dv-skill-S { color: #00f0ff; }
.dv-item-code .dv-skill-R { color: #00ff88; }
.dv-item-code .dv-skill-A { color: #d8b4fe; }
.dv-item-code .dv-skill-B { color: #38bdf8; }
.dv-item-code .dv-skill-D { color: #fb923c; }
.dv-item-code .dv-skill-F { color: #2dd4bf; }

.dv-eval-pill {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.dv-eval-pill.eval-hash { background: #00ff88; color: #052e16; }
.dv-eval-pill.eval-plus { background: #84cc16; color: #14532d; }
.dv-eval-pill.eval-excl { background: #ffb800; color: #451a03; }
.dv-eval-pill.eval-minus { background: #f97316; color: #431407; }
.dv-eval-pill.eval-slash { background: #ec4899; color: #500724; }
.dv-eval-pill.eval-equal { background: #ef4444; color: #450a0a; }

.dv-history-footer {
  padding: 8px 12px;
  background: #0f1723;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.dv-hint {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* EDIT EVENT MODAL SPECIFICS */
.edit-code-preview {
  background: #0c121c;
  border: 1px dashed var(--cyan);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 1.5px;
}

.toggle-choice-btn {
  background: #141c2c;
  border: 1.5px solid var(--border-color);
  color: #cbd5e1;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.toggle-choice-btn.active {
  background: #1c2b42;
  border-color: var(--cyan);
  color: #ffffff;
}

.eval-choice-btn {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 0;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.eval-choice-btn:hover {
  transform: scale(1.05);
}

.eval-choice-btn.active {
  box-shadow: 0 0 12px currentColor;
  border-color: #ffffff;
}

.eval-choice-btn.eval-hash { background: #00ff88; color: #052e16; }
.eval-choice-btn.eval-plus { background: #84cc16; color: #14532d; }
.eval-choice-btn.eval-excl { background: #ffb800; color: #451a03; }
.eval-choice-btn.eval-minus { background: #f97316; color: #431407; }
.eval-choice-btn.eval-slash { background: #ec4899; color: #500724; }
.eval-choice-btn.eval-equal { background: #ef4444; color: #450a0a; }
