/* Dashboard Visualizer Modal V2
   Comprehensive shareable visualization with grid layout
   Matches dashboard-viz-v2.html design */

/* ==============================================
   CSS VARIABLES
   ============================================== */
:root {
  --dviz-bg-dark: #1a2a2e;
  --dviz-bg-panel: #243438;
  --dviz-bg-header: #2d4045;
  --dviz-green-hit: #2dd4bf;
  --dviz-green-light: #5eead4;
  --dviz-red-miss: #f87171;
  --dviz-beige: #94a3b8;
  --dviz-beige-dark: #64748b;
  --dviz-text-white: #ffffff;
  --dviz-text-gray: #94a3b8;
  --dviz-border-dark: #3d5359;
  --dviz-accent-teal: #14b8a6;
  --dviz-accent-dark: #0d9488;
}

/* ==============================================
   MODAL BACKDROP & CONTAINER
   ============================================== */
.dashboard-visualizer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: block;
  padding: 100px 20px 60px 20px;
  animation: dvizFadeIn 0.2s ease;
  overflow-y: auto;
}

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

.dashboard-visualizer-container {
  position: relative;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  margin-bottom: auto;
  animation: dvizSlideIn 0.25s ease;
}

.dashboard-visualizer-container.dviz-v2 {
  max-width: 1200px;
}

@keyframes dvizSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close Button */
.dviz-close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.dviz-close-btn:hover {
  background: #334155;
  color: #fff;
  transform: scale(1.05);
}

/* Body scroll lock */
body.dviz-modal-open {
  overflow: hidden;
}

/* Loading State */
.dviz-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 20px;
}

.dviz-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(20, 184, 166, 0.2);
  border-top-color: #14b8a6;
  border-radius: 50%;
  animation: dvizSpin 1s linear infinite;
}

.dviz-loading-text {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

/* ==============================================
   V2 GRID LAYOUT
   ============================================== */
.dviz-canvas.dviz-grid {
  display: grid;
  grid-template-columns: 340px 1fr 305px;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  background: #0f1c1e;
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
  font-family: 'Roboto', 'Inter', system-ui, sans-serif;
}

/* ==============================================
   PLAYER HEADER
   ============================================== */
.dviz-player-header {
  grid-column: 1;
  grid-row: 1;
  background: var(--dviz-bg-dark);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 4px;
}

.dviz-player-image {
  width: 70px;
  height: 88px;
  background: linear-gradient(135deg, #555 0%, #333 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dviz-text-gray);
  font-size: 10px;
  text-align: center;
  overflow: hidden;
}

.dviz-player-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dviz-player-image span {
  font-size: 18px;
  font-weight: bold;
  color: var(--dviz-text-gray);
}

.dviz-player-info h1.dviz-player-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--dviz-green-light);
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.dviz-team-name {
  font-size: 13px;
  color: var(--dviz-text-white);
  margin-bottom: 4px;
}

.dviz-game-info {
  font-size: 12px;
  color: var(--dviz-text-gray);
}

.dviz-opponent {
  margin-bottom: 2px;
  color: var(--dviz-text-white);
}

.dviz-game-time {
  color: var(--dviz-text-gray);
}

/* ==============================================
   PROP DISPLAY
   ============================================== */
.dviz-prop-display {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  gap: 12px;
}

.dviz-prop-box {
  background: var(--dviz-bg-header);
  padding: 16px 32px;
  text-align: center;
  border-radius: 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dviz-prop-label {
  font-size: 13px;
  color: var(--dviz-text-gray);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dviz-prop-value {
  font-size: 42px;
  font-weight: 900;
  color: var(--dviz-text-white);
  line-height: 1;
}

.dviz-prop-stat {
  font-size: 16px;
  font-weight: 700;
  color: var(--dviz-text-white);
  margin-top: 6px;
}

/* Sportsbook Box */
.dviz-sportsbook-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dviz-sportsbook-logo {
  width: 44px;
  height: 44px;
  background: #1a9cff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 6px auto;
  overflow: hidden;
}

.dviz-sportsbook-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dviz-sportsbook-name {
  font-size: 13px;
  color: var(--dviz-text-gray);
  margin-bottom: 4px;
  text-align: center;
}

.dviz-sportsbook-odds {
  font-size: 28px;
  font-weight: 800;
  color: var(--dviz-green-hit);
  text-align: center;
}

/* ==============================================
   DEFENSIVE MATCHUP
   ============================================== */
.dviz-defensive-matchup {
  grid-column: 3;
  grid-row: 1 / 3;
  background: var(--dviz-bg-panel);
  border-radius: 4px;
  overflow: hidden;
}

.dviz-matchup-header {
  background: var(--dviz-bg-header);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.dviz-matchup-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.dviz-matchup-team-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dviz-text-white);
  margin: 0 0 2px 0;
}

.dviz-matchup-stat {
  font-size: 13px;
  color: var(--dviz-text-gray);
}

.dviz-matchup-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--dviz-green-hit);
  margin-top: 2px;
}

