    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

    :root {
      --red:    #e8001c;
      --dark:   #111111;
      --bg:     #f2f1ed;
      --card:   #ffffff;
      --muted:  #999999;
      --border: #e8e6e0;
      --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
      --smooth: cubic-bezier(0.16, 1, 0.3, 1);
    }

    [data-theme="dark"] {
      --bg:     #1c1c1e;
      --card:   #2c2c2e;
      --dark:   #f2f2f7;
      --muted:  #8e8e93;
      --border: #3a3a3c;
    }

    /* ── DARK THEME OVERRIDES ── */
    [data-theme="dark"] header,
    [data-theme="dark"] .filter-wrap { background: rgba(28,28,30,0.92); }

    [data-theme="dark"] .detail-top { background: rgba(28,28,30,0.92); }

    [data-theme="dark"] .chip.active,
    [data-theme="dark"] .notif-help-tab.active,
    [data-theme="dark"] .check-pill:has(input:checked),
    [data-theme="dark"] .check-pill.checked { color: #1c1c1e; }

    [data-theme="dark"] .cal-day.today { color: #1c1c1e; }
    [data-theme="dark"] .cal-nav-btn:hover svg { stroke: #1c1c1e; }
    [data-theme="dark"] .retry-btn { color: #1c1c1e; }
    [data-theme="dark"] .ios-gids-num { color: #1c1c1e; }

    [data-theme="dark"] .ios-gids-intro,
    [data-theme="dark"] .ios-gids-sub { color: var(--muted); }
    [data-theme="dark"] .ios-gids-browser-bar,
    [data-theme="dark"] .ios-gids-toolbar { background: #3a3a3c; color: var(--dark); }
    [data-theme="dark"] .ios-gids-tip { background: #2c2a1a; border-color: #5a4e00; color: #c8a800; }

    [data-theme="dark"] .form-input { background: var(--card); }
    [data-theme="dark"] .header-search-input { background: rgba(255,255,255,0.10); }
    [data-theme="dark"] .header-search-input:focus { background: rgba(255,255,255,0.15); }

    [data-theme="dark"] .skel {
      background: linear-gradient(90deg, #3a3a3c 25%, #4a4a4c 50%, #3a3a3c 75%);
      background-size: 200% 100%;
    }

    [data-theme="dark"] .bevestiging-card { background: var(--card); }
    [data-theme="dark"] .bevestiging-tekst { color: var(--muted); }

    [data-theme="dark"] .demo-banner { background: #2c2a1a; border-color: #5a4e00; color: #e0b800; }

    [data-theme="dark"] .tag-alle    { background: #3a3a3c; color: #8e8e93; }
    [data-theme="dark"] .tag-color-0 { background: #1c3d54; color: #7abde8; } /* groot orkest */
    [data-theme="dark"] .tag-color-1 { background: #1a3d1e; color: #76e080; } /* klein orkest */
    [data-theme="dark"] .tag-color-2 { background: #00353a; color: #4ed4e0; } /* saxofoon orkest */
    [data-theme="dark"] .tag-color-3 { background: #3e2c00; color: #ffc050; } /* echt koper */
    [data-theme="dark"] .tag-color-4 { background: #3e1408; color: #ff9070; } /* slagwerkgroep */
    [data-theme="dark"] .tag-color-5 { background: #3e2800; color: #ffc860; } /* jr. slagwerkgroep */
    [data-theme="dark"] .tag-color-6 { background: #242e34; color: #96b2bc; } /* barrelbeat */
    [data-theme="dark"] .tag-color-7 { background: #38123e; color: #da8ae4; } /* het koor */
    [data-theme="dark"] .tag-color-8 { background: #2e0c00; color: #ffaa88; }
    [data-theme="dark"] .tag-color-9 { background: #0a0e2e; color: #9aabff; }
    [data-theme="dark"] .tag-color-10 { background: #2e0a1e; color: #ff8ab5; }
    [data-theme="dark"] .tag-color-11 { background: #00261e; color: #5fdcb8; }
    [data-theme="dark"] .tag-color-12 { background: #2e0a0a; color: #ff8a8a; }
    [data-theme="dark"] .tag-color-13 { background: #14082e; color: #b89aff; }
    [data-theme="dark"] .tag-color-14 { background: #1e1e00; color: #d6d666; }
    [data-theme="dark"] .tag-color-15 { background: #002a2e; color: #5fd0e0; }
    [data-theme="dark"] .tag-color-16 { background: #2e1408; color: #ff9a7a; }
    [data-theme="dark"] .tag-color-17 { background: #1a2026; color: #aac0cc; }
    [data-theme="dark"] .tag-color-18 { background: #1e2600; color: #b8e066; }
    [data-theme="dark"] .tag-color-19 { background: #2a0014; color: #ff7ab8; }
    [data-theme="dark"] .tag-more    { background: #3a3a3c; color: #8e8e93; }

    /* dark: elementen met var(--dark) als achtergrond + witte tekst → echt donker houden */
    [data-theme="dark"] .next-card              { background: #111111; }
    [data-theme="dark"] .info-social-btn        { background: #111111; border-color: #3a3a3c; }
    [data-theme="dark"] .detail-hero            { background: #111111; }
    [data-theme="dark"] .detail-badge-countdown { background: #111111; }
    [data-theme="dark"] .detail-btn-dark        { background: #111111; box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
    [data-theme="dark"] .rn-card                { background: #111111; }
    [data-theme="dark"] .ios-hint               { background: #111111; }
    [data-theme="dark"] .ios-hint::after { border-top-color: #111111; }
    [data-theme="dark"] .install-banner  { background: #111111; }
    [data-theme="dark"] .ios-gids-num    { background: #111111; color: #fff; }

    body {
      font-family: 'Montserrat', sans-serif;
      background: var(--bg);
      color: var(--dark);
      max-width: 430px;
      margin: 0 auto;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
    }

    /* ════════════════════════════════════════
       HEADER
    ════════════════════════════════════════ */
    header {
      position: sticky; top: 0; z-index: 100;
      background: rgba(242,241,237,0.92);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      padding: 0 20px;
      display: flex; align-items: center; gap: 8px;
      height: 60px;
      animation: headerSlide 0.6s 0.05s var(--smooth) both;
    }

    /* ── ZOEKFUNCTIE ── */
    .header-search-btn {
      background: none; border: none; cursor: pointer;
      color: var(--dark); padding: 8px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s; flex-shrink: 0;
    }
    .header-search-btn:hover { background: rgba(0,0,0,0.06); }
    .header-search-btn svg { width: 20px; height: 20px; }
    .header-search-wrap {
      display: none; flex: 1; align-items: center; gap: 6px;
    }
    header.search-active .logo-wrap,
    header.search-active .header-badge,
    header.search-active .header-search-btn,
    header.search-active .header-notif-btn { display: none; }
    header.search-active .header-search-wrap { display: flex; }
    .header-search-back {
      background: none; border: none; cursor: pointer;
      color: var(--dark); padding: 6px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      border-radius: 50%; transition: background 0.2s;
    }
    .header-search-back:hover { background: rgba(0,0,0,0.06); }
    .header-search-back svg { width: 20px; height: 20px; }
    .header-search-input {
      flex: 1; border: none;
      background: rgba(0,0,0,0.06);
      border-radius: 10px; padding: 8px 12px;
      font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 500;
      color: var(--dark); outline: none; transition: background 0.2s;
    }
    .header-search-input:focus { background: rgba(0,0,0,0.09); }
    .header-search-input::placeholder { color: var(--muted); font-weight: 400; }
    .header-search-clear {
      background: none; border: none; cursor: pointer;
      color: var(--muted); padding: 6px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      border-radius: 50%; transition: background 0.2s, opacity 0.2s;
      opacity: 0; pointer-events: none;
    }
    .header-search-clear.visible { opacity: 1; pointer-events: auto; }
    .header-search-clear:hover { background: rgba(0,0,0,0.06); }
    .header-search-clear svg { width: 16px; height: 16px; }
    .search-highlight { background: rgba(232,0,28,0.12); border-radius: 2px; }

    /* ── NOTIFICATIECENTRUM ── */
    .header-notif-btn {
      background: none; border: none; cursor: pointer;
      color: var(--dark); padding: 8px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s; flex-shrink: 0;
      position: relative;
    }
    .header-notif-btn:hover { background: rgba(0,0,0,0.06); }
    .header-notif-btn svg { width: 20px; height: 20px; }
    .notif-dot {
      position: absolute; top: 6px; right: 6px;
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--red); border: 2px solid var(--bg);
      display: none;
      animation: badgePop 0.4s var(--spring) both;
    }
    .notif-dot.visible { display: block; }
    .notif-panel {
      position: fixed; inset: 0; z-index: 500;
      max-width: 430px; margin: 0 auto;
      background: var(--bg);
      transform: translateX(100vw);
      transition: transform 0.38s var(--smooth);
      overflow-x: hidden;
      overflow-y: auto;
    }
    .notif-panel.open { transform: translateX(0); }
    /* Header blijft plakken bij scrollen */
    .notif-panel > .detail-top { position: sticky; top: 0; z-index: 1; }
    .notif-list { padding: 12px 16px 100px; }
    .notif-item {
      background: var(--card); border: 1.5px solid var(--border);
      border-radius: 12px; padding: 12px 14px;
      display: flex; gap: 14px; cursor: pointer; margin-bottom: 8px;
      transition: transform 0.2s var(--smooth), box-shadow 0.2s, border-color 0.2s;
      opacity: 0;
      animation: notifFadeIn 0.4s var(--smooth) forwards;
    }
    @keyframes notifFadeIn { to { opacity: 1; } }
    .notif-item:active { transform: scale(0.985); }
    .notif-item.unread { border-left: 3px solid var(--red); }
    .notif-item-date { width: 40px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .notif-item-date .num { font-size: 20px; font-weight: 900; color: var(--red); line-height: 1; }
    .notif-item-date .mon { font-size: 8px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
    .notif-item-body { flex: 1; min-width: 0; }
    .notif-item-title { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .notif-item-sub { font-size: 11px; color: var(--muted); }
    .notif-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 48px 20px; }
    .notif-item { touch-action: pan-y; will-change: transform; transition: opacity 0.2s, box-shadow 0.2s, border-color 0.2s, max-height 0.3s var(--smooth), margin-bottom 0.3s var(--smooth), padding 0.3s var(--smooth); max-height: 200px; overflow: hidden; }
    .notif-item.swiping { transition: none !important; }
    .notif-item.snap-back { transition: transform 0.25s var(--smooth), opacity 0.25s !important; }
    .notif-item.removing { transition: transform 0.3s var(--smooth), opacity 0.3s, max-height 0.3s var(--smooth) 0.25s, margin-bottom 0.3s var(--smooth) 0.25s, padding 0.3s var(--smooth) 0.25s !important; transform: translateX(110%) !important; opacity: 0; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
    @keyframes headerSlide {
      from { opacity: 0; transform: translateY(-100%); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .logo-wrap {
      flex: 1; display: flex; align-items: center; height: 36px; overflow: hidden;
    }
    .logo-wrap img {
      height: 24px; width: auto;
      object-fit: contain; object-position: left;
      animation: logoReveal 0.7s 0.15s var(--spring) both;
    }
    @keyframes logoReveal {
      from { opacity: 0; transform: translateX(-16px) scale(0.9); }
      to   { opacity: 1; transform: translateX(0) scale(1); }
    }
    .header-badge {
      font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
      color: var(--dark);
      animation: badgePop 0.5s 0.25s var(--spring) both;
    }
    @keyframes badgePop {
      from { opacity: 0; transform: scale(0.5); }
      to   { opacity: 1; transform: scale(1); }
    }

    /* ════════════════════════════════════════
       NEXT EVENT CARD
    ════════════════════════════════════════ */
    .next-card {
      margin: 14px 20px 0;
      background: var(--dark);
      color: #fff;
      border-radius: 20px;
      padding: 16px 18px;
      display: flex; align-items: center; gap: 14px;
      cursor: pointer;
      animation: nextCardIn 0.7s 0.1s var(--spring) both;
      transition: transform 0.25s var(--smooth), box-shadow 0.25s ease;
    }
    @keyframes nextCardIn {
      from { opacity: 0; transform: translateY(24px) scale(0.93); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    .next-card:hover {
      transform: translateY(-3px) scale(1.015);
      box-shadow: 0 20px 50px rgba(0,0,0,0.22);
    }
    .next-card:active { transform: scale(0.98); }
    .next-date-block {
      background: var(--red); border-radius: 12px;
      padding: 9px 13px; min-width: 50px;
      display: flex; flex-direction: column; align-items: center;
      animation: dateBounce 0.5s 0.3s var(--spring) both;
      flex-shrink: 0;
    }
    @keyframes dateBounce {
      from { transform: scale(0.5) rotate(-10deg); opacity: 0; }
      to   { transform: scale(1) rotate(0deg); opacity: 1; }
    }
    .next-date-block .big { font-size: 26px; font-weight: 900; line-height: 1; }
    .next-date-block .mo  { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: 0.85; }
    .next-info { flex: 1; min-width: 0; }
    .next-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.45; margin-bottom: 3px; }
    .next-title { font-size: 14px; font-weight: 800; line-height: 1.25; }
    .next-sub   { font-size: 11px; opacity: 0.5; margin-top: 2px; }
    .next-arrow {
      width: 30px; height: 30px; border-radius: 50%;
      background: rgba(255,255,255,0.1);
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .next-arrow svg { width: 14px; height: 14px; }

    /* ════════════════════════════════════════
       FILTER BAR
    ════════════════════════════════════════ */
    .filter-wrap {
      position: sticky; top: 60px; z-index: 99;
      background: rgba(242,241,237,0.92);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
    }
    .filter-bar {
      display: flex; gap: 6px; padding: 10px 20px;
      overflow-x: auto; scrollbar-width: none;
    }
    .filter-bar::-webkit-scrollbar { display: none; }

    .chip {
      display: inline-flex; align-items: center; gap: 5px;
      white-space: nowrap; flex-shrink: 0;
      border: 1.5px solid var(--border);
      border-radius: 100px; padding: 5px 13px;
      font-family: 'Montserrat', sans-serif;
      font-size: 11px; font-weight: 600;
      color: var(--muted); background: var(--card);
      cursor: pointer;
      transition: all 0.22s var(--smooth);
      animation: chipIn 0.45s var(--spring) both;
    }
    .chip:nth-child(1) { animation-delay: 0.20s; }
    .chip:nth-child(2) { animation-delay: 0.27s; }
    .chip:nth-child(3) { animation-delay: 0.34s; }
    .chip:nth-child(4) { animation-delay: 0.41s; }
    .chip:nth-child(5) { animation-delay: 0.48s; }
    .chip:nth-child(6) { animation-delay: 0.55s; }
    .chip:nth-child(7) { animation-delay: 0.62s; }
    .chip:nth-child(8) { animation-delay: 0.69s; }
    .chip:nth-child(9) { animation-delay: 0.76s; }
    @keyframes chipIn {
      from { opacity: 0; transform: translateY(8px) scale(0.9); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    .chip:hover { border-color: var(--dark); color: var(--dark); }
    .chip.active {
      background: var(--dark); color: #fff; border-color: var(--dark);
      transform: scale(1.04);
      box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    }
    .chip .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
    .dot-alle        { background: #bbb; }
    .dot-groot       { background: #3a8fd1; }
    .dot-klein       { background: #5ecb6b; }
    .dot-saxofoon    { background: #00bcd4; }
    .dot-koper       { background: #f5a623; }
    .dot-slagwerk    { background: #ff7043; }
    .dot-jrslagwerk  { background: #ffb74d; }
    .dot-barrelbeat  { background: #607d8b; }
    .dot-koor        { background: #c86dd4; }
    .dot-color-0     { background: #3a8fd1; } /* groot orkest */
    .dot-color-1     { background: #5ecb6b; } /* klein orkest */
    .dot-color-2     { background: #00bcd4; } /* saxofoon orkest */
    .dot-color-3     { background: #f5a623; } /* echt koper */
    .dot-color-4     { background: #ff7043; } /* slagwerkgroep */
    .dot-color-5     { background: #ffb74d; } /* jr. slagwerkgroep */
    .dot-color-6     { background: #607d8b; } /* barrelbeat */
    .dot-color-7     { background: #c86dd4; } /* het koor */
    .dot-color-8     { background: #bf360c; }
    .dot-color-9     { background: #283593; }
    .dot-color-10    { background: #ad1457; }
    .dot-color-11    { background: #00695c; }
    .dot-color-12    { background: #c62828; }
    .dot-color-13    { background: #4527a0; }
    .dot-color-14    { background: #827717; }
    .dot-color-15    { background: #00838f; }
    .dot-color-16    { background: #d84315; }
    .dot-color-17    { background: #37474f; }
    .dot-color-18    { background: #689f38; }
    .dot-color-19    { background: #880e4f; }

    /* ════════════════════════════════════════
       VIEWS
    ════════════════════════════════════════ */
    .view { display: none; flex: 1; flex-direction: column; }
    .view.active { display: flex; }

    /* ── LIST VIEW ── */
    .results-bar {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 20px 2px;
      animation: fadeUp 0.4s 0.35s both;
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .results-label { font-size: 11px; font-weight: 700; }
    .results-count { font-size: 11px; font-weight: 600; color: var(--muted); }

    .event-list { padding: 0 20px; }
    .month-label {
      font-size: 9px; font-weight: 800; letter-spacing: 2.5px;
      text-transform: uppercase; color: var(--muted);
      padding: 14px 0 6px;
    }
    .event-row {
      display: flex; align-items: stretch;
      background: var(--card);
      border: 1.5px solid var(--border);
      border-radius: 14px; margin-bottom: 6px; overflow: hidden;
      cursor: pointer;
      transition: transform 0.2s var(--smooth), box-shadow 0.2s ease, border-color 0.2s;
      animation: rowIn 0.5s var(--smooth) both;
    }
    @keyframes rowIn {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    body:not(.views-ready) .event-row:nth-child(1)  { animation-delay: 0.30s; }
    body:not(.views-ready) .event-row:nth-child(2)  { animation-delay: 0.35s; }
    body:not(.views-ready) .event-row:nth-child(3)  { animation-delay: 0.40s; }
    body:not(.views-ready) .event-row:nth-child(4)  { animation-delay: 0.45s; }
    body:not(.views-ready) .event-row:nth-child(5)  { animation-delay: 0.50s; }
    body:not(.views-ready) .event-row:nth-child(6)  { animation-delay: 0.55s; }
    body:not(.views-ready) .event-row:nth-child(7)  { animation-delay: 0.60s; }
    body:not(.views-ready) .event-row:nth-child(8)  { animation-delay: 0.65s; }
    body:not(.views-ready) .event-row:nth-child(9)  { animation-delay: 0.70s; }
    body:not(.views-ready) .event-row:nth-child(10) { animation-delay: 0.73s; }
    body:not(.views-ready) .event-row:nth-child(n+11){ animation-delay: 0.75s; }
    body.views-ready .event-row { animation: none; }

    .event-row:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 24px rgba(0,0,0,0.09);
      border-color: rgba(0,0,0,0.12);
    }
    .event-row:active { transform: scale(0.985); }
    .event-row.hidden { display: none; }
    .event-row.past   { opacity: 0.35; }

    .row-date {
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      width: 50px; flex-shrink: 0; padding: 10px 4px;
      border-right: 1.5px solid var(--border);
    }
    .row-date .wday{ font-size: 8px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
    .row-date .num { font-size: 20px; font-weight: 900; line-height: 1; color: var(--red); }
    .row-date .mon { font-size: 8px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 1px; }

    .row-body { padding: 9px 12px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
    .row-top  { display: flex; align-items: center; gap: 7px; }
    .row-title{ font-size: 13px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .row-tags { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 4px; }
    .row-sub  { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .tag { font-size: 8px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; border-radius: 4px; padding: 2px 6px; flex-shrink: 0; }
    .tag-alle    { background: #f0efeb; color: #999; }
    .tag-color-0 { background: #e2eefb; color: #1a6da0; } /* groot orkest */
    .tag-color-1 { background: #e6f8e8; color: #1d8c2c; } /* klein orkest */
    .tag-color-2 { background: #d9f4f8; color: #007a8e; } /* saxofoon orkest */
    .tag-color-3 { background: #fef3d6; color: #9a6500; } /* echt koper */
    .tag-color-4 { background: #ffe8e0; color: #c23010; } /* slagwerkgroep */
    .tag-color-5 { background: #fef4e0; color: #8c5e00; } /* jr. slagwerkgroep */
    .tag-color-6 { background: #e4e9ec; color: #3d5868; } /* barrelbeat */
    .tag-color-7 { background: #f5e2f9; color: #8c1e9e; } /* het koor */
    .tag-color-8 { background: #fce4dc; color: #bf360c; }
    .tag-color-9 { background: #e8eaf6; color: #283593; }
    .tag-color-10 { background: #ffe4f3; color: #ad1457; }
    .tag-color-11 { background: #d4f5e9; color: #00695c; }
    .tag-color-12 { background: #ffe5e5; color: #c62828; }
    .tag-color-13 { background: #ede7f6; color: #4527a0; }
    .tag-color-14 { background: #f0f4c3; color: #827717; }
    .tag-color-15 { background: #b2ebf2; color: #00838f; }
    .tag-color-16 { background: #fbe9e7; color: #d84315; }
    .tag-color-17 { background: #cfd8dc; color: #37474f; }
    .tag-color-18 { background: #f0f8c0; color: #689f38; }
    .tag-color-19 { background: #f8bbd0; color: #880e4f; }
    .tag-more       { font-size: 8px; font-weight: 800; letter-spacing: 0.5px; border-radius: 4px; padding: 2px 6px; flex-shrink: 0; background: #e8e6e0; color: #888; }

    /* ── NIEUW-markering ── */
    .event-row.nieuw { border-bottom: 3px solid var(--red); }
    .event-row.nieuw .row-date { background: #111111; border-right-color: #111111; }
    .event-row.nieuw .row-date .wday { color: var(--red); }
    .event-row.nieuw .row-date .num { color: #ffffff; }
    .event-row.nieuw .row-date .mon { color: var(--red); }
    .nieuw-badge {
      font-size: 8px; font-weight: 900; letter-spacing: 0.8px;
      text-transform: uppercase; color: var(--red);
      border: 1.5px solid var(--red); border-radius: 4px;
      padding: 1px 5px; flex-shrink: 0; line-height: 1.4;
    }
    [data-theme="dark"] .event-row.nieuw .row-date { background: #000000; border-right-color: #000000; }

    /* ── SKELETON LOADING ── */
    .skeleton-row {
      display: flex; align-items: stretch;
      background: var(--card); border: 1.5px solid var(--border);
      border-radius: 14px; margin-bottom: 6px; overflow: hidden; height: 58px;
    }
    .skeleton-date {
      width: 50px; flex-shrink: 0;
      border-right: 1.5px solid var(--border);
      display: flex; flex-direction: column; align-items: center;
      justify-content: center; gap: 4px; padding: 10px 4px;
    }
    .skeleton-body { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
    .skel {
      background: linear-gradient(90deg, #ece9e3 25%, #f5f3ef 50%, #ece9e3 75%);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
      border-radius: 4px;
    }
    @keyframes shimmer {
      from { background-position: 200% 0; }
      to   { background-position: -200% 0; }
    }
    .skel-num  { width: 24px; height: 22px; border-radius: 3px; }
    .skel-mon  { width: 20px; height: 8px; }
    .skel-title{ height: 12px; width: 60%; }
    .skel-sub  { height: 10px; width: 40%; }

    /* ── FOUT STATE ── */
    .error-state {
      text-align: center; padding: 40px 20px;
      display: flex; flex-direction: column; align-items: center; gap: 12px;
    }
    .error-icon { font-size: 36px; }
    .error-title { font-size: 14px; font-weight: 700; }
    .error-sub { font-size: 12px; color: var(--muted); }
    .retry-btn {
      margin-top: 4px;
      background: var(--dark); color: #fff; border: none;
      border-radius: 100px; padding: 10px 22px;
      font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700;
      cursor: pointer; transition: opacity 0.2s;
    }
    .retry-btn:hover { opacity: 0.8; }

    /* ── CALENDAR VIEW ── */
    .cal-wrap { padding: 16px 20px; flex: 1; }
    .cal-month-nav {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 14px;
    }
    .cal-month-name { font-size: 15px; font-weight: 800; }
    .cal-nav-btn {
      width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border);
      background: var(--card); cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: all 0.2s var(--smooth);
    }
    .cal-nav-btn:hover { background: var(--dark); border-color: var(--dark); }
    .cal-nav-btn:hover svg { stroke: #fff; }
    .cal-nav-btn svg { width: 14px; height: 14px; stroke: var(--dark); fill: none; stroke-width: 2; }

    .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; touch-action: pan-y; }
    .cal-grid-wrap { position: relative; overflow: hidden; }
    .cal-grid-track { position: relative; will-change: transform; }
    .cal-grid-track.swiping { transition: none !important; }
    .cal-grid-track.snap-back { transition: transform 0.28s var(--smooth) !important; }
    .cal-ghost-prev, .cal-ghost-next {
      position: absolute; top: 0; width: 100%;
      display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
      pointer-events: none;
    }
    .cal-ghost-prev { left: -100%; }
    .cal-ghost-next { left: 100%; }
    .cal-day-header {
      font-size: 9px; font-weight: 800; letter-spacing: 1px;
      text-transform: uppercase; color: var(--muted);
      text-align: center; padding: 4px 0;
    }
    .cal-day {
      aspect-ratio: 1; border-radius: 10px;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 600; cursor: pointer;
      transition: all 0.18s var(--smooth); position: relative;
      gap: 2px;
    }
    .cal-day.empty { cursor: default; }
    .cal-day:not(.empty):hover { background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
    .cal-day.has-event { font-weight: 800; }
    .cal-day.has-event::after {
      content: ''; width: 5px; height: 5px; border-radius: 50%;
      background: var(--red);
    }
    .cal-day.today {
      background: var(--dark); color: #fff;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .cal-day.today::after { background: var(--red) !important; }
    .cal-day.selected {
      background: var(--red); color: #fff;
      box-shadow: 0 4px 12px rgba(232,0,28,0.35);
      transform: scale(1.08);
    }
    .cal-day.selected::after { background: #fff !important; }

    .cal-events-header { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
    .cal-event-item {
      background: var(--card); border: 1.5px solid var(--border);
      border-radius: 12px; padding: 10px 14px;
      margin-bottom: 6px; cursor: pointer;
      transition: all 0.2s var(--smooth);
    }
    .cal-event-item:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
    .cal-event-title { font-size: 13px; font-weight: 700; }
    .cal-event-sub   { font-size: 11px; color: var(--muted); margin-top: 2px; }
    .cal-empty-state {
      text-align: center; padding: 24px 0;
      font-size: 12px; color: var(--muted); font-weight: 500;
    }

    /* ── INFO VIEW ── */
    .info-wrap { padding: 20px; flex: 1; }
    .info-logo { display: flex; justify-content: center; margin-bottom: 20px; }
    .info-logo img { width: 200px; }
    .info-card {
      background: var(--card); border: 1.5px solid var(--border);
      border-radius: 16px; padding: 16px 18px; margin-bottom: 10px;
    }
    .info-card-label { font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
    .info-card-value { font-size: 14px; font-weight: 700; }
    .info-card-sub   { font-size: 11px; color: var(--muted); margin-top: 3px; }
    .info-row { display: flex; gap: 10px; }
    .info-row .info-card { flex: 1; }
    .info-card.red { background: var(--red); border-color: var(--red); color: #fff; }
    .info-card.red .info-card-label { color: rgba(255,255,255,0.6); }
    .info-card.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
    .info-card.dark .info-card-label { color: rgba(255,255,255,0.5); }
    .info-tagline { text-align: center; font-size: 12px; font-style: italic; color: var(--muted); margin-top: 16px; font-weight: 400; }

    /* ── Klikbare info-card (navigatie) ── */
    .info-card.clickable { cursor: pointer; transition: transform 0.18s var(--smooth), box-shadow 0.18s; }
    .info-card.clickable:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
    .info-card.clickable:active { transform: scale(0.985); }

    /* ── SAMSUNG INSTALLATIEKAART ── */
    .samsung-warning {
      margin-top: 12px;
      background: #fff8e1; border: 1.5px solid #ffe082;
      border-radius: 10px; padding: 12px 14px;
      font-size: 12px; line-height: 1.6; color: #555;
    }
    [data-theme="dark"] .samsung-warning {
      background: #2c2a1a; border-color: #5a4e00; color: #c8a800;
    }
    .samsung-warning strong { color: #333; font-weight: 700; }
    [data-theme="dark"] .samsung-warning strong { color: #e0c860; }
    .samsung-warning-title {
      font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
      text-transform: uppercase; color: #b8860b; margin-bottom: 6px;
    }
    [data-theme="dark"] .samsung-warning-title { color: #e0b800; }
    .samsung-step {
      margin-top: 10px;
      background: rgba(0,0,0,0.04); border-radius: 8px;
      padding: 10px 12px;
      font-size: 11px; color: var(--dark); line-height: 1.6;
    }
    [data-theme="dark"] .samsung-step { background: rgba(255,255,255,0.06); color: var(--dark); }
    .samsung-step strong { font-weight: 700; }

    /* ── Sub-pagina header (sticky, terug-knop) ── */
    .subpage-header {
      position: sticky; top: 0; z-index: 10;
      background: rgba(242,241,237,0.92);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      display: flex; align-items: center;
      padding: 0 8px 0 4px; height: 54px; gap: 4px;
    }
    [data-theme="dark"] .subpage-header { background: rgba(28,28,30,0.92); }
    .subpage-back-btn {
      display: flex; align-items: center; gap: 4px;
      background: none; border: none; cursor: pointer;
      color: var(--red); font-family: 'Montserrat', sans-serif;
      font-size: 13px; font-weight: 700; padding: 10px 12px; flex-shrink: 0;
    }
    .subpage-back-btn svg { width: 20px; height: 20px; }
    .subpage-title {
      flex: 1; text-align: center;
      font-size: 14px; font-weight: 800; color: var(--dark);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      padding-right: 80px;
    }

    /* ── Agenda-keuzecards ── */
    .agenda-choice-card {
      background: var(--card); border: 1.5px solid var(--border);
      border-radius: 16px; padding: 16px 18px; margin-bottom: 10px;
      cursor: pointer;
      transition: border-color 0.18s, border-width 0.18s, transform 0.18s var(--smooth), box-shadow 0.18s;
    }
    .agenda-choice-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
    .agenda-choice-card:active { transform: scale(0.985); }
    .agenda-choice-card.selected { border-color: var(--red); border-width: 2px; }
    .choice-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .choice-icon-title { display: flex; align-items: center; gap: 10px; }
    .choice-title { font-size: 14px; font-weight: 800; }
    .choice-check {
      width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
      border: 2px solid var(--border); background: var(--bg);
      position: relative; transition: background 0.18s, border-color 0.18s;
    }
    .choice-check.on { background: var(--red); border-color: var(--red); }
    .choice-check.on::after {
      content: ''; position: absolute;
      left: 6px; top: 3px; width: 6px; height: 10px;
      border: 2.5px solid #fff; border-top: none; border-left: none;
      transform: rotate(45deg);
    }
    .choice-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
    .choice-test-btn {
      display: flex; align-items: center; justify-content: center; gap: 6px;
      width: 100%; background: none;
      border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 14px;
      font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; color: var(--dark);
      cursor: pointer; transition: background 0.18s, border-color 0.18s, transform 0.15s;
    }
    .choice-test-btn:hover { background: var(--bg); border-color: var(--dark); }
    .choice-test-btn:active { transform: scale(0.97); }
    .choice-test-btn.active-btn { background: var(--red); color: #fff; border-color: var(--red); }
    .choice-test-btn.active-btn:hover { opacity: 0.9; }
    .agenda-uitleg-card {
      background: var(--card); border: 1.5px solid var(--border);
      border-radius: 16px; padding: 16px 18px; margin-bottom: 16px;
    }
    .agenda-uitleg-card p { font-size: 13px; color: var(--dark); line-height: 1.6; }

    /* ── Filtervolgorde subpagina ── */
    .filter-order-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
    .filter-order-row {
      display: flex; align-items: center; gap: 12px;
      background: var(--card); border: 1.5px solid var(--border);
      border-radius: 12px; padding: 13px 14px;
      transition: box-shadow 0.2s, opacity 0.2s, transform 0.15s;
      cursor: grab; user-select: none;
    }
    .filter-order-row:active { cursor: grabbing; }
    .filter-order-row.locked {
      background: var(--bg); cursor: default; opacity: 0.72;
    }
    [data-theme="dark"] .filter-order-row.locked { background: rgba(255,255,255,0.04); }
    .filter-order-row.dragging { opacity: 0.45; box-shadow: 0 8px 24px rgba(0,0,0,0.18); transform: scale(1.02); }
    .filter-order-row.drag-over { border-color: var(--red); border-width: 2px; }
    .filter-order-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
    .filter-order-label { flex: 1; font-size: 14px; font-weight: 700; color: var(--dark); }
    .filter-order-row.locked .filter-order-label { color: var(--muted); }
    .filter-order-handle {
      color: var(--muted); font-size: 18px; line-height: 1;
      display: flex; align-items: center; flex-shrink: 0; opacity: 0.5;
      touch-action: none;
    }
    .filter-order-lock {
      color: var(--muted); display: flex; align-items: center; flex-shrink: 0; opacity: 0.4;
    }
    .filter-uitleg-card {
      background: var(--card); border: 1.5px solid var(--border);
      border-radius: 16px; padding: 16px 18px; margin-bottom: 14px;
    }
    .filter-uitleg-card p { font-size: 13px; color: var(--dark); line-height: 1.65; margin-bottom: 10px; }
    .filter-uitleg-card p:last-child { margin-bottom: 0; }
    .filter-uitleg-tip {
      display: flex; align-items: flex-start; gap: 8px;
      background: rgba(232,0,28,0.06); border-radius: 10px;
      padding: 10px 12px; margin-top: 10px;
      border: 1px solid rgba(232,0,28,0.15);
    }
    .filter-uitleg-tip-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
    .filter-uitleg-tip-text { font-size: 12px; color: var(--dark); line-height: 1.6; }
    .filter-reset-btn {
      width: 100%; padding: 13px 0; background: none;
      border: 1.5px solid var(--red); border-radius: 12px;
      font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700;
      color: var(--red); cursor: pointer; transition: background 0.18s, transform 0.15s;
      margin-bottom: 32px;
    }
    .filter-reset-btn:hover { background: rgba(232,0,28,0.05); }
    .filter-reset-btn:active { transform: scale(0.98); }

    /* ── Installatieknop in info-kaart ── */
    .install-info-btn {
      margin-top: 12px; width: 100%;
      background: var(--red); color: #fff; border: none;
      border-radius: 10px; padding: 11px 0;
      font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700;
      cursor: pointer; transition: opacity 0.15s;
    }
    .install-info-btn:active { opacity: 0.8; }

    /* ── iOS Installatiegids paneel ── */
    .ios-gids-panel {
      position: fixed; inset: 0; z-index: 300;
      background: var(--bg);
      transform: translateX(100%);
      transition: transform 0.38s var(--smooth);
      overflow-y: auto;
    }
    .ios-gids-panel.open { transform: translateX(0); }
    .ios-gids-body { padding: 20px 16px 48px; max-width: 480px; margin: 0 auto; }
    .ios-gids-intro {
      font-size: 13px; line-height: 1.6; color: #555;
      background: var(--card); border-radius: 14px;
      padding: 14px 16px; margin-bottom: 20px;
      border: 1.5px solid var(--border);
    }
    .ios-gids-stap {
      display: flex; gap: 14px; margin-bottom: 20px;
    }
    .ios-gids-num {
      width: 28px; height: 28px; border-radius: 50%;
      background: var(--dark); color: #fff;
      font-size: 13px; font-weight: 800;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; margin-top: 1px;
    }
    .ios-gids-inhoud { flex: 1; min-width: 0; }
    .ios-gids-titel { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
    .ios-gids-sub   { font-size: 12px; color: #666; line-height: 1.55; }
    .ios-gids-illustratie {
      margin-top: 10px; background: var(--card);
      border: 1.5px solid var(--border); border-radius: 12px;
      padding: 14px 12px; display: flex; align-items: center; justify-content: center;
    }
    .ios-gids-browser-bar {
      display: flex; align-items: center; gap: 6px;
      background: #f0f0f0; border-radius: 8px; padding: 6px 10px;
      font-size: 11px; color: #555; font-weight: 600; width: 100%;
    }
    .ios-gids-safari-logo { display: flex; flex-direction: column; align-items: center; margin-left: auto; }
    .ios-gids-toolbar {
      display: flex; align-items: center; justify-content: space-around;
      background: #f0f0f0; border-radius: 10px; padding: 8px 6px; width: 100%;
    }
    .ios-gids-tb-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
    .ios-gids-tb-btn.muted { opacity: 0.25; }
    .ios-gids-tb-btn.hl { background: rgba(232,0,28,0.1); border-radius: 7px; padding: 4px 8px; }
    .ios-gids-tb-btn.hl svg { stroke: var(--red); }
    .ios-gids-tb-lbl { font-size: 8px; font-weight: 800; color: var(--red); text-transform: uppercase; }
    .ios-gids-tb-addr {
      flex: 2; text-align: center; font-size: 9px; color: #888;
      border: 1px solid #ddd; border-radius: 6px; padding: 3px 6px; white-space: nowrap; overflow: hidden;
    }
    .ios-gids-sheet {
      width: 100%; border-radius: 8px; overflow: hidden; border: 1px solid var(--border);
    }
    .ios-gids-sheet-item {
      display: flex; align-items: center; gap: 8px;
      padding: 9px 12px; font-size: 12px; font-weight: 600;
      border-top: 1px solid var(--border);
    }
    .ios-gids-sheet-item:first-child { border-top: none; }
    .ios-gids-sheet-item.dim { color: #aaa; }
    .ios-gids-sheet-item.active { color: var(--dark); font-weight: 800; background: rgba(232,0,28,0.06); }
    .ios-gids-scroll-hint {
      font-size: 10px; font-weight: 700; color: var(--red);
      text-align: center; margin-top: 6px; width: 100%;
    }
    .ios-gids-voeg-toe {
      background: var(--red); color: #fff;
      font-size: 13px; font-weight: 700;
      border-radius: 8px; padding: 7px 16px;
    }
    .ios-gids-tip {
      background: #fff8e1; border: 1.5px solid #ffe082;
      border-radius: 12px; padding: 12px 14px;
      font-size: 12px; line-height: 1.55; color: #555;
      margin-top: 8px;
    }
    .info-socials { display: flex; gap: 8px; margin-bottom: 10px; }
    .info-social-btn {
      flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 6px; padding: 14px 8px;
      background: var(--dark); border: 1.5px solid var(--dark); border-radius: 16px;
      color: #fff; text-decoration: none;
      font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700;
      transition: background 0.18s, border-color 0.18s, transform 0.15s;
    }
    .info-social-btn:active { transform: scale(0.95); filter: brightness(0.9); }
    .info-social-btn svg { color: var(--red); }

    /* Push-help: (i) knop */
    .notif-info-btn {
      width: 18px; height: 18px; border-radius: 50%;
      background: none; border: 1.5px solid var(--muted);
      color: var(--muted); font-size: 10px; font-weight: 800;
      font-family: 'Montserrat', sans-serif;
      cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
      margin-left: 7px; vertical-align: middle; flex-shrink: 0;
      transition: background 0.18s, color 0.18s, border-color 0.18s;
    }
    .notif-info-btn.active {
      background: var(--red); border-color: var(--red); color: #fff;
    }

    /* Testmelding-knop */
    .notif-test-btn {
      display: block; width: 100%; margin-top: 10px;
      background: var(--red); color: #fff; border: none; border-radius: 10px;
      padding: 10px 14px; font-size: 13px; font-weight: 700;
      font-family: 'Montserrat', sans-serif;
      cursor: pointer; transition: opacity 0.18s, transform 0.18s;
    }
    .notif-test-btn:active { transform: scale(0.98); }
    .notif-test-btn:disabled { opacity: 0.6; cursor: default; }

    /* Uitklapbaar instructie-blok */
    .notif-help-wrap {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.38s var(--smooth), opacity 0.3s;
      opacity: 0;
    }
    .notif-help-wrap.open {
      max-height: 600px;
      opacity: 1;
    }
    .notif-help-inner { padding-top: 14px; }

    /* Tab-knoppen Android / iOS */
    .notif-help-tabs {
      display: flex; gap: 6px; margin-bottom: 12px;
    }
    .notif-help-tab {
      flex: 1; padding: 7px 0; border-radius: 10px;
      border: 1.5px solid var(--border);
      background: none; font-family: 'Montserrat', sans-serif;
      font-size: 11px; font-weight: 700; color: var(--muted);
      cursor: pointer; transition: background 0.18s, color 0.18s, border-color 0.18s;
    }
    .notif-help-tab.active {
      background: var(--dark); border-color: var(--dark); color: #fff;
    }

    /* Stappenlijst */
    .notif-help-steps { display: none; }
    .notif-help-steps.active { display: block; }
    .notif-help-step {
      display: flex; gap: 10px; margin-bottom: 9px; align-items: flex-start;
    }
    .notif-help-num {
      width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
      background: var(--red); color: #fff;
      font-size: 10px; font-weight: 800;
      display: flex; align-items: center; justify-content: center;
      margin-top: 1px;
    }
    .notif-help-text { font-size: 12px; color: var(--dark); line-height: 1.5; }
    .notif-help-text strong { font-weight: 700; }
    .notif-help-note {
      font-size: 11px; color: var(--muted); background: var(--bg);
      border-radius: 10px; padding: 8px 12px; margin-top: 4px;
    }
    .notif-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
    .notif-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
    .notif-slider {
      position: absolute; cursor: pointer;
      top: 0; left: 0; right: 0; bottom: 0;
      background: #ccc; border-radius: 26px;
      transition: background 0.25s;
    }
    .notif-slider::before {
      content: ''; position: absolute;
      width: 20px; height: 20px;
      left: 3px; bottom: 3px;
      background: #fff; border-radius: 50%;
      transition: transform 0.25s;
      box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    .notif-switch input:checked + .notif-slider { background: var(--red); }
    .notif-switch input:checked + .notif-slider::before { transform: translateX(20px); }

    /* ════════════════════════════════════════
       FAB
    ════════════════════════════════════════ */
    .fab-wrap {
      position: fixed; bottom: calc(74px + env(safe-area-inset-bottom, 0px));
      right: calc(50% - 215px + 20px); z-index: 200;
      animation: fabIn 0.6s 0.55s var(--spring) both;
    }
    @keyframes fabIn {
      from { transform: scale(0) rotate(-90deg); opacity: 0; }
      to   { transform: scale(1) rotate(0deg);   opacity: 1; }
    }
    .fab {
      display: flex; align-items: center; gap: 8px;
      background: var(--red); color: #fff;
      border: none; border-radius: 100px; padding: 13px 20px;
      font-family: 'Montserrat', sans-serif;
      font-size: 12px; font-weight: 700; cursor: pointer;
      box-shadow: 0 8px 28px rgba(232,0,28,0.4);
      transition: transform 0.22s var(--smooth), box-shadow 0.22s;
      text-decoration: none;
    }
    .fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 40px rgba(232,0,28,0.5); }
    .fab:active { transform: scale(0.96); }
    .fab svg { width: 15px; height: 15px; }
    .fab-wrap.hidden { display: none; }

    /* ════════════════════════════════════════
       BOTTOM NAV
    ════════════════════════════════════════ */
    nav {
      position: sticky; bottom: 0; z-index: 100;
      display: flex;
      background: var(--card);
      border-top: 1.5px solid var(--border);
      padding-bottom: env(safe-area-inset-bottom, 0px);
      animation: navIn 0.5s 0.05s var(--smooth) both;
    }
    @keyframes navIn {
      from { transform: translateY(100%); opacity: 0; }
      to   { transform: translateY(0); opacity: 1; }
    }
    nav a {
      flex: 1; display: flex; flex-direction: column;
      align-items: center; gap: 4px; padding: 10px 0 9px;
      color: var(--muted); text-decoration: none;
      font-size: 9px; font-weight: 700; letter-spacing: 0.4px;
      text-transform: uppercase; cursor: pointer;
      transition: color 0.2s;
      position: relative;
    }
    nav a.active { color: var(--red); }
    nav a.active::after {
      content: ''; position: absolute; bottom: 0;
      left: 50%; transform: translateX(-50%);
      width: 20px; height: 2px; border-radius: 1px;
      background: var(--red);
      animation: indicatorIn 0.3s var(--spring) both;
    }
    @keyframes indicatorIn {
      from { width: 0; opacity: 0; }
      to   { width: 20px; opacity: 1; }
    }
    nav a svg { width: 20px; height: 20px; }

    /* ── FORM VIEW ── */
    .form-wrap { padding: 16px 20px; flex: 1; overflow-y: auto; }
    .form-section-label {
      font-size: 11px; font-weight: 800; letter-spacing: 2px;
      text-transform: uppercase; color: var(--muted);
      padding: 18px 0 10px;
    }
    .form-section-label:first-child { padding-top: 4px; }
    .form-group { margin-bottom: 10px; }
    .form-row { display: flex; gap: 10px; }
    .form-row .form-group { flex: 1; }
    .form-label {
      display: block; font-size: 12px; font-weight: 700;
      color: var(--dark); margin-bottom: 6px; letter-spacing: 0.2px;
    }
    .form-label .req { color: var(--red); margin-left: 2px; }
    .form-input {
      width: 100%; background: var(--card);
      border: 1.5px solid var(--border); border-radius: 12px;
      padding: 13px 16px;
      font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 500;
      color: var(--dark); outline: none;
      transition: border-color 0.2s;
      -webkit-appearance: none; appearance: none;
    }
    .form-input:focus { border-color: var(--dark); }
    .form-input::placeholder { color: var(--muted); font-weight: 400; }
    .time-sel-wrap { display: flex; align-items: center; gap: 4px; }
    .time-sel-wrap .form-input { width: auto; flex: 1; padding-right: 8px; }
    .time-sel-sep { font-weight: 700; font-size: 16px; color: var(--dark); flex-shrink: 0; }

    .form-checks { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 4px; }
    .check-pill {
      display: inline-flex; align-items: center; gap: 6px;
      border: 1.5px solid var(--border); border-radius: 100px;
      padding: 7px 14px; cursor: pointer;
      font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600;
      color: var(--muted); background: var(--card);
      transition: all 0.18s var(--smooth);
      user-select: none;
    }
    .check-pill input { display: none; }
    .check-pill:has(input:checked),
    .check-pill.checked {
      background: var(--dark); color: #fff; border-color: var(--dark);
    }

    .form-submit {
      width: 100%; margin-top: 22px;
      background: var(--red); color: #fff; border: none;
      border-radius: 100px; padding: 15px;
      font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 800;
      cursor: pointer; letter-spacing: 0.3px;
      box-shadow: 0 8px 28px rgba(232,0,28,0.35);
      transition: transform 0.2s var(--smooth), box-shadow 0.2s, opacity 0.2s;
    }
    .form-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(232,0,28,0.45); }
    .form-submit:active { transform: scale(0.98); }
    .form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
    .form-feedback {
      margin-top: 14px; text-align: center; border-radius: 10px; padding: 0;
      font-size: 12px; font-weight: 600; line-height: 1.5;
    }
    .form-feedback.success { color: #1a7a2a; }
    .form-feedback.error   { color: var(--red); }

    /* Nominatim autocomplete dropdown */
    .loc-wrap { position: relative; }
    .loc-dropdown {
      display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 300;
      background: var(--card); border: 1.5px solid var(--border);
      border-radius: 12px; margin-top: 4px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.12);
      overflow: hidden;
    }
    .loc-option {
      padding: 11px 16px; font-size: 13px; font-weight: 500; color: var(--dark);
      cursor: pointer; border-bottom: 1px solid var(--border);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .loc-option:last-child { border-bottom: none; }
    .loc-option:hover { background: var(--bg); }
    .loc-attribution { font-size: 9px; color: var(--muted); margin-top: 4px; text-align: right; }
    .loc-attribution a { color: var(--muted); }
    .loc-spinner {
      display: flex; align-items: center; justify-content: center;
      padding: 12px;
    }
    .loc-spinner::after {
      content: ''; width: 16px; height: 16px; border-radius: 50%;
      border: 2px solid var(--border); border-top-color: var(--dark);
      animation: spin 0.6s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── INSTALL BANNER ── */
    .install-banner {
      position: fixed; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px;
      max-width: 406px; margin: 0 auto;
      background: var(--dark); color: #fff;
      border-radius: 18px;
      padding: 14px 16px;
      display: flex; align-items: center; gap: 12px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.25);
      z-index: 250;
      transform: translateY(calc(100% + 100px));
      transition: transform 0.45s var(--smooth);
    }
    .install-banner.visible { transform: translateY(0); }
    .install-logo {
      width: 44px; height: 44px; border-radius: 10px;
      background: var(--red); flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 22px;
    }
    .install-text { flex: 1; min-width: 0; }
    .install-text strong { display: block; font-size: 13px; font-weight: 700; }
    .install-text span   { display: block; font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }
    .install-btn {
      background: #fff; color: var(--dark);
      border: none; border-radius: 100px;
      padding: 8px 16px; font-size: 12px; font-weight: 800;
      cursor: pointer; white-space: nowrap; flex-shrink: 0;
      font-family: inherit;
    }
    .install-dismiss {
      background: none; border: none; color: rgba(255,255,255,0.45);
      font-size: 18px; line-height: 1; cursor: pointer;
      padding: 4px; flex-shrink: 0;
    }
    /* ── VOORSTEL BEVESTIGING ── */
    .bevestiging-overlay {
      position: fixed; inset: 0; z-index: 500;
      background: rgba(0,0,0,0.55); backdrop-filter: blur(3px);
      display: flex; align-items: center; justify-content: center;
      padding: 24px;
      opacity: 0; pointer-events: none;
      transition: opacity 0.25s ease;
    }
    .bevestiging-overlay.visible { opacity: 1; pointer-events: all; }
    .bevestiging-card {
      background: #fff; border-radius: 20px;
      padding: 28px 24px; width: 100%; max-width: 360px;
      text-align: center;
      transform: scale(0.92);
      transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
    }
    .bevestiging-overlay.visible .bevestiging-card { transform: scale(1); }
    .bevestiging-icon {
      width: 56px; height: 56px; border-radius: 50%;
      background: #f0faf0; margin: 0 auto 16px;
      display: flex; align-items: center; justify-content: center;
    }
    .bevestiging-icon svg { width: 28px; height: 28px; stroke: #2d9e4f; }
    .bevestiging-titel { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
    .bevestiging-tekst { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 24px; }
    .bevestiging-btn {
      width: 100%; background: var(--red); color: #fff; border: none;
      border-radius: 12px; padding: 13px 0;
      font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700;
      cursor: pointer;
    }

    /* ── RELEASE NOTES POPUP ── */
    .rn-overlay {
      position: fixed; inset: 0; z-index: 500;
      background: rgba(0,0,0,0.55); backdrop-filter: blur(3px);
      display: flex; align-items: flex-end; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity 0.25s ease;
    }
    .rn-overlay.visible { opacity: 1; pointer-events: all; }
    .rn-card {
      background: var(--dark); color: #fff;
      border-radius: 20px 20px 0 0;
      padding: 20px 20px 32px;
      width: 100%; max-width: 480px;
      transform: translateY(100%);
      transition: transform 0.38s cubic-bezier(0.16,1,0.3,1);
    }
    .rn-overlay.visible .rn-card { transform: translateY(0); }
    .rn-header {
      display: flex; align-items: flex-start; justify-content: space-between;
      margin-bottom: 16px;
    }
    .rn-title { font-size: 17px; font-weight: 800; }
    .rn-version {
      font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
      color: var(--red); text-transform: uppercase; margin-top: 2px;
    }
    .rn-close {
      background: rgba(255,255,255,0.12); border: none; color: #fff;
      width: 28px; height: 28px; border-radius: 50%;
      font-size: 14px; cursor: pointer; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
    }
    .rn-card { max-height: 80vh; display: flex; flex-direction: column; }
    .rn-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex: 1; }
    .rn-list li {
      padding: 9px 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      font-size: 14px; line-height: 1.4;
      display: flex; gap: 10px; align-items: flex-start;
    }
    .rn-list li:last-child { border-bottom: none; }
    .rn-list li::before { content: '✦'; color: var(--red); flex-shrink: 0; font-size: 10px; margin-top: 3px; }
    .rn-list .rn-history-header {
      font-size: 11px; font-weight: 800; letter-spacing: 1px;
      text-transform: uppercase; color: var(--red); padding: 14px 0 4px;
      border-bottom: none; margin-top: 4px;
    }
    .rn-list .rn-history-header::before { content: none; }
    .rn-list .rn-history-header:first-child { padding-top: 0; margin-top: 0; }

    /* ── INSTALLATIE — iOS hint ── */
    .ios-hint {
      position: fixed;
      bottom: calc(10px + env(safe-area-inset-bottom, 0px));
      left: 50%;
      transform: translateX(-50%) translateY(calc(100% + 80px));
      width: calc(100% - 24px); max-width: 406px;
      background: var(--dark); color: #fff;
      border-radius: 18px;
      padding: 16px 14px 14px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.32);
      z-index: 200;
      max-height: 90dvh; overflow-y: auto;
      transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
    }
    .ios-hint.visible { transform: translateX(-50%) translateY(0); }
    .ios-hint.visible .ios-sheet { animation-play-state: running; }
    .ios-hint.visible .ios-scroll-hint { animation-play-state: running; }
    .ios-hint.visible .ios-sheet-item.target { animation-play-state: running; }
    .ios-hint::after {
      content: '';
      position: absolute;
      bottom: -8px; left: 50%; transform: translateX(-50%);
      border-left: 9px solid transparent;
      border-right: 9px solid transparent;
      border-top: 9px solid var(--dark);
    }
    .ios-hint-close {
      float: right;
      background: none; border: none; color: rgba(255,255,255,0.45);
      font-size: 16px; line-height: 1; cursor: pointer; padding: 0 0 4px 8px;
    }
    .ios-hint-title { font-size: 13px; font-weight: 700; margin-bottom: 14px; }

    /* Stappen-layout */
    .ios-steps { display: flex; flex-direction: column; gap: 12px; }
    .ios-step-label {
      font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
      text-transform: uppercase; color: rgba(255,255,255,0.45);
      margin-bottom: 5px;
    }
    .ios-step-label em { font-style: normal; color: #fff; font-weight: 800; }
    .ios-step-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); }

    /* Stap 1 – toolbar */
    .ios-toolbar-preview {
      display: flex; justify-content: space-around; align-items: center;
      background: rgba(255,255,255,0.07);
      border-radius: 12px; padding: 8px 4px 6px;
    }
    .ios-tb-btn {
      display: flex; flex-direction: column; align-items: center; gap: 3px;
      flex: 1;
    }
    .ios-tb-btn svg { width: 22px; height: 22px; }
    .ios-tb-btn.muted  { opacity: 0.25; }
    .ios-tb-btn.highlight {
      opacity: 1;
      background: rgba(232,0,28,0.15); border-radius: 8px; padding: 4px 8px;
    }
    .ios-tb-btn.highlight svg { stroke: var(--red); }
    .ios-tb-label {
      font-size: 9px; font-weight: 700; letter-spacing: 0.3px;
      color: var(--red); text-transform: uppercase;
    }
    .ios-addr {
      flex: 2; opacity: 0.12;
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 8px; padding: 4px 8px;
      font-size: 10px; color: #fff; text-align: center;
    }

    /* Stap 2 – share sheet animatie */
    .ios-sheet-outer {
      border-radius: 12px; overflow: hidden;
      background: rgba(255,255,255,0.07);
      position: relative; height: 102px;
    }
    .ios-sheet {
      position: absolute; bottom: 0; left: 0; right: 0;
      display: flex; flex-direction: column;
      transform: translateY(100%);
      animation: iosSheetLoop 3.6s ease-in-out infinite;
      animation-play-state: paused;
    }
    .ios-sheet-item {
      display: flex; align-items: center; gap: 8px;
      padding: 7px 12px; font-size: 11px; font-weight: 600;
      border-top: 1px solid rgba(255,255,255,0.06);
    }
    .ios-sheet-item svg { width: 16px; height: 16px; flex-shrink: 0; }
    .ios-sheet-item.muted { color: rgba(255,255,255,0.3); }
    .ios-sheet-item.target {
      color: rgba(255,255,255,0.35);
      animation: iosItemPulse 3.6s ease-in-out infinite;
      animation-play-state: paused;
    }
    .ios-scroll-hint {
      position: absolute; bottom: 8px; right: 10px;
      font-size: 13px; font-weight: 800; color: var(--red);
      opacity: 0;
      animation: iosScrollHint 3.6s ease-in-out infinite;
      animation-play-state: paused;
    }
    @keyframes iosSheetLoop {
      0%   { transform: translateY(100%); }
      14%  { transform: translateY(0%); }
      45%  { transform: translateY(0%); }
      58%  { transform: translateY(-38px); }
      80%  { transform: translateY(-38px); }
      92%  { transform: translateY(-38px); opacity: 1; }
      100% { transform: translateY(-38px); opacity: 0; }
    }
    @keyframes iosScrollHint {
      0%, 14%  { opacity: 0; transform: translateY(0); }
      30%      { opacity: 1; transform: translateY(0); }
      50%      { opacity: 0; transform: translateY(6px); }
      100%     { opacity: 0; }
    }
    @keyframes iosItemPulse {
      0%, 50%   { color: rgba(255,255,255,0.3); background: transparent; border-radius: 0; }
      62%, 85%  { color: #fff; background: rgba(232,0,28,0.2); border-radius: 6px; }
      92%, 100% { color: rgba(255,255,255,0.3); background: transparent; }
    }

    /* Stap 3 */
    .ios-step3 {
      background: rgba(255,255,255,0.07); border-radius: 12px;
      padding: 9px 12px; font-size: 11px; font-weight: 600;
      color: rgba(255,255,255,0.75);
      display: flex; align-items: center; gap: 8px;
    }
    .ios-step3 svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.5; }

    /* ── DEMO BANNER ── */
    .demo-banner {
      background: #fff8e1; border-bottom: 1px solid #ffe082;
      padding: 7px 20px; text-align: center;
      font-size: 10px; font-weight: 700; color: #b8860b; letter-spacing: 0.3px;
    }

    /* ── KLIKBARE LOCATIE ── */
    .loc-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--border); }
    .loc-link:hover { text-decoration-color: var(--muted); }

    /* ── DETAIL EXTRA STYLES ── */
    .detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
    .detail-badge {
      display: inline-flex; align-items: center;
      border-radius: 100px; padding: 5px 14px;
      font-size: 11px; font-weight: 700; letter-spacing: 0.2px;
    }
    .detail-badge-past     { background: var(--bg); border: 1.5px solid var(--border); color: var(--muted); }
    .detail-badge-countdown{ background: var(--dark); color: #fff; }
    .detail-badge-today    { background: var(--red);  color: #fff; }
    .detail-full-date { font-size: 11px; opacity: 0.45; margin-top: 4px; font-weight: 500; }
    .detail-card-value { font-size: 14px; font-weight: 600; }
    .detail-extra-text { font-size: 14px; font-weight: 500; line-height: 1.6; white-space: pre-wrap; }
    .detail-section-label-red { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #c0392b; margin-bottom: 8px; }
    .detail-card-red { background: var(--card); border-radius: 14px; padding: 4px 16px; border-left: 3px solid #c0392b; }
    .wijziging-row { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--border); }
    .wijziging-row:last-child { border-bottom: none; }
    .wijziging-veld { font-size: 11px; font-weight: 700; color: #c0392b; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
    .wijziging-oud  { font-size: 14px; color: var(--dark); }
    .notif-badge-gewijzigd { display: inline-block; font-size: 10px; font-weight: 700; color: #c0392b; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
    .detail-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
    .detail-btn {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      width: 100%; padding: 14px; border-radius: 100px;
      font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700;
      cursor: pointer; text-decoration: none; border: none;
      transition: transform 0.2s var(--smooth), box-shadow 0.2s, opacity 0.2s;
    }
    .detail-btn:active { transform: scale(0.98); }
    .detail-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
    .detail-btn-dark { background: var(--dark); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
    .detail-btn-dark:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.22); }
    .detail-btn-outline { background: var(--card); color: var(--dark); border: 1.5px solid #c8c5be; }
    .detail-btn-outline:hover { border-color: var(--dark); }
    .form-textarea { resize: none; min-height: 90px; line-height: 1.5; }

    /* ── DETAIL PANEL ── */
    .detail-panel {
      position: fixed; inset: 0; z-index: 500;
      max-width: 430px; margin: 0 auto;
      background: var(--bg); display: flex; flex-direction: column;
      transform: translateX(100vw);
      transition: transform 0.38s var(--smooth);
      overflow: hidden;
    }
    .detail-panel.open { transform: translateX(0); }

    .detail-top {
      display: flex; align-items: center; padding: 0 20px; height: 60px; flex-shrink: 0;
      background: rgba(242,241,237,0.92);
      backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
    }
    .detail-back {
      display: flex; align-items: center; gap: 5px;
      background: none; border: none; cursor: pointer; padding: 0;
      font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; color: var(--red);
    }
    .detail-back svg { width: 18px; height: 18px; }
    .detail-top-title { flex: 1; text-align: center; font-size: 14px; font-weight: 700; }

    .detail-scroll { flex: 1; overflow-y: auto; padding: 20px; }

    .detail-past-badge {
      display: inline-flex; align-items: center;
      background: var(--bg); border: 1.5px solid var(--border);
      border-radius: 100px; padding: 4px 12px;
      font-size: 10px; font-weight: 700; color: var(--muted);
      margin-bottom: 14px;
    }
    .detail-hero {
      background: var(--dark); color: #fff; border-radius: 20px;
      padding: 18px 20px; display: flex; align-items: center; gap: 16px;
      margin-bottom: 20px;
    }
    .detail-date-block {
      background: var(--red); border-radius: 14px;
      padding: 10px 14px; text-align: center; flex-shrink: 0;
      display: flex; flex-direction: column; align-items: center;
    }
    .detail-date-block .big { font-size: 32px; font-weight: 900; line-height: 1; }
    .detail-date-block .mo  { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: 0.85; }
    .detail-hero-info { flex: 1; min-width: 0; }
    .detail-hero-title { font-size: 17px; font-weight: 900; line-height: 1.25; margin-bottom: 5px; }
    .detail-hero-time  { font-size: 13px; opacity: 0.55; font-weight: 500; }

    .detail-section { margin-bottom: 14px; }
    .detail-section-label {
      font-size: 11px; font-weight: 800; letter-spacing: 2px;
      text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
    }
    .detail-card {
      background: var(--card); border: 1.5px solid var(--border);
      border-radius: 14px; padding: 14px 16px;
    }
    .detail-loc-link {
      display: flex; align-items: center; gap: 8px;
      font-size: 14px; font-weight: 600; color: var(--dark);
      text-decoration: underline; text-underline-offset: 3px;
      text-decoration-color: var(--border);
    }
    .detail-loc-link svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.5; }
    .detail-tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
    .detail-tag {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
      border-radius: 999px;
      padding: 7px 14px 7px 12px;
      line-height: 1.2;
    }
    .detail-tag .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

    /* ── BOTTOM SPACE ── */
    .bottom-space { height: 80px; }

    /* ════════════════════════════════════════
       TOAST
    ════════════════════════════════════════ */
    #appToast {
      position: fixed; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); left: 50%;
      transform: translateX(-50%) translateY(8px);
      background: #1a1a1a; color: #fff;
      padding: 10px 18px; border-radius: 20px;
      font-size: 13px; font-weight: 600;
      white-space: nowrap; z-index: 9999;
      opacity: 0; pointer-events: none;
      transition: opacity 0.22s, transform 0.22s;
      max-width: calc(100% - 32px);
      text-align: center;
    }
    #appToast.toast-zichtbaar {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    [data-theme="dark"] #appToast { background: #f2f2f7; color: #1c1c1e; }

    /* ════════════════════════════════════════
       ONTWIKKELAARSOPTIES
    ════════════════════════════════════════ */
    .dev-opties-rij {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 16px;
      border-bottom: 1px solid var(--border);
    }
    .dev-opties-rij:last-child { border-bottom: none; }
    .dev-opties-tekst { flex: 1; min-width: 0; margin-right: 16px; }
    .dev-opties-label { font-size: 15px; font-weight: 600; color: var(--dark); }
    .dev-opties-beschrijving { font-size: 12px; color: var(--muted); margin-top: 2px; }

    .dev-opties-deactiveer-btn {
      width: 100%; padding: 14px; margin-top: 24px;
      background: var(--red); color: #fff;
      border: none; border-radius: 12px;
      font-family: 'Montserrat', sans-serif;
      font-size: 14px; font-weight: 700; cursor: pointer;
      transition: opacity 0.15s;
    }
    .dev-opties-deactiveer-btn:active { opacity: 0.75; }

    /* ════════════════════════════════════════
       BARBON
    ════════════════════════════════════════ */

    .barbon-paneel {
      padding: 20px 16px 100px;
      overflow-y: auto;
    }

    /* Intro-kaart */
    .barbon-intro-kaart {
      background: var(--card);
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
      padding: 18px;
      display: flex;
      gap: 14px;
      align-items: flex-start;
      margin-bottom: 24px;
    }
    .barbon-intro-icon {
      width: 46px; height: 46px;
      border-radius: 11px;
      background: rgba(232,0,28,0.09);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      color: var(--red);
    }
    [data-theme="dark"] .barbon-intro-icon { background: rgba(232,0,28,0.18); }
    .barbon-intro-tekst { flex: 1; }
    .barbon-intro-titel { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
    .barbon-intro-sub { font-size: 13px; line-height: 1.5; color: var(--muted); }

    /* E-mail input */
    .barbon-veld-label {
      font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
      color: var(--muted); margin-bottom: 8px; padding-left: 4px;
    }
    .barbon-email-wrap {
      background: var(--card);
      border-radius: 12px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
      border: 1px solid var(--border);
      padding: 14px 16px;
      display: flex; align-items: center; gap: 10px;
    }
    .barbon-email-input {
      flex: 1; border: none; background: transparent; outline: none;
      font-family: 'Montserrat', sans-serif; font-size: 15px;
      color: var(--dark); padding: 0;
    }
    .barbon-email-input::placeholder { color: var(--muted); font-weight: 400; }
    .barbon-email-hint {
      font-size: 12px; color: var(--muted);
      margin-top: 8px; padding-left: 4px; margin-bottom: 20px;
    }
    /* Stappenlijst in intro-kaart */
    .barbon-intro-stappen {
      margin: 10px 0 0 0; padding-left: 18px;
      font-size: 13px; line-height: 1.7; color: var(--muted);
    }
    .barbon-intro-stappen strong { color: var(--dark); }

    /* Secundaire knop */
    .barbon-sec-btn {
      width: 100%; padding: 13px; background: var(--card); color: var(--muted);
      border: 1.5px solid var(--border); border-radius: 12px;
      font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600;
      cursor: pointer; margin-top: 10px; transition: opacity 0.15s;
    }
    .barbon-sec-btn:active { opacity: 0.7; }

    /* Verificatie-kaart */
    .barbon-verif-kaart {
      background: var(--card);
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
      padding: 36px 22px 28px;
      text-align: center;
      margin-bottom: 20px;
    }
    .barbon-verif-icoon {
      width: 68px; height: 68px; border-radius: 34px;
      background: rgba(232,0,28,0.09); color: var(--red);
      margin: 0 auto 18px;
      display: flex; align-items: center; justify-content: center;
    }
    [data-theme="dark"] .barbon-verif-icoon { background: rgba(232,0,28,0.18); }
    .barbon-verif-titel {
      font-size: 20px; font-weight: 700; color: var(--dark);
      margin-bottom: 10px; letter-spacing: -0.2px;
    }
    .barbon-verif-sub {
      font-size: 13px; color: var(--muted); margin-bottom: 4px;
    }
    .barbon-verif-email {
      font-size: 15px; font-weight: 700; color: var(--dark);
      margin-bottom: 14px; word-break: break-all;
    }
    .barbon-verif-uitleg {
      font-size: 13px; color: var(--muted); line-height: 1.55;
      padding: 12px 14px;
      background: rgba(0,0,0,0.04); border-radius: 10px;
      text-align: left;
    }
    [data-theme="dark"] .barbon-verif-uitleg { background: rgba(255,255,255,0.06); }

    .barbon-email-fout {
      font-size: 12px; color: var(--red);
      margin-top: 8px; padding-left: 4px; font-weight: 600;
    }
    .barbon-email-wrap:has(+ .barbon-email-fout:not([style*="none"])) {
      border-color: var(--red);
    }
    .barbon-geen-bon {
      margin-top: 28px; text-align: center;
      font-size: 13px; color: var(--muted); line-height: 1.5;
    }
    .barbon-geen-bon strong { color: var(--dark); }

    /* Primaire knop */
    .barbon-primair-btn {
      width: 100%; padding: 15px; border: none;
      background: var(--red); color: #fff;
      border-radius: 12px; font-family: 'Montserrat', sans-serif;
      font-size: 15px; font-weight: 700; cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: 10px;
      transition: opacity 0.15s;
    }
    .barbon-primair-btn:active { opacity: 0.82; }

    /* iDEAL pill op knop */
    .barbon-ideal-btn { gap: 10px; }
    .barbon-ideal-pill {
      background: #fff; color: #cd0067;
      font-size: 10px; font-weight: 800;
      padding: 3px 7px; border-radius: 5px;
      letter-spacing: 0.3px; flex-shrink: 0;
    }
    .barbon-ideal-pill-licht {
      background: rgba(0,0,0,0.06); color: #cd0067;
    }
    [data-theme="dark"] .barbon-ideal-pill-licht {
      background: rgba(255,255,255,0.08);
    }

    /* Welkomstrip */
    .barbon-welkom-strip {
      display: flex; align-items: center; gap: 12px;
      padding: 0 4px; margin-bottom: 16px;
    }
    .barbon-avatar {
      width: 42px; height: 42px; border-radius: 21px;
      background: var(--red); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 14px; font-weight: 700; flex-shrink: 0;
    }
    .barbon-welkom-tekst { flex: 1; min-width: 0; }
    .barbon-welkom-naam { font-size: 15px; font-weight: 600; color: var(--dark); }
    .barbon-welkom-email {
      font-size: 12px; color: var(--muted);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .barbon-uitlog-link {
      display: block; width: 100%; background: none; border: none;
      cursor: pointer; font-family: 'Montserrat', sans-serif;
      font-size: 13px; font-weight: 600; color: var(--muted);
      text-align: center; padding: 8px 0 4px;
    }

    /* Saldo-kaart */
    .barbon-saldo-kaart {
      background: var(--card);
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
      padding: 28px 16px 26px;
      text-align: center;
      margin-bottom: 14px;
    }
    .barbon-saldo-label {
      font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
      color: var(--muted); margin-bottom: 12px;
    }
    .barbon-saldo-bedrag {
      font-size: 54px; font-weight: 800; line-height: 1;
      letter-spacing: -2px; color: var(--red);
      font-variant-numeric: tabular-nums;
    }
    .barbon-saldo-bedrag.barbon-saldo-nul { color: #3a9e42; }
    [data-theme="dark"] .barbon-saldo-bedrag.barbon-saldo-nul { color: #66bb6a; }
    .barbon-euro {
      font-size: 34px; font-weight: 700;
      vertical-align: top; margin-right: 3px;
    }
    .barbon-saldo-pill {
      margin-top: 16px;
      font-size: 12px; color: var(--muted);
      display: inline-flex; align-items: center; gap: 7px;
      padding: 5px 12px;
      background: rgba(0,0,0,0.05); border-radius: 999px;
    }
    [data-theme="dark"] .barbon-saldo-pill { background: rgba(255,255,255,0.07); }
    .barbon-saldo-pill-groen {
      color: #3a9e42; background: #e6f4e7;
    }
    [data-theme="dark"] .barbon-saldo-pill-groen { color: #66bb6a; background: #1b3a20; }
    .barbon-saldo-dot {
      width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0;
    }

    /* Sectieheader boven aanslagen */
    .barbon-sectie-header {
      display: flex; align-items: baseline; justify-content: space-between;
      padding: 0 4px 10px; margin-top: 26px;
    }
    .barbon-sectie-titel { font-size: 15px; font-weight: 700; color: var(--dark); }
    .barbon-sectie-count { font-size: 13px; color: var(--muted); }

    /* Aanslagen-kaart */
    .barbon-aanslagen-kaart {
      background: var(--card);
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
      overflow: hidden;
    }
    .barbon-aanslag-rij {
      display: flex; align-items: center;
      padding: 14px 16px; gap: 14px;
      border-bottom: 1px solid var(--border);
    }
    .barbon-aanslag-rij-last { border-bottom: none; }
    .barbon-aanslag-datum-blok {
      width: 40px; text-align: center; flex-shrink: 0;
    }
    .barbon-aanslag-dag {
      font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
      color: var(--muted); text-transform: uppercase;
    }
    .barbon-aanslag-num {
      font-size: 18px; font-weight: 800; color: var(--dark); line-height: 1.1;
    }
    .barbon-aanslag-mnd {
      font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
      color: var(--muted); text-transform: uppercase;
    }
    .barbon-aanslag-omschrijving {
      flex: 1; font-size: 15px; font-weight: 500; color: var(--dark);
      min-width: 0;
    }
    .barbon-aanslag-bedrag {
      font-size: 15px; font-weight: 700; color: var(--red);
      font-variant-numeric: tabular-nums; flex-shrink: 0;
    }
    .barbon-betaling-rij { align-items: center; }
    .barbon-betaling-icoon {
      width: 34px; height: 34px; border-radius: 50%;
      background: #d1f0e0; color: #1a9e5c;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    [data-theme="dark"] .barbon-betaling-icoon { background: #1a3d2b; color: #4cd98a; }
    .barbon-betaling-info { flex: 1; min-width: 0; }
    .barbon-betaling-omschrijving { font-size: 15px; font-weight: 500; color: var(--dark); }
    .barbon-betaling-datum { font-size: 12px; color: var(--muted); margin-top: 2px; }
    .barbon-betaling-bedrag {
      font-size: 15px; font-weight: 700; color: var(--dark);
      font-variant-numeric: tabular-nums; flex-shrink: 0;
    }
    .barbon-leeg {
      padding: 20px 16px; font-size: 14px; color: var(--muted); text-align: center;
    }

    /* Refresh-knop */
    .barbon-refresh-btn {
      margin-top: 16px;
      display: flex; align-items: center; justify-content: center; gap: 6px;
      font-size: 12px; color: var(--muted);
      background: none; border: none; cursor: pointer;
      font-family: 'Montserrat', sans-serif; width: 100%;
      padding: 4px;
    }

    /* Skeleton loader in saldo-bedrag */
    .barbon-skel {
      display: inline-block; width: 120px; height: 48px;
      border-radius: 8px;
      background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
      background-size: 200% 100%;
      animation: skelShimmer 1.4s infinite;
    }

    /* Success-kaart */
    .barbon-success-kaart {
      background: var(--card);
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
      border-left: 4px solid #3a9e42;
      padding: 36px 22px 28px;
      text-align: center;
      margin-bottom: 16px;
    }
    [data-theme="dark"] .barbon-success-kaart { border-left-color: #66bb6a; }
    .barbon-success-icoon {
      width: 72px; height: 72px; border-radius: 36px;
      background: #e6f4e7; color: #3a9e42;
      margin: 0 auto 18px;
      display: flex; align-items: center; justify-content: center;
    }
    [data-theme="dark"] .barbon-success-icoon { background: #1b3a20; color: #66bb6a; }
    .barbon-success-titel {
      font-size: 20px; font-weight: 700; color: var(--dark);
      margin-bottom: 8px; letter-spacing: -0.2px;
    }
    .barbon-success-sub {
      font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 18px;
    }
    .barbon-success-email-blok {
      background: rgba(0,0,0,0.05); border-radius: 10px;
      padding: 12px 14px;
      display: flex; align-items: center; gap: 10px; text-align: left;
    }
    [data-theme="dark"] .barbon-success-email-blok { background: rgba(255,255,255,0.07); }
    .barbon-success-email-label {
      font-size: 10px; font-weight: 700; letter-spacing: 0.6px; color: var(--muted);
    }
    .barbon-success-email-adres {
      font-size: 13px; font-weight: 600; color: var(--dark);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .barbon-success-bedrag-kaart {
      background: var(--card);
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
      padding: 16px;
    }
    .barbon-success-bedrag-header {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 10px;
    }
    .barbon-success-bedrag-lbl {
      font-size: 11px; font-weight: 700; letter-spacing: 0.6px; color: var(--muted);
    }
    .barbon-success-tijd { font-size: 12px; color: var(--muted); }
    .barbon-success-bedrag-getal {
      font-size: 28px; font-weight: 800; color: var(--dark);
      font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
    }
    .barbon-success-ideal-rij {
      margin-top: 12px; padding-top: 12px;
      border-top: 1px solid var(--border);
      display: flex; align-items: center; gap: 8px;
      font-size: 13px; color: var(--muted);
    }
    .barbon-opnieuw {
      margin-top: 14px; text-align: center;
      font-size: 13px; color: var(--muted);
    }
    .barbon-opnieuw-link { color: var(--red); font-weight: 600; cursor: pointer; }

    /* Verificatiecode-invoer */
    .barbon-code-grid {
      display: flex; justify-content: center; gap: 10px;
      margin: 22px 0 6px;
    }
    .barbon-code-input {
      width: 44px; height: 56px;
      border: 1.5px solid var(--border);
      background: var(--card);
      border-radius: 12px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
      text-align: center;
      font-family: 'Montserrat', sans-serif;
      font-size: 26px; font-weight: 700;
      color: var(--dark);
      outline: none; padding: 0;
      transition: border-color 0.15s, background 0.15s, color 0.15s;
      -moz-appearance: textfield;
    }
    .barbon-code-input::-webkit-outer-spin-button,
    .barbon-code-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
    .barbon-code-input:focus {
      border-color: var(--red);
      box-shadow: 0 0 0 3px rgba(232,0,28,0.12);
    }
    .barbon-code-input.gevuld {
      background: var(--dark);
      color: var(--card);
      border-color: var(--dark);
    }
    .barbon-code-input.fout {
      border-color: var(--red) !important;
      animation: barbonCodeShake 0.35s;
    }
    @keyframes barbonCodeShake {
      0%, 100% { transform: translateX(0); }
      20% { transform: translateX(-4px); }
      40% { transform: translateX(4px); }
      60% { transform: translateX(-3px); }
      80% { transform: translateX(3px); }
    }
    .barbon-code-resend {
      text-align: center; font-size: 13px; color: var(--muted);
      margin-top: 16px;
    }
    .barbon-code-resend-link {
      color: var(--red); font-weight: 700;
      background: none; border: none; padding: 0;
      font-family: 'Montserrat', sans-serif; font-size: 13px;
      cursor: pointer;
    }
    .barbon-code-resend-link[disabled] {
      color: var(--muted); cursor: default; font-weight: 600;
    }
    .barbon-code-fout {
      font-size: 13px; color: var(--red); font-weight: 600;
      text-align: center; margin-top: 12px;
    }
    .barbon-ander-email {
      display: block; width: 100%;
      background: none; border: none;
      color: var(--muted); font-family: 'Montserrat', sans-serif;
      font-size: 13px; font-weight: 600;
      text-align: center; padding: 14px 0 0;
      cursor: pointer; text-decoration: underline;
      text-underline-offset: 3px;
    }
