/* ============================
   MOBIELE LAYOUTS - Crime Cards
   Alles voor mobiele interfaces
   ============================ */

/* Container voor cards */
.crime-cards {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px;
  margin: 16px 0;
  visibility: visible !important;
}

/* Individuele card - wordt overschreven door extra.css voor nieuwe layout */
.crime-card {
  position: relative;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.crime-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.crime-card.selected {
  border-color: var(--accent-gold, #f4c430);
  box-shadow: 0 0 0 2px rgba(244,196,48,0.2);
  background: rgba(244,196,48,0.05);
}

.crime-card.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.crime-card.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Card header - styling komt uit extra.css voor nieuwe layout met blurred background */

.crime-card .name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.crime-card .only-badge {
  font-size: 11px;
  background: rgba(224,179,90,.15);
  border: 1px solid rgba(224,179,90,.35);
  color: #e0b35a;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  font-weight: 600;
}

.crime-card .pick {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.crime-card .pick input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Facts list (kans, gevangenis, etc.) */
.crime-card .facts {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.crime-card .facts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}

.crime-card .facts li:last-child {
  border-bottom: none;
}

.crime-card .facts li span:first-child {
  color: #999;
  font-weight: 500;
}

.crime-card .facts li span:last-child,
.crime-card .facts li strong {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

/* Kans bar (progress bar) */
.crime-card .kansbar {
  margin-top: 12px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.crime-card .kansbar .bar {
  height: 100%;
  position: relative;
  border-radius: 999px;
}

.crime-card .kansbar .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4fdc96, #22c55e);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Desktop: gebruik tabel-50 layout (bestaat al) */
.overval-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
}

@media (min-width: 1100px) {
  .overval-grid {
    gap: 12px;
  }
  
  .overval-grid .tabel-50 {
    width: calc(50% - 6px);
    margin: 0;
  }
}

@media (max-width: 1100px) {
  .overval-grid .tabel-50 {
    width: 100%;
    margin: 0 0 16px 0;
  }
}

/* Mobiel optimalisaties */
@media (max-width: 768px) {
  .overval-grid {
    flex-direction: column;
    gap: 12px;
  }
  
  .crime-cards {
    gap: 12px;
  }
  
  .crime-card {
    padding: 14px;
  }
  
  .crime-card .card-head {
    gap: 10px;
  }
  
  .crime-card .thumb {
    width: 60px;
    height: 60px;
  }
  
  .crime-card .name {
    font-size: 16px;
  }
  
  .crime-card .facts {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .crime-card .facts li {
    padding: 6px 0;
  }
  
  .crime-card .only-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}

/* Extra kleine schermen */
@media (max-width: 480px) {
  .crime-card {
    padding: 12px;
  }
  
  .crime-card .thumb {
    width: 50px;
    height: 50px;
  }
  
  .crime-card .name {
    font-size: 14px;
  }
  
  .crime-card .facts {
    font-size: 12px;
  }
}

/* ============================
   WAARDETRANSPORT - Specifieke styling
   ============================ */

/* Card spacing voor waardetransport */
.crime-cards .crime-card:not(:last-child) {
  margin-bottom: 16px;
}

/* Hulpmiddelen facts container */
.crime-card .facts.wt-hulpmiddelen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hulpmiddel optie label */
.crime-card-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.crime-card-option:hover {
  background: rgba(255,255,255,0.06) !important;
}

/* Checkbox styling binnen optie */
.crime-card-option input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--accent-gold, #f4c430);
  flex-shrink: 0;
}

.crime-card-option input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Label content wrapper */
.crime-card-option > span:last-child {
  flex: 1;
}

/* Titel met icon */
.crime-card-option .wt-option-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

/* Prijs tekst */
.crime-card-option .wt-option-price {
  color: #999;
  font-size: 13px;
}

/* Instellingen container */
.crime-card .facts.wt-instellingen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Instellingen item */
.wt-instelling-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Label voor instellingen */
.wt-instelling-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Mobile select styling */
.gm-select-mobile {
  width: 100%;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.gm-select-mobile:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.gm-select-mobile:focus {
  border-color: var(--accent-gold, #f4c430);
  outline: none;
}

/* ============================
   COOLDOWNS OVERZICHT PAGINA
   ============================ */

.cooldowns-container {
  padding: 16px 0;
}

.cooldowns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 0;
}

@media (max-width: 768px) {
  .cooldowns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.cooldown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  background: rgba(20, 22, 28, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
  min-height: 140px;
}

.cooldown-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cooldown-card.is-ready {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
}

.cooldown-card.is-ready:hover {
  border-color: #27ae60;
  background: rgba(46, 204, 113, 0.15);
}

.cooldown-card.is-waiting {
  opacity: 0.8;
}

.cooldown-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 2px solid;
  overflow: hidden;
}

.cooldown-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.cooldown-icon-placeholder {
  font-size: 28px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
}

.cooldown-info {
  text-align: center;
  flex: 1;
  width: 100%;
}

.cooldown-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #e0e0e0;
  line-height: 1.3;
}

.cooldown-time {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-family: 'Courier New', monospace;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cooldown-card.is-ready .cooldown-time {
  color: #2ecc71;
}

.cooldown-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cooldown-badge.ready {
  background: #2ecc71;
  color: #fff;
}

.cooldown-badge.waiting {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* Mobiel: kleinere cards */
@media (max-width: 480px) {
  .cooldown-card {
    padding: 16px 12px;
    min-height: 120px;
  }
  
  .cooldown-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
  }
  
  .cooldown-icon img {
    width: 40px;
    height: 40px;
  }
  
  .cooldown-name {
    font-size: 13px;
  }
  
  .cooldown-time {
    font-size: 14px;
  }
}

/* ============================
   BANK PAGINA - MOBIELE LAYOUT
   ============================ */

.bank-mobile-info {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(20, 22, 28, 0.5);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.bank-mobile-info p {
  margin: 0 0 12px 0;
}

.bank-mobile-info p:last-child {
  margin-bottom: 0;
}

.bank-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.bank-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background: rgba(20, 22, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  gap: 16px;
}

.bank-card-info {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.2);
}

.bank-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bank-card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.bank-card-content {
  flex: 1;
  min-width: 0;
}

.bank-card-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bank-card-amount {
  font-size: 20px;
  font-weight: 700;
  color: #2ecc71;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}

.bank-card-amount:active {
  opacity: 0.7;
}

.bank-card-text {
  font-size: 14px;
  color: #e0e0e0;
  line-height: 1.5;
}

.bank-form-mobile {
  margin-top: 24px;
}

.bank-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bank-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-form-field label {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bank-input {
  width: 100% !important;
  padding: 16px !important;
  font-size: 18px !important;
  border-radius: 8px !important;
  box-sizing: border-box;
}

.bank-form-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bank-btn {
  padding: 16px 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bank-btn-storten {
  background: #2ecc71 !important;
  border-color: #27ae60 !important;
}

.bank-btn-storten:hover {
  background: #27ae60 !important;
}

.bank-btn-afhalen {
  background: #e74c3c !important;
  border-color: #c0392b !important;
}

.bank-btn-afhalen:hover {
  background: #c0392b !important;
}

/* Desktop: verberg mobiele layout */
@media (min-width: 769px) {
  .bank-mobile-info,
  .bank-cards,
  .bank-form-mobile {
    display: none;
  }
}

/* Mobiel: verberg desktop layout */
@media (max-width: 768px) {
  .bank .tableF table {
    display: none;
  }
}

/* ============================
   PROFIEL PAGINA - MOBIELE LAYOUT
   ============================ */

/* Profiel layout op mobiel: sidebar onderaan */
@media (max-width: 768px) {
  .gm-profile .gm-layout {
    flex-direction: column;
  }

  .gm-profile .gm-actions {
    order: 2;
    margin-top: 20px;
  }

  .gm-profile .gm-main {
    order: 1;
  }

  /* Grid cards op mobiel: full width */
  .gm-profile .gm-grid,
  .gm-profile .gm-grid_full {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Header: compact op mobiel */
  .gm-profile .gm-header {
    padding: 16px;
  }

  .gm-profile .gm-user {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .gm-profile .gm-avatar {
    width: 100px;
    height: 100px;
  }

  .gm-profile .gm-quick {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .gm-profile .gm-quick li {
    flex: 0 0 auto;
    min-width: 100px;
  }

  /* Actions menu: grid layout op mobiel */
  .gm-profile .gm-actions ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .gm-profile .gm-actions li {
    margin: 0;
  }

  .gm-profile .gm-actions a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    min-height: 44px; /* Touch target */
  }

  .gm-profile .gm-actions a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .gm-profile .gm-actions a img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  /* Tabellen in cards: beter leesbaar op mobiel */
  .gm-profile .tableF {
    overflow-x: visible;
  }

  .gm-profile .tableF table {
    display: block;
    width: 100%;
  }

  .gm-profile .tableF tbody {
    display: block;
  }

  .gm-profile .tableF tr.gunMaffia-tr-light {
    display: block;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
  }

  .gm-profile .tableF tr.gunMaffia-tr-light:last-child {
    border-bottom: none;
  }

  /* Header row (eerste rij met colspan) */
  .gm-profile .tableF tr.gunMaffia-tr-light:first-child {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 12px;
    text-align: center;
  }

  .gm-profile .tableF tr.gunMaffia-tr-light:first-child td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    text-align: center;
  }

  /* Data rows: elke rij wordt een block */
  .gm-profile .tableF tr.gunMaffia-tr-light:not(:first-child) {
    display: block;
  }

  /* Voor rijen met 3 kolommen: td.txt (label), td.icon, td.txt (waarde) */
  .gm-profile .tableF tr.gunMaffia-tr-light:not(:first-child) td {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border: none;
    vertical-align: middle;
  }

  /* Als er 3 kolommen zijn: maak één regel van label + icon + waarde */
  .gm-profile .tableF tr.gunMaffia-tr-light:not(:first-child) td.txt:first-of-type {
    display: inline-flex;
    margin-right: 8px;
  }

  .gm-profile .tableF tr.gunMaffia-tr-light:not(:first-child) td.icon {
    display: inline-flex;
    margin: 0 4px;
  }

  .gm-profile .tableF tr.gunMaffia-tr-light:not(:first-child) td.txt:last-of-type {
    display: inline-flex;
    margin-left: 8px;
  }

  /* Voor rijen met 2 kolommen (icon + txt): flex layout */
  .gm-profile .tableF tr.gunMaffia-tr-light:not(:first-child):has(> td.icon + td.txt:only-of-type) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .gm-profile .tableF tr.gunMaffia-tr-light:not(:first-child):has(> td.icon + td.txt:only-of-type) td {
    display: flex;
  }

  /* Icon kolommen */
  .gm-profile .tableF td.icon {
    width: auto;
    flex-shrink: 0;
    padding: 0;
  }

  .gm-profile .tableF td.icon img {
    width: 24px;
    height: 24px;
    display: block;
  }

  /* Tekst kolommen */
  .gm-profile .tableF td.txt {
    flex: 1;
    min-width: 0;
  }

  .gm-profile .tableF td.txt strong {
    margin-right: 6px;
    font-weight: 600;
  }

  /* colspan fix: alle cellen in één rij */
  .gm-profile .tableF tr.gunMaffia-tr-light td[colspan] {
    display: block;
    width: 100%;
  }

  /* Rij met alleen 2 kolommen (icon + txt) */
  .gm-profile .tableF tr.gunMaffia-tr-light:not(:first-child) td.icon + td.txt {
    flex: 1;
  }
}

/* Tabs: betere spacing op mobiel */
@media (max-width: 768px) {
  .Tab {
    font-size: 14px;
  }

  .Tab td {
    padding: 12px 8px;
  }
}

/* ============================
   WINKEL/SHOP PAGINA - MOBIELE LAYOUT
   ============================ */

/* Shop cards grid: 1 kolom op mobiel */
@media (max-width: 768px) {
  .shop-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* tabel-50: full width op mobiel */
  .shop-cards .tabel-50 {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Tabellen in shop cards: betere layout */
  .shop-cards .tableF {
    overflow-x: visible;
  }

  /* Shop item cards: betere layout */
  .shop-cards .tableF table {
    display: block;
    width: 100%;
  }

  .shop-cards .tableF tr.gunMaffia-tr-light {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .shop-cards .tableF tr.gunMaffia-tr-light:first-child {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    padding: 12px;
    border-radius: 8px 8px 0 0;
  }

  .shop-cards .tableF tr.gunMaffia-tr-light:last-child {
    border-bottom: none;
  }

  /* Image rowspan fix: image bovenaan */
  .shop-cards .tableF tr.gunMaffia-tr-light td[rowspan] {
    display: block !important;
    width: 100% !important;
    text-align: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .shop-cards .tableF tr.gunMaffia-tr-light td[rowspan] img.thumb {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
  }

  /* Info rows: icon + tekst naast elkaar */
  .shop-cards .tableF tr.gunMaffia-tr-light td:not([rowspan]) {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border: none;
  }

  .shop-cards .tableF td.icon {
    width: auto;
    flex-shrink: 0;
  }

  .shop-cards .tableF td.icon img {
    width: 24px;
    height: 24px;
  }

  .shop-cards .tableF td.txt {
    flex: 1;
    min-width: 0;
  }

  /* Input + button row: stack op mobiel */
  .shop-cards .tableF tr.gunMaffia-tr-light:has(input[name="aantal"]) td.txt {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .shop-cards .tableF input[name="aantal"],
  .shop-cards .tableF input.gunInput {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
    box-sizing: border-box;
  }

  .shop-cards .tableF button.btn-Gun,
  .shop-cards .tableF .btn-Gun {
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
    min-height: 48px;
    font-weight: 600;
  }

  /* Stad/shop overzicht tabel: single column */
  p + .tableF table thead {
    display: none;
  }

  p + .tableF table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
  }

  p + .tableF table tbody tr th,
  p + .tableF table tbody tr td {
    padding: 8px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  p + .tableF table tbody tr th:first-child,
  p + .tableF table tbody tr td:nth-child(1),
  p + .tableF table tbody tr th:nth-child(4),
  p + .tableF table tbody tr td:nth-child(4) {
    display: none; /* Verberg icons op mobiel */
  }
}

/* ============================
   CREDIT SHOP - SPECIFIEKE MOBIELE LAYOUT
   ============================ */

/* Credit shop tabs: horizontaal scrollbaar op mobiel */
@media (max-width: 768px) {
  /* Tabs container scrollbaar maken */
  table.Tab {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  table.Tab tr {
    display: inline-flex;
    width: auto;
    min-width: 100%;
  }

  table.Tab td {
    min-width: 140px;
    width: auto !important;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 12px 16px !important;
    font-size: 13px;
  }

  table.Tab td a {
    display: block;
    text-align: center;
    padding: 4px 0;
  }

  /* Credit shop items tabel: card layout */
  .shop-cards .tableF table {
    border-collapse: separate;
    border-spacing: 0;
  }

  /* Titel row (colspan 6): center en full width - moet zichtbaar blijven */
  .shop-cards .tableF table tr.gunMaffia-tr-light td[colspan="6"] {
    display: block !important;
    text-align: center;
    padding: 12px !important;
    font-size: 1.1em;
    font-weight: 600;
    background: rgba(52, 25, 19, 0.4);
    border-radius: 8px 8px 0 0;
    margin-bottom: 12px;
  }

  /* Titel row container */
  .shop-cards .tableF table tr.gunMaffia-tr-light:has(> td[colspan="6"]) {
    display: block;
    margin-bottom: 12px;
  }

  /* Header row (met kolomnamen - eerste row zonder colspan): verberg op mobiel */
  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):first-child,
  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):nth-child(2) {
    display: none;
  }

  /* Items table rows: card layout met 6 kolommen (data rows) */
  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):not(:first-child):not(:nth-child(2)) {
    display: block;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Item row cells: flex layout - maar laatste kolom wordt apart behandeld */
  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):not(:first-child):not(:nth-child(2)) > td:not(:nth-child(6)) {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border: none;
    width: 100% !important;
  }

  /* Icon cells: klein en links */
  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):not(:first-child):not(:nth-child(2)) td.icon {
    width: auto;
    flex-shrink: 0;
    margin-right: 12px;
    padding: 0;
  }

  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):not(:first-child):not(:nth-child(2)) td.icon img {
    width: 24px;
    height: 24px;
  }

  /* Text cells: flex grow */
  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):not(:first-child):not(:nth-child(2)) td.txt {
    flex: 1;
    min-width: 0;
    padding: 0;
    text-align: left;
  }

  /* Credits: 4e kolom (txt) met credits icon ervoor (3e kolom) */
  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):not(:first-child):not(:nth-child(2)) > td:nth-child(3) + td.txt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #f4c430;
    justify-content: flex-start;
  }

  /* Item naam: 2e kolom (txt) */
  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):not(:first-child):not(:nth-child(2)) > td:nth-child(2).txt {
    font-weight: 500;
    font-size: 15px;
  }

  /* Button cel: full width en centraal - 6e kolom (laatste txt) */
  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):not(:first-child):not(:nth-child(2)) > td:nth-child(6) {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):not(:first-child):not(:nth-child(2)) > td:nth-child(6) form {
    width: 100%;
  }

  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):not(:first-child):not(:nth-child(2)) > td:nth-child(6) button.btn-Gun {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    min-height: 48px;
    border-radius: 8px;
  }

  /* "Saldo te laag" of "Niet beschikbaar" tekst: center align */
  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):not(:first-child):not(:nth-child(2)) > td:nth-child(6).txt {
    text-align: center;
    color: #999;
  }

  /* Verberg shopping basket icon (5e kolom) op mobiel */
  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:has(> td[colspan])):not(:first-child):not(:nth-child(2)) td.icon:nth-of-type(5) {
    display: none;
  }

  /* Service rows: verbeter layout */
  .shop-cards .tabel-50 .tableF table tr.gunMaffia-tr-light {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .shop-cards .tabel-50 .tableF table tr.gunMaffia-tr-light:first-child {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px 8px 0 0;
  }

  .shop-cards .tabel-50 .tableF table tr.gunMaffia-tr-light td {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
  }

  .shop-cards .tabel-50 .tableF table tr.gunMaffia-tr-light td.icon {
    width: auto;
    flex-shrink: 0;
  }

  .shop-cards .tabel-50 .tableF table tr.gunMaffia-tr-light td.txt {
    flex: 1;
    min-width: 0;
  }

  /* Input + button in service rows: stack */
  .shop-cards .tabel-50 .tableF table tr.gunMaffia-tr-light:has(input[name="aantal"]) td.txt {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .shop-cards .tabel-50 .tableF table tr.gunMaffia-tr-light input[name="aantal"],
  .shop-cards .tabel-50 .tableF table tr.gunMaffia-tr-light input.gunInput {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
    box-sizing: border-box;
  }

  .shop-cards .tabel-50 .tableF table tr.gunMaffia-tr-light button.btn-Gun {
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
    min-height: 48px;
    font-weight: 600;
  }
}

/* Extra kleine schermen */
@media (max-width: 480px) {
  table.Tab td {
    min-width: 120px;
    padding: 10px 12px !important;
    font-size: 12px;
  }

  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:first-child) {
    padding: 12px;
  }

  .shop-cards .tableF table tr.gunMaffia-tr-light:not(:first-child) td.txt:nth-of-type(1) {
    font-size: 14px;
  }
}

/* ============================
   FAMILIE PAGINA - MOBIELE LAYOUT
   ============================ */

/* Familie index tabel: card layout op mobiel */
@media (max-width: 768px) {
  /* Familie lijst tabel: card layout */
  .familie-index .tableF,
  .familie-index table {
    display: block;
    width: 100%;
  }

  .familie-index .tableF thead {
    display: none; /* Verberg header op mobiel */
  }

  .familie-index .tableF tbody {
    display: block;
  }

  .familie-index .tableF tr {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
  }

  .familie-index .tableF tr.gunMaffia-tr-dark {
    background: rgba(255, 255, 255, 0.02);
  }

  .familie-index .tableF td {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border: none;
    width: 100% !important;
  }

  .familie-index .tableF td.icon {
    flex-shrink: 0;
    width: auto;
  }

  .familie-index .tableF td.icon img {
    width: 24px;
    height: 24px;
  }

  .familie-index .tableF td.txt {
    flex: 1;
    min-width: 0;
  }

  /* Familie naam: groter en prominent */
  .familie-index .tableF td.txt:first-of-type {
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
  }

  /* Leden en Power: naast elkaar */
  .familie-index .tableF td.icon + td.txt {
    display: inline-flex;
    width: auto;
    flex: 0 0 auto;
  }

  /* Action icons: rechts uitlijnen */
  .familie-index .tableF td.icon:last-of-type,
  .familie-index .tableF td.icon:nth-last-of-type(2) {
    margin-left: auto;
    padding-left: 12px;
  }

  /* Familie profiel: gebruikt al bestaande gm-profile CSS uit bovenstaande regels */

  /* Familie leden tabel: card layout (gebruikt gm-card styling) */
  .familie-profiel .gm-card .tableF table {
    display: block;
    width: 100%;
  }

  .familie-profiel .gm-card .tableF thead {
    display: none;
  }

  .familie-profiel .gm-card .tableF tbody {
    display: block;
  }

  .familie-profiel .gm-card .tableF tr {
    display: block;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
  }

  .familie-profiel .gm-card .tableF tr:last-child {
    border-bottom: none;
  }

  .familie-profiel .gm-card .tableF td {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border: none;
    width: 100% !important;
  }

  .familie-profiel .gm-card .tableF td.icon {
    flex-shrink: 0;
  }

  .familie-profiel .gm-card .tableF td.txt {
    flex: 1;
    min-width: 0;
  }

  /* Paging: touch-vriendelijk */
  .familie-index table[width="100%"] {
    display: block;
    width: 100%;
  }

  .familie-index table[width="100%"] tr {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .familie-index table[width="100%"] td {
    width: 100% !important;
    padding: 8px 0;
  }

  /* u-hide-sm utility class */
  .u-hide-sm {
    display: none !important;
  }
}

/* ============================
   OVERZICHT_IN PAGINA - MOBIELE LAYOUT
   ============================ */

@media (max-width: 768px) {
  /* Headlines tabel: card layout */
  .overzicht-headlines .tableF table {
    display: block;
    width: 100%;
  }

  .overzicht-headlines .tableF tr {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
  }

  .overzicht-headlines .tableF tr:last-child {
    border-bottom: none;
  }

  .overzicht-headlines .tableF td {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    border: none;
    width: 100% !important;
  }

  .overzicht-headlines .tableF td.icon {
    flex-shrink: 0;
  }

  .overzicht-headlines .tableF td.txt {
    flex: 1;
    min-width: 0;
  }

  /* Wachttijden tabel: mobiele card layout (gebruikt colspan in HTML) */
  .overzicht-wachttijden .tableF {
    display: block;
    width: 100%;
  }

  .overzicht-wachttijden .tableF table {
    display: block;
    width: 100%;
  }

  .overzicht-wachttijden .tableF tbody {
    display: block;
  }

  .overzicht-wachttijden .tableF tr:first-child {
    display: none; /* Verberg header */
  }

  .overzicht-wachttijden .tableF tr:not(:first-child) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0;
    border: none;
    margin-bottom: 12px;
  }

  .overzicht-wachttijden .tableF tr:not(:first-child):last-child {
    margin-bottom: 0;
  }

  /* Wachttijd cards (alleen op mobiel, gebruikt colspan) */
  .overzicht-wachttijden .wachttijd-card {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
  }

  .overzicht-wachttijden .wachttijd-card-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    flex-wrap: nowrap;
  }

  .overzicht-wachttijden .wachttijd-icon,
  .overzicht-wachttijden .wachttijd-clock-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .overzicht-wachttijden .wachttijd-icon img,
  .overzicht-wachttijden .wachttijd-clock-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

  .overzicht-wachttijden .wachttijd-naam {
    flex: 1;
    min-width: 0;
    font-weight: 500;
  }

  .overzicht-wachttijden .wachttijd-tijd {
    flex: 0 1 auto;
    min-width: 0;
    text-align: right;
  }

  /* Nieuws tabel: card layout */
  .overzicht-nieuws .tableF table {
    display: block;
    width: 100%;
  }

  .overzicht-nieuws .tableF tr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .overzicht-nieuws .tableF tr:last-child {
    border-bottom: none;
  }

  .overzicht-nieuws .tableF td {
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
  }

  .overzicht-nieuws .tableF td.icon {
    flex-shrink: 0;
  }

  .overzicht-nieuws .tableF td:not(.icon) {
    flex: 1;
    min-width: 0;
  }

  /* Berichten tabel: card layout */
  .overzicht-berichten .tableF table {
    display: block;
    width: 100%;
  }

  .overzicht-berichten .tableF thead {
    display: none;
  }

  .overzicht-berichten .tableF tbody {
    display: block;
  }

  .overzicht-berichten .tableF tr {
    display: block;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
  }

  .overzicht-berichten .tableF tr:last-child {
    border-bottom: none;
  }

  .overzicht-berichten .tableF td {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border: none;
    width: 100% !important;
  }

  .overzicht-berichten .tableF td.icon {
    flex-shrink: 0;
  }

  .overzicht-berichten .tableF td.txt {
    flex: 1;
    min-width: 0;
  }
}

/* ============================
   CASINO PAGINA - MOBIELE LAYOUT
   ============================ */

/* Casino navigatie menu */
.casino-nav-menu {
  margin: 20px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
}

.casino-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.casino-nav-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
}

