* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
}

header {
  background: #16213e;
  padding: 1.5rem 2rem;
  text-align: center;
  border-bottom: 3px solid #e94560;
}

header h1 {
  font-size: 2.2rem;
  color: #e94560;
  margin-bottom: 1rem;
}

.header-nav {
  margin-bottom: 1rem;
}

.nav-btn {
  padding: 0.4rem 1.4rem;
  border-radius: 20px;
  border: 2px solid #e94560;
  background: transparent;
  color: #e94560;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover, .nav-btn.actief {
  background: #e94560;
  color: white;
}

.uitslagen-panel {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.uitslagen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.uitslagen-header h2 {
  color: #eee;
  font-size: 1.2rem;
}

.sluit-btn {
  background: transparent;
  border: 1px solid #555;
  color: #aaa;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.sluit-btn:hover {
  border-color: #e94560;
  color: #e94560;
}

.uitslag-rij {
  background: #16213e;
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  border: 1px solid #0f3460;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.uitslag-datum {
  color: #aaa;
  font-size: 0.8rem;
  min-width: 80px;
}

.uitslag-clubs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

.uitslag-clubs img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.uitslag-score {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e94560;
  letter-spacing: 2px;
  min-width: 50px;
  text-align: center;
}

.uitslag-clubs .winnaar {
  color: #4caf50;
  font-weight: bold;
}

.beste-voorspeller {
  font-size: 0.85rem;
  color: #f0c040;
  white-space: nowrap;
  margin-left: auto;
}

.club-zoek {
  position: relative;
  max-width: 340px;
  margin: 0 auto 1rem;
}

.club-zoek input {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 2px solid #0f3460;
  background: #0f3460;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  text-align: center;
}

.club-zoek input:focus {
  border-color: #e94560;
}

.club-zoek-resultaten {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 10px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.zoek-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.zoek-item:hover {
  background: #1e2d4e;
}

.zoek-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.zoek-naam {
  flex: 1;
  font-size: 0.9rem;
}

.zoek-ster {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0 0.4rem;
  color: #888;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.zoek-ster:hover {
  transform: scale(1.2);
}

.zoek-ster.favoriet {
  color: #ffd84d;
}

.zoek-land {
  font-size: 0.78rem;
  color: #aaa;
  white-space: nowrap;
}

.zoek-geen {
  padding: 0.7rem 1rem;
  color: #666;
  font-size: 0.9rem;
  text-align: center;
}

.gebruikers-balk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.gebruikers-lijst {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gebruiker-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  border: 2px solid #0f3460;
  background: #0f3460;
  color: #aaa;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.gebruiker-btn:hover {
  border-color: #e94560;
  color: #fff;
}

.gebruiker-btn.actief {
  background: #e94560;
  border-color: #e94560;
  color: #fff;
  font-weight: bold;
}

.gebruiker-wrap {
  display: flex;
  align-items: center;
}

.gebruiker-verwijder {
  padding: 0.2rem 0.5rem;
  margin-left: 2px;
  border-radius: 0 20px 20px 0;
  border: 2px solid #0f3460;
  border-left: none;
  background: #0f3460;
  color: #666;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.gebruiker-verwijder:hover {
  background: #e94560;
  border-color: #e94560;
  color: white;
}

.gebruiker-wrap .gebruiker-btn {
  border-radius: 20px 0 0 20px;
}

.gebruiker-wrap .gebruiker-btn.actief + .gebruiker-verwijder {
  border-color: #e94560;
  border-left: none;
}

.gebruiker-toevoegen {
  padding: 0.45rem 1rem;
  border-radius: 20px;
  border: 2px dashed #0f3460;
  background: transparent;
  color: #aaa;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.gebruiker-toevoegen:hover {
  border-color: #e94560;
  color: #e94560;
}

.nieuwe-gebruiker {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nieuwe-gebruiker input {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: 2px solid #0f3460;
  background: #0f3460;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.nieuwe-gebruiker input:focus {
  border-color: #e94560;
}

.nieuwe-gebruiker button {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.nieuwe-gebruiker .annuleer {
  background: #0f3460;
}

.geen-gebruiker {
  text-align: center;
  margin-top: 4rem;
  color: #666;
  font-size: 1.1rem;
}

.hidden {
  display: none !important;
}

main {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.wedstrijd-maker {
  background: #16213e;
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid #0f3460;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.club-blok {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 180px;
}

.club-logo-groot {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.2;
  transition: opacity 0.3s;
}

.club-logo-groot.actief {
  opacity: 1;
}

select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 2px solid #0f3460;
  background: #0f3460;
  color: #fff;
  cursor: pointer;
  outline: none;
  text-align: center;
}

select:focus {
  border-color: #e94560;
}

.score-midden {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.score-midden input {
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  border: 2px solid #0f3460;
  border-radius: 10px;
  background: #0f3460;
  color: #fff;
  outline: none;
}

.score-midden input:focus {
  border-color: #e94560;
}

.score-midden span {
  font-size: 1.8rem;
  color: #aaa;
}

button {
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #e94560;
  color: white;
  font-weight: bold;
  transition: background 0.2s;
}

button:hover {
  background: #c73652;
}

.fout {
  color: #e94560;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.sectie-titel {
  margin: 2rem 0 1rem;
  font-size: 1.2rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #0f3460;
  padding-bottom: 0.5rem;
}

.ajax-wedstrijden {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ajax-wedstrijd {
  background: #16213e;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  border: 1px solid #0f3460;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.datum {
  color: #aaa;
  font-size: 0.85rem;
  min-width: 80px;
}

.ajax-match {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}

.club-blok-klein {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 140px;
  text-align: center;
}

.club-blok-klein img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.club-blok-klein span {
  font-size: 0.95rem;
  font-weight: bold;
}

.score-midden-klein {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.score-midden-klein input {
  width: 48px;
  height: 48px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  border: 2px solid #0f3460;
  border-radius: 8px;
  background: #0f3460;
  color: #fff;
  outline: none;
}

.score-midden-klein input:focus {
  border-color: #e94560;
}

.score-midden-klein span {
  font-size: 1.4rem;
  color: #aaa;
}

.live-minuut {
  font-size: 0.8rem;
  font-weight: bold;
  color: #aaa;
}

.live-minuut.live {
  color: #4caf50;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.ajax-wedstrijden button {
  margin-top: 0.5rem;
  align-self: center;
}

.scorer-input {
  width: 100%;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 2px solid #0f3460;
  background: #0f3460;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  text-align: center;
}

.scorer-input:focus {
  border-color: #e94560;
}

.scorer-input::placeholder {
  color: #555;
}

.lijst {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.voorspelling {
  background: #16213e;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #0f3460;
  gap: 1rem;
}

.voorspelling .clubs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
}

.voorspelling .clubs img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.voorspelling .score {
  font-size: 1.3rem;
  font-weight: bold;
  color: #e94560;
  letter-spacing: 2px;
}

.voorspelling button.verwijder {
  background: transparent;
  border: 1px solid #e94560;
  color: #e94560;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

.voorspelling button.verwijder:hover {
  background: #e94560;
  color: white;
}

.stand-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.stand-tabel thead tr {
  border-bottom: 2px solid #0f3460;
  color: #aaa;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stand-tabel th,
.stand-tabel td {
  padding: 0.6rem 0.5rem;
  text-align: center;
}

.stand-tabel td.club-naam {
  text-align: left;
  padding-left: 0.4rem;
}

.stand-tabel tbody tr {
  border-bottom: 1px solid #0f3460;
  transition: background 0.15s;
}

.stand-tabel tbody tr:hover {
  background: #1e2d4e;
}

.stand-tabel .logo-cel img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
}

.stand-tabel .pos {
  color: #aaa;
  width: 28px;
}

.stand-tabel .punten {
  font-weight: bold;
  color: #eee;
}

.stand-tabel .pos-ds {
  color: #4caf50;
}

.stand-tabel .neg-ds {
  color: #e94560;
}

.stand-tabel .ajax-rij {
  background: #1a2a4a;
}

.stand-tabel .ajax-rij td.club-naam {
  color: #e94560;
  font-weight: bold;
}

.code-gate {
  position: fixed;
  inset: 0;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.code-gate.hidden {
  display: none;
}

.code-gate-box {
  background: #16213e;
  border: 3px solid #e94560;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.code-gate-box h1 {
  color: #e94560;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.code-gate-box p {
  color: #eee;
  margin-bottom: 1rem;
}

.code-gate-box input {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.6rem;
  letter-spacing: 0.5rem;
  text-align: center;
  border-radius: 8px;
  border: 2px solid #e94560;
  background: #1a1a2e;
  color: #eee;
  margin-bottom: 1rem;
}

.code-gate-box button {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  background: #e94560;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.code-gate-box button:hover {
  background: #d63651;
}

.code-fout {
  color: #e94560;
  margin-bottom: 0.8rem;
  font-weight: bold;
}

.code-fout.hidden {
  display: none;
}

/* Chat */
.chat-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0 1rem;
}

.chat-berichten {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 55vh;
  overflow-y: auto;
  background: #0f1626;
  border: 2px solid #16213e;
  border-radius: 8px;
  padding: 0.8rem;
}

.chat-bericht {
  max-width: 75%;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  background: #16213e;
  align-self: flex-start;
  word-wrap: break-word;
}

.chat-bericht.eigen {
  align-self: flex-end;
  background: #e94560;
  color: white;
}

.chat-bericht .afzender {
  display: block;
  font-size: 0.75rem;
  color: #e94560;
  font-weight: bold;
  margin-bottom: 0.15rem;
}

.chat-bericht.eigen .afzender {
  color: #ffdfe4;
}

.chat-bericht .tijd {
  display: block;
  font-size: 0.65rem;
  color: #888;
  margin-top: 0.2rem;
  text-align: right;
}

.chat-bericht.eigen .tijd {
  color: #ffdfe4;
}

.chat-input-wrap {
  display: flex;
  gap: 0.5rem;
}

.chat-input-wrap input {
  flex: 1;
  padding: 0.7rem;
  border-radius: 8px;
  border: 2px solid #16213e;
  background: #0f1626;
  color: #eee;
  font-size: 1rem;
}

.chat-input-wrap input:focus {
  outline: none;
  border-color: #e94560;
}

.chat-input-wrap button {
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 8px;
  background: #e94560;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.chat-input-wrap button:hover {
  background: #d63651;
}

.chat-input-wrap button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-hint {
  color: #999;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
}

.chat-leeg {
  text-align: center;
  color: #666;
  padding: 2rem;
}

.favoriet-kop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  max-width: 700px;
  margin: 2rem auto 1rem;
  padding: 0 1rem;
}

.favoriet-kop h2 {
  margin: 0;
  flex: 1;
  text-align: center;
}

.favoriet-verwijder {
  background: none;
  border: none;
  color: #888;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
}

.favoriet-verwijder:hover {
  color: #e94560;
}

/* Samenvattingen */
.samenvattingen-keuze {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.samenvattingen-keuze button {
  padding: 0.4rem 1rem;
  border-radius: 18px;
  border: 2px solid #16213e;
  background: #0f1626;
  color: #ccc;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.samenvattingen-keuze button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.samenvattingen-keuze button:hover {
  border-color: #e94560;
  color: #fff;
}

.samenvattingen-keuze button.actief {
  background: #e94560;
  border-color: #e94560;
  color: white;
}

.samenvatting-item {
  background: #16213e;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.samenvatting-item:hover {
  background: #1e2d4e;
}

.samenvatting-datum {
  color: #888;
  font-size: 0.8rem;
  min-width: 95px;
}

.samenvatting-clubs {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.samenvatting-clubs img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.samenvatting-score {
  font-weight: bold;
  color: #e94560;
  padding: 0 0.3rem;
}

.samenvatting-play {
  background: #e94560;
  color: white;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.samenvatting-leeg {
  text-align: center;
  color: #666;
  padding: 2rem 1rem;
}

/* Stand van het gokken */
.gokstand-badge {
  display: inline-block;
  background: #ffd84d;
  color: #1a1a2e;
  border-radius: 10px;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 0.3rem;
  min-width: 1.4rem;
  text-align: center;
}

.gokstand-badge.hidden {
  display: none;
}

.nav-btn.actief .gokstand-badge {
  background: #fff;
  color: #e94560;
}

.gokstand-legenda {
  background: #16213e;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 0 1rem 1rem;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
}

.gokstand-tabel {
  width: calc(100% - 2rem);
  margin: 0 1rem;
  border-collapse: collapse;
  background: #16213e;
  border-radius: 8px;
  overflow: hidden;
}

.gokstand-tabel th,
.gokstand-tabel td {
  padding: 0.6rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid #0f1626;
}

.gokstand-tabel th {
  background: #0f1626;
  color: #e94560;
  font-size: 0.85rem;
}

.gokstand-tabel td.speler {
  text-align: left;
  font-weight: bold;
  color: #eee;
}

.gokstand-tabel tr:last-child td {
  border-bottom: none;
}

.gokstand-tabel .punten {
  color: #ffd84d;
  font-weight: bold;
  font-size: 1.1rem;
}

.gokstand-tabel .goud { background: rgba(255, 216, 77, 0.15); }
.gokstand-tabel .zilver { background: rgba(192, 192, 192, 0.08); }
.gokstand-tabel .brons { background: rgba(205, 127, 50, 0.12); }

.vp-kop {
  margin: 1.5rem 0 0.5rem;
  color: #eee;
  font-size: 1rem;
}

.vp-speler-blok {
  background: #16213e;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
  border: 1px solid #0f3460;
}

.vp-speler-naam {
  color: #ffd84d;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.vp-rij {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.82rem;
  color: #ccc;
  border-top: 1px solid #0f3460;
}
.vp-rij:first-of-type { border-top: none; }

.vp-datum { color: #777; min-width: 6rem; font-size: 0.75rem; }
.vp-wedstrijd { display: flex; align-items: center; gap: 0.3rem; flex: 1; flex-wrap: wrap; }
.vp-club { color: #ccc; }
.vp-logo { width: 16px; height: 16px; object-fit: contain; }
.vp-voorspel { color: #e94560; font-weight: bold; margin: 0 0.25rem; }
.vp-werkelijk { color: #ffd84d; font-weight: bold; }
.vp-wacht { color: #555; }

.gokstand-sub {
  margin: 2rem 1rem 0.3rem !important;
  text-align: left !important;
  font-size: 1.1rem !important;
}

.gokstand-hint {
  color: #999;
  font-size: 0.85rem;
  margin: 0 1rem 1rem;
}

.werkelijke-match {
  background: #16213e;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin: 0.5rem 1rem;
}

.werkelijke-match-kop {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.werkelijke-match-kop .score {
  color: #e94560;
  font-weight: bold;
}

.werkelijke-match-invul {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.4rem;
  align-items: center;
}

.werkelijke-match-invul input {
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 2px solid #0f1626;
  background: #0f1626;
  color: #eee;
  font-size: 0.85rem;
}

.werkelijke-match-invul input:focus {
  outline: none;
  border-color: #e94560;
}

.werkelijke-match-invul button {
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: 6px;
  background: #e94560;
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
}

.werkelijke-match-invul button:hover {
  background: #d63651;
}
