:root {
    --primary: #ffffff;
    --secondary: #1e6bd6;
    --secondary-dark: #1553a8;
    --bg: #f3f5f8;
    --text: #1a1a1a;
    --card: #ffffff;
  }
  
  /* ===== RESET ===== */
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  
  body{
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    line-height: 1.55;
  }
  
  /* ===== TYPOGRAFIE ===== */
  h1, h2, h3 { margin: 0 0 10px; line-height: 1.2; }
  
  h1{
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
  }
  
  h2{
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 8px;
    color: #0f2f5a;
  }
  
  p { margin: 0 0 10px; }
  ul { margin: 0 0 10px; padding-left: 20px; }
  
  /* ===== TOPBAR ===== */
  .site-title{
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    transition: color .2s ease, transform .05s ease;
  }
  
  .site-title:hover{ color: #ffd400; }
  .site-title:active{ transform: scale(.97); color:#ffd400; }
  .site-title:focus-visible{
    outline: 2px solid #ffd400;
    outline-offset: 3px;
    border-radius: 6px;
  }
  
  .topbar{
    background: #fff;
    padding: 12px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
  }
  
  .top-actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  /* ===== BUTTONS ===== */
  .btn-outline{
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .05s ease;
  }
  .btn-outline:hover{ background: var(--secondary); color:#fff; }
  .btn-outline:active{ transform: scale(.96); }
  .btn-outline:focus-visible{
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
  }
  
  .btn-secondary{
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .2s ease, transform .05s ease;
  }
  .btn-secondary:hover{ background: var(--secondary-dark); }
  .btn-secondary:active{ transform: scale(.96); }
  
  /* ===== MAIN LAYOUT ===== */
  main.container{
    flex: 1;
    width: 100%;
    max-width: 1050px;
    margin: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  
  /* ===== HERO CARD ===== */
  .hero-card{
    background: var(--card);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
  }
  
  .hero-center{
    flex: 1 1 260px;
    text-align: center;
  }
  
  .logo-big{
    width: 88px;
    margin-bottom: 10px;
    border-radius: 18px;
  }
  
  .hero-links{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  /* Links + underline effect */
  .hero-links a{
    position: relative;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    padding-bottom: 3px;
    transition: color .2s ease, transform .05s ease;
  }
  
  .hero-links a:hover{ color: var(--secondary-dark); }
  .hero-links a:active{ transform: scale(.97); color: var(--secondary-dark); }
  
  .hero-links a:focus-visible{
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
    border-radius: 6px;
  }
  
  .hero-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0%;
    height:2px;
    background: var(--secondary);
    transition: width .18s ease;
    border-radius:2px;
  }
  
  .hero-links a:hover::after,
  .hero-links a:focus-visible::after{ width:100%; }
  
  .openingsuren{ flex: 1 1 260px; }
  .openingsuren ul{ padding-left: 20px; }
  
  /* ===== BOEKEN ===== */
  .boeken-grid{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
  }
  
  .boek-card{
    background: var(--card);
    border-radius: 14px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    flex: 1 1 150px;
    max-width: 180px;
  }
  
  .boek-card img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .auteur{ font-size: .85rem; color:#666; }
  
  /* ===== INFO CARD (info.php / auth pages met header/footer) ===== */
  .info-card{
    background: var(--card);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
  }
  .info-card h1{ margin: 0 0 10px; }
  
  /* ===== CONTACT ===== */
  .contact-hero{
    background: var(--card);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
  }
  .contact-hero p{ color:#5a6675; margin:0; }
  
  .contact-grid{
    display:grid;
    grid-template-columns: 1fr;
    gap:14px;
  }
  
  .contact-card{
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    display:grid;
    grid-template-columns: 160px 1fr;
  }
  
  .contact-photo{
    background: rgba(30,107,214,.06);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:14px;
  }
  
  .contact-photo img{
    width:100%;
    height:160px;
    object-fit: cover;
    border-radius: 14px;
    display:block;
  }
  
  .contact-content{ padding:16px; }
  .contact-line{ margin:0 0 8px; }
  .contact-desc{ margin:0 0 10px; color:#5b6776; }
  
  .contact-content a{
    color: var(--secondary);
    font-weight:700;
    text-decoration:none;
  }
  .contact-content a:hover{ text-decoration: underline; }
  
  .contact-back{
    display:flex;
    justify-content:center;
    margin-top: 6px;
  }
  
  /* ===== FOOTER ===== */
  .site-footer{
    background:#083a6b;
    padding:18px;
  }
  
  .footer-inner{
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
  }
  
  .footer-left,
  .footer-right{
    flex: 1 1 150px;
    display:flex;
    align-items:center;
  }
  
  .footer-left{ justify-content:flex-start; }
  .footer-right{ justify-content:flex-end; }
  
  .footer-banner{
    max-height:80px;
    width:auto;
    object-fit:contain;
    display:block;
  }
  
  .footer-center{
    flex: 2 1 260px;
    text-align:center;
    color:#fff;
    font-size:.9rem;
  }
  
  .footer-links{ margin-top:5px; }
  .footer-links a{
    color:#ffd400;
    text-decoration:none;
    font-weight:600;
    margin: 0 6px;
  }
  .footer-links a:hover{ text-decoration: underline; }
  
  /* ===== LOGOUT PAGINA ===== */
  .logout-card{
    background: var(--card);
    border-radius: 18px;
    padding: 30px;
    max-width: 520px;
    margin: 60px auto;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
  }
  
  #countdown{
    display:inline-block;
    font-size:1.2em;
    animation: pulse 1s infinite;
  }
  @keyframes pulse{
    0%{ transform:scale(1); }
    50%{ transform:scale(1.15); }
    100%{ transform:scale(1); }
  }
  
  /* ===== FORMS (CLEAN + CONSISTENT) ===== */
  .tvb-form{ margin-top: 12px; }
  
  /* Basis input look */
  .tvb-form input,
  .tvb-form select,
  .tvb-form textarea{
    width:100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 2px solid rgba(0,0,0,.15);
    background:#fff;
    color: var(--text);
    font-size: .95rem;
    outline:none;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  
  .tvb-form input:focus,
  .tvb-form select:focus,
  .tvb-form textarea:focus{
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(30,107,214,.15);
  }
  
  /* Row layout (input + button naast elkaar) */
  .tvb-form-row{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
  }
  .tvb-form-row > input,
  .tvb-form-row > select,
  .tvb-form-row > textarea{
    flex: 1 1 260px;
  }
  .tvb-form button{ white-space: nowrap; }
  
  /* Stack layout (register/login vertical) */
  .tvb-form-stack{
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  
  /* code input */
  .code-input{
    text-align:center;
    font-size:1.35rem;
    letter-spacing:.35em;
  }
  
  /* ===== MOBILE ===== */
  @media (max-width: 768px){
    main.container{ padding:14px; }
    h1{ font-size:1.55rem; }
    h2{ font-size:1.05rem; }
  
    .footer-inner{
      justify-content:center;
      text-align:center;
    }
    .footer-left,
    .footer-center,
    .footer-right{
      flex: 1 1 100%;
      justify-content:center;
    }
    .footer-banner{
      max-height:110px;
      margin-bottom:10px;
    }
  }
  
  @media (max-width: 700px){
    .contact-card{ grid-template-columns: 1fr; }
    .contact-photo img{ height:220px; }
  }
  
  @media (max-width: 520px){
    .tvb-form-row{ flex-direction: column; align-items: stretch; }
    .tvb-form button{ width:100%; }
  }