/* ===================================================
   ChipReaders.nl - Main Stylesheet
   =================================================== */

:root {
  --primary:        #059669;
  --primary-dark:   #047857;
  --primary-darker: #064e3b;
  --primary-light:  #d1fae5;
  --accent:         #f59e0b;
  --accent-dark:    #d97706;
  --text:           #111827;
  --text-muted:     #6b7280;
  --border:         #e5e7eb;
  --bg:             #f9fafb;
  --white:          #ffffff;
  --danger:         #ef4444;
  --warning:        #f59e0b;
  --info:           #3b82f6;
  --success:        #10b981;
  --radius:         .75rem;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg:      0 10px 25px -5px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* Typography */
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.text-white-75 { color: rgba(255,255,255,.75) !important; }
.font-monospace { font-family: 'Courier New', monospace !important; }
.chip-code { font-family: 'Courier New', monospace; background: #f3f4f6; padding: 2px 8px; border-radius: 4px; font-size: .85em; letter-spacing: .05em; color: var(--primary-dark); }

/* Navbar */
.bg-primary-dark { background: var(--primary-darker) !important; }

.navbar-brand .fw-700 { font-size: 1.3rem; color: #fff; }
.text-accent { color: var(--accent) !important; }

.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .8rem;
  flex-shrink: 0;
}

.avatar-lg {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem;
  flex-shrink: 0;
}

/* Buttons */
.btn-accent {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
  transition: all .2s;
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-bg { display: none; }
.min-vh-hero { min-height: 85vh; }

.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.9);
  padding: .35rem 1rem; border-radius: 50px;
  font-size: .85rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,.2);
}

.hero-search-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 1rem;
  padding: 1.5rem;
}
.hero-tabs .nav-link {
  color: rgba(255,255,255,.7);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-weight: 500;
}
.hero-tabs .nav-link.active {
  background: rgba(255,255,255,.2);
  color: white;
}

.hero-illustration { width: 100%; max-width: 400px; }
.hero-svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.2)); }

/* Stats */
.stats-section { background: white; border-top: none; border-bottom: 1px solid var(--border); }
.stat-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-icon { font-size: 1.5rem; margin-bottom: .5rem; color: var(--primary); }
.stat-number { font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label { color: var(--text-muted); font-size: .85rem; margin-top: .25rem; }

/* Section */
.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: .25rem .75rem; border-radius: 50px;
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: .75rem;
}
.section-title { font-size: 2rem; font-weight: 700; color: var(--text); }

/* How it works */
.how-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all .3s;
}
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.how-step {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.how-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* Role cards */
.role-card {
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: all .3s;
}
.role-card-bezitter { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-color: #bfdbfe; }
.role-card-reader   { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #bbf7d0; }
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.role-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.role-features { list-style: none; padding: 0; margin: 1rem 0 0; }
.role-features li { padding: .35rem 0; font-size: .95rem; }

/* Chipreader card */
.chipreader-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}
.chipreader-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); }

.cr-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.cr-avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; flex-shrink: 0;
}
.cr-avatar-xl {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; flex-shrink: 0;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary));
}

/* Footer */
.footer {
  background: var(--primary-darker);
  color: rgba(255,255,255,.85);
  margin-top: auto;
}
.footer-heading { color: rgba(255,255,255,.5); text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; }
.text-footer-muted { color: rgba(255,255,255,.45); }
.footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1rem; transition: all .2s;
}
.footer-social:hover { background: var(--accent); color: white; }

/* Auth pages */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%);
}
.auth-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* Role selector */
.role-select-btn {
  display: block;
  padding: 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg);
}
.btn-check:checked + .role-select-btn {
  border-color: var(--primary);
  background: var(--primary-light);
}
.role-select-btn:hover { border-color: var(--primary); }
.role-emoji { font-size: 2rem; margin-bottom: .5rem; display: block; }
.role-name { font-weight: 600; font-size: 1rem; }
.role-desc { display: block; margin-top: .25rem; }

/* Dashboard */
.dashboard-page { background: var(--bg); min-height: calc(100vh - 64px); }
.dashboard-welcome {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  padding: 1.75rem;
  color: white;
}
.dashboard-welcome .text-muted { color: rgba(255,255,255,.7) !important; }
.dashboard-welcome .badge { font-size: .8rem; }

.dash-stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all .2s;
}
.dash-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dash-stat-card i { font-size: 1.75rem; margin-bottom: .5rem; display: block; }
.dash-stat-num { font-size: 1.5rem; font-weight: 700; }
.dash-stat-lbl { color: var(--text-muted); font-size: .8rem; margin-top: .2rem; }