.dviz-gauge-container {
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* Gauge */
.dviz-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dviz-gauge-circle {
  width: 170px;
  height: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(#14b8a6 0deg, #14b8a6 var(--angle, 180deg), #1a2a2e var(--angle, 180deg), #1a2a2e 360deg);
}

.dviz-gauge-inner {
  width: 135px;
  height: 135px;
  background: var(--dviz-bg-panel);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}

.dviz-gauge-stat {
  font-size: 16px;
  font-weight: 700;
  color: var(--dviz-green-hit);
  margin-bottom: 2px;
}

.dviz-gauge-sublabel {
  font-size: 10px;
  color: var(--dviz-text-gray);
  margin-bottom: 2px;
}

.dviz-gauge-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--dviz-text-white);
  line-height: 1;
}

.dviz-gauge-total {
  font-size: 10px;
  color: var(--dviz-text-gray);
  margin-top: 2px;
}

.dviz-gauge-desc {
  font-size: 10px;
  color: var(--dviz-text-gray);
  max-width: 100px;
  line-height: 1.3;
}

.dviz-gauge-stat-value {
  font-size: 11px;
  color: var(--dviz-green-hit);
  font-weight: 600;
  margin-top: 2px;
}

.dviz-gauge-quality {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--dviz-bg-header);
}

