﻿/* Anqurio - app.css */
/* Brand: blue-violet #6366f1 / sky #38bdf8 / purple #9333ea — from logo gradient */

:root {
    --anq-primary:   #6366f1;
    --anq-secondary: #9333ea;
    --anq-accent:    #38bdf8;
    --anq-dark:      #1e1b4b;
    --anq-gray:      #6b7280;
    --anq-light:     #f5f3ff;
    --anq-border:    #e5e7eb;
    --anq-radius:    8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background: #f5f3ff;
}

a { color: var(--anq-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Toast container ────────────────────────────── */
#toastContainer {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* ── Navbar ─────────────────────────────────────── */
.anq-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 2rem;
    border-bottom: 1px solid rgba(99,102,241,.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #dde8ff;
    gap: 1rem;
    overflow: visible;
}
.anq-logo-img { width: auto; display: block; }

.anq-brand {
    position: relative;
    width: auto;
    flex-shrink: 0;
    align-self: stretch;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.anq-brand .anq-logo-img {
    position: absolute;
    height: 130px;
    top: -18px;
    left: 0;
    z-index: 1001;
    filter: drop-shadow(0 6px 16px rgba(99,102,241,.3));
    pointer-events: none; /* klikken gaan door naar elementen eronder (o.a. cam-knoppen) */
}
.anq-site-name {
    margin-left: 115px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    white-space: nowrap;
    background: linear-gradient(120deg, #6366f1 0%, #9333ea 55%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links a:not(.nav-btn-primary):not(.nav-btn-outline) {
    text-decoration: none;
    color: var(--anq-dark);
    font-weight: 600;
    font-size: .95rem;
    transition: color .2s;
}
.nav-links a:hover { color: var(--anq-primary); }

.nav-btn-primary {
    background: var(--anq-primary);
    color: #fff !important;
    padding: .45rem 1.1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s;
}
.nav-btn-primary:hover { background: var(--anq-secondary) !important; text-decoration: none; }

.nav-btn-outline {
    border: 1.5px solid var(--anq-primary);
    color: var(--anq-primary) !important;
    padding: .4rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s, color .2s;
}
.nav-btn-outline:hover { background: var(--anq-light); text-decoration: none; }

.lang-switch-nav {
    display: flex;
    align-items: center;
    padding-left: 1rem;
    border-left: 1px solid rgba(99,102,241,.25);
    position: relative;
}
.lang-drop-toggle {
    background: none;
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 6px;
    padding: .25rem .45rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .35rem;
    transition: background .15s;
    line-height: 1;
}
.lang-drop-toggle:hover { background: rgba(99,102,241,.07); }
.lang-drop-toggle img { display: block; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.lang-drop-toggle .lang-caret { font-size: .65rem; color: #6b7280; }
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    padding: .35rem;
    z-index: 2000;
    min-width: 120px;
    flex-direction: column;
    gap: .1rem;
}
.lang-dropdown.open { display: flex; }
.lang-option {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .65rem;
    border-radius: 7px;
    text-decoration: none !important;
    color: #1f2937;
    font-size: .88rem;
    font-weight: 500;
    transition: background .12s;
    white-space: nowrap;
}
.lang-option:hover { background: #f5f3ff; color: #4f46e5; text-decoration: none; }
.lang-option.active { background: #eef2ff; color: #4f46e5; font-weight: 700; }
.lang-option img { display: block; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.15); flex-shrink: 0; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--anq-dark); }

.btn-reinit {
    font-size: .75rem;
    color: var(--anq-gray) !important;
    margin-left: .5rem;
}

/* ── Main layout ────────────────────────────────── */
main { min-height: calc(100vh - 70px); }

/* ── Footer ─────────────────────────────────────── */
.footer-logo { height: 75px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(99,102,241,.4)); }
.anq-footer { border-top: none; padding: 2.5rem 2rem 1.5rem; background: #dde8ff; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer-brand { font-weight: 700; font-size: 1.1rem; color: var(--anq-dark); display: flex; align-items: center; gap: .5rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--anq-primary); font-size: .9rem; }
.footer-links a:hover { color: var(--anq-dark); text-decoration: none; }
.footer-copy { width: 100%; text-align: center; font-size: .8rem; color: #6366f1; margin-top: .5rem; }

/* ── Buttons ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.25rem; border-radius: var(--anq-radius); font-size: .95rem; font-weight: 600; cursor: pointer; border: none; transition: background .2s, opacity .2s; }
.btn-primary { background: var(--anq-primary); color: #fff; }
.btn-primary:hover { background: var(--anq-secondary); }
.btn-outline-primary { background: transparent; border: 1.5px solid var(--anq-primary); color: var(--anq-primary); }
.btn-outline-primary:hover { background: var(--anq-light); }
.btn-sm { font-size: .82rem; padding: .3rem .75rem; }
.btn-lg { font-size: 1.05rem; padding: .7rem 2rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Auth pages ─────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--anq-light) 0%, #ddd6fe 100%);
    padding: 2rem 1rem;
}
.auth-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(99,102,241,.12);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}
.auth-logo {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--anq-dark);
    margin-bottom: 1.25rem;
}
.auth-card h1 { font-size: 1.4rem; margin-bottom: 1.25rem; text-align: center; }
.auth-links { text-align: center; font-size: .9rem; color: var(--anq-gray); margin-top: .5rem; }

/* ── Homepage ────────────────────────────────────── */
.anq-home { }

.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 50%, #9333ea 100%);
    color: #fff;
    padding: 5rem 2rem 4rem;
    text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}
.hero-title { font-size: 2.75rem; font-weight: 800; line-height: 1.18; margin-bottom: 1rem; color: #fff; }
.hero-title span { color: #e9d5ff; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 2.5rem; line-height: 1.6; }

.code-box {
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    margin-bottom: 0;
}
.code-label { font-size: .82rem; color: #ddd6fe; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.code-value { font-size: 1.6rem; font-weight: 800; letter-spacing: .02em; font-family: 'Courier New', monospace; color: #fff; }
.code-copy-btn {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: .82rem;
    padding: .35rem .9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}
.code-copy-btn:hover { background: rgba(255,255,255,.25); }

.hero-code-qr-row {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.code-box,
.hero-qr-card {
    width: 220px;
    flex-shrink: 0;
}
.code-box {
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 0;
}
.hero-qr-card {
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.22);
    border-radius: 14px;
    padding: 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}
.hero-qr-label { font-size: .78rem; color: #ddd6fe; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero-qr-link {
    font-size: .72rem;
    color: #c4b5fd;
    word-break: break-all;
    text-align: center;
    max-width: 160px;
}
.hero-qr-btns { display: flex; gap: .4rem; }
.hero-qr-btn {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: .75rem;
    padding: .3rem .7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.hero-qr-btn:hover { background: rgba(255,255,255,.28); }

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary { background: var(--anq-primary); color: #fff; padding: .75rem 2rem; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background .2s; border: none; cursor: pointer; }
.btn-hero-primary:hover { background: var(--anq-secondary); text-decoration: none; color: #fff; }
.btn-hero-secondary { background: rgba(255,255,255,.12); color: #fff; padding: .75rem 2rem; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid rgba(255,255,255,.25); transition: background .2s; }
.btn-hero-secondary:hover { background: rgba(255,255,255,.22); text-decoration: none; color: #fff; }

/* How / sections */
.join-section { background: #fff; padding: 3rem 2rem; text-align: center; border-top: 1.5px solid var(--anq-border); }
.join-inner { max-width: 520px; margin: 0 auto; }
.join-title { font-size: 1.4rem; font-weight: 800; color: var(--anq-dark); margin-bottom: .5rem; }
.join-desc { font-size: .97rem; color: var(--anq-gray); margin-bottom: 1.25rem; }
.join-form { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.join-input { border: 2px solid var(--anq-border); border-radius: 8px; padding: .65rem 1rem; font-size: 1rem; width: 260px; outline: none; transition: border-color .2s; }
.join-input:focus { border-color: var(--anq-primary); }
.how-section, .features-section, .pricing-section { padding: 4rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.how-section     { background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%); color: #fff; }
.how-section .section-title { color: #fff; }
.how-section .step h3 { color: #e0e7ff; }
.how-section .step p { color: #c4b5fd; }
.how-section .step-num { background: rgba(255,255,255,.2); color: #fff; border: 2px solid rgba(255,255,255,.4); }
.features-section { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); }
.features-section .section-title { color: #fff; }
.pricing-section { background: linear-gradient(180deg, #b8cbf5 0%, #9ab2ef 100%); }
.pricing-section .section-title { color: var(--anq-dark); }
.section-title { font-size: 1.85rem; font-weight: 800; text-align: center; color: var(--anq-dark); margin-bottom: 2.5rem; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.step { text-align: center; padding: 1.5rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--anq-primary); color: #fff; font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step p { color: var(--anq-gray); font-size: .95rem; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature-card { background: #fff; border: none; border-radius: 12px; padding: 1.75rem; transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.15); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature-card p { color: var(--anq-gray); font-size: .92rem; line-height: 1.5; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.pricing-card { background: #fff; border: 2px solid #c7d2fe; border-radius: 14px; padding: 2rem; position: relative; }
.pricing-card.featured { background: #fff; border-color: var(--anq-primary); box-shadow: 0 8px 30px rgba(99,102,241,.2); }
.pricing-badge { position: absolute; top: -1px; right: 1.5rem; background: var(--anq-primary); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .75rem; border-radius: 0 0 8px 8px; }
.pricing-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.price { font-size: 2.25rem; font-weight: 800; color: var(--anq-dark); margin: .75rem 0; }
.price sup { font-size: 1rem; vertical-align: top; margin-top: .5rem; font-weight: 600; }
.price span { font-size: 1rem; font-weight: 400; color: var(--anq-gray); }
.pricing-card ul { list-style: none; margin: 1rem 0 1.5rem; }
.pricing-card li { padding: .3rem 0; font-size: .92rem; color: #374151; }
.pricing-card li::before { content: '✓ '; color: var(--anq-primary); font-weight: 700; }
.pricing-li-blank::before { content: '' !important; }
.pricing-li-blank { color: transparent !important; user-select: none; }
.pricing-cta { display: block; text-align: center; padding: .65rem; border-radius: 8px; font-weight: 700; text-decoration: none; background: var(--anq-primary); color: #fff; transition: background .2s; }
.pricing-cta:hover { background: var(--anq-secondary); text-decoration: none; color: #fff; }
.pricing-cta.outline { background: transparent; border: 1.5px solid var(--anq-primary); color: var(--anq-primary); }
.pricing-cta.outline:hover { background: var(--anq-light); }

/* ── Chat page ───────────────────────────────────── */
.chat-page { height: calc(100dvh - 65px); overflow: hidden; display: flex; flex-direction: column; background: #eef2ff; }
.chat-layout { display: flex; flex: 1; min-height: 0; overflow: hidden; background: #eef2ff; }

.chat-sidebar {
    width: 300px;
    flex-shrink: 0;
    border-right: 1px solid #c7d2fe;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    padding-top: 85px;   /* ruimte voor uitstekend logo */
    gap: 1rem;
    background: #dde8ff;
    overflow-y: auto;
}

/* ── Sidebar cam-boxen ───────────────────────────── */
.sidebar-cams { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .5rem; }
.cam-focus-toggle-btn {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border: 1px solid rgba(99,102,241,.35);
    background: #fff;
    color: #3847a4;
    border-radius: 999px;
    height: 30px;
    padding: 0 .7rem;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.cam-focus-toggle-btn:hover {
    background: #eef2ff;
    border-color: rgba(99,102,241,.55);
}
.cam-focus-toggle-btn--active {
    background: var(--anq-primary);
    color: #fff;
    border-color: var(--anq-primary);
}
.sidebar-cam-box {
    position: relative;
    background: transparent;
    border: 2px dashed rgba(99,102,241,.35);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-cam-box.active { border-style: solid; border-color: var(--anq-primary); }

.cam-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    height: 100%;
    cursor: pointer;
    user-select: none;
    padding: .75rem;
    text-align: center;
}
.cam-placeholder-icon { font-size: 1.6rem; line-height: 1; }
.cam-placeholder-text { font-size: .72rem; font-weight: 600; color: var(--anq-primary); opacity: .7; line-height: 1.3; }
.cam-placeholder:hover .cam-placeholder-text { opacity: 1; }

.cam-placeholder--connecting {
    background: linear-gradient(180deg, rgba(221,232,255,.92), rgba(206,222,252,.92));
    cursor: default;
}

.cam-placeholder--connecting::after {
    content: '';
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: -45%;
    width: 40%;
    background: linear-gradient(90deg, rgba(99,102,241,0), rgba(99,102,241,.28), rgba(99,102,241,0));
    transform: skewX(-18deg);
    animation: anqCamScan 1.35s linear infinite;
    pointer-events: none;
}

.cam-placeholder--connecting .cam-placeholder-icon {
    color: var(--anq-primary);
    animation: anqCamPulse 1.1s ease-in-out infinite;
}

.cam-placeholder--connecting .cam-placeholder-text {
    opacity: 1;
    color: #35406e;
}

@keyframes anqCamScan {
    from { left: -45%; }
    to   { left: 120%; }
}

@keyframes anqCamPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

.cam-stop-overlay {
    position: absolute;
    top: .3rem;
    left: .3rem;
    background: rgba(0,0,0,.4);
    color: rgba(255,255,255,.7);
    border: none;
    border-radius: 4px;
    font-size: .65rem;
    font-weight: 600;
    padding: .15rem .45rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .2s, color .2s;
    white-space: nowrap;
    z-index: 1100;
}
.cam-pause-overlay {
    position: absolute;
    top: .3rem;
    left: 3.2rem;
    background: rgba(0,0,0,.4);
    color: rgba(255,255,255,.7);
    border: none;
    border-radius: 4px;
    font-size: .65rem;
    font-weight: 600;
    padding: .15rem .45rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .2s, color .2s;
    z-index: 1100;
}
.cam-pause-overlay--paused {
    opacity: 1 !important;
    background: rgba(234,179,8,.85);
    color: #1c1917;
}
.cam-freeze-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(.85);
}
.sidebar-cam-box:hover .cam-stop-overlay,
.sidebar-cam-box:hover .cam-pause-overlay,
.sidebar-cam-box:hover .cam-mic-overlay,
.chat-cam-box:hover .cam-stop-overlay,
.chat-cam-box:hover .cam-pause-overlay,
.chat-cam-box:hover .cam-mic-overlay { opacity: 1; }
.cam-stop-overlay:hover  { background: rgba(185,28,28,.8);  color: #fff; }
.cam-pause-overlay:hover { background: rgba(100,116,139,.8); color: #fff; }
.cam-mic-overlay:hover   { background: rgba(100,116,139,.8); color: #fff; }
.cam-mic-overlay {
    position: absolute;
    bottom: .45rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: 1rem;
    font-size: .72rem;
    font-weight: 600;
    padding: .18rem .65rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .2s;
    white-space: nowrap;
    z-index: 1100;
}
.cam-mic-overlay--muted {
    opacity: 1 !important;
    background: rgba(185,28,28,.85);
}
.sidebar-cam-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.sidebar-cam-box video.d-none { width: 0; height: 0; position: absolute; }
.remote-muted-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.72);
    color: #fff;
    padding: .25rem .75rem;
    border-radius: 1rem;
    font-size: .78rem;
    cursor: pointer;
    z-index: 10;
    white-space: nowrap;
    pointer-events: auto;
}
.sidebar-cam-label {
    position: absolute;
    bottom: .3rem;
    left: .4rem;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    padding: .15rem .4rem;
    border-radius: 4px;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-cam-popup {
    position: absolute;
    top: .3rem;
    right: .3rem;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    font-size: .7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}
.sidebar-cam-box:hover .sidebar-cam-popup { opacity: 1; }

/* ── Nickname ────────────────────────────────────── */
.nickname-row { display: flex; gap: .4rem; align-items: center; }
.nickname-row input { flex: 1; }
.btn-nickname-save {
    background: var(--anq-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: .9rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-nickname-save:hover { background: var(--anq-secondary); }

/* ── Contacten-paneel ────────────────────────────── */
.contacts-panel { display: flex; flex-direction: column; gap: .2rem; }
.contact-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
    border: 1.5px solid transparent;
}
.contact-item:hover { background: rgba(99,102,241,.08); }
.contact-item.active {
    background: rgba(99,102,241,.14);
    border-color: var(--anq-primary);
}
.contact-item--offline { opacity: .45; }
.contact-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--anq-primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info { flex: 1; min-width: 0; }
.contact-code { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-status { font-size: .72rem; color: var(--anq-gray); }
.contact-status--online { color: #16a34a; }
.contacts-empty { font-size: .82rem; color: var(--anq-gray); font-style: italic; padding: .35rem .2rem; }

/* ── Welcome popup ──────────────────────────────────────────── */
.welcome-overlay { position: fixed; inset: 0; background: rgba(15,20,60,.55); display: flex; align-items: center; justify-content: center; z-index: 1100; }
.welcome-overlay.d-none { display: none; }
.welcome-box { background: #fff; border-radius: 16px; padding: 2rem 2rem 1.75rem; max-width: 380px; width: 90%; text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,.18); }
.welcome-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.welcome-box h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; color: var(--anq-dark); }
.welcome-box p { font-size: .94rem; color: #374151; line-height: 1.55; margin-bottom: 1.25rem; }
.welcome-box .btn-connect { width: 100%; padding: .65rem 1rem; font-size: 1rem; }

/* ── Cam popup overlay ───────────────────────────── */
.cam-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cam-popup-inner {
    position: relative;
    width: min(90vw, 900px);
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.cam-popup-close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cam-popup-close:hover { background: rgba(255,255,255,.3); }
.sidebar-section { }
.sidebar-label { font-size: .78rem; font-weight: 700; color: var(--anq-gray); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.sidebar-code { font-size: 1.05rem; font-weight: 700; font-family: monospace; color: var(--anq-dark); background: var(--anq-light); padding: .4rem .75rem; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.btn-copy-small { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: .55; transition: opacity .2s; }
.btn-copy-small:hover { opacity: 1; }
.code-input-row { display: flex; gap: .4rem; }
.code-input-row input { flex: 1; border: 1.5px solid var(--anq-border); border-radius: 6px; padding: .45rem .75rem; font-size: .93rem; }
.btn-connect { background: var(--anq-primary); color: #fff; border: none; border-radius: 6px; padding: .45rem .9rem; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chat-status-label { font-size: .82rem; color: var(--anq-gray); }
.chat-status-label.connected { color: #16a34a; }
.sidebar-share { }
.share-link { font-size: .8rem; color: var(--anq-gray); word-break: break-all; }

.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #f5f7ff; position: relative; }

.cam-focus-area {
    flex: 0 0 40%;
    min-height: 190px;
    max-height: 46%;
    padding: .6rem .8rem;
    background: #eaf0ff;
    border-bottom: 1px solid rgba(99,102,241,.16);
}

.cam-focus-grid {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}

.cam-focus-grid .sidebar-cam-box {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
}

.chat-main.cam-focus-mode .chat-messages {
    flex: 1;
}
.remote-theater-btn {
    position: absolute;
    top: 1.8rem;
    right: .3rem;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    font-size: .7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}
.sidebar-cam-box:hover .remote-theater-btn { opacity: 1; }
.remote-theater-btn--active {
    opacity: 1 !important;
    background: var(--anq-primary);
}

.cam-focus-grid .remote-theater-btn {
    opacity: 1;
    top: .35rem;
    right: .35rem;
}

.chat-channel-bar { display: flex; align-items: center; gap: .4rem; padding: .45rem 1rem; background: #fff; border-bottom: 1.5px solid rgba(99,102,241,.12); font-size: .85rem; }
.chat-channel-with { color: var(--anq-gray); font-weight: 500; }
.chat-channel-code { font-weight: 800; color: var(--anq-primary); font-family: monospace; font-size: .95rem; letter-spacing: .02em; }

/* Image preview modal */
.img-preview-modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 9990; display: flex; align-items: center; justify-content: center; }
.img-preview-modal.d-none { display: none; }
.img-preview-box { background: #fff; border-radius: 16px; padding: 1.5rem; max-width: 480px; width: 92%; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 8px 32px rgba(0,0,0,.25); position: relative; }
.img-preview-close { position: absolute; top: .75rem; right: .9rem; background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--anq-gray); }
.img-preview-img-wrap { display: flex; justify-content: center; background: #f5f7ff; border-radius: 10px; padding: .75rem; }
.img-preview-img-wrap img { max-width: 100%; max-height: 320px; border-radius: 8px; object-fit: contain; }
.img-preview-caption { width: 100%; border: 1.5px solid var(--anq-border); border-radius: 8px; padding: .5rem .75rem; font-size: .95rem; outline: none; }
.img-preview-caption:focus { border-color: var(--anq-primary); }
.img-preview-actions { display: flex; gap: .75rem; justify-content: flex-end; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; justify-content: flex-end; }
.chat-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; color: var(--anq-gray); flex: 1; text-align: center; }
.chat-placeholder-icon { font-size: 3rem; }
.chat-input-bar { border-top: 1px solid var(--anq-border); padding: .75rem 1rem; display: flex; gap: .5rem; align-items: center; }
.chat-input-bar input { flex: 1; border: 1.5px solid var(--anq-border); border-radius: 24px; padding: .5rem 1rem; font-size: .95rem; outline: none; }
.chat-input-bar input:focus { border-color: var(--anq-primary); }

/* Nieuwe input-area layout */
.chat-input-area {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid var(--anq-border);
    padding: .75rem 1rem;
    padding-bottom: max(.75rem, env(safe-area-inset-bottom));
}
.chat-input-row { display: flex; gap: .5rem; align-items: flex-end; }
.chat-textarea {
    flex: 1;
    border: 1.5px solid #e5e7eb;
    border-radius: 22px;
    padding: .6rem 1.1rem;
    font-size: .95rem;
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 40px;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.45;
    transition: border-color .2s;
}
.chat-textarea:focus { border-color: var(--anq-primary); }
.btn-image-attach {
    background: none;
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
    padding: .25rem .3rem;
    border-radius: 50%;
    opacity: .55;
    line-height: 1;
    flex-shrink: 0;
    transition: opacity .15s, background .15s;
}
.btn-image-attach:hover:not(:disabled) { opacity: 1; background: rgba(0,0,0,.06); }
.btn-image-attach:disabled { cursor: default; }
.btn-send { background: var(--anq-primary); color: #fff; border: none; border-radius: 22px; padding: .55rem 1.4rem; font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background .2s; }
.btn-send:hover:not(:disabled) { background: var(--anq-secondary); }
.btn-send:disabled { opacity: .55; cursor: default; }
.btn-emoji { background: none; border: none; font-size: 1.35rem; cursor: pointer; padding: .1rem .2rem; line-height: 1; opacity: .55; transition: opacity .15s; border-radius: 50%; }
.btn-emoji:hover:not(:disabled) { opacity: 1; background: rgba(0,0,0,.06); }
.btn-emoji:disabled { cursor: default; }
.emoji-picker-wrapper { position: relative; display: flex; align-items: center; }

/* ── Image preview modal ─────────────────────────── */
.img-preview-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.img-preview-dialog { background: #fff; border-radius: 14px; padding: 1.25rem; max-width: 480px; width: 90%; max-height: 90vh; display: flex; flex-direction: column; gap: .75rem; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.img-preview-header { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: #1f2937; font-size: 1rem; }
.img-preview-close { background: none; border: none; cursor: pointer; font-size: 1rem; color: #6b7280; padding: .3rem .4rem; border-radius: 6px; line-height: 1; transition: background .1s, color .1s; }
.img-preview-close:hover { background: #f3f4f6; color: #111827; }
.img-preview-body { display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: #f9fafb; min-height: 120px; }
.img-preview-image { max-width: 100%; max-height: 320px; object-fit: contain; border-radius: 10px; display: block; }
.img-preview-footer { display: flex; flex-direction: column; gap: .6rem; }
.img-preview-caption { border: 1px solid #d1d5db; border-radius: 8px; padding: .5rem .75rem; font-size: .875rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.img-preview-caption:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.img-preview-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.img-preview-send-btn { background: #4f46e5 !important; border: none !important; border-radius: 50px !important; padding: .45rem 1.2rem !important; }
.emoji-popup { display: none; position: absolute; bottom: calc(100% + 8px); left: 0; background: #fff; border: 1px solid var(--anq-border); border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.13); padding: .6rem .5rem; width: 272px; flex-wrap: wrap; gap: 2px; z-index: 999; }
.emoji-popup.open { display: flex; }
.emoji-popup button { background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: .25rem; border-radius: 6px; line-height: 1; transition: background .1s; }
.emoji-popup button:hover { background: rgba(0,0,0,.07); }

.msg-bubble { max-width: 70%; padding: .55rem .9rem; border-radius: 12px; font-size: .94rem; line-height: 1.45; }
.msg-broadcast { background: #fffbe6; border: 1px solid #f59e0b; border-radius: 8px; padding: .45rem 1rem; font-size: .82rem; color: #78350f; text-align: center; margin: 0 .5rem; align-self: stretch; }
.msg-emoji-only { font-size: 2rem; background: transparent !important; padding: .1rem .3rem; box-shadow: none; }
.msg-mine { background: var(--anq-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.msg-theirs { background: #f3f4f6; color: #1f2937; align-self: flex-start; border-bottom-left-radius: 3px; }
.msg-time { font-size: .72rem; opacity: 0; margin-top: .2rem; transition: opacity .15s; }
.msg-bubble:hover .msg-time { opacity: .65; }

/* ── Cam page ────────────────────────────────────── */
.cam-page { min-height: calc(100vh - 70px); }
.cam-layout { display: flex; height: calc(100vh - 70px); }
.cam-sidebar { width: 260px; flex-shrink: 0; border-right: 1px solid var(--anq-border); background: ##fafafa; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.cam-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cam-videos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: .75rem; flex-shrink: 0; }
.cam-video-box { background: ##0f2d5f; border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.cam-video-box video { width: 100%; height: 100%; object-fit: cover; }
.cam-video-label { position: absolute; bottom: .5rem; left: .75rem; background: rgba(0,0,0,.6); color: ##fff; font-size: .78rem; font-weight: 600; padding: .2rem .55rem; border-radius: 5px; }
.cam-chat { flex-shrink: 0; height: 200px; border-top: 1px solid var(--anq-border); display: flex; flex-direction: column; }
.cam-chat .chat-messages { flex: 1; overflow-y: auto; padding: .75rem 1rem; }
.cam-chat .chat-input-bar { padding: .5rem .75rem; }
.btn-cam-start { background: ##16a34a; color: ##fff; border: none; border-radius: 6px; padding: .5rem 1.1rem; font-weight: 600; cursor: pointer; }
.btn-cam-stop  { background: ##dc2626; color: ##fff; border: none; border-radius: 6px; padding: .5rem 1.1rem; font-weight: 600; cursor: pointer; }

/* ── Dashboard ───────────────────────────────────── */
.dash-wrapper { display: flex; min-height: calc(100vh - 70px); }
.dash-sidebar {
    width: 240px;
    flex-shrink: 0;
    border-right: 1px solid var(--anq-border);
    display: flex;
    flex-direction: column;
    background: var(--anq-dark);
    color: #e0d9ff;
    padding: 1.5rem 1rem;
}
.dash-sidebar-logo { font-weight: 800; font-size: 1.1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.dash-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.dash-nav a { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 6px; color: #c4b5fd; text-decoration: none; font-size: .93rem; transition: background .2s, color .2s; }
.dash-nav a:hover, .dash-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.dash-sidebar-footer { font-size: .8rem; color: #6b7280; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.dash-sidebar-footer a { color: #a78bfa; }

.dash-content { flex: 1; padding: 2rem; overflow-y: auto; }

/* Code-pagina: links de cards, rechts de QR */
.code-page-layout { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.code-page-left  { flex: 1; min-width: 280px; max-width: 500px; display: flex; flex-direction: column; }
.code-page-right { flex-shrink: 0; }
.dash-header { margin-bottom: 2rem; }
.dash-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--anq-dark); }
.dash-header p { color: var(--anq-gray); margin-top: .25rem; }

.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.dash-card { border: 1.5px solid var(--anq-border); border-radius: 12px; padding: 1.5rem; background: ##fff; }
.dash-card-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.dash-card-label { font-size: .8rem; font-weight: 700; color: var(--anq-gray); text-transform: uppercase; letter-spacing: .05em; }
.dash-card-value { font-size: 1.35rem; font-weight: 800; color: var(--anq-dark); margin: .35rem 0 .75rem; font-family: monospace; }
.dash-card-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-dash-sm { font-size: .82rem; padding: .3rem .8rem; border-radius: 6px; border: 1.5px solid var(--anq-primary); color: var(--anq-primary); background: transparent; cursor: pointer; transition: background .2s; }
.btn-dash-sm:hover { background: var(--anq-light); }

/* QR-code card */
.dash-card-qr { display: flex; flex-direction: column; align-items: center; text-align: center; }
.qr-wrap { position: relative; display: inline-flex; flex-direction: column; align-items: center; margin: .85rem 0 .25rem; border-radius: 14px; padding: .75rem .9rem .6rem; background: #fff; box-shadow: 0 2px 16px rgba(99,102,241,.15); border: 1.5px solid rgba(99,102,241,.12); gap: .4rem; }
.qr-sitename { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.05rem; background: linear-gradient(120deg, #6366f1 0%, #9333ea 55%, #38bdf8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.01em; }
.qr-code-label { font-size: .78rem; font-weight: 700; color: var(--anq-gray); letter-spacing: .04em; font-family: monospace; }
.qr-wrap canvas { display: block; }
.qr-logo-center { position: absolute; top: 50%; left: 50%; width: 22%; height: 22%; transform: translate(-50%,-50%); object-fit: contain; pointer-events: none; }
.qr-actions { display: flex; gap: .5rem; justify-content: center; margin-top: .5rem; }

.badge-claimed { display: inline-block; background: ##dcfce7; color: ##166534; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 50px; }
.badge-anon    { display: inline-block; background: ##fef9c3; color: ##854d0e; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 50px; }

.share-link-box { display: flex; gap: .4rem; align-items: center; margin-top: .5rem; }
.share-link-box input { flex: 1; border: 1.5px solid var(--anq-border); border-radius: 6px; padding: .35rem .65rem; font-size: .85rem; color: var(--anq-gray); background: ##fafafa; }
.code-display { font-size: 1.5rem; font-weight: 800; font-family: monospace; color: var(--anq-dark); }

/* ── Utilities ───────────────────────────────────── */
.d-none { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; }
.ms-1 { margin-left: .25rem; } .me-1 { margin-right: .25rem; }
.d-flex { display: flex; } .d-grid { display: grid; }
.align-items-center { align-items: center; } .justify-content-center { justify-content: center; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: 1rem; }
.w-100 { width: 100%; }
.form-control {
    display: block; width: 100%; padding: .5rem .75rem;
    font-size: 1rem; border: 1.5px solid var(--anq-border); border-radius: var(--anq-radius);
    transition: border-color .2s; outline: none;
}
.form-control:focus { border-color: var(--anq-primary); }
.form-label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .92rem; }
.alert { border-radius: var(--anq-radius); padding: .75rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.alert-danger  { background: ##fef2f2; border: 1px solid ##fca5a5; color: ##991b1b; }
.alert-success { background: ##f0fdf4; border: 1px solid ##86efac; color: ##166534; }
.alert-info    { background: ##eff6ff; border: 1px solid ##93c5fd; color: ##1e40af; }
.alert-warning { background: ##fffbeb; border: 1px solid ##fcd34d; color: ##92400e; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .hero-title { font-size: 1.85rem; }
    .dash-sidebar { display: none; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }

    /* Logo normaal in de nav — niet uitstekend */
    .anq-brand {
        width: auto;
        align-self: center;
        gap: .5rem;
    }
    .anq-brand .anq-logo-img {
        position: static;
        height: 27px;
        top: auto;
        left: auto;
        filter: none;
    }
    .anq-brand .anq-site-name {
        margin-left: 0;
        font-size: 1rem;
    }
    .anq-nav {
        padding: .4rem 1rem;
    }

    /* Chat: nav verbergen + volledig scherm */
    body:has(.chat-page) .anq-nav { display: none !important; }
    body:has(.chat-page) .chat-page { height: 100dvh; }
    .chat-layout {
        flex-direction: column;
        height: 100dvh;
        overflow: hidden;
    }

    /* Sidebar volledig verbergen op mobiel */
    .chat-page .chat-sidebar { display: none; }

    /* Cam-boxen naast elkaar op mobiel */
    .sidebar-cams {
        flex-direction: row;
        gap: .4rem;
        margin-bottom: .25rem;
    }
    .sidebar-cam-box {
        flex: 1;
        aspect-ratio: 4/3;
    }
    .cam-placeholder-text { font-size: .6rem; }

    /* Connect-sectie compact */
    .code-input-row { flex-wrap: nowrap; }
    #connectSection .sidebar-label { display: none; }

    /* Contacten en deel-link verbergen op mobiel (ruimtegebrek) */
    .sidebar-share { display: none; }

    /* Chat-main vult resterende ruimte */
    .chat-main {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .cam-focus-area {
        flex: 0 0 34%;
        min-height: 150px;
        max-height: 42%;
        padding: .45rem .6rem;
    }

    .cam-focus-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: .45rem;
    }

    /* Berichten scrollen in resterende ruimte */
    .chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: .75rem;
        -webkit-overflow-scrolling: touch;
    }

    /* Input sticky onderaan, veilig boven toetsenbord */
    .chat-input-bar,
    .chat-input-area {
        padding: .5rem .6rem;
        padding-bottom: max(.5rem, env(safe-area-inset-bottom));
        flex-shrink: 0;
    }

    /* Emoji popup naar boven en smaller op mobiel */
    .emoji-popup { width: 220px; }

    /* Statusregel compact */
    #chatStatus { font-size: .78rem; margin: 0; padding: 0 !important; }

    /* Mijn code sectie compact */
    #myCodeSection .sidebar-label { display: none; }
}

.benefits { margin-bottom: 40px; }
.benefits h2 { font-size: 1.8em; color: #6366f1; margin-bottom: 30px; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; }
.benefit-item { background: #f8f9ff; padding: 20px; border-radius: 10px; text-align: center; transition: all 0.3s ease; }
.benefit-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(99,102,241,0.2); }
.benefit-icon { font-size: 3em; margin-bottom: 10px; }
.benefit-item h3 { font-size: 1.2em; color: #6366f1; margin-bottom: 10px; }
.benefit-item p { color: #666; font-size: 0.9em; line-height: 1.4; }
.pricing-cards { display: grid; gap: 20px; margin-bottom: 40px; }
.pricing-card { background: #f8f9ff; border-radius: 15px; padding: 40px 30px; position: relative; border: 3px solid transparent; transition: all 0.3s ease; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(99,102,241,0.2); }
.pricing-card.free { border-color: #4caf50; }
.pricing-card.premium { border-color: #6366f1; background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 100%); }
.pricing-card .badge { position: absolute; top: -15px; right: 20px; background: #6366f1; color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8em; font-weight: bold; }
.pricing-card h3 { font-size: 1.5em; margin-bottom: 20px; color: #333; }
.pricing-card .price { font-size: 2.2em; font-weight: bold; color: #6366f1; margin-bottom: 30px; }
.pricing-card .price span { font-size: 0.4em; color: #999; }
.pricing-card .price .price-period { display: block; font-size: 0.38em; font-weight: 400; color: #aaa; margin-top: 2px; }
.price-from { display: block; font-size: 0.38em; font-weight: 400; color: #aaa; margin-bottom: 2px; }
.period-form { width: 100%; }
.period-options { display: flex; flex-direction: column; gap: .35rem; margin: .75rem 0 0; text-align: left; }
.period-opt { display: flex; align-items: center; gap: .5rem; padding: .4rem .65rem; border: 1px solid #e0e0e0; border-radius: 6px; cursor: pointer; font-size: .88rem; transition: border-color .15s, background .15s; }
.period-opt:has(input:checked) { border-color: #6366f1; background: #f0f0ff; }
.period-opt input[type="radio"] { accent-color: #6366f1; flex-shrink: 0; }
.period-label { flex: 1; color: #333; }
.period-price { font-weight: 700; color: #6366f1; }
.pricing-card ul { list-style: none; text-align: left; font-size: 0.9em; }
.pricing-card ul li { padding: 12px 0; color: #666; border-bottom: 1px solid #e0e0e0; }
.pricing-card ul li:last-child { border-bottom: none; }
.home-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; color: #999; font-size: 0.9em; text-align: left; }
.home-footer a { color: #6366f1; text-decoration: none; }
.home-footer a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; }
    .benefit-grid { grid-template-columns: 1fr; }
    .home-container { padding: 30px; }
}

/* ── Dashboard layout ──────────────────────────────────────── */
.dash-wrapper { display: flex; min-height: calc(100vh - 65px); margin: 0; }

.dash-sidebar {
    width: 220px; flex-shrink: 0;
    background: #2e3f8f; color: #c4d4ff;
    display: flex; flex-direction: column;
    padding: 0;
    padding-top: 115px;
}
.dash-sidebar-logo { padding: 0 1.5rem 1.25rem; border-bottom: 1px solid #4a5fb5; margin-bottom: 1rem; }
.dash-nav { list-style: none; flex: 1; padding: 0 0 1rem; }
.dash-nav li a {
    display: block; padding: .65rem 1.5rem;
    color: #c4b5fd; text-decoration: none; font-size: .9rem;
    transition: background .15s, color .15s;
}
.dash-nav li a:hover, .dash-nav li.active a {
    background: #4a5fb5; color: #fff;
}
.dash-nav li.active a { border-left: 3px solid #93b4ff; padding-left: calc(1.5rem - 3px); }
.dash-sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid #4a5fb5; }
.dash-logout { color: #c4b5fd; text-decoration: none; font-size: .88rem; }
.dash-logout:hover { color: #fff; }

.dash-main { flex: 1; padding: 2rem 2.5rem; background: #f4f3ff; overflow-y: auto; }

.dash-topbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.dash-greeting { font-size: 1.6rem; font-weight: 700; color: #1e1b4b; margin: 0; }
.dash-sub-badge {
    background: linear-gradient(135deg, #6366f1, #9333ea);
    color: #fff; padding: .25rem .75rem; border-radius: 20px; font-size: .8rem; font-weight: 600;
}

.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

.dash-card {
    background: #fff; border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.dash-card-link { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.dash-card-link:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(99,102,241,.18); }
.dash-card-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #888; margin-bottom: .6rem; }

.dash-server-status { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 600; margin-bottom: .75rem; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.status-dot.online  { background: #4caf50; box-shadow: 0 0 0 3px rgba(76,175,80,.2); animation: pulse 2s infinite; }
.status-dot.degraded { background: #ff9800; box-shadow: 0 0 0 3px rgba(255,152,0,.2); }
.status-dot.offline  { background: #f44336; }
.dash-refresh-btn { font-size: .8rem; color: #6366f1; text-decoration: none; }
.dash-refresh-btn:hover { text-decoration: underline; }

.dash-stat-big { font-size: 2.2rem; font-weight: 700; color: #1e1b4b; line-height: 1.1; }
.dash-stat-sub { font-size: .8rem; color: #888; margin-top: .25rem; }

.dash-progress-bar { background: #eee; border-radius: 99px; height: 8px; margin: .6rem 0 .3rem; overflow: hidden; }
.dash-progress-fill { height: 100%; background: #6366f1; border-radius: 99px; transition: width .4s; }
.dash-progress-fill.warning { background: #ff9800; }
.dash-progress-fill.danger  { background: #f44336; }

.dash-key-breakdown { margin-top: .8rem; border-top: 1px solid #eee; padding-top: .6rem; }
.dash-key-breakdown-row { display: flex; justify-content: space-between; align-items: center; padding: .15rem 0; font-size: .8rem; color: #555; }
.dash-key-breakdown-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 65%; }
.dash-key-breakdown-count { font-weight: 600; color: #1e1b4b; flex-shrink: 0; }

.dash-section { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 2rem; }
.dash-section-title { font-size: 1rem; font-weight: 600; color: #1e1b4b; margin: 0 0 1.25rem; }
.dash-chart-wrap { position: relative; }

/* Profiel */
.dash-profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.dash-profile-card { background: #fff; border-radius: 12px; padding: 1.75rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.dash-info-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid #f0f0f0; font-size: .9rem; }
.dash-info-row:last-child { border-bottom: none; }
.dash-info-label { color: #888; }
.dash-info-value { font-weight: 600; color: #1e1b4b; }

/* Contacten */
.contacts-list { display: flex; flex-direction: column; gap: 1rem; max-width: 700px; }
.contact-card { background: #fff; border-radius: 12px; padding: 1.25rem 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 1px solid #e8e8f0; }
.contact-card-top { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.contact-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-weight: 600; color: #1e1b4b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-code { font-size: .78rem; color: #888; font-family: monospace; }
.contact-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.btn-danger-sm { background: #fff0f0; color: #e53e3e; border: 1px solid #fca5a5; border-radius: 6px; padding: .35rem .6rem; font-size: .82rem; cursor: pointer; transition: background .15s; }
.btn-danger-sm:hover { background: #fee2e2; }
.contact-stats { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .8rem; color: #666; margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid #f0f0f0; }
.contact-note { width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: .5rem .75rem; font-size: .85rem; color: #333; resize: vertical; font-family: inherit; transition: border-color .15s; }
.contact-note:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.15); }
.dash-subtitle { color: #888; font-size: .9rem; margin: -.5rem 0 1.5rem; }

/* Forbidden words admin */
.fw-actions, .fw-save-cancel { display: flex; gap: .5rem; align-items: center; }
.btn-sm { border-radius: 6px; padding: .3rem .65rem; font-size: .81rem; cursor: pointer; border: 1px solid transparent; transition: background .15s; }
.btn-sm.btn-secondary { background: #f1f3f9; color: #444; border-color: #d5d9e8; }
.btn-sm.btn-secondary:hover { background: #e2e6f0; }
.btn-sm.btn-primary { background: #4a5fb5; color: #fff; border-color: #3a4fa0; }
.btn-sm.btn-primary:hover { background: #3a4fa0; }
.btn-sm.btn-danger { background: #fff0f0; color: #e53e3e; border-color: #fca5a5; }
.btn-sm.btn-danger:hover { background: #fee2e2; }
.word-edit { display: inline-block; }


@media (max-width: 768px) {
    .dash-sidebar { display: none; }
    .dash-main { padding: 1.25rem; }
}

/* Tabel */
.dash-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.dash-table thead th { background: #f5f3ff; padding: .75rem 1.25rem; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; border-bottom: 1px solid #ddd6fe; }
.dash-table tbody td { padding: .9rem 1.25rem; border-bottom: 1px solid #f0f2f7; vertical-align: middle; }
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover td { background: #f9faff; }

/* Mollie redirect spinner */
.anq-spinner { width:40px;height:40px;border:4px solid #e0e7ff;border-top-color:#6366f1;border-radius:50%;animation:anq-spin .7s linear infinite; }
@keyframes anq-spin { to { transform:rotate(360deg); } }

/* Overview dashboard: 3 info-kaarten links (2-kolom grid) + QR rechts */
.dash-overview-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.dash-overview-main {
    flex: 1;
    min-width: 300px;
}
.dash-overview-main .dash-cards {
    grid-template-columns: repeat(2, 1fr);
}
.dash-card-span {
    grid-column: 1 / -1;
}
.dash-overview-qr {
    flex-shrink: 0;
    width: 280px;
}
.dash-overview-qr .dash-card {
    width: 100%;
}
@media (max-width: 900px) {
    .dash-overview-qr { width: 100%; }
    .dash-overview-main .dash-cards { grid-template-columns: 1fr; }
    .dash-card-span { grid-column: auto; }
}

/* ══ Dashboard – thema upgrade ════════════════════════════════════ */

/* Hero-strip bovenaan het overzicht */
.dash-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #5b21b6 100%);
    border-radius: 16px;
    padding: 2rem 2.5rem 2.5rem;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}
.dash-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.dash-hero-deco {
    position: absolute; right: 2rem; top: 50%;
    transform: translateY(-50%);
    font-size: 7rem; opacity: .07;
    pointer-events: none; z-index: 0;
    line-height: 1; user-select: none;
}
.dash-hero-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
}
.dash-hero-greeting { font-size: 1.55rem; font-weight: 800; color: #fff; margin-bottom: .55rem; }
.dash-hero-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dash-hero-code-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
    border-radius: 50px; padding: .28rem .9rem;
    font-family: monospace; font-size: .88rem; color: #d1d5db;
}
.dash-hero-badge-plus {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 50px; padding: .22rem .7rem;
    font-size: .75rem; font-weight: 700; color: #fff;
}
.btn-hero-primary {
    display: inline-flex; align-items: center; gap: .45rem;
    background: #6366f1; color: #fff;
    border: none; border-radius: 10px;
    padding: .75rem 1.75rem;
    font-weight: 700; font-size: .97rem;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 4px 18px rgba(99,102,241,.45);
    transition: background .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
}
.btn-hero-primary:hover { background: #4f46e5; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(99,102,241,.55); color: #fff; text-decoration: none; }

/* Cards – accent bar + hover lift */
.dash-card {
    background: #fff; border-radius: 14px; padding: 1.5rem;
    border: none; box-shadow: 0 2px 12px rgba(99,102,241,.07);
    position: relative; overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.dash-card:hover { box-shadow: 0 8px 28px rgba(99,102,241,.13); transform: translateY(-3px); }
.dash-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #6366f1, #9333ea);
}
.dash-card-code::before     { background: linear-gradient(90deg, #6366f1, #9333ea); }
.dash-card-sub::before      { background: linear-gradient(90deg, #9333ea, #ec4899); }
.dash-card-chatlink::before { background: linear-gradient(90deg, #38bdf8, #6366f1); }
.dash-card-qr::before       { background: linear-gradient(90deg, #6366f1, #38bdf8, #9333ea); }

/* Card-icoon als gekleurde bubble */
.dash-card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 11px;
    font-size: 1.3rem; margin-bottom: .8rem;
    background: rgba(99,102,241,.08);
}
.dash-card-code .dash-card-icon     { background: rgba(99,102,241,.09); }
.dash-card-sub .dash-card-icon      { background: rgba(147,51,234,.08); }
.dash-card-chatlink .dash-card-icon { background: rgba(56,189,248,.10); }

@media (max-width: 768px) {
    .dash-hero { padding: 1.5rem 1.25rem 2rem; border-radius: 12px; margin-bottom: 1.25rem; }
    .dash-hero-greeting { font-size: 1.2rem; }
    .btn-hero-primary { font-size: .88rem; padding: .6rem 1.2rem; }
    .dash-hero-deco { display: none; }
}

/* Payment status badges */
.badge-payment { display: inline-block; padding: .2rem .65rem; border-radius: 99px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.badge-payment-paid       { background: #dcfce7; color: #166534; }
.badge-payment-open,
.badge-payment-pending,
.badge-payment-authorized { background: #fef9c3; color: #854d0e; }
.badge-payment-canceled,
.badge-payment-expired    { background: #f3f4f6; color: #6b7280; }
.badge-payment-failed     { background: #fee2e2; color: #991b1b; }

/* Test / Productie omgeving badges */
.badge-env-test { display: inline-block; padding: .2rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 700; background: #fef3c7; color: #92400e; letter-spacing: .03em; }
.badge-env-live { display: inline-block; padding: .2rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 700; background: #dbeafe; color: #1e40af; letter-spacing: .03em; }

/* Admin filterformulier */
.admin-filter-form { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.admin-filter-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.admin-filter-group { display: flex; flex-direction: column; gap: .3rem; }
.admin-filter-group--wide { flex: 1; min-width: 200px; }
.admin-filter-group--btn { flex-direction: row; gap: .5rem; align-items: flex-end; }
.admin-filter-group label { font-size: .75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.admin-filter-select { padding: .45rem .75rem; border: 1px solid #d1d5db; border-radius: .5rem; font-size: .875rem; background: #fff; color: #374151; }
.admin-filter-input  { padding: .45rem .75rem; border: 1px solid #d1d5db; border-radius: .5rem; font-size: .875rem; background: #fff; color: #374151; width: 100%; }
.admin-filter-select:focus, .admin-filter-input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px #e0e7ff; }

/* API key code chip */
.dash-apikey-code { background: #f5f3ff; color: #6366f1; padding: .2rem .5rem; border-radius: 4px; font-size: .82rem; cursor: pointer; user-select: none; }
.dash-apikey-code:hover { background: #6366f1; color: #fff; }

/* Badges */
.dash-badge { display: inline-block; padding: .2rem .6rem; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.dash-badge.active   { background: #e8f5e9; color: #2e7d32; }
.dash-badge.inactive { background: #fce4ec; color: #c62828; }

/* API key aanmaken */
.dash-alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 10px; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; }
.dash-alert-success strong { color: #2e7d32; }
.dash-alert-error   { background: #fce4ec; border: 1px solid #f48fb1; border-radius: 10px; padding: 1rem 1.5rem; margin-bottom: 1.5rem; color: #c62828; }
.key-reveal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
@media (max-width: 700px) { .key-reveal-grid { grid-template-columns: 1fr; } }
.key-reveal-label { display: block; font-size: .78rem; font-weight: 600; color: #555; margin-bottom: .3rem; }
.key-reveal-code { display: block; padding: .5rem .8rem; font-size: .82rem; word-break: break-all; background: #fff; border: 1px solid #c8e6c9; cursor: pointer; }
.key-reveal-code:hover { background: #f1f8e9; }
.dash-onboarding { text-align: center; padding: 3rem 1.5rem; }
.key-create-form { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.btn-sm { padding: .35rem .85rem; font-size: .82rem; }

/* ── Hamburger knop (verborgen op desktop) ─────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column; justify-content: space-between;
    width: 26px; height: 20px;
    background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: #333; border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Dashboard mobile menu-knop (alleen zichtbaar op mobile) */
.dash-menu-btn {
    display: none;
    background: none; border: none; cursor: pointer;
    font-size: 1.4rem; color: #6366f1; padding: 0 .5rem 0 0; line-height: 1;
}
.dash-sidebar-close {
    display: none;
    position: absolute; top: .75rem; right: .75rem;
    background: none; border: none; cursor: pointer;
    font-size: 1rem; color: #c4b5fd; padding: 4px 8px;
}

/* ── Responsive breakpoint 768px ──────────────────────────── */
@media (max-width: 768px) {

    /* Navbar */
    .nav-toggle { display: flex; }
    .anq-nav { position: relative; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid #eee;
        padding: 1rem 1.5rem; gap: .75rem; z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links .lang-switch-nav {
        border-left: none; padding-left: 0;
        border-top: 1px solid #eee; padding-top: .75rem; margin-left: 0;
    }

    /* main & footer */
    main { padding: 12px; }
    footer { margin-top: 1.5rem; }

    /* Homepage */
    .home-wrapper { margin: -12px; padding: 12px; }
    .home-container { padding: 24px 16px; border-radius: 12px; }
    .header-content { flex-direction: column; text-align: center; gap: 16px; }
    .header-content .logo img { max-width: 100px; }
    .header-text h1 { font-size: 1.7em; }
    .subtitle { font-size: 1em; margin-bottom: 24px; }
    .status-row { flex-direction: column; gap: 10px; align-items: stretch; }
    .status-btn { justify-content: center; }
    .benefit-grid { grid-template-columns: 1fr; }
    .benefit-icon { font-size: 2em; }
    .pricing-cards { grid-template-columns: 1fr !important; }
    .pricing-card { padding: 28px 20px; }

    /* Dashboard sidebar als slide-in overlay */
    .dash-wrapper { margin: -12px; }
    .dash-sidebar {
        position: fixed; top: 0; left: -240px; bottom: 0;
        z-index: 1100; width: 220px;
        transition: left .25s ease;
    }
    .dash-sidebar.open { left: 0; box-shadow: 4px 0 20px rgba(0,0,0,.3); }
    .dash-sidebar-overlay {
        display: none; position: fixed; inset: 0;
        background: rgba(0,0,0,.4); z-index: 1099;
    }
    .dash-sidebar-overlay.open { display: block; }
    .dash-menu-btn { display: block; }
    .dash-sidebar-close { display: block; }
    .dash-main { padding: 1rem; }
    .dash-cards { grid-template-columns: 1fr 1fr; }
    .dash-topbar { flex-wrap: wrap; }
    .dash-greeting { font-size: 1.25rem; }
    .dash-table { font-size: .8rem; }
    .dash-table thead th, .dash-table tbody td { padding: .6rem .75rem; }

    /* Docs/SDK/Start kaarten */
    .docs-nav ul { columns: 1 !important; }
    .step-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ── Extra small (≤480px) ──────────────────────────────────── */
@media (max-width: 480px) {
    .dash-cards { grid-template-columns: 1fr; }
    .step-grid { grid-template-columns: 1fr !important; }
    .dash-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .home-container { padding: 20px 12px; }
}

/* ── Admin panel ─────────────────────────────────── */
.nav-link-admin {
    color: #ef4444 !important;
    font-weight: 700 !important;
}
.nav-link-admin:hover { color: #b91c1c !important; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: #fff;
    border: 1.5px solid var(--anq-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: center;
}
.stat-card--highlight { border-color: var(--anq-primary); }
.stat-card--admin     { border-color: #ef4444; }
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--anq-dark); line-height: 1.1; }
.stat-card--highlight .stat-value { color: var(--anq-primary); }
.stat-card--admin     .stat-value { color: #ef4444; }
.stat-label { font-size: .78rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-top: .35rem; }
.stat-sublabel { font-size: .76rem; color: #9ca3af; margin-top: .4rem; }

.admin-card {
    background: #fff;
    border: 1.5px solid var(--anq-border);
    border-radius: 12px;
    overflow: hidden;
}
.admin-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--anq-border);
    background: #f8f9ff;
}
.admin-card-header h2 { font-size: 1.05rem; font-weight: 700; color: var(--anq-dark); margin: 0; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table thead th {
    padding: .7rem 1.25rem;
    text-align: left;
    background: #f5f3ff;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    border-bottom: 1px solid #ddd6fe;
    white-space: nowrap;
}
.admin-table tbody td {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid #f0f2f7;
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #faf9ff; }

.badge-admin {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 20px;
    margin-left: .3rem;
    vertical-align: middle;
}
.badge-self {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 20px;
    margin-left: .3rem;
    vertical-align: middle;
}

.sub-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
}
.sub-badge--free { background: #f3f4f6; color: #374151; }
.sub-badge--plus { background: #ede9fe; color: #6d28d9; }

.sub-select {
    border: 1.5px solid var(--anq-border);
    border-radius: 6px;
    padding: .2rem .5rem;
    font-size: .85rem;
    color: var(--anq-dark);
    background: #fff;
    cursor: pointer;
}
.sub-select:focus { outline: none; border-color: var(--anq-primary); }

.td-admin-toggle { text-align: center; }

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 22px;
    transition: background .2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider { background: #ef4444; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }


/* ── Abonnement modal radio-rows ─────────────────────────── */
.sub-option-row {
    display: flex; align-items: center; gap: .85rem;
    border: 1.5px solid #e0e7ff; border-radius: 10px;
    padding: .7rem 1rem; cursor: pointer;
    transition: border-color .15s, background .15s;
    background: #fff;
}
.sub-option-row:hover { border-color: #a5b4fc; background: #f5f3ff; }
.sub-option-row.selected { border-color: #6366f1; background: #eef2ff; }

/* ── Typing indicator ────────────────────────────────────── */
.anq-typing-indicator {
    display: flex; align-items: center; gap: .5rem;
    padding: .2rem 1rem .3rem;
    color: #6b7280; font-size: .82rem; min-height: 1.6rem;
}
.typing-dots { display: inline-flex; gap: 3px; align-items: center; }
.typing-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: #9ca3af;
    animation: anqTypingBounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes anqTypingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .6; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* ── Welkomstscherm (niet ingelogd) ──────────────────────────── */
.anq-welcome {
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 50%, #9333ea 100%);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}
.welcome-inner {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.welcome-logo img { border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.welcome-brand {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    margin: .75rem 0 .25rem;
    font-family: 'Outfit', sans-serif;
}
.welcome-sub { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 1.75rem; line-height: 1.5; }

.welcome-btns { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.btn-welcome-primary {
    display: block;
    background: #fff;
    color: #4f46e5;
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background .2s, transform .15s;
    cursor: pointer;
    border: none;
}
.btn-welcome-primary:hover { background: #f0f0ff; transform: translateY(-1px); text-decoration: none; color: #4f46e5; }
.btn-welcome-outline {
    display: block;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: .8rem 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,.5);
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.btn-welcome-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; text-decoration: none; color: #fff; }

.welcome-divider { display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.4); font-size: .82rem; margin: .5rem 0 1.25rem; }
.welcome-divider::before, .welcome-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.2); }

.welcome-anon { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 1.25rem 1rem; }
.welcome-anon-label { color: rgba(255,255,255,.65); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.welcome-code-row { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.welcome-code { font-size: 1.3rem; font-weight: 800; font-family: 'Courier New', monospace; color: #fff; letter-spacing: .03em; }
.btn-copy-inline { background: rgba(255,255,255,.15); border: none; color: rgba(255,255,255,.8); border-radius: 6px; padding: .2rem .5rem; font-size: .85rem; cursor: pointer; line-height: 1; transition: background .15s; }
.btn-copy-inline:hover { background: rgba(255,255,255,.25); }
.btn-welcome-ghost {
    display: block;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: .65rem 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.2);
    text-decoration: none;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
}
.btn-welcome-ghost:hover { background: rgba(255,255,255,.18); text-decoration: none; color: #fff; }

/* Decoratieve cirkels */
.welcome-bg-circles { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.wbc { position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); }
.wbc-1 { width: 320px; height: 320px; top: -80px; right: -80px; }
.wbc-2 { width: 200px; height: 200px; bottom: 40px; left: -60px; }
.wbc-3 { width: 140px; height: 140px; bottom: -30px; right: 60px; }

/* ── Ingelogd-hero (homepage als ingelogd) ───────────────────── */
.hero-section--auth {
    background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 60%, #9333ea 100%);
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.hero-greeting { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: .25rem; }
.hero-name { color: #fff; font-size: 2.5rem; font-weight: 900; margin-bottom: 2rem; font-family: 'Outfit', sans-serif; }
.hero-auth-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn-hero-ghost {
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(255,255,255,.12); color: #fff;
    border: 1.5px solid rgba(255,255,255,.25); border-radius: 10px;
    padding: .75rem 1.75rem; font-weight: 700; font-size: .97rem;
    cursor: pointer; text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.22); text-decoration: none; color: #fff; }
.hero-code-compact {
    display: inline-flex; align-items: center; gap: .75rem;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px; padding: .45rem 1.1rem;
}
.hero-code-label { color: rgba(255,255,255,.6); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hero-code-val { font-size: 1rem; font-weight: 700; font-family: monospace; color: #fff; }

/* ── Contacten-pagina ────────────────────────────────────────── */
.contacts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: .75rem;
}
.btn-add-contact {
    background: #4f46e5; color: #fff;
    border: none; border-radius: 10px;
    padding: .55rem 1.25rem;
    font-weight: 600; font-size: .9rem;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.btn-add-contact:hover { background: #4338ca; }

.contacts-section-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #6366f1;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .9rem;
    padding: 0;
}
.invite-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px;
    background: #ef4444; color: #fff;
    border-radius: 50px; font-size: .72rem; font-weight: 700;
    padding: 0 5px; line-height: 1;
}

/* Uitnodigingskaarten */
.invites-list { display: flex; flex-direction: column; gap: .75rem; max-width: 700px; margin-bottom: 1.5rem; }
.invite-card {
    display: flex; align-items: center; gap: .9rem;
    background: #fff; border-radius: 12px;
    padding: .9rem 1.1rem;
    border: 1.5px solid #e0e7ff;
    box-shadow: 0 2px 8px rgba(99,102,241,.06);
}
.invite-received { border-color: #bfdbfe; background: #f0f9ff; }
.invite-sent     { border-color: #e9d5ff; background: #fdf4ff; }
.invite-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff; font-size: 1.1rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.invite-info { flex: 1; min-width: 0; }
.invite-name { font-weight: 600; color: #1e1b4b; font-size: .9rem; }
.invite-code { font-size: .78rem; color: #888; font-family: monospace; }
.invite-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.btn-accept {
    background: #d1fae5; color: #065f46;
    border: 1.5px solid #6ee7b7; border-radius: 8px;
    padding: .35rem .8rem; font-size: .82rem; font-weight: 600;
    cursor: pointer; transition: background .15s;
    white-space: nowrap;
}
.btn-accept:hover { background: #a7f3d0; }
.btn-reject {
    background: #fff; color: #9ca3af;
    border: 1.5px solid #e5e7eb; border-radius: 8px;
    padding: .35rem .8rem; font-size: .82rem; font-weight: 600;
    cursor: pointer; transition: background .15s;
    white-space: nowrap;
}
.btn-reject:hover { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }
.invite-status { font-size: .8rem; color: #9ca3af; font-style: italic; flex-shrink: 0; }

.contacts-empty-state { text-align: center; padding: 3rem 1.5rem; color: #9ca3af; }
.empty-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.empty-hint  { font-size: .85rem; color: #b0b6c8; }

.btn-chat-contact {
    background: #4a5fb5; color: #fff;
    border-radius: 8px; padding: .35rem .8rem;
    font-size: .82rem; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    transition: background .15s;
}
.btn-chat-contact:hover { background: #3a4fa0; text-decoration: none; color: #fff; }

/* ── Camera boven berichten (chat-pagina) ────────────────────── */
.chat-channel-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.btn-cam-header {
    background: rgba(99,102,241,.1);
    border: 1.5px solid rgba(99,102,241,.3);
    color: #6366f1; border-radius: 8px;
    padding: .25rem .55rem; font-size: 1rem;
    line-height: 1; cursor: pointer;
    transition: background .15s;
}
.btn-cam-header:hover:not(:disabled) { background: rgba(99,102,241,.2); }
.btn-cam-header:disabled { opacity: .35; cursor: default; }
.btn-cam-header.active { background: #6366f1; color: #fff; border-color: #4f46e5; }

.chat-cam-area {
    flex-shrink: 0;
    background: linear-gradient(180deg, #eef1fb 0%, #e6eaf8 100%);
    border-bottom: 1px solid rgba(99,102,241,.2);
}
.cam-area-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: .5rem;
}
.chat-cam-box {
    position: relative;
    background: rgba(99,102,241,.07);
    border: 1.5px solid rgba(99,102,241,.22);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-cam-box video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.chat-cam-label {
    position: absolute; bottom: .4rem; left: .5rem;
    background: rgba(0,0,0,.45); color: #fff;
    font-size: .7rem; font-weight: 600;
    padding: .15rem .4rem; border-radius: 4px;
    z-index: 10;
}
.cam-area-collapse { text-align: center; padding: .3rem; border-top: 1px solid rgba(99,102,241,.12); }
.btn-cam-collapse {
    background: none; border: none; color: rgba(99,102,241,.6);
    font-size: .75rem; cursor: pointer;
    transition: color .15s;
}
.btn-cam-collapse:hover { color: #6366f1; }

/* ── Welkomst-formulier (naam + uitnodigingscode) ────────────── */
.welcome-guest-form { display: flex; flex-direction: column; gap: .85rem; margin-bottom: .5rem; }
.welcome-field { display: flex; flex-direction: column; gap: .3rem; }
.welcome-field-label {
    color: rgba(255,255,255,.75); font-size: .8rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    display: flex; align-items: center; gap: .4rem;
}
.welcome-field-optional { color: rgba(255,255,255,.4); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .8rem; }
.welcome-input {
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.22);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    padding: .7rem 1rem;
    outline: none;
    transition: border-color .2s, background .2s;
    width: 100%;
}
.welcome-input::placeholder { color: rgba(255,255,255,.35); }
.welcome-input:focus {
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.18);
}
.welcome-input--mono { font-family: 'Courier New', monospace; font-size: .95rem; letter-spacing: .02em; }
.btn-welcome-start {
    display: block; width: 100%;
    background: #fff; color: #4f46e5;
    font-weight: 700; font-size: 1.05rem;
    padding: .85rem 1.5rem;
    border-radius: 12px; border: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
    margin-top: .2rem;
}
.btn-welcome-start:hover:not(:disabled) { background: #f0f0ff; transform: translateY(-1px); }
.btn-welcome-start:disabled { opacity: .6; cursor: default; }
.welcome-field-error { color: #fca5a5; font-size: .82rem; margin-top: -.3rem; }

/* Kleinere versie van de login/register knoppen */
.btn-welcome-primary--sm, .btn-welcome-outline--sm {
    padding: .6rem 1.1rem !important;
    font-size: .9rem !important;
    flex: 1;
    text-align: center;
}
.welcome-btns { flex-direction: row; }

/* Code-footer (compact, onderaan welkomstscherm) */
.welcome-code-footer {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.12);
}
.welcome-code-footer-label { color: rgba(255,255,255,.45); font-size: .75rem; }
.welcome-code-footer .welcome-code { font-size: .9rem; color: rgba(255,255,255,.7); }
.welcome-code-footer .btn-copy-inline { padding: .1rem .35rem; font-size: .75rem; }

/* ── Registratie-nudge (chatpagina, niet ingelogd) ───────────── */
.anq-reg-nudge {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    width: calc(100% - 2rem);
    max-width: 500px;
    animation: anqNudgeIn .35s ease;
}
@keyframes anqNudgeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.anq-reg-nudge-inner {
    display: flex; align-items: center; gap: .75rem;
    background: #1e1b4b;
    border: 1.5px solid #6366f1;
    border-radius: 14px;
    padding: .85rem 1rem;
    box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.anq-reg-nudge-icon { font-size: 1.2rem; flex-shrink: 0; }
.anq-reg-nudge-text { flex: 1; color: #d1d5db; font-size: .85rem; line-height: 1.45; margin: 0; }
.anq-reg-nudge-text strong { color: #c4b5fd; }
.btn-nudge-register {
    background: #6366f1; color: #fff;
    border-radius: 8px; padding: .4rem .9rem;
    font-size: .82rem; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    transition: background .15s; flex-shrink: 0;
}
.btn-nudge-register:hover { background: #4f46e5; color: #fff; text-decoration: none; }
.btn-nudge-close {
    background: none; border: none; color: #6b7280;
    font-size: .9rem; cursor: pointer; flex-shrink: 0; padding: .2rem;
    line-height: 1; transition: color .15s;
}
.btn-nudge-close:hover { color: #fff; }

@media (max-width: 768px) {
    /* Welkomstscherm: licht ontwerp op mobiel ipv donker paars */
    .anq-welcome { background: #f0f4ff; padding: 1rem .75rem; min-height: calc(100dvh - 52px); }
    .welcome-bg-circles { display: none; }
    .welcome-inner {
        background: #fff;
        backdrop-filter: none; -webkit-backdrop-filter: none;
        border-color: rgba(99,102,241,.15);
        box-shadow: 0 2px 20px rgba(99,102,241,.09);
        padding: 2rem 1.25rem 1.75rem;
    }
    .welcome-logo img { box-shadow: 0 2px 12px rgba(0,0,0,.12); }
    .welcome-brand { color: #1e1b4b; font-size: 1.6rem; }
    .welcome-sub { color: #6b7280; }
    .welcome-field-label { color: #4b5563; }
    .welcome-field-optional { color: #9ca3af; }
    .welcome-input { background: #f9fafb; border-color: #d1d5db; color: #111827; }
    .welcome-input::placeholder { color: #9ca3af; }
    .welcome-input:focus { border-color: #6366f1; background: #fff; }
    .btn-welcome-start { background: #6366f1; color: #fff; }
    .btn-welcome-start:hover:not(:disabled) { background: #4f46e5; transform: translateY(-1px); }
    .welcome-btns { flex-direction: row; }
    .btn-welcome-primary { background: #6366f1 !important; color: #fff !important; }
    .btn-welcome-primary:hover { background: #4f46e5 !important; }
    .btn-welcome-outline { border-color: rgba(99,102,241,.4); color: #4f46e5; background: transparent; }
    .btn-welcome-outline:hover { background: #f0f0ff; border-color: #6366f1; color: #4f46e5; }
    .welcome-divider { color: #9ca3af; }
    .welcome-divider::before, .welcome-divider::after { background: #e5e7eb; }
    .welcome-anon { background: #f5f3ff; border-color: rgba(99,102,241,.15); }
    .welcome-anon-label { color: #6b7280; }
    .welcome-code { color: #1e1b4b; }
    .btn-copy-inline { background: rgba(99,102,241,.1); color: #4f46e5; }
    .btn-copy-inline:hover { background: rgba(99,102,241,.18); }
    .welcome-code-footer { border-top-color: #e5e7eb; }
    .welcome-code-footer-label { color: #9ca3af; }
    .welcome-code-footer .welcome-code { color: #4b5563; }
    .welcome-field-error { color: #ef4444; }
    /* Overige */
    .hero-section--auth { padding: 1.25rem; min-height: calc(100dvh - 52px); }
    .hero-name { font-size: 1.8rem; }
    .contacts-header { flex-direction: column; align-items: flex-start; }
    .cam-area-grid { grid-template-columns: 1fr 1fr; }
    .invite-actions { flex-wrap: wrap; }
    .anq-reg-nudge { bottom: 4.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   TeleGuard App Shell
   ═══════════════════════════════════════════════════════════════ */

main.main-app-shell {
    padding: 0;
    overflow: hidden;
}

/* ── Full-height shell wrapper ─────────────────────────────────── */
.tg-app {
    display: flex;
    height: calc(100dvh - 56px); /* below navbar */
    overflow: hidden;
    background: #f7f7f8;
}

/* ── Left panel ────────────────────────────────────────────────── */
.tg-left {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

/* ── Right panel ───────────────────────────────────────────────── */
.tg-right {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f7f7f8;
    min-width: 0;
}

/* ── View inside left panel ────────────────────────────────────── */
.tg-view {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    overflow: hidden;
}
.tg-view--hidden { display: none; }

/* ── View header ───────────────────────────────────────────────── */
.tg-view-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1.25rem .75rem .6rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.tg-view-header--plain { padding: .85rem 1rem; }
.tg-view-title { font-weight: 700; font-size: 1rem; color: #1f2937; flex: 1; }

/* ── Search input ──────────────────────────────────────────────── */
.tg-search {
    flex: 1;
    border: none;
    background: #f3f4f6;
    border-radius: 50px;
    padding: .45rem .9rem;
    font-size: .88rem;
    outline: none;
    color: #374151;
}
.tg-search::placeholder { color: #9ca3af; }

/* ── Add contact button ────────────────────────────────────────── */
.btn-tg-addcontact {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
}
.btn-tg-addcontact:hover { background: #4338ca; }

/* ── Contact list ──────────────────────────────────────────────── */
.tg-contact-list {
    flex: 1 1 0;
    overflow-y: auto;
    padding: .25rem 0;
}
.tg-list-loading, .tg-list-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: .875rem;
}
.tg-list-empty-hint { font-size: .8rem; margin-top: .25rem; }

/* ── Contact item ──────────────────────────────────────────────── */
.tg-contact-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .9rem;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    transition: background .12s;
}
.tg-contact-item:hover { background: #f5f3ff; }
.tg-contact-item--active { background: #ede9fe; }
.tg-contact-item--invite, .tg-contact-item--sent { cursor: default; }
.tg-contact-item--invite:hover { background: #fff7ed; }
.tg-contact-item--sent:hover { background: #f0fdf4; }

.tg-ci-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.tg-ci-avatar--invite { background: #f59e0b; }
.tg-ci-avatar--sent   { background: #10b981; }

.tg-ci-body { flex: 1 1 0; min-width: 0; }
.tg-ci-name { font-weight: 600; font-size: .88rem; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-ci-sub  { font-size: .78rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.tg-ci-sub--invite { color: #f59e0b; font-weight: 600; }
.tg-ci-code { font-family: monospace; font-size: .75rem; }

.tg-ci-actions { display: flex; gap: .35rem; flex-shrink: 0; }
.btn-tg-accept, .btn-tg-reject {
    width: 30px; height: 30px;
    border: none; border-radius: 50%;
    font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .15s;
}
.btn-tg-accept { background: #d1fae5; color: #059669; }
.btn-tg-accept:hover { background: #059669; color: #fff; }
.btn-tg-reject { background: #fee2e2; color: #dc2626; }
.btn-tg-reject:hover { background: #dc2626; color: #fff; }

/* ── Tab navigation (bottom of left panel) ─────────────────────── */
.tg-tab-nav {
    display: flex;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
}
.tg-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: .7rem .5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    position: relative;
    transition: color .15s;
}
.tg-tab-btn--active { color: #4f46e5; }
.tg-tab-btn:hover:not(.tg-tab-btn--active) { color: #6366f1; }

.tg-tab-badge {
    position: absolute;
    top: 8px; right: 30%;
    background: #dc2626;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    border-radius: 50px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    padding: 0 4px;
}

/* ── Settings scroll area ──────────────────────────────────────── */
.tg-settings-scroll {
    flex: 1 1 0;
    overflow-y: auto;
    padding: .75rem 0;
}
.tg-s-sep { height: 1px; background: #f0f0f0; margin: .25rem 0; }
.tg-s-section { padding: .6rem 1rem; }
.tg-s-section-title { font-size: .75rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }

.tg-s-profile {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem 1rem;
}
.tg-s-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.tg-s-avatar--btn { cursor: pointer; transition: opacity .15s; }
.tg-s-avatar--btn:hover { opacity: .8; }
.tg-s-profile-info { flex: 1; min-width: 0; }
.tg-s-name { font-weight: 700; font-size: .95rem; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-s-name--btn { cursor: pointer; }
.tg-s-name--btn:hover { color: #4f46e5; text-decoration: underline; }
.tg-qr-code-row { background: #f3f4f6; border-radius: 8px; padding: .45rem .75rem; font-family: monospace; font-size: .9rem; color: #374151; display: inline-block; margin-top: .25rem; }
.tg-s-id-row { display: flex; align-items: center; gap: .4rem; margin-top: .15rem; }
.tg-s-id { font-family: monospace; font-size: .78rem; color: #6b7280; }
.btn-tg-copy-sm {
    background: none; border: none; cursor: pointer;
    font-size: .82rem; padding: 0; line-height: 1; color: #9ca3af;
    transition: color .15s;
}
.btn-tg-copy-sm:hover { color: #4f46e5; }

/* ── Background picker ─────────────────────────────────────────── */
.tg-bg-picker { display: flex; gap: .5rem; flex-wrap: wrap; }
.tg-bg-opt {
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    background: none; border: 2px solid transparent; border-radius: 10px;
    padding: .35rem .5rem;
    cursor: pointer; font-size: .78rem; color: #374151;
    transition: border-color .15s;
}
.tg-bg-opt--active { border-color: #4f46e5; }
.tg-bg-opt:hover:not(.tg-bg-opt--active) { border-color: #c7d2fe; }
.tg-bg-swatch {
    width: 40px; height: 30px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.tg-bg-swatch--none   { background: #fff; }
.tg-bg-swatch--soft   { background: linear-gradient(135deg, #e8f4f8 0%, #d6eaf8 50%, #e8f8f5 100%); }
.tg-bg-swatch--nature { background: linear-gradient(135deg, #d5f5e3 0%, #a9dfbf 50%, #f9e79f 100%); }
.tg-bg-swatch--ocean  { background: linear-gradient(135deg, #d6eaf8 0%, #85c1e9 50%, #1a5276 100%); }

/* ── Background preview strip ──────────────────────────────────── */
.tg-bg-preview {
    margin-top: .6rem;
    border-radius: 10px;
    padding: .6rem .75rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: background .25s;
}
.tg-bg-prev-none   { background: #f9fafb; }
.tg-bg-prev-soft   { background: linear-gradient(160deg, #e8f4f8 0%, #d6eaf8 50%, #e8f8f5 100%); border-color: transparent; }
.tg-bg-prev-nature { background: linear-gradient(160deg, #d5f5e3 0%, #a9dfbf 50%, #f9e79f 100%); border-color: transparent; }
.tg-bg-prev-ocean  { background: linear-gradient(160deg, #d6eaf8 0%, #5dade2 60%, #1a5276 100%); border-color: transparent; }
.tg-bg-preview-bubble {
    max-width: 70%;
    padding: .3rem .6rem;
    border-radius: 10px;
    font-size: .78rem;
    line-height: 1.3;
}
.tg-bg-preview-bubble--in  { background: #fff; color: #374151; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tg-bg-preview-bubble--out { background: #4f46e5; color: #fff; align-self: flex-end; }

/* ── Background option active state ────────────────────────────── */
.tg-bg-opt--active {
    border-color: #4f46e5;
    background: #f5f3ff;
}
.tg-bg-opt--active .tg-bg-swatch {
    outline: 2px solid #4f46e5;
    outline-offset: 1px;
}

/* ── Language dropdown ─────────────────────────────────────────── */
.tg-lang-drop-wrap { position: relative; }
.tg-lang-drop-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .875rem;
    color: #374151;
    cursor: pointer;
    transition: background .12s;
}
.tg-lang-drop-btn:hover { background: #ede9fe; }
.tg-lang-drop-btn span { flex: 1; text-align: left; }
.tg-lang-drop-btn img { border-radius: 2px; flex-shrink: 0; }
.tg-lang-drop-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 4px); left: 0; right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    overflow: hidden;
    z-index: 50;
}
.tg-lang-drop-menu.open { display: block; }
.tg-lang-drop-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .75rem;
    font-size: .875rem;
    color: #374151;
    text-decoration: none;
    transition: background .1s;
}
.tg-lang-drop-item:hover { background: #f3f4f6; }
.tg-lang-drop-item--active { background: #ede9fe; color: #4f46e5; font-weight: 600; }
.tg-lang-drop-item img { border-radius: 2px; flex-shrink: 0; }

/* ── Logout ────────────────────────────────────────────────────── */
.tg-s-logout {
    display: block;
    padding: .5rem .6rem;
    border-radius: 8px;
    color: #dc2626;
    font-size: .875rem;
    text-decoration: none;
    transition: background .12s;
}
.tg-s-logout:hover { background: #fee2e2; color: #b91c1c; }

/* ── Empty state (right panel) ─────────────────────────────────── */
.tg-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}
.tg-empty-title { font-size: 1.15rem; font-weight: 700; color: #111827; margin-bottom: .5rem; }
.tg-empty-sub   { font-size: .9rem; color: #6b7280; margin-bottom: 1rem; max-width: 300px; }
.tg-empty-id-row { display: flex; align-items: center; gap: .5rem; font-size: .88rem; }
.tg-empty-id-label { color: #9ca3af; }
.tg-empty-id-val { font-family: monospace; font-size: .88rem; color: #4f46e5; font-weight: 600; }

/* ── Settings right panel ──────────────────────────────────────── */
.tg-settings-right {
    flex: 1;
    overflow-y: auto;
}
.tg-sr-content {
    padding: 1.5rem;
    max-width: 680px;
}
.tg-sr-profile {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .9rem .75rem;
}
.tg-sr-nav-sep {
    height: 1px;
    background: #e5e7eb;
    margin: .35rem .75rem;
}
.tg-sr-nav-spacer { flex: 1; min-height: .5rem; }
.tg-sr-nav-btn {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: calc(100% - 1rem);
    margin: .1rem .5rem;
    padding: .55rem .75rem;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: .875rem;
    color: #374151;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.tg-sr-nav-btn:hover { background: rgba(79,70,229,.08); color: #4f46e5; }
.tg-sr-nav-btn--active { background: rgba(79,70,229,.1); color: #4f46e5; font-weight: 600; }
.tg-sr-nav-btn--danger { color: #dc2626; }
.tg-sr-nav-btn--danger:hover { background: #fee2e2; color: #b91c1c; }
.tg-sr-nav-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: .65; }
.tg-sr-nav-btn:hover .tg-sr-nav-icon,
.tg-sr-nav-btn--active .tg-sr-nav-icon { opacity: 1; }
.tg-sr-nav-btn--danger .tg-sr-nav-icon { opacity: .75; }
.tg-sr-panel-title {
    font-size: .85rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 1rem;
}
/* Language list */
.tg-sr-lang-list { display: flex; flex-direction: column; gap: .35rem; }
.tg-sr-lang-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .85rem;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    font-size: .9rem;
    border: 2px solid transparent;
    transition: background .15s, border-color .15s;
}
.tg-sr-lang-item:hover { background: rgba(79,70,229,.06); }
.tg-sr-lang-item--active {
    background: rgba(79,70,229,.08);
    border-color: #4f46e5;
    color: #4f46e5;
    font-weight: 600;
}

/* ── Chat wrap (right panel, active) ──────────────────────────── */
.tg-chat-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
}

/* ── Chat header ───────────────────────────────────────────────── */
.tg-chat-hdr {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .9rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(229,231,235,0.8);
    flex-shrink: 0;
    min-height: 60px;
}
.btn-tg-back {
    background: none; border: none; color: #6b7280;
    cursor: pointer; padding: .2rem; line-height: 1;
    display: none;   /* hidden on desktop, shown on mobile */
    transition: color .15s;
}
.btn-tg-back:hover { color: #4f46e5; }
.tg-ch-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.tg-ch-info { flex: 1 1 0; min-width: 0; }
.tg-ch-name { font-weight: 700; font-size: .93rem; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-ch-sub  { font-size: .78rem; color: #6b7280; }
.tg-ch-actions { display: flex; gap: .35rem; flex-shrink: 0; align-items: center; }

/* ── More-options menu (chat header) ───────────────────────────── */
.tg-ch-more-wrap { position: relative; }
.btn-tg-more {
    background: none; border: none; color: #6b7280;
    cursor: pointer; padding: .35rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.btn-tg-more:hover { background: #f3f4f6; color: #374151; }
.tg-ch-more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px); right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    min-width: 150px;
    overflow: hidden;
    z-index: 100;
}
.tg-ch-more-menu.open { display: block; }
.tg-more-item {
    display: flex; align-items: center; gap: .55rem;
    width: 100%; background: none; border: none;
    padding: .55rem .85rem;
    font-size: .875rem; color: #374151;
    cursor: pointer; text-align: left;
    transition: background .1s;
}
.tg-more-item:hover { background: #f3f4f6; }
.tg-more-item--danger { color: #dc2626; }
.tg-more-item--danger:hover { background: #fee2e2; }

/* ── Blocked users list (settings) ─────────────────────────────── */
.tg-blocked-list { display: flex; flex-direction: column; gap: .3rem; }
.tg-blocked-empty { font-size: .83rem; color: #9ca3af; padding: .25rem 0; }
.tg-blocked-item {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .5rem; border-radius: 8px;
    background: #fef2f2; border: 1px solid #fee2e2;
}
.tg-blocked-info { flex: 1; min-width: 0; }
.tg-blocked-name { display: block; font-size: .85rem; font-weight: 600; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-blocked-code { display: block; font-size: .75rem; font-family: monospace; color: #9ca3af; }
.btn-tg-unblock {
    background: none; border: 1px solid #dc2626; color: #dc2626;
    border-radius: 50px; padding: .2rem .6rem; font-size: .75rem;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: background .12s;
}
.btn-tg-unblock:hover { background: #dc2626; color: #fff; }

.btn-tg-cam-hdr {
    background: none; border: none; color: #6b7280;
    cursor: pointer; padding: .35rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.btn-tg-cam-hdr:hover:not(:disabled) { background: #ede9fe; color: #4f46e5; }
.btn-tg-cam-hdr:disabled { opacity: .4; cursor: not-allowed; }

/* ── Chat messages background themes ──────────────────────────── */
#chatMessages {
    flex: 1 1 0;
    overflow-y: auto;
    padding: 1rem;
    min-height: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
/* Applied to #tgRight — whole right panel gets the gradient */
.chat-bg-soft   { background: linear-gradient(160deg, #e8f4f8 0%, #d6eaf8 50%, #e8f8f5 100%); }
.chat-bg-nature { background: linear-gradient(160deg, #d5f5e3 0%, #a9dfbf 50%, #f9e79f 100%); }
.chat-bg-ocean  { background: linear-gradient(160deg, #d6eaf8 0%, #5dade2 60%, #1a5276 100%); }

/* ── Chat cam area ─────────────────────────────────────────────── */
.chat-cam-area {
    flex-shrink: 0;
    background: linear-gradient(180deg, #eef1fb 0%, #e6eaf8 100%);
    border-bottom: 1px solid rgba(99,102,241,.2);
    padding: .5rem;
}

/* ── Chat input area ───────────────────────────────────────────── */
.chat-input-area {
    flex-shrink: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(229,231,235,0.8);
    padding: .6rem .75rem;
}
.chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: .45rem;
}
.chat-textarea {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: .5rem .9rem;
    font-size: .9rem;
    resize: none;
    outline: none;
    background: #f9fafb;
    min-height: 38px;
    max-height: 120px;
    transition: border-color .15s;
    line-height: 1.45;
}
.chat-textarea:focus { border-color: #4f46e5; background: #fff; }
.chat-textarea:disabled { background: #f3f4f6; color: #9ca3af; }
.btn-send {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: .5rem 1.1rem;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
    align-self: flex-end;
}
.btn-send:hover:not(:disabled) { background: #4338ca; }
.btn-send:disabled { opacity: .45; cursor: not-allowed; }
.btn-emoji, .btn-image-attach {
    background: none; border: none;
    font-size: 1.2rem; cursor: pointer; color: #9ca3af;
    padding: .35rem; line-height: 1; flex-shrink: 0; align-self: flex-end;
    transition: color .15s;
}
.btn-emoji:hover:not(:disabled), .btn-image-attach:hover:not(:disabled) { color: #4f46e5; }
.btn-emoji:disabled, .btn-image-attach:disabled { opacity: .4; cursor: not-allowed; }

/* Emoji popup */
.emoji-picker-wrapper { position: relative; align-self: flex-end; }
.emoji-popup {
    display: none;
    position: absolute;
    bottom: 110%; left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    padding: .5rem;
    width: 220px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    z-index: 200;
}
.emoji-popup { display: none; }
.emoji-popup.open { display: flex; }
.emoji-popup button {
    background: none; border: none; cursor: pointer;
    font-size: 1.2rem; padding: .15rem; border-radius: 4px;
    transition: background .1s;
}
.emoji-popup button:hover { background: #f3f4f6; }

/* ── Typing indicator ──────────────────────────────────────────── */
.anq-typing-indicator {
    padding: .3rem 1rem;
    display: flex; align-items: center; gap: .4rem;
    flex-shrink: 0;
}
.typing-dots { display: flex; gap: 3px; }
.typing-dots span {
    width: 6px; height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-5px)} }
.typing-label { font-size: .8rem; color: #9ca3af; }

/* ── Mobile responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .tg-app { height: calc(100dvh - 52px); position: relative; }

    .tg-left {
        width: 100%; max-width: 100%;
        position: absolute; left: 0; top: 0; bottom: 0;
        z-index: 10;
        transition: transform .2s;
    }
    .tg-left--hidden-mobile { transform: translateX(-100%); pointer-events: none; }

    .tg-right {
        width: 100%;
        position: absolute; left: 0; top: 0; bottom: 0;
    }
    .tg-right--chat-open { z-index: 11; }

    /* tg-chat-wrap vult de absoluut-gepositioneerde tg-right op mobiel */
    .tg-chat-wrap { height: 100%; }

    .btn-tg-back { display: flex; }
}