.dash-action-card {
  display: flex; align-items: center; gap: 1rem;
  background: white;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.dash-action-card:hover { border-color: var(--primary); color: var(--primary); transform: translateX(4px); }
.dash-action-icon {
  width: 44px; height: 44px; border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.bg-primary-light { background: #eff6ff; }
.bg-success-light { background: #f0fdf4; }
.bg-warning-light { background: #fffbeb; }
.bg-info-light    { background: #eff6ff; }
.bg-danger-light  { background: #fef2f2; }

/* Page headers */
.page-header { border-bottom: 1px solid var(--border); }
.bg-gradient-primary { background: linear-gradient(135deg, var(--primary-darker), var(--primary)) !important; }
.bg-gradient-success { background: linear-gradient(135deg, #064e3b, #059669) !important; }

/* Chip search result */
.chip-result-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid var(--primary);
}
.chip-result-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.chip-result-icon { font-size: 3rem; }
.chip-result-body { padding: 1.5rem; }
.result-field { padding: .5rem; background: var(--bg); border-radius: .5rem; }
.owner-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; background: var(--bg);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.owner-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* Map */
.map-layout {
  display: flex;
  height: calc(100vh - 64px);
}
.map-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.reader-list { overflow-y: auto; flex: 1; }
.reader-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.reader-item:hover { background: var(--bg); }
.reader-item-icon { font-size: 1.25rem; flex-shrink: 0; }
.map-container { flex: 1; position: relative; }
.map-no-key {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
@media (max-width: 767px) {
  .map-layout { flex-direction: column; height: auto; }
  .map-sidebar { width: 100%; height: 250px; border-right: none; border-bottom: 1px solid var(--border); }
  .map-container { height: 400px; }
}

/* Animal cards */
.animal-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all .2s;
}
.animal-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.animal-card-vermist { border-color: var(--warning); }
.animal-card-header {
  padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.animal-icon { font-size: 2.25rem; flex-shrink: 0; }
.animal-card-body { padding: 1rem 1.25rem; }
.animal-card-footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex; gap: .5rem; flex-wrap: wrap;
}
.chip-display {
  background: var(--bg); border-radius: .5rem;
  padding: .5rem .75rem;
  display: flex; align-items: center;
}
.chip-display code { font-size: .95rem; }

/* Empty states */
.empty-state {
  text-align: center;
  padding: 3rem;
}
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }

/* Payment */
.payment-summary {
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.payment-price { font-size: 1.75rem; font-weight: 700; color: var(--primary-dark); }

/* Admin layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--primary-darker);
  padding: 0;
  overflow-y: auto;
}
.admin-brand {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.25rem 1rem;
  color: white;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-nav { padding: 1rem 0; }
.admin-nav-section {
  color: rgba(255,255,255,.35);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .5rem 1rem .25rem;
  font-weight: 600;
}
.admin-nav-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
  transition: all .2s;
  margin: .1rem .5rem;
  border-radius: .5rem;
}
.admin-nav-link i { font-size: 1rem; }
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(255,255,255,.12);
  color: white;
}
.admin-nav-link.active { background: var(--primary); color: white; }
.admin-main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.admin-header {
  background: white;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.admin-content {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  background: var(--bg);
}

/* Admin stats */
.admin-stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-left-width: 4px;
  box-shadow: var(--shadow-sm);
}
.admin-stat-icon {
  width: 40px; height: 40px; border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: .75rem;
}
.admin-stat-num { font-size: 1.6rem; font-weight: 700; line-height: 1; margin-bottom: .25rem; }
.admin-stat-lbl { color: var(--text-muted); font-size: .8rem; }
.admin-stat-sub { font-size: .75rem; margin-top: .25rem; }

@media (max-width: 991px) {
  .admin-sidebar { display: none; }
  .admin-content { padding: 1rem; }
}

/* Misc badges / colors */
.border-primary { border-color: var(--primary) !important; }
.border-success { border-color: var(--success) !important; }
.border-warning { border-color: var(--warning) !important; }
.border-info    { border-color: var(--info) !important; }
.border-danger  { border-color: var(--danger) !important; }

.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.btn-success { background-color: var(--success) !important; border-color: var(--success) !important; }

/* Password strength */
.pw-bar { background: #e5e7eb; height: 4px; border-radius: 2px; margin-bottom: 4px; }

/* Breadcrumbs */
.breadcrumb { font-size: .875rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* Tables */
.table th { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.table td { vertical-align: middle; }

/* Cards */
.card { border-radius: var(--radius) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Externe databases */
.extern-db-card {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: .5rem;
  padding: .5rem .7rem;
  font-size: .88rem;
}
.extern-db-card.found {
  background: #f0fdf4;
  border-color: #86efac;
}
.extern-db-card.not-found {
  background: transparent;
  border-color: transparent;
  padding: .25rem .4rem;
}
.db-flag { font-size: 1rem; flex-shrink: 0; line-height: 1; }
.db-flag-sm { font-size: .85rem; opacity: .6; }
.db-notfound-dot {
  color: #d1d5db;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

/* NDG gevonden kaart */
.ndg-found-card {
  flex-direction: column;
  align-items: stretch;
  padding: 1.1rem 1.25rem;
  background: #f0fdf4;
  border: 2px solid #059669;
  border-radius: var(--radius);
}
.ndg-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .4rem .75rem;
}
.ndg-detail-item {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: .4rem;
  padding: .45rem .65rem;
  border: 1px solid #d1fae5;
}
.ndg-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.ndg-value {
  font-size: .92rem;
  color: var(--text);
  margin-top: .1rem;
}

/* ===================================================
   RESPONSIVE — Mobile First
   =================================================== */

/* Kaart — mobiel: sidebar bovenaan als accordeon, kaart eronder */
@media (max-width: 767px) {
  .map-layout {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .map-sidebar {
    width: 100%;
    height: auto;
    max-height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-y: auto;
  }
  .sidebar-header { position: sticky; top: 0; z-index: 1; background: var(--bg); }
  .map-container {
    height: 60vw;
    min-height: 280px;
    max-height: 480px;
  }
}

/* Admin panel — hamburger sidebar op mobiel */
@media (max-width: 991px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: .25rem .5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .admin-brand { display: none; }
  .admin-nav { display: flex; flex-direction: row; padding: 0; gap: .15rem; white-space: nowrap; }
  .admin-nav-section { display: none; }
  .admin-nav-link {
    padding: .5rem .75rem;
    margin: 0;
    font-size: .82rem;
    border-radius: .4rem;
    flex-shrink: 0;
  }
  .admin-nav-link i { margin-right: .3rem; }
  .admin-main { min-height: 0; }
  .admin-content { padding: 1rem; }
  .admin-header { padding: .75rem 1rem; }
}

/* Hero */
@media (max-width: 767px) {
  .min-vh-hero { min-height: auto; padding: 2.5rem 0 2rem; }
  .hero-section .display-4 { font-size: 1.75rem; }
  .hero-search-card { padding: 1rem; }
  .hero-badge { font-size: .78rem; }
}

/* Auth kaarten */
@media (max-width: 575px) {
  .auth-page { padding: 1rem 0; align-items: flex-start; }
  .auth-card { padding: 1.5rem 1.25rem; border-radius: 1rem; }
  .section-title { font-size: 1.4rem; }
}

/* Dashboard */
@media (max-width: 575px) {
  .dashboard-welcome { padding: 1.25rem; }
  .dashboard-welcome .avatar-lg { width: 40px; height: 40px; font-size: 1.1rem; }
  .dashboard-welcome h2 { font-size: 1.2rem; }
  .dash-action-card { padding: .9rem 1rem; }
  .dash-action-icon { width: 38px; height: 38px; font-size: 1.1rem; }
}

/* Dier-kaarten — 1 kolom op mobiel */
@media (max-width: 575px) {
  .animal-card-header { padding: 1rem; }
  .animal-icon { font-size: 1.75rem; }
  .animal-card-footer .btn { font-size: .8rem; padding: .3rem .6rem; }
}

/* Externe databases — volledige breedte op mobiel */
@media (max-width: 575px) {
  .ndg-details-grid { grid-template-columns: 1fr 1fr; }
  .ndg-found-card { padding: .9rem 1rem; }
}

/* Tabel scroll op mobiel */
@media (max-width: 767px) {
  .table-responsive { font-size: .82rem; }
  .table th, .table td { padding: .5rem .6rem; }
  .chip-code { font-size: .78rem; }
}

/* Navbar — compacter op mobiel */
@media (max-width: 575px) {
  .navbar-brand .fw-700 { font-size: 1.1rem; }
  .navbar-brand img { height: 28px; }
}

/* Chip search — result card */
@media (max-width: 575px) {
  .chip-result-header { padding: 1rem; }
  .chip-result-icon { font-size: 2.25rem; }
  .chip-result-body { padding: 1rem; }
}

/* Role-selector knoppen */
@media (max-width: 400px) {
  .role-select-btn { padding: .9rem .5rem; }
  .role-emoji { font-size: 1.5rem; }
  .role-name { font-size: .85rem; }
}

/* CTA section */
@media (max-width: 575px) {
  .cta-section .display-4 { font-size: 1.5rem; }
  .cta-section .btn { width: 100%; }
}

/* Page headers op mobiel */
@media (max-width: 575px) {
  .page-header { padding: 1rem 0 !important; }
  .page-header h1 { font-size: 1.3rem; }
}

/* Footer compacter */
@media (max-width: 767px) {
  .footer { font-size: .88rem; }
}

/* Algmeen: knoppen vol-breed op kleine schermen */
@media (max-width: 400px) {
  .btn-lg { font-size: .95rem; padding: .6rem 1.2rem; }
}

/* Touch-vriendelijke tap targets */
@media (pointer: coarse) {
  .nav-link { padding-top: .6rem; padding-bottom: .6rem; }
  .dropdown-item { padding: .6rem 1rem; }
  .reader-item { padding: 1rem 1.25rem; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
}

/* Prevent horizontal scroll */
@media (max-width: 575px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .row.g-4 { --bs-gutter-x: .75rem; }
}

/* Zoekresultaten — sectie-labels */
.db-section-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 0 .3rem;
  border-top: 1px solid var(--border);
  margin-bottom: .5rem;
  font-size: .88rem;
}
.db-section-label:first-child { border-top: none; padding-top: 0; }
.db-section-icon { font-size: 1rem; line-height: 1; }