/* Gauge quality classes */
.dviz-gauge.dviz-gauge-good .dviz-gauge-circle {
  background: conic-gradient(#22c55e 0deg, #22c55e var(--angle, 180deg), #1a2a2e var(--angle, 180deg), #1a2a2e 360deg);
}

.dviz-gauge.dviz-gauge-good .dviz-gauge-quality {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
}

.dviz-gauge.dviz-gauge-avg .dviz-gauge-circle {
  background: conic-gradient(#fbbf24 0deg, #fbbf24 var(--angle, 180deg), #1a2a2e var(--angle, 180deg), #1a2a2e 360deg);
}

.dviz-gauge.dviz-gauge-avg .dviz-gauge-quality {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

.dviz-gauge.dviz-gauge-bad .dviz-gauge-circle {
  background: conic-gradient(#ef4444 0deg, #ef4444 var(--angle, 180deg), #1a2a2e var(--angle, 180deg), #1a2a2e 360deg);
}

.dviz-gauge.dviz-gauge-bad .dviz-gauge-quality {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

/* ==============================================
   HORIZONTAL BAR GAUGE (New Design)
   ============================================== */
.dviz-def-bar-gauge {
  width: 100%;
  max-width: 280px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dviz-def-bar-stat {
  font-size: 18px;
  font-weight: 700;
  color: var(--dviz-green-hit);
  margin-bottom: 2px;
}

.dviz-def-bar-subtitle {
  font-size: 11px;
  color: var(--dviz-text-gray);
  margin-bottom: 12px;
}

.dviz-def-bar-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--dviz-text-gray);
}

.dviz-def-bar-label-best {
  color: #4ade80;
}

.dviz-def-bar-label-worst {
  color: #f87171;
}

.dviz-def-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right,
    #22c55e 0%,
    #4ade80 15%,
    #a3e635 30%,
    #facc15 45%,
    #fb923c 60%,
    #f87171 80%,
    #ef4444 100%
  );
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dviz-def-bar-indicator {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.3);
  transition: left 0.3s ease;
}

.dviz-def-bar-rank {
  font-size: 22px;
  font-weight: 700;
  color: var(--dviz-text-white);
  margin-top: 14px;
  line-height: 1;
}

.dviz-def-bar-quality {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 4px;
  background: var(--dviz-bg-header);
}

.dviz-def-bar-quality.good {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
}

.dviz-def-bar-quality.avg {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

.dviz-def-bar-quality.bad {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

/* ==============================================
   SEASON GAME LOG
   ============================================== */
.dviz-season-log {
  grid-column: 1;
  grid-row: 2 / 4;
  background: var(--dviz-bg-panel);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dviz-panel-header {
  background: var(--dviz-accent-dark);
  padding: 10px 12px;
  text-align: center;
}

.dviz-panel-header h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: var(--dviz-text-white);
}

.dviz-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.dviz-green-header {
  background: var(--dviz-accent-dark);
}

.dviz-stats-row {
  display: flex;
  background: var(--dviz-bg-header);
}

.dviz-stat-box {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-right: 1px solid var(--dviz-border-dark);
}

.dviz-stat-box:last-child {
  border-right: none;
}

.dviz-stat-label {
  font-size: 11px;
  color: var(--dviz-text-gray);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.dviz-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--dviz-green-hit);
}

.dviz-game-list {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Game Row */
.dviz-game-row {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  flex: 1;
  min-height: 36px;
}

.dviz-game-date {
  width: 50px;
  color: var(--dviz-text-gray);
  font-size: 11px;
}

.dviz-game-opponent {
  width: 75px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--dviz-text-white);
}

/* Mini logo as image */
img.dviz-mini-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Fallback badge (shown if image fails) */
.dviz-mini-logo-fallback {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dviz-text-white);
  font-weight: bold;
  flex-shrink: 0;
}

.dviz-game-bar-container {
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  position: relative;
}

.dviz-game-bar {
  height: 100%;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 11px;
  font-weight: 600;
  min-width: 50px;
  color: #000000;
}

.dviz-game-bar.hit {
  background: var(--dviz-green-hit);
}

.dviz-game-bar.miss {
  background: var(--dviz-red-miss);
}

/* ==============================================
   SPLIT GAMES (HOME/AWAY)
   ============================================== */
.dviz-split-games {
  grid-column: 2;
  grid-row: 2;
  background: var(--dviz-bg-panel);
  border-radius: 4px;
  overflow: hidden;
}

.dviz-chart-container {
  padding: 16px;
  height: 160px;
  position: relative;
}

.dviz-split-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 100%;
  position: relative;
}

.dviz-threshold-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px dashed rgba(255, 255, 255, 0.3);
}

.dviz-threshold-label {
  position: absolute;
  left: 0;
  font-size: 11px;
  color: var(--dviz-text-gray);
  transform: translateY(-50%);
  background: var(--dviz-bg-panel);
  padding: 0 4px;
}

.dviz-bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.dviz-vertical-bar {
  width: 28px;
  border-radius: 2px;
  transition: height 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #000000;
}

.dviz-vertical-bar.hit {
  background: var(--dviz-green-hit);
}

.dviz-vertical-bar.miss {
  background: var(--dviz-red-miss);
}

/* ==============================================
   LAST 5 GAMES
   ============================================== */
.dviz-last-games {
  grid-column: 2;
  grid-row: 3;
  background: var(--dviz-bg-panel);
  border-radius: 4px;
  overflow: hidden;
}

.dviz-last-games-chart {
  padding: 12px 16px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  min-height: 140px;
  position: relative;
}

.dviz-last-game-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dviz-last-game-bar {
  width: 48px;
  border-radius: 3px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #000000;
  min-height: 36px;
}

.dviz-last-game-bar.hit {
  background: var(--dviz-green-hit);
}

.dviz-last-game-bar.miss {
  background: var(--dviz-red-miss);
}

.dviz-last-game-label {
  font-size: 10px;
  color: var(--dviz-text-gray);
  text-align: center;
  line-height: 1.3;
}

