/**
 * Cricket Local — Apple-style light mode
 * Active when: html.premium-v3.theme-light (and body.theme-light)
 * High-contrast white / silver surfaces + dark ink.
 * Loaded last so it beats premium-app white-on-dark !important rules.
 */

html.premium-v3.theme-light {
  color-scheme: light;
  /* Pale blue wash + silver metal edges */
  --pv3-bg: #eef3f9;
  --pv3-surface: #ffffff;
  --pv3-surface-raised: #f7fafc;
  --pv3-accent: #0a7a3e;
  --pv3-accent-mid: #0f9d4f;
  --pv3-accent-deep: #086b35;
  --pv3-accent-glow: rgba(10, 122, 62, 0.12);
  --pv3-pale-blue: #dbeafe;
  --pv3-pale-blue-soft: #eff6ff;
  --pv3-pale-blue-mid: #bfdbfe;
  --pv3-silver: #c5ced9;
  --pv3-silver-bright: #e8eef4;
  --pv3-silver-edge: rgba(148, 163, 184, 0.55);
  --pv3-gold: #b8860b;
  --pv3-gold-light: #9a7209;
  --pv3-text: #0a0f1a;
  --pv3-text-high: #000000;
  --pv3-muted: #2a3448;
  --pv3-soft: #3a4458;
  --pv3-scrim: rgba(239, 246, 255, 0.88);
  --pv3-scrim-strong: rgba(238, 243, 249, 0.96);
  --pv3-border: rgba(148, 163, 184, 0.45);
  --premium-text: #0a0f1a;
  --premium-text-muted: #2a3448;
  --premium-text-soft: #3a4458;
  --premium-gold: #9a7209;
  --premium-gold-light: #b8860b;
  --card-bg: #ffffff;
  --glass-surface: #ffffff;
  --glass-border-light: rgba(15, 23, 42, 0.1);
  --glass-border-mid: rgba(15, 23, 42, 0.08);
  --glass-shine: rgba(255, 255, 255, 0.9);
  --glass-shadow-light: 0 8px 28px rgba(15, 23, 42, 0.08);
  --green-900: #052e16;
  --green-800: #0a3d26;
  --green-700: #14532d;
  --green-600: #166534;
  --green-500: #15803d;
  --green-200: #86efac;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --gold: #9a7209;
  --gold-light: #b8860b;
  --text: #0a0f1a;
  --text-muted: #2a3448;
  --text-soft: #3a4458;
  --cream: #f0f6fc;
  --white: #ffffff;
  --border: rgba(148, 163, 184, 0.45);
  --grass-bg: #eef3f9;
  --surface-soft: #f0f6fc;
  --surface-white: #ffffff;
  --ios-card: #ffffff;
  --ios-separator: rgba(148, 163, 184, 0.4);
  --tab-muted: #3a4458;
}

html.premium-v3.theme-light,
html.premium-v3.theme-light body {
  background: #eef3f9 !important;
  background-color: #eef3f9 !important;
  color: #0c1222 !important;
  color-scheme: light;
}

