@import url('https://fonts.googleapis.com/css2?family=Yanone+Kaffeesatz:wght@400;600;700&display=swap');

:root { --accent: #9C1637; --accent-dark: #7d1029; --bg: #fff; --card: #fff; --text: #1a1a1a; --muted: #6b6b6b;
  color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); }
h1, h2, .brand { font-family: 'Yanone Kaffeesatz', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
header { background: #fff; border-bottom: 4px solid var(--accent); display: flex; justify-content: space-between;
  align-items: center; padding: .6rem 1rem; flex-wrap: wrap; gap: .5rem; }
header .brand { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.5rem;
  display: flex; align-items: center; gap: .5rem; }
header .brand img { height: 34px; width: auto; }
header nav { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
header nav a { text-decoration: none; }
/* Hoofdnavigatie: neutraal, actieve pagina in bordeaux */
.nav-link { color: #4a4a4a; font-weight: 500; padding: .4rem .85rem; border-radius: 999px; transition: background .15s; }
.nav-link:hover { background: #f2f2f2; color: var(--accent); }
.nav-link.active { background: #f0e2e6; color: var(--accent); font-weight: 700; }
/* Profielknop rechts met avatar */
.nav-user { display: inline-flex; align-items: center; gap: .45rem; background: #f5f5f5; color: #333;
  font-weight: 600; padding: .25rem .85rem .25rem .3rem; border-radius: 999px; margin-left: .5rem; }
.nav-user:hover { background: #f0e2e6; color: var(--accent); }
.nav-user.active { background: #f0e2e6; color: var(--accent); }
.nav-user img, .nav-user-init { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-user-init { display: inline-flex; align-items: center; justify-content: center; background: #f0e2e6;
  color: var(--accent); font-weight: 700; font-size: .9rem; }
.nav-logout { color: #999; font-size: .85rem; padding: .4rem .5rem; }
.nav-logout:hover { color: var(--accent); }
.theme-toggle { background: none; border: 0; font-size: 1.15rem; cursor: pointer; padding: .3rem .4rem;
  margin: 0 0 0 .2rem; border-radius: 50%; line-height: 1; }
.theme-toggle:hover { background: #f2f2f2; }
main { max-width: 860px; margin: 0 auto; padding: 1rem; }
h1 { font-size: 2rem; font-weight: 700; margin: .8rem 0; }
h2 { font-size: 1.4rem; margin-top: 1.6rem; }
.card { background: var(--card); border: 1px solid #eee; border-radius: 10px; padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); margin: .8rem 0; }
/* Evenement-fotokaarten */
.event-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.event-card { position: relative; display: block; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 10; text-decoration: none; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.event-card .ec-img { position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform .3s; }
.event-card:hover .ec-img { transform: scale(1.04); }
.event-card.no-photo .ec-img { background: linear-gradient(135deg, var(--accent) 0%, #5e0d21 100%); }
.event-card::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.ec-date { position: absolute; top: .8rem; right: .8rem; z-index: 2; background: #fff; color: var(--accent);
  border-radius: 12px; padding: .45rem .7rem; text-align: center; line-height: 1.1; font-weight: 700;
  font-family: 'Yanone Kaffeesatz', sans-serif; font-size: .85rem; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.ec-date strong { display: block; font-size: 1.4rem; }
.ec-overlay { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 2;
  display: flex; flex-direction: column; gap: .15rem; }
.ec-status { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.event-card.live .ec-status { animation: blink 1.5s infinite; }
/* Afgeronde evenementen gefaded */
.event-card.closed { opacity: .55; }
.event-card.closed .ec-img { filter: grayscale(.8); }
.event-card.closed:hover { opacity: .95; }
.event-card.closed:hover .ec-img { filter: grayscale(.2); }
.ec-title { font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 1.6rem; font-weight: 700;
  text-transform: uppercase; line-height: 1.05; }
.ec-meta { font-size: .85rem; opacity: .85; }
/* Hero op detailpagina */
.event-hero { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 21 / 9;
  background-size: cover; background-position: center; margin: .4rem 0 1rem; }
.eh-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.78) 100%); color: #fff; font-weight: 600;
  line-height: 1.5; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
label { display: block; margin: .6rem 0; font-size: .95rem; color: var(--muted); }
input, select, textarea { width: 100%; padding: .55rem; border: 1px solid #ccc; border-radius: 6px;
  font-size: 1rem; margin-top: .2rem; color: var(--text); background: #fff; }
form.inline input, form.inline select { width: auto; }
button, .btn { background: var(--accent); color: #fff; border: 0; padding: .6rem 1.4rem; border-radius: 6px;
  font-size: 1.05rem; cursor: pointer; margin-top: .6rem; text-decoration: none; display: inline-block;
  font-family: 'Yanone Kaffeesatz', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
button:hover, .btn:hover { background: var(--accent-dark); }
button.secondary { background: #888; }
.flash { background: #f8e9ed; border: 1px solid #e5bcc7; padding: .6rem .9rem; border-radius: 6px; margin: .6rem 0; }
.error { background: #fdecea; border: 1px solid #f5c6c2; padding: .6rem .9rem; border-radius: 6px; margin: .6rem 0; }
table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 8px; overflow: hidden; }
th, td { padding: .45rem .6rem; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f7f2f4; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.lb td:first-child { font-weight: 700; color: var(--accent); }
.lb td.hot, .lb th.hot { background: #f0e2e6; }
.lb th.hot { color: var(--accent); }
html[data-theme="dark"] .lb td.hot, html[data-theme="dark"] .lb th.hot { background: #3a2229; }
html[data-theme="dark"] .lb th.hot { color: #e78ba3; }
/* Bruto/netto als breuk: bruto hoog, netto laag */
.bn { white-space: nowrap; }
.bn sup { font-size: .85em; font-weight: 700; }
.bn sub { font-size: .85em; color: var(--muted); }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: .6rem 0; }
.tabs button { background: #eee; color: #333; margin: 0; padding: .45rem 1rem; }
.tabs button.active { background: var(--accent); color: #fff; }
.live-dot { color: var(--accent); font-size: .95rem; animation: blink 1.5s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.score-entry input, .holes-edit input { width: 5rem; }
.meta { color: var(--muted); }
.admin-links a { color: var(--accent); }
code { background: #f3f3f3; padding: .1rem .3rem; border-radius: 4px; }



/* Wedstrijdflow */
.nav-live { background: var(--accent); color: #fff !important; padding: .25rem .8rem; border-radius: 999px;
  animation: blink 2s infinite; }
.mini-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.mini-badge { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #eee;
  border-radius: 999px; padding: .35rem .9rem .35rem .4rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.mb-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; font-size: .95rem; flex: 0 0 auto; }
.mb-name { font-weight: 600; }
.mb-hcp { background: #f0e2e6; color: var(--accent); border-radius: 999px; padding: .05rem .5rem;
  font-size: .78rem; font-weight: 700; }
.flights { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.flight-card { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: .9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.flight-title { font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 1.25rem; font-weight: 700;
  text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.flight-member { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; }
.fm-switch { margin: .6rem 0; }
.chip.chip-active span { background: var(--accent); color: #fff; }
a.chip { text-decoration: none; }

/* Reacties */
.comments { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 2rem; }
.comment { display: flex; gap: .7rem; background: #fff; border: 1px solid #eee; border-radius: 14px;
  padding: .9rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.comment.cm-reply { border: 0; box-shadow: none; background: #faf7f8; margin-top: .6rem; padding: .7rem; }
.cm-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; font-size: 1.1rem; }
.cm-main { flex: 1; min-width: 0; }
.cm-head { display: flex; gap: .6rem; align-items: baseline; }
.cm-head strong { font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 1.1rem; text-transform: uppercase; }
.cm-time { color: var(--muted); font-size: .78rem; }
.cm-body { margin: .25rem 0 .4rem; overflow-wrap: break-word; }
.cm-actions { display: flex; gap: .9rem; align-items: center; }
.cm-link { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer;
  padding: 0; margin: 0; font-size: .85rem; font-family: inherit; text-transform: none; letter-spacing: 0; }
.cm-link:hover { background: none; text-decoration: underline; }
.cm-del { color: #999; }
.cm-replyform { margin-top: .5rem; }
.cm-replyform textarea, .cm-form textarea { width: 100%; }
.cm-replyform button, .cm-form button { margin-top: .4rem; }

/* Avatars & spelersdashboard */
.avatar-lg { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: flex; align-items: center; justify-content: center; background: #f0e2e6;
  color: var(--accent); font-weight: 700; font-size: 2rem; font-family: 'Yanone Kaffeesatz', sans-serif; }
.pf-row { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.player-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.player-badge { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 1.2rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); text-decoration: none; color: inherit; }
.player-badge.me { border: 2px solid var(--accent); }
.player-badge.me:hover { box-shadow: 0 4px 12px rgba(156,22,55,.25); }
.pb-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; font-size: 1.7rem; }
.pb-name { font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 1.25rem; text-transform: uppercase; }
.pb-hcp { background: var(--accent); color: #fff; border-radius: 999px; padding: .15rem .7rem;
  font-weight: 700; font-size: .85rem; }
.pb-meta { color: var(--muted); font-size: .82rem; }
.pb-edit { color: var(--accent); font-size: .85rem; font-weight: 600; margin-top: .3rem; }

/* Lus-keuze chips */
.chip-list { display: flex; gap: .5rem; flex-wrap: wrap; margin: .3rem 0 .8rem; }
.chip { display: inline-block; cursor: pointer; margin: 0; }
.chip input { display: none; width: auto; }
.chip span { display: inline-block; padding: .5rem 1.1rem; border-radius: 999px; background: #eee;
  color: #333; font-weight: 700; font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .03em; transition: all .15s; border: 2px solid transparent; }
.chip:hover span { border-color: var(--accent); color: var(--accent); }
.chip input:checked + span { background: var(--accent); color: #fff; }
.chip-btn { background: none; border: 0; padding: 0; margin: 0; }
.chip-btn.chip-on span { background: var(--accent); color: #fff; }
.chip-no { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  color: var(--accent); align-items: center; justify-content: center; font-size: .75rem; margin-right: .4rem; }
.chip span small { opacity: .65; font-size: .75em; margin-left: .25rem; }

/* Admin-dropdown in menubalk */
.nav-admin { position: relative; }
.nav-admin summary { list-style: none; cursor: pointer; color: var(--accent); font-weight: 600; }
.nav-admin summary::after { content: ' ▾'; font-size: .8em; }
.nav-admin summary::-webkit-details-marker { display: none; }
.nav-admin-menu { position: absolute; right: 0; top: 1.8rem; background: #fff; border: 1px solid #eee;
  border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.12); padding: .4rem 0; min-width: 190px; z-index: 50;
  display: flex; flex-direction: column; }
.nav-admin-menu a { padding: .5rem .9rem; color: var(--text) !important; font-weight: 500 !important; }
.nav-admin-menu a:hover { background: #f7f2f4; color: var(--accent) !important; }

/* Scorecard-matrix */
.sc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px;
  border: 1px solid #eee; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
table.scorecard { min-width: 900px; border-radius: 0; }
.scorecard th, .scorecard td { text-align: center; padding: .4rem .35rem; white-space: nowrap; }
.scorecard .sc-name { text-align: left; position: sticky; left: 0; background: #fff; z-index: 2;
  min-width: 130px; box-shadow: 2px 0 4px rgba(0,0,0,.05); }
.sc-head th { background: #f7f2f4; }
.sc-head .sc-name { background: #f7f2f4; }
.sc-par-row td, .sc-par-row .sc-name { color: var(--muted); font-weight: 600; background: #fbf8f9; }
.sc-tot { font-weight: 700; background: #f7f2f4; font-size: 1.05rem; }
.sc-avatar { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #f0e2e6;
  color: var(--accent); align-items: center; justify-content: center; font-weight: 700; font-size: .8rem;
  margin-right: .4rem; object-fit: cover; vertical-align: middle; }
.sc-chip { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  font-weight: 700; }
.sc-eagle  { background: var(--accent-dark); color: #fff; border-radius: 50%; }
.sc-birdie { border: 2px solid var(--accent); color: var(--accent); border-radius: 50%; }
.sc-par    { color: var(--text); }
.sc-bogey  { border: 2px solid #e8a13c; color: #b97914; border-radius: 6px; }
.sc-double { background: #e8a13c; color: #fff; border-radius: 6px; }
.sc-empty  { color: #ccc; }
.sc-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin: .6rem 0; font-size: .85rem; color: var(--muted);
  align-items: center; }
.sc-legend .sc-chip { width: 22px; height: 22px; font-size: 0; }

/* Score-wizard (hole per hole) */
.sw-top { text-align: center; padding-bottom: .4rem; }
.sw-hole-label { font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 1.9rem; font-weight: 700;
  text-transform: uppercase; }
.sw-strip { display: flex; gap: .35rem; overflow-x: auto; padding: .5rem .2rem .8rem;
  border-bottom: 1px solid #eee; -webkit-overflow-scrolling: touch; }
.sw-strip-no { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; text-decoration: none; color: #999; background: #f2f2f2;
  font-weight: 600; transition: all .15s; }
.sw-strip-no.done { background: #f0e2e6; color: var(--accent); }
.sw-strip-no.cur { background: var(--accent); color: #fff; transform: scale(1.25); font-size: 1.1rem; }
.sw-tag { display: inline-block; background: #f0e2e6; color: var(--accent); border-radius: 999px;
  padding: .1rem .55rem; font-size: .78rem; font-weight: 700; margin-right: .3rem; }
.sw-tag-you { background: #e8a13c; color: #fff; }
.sw-bar { display: flex; gap: .6rem; align-items: center; margin-top: .8rem; }
.sw-arrow { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  text-decoration: none; border: 0; cursor: pointer; margin: 0; padding: 0; }
.sw-arrow:hover { background: var(--accent-dark); }
.sw-arrow-off { background: #ddd; cursor: default; }
.sw-arrow-off:hover { background: #ddd; }
.sw-mid { flex: 1; text-align: center; color: var(--accent); font-weight: 700; text-decoration: none;
  text-transform: uppercase; font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 1.1rem; }
.score-wizard { max-width: 420px; margin: 1rem auto; }
.sw-head { display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid #eee; padding-bottom: .8rem; }
.sw-hole { font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 2rem; font-weight: 700; text-transform: uppercase; }
.sw-flag { font-size: 1.4rem; margin-right: .2rem; }
.sw-sub { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.sw-badge { background: var(--accent); color: #fff; border-radius: 50%; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700;
  font-family: 'Yanone Kaffeesatz', sans-serif; }
.sw-player { display: flex; gap: .7rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid #eee; }
.sw-avatar { background: #f0e2e6; color: var(--accent); width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem;
  object-fit: cover; }
.sw-row { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; font-size: 1.05rem; }
.stepper { display: flex; align-items: center; gap: .5rem; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #333;
  border: 1px solid #ccc; font-size: 1.5rem; margin: 0; padding: 0; line-height: 1; }
.stepper button:hover { background: #f5f5f5; color: var(--accent); border-color: var(--accent); }
.stepper input { width: 62px; height: 44px; text-align: center; font-size: 1.3rem; font-weight: 700;
  border: 0; background: #f5f5f5; border-radius: 8px; margin: 0; }
.sw-next { width: 100%; padding: .9rem; font-size: 1.2rem; border-radius: 10px; }
.sw-dots { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 1rem; justify-content: center; }
.sw-dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; text-decoration: none; color: #666; background: #eee; }
.sw-dot.done { background: #f0e2e6; color: var(--accent); font-weight: 700; }
.sw-dot.cur { background: var(--accent); color: #fff; font-weight: 700; }

/* Mobiel: hamburger-menu */
.nav-burger { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--text);
  cursor: pointer; padding: .2rem .5rem; margin: 0; line-height: 1; }
.nav-live-bar { display: none; text-decoration: none; }
@media (max-width: 720px) {
  .nav-burger { display: block; }
  .nav-live-bar { display: inline-flex; margin-left: auto; margin-right: .6rem; }
  header nav .nav-live-menu { display: none; }
  header nav { display: none; }
  header nav.open { display: flex; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: .15rem; padding: .5rem 0 .3rem; border-top: 1px solid #eee; margin-top: .4rem; }
  header nav.open a, header nav.open .nav-user, header nav.open .theme-toggle { border-radius: 8px; }
  header nav.open .nav-link, header nav.open .nav-live, header nav.open .nav-logout { padding: .65rem .8rem; }
  header nav.open .nav-live { align-self: flex-start; }
  header nav.open .nav-user { margin-left: 0; align-self: flex-start; }
  header nav.open .nav-admin summary { padding: .65rem .8rem; display: block; }
  header nav.open .nav-admin-menu { position: static; box-shadow: none; border: 0; padding-left: 1rem; }
  header nav.open .theme-toggle { align-self: flex-start; }
}
html[data-theme="dark"] .nav-burger { color: var(--text); }
html[data-theme="dark"] header nav.open { border-top-color: #2e2e2e; }

/* Flight-rijen in de score-wizard */
.sw-flightrow { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid #eee; }
.sw-flightrow:last-of-type { border-bottom: 0; }
.sw-fr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.sw-fr-info .meta { font-size: .78rem; }
html[data-theme="dark"] .sw-flightrow { border-bottom-color: #2e2e2e; }

/* Klassementborden */
.tabs-link { display: inline-block; padding: .45rem 1rem; border-radius: 999px; background: #eee; color: #333;
  text-decoration: none; font-weight: 700; font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .03em; }
.tabs-link:hover { color: var(--accent); }
.tabs-link.active { background: var(--accent); color: #fff; }
.klassement-board { min-width: 0; }
.klassement-board th, .klassement-board td { font-size: .88rem; }
.kb-plaats { min-width: 2.2rem !important; width: 2.2rem; text-align: right !important;
  font-weight: 700; color: var(--accent); left: 0; }
.klassement-board .sc-name:nth-child(2) { left: 2.2rem; }
.kb-event { color: var(--accent); text-decoration: none; font-weight: 700; }
.kb-event:hover { text-decoration: underline; }
html[data-theme="dark"] .tabs-link { background: #2c2c2c; color: #ddd; }
html[data-theme="dark"] .tabs-link.active { background: var(--accent); color: #fff; }

/* ---------- Donkere modus (schakelbaar; standaard volgt OS via JS) ---------- */
html[data-theme="dark"] { --accent: #c22950; --accent-dark: #9C1637; --bg: #141414; --card: #1e1e1e;
  --text: #ececec; --muted: #a3a3a3; }
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] header { background: #1b1b1b; border-bottom-color: var(--accent-dark); }
html[data-theme="dark"] header .brand { color: var(--text); }
html[data-theme="dark"] header .brand img { background: #fff; border-radius: 50%; padding: 2px; }
html[data-theme="dark"] header nav span { color: #8a8a8a; }
html[data-theme="dark"] .card, html[data-theme="dark"] .comment, html[data-theme="dark"] .player-badge, html[data-theme="dark"] .flight-card, html[data-theme="dark"] .mini-badge, html[data-theme="dark"] .event-hero { background: var(--card); border-color: #333; }
html[data-theme="dark"] .card, html[data-theme="dark"] .comment, html[data-theme="dark"] .player-badge, html[data-theme="dark"] .flight-card, html[data-theme="dark"] .mini-badge { box-shadow: 0 1px 3px rgba(0,0,0,.4); }
html[data-theme="dark"] .comment.cm-reply { background: #262022; }
html[data-theme="dark"] table { background: var(--card); }
html[data-theme="dark"] th, html[data-theme="dark"] td { border-bottom-color: #2e2e2e; }
html[data-theme="dark"] th { background: #262022; color: #b5b5b5; }
html[data-theme="dark"] .scorecard .sc-name { background: var(--card); }
html[data-theme="dark"] .sc-head th, html[data-theme="dark"] .sc-head .sc-name { background: #262022; }
html[data-theme="dark"] .sc-par-row td, html[data-theme="dark"] .sc-par-row .sc-name { background: #221c1e; color: #999; }
html[data-theme="dark"] .sc-tot { background: #262022; }
html[data-theme="dark"] .sc-empty { color: #555; }
html[data-theme="dark"] .sc-par { color: var(--text); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: #262626; color: var(--text); border-color: #454545; }
html[data-theme="dark"] .tabs button { background: #2c2c2c; color: #ddd; }
html[data-theme="dark"] .tabs button.active { background: var(--accent); color: #fff; }
html[data-theme="dark"] .chip span { background: #2c2c2c; color: #ddd; }
html[data-theme="dark"] .chip input:checked + span { background: var(--accent); color: #fff; }
html[data-theme="dark"] .stepper button { background: #262626; color: #eee; border-color: #555; }
html[data-theme="dark"] .stepper input { background: #2c2c2c; color: #fff; }
html[data-theme="dark"] .sw-strip-no { background: #2c2c2c; color: #8a8a8a; }
html[data-theme="dark"] .sw-strip-no.done { background: #3a2229; color: #e78ba3; }
html[data-theme="dark"] .avatar-fallback, html[data-theme="dark"] .sw-tag, html[data-theme="dark"] .mb-hcp, html[data-theme="dark"] .pb-hcp-light, html[data-theme="dark"] .sc-avatar { background: #3a2229; color: #e78ba3; }
html[data-theme="dark"] .pb-hcp { background: var(--accent); color: #fff; }
html[data-theme="dark"] .flash { background: #22301f; border-color: #3b5535; color: #cfe5c8; }
html[data-theme="dark"] .error { background: #331d1b; border-color: #5c3230; color: #eec7c3; }
html[data-theme="dark"] .nav-admin-menu { background: #222; border-color: #383838; }
html[data-theme="dark"] .nav-admin-menu a { color: var(--text) !important; }
html[data-theme="dark"] .nav-admin-menu a:hover { background: #2c2c2c; }
html[data-theme="dark"] .sc-scroll { border-color: #333; }
html[data-theme="dark"] button.secondary { background: #555; }
html[data-theme="dark"] code { background: #2c2c2c; }
html[data-theme="dark"] .cm-del { color: #777; }
/* Menubalk */
html[data-theme="dark"] .nav-link { color: #c9c9c9; }
html[data-theme="dark"] .nav-link:hover { background: #2a2a2a; color: #e78ba3; }
html[data-theme="dark"] .nav-link.active { background: #3a2229; color: #e78ba3; }
html[data-theme="dark"] .nav-user { background: #2a2a2a; color: #ddd; }
html[data-theme="dark"] .nav-user:hover, html[data-theme="dark"] .nav-user.active { background: #3a2229; color: #e78ba3; }
html[data-theme="dark"] .nav-user-init { background: #3a2229; color: #e78ba3; }
html[data-theme="dark"] .nav-logout { color: #777; }
html[data-theme="dark"] .nav-logout:hover { color: #e78ba3; }
html[data-theme="dark"] .nav-admin summary { color: #e78ba3; }
html[data-theme="dark"] .theme-toggle:hover { background: #2a2a2a; }