.dviz-last-game-label span {
  font-size: 9px;
  opacity: 0.7;
}

/* ==============================================
   ALTERNATIVE MARKETS
   ============================================== */
.dviz-alt-markets {
  grid-column: 3;
  grid-row: 3;
  background: var(--dviz-bg-panel);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dviz-alt-markets-list {
  padding: 10px;
  flex: 1;
}

.dviz-market-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 12px;
  background: var(--dviz-bg-header);
  border-radius: 4px;
  margin-bottom: 12px;
}

.dviz-market-row:last-child {
  margin-bottom: 0;
}

.dviz-market-name {
  font-size: 13px;
  color: var(--dviz-text-gray);
}

.dviz-market-line {
  font-size: 18px;
  font-weight: 700;
  color: var(--dviz-text-white);
}

.dviz-market-odds {
  font-size: 16px;
  font-weight: 700;
  color: var(--dviz-green-hit);
}

/* Clickable market rows */
.dviz-market-clickable {
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  border-radius: 6px;
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 8px;
  padding-right: 8px;
}

.dviz-market-clickable:hover {
  background-color: rgba(0, 211, 189, 0.1);
  transform: translateX(2px);
}

.dviz-market-clickable:active {
  background-color: rgba(0, 211, 189, 0.2);
}

.dviz-no-markets {
  padding: 20px;
  text-align: center;
  color: var(--dviz-text-gray);
  font-size: 13px;
}

.dviz-no-data {
  padding: 40px 20px;
  text-align: center;
  color: var(--dviz-text-gray);
  font-size: 13px;
}

.dviz-powered-by {
  text-align: center;
  padding: 12px;
  font-size: 11px;
  color: var(--dviz-text-gray);
  border-top: 1px solid var(--dviz-border-dark);
  margin-top: auto;
}

.dviz-powered-by a {
  color: var(--dviz-green-hit);
  text-decoration: none;
  font-weight: 600;
}

.dviz-powered-by a:hover {
  text-decoration: underline;
}

/* Prominent powered by (in Last 5 Games section) */
.dviz-powered-by-prominent {
  text-align: center;
  padding: 20px 12px;
  font-size: 18px;
  color: #fff;
  margin-top: 16px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.dviz-powered-by-prominent a {
  color: var(--dviz-green-hit);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

.dviz-powered-by-prominent a:hover {
  text-decoration: underline;
}

/* ==============================================
   SCROLLBAR STYLING
   ============================================== */
.dviz-game-list::-webkit-scrollbar {
  width: 6px;
}

.dviz-game-list::-webkit-scrollbar-track {
  background: var(--dviz-bg-dark);
}

.dviz-game-list::-webkit-scrollbar-thumb {
  background: var(--dviz-border-dark);
  border-radius: 3px;
}

/* ==============================================
   ACTIONS (Copy & Download Buttons)
   ============================================== */
.dviz-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.dviz-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(20, 184, 166, 0.05) 100%);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 10px;
  color: var(--dviz-accent-teal);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dviz-action-btn:hover {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25) 0%, rgba(20, 184, 166, 0.1) 100%);
  border-color: rgba(20, 184, 166, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.2);
}

.dviz-action-btn svg {
  flex-shrink: 0;
}