html.premium-v3.theme-light body {
  background:
    radial-gradient(ellipse 100% 55% at 50% -5%, #f8fbff 0%, #eef3f9 42%, #e4ebf4 100%),
    linear-gradient(180deg, #f0f6fc 0%, #e8eef6 100%) !important;
}

/* App shell */
html.premium-v3.theme-light .app {
  background: #eef3f9 !important;
  box-shadow:
    0 0 0 1px var(--pv3-silver-edge),
    0 0 0 2px rgba(255, 255, 255, 0.75),
    0 18px 48px rgba(100, 116, 139, 0.14) !important;
}

html.premium-v3.theme-light .pv3-app-bg {
  opacity: 0.22;
  filter: grayscale(0.15) brightness(1.15);
}

/* Header — silver bar with pale blue wash */
html.premium-v3.theme-light .header {
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f7fb 55%, #e8eef6 100%) !important;
  border-bottom: 1px solid var(--pv3-silver-edge) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 18px rgba(100, 116, 139, 0.1) !important;
  color: #0c1222 !important;
}

html.premium-v3.theme-light .header-title,
html.premium-v3.theme-light .header-subtitle,
html.premium-v3.theme-light .header-text {
  color: #0c1222 !important;
  text-shadow: none !important;
}

html.premium-v3.theme-light .header-subtitle {
  color: #3a4458 !important;
}

html.premium-v3.theme-light .header-back,
html.premium-v3.theme-light .header-help,
html.premium-v3.theme-light .header-settings,
html.premium-v3.theme-light .header-refresh {
  background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  color: #0a3d26 !important;
  box-shadow:
    0 1px 0 #fff inset,
    0 1px 3px rgba(100, 116, 139, 0.12) !important;
}

html.premium-v3.theme-light .app-beta-badge {
  color: #0c4a6e !important;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe) !important;
  border: 1px solid rgba(147, 197, 253, 0.65);
}

html.premium-v3.theme-light .status-bar {
  background: linear-gradient(180deg, #eff6ff 0%, #e8eef6 100%) !important;
  color: #3a4458 !important;
  border-bottom: 1px solid var(--pv3-silver-edge) !important;
}

/* Bottom nav */
html.premium-v3.theme-light .bottom-nav.v3a-tab-bar {
  background: rgba(255, 255, 255, 0.97) !important;
  border-top: 1px solid var(--pv3-silver-edge) !important;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -8px 28px rgba(100, 116, 139, 0.1) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html.premium-v3.theme-light .v3a-tab-bar .nav-item {
  color: #5c6578 !important;
}

html.premium-v3.theme-light .v3a-tab-bar .nav-item.is-active,
html.premium-v3.theme-light .v3a-tab-bar .nav-item[aria-current="page"] {
  color: #0c4a6e !important;
  background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.55) inset;
}

/* Cards / surfaces — white fill, silver metal edge, pale blue wash */
html.premium-v3.theme-light .v3a-ios-card,
html.premium-v3.theme-light .match-card,
html.premium-v3.theme-light .team-picker-row,
html.premium-v3.theme-light .fav-team-card,
html.premium-v3.theme-light .finder-club-card,
html.premium-v3.theme-light .club-home-team-card,
html.premium-v3.theme-light #home-page .club-home-dashboard,
html.premium-v3.theme-light .club-home-about,
html.premium-v3.theme-light .player-stats-toolbar,
html.premium-v3.theme-light .player-stats-result,
html.premium-v3.theme-light .player-stats-profile,
html.premium-v3.theme-light .selectors-compact,
html.premium-v3.theme-light .settings-modal-card,
html.premium-v3.theme-light .home-match-day-card,
html.premium-v3.theme-light .match-day-fixture-card,
html.premium-v3.theme-light .match-day-hero,
html.premium-v3.theme-light .quick-stat,
html.premium-v3.theme-light .cc-card,
html.premium-v3.theme-light .cc-table-wrap,
html.premium-v3.theme-light .scorecard-table-wrap,
html.premium-v3.theme-light .card,
html.premium-v3.theme-light .fixture-card,
html.premium-v3.theme-light .result-card,
html.premium-v3.theme-light .player-avail-panel,
html.premium-v3.theme-light .player-captain-panel,
html.premium-v3.theme-light .player-roles-panel,
html.premium-v3.theme-light .home-highlight-card,
html.premium-v3.theme-light .club-home-welcome,
html.premium-v3.theme-light .club-home-panel {
  background:
    linear-gradient(165deg, #ffffff 0%, #f8fbff 55%, #f0f6fc 100%) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(148, 163, 184, 0.25),
    0 8px 22px rgba(100, 116, 139, 0.1) !important;
  color: #0c1222 !important;
}

/* Typography — high contrast dark ink */
html.premium-v3.theme-light .section-title,
html.premium-v3.theme-light .v3a-screen-hero h2,
html.premium-v3.theme-light .finder-title,
html.premium-v3.theme-light .club-home-name,
html.premium-v3.theme-light .fav-hero-title,
html.premium-v3.theme-light .header-title,
html.premium-v3.theme-light .team-picker-name,
html.premium-v3.theme-light .fav-team-card-name,
html.premium-v3.theme-light .match-team-name,
html.premium-v3.theme-light .finder-club-card-name,
html.premium-v3.theme-light .player-roles-row__name,
html.premium-v3.theme-light .cc-title,
html.premium-v3.theme-light h1,
html.premium-v3.theme-light h2,
html.premium-v3.theme-light h3,
html.premium-v3.theme-light h4 {
  color: #000000 !important;
  text-shadow: none !important;
}

html.premium-v3.theme-light .hint-text,
html.premium-v3.theme-light .finder-sub,
html.premium-v3.theme-light .finder-hint,
html.premium-v3.theme-light .v3a-screen-hero p,
html.premium-v3.theme-light .match-ground,
html.premium-v3.theme-light .match-date-bar,
html.premium-v3.theme-light .fav-hero-sub,
html.premium-v3.theme-light .club-home-hero-kicker,
html.premium-v3.theme-light .player-roles-row__email,
html.premium-v3.theme-light .player-avail-panel__lead,
html.premium-v3.theme-light .player-captain-panel__lead {
  color: #3a4458 !important;
  opacity: 1 !important;
}

html.premium-v3.theme-light .section-header .section-title {
  color: #0c4a6e !important;
}

/* Section headers — pale blue highlight bar */
html.premium-v3.theme-light .section-header {
  background: linear-gradient(90deg, #eff6ff 0%, #f8fbff 60%, transparent 100%) !important;
  border-bottom: 1px solid var(--pv3-silver-edge) !important;
  border-radius: 10px 10px 0 0;
  padding-left: 10px !important;
}

/* Welcome line stays gold for brand */
html.premium-v3.theme-light .club-home-welcome__line,
html.premium-v3.theme-light .club-home-welcome__line strong {
  color: #9a7209 !important;
  text-shadow: none !important;
}

html.premium-v3.theme-light .club-home-welcome {
  background: linear-gradient(135deg, #fffef9 0%, #eff6ff 55%, #f0f6fc 100%) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  box-shadow:
    0 1px 0 #fff inset,
    0 6px 18px rgba(100, 116, 139, 0.08) !important;
}

html.premium-v3.theme-light .club-home-welcome__club {
  color: #3a4458 !important;
}

html.premium-v3.theme-light .club-home-welcome__club strong {
  color: #9a7209 !important;
}

/* Hero cards on home */
html.premium-v3.theme-light .club-home-dashboard-hero {
  background:
    linear-gradient(165deg, #ffffff 0%, #eff6ff 48%, #e2eaf4 100%) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  box-shadow:
    0 1px 0 #fff inset,
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 10px 28px rgba(100, 116, 139, 0.12) !important;
}

html.premium-v3.theme-light .club-home-dashboard-hero .club-home-hero-kicker {
  color: #0369a1 !important;
  text-shadow: none !important;
}

html.premium-v3.theme-light .club-home-dashboard-hero .fav-hero-title {
  color: #000000 !important;
  text-shadow: none !important;
}

html.premium-v3.theme-light .club-home-dashboard-hero .fav-hero-sub {
  color: #3a4458 !important;
}

html.premium-v3.theme-light .club-home-meta-chip {
  background: linear-gradient(180deg, #eff6ff, #e0f2fe) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  color: #0c1222 !important;
  box-shadow: 0 1px 0 #fff inset;
}

html.premium-v3.theme-light .club-home-meta-link,
html.premium-v3.theme-light .club-home-meta-text {
  color: #0a3d26 !important;
}

/* Inputs */
html.premium-v3.theme-light .player-stats-input,
html.premium-v3.theme-light .finder-search,
html.premium-v3.theme-light .player-avail-select,
html.premium-v3.theme-light input,
html.premium-v3.theme-light select,
html.premium-v3.theme-light textarea {
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  color: #0c1222 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

html.premium-v3.theme-light .player-stats-label,
html.premium-v3.theme-light label {
  color: #0c1222 !important;
}

/* Captain lists */
html.premium-v3.theme-light .player-captain-compiled,
html.premium-v3.theme-light .player-captain-group,
html.premium-v3.theme-light .player-captain-selection,
html.premium-v3.theme-light .player-captain-selection__frame-chrome,
html.premium-v3.theme-light .player-captain-picked-frame,
html.premium-v3.theme-light .player-captain-share {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0c1222 !important;
}

html.premium-v3.theme-light .player-captain-selection__row {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0c1222 !important;
}

html.premium-v3.theme-light .player-captain-selection__name,
html.premium-v3.theme-light .player-captain-share__summary {
  color: #0c1222 !important;
}

html.premium-v3.theme-light .player-captain-role-btn {
  background: #eef2f7 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #0c1222 !important;
}

html.premium-v3.theme-light .player-captain-picked-chip {
  background: #ecfdf5 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #0c1222 !important;
}

html.premium-v3.theme-light .player-captain-picked-chip__name {
  color: #0c1222 !important;
}

html.premium-v3.theme-light .player-captain-side-tab,
html.premium-v3.theme-light .player-captain-check {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0c1222 !important;
}

html.premium-v3.theme-light .player-captain-check.is-on {
  background: #fef3c7 !important;
  border-color: rgba(180, 130, 20, 0.45) !important;
}

html.premium-v3.theme-light .player-captain-check.is-ready:not(.is-on) {
  background: #ecfdf5 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

html.premium-v3.theme-light .player-captain-check__name,
html.premium-v3.theme-light .player-captain-editing__side {
  color: #0c1222 !important;
}

html.premium-v3.theme-light .player-captain-check__status,
html.premium-v3.theme-light .player-captain-howto li {
  color: #334155 !important;
}

html.premium-v3.theme-light .player-captain-howto,
html.premium-v3.theme-light .player-captain-editing,
html.premium-v3.theme-light .player-captain-editing__banner,
html.premium-v3.theme-light .player-captain-step {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html.premium-v3.theme-light .player-captain-step__title,
html.premium-v3.theme-light .player-captain-step__lead {
  color: #0c1222 !important;
}

html.premium-v3.theme-light .player-captain-repeat-hint {
  background: #fffbeb !important;
  border-color: rgba(180, 130, 20, 0.35) !important;
  color: #0c1222 !important;
}

html.premium-v3.theme-light .player-captain-share-all-bar {
  background: #ecfdf5 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

html.premium-v3.theme-light .player-captain-share-all-bar__lead {
  color: #065f46 !important;
}

html.premium-v3.theme-light .player-captain-share-bar {
  background: #f0fdf4 !important;
  border-color: rgba(22, 163, 74, 0.35) !important;
}

html.premium-v3.theme-light .player-captain-group__title,
html.premium-v3.theme-light .player-captain-skill-block__title,
html.premium-v3.theme-light .player-captain-pick__name,
html.premium-v3.theme-light .player-captain-selection__title {
  color: #000000 !important;
}

html.premium-v3.theme-light .player-captain-search {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

html.premium-v3.theme-light .player-captain-search .player-stats-label {
  color: #0a3d26 !important;
}

html.premium-v3.theme-light .player-captain-team-note {
  background: #fffef9 !important;
  border: 1px solid rgba(184, 134, 11, 0.35) !important;
  color: #0c1222 !important;
}

html.premium-v3.theme-light .player-captain-team-note-hint {
  color: #5c4a10 !important;
}

html.premium-v3.theme-light .player-captain-wa-preview {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0c1222 !important;
}

/* Settings modal — sits with other settings, clear light chrome */
html.premium-v3.theme-light .settings-modal-card {
  background: linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%) !important;
  color: #0c1222 !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  box-shadow:
    0 1px 0 #fff inset,
    0 -8px 40px rgba(100, 116, 139, 0.14) !important;
}

html.premium-v3.theme-light .settings-modal-close {
  background: linear-gradient(180deg, #fff, #e8eef6) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  color: #0c1222 !important;
}

html.premium-v3.theme-light .settings-fieldset legend {
  color: #0a3d26 !important;
  font-weight: 800;
}

html.premium-v3.theme-light .settings-check {
  color: #0c1222 !important;
}

html.premium-v3.theme-light .settings-appearance {
  border-color: var(--pv3-silver-edge) !important;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 55%, #f8fbff 100%) !important;
  color: #0c1222 !important;
  box-shadow: 0 1px 0 #fff inset, 0 4px 14px rgba(100, 116, 139, 0.08) !important;
}

html.premium-v3.theme-light .settings-appearance__title,
html.premium-v3.theme-light .settings-appearance__lead {
  color: #0c1222 !important;
}

html.premium-v3.theme-light .settings-theme-seg {
  background: linear-gradient(180deg, #e8eef6, #dbeafe) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
}

html.premium-v3.theme-light .settings-theme-seg__btn {
  color: #3a4458 !important;
}

html.premium-v3.theme-light .settings-theme-seg__btn.is-on {
  background: linear-gradient(180deg, #ffffff, #f0f7ff) !important;
  color: #000000 !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
  box-shadow: 0 1px 0 #fff inset, 0 2px 8px rgba(59, 130, 246, 0.12) !important;
}

html.premium-v3.theme-light .settings-install__btn,
html.premium-v3.theme-light .settings-push-btn {
  background: linear-gradient(180deg, #ffffff, #eff6ff) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  color: #0c4a6e !important;
  box-shadow: 0 1px 0 #fff inset;
}

html.premium-v3.theme-light .settings-perm-status,
html.premium-v3.theme-light .hint-text,
html.premium-v3.theme-light .settings-intro,
html.premium-v3.theme-light .settings-onboard-note {
  color: #3a4458 !important;
}

/* Help / FAQ */
html.premium-v3.theme-light .help-modal-card {
  background: linear-gradient(180deg, #f8fbff, #eef3f9) !important;
  color: #0c1222 !important;
  border: 1px solid var(--pv3-silver-edge) !important;
}

html.premium-v3.theme-light .faq-item {
  background: linear-gradient(165deg, #ffffff, #f8fbff) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  box-shadow: 0 1px 0 #fff inset, 0 4px 12px rgba(100, 116, 139, 0.06) !important;
}

html.premium-v3.theme-light .faq-question {
  color: #000000 !important;
}

html.premium-v3.theme-light .faq-answer {
  color: #1a2438 !important;
}

/* Links */
html.premium-v3.theme-light a,
html.premium-v3.theme-light .link-btn {
  color: #0a7a3e !important;
}

html.premium-v3.theme-light .link-btn--warn {
  color: #b91c1c !important;
}

/* Loading */
html.premium-v3.theme-light .loading-overlay {
  background: rgba(242, 244, 247, 0.94) !important;
}

html.premium-v3.theme-light .loading-overlay-card {
  background: linear-gradient(165deg, #ffffff, #eff6ff) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  color: #0c1222 !important;
  box-shadow: 0 1px 0 #fff inset, 0 12px 32px rgba(100, 116, 139, 0.12) !important;
}

html.premium-v3.theme-light .loading-overlay-title,
html.premium-v3.theme-light .loading-overlay-sub,
html.premium-v3.theme-light .loading-overlay-step {
  color: #0c1222 !important;
}

/* Team picker list */
html.premium-v3.theme-light #view-v3a-teams .team-picker-list {
  background: transparent !important;
}

html.premium-v3.theme-light #view-v3a-teams .team-picker-row {
  background: linear-gradient(165deg, #ffffff, #f8fbff) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  box-shadow: 0 1px 0 #fff inset, 0 4px 14px rgba(100, 116, 139, 0.07) !important;
}

html.premium-v3.theme-light #view-v3a-teams .team-picker-name {
  color: #000000 !important;
}

html.premium-v3.theme-light #view-v3a-teams .team-picker-league {
  color: #3a4458 !important;
}

/* Roles summary */
html.premium-v3.theme-light .player-roles-summary {
  background: linear-gradient(145deg, #ffffff, #eff6ff) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
  box-shadow: 0 1px 0 #fff inset, 0 6px 16px rgba(100, 116, 139, 0.08) !important;
}

html.premium-v3.theme-light .player-roles-summary__title {
  color: #9a7209 !important;
}

html.premium-v3.theme-light .player-roles-summary__club-name {
  color: #0a7a3e !important;
}

html.premium-v3.theme-light .player-roles-summary__people li,
html.premium-v3.theme-light .player-roles-row__name {
  color: #000000 !important;
}

html.premium-v3.theme-light .player-roles-row {
  background: linear-gradient(165deg, #ffffff, #f8fbff) !important;
  border: 1px solid var(--pv3-silver-edge) !important;
}

/* Captain / availability chips — pale blue selected */
html.premium-v3.theme-light .player-captain-avail-set__btn.is-on,
html.premium-v3.theme-light .player-captain-avail-set__btn--available.is-on,
html.premium-v3.theme-light [data-avail-status="available"].is-on,
html.premium-v3.theme-light .avail-chip.is-on,
html.premium-v3.theme-light .player-avail-status-btn.is-on {
  background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
  color: #0c4a6e !important;
  box-shadow: 0 1px 0 #fff inset;
}

/* Active nav / selected rows */
html.premium-v3.theme-light .team-picker-row.is-active,
html.premium-v3.theme-light .team-picker-row[aria-current="true"],
html.premium-v3.theme-light .finder-club-card.is-picked,
html.premium-v3.theme-light .fav-team-card.is-active {
  background: linear-gradient(165deg, #eff6ff, #dbeafe) !important;
  border-color: rgba(96, 165, 250, 0.65) !important;
  box-shadow:
    0 1px 0 #fff inset,
    0 0 0 1px rgba(191, 219, 254, 0.8),
    0 6px 16px rgba(59, 130, 246, 0.1) !important;
}

/* Bottom nav live pulse keeps readable on light */
html.premium-v3.theme-light .v3a-tab-bar .nav-item .nav-label {
  color: inherit !important;
}

/* Main content padding area */
html.premium-v3.theme-light .main {
  background: transparent !important;
  color: #0a0f1a !important;
}

/* ═══════════════════════════════════════════════════════════
   FORCE DARK INK — beat premium-app white / mint text
   (same or higher specificity + later cascade)
   ═══════════════════════════════════════════════════════════ */

/* Default body + shell ink */
html.premium-v3.theme-light body,
html.premium-v3.theme-light body.v3a-ios,
html.premium-v3.theme-light body.v3a-mode.v3a-ios,
html.premium-v3.theme-light .app,
html.premium-v3.theme-light .main,
html.premium-v3.theme-light #home-page,
html.premium-v3.theme-light .home-page,
html.premium-v3.theme-light #home-page .club-home-dashboard {
  color: #0a0f1a !important;
}

/* Top app bar: title + subtitle must stay near-black on silver */
html.premium-v3.theme-light .header,
html.premium-v3.theme-light .header * {
  color: #0a0f1a;
}
html.premium-v3.theme-light .header-title,
html.premium-v3.theme-light .header-text,
html.premium-v3.theme-light .header-content {
  color: #000000 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #000000 !important;
}
html.premium-v3.theme-light .header-subtitle {
  color: #1e293b !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #1e293b !important;
  opacity: 1 !important;
}
html.premium-v3.theme-light .header-back,
html.premium-v3.theme-light .header-help,
html.premium-v3.theme-light .header-settings,
html.premium-v3.theme-light .header-refresh,
html.premium-v3.theme-light .header-account {
  color: #052e16 !important;
  -webkit-text-fill-color: #052e16 !important;
}

/* All headings + section labels */
html.premium-v3.theme-light h1,
html.premium-v3.theme-light h2,
html.premium-v3.theme-light h3,
html.premium-v3.theme-light h4,
html.premium-v3.theme-light h5,
html.premium-v3.theme-light .section-title,
html.premium-v3.theme-light .section-header .section-title,
html.premium-v3.theme-light .v3a-screen-hero h2,
html.premium-v3.theme-light .finder-title,
html.premium-v3.theme-light .club-home-name,
html.premium-v3.theme-light .fav-hero-title,
html.premium-v3.theme-light .panel-title,
html.premium-v3.theme-light .cc-title,
html.premium-v3.theme-light .settings-appearance__title,
html.premium-v3.theme-light .settings-install__title,
html.premium-v3.theme-light .settings-fieldset legend {
  color: #000000 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #000000 !important;
}

/* Names on cards / lists (often forced white in dark theme) */
html.premium-v3.theme-light .team-picker-name,
html.premium-v3.theme-light .fav-team-card-name,
html.premium-v3.theme-light .match-team-name,
html.premium-v3.theme-light .finder-club-card-name,
html.premium-v3.theme-light .match-team-label__club,
html.premium-v3.theme-light .live-score-card__team,
html.premium-v3.theme-light .live-score-card__team .match-team-label__club,
html.premium-v3.theme-light .player-roles-row__name,
html.premium-v3.theme-light .player-captain-pick__name,
html.premium-v3.theme-light strong {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  text-shadow: none !important;
}

html.premium-v3.theme-light .match-team-label__side,
html.premium-v3.theme-light .live-score-card__team .match-team-label__side {
  color: #0a3d26 !important;
  -webkit-text-fill-color: #0a3d26 !important;
}

/* Muted / secondary copy — dark slate, not pale mint */
html.premium-v3.theme-light .hint-text,
html.premium-v3.theme-light .finder-sub,
html.premium-v3.theme-light .finder-hint,
html.premium-v3.theme-light .v3a-screen-hero p,
html.premium-v3.theme-light .match-ground,
html.premium-v3.theme-light .match-date-bar,
html.premium-v3.theme-light .fav-hero-sub,
html.premium-v3.theme-light .club-home-hero-kicker,
html.premium-v3.theme-light .status-bar,
html.premium-v3.theme-light .meta,
html.premium-v3.theme-light .sub,
html.premium-v3.theme-light .text-muted,
html.premium-v3.theme-light .small,
html.premium-v3.theme-light p,
html.premium-v3.theme-light li,
html.premium-v3.theme-light span:not(.app-beta-badge):not(.badge):not(.chip):not(.tag) {
  color: inherit;
}
html.premium-v3.theme-light .hint-text,
html.premium-v3.theme-light .finder-sub,
html.premium-v3.theme-light .finder-hint,
html.premium-v3.theme-light .v3a-screen-hero p,
html.premium-v3.theme-light .match-ground,
html.premium-v3.theme-light .match-date-bar,
html.premium-v3.theme-light .fav-hero-sub,
html.premium-v3.theme-light .club-home-hero-kicker,
html.premium-v3.theme-light .home-highlight-empty,
html.premium-v3.theme-light .home-highlight-empty p,
html.premium-v3.theme-light .club-home-about-text,
html.premium-v3.theme-light .player-roles-row__email,
html.premium-v3.theme-light .player-avail-panel__lead,
html.premium-v3.theme-light .player-captain-panel__lead,
html.premium-v3.theme-light .settings-theme-hint,
html.premium-v3.theme-light .settings-intro,
html.premium-v3.theme-light .settings-onboard-note,
html.premium-v3.theme-light .settings-appearance__lead,
html.premium-v3.theme-light .settings-perm-status,
html.premium-v3.theme-light .team-picker-league {
  color: #1e293b !important;
  -webkit-text-fill-color: #1e293b !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Home / setup heroes that force white titles */
html.premium-v3.theme-light .club-home-setup-hero .club-home-hero-kicker,
html.premium-v3.theme-light .club-home-setup .club-home-hero-kicker,
html.premium-v3.theme-light .club-home-dashboard-hero .club-home-hero-kicker {
  color: #0a7a3e !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #0a7a3e !important;
}
html.premium-v3.theme-light .club-home-setup-hero .fav-hero-title,
html.premium-v3.theme-light .club-home-setup .fav-hero-title,
html.premium-v3.theme-light .club-home-dashboard-hero .fav-hero-title {
  color: #000000 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #000000 !important;
}
html.premium-v3.theme-light .club-home-setup-hero .fav-hero-sub,
html.premium-v3.theme-light .club-home-setup .fav-hero-sub,
html.premium-v3.theme-light .club-home-dashboard-hero .fav-hero-sub {
  color: #1e293b !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #1e293b !important;
}
html.premium-v3.theme-light .club-home-setup .finder-search-label,
html.premium-v3.theme-light .club-home-setup .finder-hint {
  color: #0a3d26 !important;
  -webkit-text-fill-color: #0a3d26 !important;
}
html.premium-v3.theme-light .club-home-setup .finder-search {
  color: #0a0f1a !important;
  -webkit-text-fill-color: #0a0f1a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}
html.premium-v3.theme-light .club-home-setup .finder-search::placeholder {
  color: #64748b !important;
}

/* Welcome / brand lines — deep gold, not pale yellow */
html.premium-v3.theme-light .club-home-welcome__line,
html.premium-v3.theme-light .club-home-welcome__line strong {
  color: #7a5a08 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #7a5a08 !important;
}
html.premium-v3.theme-light .club-home-welcome__club {
  color: #1e293b !important;
  -webkit-text-fill-color: #1e293b !important;
}
html.premium-v3.theme-light .club-home-welcome__club strong,
html.premium-v3.theme-light .club-home-welcome__lock {
  color: #7a5a08 !important;
  -webkit-text-fill-color: #7a5a08 !important;
}

/* Quick stats + chips */
html.premium-v3.theme-light .quick-stat-value,
html.premium-v3.theme-light .club-home-quick-stats .quick-stat-value {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}
html.premium-v3.theme-light .quick-stat-label,
html.premium-v3.theme-light .club-home-quick-stats .quick-stat-label {
  color: #1e293b !important;
  -webkit-text-fill-color: #1e293b !important;
}
html.premium-v3.theme-light .home-highlight-kicker {
  color: #0a7a3e !important;
}
html.premium-v3.theme-light .home-quick-chip,
html.premium-v3.theme-light .home-quick-nav a,
html.premium-v3.theme-light .home-quick-nav button {
  color: #0a0f1a !important;
  -webkit-text-fill-color: #0a0f1a !important;
}

/* Match / result boards on light surfaces */
html.premium-v3.theme-light .cricket-result-board__side,
html.premium-v3.theme-light .cricket-result-board__teams-vs {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
}
html.premium-v3.theme-light .cricket-result-board__name {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  text-shadow: none !important;
}
html.premium-v3.theme-light .cricket-result-board__team--winner .cricket-result-board__name {
  color: #052e16 !important;
  -webkit-text-fill-color: #052e16 !important;
  text-shadow: none !important;
}
html.premium-v3.theme-light .cricket-result-board__value--hero,
html.premium-v3.theme-light .cricket-result-board__stat--winner .cricket-result-board__value--hero {
  color: #7a5a08 !important;
  -webkit-text-fill-color: #7a5a08 !important;
  text-shadow: none !important;
}
html.premium-v3.theme-light .match-result-banner {
  color: #14532d !important;
  -webkit-text-fill-color: #14532d !important;
  text-shadow: none !important;
  background: linear-gradient(135deg, #ecfdf5, #fef9c3) !important;
  border-color: rgba(10, 122, 62, 0.35) !important;
}
html.premium-v3.theme-light .match-card-btn {
  color: #0a0f1a !important;
  -webkit-text-fill-color: #0a0f1a !important;
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}
html.premium-v3.theme-light .match-card-btn--primary {
  color: #052e16 !important;
  -webkit-text-fill-color: #052e16 !important;
}
html.premium-v3.theme-light .match-data-warning,
html.premium-v3.theme-light .match-data-warning-text {
  color: #713f12 !important;
  -webkit-text-fill-color: #713f12 !important;
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
}

/* Live / score cards */
html.premium-v3.theme-light .live-score-card,
html.premium-v3.theme-light .live-bulletin-ticker,
html.premium-v3.theme-light .match-day-hero,
html.premium-v3.theme-light .fixture-card,
html.premium-v3.theme-light .result-card,
html.premium-v3.theme-light .match-card {
  color: #0a0f1a !important;
}
html.premium-v3.theme-light .live-score-card *,
html.premium-v3.theme-light .fixture-card *,
html.premium-v3.theme-light .result-card * {
  text-shadow: none;
}

/* Tables / standings */
html.premium-v3.theme-light table,
html.premium-v3.theme-light th,
html.premium-v3.theme-light td,
html.premium-v3.theme-light .cc-table th,
html.premium-v3.theme-light .cc-table td,
html.premium-v3.theme-light .scorecard-table th,
html.premium-v3.theme-light .scorecard-table td {
  color: #0a0f1a !important;
}
html.premium-v3.theme-light th {
  color: #000000 !important;
  background: #f1f5f9 !important;
}

/* Modals (settings / help / match) */
html.premium-v3.theme-light .settings-modal-card,
html.premium-v3.theme-light .help-modal-card,
html.premium-v3.theme-light .match-modal-card,
html.premium-v3.theme-light .opponent-modal-card {
  color: #0a0f1a !important;
}
html.premium-v3.theme-light .settings-modal-card h2,
html.premium-v3.theme-light .help-modal-card h2,
html.premium-v3.theme-light #settings-modal-title,
html.premium-v3.theme-light #help-modal-title {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}
html.premium-v3.theme-light .faq-question {
  color: #000000 !important;
}
html.premium-v3.theme-light .faq-answer,
html.premium-v3.theme-light .faq-answer p {
  color: #1e293b !important;
}

/* Keep primary buttons readable (dark green fill → white ok) */
html.premium-v3.theme-light .btn-primary,
html.premium-v3.theme-light button.btn-primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Photo-hero strips only: keep light ink on dark image backgrounds */
html.premium-v3.theme-light .match-card-hero,
html.premium-v3.theme-light .match-card-hero * {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55) !important;
}
html.premium-v3.theme-light .match-card-hero__team strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Live / match day / captain / HOF / fantasy — dark ink on pale surfaces */
html.premium-v3.theme-light .live-studio,
html.premium-v3.theme-light .live-studio *,
html.premium-v3.theme-light .live-score-card,
html.premium-v3.theme-light .live-score-card :not(.live-score-card__badge),
html.premium-v3.theme-light .match-day-hero,
html.premium-v3.theme-light .match-day-hero *,
html.premium-v3.theme-light .live-hero,
html.premium-v3.theme-light .live-hero *,
html.premium-v3.theme-light .live-bulletin-ticker,
html.premium-v3.theme-light .live-bulletin-ticker *,
html.premium-v3.theme-light .player-captain-panel,
html.premium-v3.theme-light .player-captain-panel *,
html.premium-v3.theme-light .player-avail-panel,
html.premium-v3.theme-light .player-avail-panel *,
html.premium-v3.theme-light .hall-of-fame-block,
html.premium-v3.theme-light .hall-of-fame-block *,
html.premium-v3.theme-light .club-home-content,
html.premium-v3.theme-light .club-home-content *,
html.premium-v3.theme-light .fantasy-app,
html.premium-v3.theme-light .fantasy-app *,
html.premium-v3.theme-light .empty-state,
html.premium-v3.theme-light .empty-state *,
html.premium-v3.theme-light .home-highlight-card,
html.premium-v3.theme-light .home-highlight-card *,
html.premium-v3.theme-light .home-match-day-card,
html.premium-v3.theme-light .home-match-day-card *,
html.premium-v3.theme-light .club-home-welcome,
html.premium-v3.theme-light .club-home-welcome *,
html.premium-v3.theme-light .club-home-hero,
html.premium-v3.theme-light .club-home-hero *,
html.premium-v3.theme-light .v3a-screen-hero,
html.premium-v3.theme-light .v3a-screen-hero *,
html.premium-v3.theme-light .live-studio__empty-hero,
html.premium-v3.theme-light .live-studio__empty-hero * {
  color: #0a0f1a !important;
  -webkit-text-fill-color: #0a0f1a !important;
  text-shadow: none !important;
}

html.premium-v3.theme-light .empty-state__lead,
html.premium-v3.theme-light .hint-text,
html.premium-v3.theme-light .fav-hero-sub,
html.premium-v3.theme-light .v3a-screen-hero p,
html.premium-v3.theme-light .player-captain-panel__lead,
html.premium-v3.theme-light .player-avail-panel__lead {
  color: #2a3448 !important;
  -webkit-text-fill-color: #2a3448 !important;
}

html.premium-v3.theme-light .btn-primary,
html.premium-v3.theme-light button.btn-primary,
html.premium-v3.theme-light .empty-state__cta,
html.premium-v3.theme-light .home-match-day-card__btn {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html.premium-v3.theme-light .live-studio,
html.premium-v3.theme-light .live-score-card,
html.premium-v3.theme-light .match-day-hero,
html.premium-v3.theme-light .player-captain-panel,
html.premium-v3.theme-light .player-avail-panel,
html.premium-v3.theme-light .hall-of-fame-block,
html.premium-v3.theme-light .home-highlight-card,
html.premium-v3.theme-light .home-match-day-card {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
}

/* Home HOF plaques keep gold / silver / emboss through the blanket ink rules */
html.premium-v3.theme-light .hof-plaque,
html.premium-v3.theme-light .hof-plaque .hall-of-fame-block,
html.premium-v3.theme-light .hof-plaque__card {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.28) 0 1px,
      rgba(255, 255, 255, 0) 1px 3px,
      rgba(32, 36, 42, 0.08) 3px 4px
    ),
    linear-gradient(
      158deg,
      #f7f5f0 0%,
      #c9cfd6 12%,
      #eceef1 26%,
      #a7b0ba 40%,
      #e6e8ec 54%,
      #959ea9 70%,
      #dfe3e8 84%,
      #b6bec6 100%
    ) !important;
  border-color: #d4af37 !important;
  color: #2a261c !important;
  -webkit-text-fill-color: unset;
}

html.premium-v3.theme-light .hof-plaque *,
html.premium-v3.theme-light .club-home-content .hof-plaque * {
  -webkit-text-fill-color: unset;
}

html.premium-v3.theme-light .hof-plaque__eyebrow,
html.premium-v3.theme-light .club-home-content .hof-plaque__eyebrow {
  color: #8a6a12 !important;
  -webkit-text-fill-color: #8a6a12 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 -1px 0 rgba(80, 55, 0, 0.32) !important;
}

html.premium-v3.theme-light .hof-plaque__title,
html.premium-v3.theme-light .hof-plaque .hall-of-fame-section-title,
html.premium-v3.theme-light .hof-plaque__card-title,
html.premium-v3.theme-light .hof-plaque .hall-of-fame-block-title,
html.premium-v3.theme-light .club-home-content .hof-plaque__title,
html.premium-v3.theme-light .club-home-content .hof-plaque .hall-of-fame-section-title,
html.premium-v3.theme-light .club-home-content .hof-plaque__card-title,
html.premium-v3.theme-light .club-home-content .hof-plaque .hall-of-fame-block-title {
  color: #7a5a10 !important;
  -webkit-text-fill-color: #7a5a10 !important;
  text-shadow:
    0 1px 0 rgba(255, 248, 220, 0.98),
    0 2px 0 rgba(255, 236, 179, 0.45),
    0 -1px 0 rgba(70, 45, 0, 0.48) !important;
}

html.premium-v3.theme-light .hof-plaque__kicker,
html.premium-v3.theme-light .hof-plaque .hall-of-fame-weekly-kicker,
html.premium-v3.theme-light .hof-plaque .stats-player-name,
html.premium-v3.theme-light .hof-plaque .player-name-link.stats-player-name,
html.premium-v3.theme-light .club-home-content .hof-plaque .stats-player-name {
  color: #1c1810 !important;
  -webkit-text-fill-color: #1c1810 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78), 0 -1px 0 rgba(0, 0, 0, 0.16) !important;
}

html.premium-v3.theme-light .hof-plaque__hint,
html.premium-v3.theme-light .hof-plaque .player-roster-hint,
html.premium-v3.theme-light .hof-plaque .hall-of-fame-empty-note,
html.premium-v3.theme-light .hof-plaque .stats-player-meta,
html.premium-v3.theme-light .hof-plaque .stats-table-head,
html.premium-v3.theme-light .hof-plaque .empty-state p,
html.premium-v3.theme-light .club-home-content .hof-plaque .player-roster-hint {
  color: #4a4538 !important;
  -webkit-text-fill-color: #4a4538 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

html.premium-v3.theme-light .hof-plaque .stats-value-num,
html.premium-v3.theme-light .club-home-content .hof-plaque .stats-value-num {
  color: #7a5a10 !important;
  -webkit-text-fill-color: #7a5a10 !important;
  text-shadow: 0 1px 0 rgba(255, 248, 220, 0.95), 0 -1px 0 rgba(70, 45, 0, 0.3) !important;
}

html.premium-v3.theme-light .hof-plaque .stats-value-unit {
  color: #5c4a20 !important;
  -webkit-text-fill-color: #5c4a20 !important;
}

html.premium-v3.theme-light .hof-plaque .link-btn {
  color: #8a6a12 !important;
  -webkit-text-fill-color: #8a6a12 !important;
}
