/* =============================================================================
   DASHBOARD PAGE STYLES - ParlayBuilder
   ============================================================================= */

/* Import parlay-specific styles (cards, legs, results, scoreboards, etc.) */
@import url('dashboard-parlays.css');

/* =============================================================================
   DASHBOARD ROOT & LAYOUT
   ============================================================================= */

/* Dashboard root container - hidden by default */
#dashboard-root {
  display: none;
  min-height: 100vh;
  background: var(--bg-base, #0a1628);
}

#dashboard-root:empty {
  display: none;
}

/* When dashboard is active, hide everything else and show dashboard */
body.dashboard-active #dashboard-root {
  display: block !important;
}

body.dashboard-active .navbar,
body.dashboard-active #cover-page,
body.dashboard-active .workbench-layout,
body.dashboard-active .sidebar,
body.dashboard-active #main-app-wrapper {
  display: none !important;
}

/* Show landing-nav on dashboard - fixed at top */
body.dashboard-active .landing-nav {
  display: block !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

/* Keep bottom nav visible on dashboard */
body.dashboard-active .pb-bottom-nav {
  display: flex !important;
}

body.dashboard-active {
  padding-bottom: calc(var(--pb-bottom-nav-height, 64px) + max(env(safe-area-inset-bottom), 12px));
}

.dashboard-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  padding-top: calc(70px + env(safe-area-inset-top, 0px) + 0px);
  padding-bottom: 100px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* =============================================================================
   LOADING, EMPTY, AND NOT LOGGED IN STATES
   ============================================================================= */

.dashboard-loading,
.dashboard-empty,
.dashboard-not-logged-in {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-60, #b4d7c4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dashboard-loading p {
  font-size: 15px;
}

.dashboard-loading i {
  font-size: 24px;
}

.dashboard-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--ink-40, #7a9f8c);
  margin-bottom: 8px;
}

