﻿/* 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: 180px;
    flex-shrink: 0;
    align-self: stretch;
    text-decoration: none;
}
.anq-brand .anq-logo-img {
    position: absolute;
    height: 210px;
    top: -45px;
    left: 0;
    z-index: 1001;
    filter: drop-shadow(0 6px 16px rgba(99,102,241,.3));
}

.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;
    gap: .35rem;
    align-items: center;
    padding-left: 1rem;
    border-left: 1px solid rgba(99,102,241,.25);
}
.lang-btn { opacity: .45; transition: opacity .2s; line-height: 1; text-decoration: none !important; }
.lang-btn img { display: block; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.lang-btn:hover, .lang-btn.active { opacity: 1; }

.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: 100px; 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, #7c8ff5 0%, #a78bfa 50%, #c4b5fd 100%);
    color: #1e1b4b;
    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,.35);
    color: #312e81;
    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: #1e1b4b; }
.hero-title span { color: #4338ca; }
.hero-subtitle { font-size: 1.15rem; color: #312e81; 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: 2rem;
}
.code-label { font-size: .82rem; color: #c4b5fd; 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; }
.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-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; }
.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 */
.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 { min-height: calc(100vh - 70px); display: flex; flex-direction: column; background: #eef2ff; }
.chat-layout { display: flex; flex: 1; min-height: 0; height: calc(100vh - 70px); background: #eef2ff; }

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

/* ── Sidebar cam-boxen ───────────────────────────── */
.sidebar-cams { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .5rem; }
.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 {
    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-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;
}
.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;
}
.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 { 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; }
.sidebar-cam-box video { width: 100%; height: 100%; object-fit: cover; }
.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; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.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); }
.btn-send { background: var(--anq-primary); color: #fff; border: none; border-radius: 24px; padding: .5rem 1.25rem; font-weight: 600; cursor: pointer; }

.msg-bubble { max-width: 70%; padding: .55rem .9rem; border-radius: 12px; font-size: .94rem; line-height: 1.45; }
.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: .65; margin-top: .2rem; }

/* ── 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; }
.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); }

.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; }
    .chat-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--anq-border); }
    .chat-layout { flex-direction: column; height: auto; }
    .dash-sidebar { display: none; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
}

.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 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: -20px; }

.dash-sidebar {
    width: 220px; flex-shrink: 0;
    background: #1e1b4b; color: #c4b5fd;
    display: flex; flex-direction: column;
    padding: 1.5rem 0;
}
.dash-sidebar-logo { padding: 0 1.5rem 1.5rem; border-bottom: 1px solid #312e81; margin-bottom: 1rem; }
.dash-nav { list-style: none; flex: 1; }
.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: #312e81; color: #fff;
}
.dash-nav li.active a { border-left: 3px solid #818cf8; padding-left: calc(1.5rem - 3px); }
.dash-sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid #312e81; }
.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; }

@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; }

/* 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; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute; top: 65px; 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;
    }
    .navbar { position: relative; padding: .75rem 1.25rem; }

    /* 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-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.admin-header { margin-bottom: 2rem; }
.admin-title { font-size: 1.75rem; font-weight: 800; color: var(--anq-dark); }

.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; }

.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); }

