/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700;800&display=swap');

/* ── CSS Variables ── */
:root, [data-theme="dark"] {
  --bg-primary:    #0a0b0e;
  --bg-secondary:  #12141a;
  --bg-tertiary:   #1a1d26;
  --bg-hover:      #232732;
  --border:        #262a35;
  --border-light:  #2f3442;
  --text-primary:  #ffffff;
  --text-secondary:#9ca3af;
  --text-tertiary: #6b7280;
  --accent-red:    #ef4444;
  --accent-red-dim:#dc2626;
  --accent-green:  #22c55e;
  --accent-gold:   #f59e0b;
  --accent-blue:   #3b82f6;
  --accent-purple: #a855f7;
}
[data-theme="light"] {
  --bg-primary:    #f7f8fa;
  --bg-secondary:  #ffffff;
  --bg-tertiary:   #f0f2f6;
  --bg-hover:      #e6e9ef;
  --border:        #e2e5eb;
  --border-light:  #d1d5db;
  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-tertiary: #6b7280;
  --accent-red:    #dc2626;
  --accent-red-dim:#b91c1c;
  --accent-green:  #16a34a;
  --accent-gold:   #d97706;
  --accent-blue:   #2563eb;
  --accent-purple: #9333ea;
}
html { transition: background-color .2s, color .2s; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Override Bootstrap body defaults for this page */
body#<?= $SPORT ?> {
  font-family: 'Inter', sans-serif !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

/* ── TOP NAV ── */
.dl-topnav {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 60px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.dl-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--accent-red);
  margin-right: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.dl-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
}
.dl-nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.dl-nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.15s;
  position: relative;
}
.dl-nav-link:hover { color: var(--text-primary); }
.dl-nav-link.active { color: var(--text-primary); }
.dl-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -19px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent-red);
}
.dl-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dl-icon-btn {
  width: 36px; height: 36px;
  background: transparent; border: none;
  color: var(--text-secondary); border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.dl-icon-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.dl-user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), #b91c1c);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; cursor: pointer; color: #fff;
}
[data-theme="light"] .dl-topnav { background: var(--bg-secondary); }
@media (max-width: 700px) {
  .dl-nav-links { display: none; }
  .dl-topnav { padding: 0 16px; }
}

/* ── LAYOUT ── */
.dl-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 60px);
  transition: grid-template-columns .25s;
  background: var(--bg-primary);
}
.dl-layout.sidebar-collapsed { grid-template-columns: 64px 1fr; }

/* ── SIDEBAR ── */
.dl-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 20px 12px; overflow-y: auto; overflow-x: hidden;
  transition: padding .25s;
}
.dl-layout.sidebar-collapsed .dl-sidebar { padding: 20px 8px; }
.dl-layout.sidebar-collapsed .dl-sidebar-heading,
.dl-layout.sidebar-collapsed .dl-sidebar-item span,
.dl-layout.sidebar-collapsed .dl-sidebar-badge,
.dl-layout.sidebar-collapsed .dl-sidebar-count { display: none; }
.dl-layout.sidebar-collapsed .dl-sidebar-item { justify-content: center; padding: 10px 0; }
.dl-layout.sidebar-collapsed .dl-sidebar-section.text-only { display: none; }
/* Filling Soon has an icon — keep it visible in text-only section */
.dl-sidebar-section.text-only .dl-sidebar-item { display: flex; }
#dl-sidebar-filling { color: #f97316; }
#dl-sidebar-filling .dl-sidebar-icon { color: #f97316; }
#dl-sidebar-filling .dl-sidebar-count { color: #f97316; background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.25); }
#dl-sidebar-filling.active { background: rgba(249,115,22,.12); color: #f97316; }
#dl-sidebar-filling.active .dl-sidebar-icon { color: #f97316; }
#dl-sidebar-upcoming.active { background: rgba(239,68,68,.1); color: var(--accent-red); }
#dl-sidebar-upcoming.active .dl-sidebar-icon { color: var(--accent-red); }
#dl-sidebar-featured.active { background: rgba(245,158,11,.1); color: var(--accent-gold); }
#dl-sidebar-featured.active .dl-sidebar-icon { color: var(--accent-gold); }
.dl-fmt-filter.active { background: var(--bg-tertiary); color: var(--text-primary) !important; }
.dl-fmt-filter.active .dl-sidebar-count { color: var(--text-secondary); }
/* Dynasty external-link icon — shown when no dynasty leagues are open */
.dl-dynasty-external-icon { margin-left: auto; flex-shrink: 0; }