.dashboard-empty h2,
.dashboard-not-logged-in h2 {
  margin: 0;
  font-size: 22px;
  color: var(--ink-100, #ffffff);
}

.dashboard-empty p,
.dashboard-not-logged-in p {
  margin: 0;
  color: var(--ink-50, #9ab8a8);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.dashboard-page .btn {
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-page .btn-primary {
  background: var(--theme-gradient-primary, linear-gradient(135deg, #00F5D4 0%, #00D3BD 50%, #00AD84 100%));
  color: #000;
}

.dashboard-page .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 211, 189, 0.3);
}

/* =============================================================================
   OVERVIEW CARDS (Quick Stats)
   ============================================================================= */

.dashboard-overview {
  margin-bottom: 18px;
}

.overview-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.overview-card {
  position: relative;
  background: #060e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  padding-left: 64px;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.overview-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.overview-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.overview-icon.profit {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.overview-icon.total {
  background: rgba(231, 76, 175, 0.15);
  color: #e74caf;
}

.overview-icon.legshit {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.overview-icon.weekly {
  background: rgba(230, 126, 34, 0.15);
  color: #e67e22;
}

.overview-icon.active {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
}

.overview-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-100, #ffffff);
  line-height: 1.2;
  margin-bottom: 2px;
}

.overview-value.positive {
  color: #2ecc71;
}

.overview-value.negative {
  color: #e74c3c;
}

.overview-label {
  font-size: 11px;
  color: var(--ink-50, #9ab8a8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================================================
   RANK OVERVIEW (above overview cards)
   ============================================================================= */

.dashboard-rank-overview {
  margin-bottom: 16px;
}

/* Compact tier title — shown in horizontal rank strip layout */

.dashboard-rank-overview:empty {
  display: none;
}

/* =============================================================================
   ANALYTICS SECTION
   ============================================================================= */

.dashboard-analytics {
  margin-bottom: 32px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.analytics-card {
  background: #060e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.analytics-card-wide {
  grid-column: span 2;
}

.analytics-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-80, #e8ffe9);
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analytics-card-title i {
  color: var(--theme-accent, #00D3BD);
  font-size: 16px;
}

/* Parlay Analytics Stats */
.analytics-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.analytics-stat {
  text-align: center;
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.analytics-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--theme-accent, #00D3BD);
  margin-bottom: 4px;
}

.analytics-stat-label {
  display: block;
  font-size: 11px;
  color: var(--ink-50, #9ab8a8);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* No data message */
.no-data {
  text-align: center;
  padding: 24px;
  color: var(--ink-50, #9ab8a8);
  font-size: 14px;
}

/* Section title */
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-100, #ffffff);
  margin: 0 0 20px 0;
}

/* Parlays section wrapper */
.dashboard-parlays-section {
  margin-top: 0;
}

/* =============================================================================
   TWO-COLUMN LAYOUT (Parlays + Analytics)
   ============================================================================= */

.dashboard-main-content {
  --col-header-overlap: 14px;   /* how far pill sits inside the first card */
  --col-header-lift: 0px;    /* extra space pushing cards below the pill */
  --col-header-shift: 0px;    /* translateY on the pill itself (negative = up) */
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* =============================================================================
   DESKTOP / MOBILE CONTENT VISIBILITY
   ============================================================================= */

/* Desktop duels column: hidden by default, shown on parlay tabs via body class */
.desktop-duels-column {
  display: none;
}

/* Column headers — pill chips on top border of first card, desktop only */
.dashboard-col-header {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 auto calc(-1 * var(--col-header-overlap));
  text-align: center;
  position: relative;
  z-index: 2;
  background: #0a1628;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 6px 22px;
  width: fit-content;
  transform: translateY(var(--col-header-shift));
}

.dashboard-col-header + .tab-parlays-content,
.dashboard-col-header + .tab-duels-content {
  padding-top: var(--col-header-lift);
}

/* Show overview cards on desktop (>1000px) — desktop gets different stat cards */
@media (min-width: 1001px) {
  #dashboard-overview {
    display: block;
    margin-bottom: 0;
  }
}

/* =============================================================================
   DESKTOP STAT CARDS (2x2 grid)
   ============================================================================= */

.desktop-stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.desktop-stat-card {
  background: #060e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease;
}

.desktop-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.desktop-stat-icon {
  font-size: 18px;
  color: var(--theme-accent, #00D3BD);
  margin-bottom: 8px;
}

.desktop-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.desktop-stat-label {
  font-size: 11px;
  color: var(--ink-50, #9ab8a8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================================================
   RR MOVEMENT CHART CARD
   ============================================================================= */

.rr-movement-card {
  background: #060e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rr-movement-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-80, #e8ffe9);
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rr-movement-title i {
  color: var(--theme-accent, #00D3BD);
  font-size: 16px;
}

.rr-movement-chart-wrap {
  height: 200px;
  position: relative;
}

/* Large screens: side-by-side layout */
@media (min-width: 1001px) {
  .dashboard-page {
    max-width: 1320px;
  }

  .dashboard-main-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-parlays-section {
    flex: 3;
    min-width: 0;
    max-height: 1000px;
    overflow-y: auto;
    padding-right: 2px;
  }

  .dashboard-right-column {
    flex: 2;
    min-width: 0;
    max-height: 1000px;
    overflow-y: auto;
    position: sticky;
    top: calc(70px + env(safe-area-inset-top, 0px) + 16px);
  }

  /* Hide desktop duels column — duels now mixed into left column via content toggle */
  .desktop-duels-column {
    display: none !important;
  }

  /* Hide column headers on desktop — tabs now live in standalone bar */
  .dashboard-col-header {
    display: none !important;
  }

  /* Hide rank card tabs on desktop — replaced by standalone tab bar */
  .rank-card-tabs {
    display: none !important;
  }

  .duel-placeholder,
  .parlay-placeholder,
  .dashboard-no-results-centered {
    border: 2px dashed rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .duel-placeholder span,
  .parlay-placeholder span {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.3px;
  }

  /* Remove extra top margin so first parlay aligns with first duel.
     Also disable inner scroll — outer .dashboard-parlays-section handles it on desktop.
     Zero out the flex gap so the pill header's negative margin can overlap the first card border. */
  .parlays-control-card .dashboard-parlays {
    margin-top: 0;
    max-height: none;
    overflow-y: visible;
    gap: 0;
  }

  /* Vertical gaps between stacked cards on desktop */
  .tab-parlays-content,
  .tab-duels-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Analytics grid becomes single column in sidebar */
  .dashboard-right-column .analytics-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-right-column .analytics-card-wide {
    grid-column: span 1;
  }

  /* Smaller stats in sidebar */
  .dashboard-right-column .analytics-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Ranked stats grid in sidebar — 2 or 3 columns */
  .dashboard-right-column .ranked-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================================================
   RESPONSIVE - Medium screens (tablets)
   ============================================================================= */

@media (min-width: 768px) and (max-width: 1000px) {
  .dashboard-page {
    max-width: 1000px;
  }

  /* Analytics stays in 2-column grid on medium screens */
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Old mobile tab bar — removed, tabs now integrated in rank card */
.mobile-dashboard-tabs {
  display: none;
}

/* =============================================================================
   CONTENT TOGGLE (Parlays / Duels) — works at all screen sizes
   Scope to .tab-parlays-content > child so parlay cards nested inside
   duel cards (for showing each side's legs) are not affected.
   ============================================================================= */

body.mobile-content-parlays .tab-parlays-content > .duel-card { display: none !important; }
body.mobile-content-duels .tab-parlays-content > .parlay-card { display: none !important; }
body.mobile-content-duels .tab-parlays-content > .parlay-placeholder { display: none !important; }
body.mobile-content-duels .tab-parlays-content > .dashboard-no-results:not(.duel-empty-state) { display: none !important; }
body.mobile-content-parlays .tab-parlays-content > .duel-placeholder { display: none !important; }
body.mobile-content-parlays .tab-parlays-content > .duel-empty-state { display: none !important; }
body.mobile-content-duels .tab-parlays-content > .parlay-empty-state { display: none !important; }

/* =============================================================================
   RESPONSIVE - Small screens (mobile)
   ============================================================================= */

@media (max-width: 1000px) {

  /* On mobile: hide desktop duels column */
  .desktop-duels-column {
    display: none !important;
  }

  .dashboard-page {
    padding: 12px;
    padding-top: calc(70px + env(safe-area-inset-top, 0px) + 30px);
    padding-bottom: 140px;
  }

  /* ── Rank overview: always visible on mobile, edge-to-edge ── */
  .dashboard-rank-overview {
    display: block !important;
    margin-left: -12px;
    margin-right: -12px;
    margin-top: -6px;
  }

  .dashboard-rank-overview .rank-overview-card {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
  }

  .dashboard-rank-overview:empty {
    display: none !important;
  }

  /* Hide overview cards on mobile */
  #dashboard-overview {
    display: none;
  }

  /* Live tab: show parlays, hide right column */
  body.mobile-tab-live .dashboard-parlays-section {
    display: block;
  }

  body.mobile-tab-live .dashboard-right-column {
    display: none;
  }

  /* Upcoming tab: show parlays, hide right column */
  body.mobile-tab-upcoming .dashboard-parlays-section {
    display: block;
  }

  body.mobile-tab-upcoming .dashboard-right-column {
    display: none;
  }

  /* Settled tab: show parlays, hide right column */
  body.mobile-tab-settled .dashboard-parlays-section {
    display: block;
  }

  body.mobile-tab-settled .dashboard-right-column {
    display: none;
  }

  /* Rank overview card stays fully visible on all mobile tabs */

  /* Overview cards inside mobile stats tab */
  .mobile-analytics-overview .overview-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }

  .mobile-analytics-overview .overview-card {
    padding: 14px;
    padding-left: 56px;
  }

  .mobile-analytics-overview .overview-card-active {
    display: block;
  }

  .dashboard-overview {
    margin-bottom: 20px;
  }

  /* Main content gap on mobile */
  .dashboard-main-content {
    gap: 20px;
  }

  .dashboard-analytics {
    margin-bottom: 0;
  }

  /* Overview cards responsive */
  .overview-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .overview-card {
    padding: 18px;
    padding-left: 62px;
  }

  .overview-card-active {
    display: none;
  }

  .overview-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
    left: 14px;
  }

  .overview-value {
    font-size: 26px;
  }

  .overview-label {
    font-size: 12px;
  }

  .rr-movement-card {
    padding: 28px;
  }

  .rr-movement-title {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .rr-movement-title i {
    font-size: 18px;
  }

  .rr-movement-chart-wrap {
    height: 300px;
  }

  /* Analytics grid responsive */
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .analytics-card {
    padding: 16px;
  }

  .analytics-card-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .analytics-card-wide {
    grid-column: span 1;
  }

  .analytics-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .analytics-stat-value {
    font-size: 26px;
  }

  .analytics-stat-label {
    font-size: 13px;
  }

  /* Logged-out state: larger text on mobile */
  .dashboard-not-logged-in {
    gap: 28px;
  }

  .dashboard-not-logged-in h2 {
    font-size: 34px;
  }

  .dashboard-not-logged-in p {
    font-size: 24px;
  }

  .dashboard-not-logged-in .btn-primary {
    font-size: 22px;
    font-weight: 700;
    padding: 20px 48px;
    border-radius: 16px;
  }

  /* Empty state: larger text on mobile */
  .dashboard-empty {
    gap: 32px;
  }

  .dashboard-empty h2 {
    font-size: 40px;
  }

  .dashboard-empty p {
    font-size: 28px;
  }

  .dashboard-empty .btn-primary {
    font-size: 26px;
    font-weight: 700;
    padding: 22px 56px;
    border-radius: 16px;
  }

  .dashboard-loading {
    min-height: 70vh;
    padding: 0 20px;
    justify-content: center;
    gap: 24px;
  }

  .dashboard-loading i {
    font-size: 44px;
  }

  .dashboard-loading p {
    font-size: 32px;
  }
}

/* =============================================================================
   DESKTOP OVERVIEW CARDS (label-at-top variant)
   ============================================================================= */

.desktop-overview-cards .overview-card {
  padding-top: 32px;
}

.overview-card-title {
  display: none;
}

@media (min-width: 1001px) {
  .overview-card-title {
    display: block;
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-50, #9ab8a8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}

/* New icon color classes */
.overview-icon.record {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
}

.overview-icon.streak {
  background: rgba(230, 126, 34, 0.15);
  color: #e67e22;
}

.overview-icon.duels {
  background: rgba(155, 89, 182, 0.15);
  color: #9b59b6;
}

/* Streak badges row */
.streak-badges-row {
  display: flex;
  gap: 3px;
  margin-top: 2px;
}

.streak-badge {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #fff;
}

.streak-win {
  background: #2ecc71;
}

.streak-loss {
  background: #e74c3c;
}

/* =============================================================================
   DESKTOP TAB BAR (standalone)
   ============================================================================= */

.desktop-tab-bar-wrapper {
  display: none;
}

@media (min-width: 1001px) {
  .desktop-tab-bar-wrapper {
    display: block;
    margin: 16px 0;
  }
}

.desktop-tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #060e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 6px 8px;
}

.dtb-tabs {
  display: flex;
  gap: 4px;
}

.dtb-pill {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-60, #b4d7c4);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dtb-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.dtb-pill.active {
  background: var(--theme-accent, #00D3BD);
  color: #000;
  border-color: var(--theme-accent, #00D3BD);
}

.dtb-pill-count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}

.dtb-pill.active .dtb-pill-count {
  opacity: 1;
}

.dtb-content-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 3px;
}

.dtb-toggle-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-50, #9ab8a8);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.dtb-toggle-btn:hover {
  color: #fff;
}

.dtb-toggle-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* =============================================================================
   DESKTOP SIDEBAR
   ============================================================================= */

.desktop-sidebar {
  display: none;
}

@media (min-width: 1001px) {
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

/* Sidebar card */
.sidebar-card {
  background: #060e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-60, #b4d7c4);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-card-title i {
  color: var(--theme-accent, #00D3BD);
  font-size: 14px;
}

/* Profit chart wrapper */
.sidebar-chart-wrap {
  height: 140px;
  position: relative;
}

/* =============================================================================
   TONIGHT'S SLATE CARD
   ============================================================================= */

.slate-games {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Scrollbar styling for slate */
.slate-games::-webkit-scrollbar {
  width: 4px;
}

.slate-games::-webkit-scrollbar-track {
  background: transparent;
}

.slate-games::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.slate-team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.slate-game {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.slate-game:hover {
  background: rgba(255, 255, 255, 0.04);
}

.slate-game:last-child {
  border-bottom: none;
}

.slate-team-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 56px;
}

.slate-team-group:first-child {
  justify-content: flex-start;
}

.slate-team-group:first-child + .slate-score + .slate-team-group {
  justify-content: flex-start;
}

.slate-team {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.slate-at {
  font-size: 11px;
  color: var(--ink-40, #7a9f8c);
}

.slate-score {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-80, #e8ffe9);
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}

.slate-clock-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

.slate-clock-badge.live {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.slate-clock-badge.final {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-50, #9ab8a8);
}

.slate-clock-badge.upcoming {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-50, #9ab8a8);
}

.slate-empty {
  text-align: center;
  padding: 16px;
  color: var(--ink-40, #7a9f8c);
  font-size: 13px;
}

/* =============================================================================
   RECENT ACTIVITY CARD
   ============================================================================= */

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  color: #fff;
  flex-shrink: 0;
}

.activity-badge-win {
  background: #2ecc71;
}

.activity-badge-loss {
  background: #e74c3c;
}

.activity-desc {
  font-size: 13px;
  color: var(--ink-80, #e8ffe9);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-date {
  font-size: 11px;
  color: var(--ink-40, #7a9f8c);
  flex-shrink: 0;
}

.activity-profit {
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 50px;
  text-align: right;
}

.activity-profit-pos {
  color: #2ecc71;
}

.activity-profit-neg {
  color: #e74c3c;
}