/* Copy/Download success states */
.dviz-action-btn.copied,
.dviz-action-btn.downloaded {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

/* Disabled/loading state */
.dviz-action-btn:disabled,
.dviz-action-btn.downloading,
.dviz-action-btn.copying {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading spinner */
.dviz-spinner {
  animation: dvizSpin 1s linear infinite;
}

@keyframes dvizSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==============================================
   TRIGGER BUTTON (in dashboard)
   ============================================== */
.dviz-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  color: #c084fc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dviz-trigger-btn:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.25);
  transform: translateY(-1px);
}

.dviz-trigger-btn svg {
  flex-shrink: 0;
}

/* ==============================================
   RESPONSIVE STYLES
   Keep same 3-column grid layout, just scale down sizes
   ============================================== */

/* Slightly smaller columns on medium screens */
@media (max-width: 1200px) {
  .dviz-canvas.dviz-grid {
    grid-template-columns: 290px 1fr 245px;
    gap: 8px;
  }

  .dviz-prop-value {
    font-size: 36px;
  }

  .dviz-gauge {
    width: 155px;
    height: 155px;
  }

  .dviz-gauge-circle {
    width: 155px;
    height: 155px;
  }

  .dviz-gauge-inner {
    width: 122px;
    height: 122px;
  }

  .dviz-gauge-stat {
    font-size: 14px;
  }

  .dviz-gauge-value {
    font-size: 24px;
  }

  .dviz-gauge-total {
    font-size: 9px;
  }
}

/* Scale down further for smaller screens but keep layout */
@media (max-width: 1000px) {
  .dashboard-visualizer-backdrop {
    padding: 200px 10px 40px 10px;
  }

  .dviz-canvas.dviz-grid {
    grid-template-columns: 290px 1fr 260px;
    gap: 8px;
    padding: 10px;
  }

  .dviz-player-header {
    padding: 14px;
    gap: 14px;
    align-items: center;
  }

  .dviz-player-image {
    width: 60px;
    height: 80px;
  }

  .dviz-player-info {
    justify-content: center;
  }

  .dviz-player-info h1.dviz-player-name {
    font-size: 20px;
    margin-bottom: 3px;
  }

  .dviz-team-name {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .dviz-game-info {
    font-size: 15px;
  }

  .dviz-opponent {
    font-size: 15px;
  }

  .dviz-game-time {
    font-size: 14px;
  }

  .dviz-prop-value {
    font-size: 32px;
  }

  .dviz-prop-stat {
    font-size: 14px;
  }

  .dviz-last-game-bar {
    width: 64px !important;
  }

  .dviz-gauge {
    width: 140px;
    height: 140px;
  }

  .dviz-gauge-circle {
    width: 140px;
    height: 140px;
    min-width: 140px;
    min-height: 140px;
    flex-shrink: 0;
  }

  .dviz-gauge-inner {
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
    flex-shrink: 0;
  }

  .dviz-gauge-stat {
    font-size: 13px;
  }

  .dviz-gauge-sublabel {
    font-size: 9px;
  }

  .dviz-gauge-value {
    font-size: 22px;
  }

  .dviz-gauge-total {
    font-size: 8px;
  }

  .dviz-gauge-label,
  .dviz-gauge-sublabel {
    font-size: 9px;
  }

  .dviz-gauge-stat-value {
    font-size: 10px;
  }

  .dviz-panel-header h2 {
    font-size: 14px;
  }

  .dviz-subtitle {
    font-size: 10px;
  }

  .dviz-stat-value {
    font-size: 18px;
  }

  .dviz-stat-label {
    font-size: 9px;
  }

  .dviz-game-row {
    padding: 4px 8px;
    font-size: 12px;
    min-height: 30px;
  }

  .dviz-game-date {
    width: 46px;
    font-size: 11px;
  }

  .dviz-game-opponent {
    width: 70px;
    font-size: 12px;
    gap: 4px;
  }

  img.dviz-mini-logo,
  .dviz-mini-logo-fallback {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .dviz-vertical-bar {
    width: 22px;
    font-size: 9px;
    padding-bottom: 2px;
  }

  .dviz-last-games-chart {
    padding: 8px;
    min-height: 100px;
  }

  .dviz-last-game-col {
    gap: 4px;
  }

  .dviz-last-game-bar {
    width: 32px;
    font-size: 10px;
    min-height: 25px;
  }

  .dviz-last-game-label {
    font-size: 8px;
  }

  .dviz-market-row {
    padding: 6px 8px;
  }

  .dviz-market-name {
    font-size: 11px;
  }

  .dviz-market-line {
    font-size: 14px;
  }

  .dviz-market-odds {
    font-size: 12px;
  }

  .dviz-close-btn {
    display: none;
  }

  .dviz-copy-btn {
    display: none;
  }

  .dviz-actions {
    margin-top: 12px;
    gap: 8px;
  }

  .dviz-action-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}