.dl-sidebar-toggle-row { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.dl-sidebar-toggle {
  width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.dl-sidebar-toggle:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.dl-sidebar-toggle svg { transition: transform .25s; }
.dl-layout.sidebar-collapsed .dl-sidebar-toggle svg { transform: rotate(180deg); }
.dl-layout.sidebar-collapsed .dl-sidebar-toggle-row { justify-content: center; }

/* ── SIDEBAR PROFILE CARD ── */
.dl-sidebar-profile {
  padding: 14px 12px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  transition: all .25s;
}
.dl-sidebar-profile-inner {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.dl-profile-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), #b91c1c);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: .5px;
}
.dl-profile-info { flex: 1; min-width: 0; }
.dl-profile-name {
  font-weight: 700; font-size: 14px; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
/* Power Player — gold */
.dl-profile-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; padding: 2px 7px; border-radius: 4px; margin-top: 3px;
}
.dl-profile-badge svg { flex-shrink: 0; }
.dl-profile-badge.power {
  background: rgba(245,158,11,.15); color: #f59e0b;
  border: 1px solid rgba(245,158,11,.3);
}
[data-theme="light"] .dl-profile-badge.power {
  background: #fef9c3; color: #92400e; border-color: #fde68a;
}
/* Rising Player — blue */
.dl-profile-badge.rising {
  background: rgba(59,130,246,.15); color: var(--accent-blue);
  border: 1px solid rgba(59,130,246,.3);
}
[data-theme="light"] .dl-profile-badge.rising {
  background: #dbeafe; color: #1e40af; border-color: #bfdbfe;
}
.dl-profile-balance-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.dl-profile-balance { display: flex; flex-direction: column; }
.dl-profile-balance-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 1px;
}
.dl-profile-balance-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--accent-green);
  line-height: 1; letter-spacing: -.5px;
}
.dl-deposit-btn {
  padding: 7px 14px; background: var(--bg-tertiary);
  border: 1px solid var(--border-light); color: var(--text-primary);
  border-radius: 7px; font-weight: 700; font-size: 12px; font-family: inherit;
  cursor: pointer; white-space: nowrap; transition: all .15s;
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
  text-decoration: none;
}
.dl-deposit-btn:hover { background: var(--accent-green); border-color: var(--accent-green); color: #fff; text-decoration: none; }
/* Collapsed state */
.dl-layout.sidebar-collapsed .dl-sidebar-profile { padding: 10px 8px 12px; }
.dl-layout.sidebar-collapsed .dl-sidebar-profile-inner { justify-content: center; margin-bottom: 0; }
.dl-layout.sidebar-collapsed .dl-profile-info,
.dl-layout.sidebar-collapsed .dl-profile-balance-row { display: none; }

.dl-sidebar-section { margin-bottom: 24px; }
.dl-sidebar-heading {
  font-size: 11px; font-weight: 600; color: var(--text-tertiary);
  letter-spacing: .8px; text-transform: uppercase;
  padding: 0 12px; margin-bottom: 8px;
}
.dl-sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; color: var(--text-secondary);
  text-decoration: none; border-radius: 6px;
  font-size: 14px; font-weight: 500; transition: all .15s;
  cursor: pointer; margin-bottom: 2px;
  outline: none; border: none; background: transparent; width: 100%;
}
.dl-sidebar-item:hover { background: var(--bg-tertiary); color: var(--text-primary); text-decoration: none; outline: none; }
.dl-sidebar-item:focus { outline: none; text-decoration: none; box-shadow: none; }
.dl-sidebar-item:focus-visible { outline: none; }
.dl-sidebar-item.active { background: var(--bg-tertiary); color: var(--text-primary); text-decoration: none; outline: none; }
.dl-sidebar-item.active .dl-sidebar-icon { color: var(--accent-red); }
.dl-sidebar-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-tertiary); }
.dl-sidebar-badge {
  margin-left: auto; background: var(--accent-red); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px;
}
.dl-sidebar-count {
  margin-left: auto; font-size: 10px; font-weight: 600;
  color: var(--text-tertiary); background: var(--bg-hover);
  border: 1px solid var(--border-light); padding: 1px 7px; border-radius: 10px;
}
.dl-sidebar-item:hover .dl-sidebar-count,
.dl-sidebar-item.active .dl-sidebar-count { color: var(--text-secondary); }

/* ── MAIN ── */
.dl-main { padding: 28px 40px 60px; overflow: auto; }

/* ── PAGE HEADER ── */
.dl-page-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 28px;
}
.dl-page-eyebrow {
  font-size: 11px; font-weight: 600; color: var(--text-tertiary);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px;
}
.dl-page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 40px; font-weight: 800; letter-spacing: -.5px; line-height: 1;
  color: var(--text-primary);
}
.dl-header-actions { display: flex; gap: 12px; align-items: center; }
.dl-btn-secondary {
  padding: 10px 18px; background: var(--bg-tertiary);
  border: 1px solid var(--border-light); color: var(--text-primary);
  border-radius: 8px; font-weight: 600; font-size: 13px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s; text-decoration: none;
}
.dl-btn-secondary:hover { background: var(--bg-hover); border-color: #3a3f4e; color: var(--text-primary); }
.dl-btn-primary {
  padding: 10px 18px; background: var(--accent-red);
  border: 1px solid var(--accent-red); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: 13px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s; text-decoration: none;
}
.dl-btn-primary:hover { background: var(--accent-red-dim); color: #fff; }

/* ── FILTER BAR ── */
.dl-filter-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.dl-filter-bar-row2 {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 18px; flex-wrap: wrap;
}
/* Search row */
.dl-search-wrap { flex: 1; min-width: 220px; position: relative; }
.dl-search-wrap input {
  width: 100%; background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-primary); padding: 10px 14px 10px 38px;
  border-radius: 8px; font-size: 13px; font-family: inherit;
  outline: none; transition: border-color .15s;
}
.dl-search-wrap input::placeholder { color: var(--text-tertiary); }
.dl-search-wrap input:focus { border-color: var(--border-light); }
.dl-search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); }
.dl-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: var(--bg-hover); border: none; color: var(--text-tertiary);
  border-radius: 50%; width: 18px; height: 18px;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; font-size: 11px; line-height: 1; padding: 0; transition: all .15s;
}
.dl-search-clear:hover { background: var(--border-light); color: var(--text-primary); }
.dl-search-clear.visible { display: flex; }
/* Filter chips */
.dl-filter-chip {
  padding: 8px 14px; background: var(--bg-secondary);
  border: 1px solid var(--border); color: var(--text-secondary);
  border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; white-space: nowrap; position: relative;
  font-family: inherit;
}
.dl-filter-chip:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.dl-filter-chip.active { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.4); color: var(--accent-red); }
.dl-filter-chip svg { flex-shrink: 0; transition: transform .15s; }
.dl-filter-chip.open svg.dl-chip-caret { transform: rotate(180deg); }
/* Chip dropdown panel */
.dl-chip-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 6px; min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 200; display: none; flex-direction: column; gap: 1px;
}
.dl-chip-dropdown.open { display: flex; }
.dl-chip-option {
  padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; transition: all .1s;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: transparent; border: none; font-family: inherit; text-align: left;
  white-space: nowrap;
}
.dl-chip-option:hover { background: var(--bg-hover); color: var(--text-primary); }
.dl-chip-option.selected { color: var(--accent-red); background: rgba(239,68,68,.08); }
.dl-chip-option.selected::after {
  content: '✓'; font-size: 11px; font-weight: 700; color: var(--accent-red);
}
/* Spacer and view toggle */
.dl-filter-spacer { flex: 1; }
.dl-filter-select {
  padding: 9px 14px; background: var(--bg-secondary);
  border: 1px solid var(--border); color: var(--text-primary);
  border-radius: 8px; font-size: 13px; font-family: inherit;
  cursor: pointer; outline: none; transition: border-color .15s; display: none;
}
.dl-view-toggle {
  display: inline-flex; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px;
}
.dl-view-btn {
  width: 32px; height: 30px; background: transparent; border: none;
  color: var(--text-tertiary); border-radius: 5px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.dl-view-btn:hover { color: var(--text-primary); }
.dl-view-btn.active { background: var(--bg-tertiary); color: var(--text-primary); }

/* ── TABLE CARD ── */
.dl-table-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.dl-table-wrap { overflow-x: auto; }
.dl-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  display: none; /* JS shows it */
}
.dl-table thead { background: var(--bg-tertiary); border-bottom: 1px solid var(--border); }
.dl-table th {
  text-align: left; padding: 12px 16px;
  font-size: 10px; font-weight: 700; color: var(--text-tertiary);
  letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
}
.dl-table tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
.dl-table tbody tr:last-child { border-bottom: none; }
.dl-table tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }
.dl-table tbody tr:hover { background: var(--bg-tertiary) !important; }
.dl-table td { padding: 16px 16px; vertical-align: middle; white-space: nowrap; color: var(--text-primary); }
.dl-table td.desc { white-space: normal; color: var(--text-secondary); max-width: 280px; }
[data-theme="light"] .dl-table tbody tr:nth-child(even) { background: rgba(0,0,0,.025); }

