:root { --bg:#111827; --card:#1f2933; --text:#e6edf3; --muted:#4b5563; --accent:#2563eb; --danger:#ef4444; }
*{ box-sizing:border-box; }
body{ margin:0; background:var(--bg); color:var(--text); font:16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
header{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; border-bottom:1px solid #222; position:sticky; top:0; background:var(--bg); z-index:10; }
h1{ margin:0; font-size:20px; }
nav a.btn{ margin-left:8px; }
main{ padding:24px; }

/* Layout voor alle pagina's behalve login: centreren en leesbaar maken */
body:not(.login-page) main{
  max-width: 960px;
  margin: 0 auto;
}

/* Hyrox pagina weer volledige breedte */
body.hyrox-page main{
  max-width: none;
  margin: 0;
}

.toolbar{ display:flex; gap:8px; margin-bottom:16px; }
.toolbar input, .toolbar select{ background:var(--card); border:1px solid #222; color:var(--text); padding:8px 10px; border-radius:10px; }
.table{ width:100%; border-collapse:collapse; background:var(--card); border:1px solid #222; border-radius:14px; overflow:hidden; }
.table th, .table td{ padding:12px; border-bottom:1px solid #222; }
.table th{ text-align:left; font-weight:600; color:var(--muted); background:#12161d; }
.table .actions{ display:flex; gap:8px; }
.btn{ display:inline-block; padding:8px 12px; border-radius:10px; background:var(--accent); color:white; text-decoration:none; border:0; cursor:pointer; }
.btn.secondary{ background:#374151; }
.btn.danger{ background:var(--danger); }
.btn:hover{ filter:brightness(1.05); }
.form{ background:var(--card); padding:16px; border:1px solid #222; border-radius:14px; max-width:900px; }
.form .grid{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
.form label{ display:flex; flex-direction:column; gap:6px; color:var(--muted); }
.form input, .form textarea{ background:#0f141b; border:1px solid #222; color:var(--text); padding:10px 12px; border-radius:10px; }
.form .field-group{ grid-column: 1 / -1; background:#0f141b; border:1px solid #222; border-radius:10px; padding:10px 12px; }
.form .field-group .label{ display:block; font-weight:600; color:var(--muted); margin-bottom:6px; }
.form .field-group .radios{ display:flex; gap:16px; }
.form .field-group .radio{ display:flex; align-items:center; gap:8px; }
.form-actions{ display:flex; gap:10px; margin-top:14px; }
footer{ padding:12px 24px; color:var(--muted); border-top:1px solid #222; }



.hyrox-config {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-bottom:16px;
  background:var(--card);
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #222;
}
.hyrox-config label {
  display:flex;
  flex-direction:column;
  gap:4px;
  color:var(--muted);
}
.hyrox-config input[type=number] {
  background:#0f141b;
  border:1px solid #222;
  border-radius:10px;
  padding:6px 8px;
  color:var(--text);
  max-width:120px;
}
.hyrox-grid {
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:22px;
  margin-top:16px;
  justify-content:center;
}
@media (max-width: 1200px) {
  .hyrox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content:center;
  }
}
@media (max-width: 700px) {
  .hyrox-grid {
    grid-template-columns: 1fr;
    justify-content:center;
  }
}
.hyrox-slot {
  background:var(--card);
  border-radius:14px;
  border:1px solid #222;
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.hyrox-slot h3 {
  margin:0;
  font-size:16px;
}
.hyrox-slot select {
  background:#0f141b;
  border:1px solid #222;
  border-radius:10px;
  padding:8px 10px;
  color:var(--text);
  width:100%;
}
.hyrox-slot .timer-display {
  font-size:24px;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-align:center;
  padding:8px 10px;
  border-radius:10px;
  background:#0f141b;
  border:1px solid #222;
}
.hyrox-slot .table.tiny th,
.hyrox-slot .table.tiny td {
  padding:6px 8px;
  font-size:12px;
}


.hyrox-slot .slot-target-label {
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:8px;
  margin-bottom:4px;
  font-size:13px;
  color:var(--muted);
}
.hyrox-slot .slot-target {
  background:#0f141b;
  border:1px solid #222;
  border-radius:10px;
  padding:6px 8px;
  color:var(--text);
  width:100%;
}


/* Two-column layout for stations */
.stations.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.station-item{
  display:flex;
  align-items:center;
  gap:6px;
}

/* Hyrox lane colors */
.hyrox-slot {
  border-radius: 14px;
  padding: 14px 14px 16px;
  border: 1px solid #222;
  background: var(--card);
}

.hyrox-slot h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

/* Baan 1 - Geel */
.hyrox-slot[data-slot="1"] {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(17, 24, 39, 0.9));
  border-color: rgba(250, 204, 21, 0.7);
}

/* Baan 2 - Zwart */
.hyrox-slot[data-slot="2"] {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.46), rgba(17, 24, 39, 0.95));
  border-color: rgba(0, 0, 0, 0.9);
}

/* Baan 3 - Groen */
.hyrox-slot[data-slot="3"] {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(17, 24, 39, 0.9));
  border-color: rgba(34, 197, 94, 0.7);
}

/* Baan 4 - Rood */
.hyrox-slot[data-slot="4"] {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(17, 24, 39, 0.9));
  border-color: rgba(239, 68, 68, 0.7);
}

/* Ensure inner text stays readable */
.hyrox-slot label,
.hyrox-slot p,
.hyrox-slot select,
.hyrox-slot .timer-display,
.hyrox-slot .lane-actions {
  color: var(--text);
}


.btn.confirmed{background-color:#16a34a!important;color:white!important;}


.hyrox-slot h3 {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.lane-status {
  font-size:0.9rem;
  color:var(--accent);
  font-weight:500;
}


/* Auth & dashboard */
.auth-container{
  min-height:calc(100vh - 80px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.auth-card{
  background:var(--card);
  padding:24px 28px;
  border-radius:18px;
  max-width:420px;
  width:100%;
  box-shadow:0 18px 45px rgba(0,0,0,0.55);
  display:flex;
  flex-direction:column;
  gap:12px;
}
.auth-card h2{
  margin:0 0 4px;
}
.auth-subtitle{
  margin:0 0 12px;
  font-size:0.9rem;
  color:var(--muted);
}
.auth-card label{
  font-size:0.9rem;
  margin-top:4px;
}
.auth-card input{
  background:var(--bg);
  border:1px solid #222;
  border-radius:10px;
  padding:8px 10px;
  color:var(--text);
}
.auth-submit{
  margin-top:12px;
  width:100%;
  text-align:center;
}

.flash-container{
  margin:16px 0;
}
.flash{
  padding:10px 12px;
  border-radius:10px;
  background:#1f2937;
  border:1px solid #374151;
  font-size:0.9rem;
}
.flash.error{
  border-color:var(--danger);
  color:#fecaca;
}

.tiles{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:16px;
}
.tile{
  display:block;
  text-decoration:none;
  background:var(--card);
  border-radius:18px;
  padding:16px 18px;
  border:1px solid #1f2937;
  transition:transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.tile h3{
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.tile p{
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
}
.tile:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,0.5);
  border-color:var(--accent);
}

.dashboard-intro{
  margin-top: 8px;
  margin-bottom: 16px;
  color: var(--text);
  max-width: 46rem;
  line-height: 1.5;
}


.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}

.form-row span {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  align-items: center;
}


.logo-link {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-right: 12px;
}


/* Login page background + positioning */
body.login-page {
  background: url("login_bg.png") center center / cover no-repeat fixed;
}

body.login-page main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

body.login-page .auth-container {
  min-height: auto;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 40px 6vw;
}

body.login-page .auth-card {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}


/* Login page layout left top with spacing */
body.login-page main {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

body.login-page .auth-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 80px 60px; /* space below top */
}

body.login-page .auth-card {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}


/* Increase login card size by ~20% */
body.login-page .auth-card {
  transform: scale(1.2);
  transform-origin: top left;
}



/* Background overlay for professional look */
body.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
  z-index: -1;
}

body.login-page {
  background: url("login_bg.png") center center / cover no-repeat fixed;
}


/* Hyrox resultaten pagina */
.results-filter{
  margin:16px 0 8px;
  display:flex;
  flex-direction:column;
  gap:6px;
  max-width:320px;
}
.results-filter label{
  font-size:0.9rem;
  color:var(--muted);
}
.results-filter select{
  background:#0f141b;
  border:1px solid #222;
  border-radius:10px;
  padding:8px 10px;
  color:var(--text);
}

.results-table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
  background:var(--card);
  border-radius:14px;
  overflow:hidden;
  border:1px solid #222;
}
.results-table thead th{
  padding:10px 12px;
  font-weight:600;
  text-align:left;
  border-bottom:1px solid #222;
}
.results-table tbody td{
  padding:8px 12px;
  border-bottom:1px solid #222;
  vertical-align:middle;
}
.results-table tbody tr:last-child td{
  border-bottom:none;
}
.results-table th:first-child,
.results-table td:first-child{
  width:40%;
}
.results-table th:not(:first-child),
.results-table td:not(:first-child){
  width:auto;
}

.result-time{
  font-variant-numeric:tabular-nums;
}
.tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:1px 6px;
  border:1px solid var(--accent);
  font-size:0.7rem;
  margin-left:4px;
}
.tag.pr{
  border-color:var(--accent);
}
.tag.record{
  border-color:#fbbf24;
}


.results-email-form{
  margin: 0 0 12px;
}
.results-email-form .btn{
  margin-top: 6px;
}



/* Dashboard kolommen */
.dashboard-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(260px,1fr));
  gap:16px;
  margin-top:16px;
}
.dashboard-column{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* Tiles algemeen */
.tile{
  position:relative;
  overflow:hidden;
  background-color:var(--card);
  background-size:cover;
  background-position:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:20px 22px;
  border-radius:20px;
  min-height:150px;
}
.tile::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.28));
  z-index:0;
}
.tile h3,
.tile p{
  position:relative;
  z-index:1;
}
.tile h3{
  color:var(--text);
  font-weight:700;
}

/* Specifieke achtergronden per tegel */
.tile-solo-training{
  background-image:url('img/tile_solo_training.jpg') !important;
}
.tile-solo-results{
  background-image:url('img/tile_solo_results.jpg') !important;
}
.tile-duo-training{
  background-image:url('img/tile_duo_training.jpg') !important;
}
.tile-duo-results{
  background-image:url('img/tile_duo_results.jpg') !important;
}
.tile-training-registratie{
  background-image:url('img/tile_training_registratie.png') !important;
}
.tile-training-results{
  background-image:url('img/resultaten.png') !important;
}
.tile-members-list{
  background-image:url('img/members.jpg') !important;
}
.tile-members-add{
  background-image:url('img/member.jpg') !important;
}

/* === Tile class aliases (dashboard) === */
.tile-member-add{
  background-image:url('img/member.jpg') !important;
}
.tile-training-reg{
  background-image:url('img/tile_training_registratie.png') !important;
}
/* === End aliases === */


.tile-interval-timer{
  background-image:url('img/interval.jpeg') !important;
}

/* Lane status beter leesbaar */
.lane-status{
  color:var(--text);
  font-weight:600;
}

/* Mobile */
@media (max-width: 768px){
  .dashboard-columns{
    grid-template-columns:1fr;
    gap:12px;
  }
  .dashboard-intro{
    font-size:0.95rem;
  }
  .tile{
    min-height:170px;
    padding:16px 18px;
  }
}

/* Checkboxes op admin-pagina: tekst vóór de checkbox */
.form label.checkbox-after{
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.form label.checkbox-after input[type="checkbox"]{
  width: 18px;
  height: 18px;
}


/* Training registratie */
.training-form{
  max-width: 1200px;
  margin: 0 auto;
}

.training-help{
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-muted, #ccc);
}

.training-tabs{
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.training-tabs-header{
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.tab-button{
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px 6px 0 0;
  border: 1px solid rgba(255,255,255,0.2);
  background: #222;
  color: #f0f0f0;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.tab-button.active{
  background: #f97316;
  color: #000;
}

.tab-pane{
  display: none;
  border-radius: 0 8px 8px 8px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px;
  background: #111;
}

.tab-pane.active{
  display: block;
}

.training-row{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.training-row label{
  min-width: 120px;
  font-weight: 600;
}

.training-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.training-table th,
.training-table td{
  border: 1px solid #444;
  padding: 4px 6px;
}

.training-table th{
  background: #222;
  text-align: left;
}

.training-table .sub-header th{
  background: #181818;
  font-size: 0.8rem;
}

.training-table input[type="text"],
.training-table input[type="number"],
.training-table select{
  width: 100%;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 0.9rem;
}

.training-actions{
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.btn.primary{
  background: #f97316;
  border-color: #f97316;
  color: #000;
  font-weight: 700;
}


.tab-pane-header{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.tab-close{
  background: transparent;
  border: none;
  color: #f97316;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px;
}
.tab-close:hover{
  color: #ffb35c;
}


/* Position close button inside top-right of each active pane */
.tab-pane{
  position: relative;
}

.tab-pane-header{
  position: absolute;
  top: 4px;
  right: 4px;
  margin-bottom: 0;
  z-index: 2;
}




/* Oefening kolom breder in training registratie */
.training-table th:nth-child(1),
.training-table td:nth-child(1){
  width: 22%;
}

.training-table th:nth-child(2),
.training-table td:nth-child(2){
  width: 8%;
}

/* Lege tegel om afstand te houden in kolom 3 */
.tile-empty{
  visibility:hidden;
}


/* === Member card layout (v1.7) === */

.member-header-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.member-h2{ margin:0; }
.member-sub{ opacity:0.85; margin-top:4px; }

.member-photo-top{
  width:120px;
  height:120px;
  flex:0 0 120px;
}
.member-photo-img{
  width:120px;
  height:120px;
  object-fit:cover;
  border-radius:6px;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.member-card h3{ margin-top:0; }

.member-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px 18px;
  align-items:end;
}

.member-grid .field{ display:flex; flex-direction:column; gap:6px; }
.member-grid .field label{ font-weight:600; opacity:0.95; }
.member-grid .field input,
.member-grid .field select,
.member-grid .field textarea{
  width:100%;
  box-sizing:border-box;
}

.member-grid .span-2{ grid-column: 1 / span 2; }

.actions{
  display:flex;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}

.spacer{ height:14px; }

.table .muted{ opacity:0.7; }
.nowrap{ white-space:nowrap; }

.tabpane{ display:none; }
.tabpane.active{ display:block; }

.photo-row{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:16px;
  align-items:start;
}
.photo-preview{
  width:120px;
  height:120px;
}



/* ===== Members list tidy (v1.8) ===== */
.page-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.page-header-actions{ display:flex; gap:10px; align-items:center; }
.muted{ color: var(--muted); }

.table-wrap{
  border-radius:14px;
  overflow-x:auto;
  overflow-y:hidden;
  border:1px solid #222;
  background:var(--card);
}

.members-table{
  width:100%;
  table-layout:fixed;
}
.members-table th, .members-table td{
  padding:14px 14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.members-table .td-name{ width:18%; }
.members-table .td-email{ width:22%; }
.members-table .td-phone{ width:12%; }
.members-table .td-type{ width:8%; text-align:center; }
.members-table .td-pin{ width:8%; text-align:center; }
.members-table .td-active{ width:6%; text-align:center; }
.members-table .td-2fa{ width:6%; text-align:center; }
.members-table .td-recovery{ width:7%; text-align:center; }
.members-table .actions-cell{ width: 1%; }

.members-table th, .members-table td{ vertical-align:middle; }
.members-table .th-actions{ text-align:right; }
.members-table .actions-cell{ text-align:right; width: 1%; white-space:nowrap; }
.members-table .th-actions, .members-table .actions-cell{ min-width: 170px; }

.actions-inline{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  margin:0;
}
.actions-inline form{ margin:0; }

.btn.small{ padding:7px 11px; border-radius:10px; font-size:14px; }

.td-name .name-line{ font-weight:600; }
.td-email, .td-phone, .td-type, .td-pin{ opacity:.95; }

.empty-row{
  text-align:center;
  padding:18px;
  opacity:.75;
}

/* Make sure generic .actions used elsewhere doesn't break table layout */
.table td.actions{ margin-top:0; flex-wrap:nowrap; }



/* === Members table cleanup === */
.table-wrap { overflow-x: auto; }
.members-table { width: 100%; table-layout: fixed; }
.members-table th, .members-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.members-table .td-name { width: 40%; }
.members-table .td-phone { width: 25%; }
.members-table .td-2fa { width: 10%; }
.members-table .th-actions, .members-table .actions-cell { width: 25%; min-width: 200px; text-align: right; }

.actions-inline { display: flex; gap: .5rem; justify-content: flex-end; align-items: center; flex-wrap: nowrap; }
.actions-inline form { margin: 0; }

/* === Member detail layout === */
.member-header-inner { display:flex; justify-content: space-between; align-items:flex-start; gap: 1rem; }
.member-photo-top { width: 120px; height: 120px; flex: 0 0 120px; }
.member-photo-img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 12px; }
.form-grid label { display:flex; flex-direction: column; gap: 6px; }
.form-actions { display:flex; gap: .75rem; margin-top: 14px; }

.tabpane { display: none; }
.tabpane.active { display: block; }

.photo-row { display:flex; gap: 16px; align-items:flex-start; }
.photo-preview { width: 180px; height: 180px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); }
.photo-actions { flex: 1; }

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .members-table .td-name { width: 55%; }
  .members-table .th-actions, .members-table .actions-cell { min-width: 170px; }
}



/* ===== Members list clean table ===== */
.table-card { padding: 0; }
.table-scroll { overflow-x: auto; }
.members-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.members-table th, .members-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.members-table th { text-align: left; font-weight: 600; color: rgba(230,237,243,.75); background: rgba(0,0,0,.12); }
.members-table .td-name { font-weight: 700; }
.members-table td { color: var(--text); }
.members-table td, .members-table th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.members-table .th-actions { width: 220px; }
.members-table .td-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn.danger { background: #ef4444; border-color: transparent; color: #fff; }

/* ===== Member detail clean layout ===== */
.member-page { max-width: 980px; margin: 0 auto; padding: 10px 0; }
.member-topbar { display:flex; align-items:flex-end; justify-content:space-between; gap: 16px; margin-bottom: 14px; }
.member-title h1 { margin: 0; }
.member-card { padding: 18px; }

.tabs { display:flex; gap:10px; margin-bottom: 14px; }
.tab-btn { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); color: var(--text); padding: 10px 14px; border-radius: 12px; cursor: pointer; }
.tab-btn.active { background: rgba(59,130,246,.35); border-color: rgba(59,130,246,.55); }
.tab-pane { display:none; }
.tab-pane.active { display:block; }

.naw-header { display:flex; align-items:flex-start; justify-content:space-between; gap: 16px; margin-bottom: 16px; }
.profile-square { width:120px; height:120px; border-radius: 12px; overflow:hidden; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); flex-shrink: 0; }
.profile-square img { width:120px; height:120px; object-fit: cover; display:block; }

.form-grid { display:grid; grid-template-columns: 180px 1fr; gap: 10px 14px; align-items:center; }
.form-grid label { color: rgba(230,237,243,.75); font-size: 14px; }
.form-grid input { width:100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.12); color: var(--text); }
.form-actions { display:flex; gap: 10px; margin-top: 16px; }

.photo-row { display:grid; grid-template-columns: 160px 1fr; gap: 18px; align-items:start; }
.photo-preview { width:160px; height:160px; border-radius: 14px; overflow:hidden; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.photo-preview img { width:160px; height:160px; object-fit: cover; display:block; }
.photo-form input[type="file"] { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.12); color: var(--text); }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .naw-header { flex-direction: column; align-items:flex-start; }
  .photo-row { grid-template-columns: 1fr; }
}


/* Betalingen: methode radio buttons */
.radio-group{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:6px 0;}
.radio{display:flex;gap:6px;align-items:center;white-space:nowrap;}


/* ===== SandersSportSchuur website achtergrond (gedeeld) ===== */
:root{--bg:#08101A;--bg2:#17293C;--card:#0E1A2B;--text:#EAF0FF;--muted:#A7B7C4;--line:rgba(255,255,255,.10);--accent:#244865;--accent2:#5F7F8E;--shadow:0 18px 50px rgba(0,0,0,.35);--r:18px;--r2:24px;--c:1120px}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:radial-gradient(900px 500px at 80% 10%,rgba(77,163,255,.25),transparent 60%),radial-gradient(700px 400px at 10% 0%,rgba(124,92,255,.18),transparent 55%),linear-gradient(180deg,var(--bg),var(--bg2) 60%,var(--bg))}

/* ===== Hyrox fullscreen pop-up (modal) ===== */
body.modal-open{overflow:hidden;}
.hyrox-modal{position:fixed;inset:0;z-index:10000;display:none;}
.hyrox-modal.open{display:flex;}
.hyrox-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65);}
.hyrox-modal-sheet{position:relative;z-index:1;width:calc(100vw - 40px);height:calc(100vh - 40px);max-width:1800px;max-height:calc(100vh - 40px);overflow:hidden;background:rgba(8,16,26,.92);border:1px solid rgba(255,255,255,.12);border-radius:28px;box-shadow:0 22px 60px rgba(0,0,0,.55);padding:22px;display:flex;flex-direction:column;gap:16px;margin:auto;}
.hyrox-modal-close{position:absolute;top:10px;right:12px;border:0;background:rgba(255,255,255,.08);color:var(--text);width:44px;height:44px;border-radius:999px;font-size:28px;line-height:44px;cursor:pointer;}
.hyrox-modal-next{font-size:clamp(24px,2.6vw,44px);color:rgba(230,237,243,.85);padding-right:56px;}
.hyrox-modal-timer{font-size:clamp(140px,18vw,320px);font-weight:800;letter-spacing:.5px;text-align:center;padding:10px 0;}
.hyrox-modal-logged{margin-top:auto;}
.hyrox-modal-logged .table.tiny{margin-top:10px;}

/* Full-page pop-up (separate tab/window) */
.hyrox-popup-page{max-width:1800px;margin:0 auto;padding:18px;}
.hyrox-popup-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.hyrox-popup-actions{display:flex;gap:10px;flex-wrap:wrap;}
.hyrox-popup-next{font-size:clamp(24px,2.6vw,44px);color:rgba(230,237,243,.85);margin-top:10px;}
.hyrox-popup-timer{font-size:clamp(140px,18vw,320px);font-weight:800;letter-spacing:.5px;text-align:center;padding:16px 0;}
.hyrox-popup-meta{display:flex;gap:18px;flex-wrap:wrap;opacity:.85;}

@media (max-width: 720px){
  .hyrox-modal-sheet{width:calc(100vw - 18px);max-height:calc(100vh - 18px);padding:14px;border-radius:20px;}
  .hyrox-modal-timer{font-size:clamp(96px,16vw,240px);}
}