.casino-nav-link:hover {
  transform: translateY(-3px);
}

.casino-nav-item {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.casino-nav-link.active .casino-nav-item,
.casino-nav-link:hover .casino-nav-item {
  background: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.casino-nav-icon {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffd700;
  font-weight: bold;
}

.casino-nav-desc {
  font-size: 0.9em;
  color: #ccc;
}

/* Casino mobiele optimalisaties */
@media (max-width: 768px) {
  .casino-nav-menu {
    padding: 16px;
    margin: 16px 0;
  }

  .casino-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .casino-nav-item {
    padding: 16px;
  }

  .casino-nav-icon {
    font-size: 1.3em;
    margin-bottom: 8px;
  }

  .casino-nav-desc {
    font-size: 0.85em;
  }

  /* Casino tabellen: beter op mobiel */
  .casino .tableF {
    overflow-x: visible;
  }

  .casino .tableF table {
    display: block;
    width: 100%;
  }

  .casino .tableF tr.gunMaffia-tr-light {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .casino .tableF tr.gunMaffia-tr-light:first-child {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    padding: 12px;
  }

  .casino .tableF td {
    padding: 8px 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .casino .tableF td.icon {
    width: auto;
    flex-shrink: 0;
  }

  .casino .tableF td.txt {
    flex: 1;
    min-width: 0;
  }

  /* Casino forms: touch-vriendelijk */
  .casino input[type="number"],
  .casino input.gunInput,
  .casino input[type="text"] {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
    box-sizing: border-box;
  }

  .casino button.btn-Gun,
  .casino .btn-Gun,
  .casino input[type="submit"] {
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
    min-height: 48px;
    font-weight: 600;
    margin-top: 12px;
  }

  /* Geluksrad: betere layout op mobiel */
  .geluksrad-container,
  .wheel-container {
    width: 100%;
    max-width: 100%;
  }
}

/* ============================
   MOBIEL MENU
   ============================ */

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none; /* Verborgen op desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text-main, #e0e0e0);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobiel Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: var(--glass-bg, rgba(20, 20, 20, 0.95));
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  background: rgba(0, 0, 0, 0.3);
}

.mobile-menu-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main, #e0e0e0);
  margin: 0;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--text-main, #e0e0e0);
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.2s ease;
}

.mobile-menu-close:hover {
  color: var(--accent-red, #e74c3c);
}

.mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Menu items in mobiel menu */
.mobile-menu-body .panel {
  margin-bottom: 20px;
  background: var(--glass-panel, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  overflow: hidden;
}

.mobile-menu-body .panel-header {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-gold, #ffd700);
}

.mobile-menu-body .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-body .nav-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-body .nav-list li:last-child {
  border-bottom: none;
}

.mobile-menu-body .nav-list a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text-main, #e0e0e0);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
}

.mobile-menu-body .nav-list a:hover,
.mobile-menu-body .nav-list a:focus {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-gold, #ffd700);
  padding-left: 25px;
}

.mobile-menu-body .nav-list a i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  font-size: 16px;
}

/* Verberg sidebars op mobiel */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .sidebar-left,
  .sidebar-right {
    display: none !important;
  }
  
  .game-grid {
    grid-template-columns: 1fr !important;
  }
  
  .top-actions {
    display: none;
  }
  
  .game-header {
    padding: 15px 20px;
  }
}

/* Tablet aanpassingen */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .sidebar-left,
  .sidebar-right {
    display: none !important;
  }
  
  .game-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Loading States & Skeleton Screens */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  margin-bottom: 0;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.skeleton-card {
  padding: 15px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffd700;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-overlay .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffd700;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Lazy Loading Images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Status images moeten altijd zichtbaar zijn (geen lazy loading) */
img[src*="status_img.php"] {
  opacity: 1 !important;
}

/* Page Transition Loading */
.page-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10000;
  overflow: hidden;
}

.page-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  animation: page-loading 1.5s ease-in-out infinite;
}

@keyframes page-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}