/* game col */
.dl-game-col { display: flex; align-items: center; gap: 10px; }
.dl-game-pill-wrap { display: flex; flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; }
.dl-badge-row { display: flex; gap: 3px; align-items: center; }
.dl-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 5px;
  font-size: 10px; font-weight: 800; line-height: 1;
  flex-shrink: 0;
}
.dl-badge-auction { background: rgba(245,158,11,.15); color: var(--accent-gold); border: 1px solid rgba(245,158,11,.3); }
.dl-badge-novice  { background: rgba(168,85,247,.15);  color: var(--accent-purple); border: 1px solid rgba(168,85,247,.3); }
.dl-badge-trading { background: rgba(59,130,246,.15);  color: var(--accent-blue);   border: 1px solid rgba(59,130,246,.3); }
.dl-badge-al      { background: rgba(239,68,68,.15);   color: var(--accent-red);    border: 1px solid rgba(239,68,68,.3); }
.dl-badge-nl      { background: rgba(34,197,94,.15);   color: var(--accent-green);  border: 1px solid rgba(34,197,94,.3); }
.dl-sport-icon {
  width: 30px; height: 30px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  background: var(--bg-hover); border: 1px solid var(--border-light);
}
.dl-game-pill {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: 6px;
  font-weight: 700; font-size: 11px; letter-spacing: .3px;
}
.pill-championship { background: rgba(245,158,11,.14); color: #fbbf24; border: 1px solid rgba(245,158,11,.25); }
.pill-dynasty      { background: rgba(59,130,246,.14);  color: #60a5fa; border: 1px solid rgba(59,130,246,.25); }
.pill-bestball     { background: rgba(34,197,94,.14);   color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.pill-allamerican  { background: rgba(168,85,247,.14);  color: #c084fc; border: 1px solid rgba(168,85,247,.25); }
.pill-draftmasters { background: rgba(14,165,233,.14);  color: #38bdf8; border: 1px solid rgba(14,165,233,.25); }
.pill-highstakes   { background: rgba(239,68,68,.14);   color: #f87171; border: 1px solid rgba(239,68,68,.25); }
.pill-rtffc        { background: rgba(249,115,22,.14);  color: #fb923c; border: 1px solid rgba(249,115,22,.25); }
.pill-standard     { background: rgba(100,100,120,.14); color: #9ca3af; border: 1px solid rgba(100,100,120,.25); }

/* entry col */
.dl-entry-price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; line-height: 1; }
.dl-entry-sub   { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; font-weight: 500; }

/* draft time */
.dl-time-line   { color: var(--text-primary); font-weight: 600; font-size: 13px; }
.dl-time-sub    { color: var(--text-tertiary); font-size: 11px; margin-top: 3px; font-weight: 500; }
.dl-wf-line     { color: var(--text-primary); font-weight: 600; font-size: 13px; }
.dl-wf-sub      { color: var(--text-tertiary); font-size: 11px; margin-top: 3px; font-weight: 500; }

/* openings */
.dl-op-wrap   { min-width: 84px; }
.dl-op-value  { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.dl-op-bar    { width: 72px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.dl-op-fill   { display: block; height: 100%; border-radius: 2px; }
.AlmostFull .dl-op-value { color: var(--accent-red); }
tr.low-openings { background: linear-gradient(90deg, rgba(239,68,68,.08) 0%, rgba(239,68,68,.03) 100%); }
tr.low-openings > td:first-child { box-shadow: inset 3px 0 0 0 var(--accent-red); }
tr.low-openings:hover { background: linear-gradient(90deg, rgba(239,68,68,.14) 0%, rgba(239,68,68,.06) 100%) !important; }
tr.full-row { opacity: .75; }
tr.full-row:hover { opacity: 1; }

/* ── Featured row — subtle gold tint in dark mode ── */
tr.dl-featured-row {
  background: linear-gradient(90deg, rgba(245,158,11,.07) 0%, rgba(245,158,11,.02) 100%);
}
tr.dl-featured-row > td:first-child {
  box-shadow: inset 3px 0 0 0 rgba(245,158,11,.5);
}
tr.dl-featured-row:hover {
  background: linear-gradient(90deg, rgba(245,158,11,.12) 0%, rgba(245,158,11,.05) 100%) !important;
}
/* Light mode — subtle blue tint, matches Bootstrap's bg-info intent but toned way down */
[data-theme="light"] tr.dl-featured-row {
  background: linear-gradient(90deg, rgba(59,130,246,.06) 0%, rgba(59,130,246,.02) 100%);
}
[data-theme="light"] tr.dl-featured-row > td:first-child {
  box-shadow: inset 3px 0 0 0 rgba(59,130,246,.35);
}
[data-theme="light"] tr.dl-featured-row:hover {
  background: linear-gradient(90deg, rgba(59,130,246,.1) 0%, rgba(59,130,246,.04) 100%) !important;
}

/* format col */
.dl-fmt-line { font-size: 13px; font-weight: 500; }
.dl-fmt-sub  { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }

/* prize col */
.dl-prize-value { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 17px; color: var(--accent-green); line-height: 1; }
.dl-prize-sub   { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; font-weight: 500; }
.dl-prize-col.full .dl-prize-value { color: var(--accent-red); }

/* league col */
.dl-league-name { color: var(--text-primary); font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.dl-league-name:hover { color: var(--accent-red); cursor: pointer; }
.dl-league-name a:focus { outline: none; }
.dl-league-sub  { font-size: 11px; color: var(--text-tertiary); font-weight: 500; }

/* action col */
.dl-action-col  { display: flex; align-items: center; gap: 6px; }
.dl-act-icon-btn {
  width: 30px; height: 30px; background: transparent;
  border: 1px solid var(--border); color: var(--text-tertiary);
  border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.dl-act-icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: #3a3f4e; }
.dl-join-table-btn {
  padding: 9px 22px; background: var(--accent-red);
  border: 1px solid var(--accent-red); color: #fff;
  border-radius: 7px; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: all .15s; letter-spacing: .4px;
  margin-left: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  text-decoration: none; display: inline-block;
}
.dl-join-table-btn:hover { background: var(--accent-red-dim); color: #fff; transform: translateY(-1px); text-decoration: none; }
.dl-join-table-btn.disabled { background: var(--bg-tertiary); color: var(--text-tertiary); border-color: var(--border); cursor: not-allowed; text-decoration: none; }
.dl-join-table-btn.disabled:hover { transform: none; text-decoration: none; }

/* sold out */
.dl-sold-out { color: var(--accent-red); font-weight: 700; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }

/* table footer */
.dl-table-footer {
  padding: 14px 20px; display: flex; justify-content: space-between;
  align-items: center; border-top: 1px solid var(--border);
  background: var(--bg-secondary); font-size: 13px; color: var(--text-secondary);
}
.dl-pagination { display: flex; gap: 6px; }
.dl-page-btn {
  width: 30px; height: 30px; background: transparent;
  border: 1px solid var(--border); color: var(--text-secondary);
  border-radius: 6px; cursor: pointer; font-size: 12px; transition: all .15s;
}
.dl-page-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.dl-page-btn.active { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }

/* ── GRID VIEW ── */
.grid-view { display: none; }
.grid-view.active { display: block; }
.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; padding: 4px 2px;
}
.league-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: .2s;
  display: flex; flex-direction: column;
}
.league-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.league-card.card-full { opacity: .72; }
.league-card.card-full:hover { opacity: 1; }
.card-top-bar { height: 3px; flex-shrink: 0; background: var(--border-light); }
.card-pill-championship .card-top-bar { background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.card-pill-dynasty      .card-top-bar { background: linear-gradient(90deg,#3b82f6,#60a5fa); }
.card-pill-bestball     .card-top-bar { background: linear-gradient(90deg,#22c55e,#4ade80); }
.card-pill-allamerican  .card-top-bar { background: linear-gradient(90deg,#a855f7,#c084fc); }
.card-pill-draftmasters .card-top-bar { background: linear-gradient(90deg,#0ea5e9,#38bdf8); }
.card-pill-highstakes   .card-top-bar { background: linear-gradient(90deg,#ef4444,#f87171); }
.card-pill-rtffc        .card-top-bar { background: linear-gradient(90deg,#f97316,#fb923c); }
.card-pill-standard     .card-top-bar { background: linear-gradient(90deg,#6b7280,#9ca3af); }
.league-card.card-low-openings .card-top-bar { background: var(--accent-red) !important; }
.card-body { padding: 16px 18px 14px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.card-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-icon-name { display: flex; align-items: center; gap: 10px; }
.card-sport-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-hover); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.card-league-name { font-weight: 700; font-size: 14px; color: var(--text-primary); line-height: 1.2; margin-bottom: 3px; }
.card-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.card-stat { background: var(--bg-tertiary); border-radius: 8px; padding: 8px 10px; }
.card-stat-label { font-size: 9px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 3px; }
.card-stat-value { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.card-stat-value.green { color: var(--accent-green); }
.card-stat-value.red   { color: var(--accent-red); }
.card-format-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-format-tag {
  font-size: 11px; color: var(--text-secondary); background: var(--bg-tertiary);
  border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; font-weight: 500;
}
.card-openings { display: flex; flex-direction: column; gap: 5px; }
.card-openings-row { display: flex; justify-content: space-between; align-items: center; }
.card-openings-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.card-openings-count { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.card-openings-count.full { color: var(--accent-red); }
.card-progress { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.card-progress-fill { height: 100%; border-radius: 3px; background: var(--accent-green); }
.card-progress-fill.orange { background: #f97316; }
.card-progress-fill.green  { background: var(--accent-green); }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.card-draft-time { flex: 1; font-size: 11px; color: var(--text-tertiary); font-weight: 500; }
.card-draft-time strong { color: var(--text-secondary); font-weight: 600; }
.card-join-btn {
  padding: 8px 20px; background: var(--accent-red); border: none;
  color: #fff; border-radius: 7px; font-weight: 700; font-size: 12px;
  cursor: pointer; transition: .15s; letter-spacing: .3px; text-decoration: none;
  font-family: inherit;
}
.card-join-btn:hover { background: var(--accent-red-dim); transform: translateY(-1px); text-decoration: none; }
.card-join-btn.disabled { background: var(--bg-tertiary); color: var(--text-tertiary); border: 1px solid var(--border); cursor: not-allowed; }
.card-join-btn.disabled:hover { transform: none; background: var(--bg-tertiary); }
.card-info-btn {
  width: 30px; height: 30px; background: transparent;
  border: 1px solid var(--border-light); border-radius: 6px;
  color: var(--text-tertiary); cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: .15s; flex-shrink: 0;
}
.card-info-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); border-color: var(--border-light); }
.dl-badge-legend {
  padding: 10px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.dl-badge-legend-label {
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-tertiary); flex-shrink: 0;
}
.dl-badge-legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: 11px; font-weight: 500;
}
/* Scale down the badge size in the legend to stay compact */
.dl-badge-legend .dl-badge { width: 18px; height: 18px; border-radius: 4px; }

/* loading spinner overlay */
.dl-loading {
  display: flex; justify-content: center; align-items: center;
  padding: 48px 20px; color: var(--text-tertiary); font-size: 14px; gap: 12px;
}
.dl-spinner {
  width: 22px; height: 22px; border: 2px solid var(--border-light);
  border-top-color: var(--accent-red); border-radius: 50%;
  animation: dl-spin .7s linear infinite;
}
@keyframes dl-spin { to { transform: rotate(360deg); } }

/* no results */
.dl-no-results { text-align: center; padding: 48px 20px; }
.dl-no-results-icon { font-size: 32px; margin-bottom: 10px; }
.dl-no-results-msg  { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.dl-no-results-sub  { font-size: 12px; color: var(--text-tertiary); }

/* more button */

/* ── MODALS (shared overlay) ── */
.dl-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  z-index: 9000; align-items: center; justify-content: center; padding: 20px;
}
.dl-modal-overlay.open { display: flex; }
.dl-modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 16px; width: 100%; max-width: 520px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); overflow: hidden;
  animation: dl-modal-in .18s ease;
}
@keyframes dl-modal-in { from { opacity:0; transform: translateY(10px) scale(.97); } to { opacity:1; transform: none; } }
.dl-modal-header {
  padding: 20px 22px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.dl-modal-header-left { display: flex; align-items: center; gap: 14px; }
.dl-modal-league-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.dl-modal-league-name { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.3px; line-height: 1.1; margin-bottom: 3px; }
.dl-modal-league-type { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--text-tertiary); }
.dl-modal-close {
  width: 30px; height: 30px; background: transparent;
  border: 1px solid var(--border); color: var(--text-tertiary);
  border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.dl-modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.dl-modal-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.dl-modal-stat { padding: 14px 16px; border-right: 1px solid var(--border); }
.dl-modal-stat:last-child { border-right: none; }
.dl-modal-stat-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 4px; }
.dl-modal-stat-value { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; line-height: 1; }
.dl-modal-stat-value.green { color: var(--accent-green); }
.dl-modal-stat-value.red   { color: var(--accent-red); }
.dl-modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.dl-modal-join-btn {
  padding: 9px 22px; background: var(--accent-red); border: none;
  color: #fff; border-radius: 8px; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: all .15s; text-decoration: none; display: inline-block;
}
.dl-modal-join-btn:hover { background: var(--accent-red-dim); color: #fff; }
.dl-modal-cancel-btn {
  padding: 9px 18px; background: transparent;
  border: 1px solid var(--border-light); color: var(--text-secondary);
  border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s;
}
.dl-modal-cancel-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ── CREATE LEAGUE MODAL ── */
.cl-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  z-index: 9100; align-items: center; justify-content: center; padding: 16px;
}
.cl-modal-overlay.open { display: flex; }
.cl-modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 16px; width: 100%; max-width: 600px; max-height: 92vh;
  overflow-y: auto; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: dl-modal-in .18s ease;
}
.cl-header {
  padding: 22px 26px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--bg-secondary); z-index: 2; flex-shrink: 0;
}
.cl-header-left { display: flex; align-items: center; gap: 14px; }
.cl-header-icon {
  width: 42px; height: 42px;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--accent-red); flex-shrink: 0;
}
.cl-title { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.3px; color: var(--text-primary); }
.cl-subtitle { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.cl-steps-bar { padding: 18px 26px 0; display: flex; align-items: center; flex-shrink: 0; }
.cl-step-item { display: flex; align-items: center; gap: 8px; flex: 1; }
.cl-step-item:last-child { flex: 0; }
.cl-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  border: 2px solid var(--border-light); color: var(--text-tertiary); transition: all .2s;
}
.cl-step-dot.active { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
.cl-step-dot.done   { background: var(--accent-green); border-color: var(--accent-green); color: #fff; }
.cl-step-line { flex: 1; height: 2px; background: var(--border-light); margin: 0 4px; transition: background .3s; }
.cl-step-line.done { background: var(--accent-green); }
.cl-steps-labels { display: flex; padding: 6px 26px 0; flex-shrink: 0; }
.cl-steps-labels > div { flex: 1; text-align: center; }
.cl-steps-labels > div:last-child { flex: 0; min-width: 28px; }
.cl-step-label { font-size: 9px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-tertiary); margin-top: 4px; text-align: center; white-space: nowrap; }
.cl-step-label.active { color: var(--accent-red); }
.cl-step-label.done   { color: var(--accent-green); }
.cl-body { padding: 24px 26px; flex: 1; overflow-y: auto; }
.cl-panel { display: none; }
.cl-panel.active { display: block; }
.cl-section-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 12px; }
.cl-type-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 0; }
.cl-type-card { border: 2px solid var(--border); border-radius: 10px; padding: 14px 12px; cursor: pointer; transition: all .15s; text-align: center; background: var(--bg-tertiary); }
.cl-type-card:hover  { border-color: var(--border-light); background: var(--bg-hover); }
.cl-type-card.selected { border-color: var(--accent-red); background: rgba(239,68,68,.06); }
.cl-type-icon { font-size: 24px; margin-bottom: 6px; }
.cl-type-name { font-weight: 700; font-size: 12px; color: var(--text-primary); margin-bottom: 3px; }
.cl-type-desc { font-size: 10px; color: var(--text-tertiary); line-height: 1.4; }
.cl-field { margin-bottom: 18px; }
.cl-field:last-child { margin-bottom: 0; }
.cl-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; letter-spacing: .2px; }
.cl-label span { color: var(--accent-red); margin-left: 2px; }
.cl-input, .cl-select, .cl-textarea {
  width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border-light);
  color: var(--text-primary); border-radius: 8px; padding: 10px 14px;
  font-size: 13px; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.cl-input:focus, .cl-select:focus { border-color: var(--accent-red); box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.cl-input::placeholder { color: var(--text-tertiary); }
.cl-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.cl-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cl-fee-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.cl-fee-chip { border: 1.5px solid var(--border-light); border-radius: 8px; padding: 8px 4px; text-align: center; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--text-secondary); background: var(--bg-tertiary); transition: all .15s; }
.cl-fee-chip:hover  { color: var(--text-primary); }
.cl-fee-chip.selected { border-color: var(--accent-red); background: rgba(239,68,68,.08); color: var(--accent-red); }
.cl-toggle-group { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-toggle-pill { padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--border-light); font-size: 12px; font-weight: 600; color: var(--text-secondary); background: var(--bg-tertiary); cursor: pointer; transition: all .15s; }
.cl-toggle-pill:hover   { color: var(--text-primary); }
.cl-toggle-pill.selected { border-color: var(--accent-red); background: rgba(239,68,68,.1); color: var(--accent-red); }
.cl-datetime-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cl-draft-option-row { display: flex; gap: 10px; margin-bottom: 14px; }
.cl-draft-option { flex: 1; border: 1.5px solid var(--border-light); border-radius: 8px; padding: 10px 14px; cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 10px; background: var(--bg-tertiary); }
.cl-draft-option.selected { border-color: var(--accent-red); background: rgba(239,68,68,.06); }
.cl-draft-option-icon { font-size: 18px; flex-shrink: 0; }
.cl-draft-option-label { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.cl-draft-option-desc  { font-size: 11px; color: var(--text-tertiary); }
.cl-scheduled-fields { display: none; }
.cl-scheduled-fields.visible { display: block; }
.cl-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.cl-review-item { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.cl-review-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 4px; }
.cl-review-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.cl-review-value.highlight { color: var(--accent-green); font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; }
.cl-preview-card { border: 1.5px dashed var(--border-light); border-radius: 10px; padding: 14px 16px; background: var(--bg-tertiary); margin-bottom: 0; }
.cl-preview-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 10px; }
.cl-footer { padding: 16px 26px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: space-between; align-items: center; background: var(--bg-secondary); flex-shrink: 0; }
.cl-btn-back { padding: 9px 18px; background: transparent; border: 1px solid var(--border-light); color: var(--text-secondary); border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s; }
.cl-btn-back:hover { background: var(--bg-hover); color: var(--text-primary); }
.cl-btn-next { padding: 9px 26px; background: var(--accent-red); border: none; color: #fff; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; transition: all .15s; }
.cl-btn-next:hover    { background: var(--accent-red-dim); transform: translateY(-1px); }
.cl-btn-next:disabled { background: var(--bg-tertiary); color: var(--text-tertiary); cursor: not-allowed; transform: none; }
.cl-step-indicator { font-size: 12px; color: var(--text-tertiary); font-weight: 500; }
.cl-error-msg { font-size: 11px; color: var(--accent-red); margin-top: 5px; display: none; }
.cl-error-msg.visible { display: block; }
.cl-success { text-align: center; padding: 40px 26px; display: none; flex-direction: column; align-items: center; gap: 14px; }
.cl-success.visible { display: flex; }
.cl-success-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(34,197,94,.15); border: 2px solid rgba(34,197,94,.3); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.cl-success-title { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 800; }
.cl-success-sub { font-size: 13px; color: var(--text-secondary); max-width: 320px; line-height: 1.6; }

/* ── LEGACY helpers retained ── */
.blk { -webkit-user-select:none; -webkit-touch-callout:none; -moz-user-select:none; -ms-user-select:none; user-select:none; }
.Game900,.Game901,.Game902,.Game910 { color:#cc0000; }
.Game710 { color:#cc0000; font-weight:500; }
.Game4900 { color:#cc0000; }

/* ── SITE FOOTER ── */
/* Full-width background flush with page, no legacy Bootstrap gutters */
body { background: var(--bg-primary) !important; }
.x-container, #footer.x-container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 48px 40px !important;
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border) !important;
  box-sizing: border-box !important;
}
/* Text & links inside footer */
#footer, #footer p, #footer a, #footer .credit {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary) !important;
  font-size: 13px;
  line-height: 1.7;
}
#footer a:hover { color: var(--text-primary) !important; text-decoration: none; }
#footer .footer-logo { filter: none; opacity: .85; max-width: 140px; }
[data-theme="light"] #footer .footer-logo { filter: none; opacity: .9; }
/* Social icons */
#footer .fab { color: var(--text-tertiary) !important; transition: color .15s; }
#footer .fab:hover { color: var(--text-primary) !important; }
/* Bootstrap row inside footer */
#footer .row-footer { max-width: 1200px; margin: 0 auto; }
/* Gambling disclaimer */
#footer p:has(a[href*="tel"]) { color: var(--text-tertiary) !important; font-size: 12px; }
/* Copyright */
#footer .credit { color: var(--text-tertiary) !important; font-size: 12px; }

/* SITE FOOTER V2 */
.dl-site-footer {
  width: 100%;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
}
.dl-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 40px 30px;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(360px, 1.7fr) minmax(220px, .9fr);
  gap: 34px;
  align-items: start;
}
.dl-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
}
.dl-footer-logo:hover,
.dl-footer-logo:focus {
  color: var(--text-primary);
  text-decoration: none;
}
.dl-footer-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--accent-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.dl-footer-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}
.dl-footer-copy {
  max-width: 320px;
  margin: 16px 0 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}
.dl-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dl-footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  text-decoration: none;
}
.dl-footer-social a:hover,
.dl-footer-social a:focus {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: var(--bg-hover);
  text-decoration: none;
}
.dl-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 22px;
}
.dl-footer-heading,
.dl-footer-cta-label {
  margin-bottom: 10px;
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dl-footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dl-footer-link-group a,
.dl-footer-bottom a,
.dl-footer-extra a {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .15s;
}
.dl-footer-link-group a:hover,
.dl-footer-link-group a:focus,
.dl-footer-bottom a:hover,
.dl-footer-bottom a:focus,
.dl-footer-extra a:hover,
.dl-footer-extra a:focus {
  color: var(--text-primary);
  text-decoration: none;
}
.dl-footer-cta {
  padding: 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.dl-footer-cta-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}
.dl-footer-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 9px 14px;
  background: var(--accent-red);
  border: 1px solid var(--accent-red);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
}
.dl-footer-cta-button:hover,
.dl-footer-cta-button:focus {
  background: var(--accent-red-dim);
  border-color: var(--accent-red-dim);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.dl-footer-extra {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.dl-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 40px 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(160px, .6fr) minmax(280px, 1.4fr) minmax(190px, .7fr);
  gap: 20px;
  align-items: center;
  color: var(--text-tertiary);
}
.dl-footer-bottom p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.6;
}
.dl-footer-contact {
  text-align: right;
}
.dl-footer-contact span {
  color: var(--border-light);
  margin: 0 6px;
}
[data-theme="light"] .dl-site-footer {
  background: var(--bg-secondary);
}
[data-theme="light"] .dl-footer-social a,
[data-theme="light"] .dl-footer-cta {
  background: var(--bg-tertiary);
}

/* ── FULL-WIDTH LAYOUT — kill Bootstrap's fixed container gutters ── */
/* The Bootstrap .container emitted by headless mode should not constrain width */
body > .container:first-of-type {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ── LEAGUE INFO MODAL ── */
.li-modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 16px; width: 100%; max-width: 680px; max-height: 90vh;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: dl-modal-in .18s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.li-modal-header {
  padding: 20px 22px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  flex-shrink: 0;
}
.li-modal-header-left { display: flex; align-items: center; gap: 14px; }
.li-modal-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; background: var(--bg-hover);
}
.li-modal-name {
  font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800;
  letter-spacing: -.3px; line-height: 1.1; margin-bottom: 3px;
  color: var(--text-primary) !important;
}
.li-modal-type {
  font-size: 11px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-tertiary);
}
/* Stats bar */
.li-modal-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.li-modal-stat { padding: 14px 16px; border-right: 1px solid var(--border); }
.li-modal-stat:last-child { border-right: none; }
.li-modal-stat-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 4px;
}
.li-modal-stat-value {
  font-family: 'Barlow Condensed', sans-serif; font-size: 18px;
  font-weight: 800; color: var(--text-primary) !important; line-height: 1;
}
.li-modal-stat-value.green { color: var(--accent-green) !important; }
.li-modal-stat-value.red   { color: var(--accent-red)   !important; }
.li-modal-stat-value.blue  { color: var(--accent-blue)  !important; }
/* Tabs */
.li-modal-tabs {
  display: flex; border-bottom: 1px solid var(--border); padding: 0 22px; flex-shrink: 0;
}
.li-modal-tab {
  padding: 11px 16px; font-size: 12px; font-weight: 600; color: var(--text-tertiary);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .15s; background: none; border-top: none; border-left: none; border-right: none;
  white-space: nowrap; font-family: inherit;
}
.li-modal-tab:hover { color: var(--text-primary); }
.li-modal-tab.active { color: var(--text-primary); border-bottom-color: var(--accent-red); }
/* Scrollable body */
.li-modal-body { overflow-y: auto; flex: 1; min-height: 0; }
.li-modal-tab-panel { display: none; }
.li-modal-tab-panel.active { display: block; }
/* Draft info band */
.li-draft-info {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border);
}
.li-draft-icon {
  width: 36px; height: 36px; background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-blue); flex-shrink: 0;
}
.li-draft-label { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 2px; }
.li-draft-value { font-size: 13px; font-weight: 700; color: var(--text-primary); }
/* Format grid */
.li-format-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.li-format-item { background: var(--bg-secondary); padding: 12px 22px; display: flex; flex-direction: column; gap: 3px; }
.li-format-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); }
.li-format-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }
/* Notes */
.li-section-body { padding: 14px 22px; }
.li-section-title { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); padding: 14px 22px 10px; border-bottom: 1px solid var(--border); }
/* Payout table */
.li-payout-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.li-payout-table th { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); padding: 10px 22px; text-align: left; border-bottom: 1px solid var(--border); background: var(--bg-tertiary); }
.li-payout-table td { padding: 10px 22px; border-bottom: 1px solid var(--border); color: var(--text-primary); font-weight: 500; }
.li-payout-table tr:last-child td { border-bottom: none; }
.li-payout-place { font-weight: 700; color: var(--text-secondary) !important; font-size: 12px; }
.li-payout-amt { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 800; color: var(--accent-green) !important; }
.li-payout-pct { font-size: 11px; color: var(--text-tertiary) !important; }
.payout-1st .li-payout-place { color: #f59e0b !important; }
.payout-2nd .li-payout-place { color: #9ca3af !important; }
.payout-3rd .li-payout-place { color: #b45309 !important; }
/* Members */
.li-modal-members {
  padding: 14px 22px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; max-height: 260px; overflow-y: auto;
}
.li-member { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg-tertiary); border-radius: 8px; border: 1px solid var(--border); }
.li-member-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0; color: #fff;
}
.li-member-avatar-img { background: var(--bg-hover); overflow: hidden; }
.li-member-avatar-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.li-member-info { min-width: 0; flex: 1; }
.li-member-name { font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.li-member-badges { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
/* Experience badge */
.li-member-exp {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 2px 5px; border-radius: 3px;
}
.li-exp-yes { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid rgba(245,158,11,.3); }
.li-exp-no  { background: rgba(100,100,120,.12); color: var(--text-tertiary); border: 1px solid var(--border); }
/* Rank badge */
.li-member-rank {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 2px 5px; border-radius: 3px;
}
.li-rank-top100   { background: rgba(239,68,68,.12);   color: var(--accent-red);  border: 1px solid rgba(239,68,68,.3); }
.li-rank-top1000  { background: rgba(59,130,246,.12);  color: var(--accent-blue); border: 1px solid rgba(59,130,246,.3); }
.li-rank-unrated  { background: transparent; color: var(--text-tertiary); border: 1px solid var(--border); }
/* Loading / error states */
.li-members-loading {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 28px; color: var(--text-tertiary); font-size: 13px;
}
.li-members-spinner { animation: li-spin 1s linear infinite; }
@keyframes li-spin { to { transform: rotate(360deg); } }
.li-members-error {
  grid-column: 1 / -1; text-align: center; padding: 24px;
  color: var(--text-tertiary); font-size: 12px;
}
.li-slot-open { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px dashed var(--border-light); opacity: .55; }
.li-slot-circle { width: 36px; height: 36px; border-radius: 50%; border: 1.5px dashed var(--border-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.li-slot-open-text { font-size: 12px; color: var(--text-tertiary); font-style: italic; }
/* Footer */
.li-modal-footer {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
  background: var(--bg-secondary); flex-shrink: 0;
}
.dl-modal-join-btn {
  padding: 9px 22px; background: var(--accent-red); border: none; color: #fff;
  border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.dl-modal-join-btn:hover { background: var(--accent-red-dim); transform: translateY(-1px); }

/* ── RULES MODAL ── */
.dl-rules-modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 14px; width: 100%; max-width: 520px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: dl-modal-in .18s ease;
  overflow: hidden; display: flex; flex-direction: column;
}
.dl-rules-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
}
.dl-rules-modal-title-wrap { display: flex; align-items: center; gap: 12px; }
.dl-rules-modal-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25);
  color: var(--accent-blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dl-rules-modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800; letter-spacing: -.3px;
  color: var(--text-primary) !important;
}
.dl-rules-modal-body {
  padding: 18px 22px; overflow-y: auto; max-height: 60vh;
}
.dl-rules-modal-footer {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
  background: var(--bg-secondary);
}

/* ── Rules table restyle ── */
#dl-rules-modal-body table,
#dl-rules-modal-body table.table {
  width: 100%; border-collapse: collapse;
  font-family: 'Inter', sans-serif; font-size: 13px;
  background: transparent; color: var(--text-primary) !important;
}
#dl-rules-modal-body table tr {
  border-bottom: 1px solid var(--border);
}
#dl-rules-modal-body table tr:last-child { border-bottom: none; }
#dl-rules-modal-body table td {
  padding: 10px 12px; vertical-align: top;
  color: var(--text-primary) !important; background: transparent !important;
  font-family: 'Inter', sans-serif; border: none;
}
#dl-rules-modal-body table td:first-child {
  font-weight: 700; font-size: 11px; letter-spacing: .5px;
  text-transform: uppercase; color: var(--text-tertiary) !important;
  white-space: nowrap; width: 30%; padding-right: 16px;
}
#dl-rules-modal-body table tr:nth-child(even) td {
  background: rgba(255,255,255,.03) !important;
}
[data-theme="light"] #dl-rules-modal-body table tr:nth-child(even) td {
  background: rgba(0,0,0,.03) !important;
}
#dl-rules-modal-body p { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }

/* ── HOW IT WORKS MODAL ── */
.hiw-modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 16px; width: 100%; max-width: 640px;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: dl-modal-in .18s ease;
}
.hiw-header {
  padding: 22px 26px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--bg-secondary); z-index: 2;
}
.hiw-header-left { display: flex; align-items: center; gap: 14px; }
.hiw-header-icon {
  width: 42px; height: 42px;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--accent-red); flex-shrink: 0;
}
.hiw-title { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.3px; color: var(--text-primary); }
.hiw-subtitle { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.hiw-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 28px; }
.hiw-steps { display: flex; flex-direction: column; gap: 0; }
.hiw-step { display: flex; gap: 16px; position: relative; }
.hiw-step:not(:last-child)::after {
  content: ''; position: absolute; left: 18px; top: 40px; bottom: -14px;
  width: 2px; background: var(--border);
}
.hiw-step + .hiw-step { margin-top: 14px; }
.hiw-step-num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent-red);
  color: white; font-family: 'Barlow Condensed', sans-serif; font-size: 17px;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1;
}
.hiw-step-content { padding-top: 6px; padding-bottom: 14px; }
.hiw-step-title { font-weight: 700; font-size: 14px; color: var(--text-primary); margin-bottom: 4px; }
.hiw-step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.hiw-section-title { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.2px; margin-bottom: 12px; color: var(--text-primary); }
.hiw-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hiw-format-card { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.hiw-format-name { font-weight: 700; font-size: 13px; color: var(--text-primary); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.hiw-format-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.hiw-payouts { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.hiw-payout-row { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); align-items: center; }
.hiw-payout-row:last-child { border-bottom: none; }
.hiw-payout-row.header { background: var(--bg-tertiary); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-tertiary); }
.hiw-payout-row .place { font-weight: 600; color: var(--text-primary); }
.hiw-payout-row .pct   { color: var(--text-secondary); font-size: 12px; }
.hiw-payout-row .amt   { color: var(--accent-green); font-weight: 700; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; }
.hiw-faq { display: flex; flex-direction: column; gap: 10px; }
.hiw-faq-item { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; }
.hiw-faq-q { font-weight: 700; font-size: 13px; color: var(--text-primary); margin-bottom: 5px; display: flex; align-items: flex-start; gap: 8px; }
.hiw-faq-q::before { content: 'Q'; background: var(--accent-blue); color: white; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 4px; letter-spacing: .5px; flex-shrink: 0; margin-top: 1px; }
.hiw-faq-a { font-size: 12px; color: var(--text-secondary); line-height: 1.6; padding-left: 22px; }
.hiw-footer { padding: 16px 26px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; background: var(--bg-secondary); position: sticky; bottom: 0; }

/* ── BOOTSTRAP HEADING COLOR OVERRIDE ─────────────────────────────
   Bootstrap's body { color: #333 } is inherited by headings/divs.
   Explicitly force var(--text-primary) on everything that should be
   white in dark mode. !important beats Bootstrap specificity.
   ──────────────────────────────────────────────────────────────── */
.dl-page-title,
.dl-modal-league-name,
.dl-modal-stat-value,
.hiw-title,
.hiw-section-title,
.hiw-step-title,
.hiw-format-name,
.hiw-faq-q,
.cl-title,
.cl-type-name,
.cl-review-value,
.cl-success-title,
.dl-fmt-line,
.dl-time-line,
.dl-wf-line,
.dl-entry-price,
.dl-league-name,
.dl-op-value,
.dl-sidebar-item,
.dl-nav-link,
.dl-page-title { color: var(--text-primary) !important; }

/* Eyebrow / tertiary labels should stay muted */
.dl-page-eyebrow { color: var(--text-tertiary) !important; }

/* ── RESPONSIVE ── */
@media (max-width:1200px) {
  .dl-layout { grid-template-columns: 1fr; }
  .dl-sidebar { display: none; }
  .dl-main { padding: 20px; }
  .dl-footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 24px 28px;
  }
  .dl-footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dl-footer-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 24px 26px;
  }
  .dl-footer-contact {
    text-align: left;
  }
  .dl-footer-extra {
    padding: 0 24px 18px;
  }
}
@media (max-width:700px) {
  .dl-main { padding: 14px; }
  .dl-footer-inner {
    padding: 30px 16px 24px;
  }
  .dl-footer-nav {
    grid-template-columns: 1fr 1fr;
  }
  .dl-footer-cta {
    border-radius: 10px;
  }
  .dl-footer-bottom {
    padding: 16px 16px 24px;
  }
  .dl-footer-extra {
    padding: 0 16px 16px;
  }
}

/* Light mode overrides */
[data-theme="light"] .dl-modal-join-btn,
[data-theme="light"] .cl-btn-next,
[data-theme="light"] .dl-btn-primary { color: #ffffff !important; }
