/* ============================================================
   Design tokens
   Thema: "Draad" (thread) — verbinding zonder foto's, gedragen
   door typografie en een geknoopt lijn-motief.
   ============================================================ */
:root {
    /* Kleur */
    --color-bg:        #F1EEF7; /* zachte lavendelgrijze achtergrond */
    --color-surface:   #FFFFFF;
    --color-ink:       #211F2E; /* diepe inktkleur voor tekst */
    --color-ink-soft:  #5B5770;
    --color-thread:    #8C3061; /* framboos — primaire accentkleur */
    --color-thread-dark: #6E2450;
    --color-sage:      #4F6E5F; /* gedempt groen — secundair/succes */
    --color-gold:      #A9812F; /* antiek goud — credits */
    --color-indigo:    #4A5899; /* gedempt indigo — avatarvariatie */
    --color-rosewood:  #A14D5C; /* gedempt roodhout — avatarvariatie */
    --color-error:     #B3261E;
    --color-error-bg:  #FBEAE9;
    --color-success-bg:#EAF2ED;
    --color-border:    #DAD4E8;

    /* Typografie */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    /* Ruimte */
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-card: 0 2px 10px rgba(33, 31, 46, 0.06);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    background-image:
        radial-gradient(circle at 8% 12%, rgba(140, 48, 97, 0.07), transparent 32%),
        radial-gradient(circle at 92% 8%, rgba(79, 110, 95, 0.07), transparent 32%),
        radial-gradient(circle at 88% 92%, rgba(169, 129, 47, 0.06), transparent 32%),
        radial-gradient(circle at 6% 88%, rgba(74, 88, 153, 0.06), transparent 32%),
        radial-gradient(circle at 50% 50%, rgba(161, 77, 92, 0.04), transparent 45%);
    background-attachment: fixed;
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

body { overflow-x: hidden; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 var(--space-3);
    color: var(--color-ink);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-3); overflow-wrap: break-word; word-break: break-word; }

/* Vangnet tegen lange, aaneengesloten tekst (bijv. zonder spaties) die anders
   buiten kaarten en tabellen zou uitlopen. */
.card, .profile-card, .profile-card-body, .profile-card-bio, li, td, blockquote {
    overflow-wrap: break-word;
    word-break: break-word;
}

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

/* ---------- Layout ---------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-ink);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: var(--space-3); }
.main-nav a.button { margin: 0; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--color-ink);
    cursor: pointer;
    padding: var(--space-1);
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-5) var(--space-3);
}

.container-wide {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--space-5) var(--space-3);
}

.site-footer {
    text-align: center;
    padding: var(--space-4);
    color: var(--color-ink-soft);
    font-size: 0.85rem;
}

/* ---------- Kaart ---------- */
.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border-left: 3px solid var(--color-thread);
    padding: var(--space-5);
}

.card-header { margin-bottom: var(--space-4); }

/* ---------- Hero (voorpagina) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: var(--space-6) var(--space-4);
    text-align: center;
    margin-bottom: var(--space-4);
}

.hero::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M12 20c0-5 4-9 8-9s6 3 6 6-3 5-6 5-6-2-6-5 3-6 6-6 8 4 8 9-4 9-8 9-6-3-6-6' stroke='%238C3061' stroke-width='1.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.06;
    transform: rotate(-8deg);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M12 20c0-5 4-9 8-9s6 3 6 6-3 5-6 5-6-2-6-5 3-6 6-6 8 4 8 9-4 9-8 9-6-3-6-6' stroke='%234F6E5F' stroke-width='1.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.06;
    transform: rotate(12deg);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 2.3rem; margin-bottom: var(--space-2); }
.hero-subtitle { font-size: 1.05rem; color: var(--color-ink-soft); max-width: 460px; margin: 0 auto var(--space-4); }
.hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-thread-dark);
    background: rgba(140, 48, 97, 0.08);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: var(--space-4);
}
.hero-stat strong { font-size: 0.95rem; }
.hero .button-primary { max-width: 280px; margin: 0 auto; }

@media (max-width: 640px) {
    .hero { padding: var(--space-5) var(--space-3); }
    .hero h1 { font-size: 1.7rem; }
}
.card-header p { color: var(--color-ink-soft); margin-bottom: 0; }

/* ---------- Formulieren ---------- */
.form-group { margin-bottom: var(--space-4); }

label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-1);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea { resize: vertical; min-height: 100px; font-family: var(--font-body); }

input:focus {
    outline: none;
    border-color: var(--color-thread);
    box-shadow: 0 0 0 3px rgba(140, 48, 97, 0.15);
}

.help-text { font-size: 0.82rem; color: var(--color-ink-soft); margin-top: var(--space-1); }

.checkbox-group { display: flex; align-items: flex-start; gap: var(--space-2); margin-bottom: var(--space-3); }
.checkbox-group input { margin-top: 0.25rem; width: 18px; height: 18px; flex-shrink: 0; }
.checkbox-group label { font-weight: 400; margin-bottom: 0; }

/* ---------- Knoppen ---------- */
.button {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}
.button:hover { text-decoration: none; }
.button:active { transform: scale(0.99); }

.button-primary { background: var(--color-thread); color: #fff; }
.button-primary:hover { background: var(--color-thread-dark); }

.button-secondary { background: transparent; color: var(--color-thread); border: 1px solid var(--color-thread); }
.button-secondary:hover { background: rgba(140, 48, 97, 0.06); }

.button-link {
    width: auto;
    display: inline;
    background: none;
    padding: 0;
    color: var(--color-thread);
    font-weight: 600;
}
.button-link:hover { text-decoration: underline; }

/* ---------- Meldingen ---------- */
.alert {
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
    font-size: 0.95rem;
}
.alert-error { background: var(--color-error-bg); color: var(--color-error); border: 1px solid rgba(179,38,30,0.25); }
.alert-success { background: var(--color-success-bg); color: var(--color-sage); border: 1px solid rgba(79,110,95,0.25); }

.error-list { margin: 0 0 var(--space-4); padding-left: 1.1rem; }
.error-list li { color: var(--color-error); font-size: 0.92rem; margin-bottom: 0.25rem; }

.form-footer-note { text-align: center; margin-top: var(--space-4); font-size: 0.92rem; color: var(--color-ink-soft); }

/* ---------- Profielkaarten ---------- */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin: var(--space-4) 0;
}
@media (min-width: 560px) {
    .profile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .profile-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
    .profile-grid { grid-template-columns: repeat(4, 1fr); }
}

.profile-card {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(33, 31, 46, 0.10);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    min-width: 0;
}

.profile-card-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex-grow: 1;
    min-width: 0;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--color-thread);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-thread);
    flex-shrink: 0;
}

/* Variatie zonder foto's: elk profiel krijgt een van vijf gedempte tinten,
   consistent bepaald door de gebruikersnaam — zowel de koptekst-band als
   de avatarrand en badge nemen dezelfde tint over. */
.profile-card.hue-thread .profile-card-header   { background: linear-gradient(135deg, rgba(140, 48, 97, 0.16), rgba(140, 48, 97, 0.03)); }
.profile-card.hue-sage .profile-card-header     { background: linear-gradient(135deg, rgba(79, 110, 95, 0.16), rgba(79, 110, 95, 0.03)); }
.profile-card.hue-gold .profile-card-header     { background: linear-gradient(135deg, rgba(169, 129, 47, 0.18), rgba(169, 129, 47, 0.03)); }
.profile-card.hue-indigo .profile-card-header   { background: linear-gradient(135deg, rgba(74, 88, 153, 0.16), rgba(74, 88, 153, 0.03)); }
.profile-card.hue-rosewood .profile-card-header { background: linear-gradient(135deg, rgba(161, 77, 92, 0.16), rgba(161, 77, 92, 0.03)); }

.avatar-thread   { border-color: var(--color-thread);   color: var(--color-thread); }
.avatar-sage     { border-color: var(--color-sage);     color: var(--color-sage); }
.avatar-gold     { border-color: var(--color-gold);     color: var(--color-gold); }
.avatar-indigo   { border-color: var(--color-indigo);   color: var(--color-indigo); }
.avatar-rosewood { border-color: var(--color-rosewood); color: var(--color-rosewood); }

.profile-card-top { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.profile-card-top > div:last-child { min-width: 0; }
.profile-card-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 0; }
.profile-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
    font-size: 0.82rem;
    color: var(--color-ink-soft);
    margin: 0.15rem 0 0;
}
.profile-card-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.profile-card-meta svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.7; }
.profile-card-bio { font-size: 0.9rem; color: var(--color-ink); flex-grow: 1; line-height: 1.5; }
.profile-card-actions { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.profile-card-actions .button { width: 100%; padding: 0.65rem 0.9rem; font-size: 0.88rem; white-space: normal; overflow-wrap: break-word; line-height: 1.3; }

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(140, 48, 97, 0.1);
    color: var(--color-thread-dark);
}
.badge-gold { background: rgba(169, 129, 47, 0.15); color: var(--color-gold); }
.badge-sage { background: rgba(79, 110, 95, 0.15); color: var(--color-sage); }

/* ---------- "Match gevonden": zichtbaar maar duidelijk gemarkeerd ---------- */
.matched-ribbon {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: var(--color-sage);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.profile-card.is-matched .profile-card-header { background: linear-gradient(135deg, rgba(79, 110, 95, 0.14), rgba(79, 110, 95, 0.03)) !important; }
.profile-card.is-matched .profile-avatar { border-color: var(--color-sage); color: var(--color-sage); }
.profile-card.is-matched { opacity: 0.9; }
.profile-card.is-matched:hover { opacity: 1; }
.hue-thread .badge   { background: rgba(140, 48, 97, 0.14);  color: var(--color-thread-dark); }
.hue-sage .badge     { background: rgba(79, 110, 95, 0.16);  color: var(--color-sage); }
.hue-gold .badge     { background: rgba(169, 129, 47, 0.18); color: var(--color-gold); }
.hue-indigo .badge   { background: rgba(74, 88, 153, 0.16);  color: var(--color-indigo); }
.hue-rosewood .badge { background: rgba(161, 77, 92, 0.16);  color: var(--color-rosewood); }

.pricing-card {
    background: linear-gradient(160deg, rgba(169, 129, 47, 0.10), var(--color-surface) 55%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(33, 31, 46, 0.10); }
.pricing-card h3 { margin-bottom: 0; }
.pricing-card-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin: 0; color: var(--color-gold); }
.pricing-card-amount span { font-size: 1rem; font-weight: 400; color: var(--color-ink-soft); font-family: var(--font-body); }
.pricing-card-price { font-size: 1.15rem; font-weight: 600; margin: 0; }
.pricing-card .button { margin-top: var(--space-2); }

.filter-bar {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}
.filter-bar form { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3); align-items: end; }
.filter-bar .form-group { margin-bottom: 0; }
.filter-bar button { grid-column: -1 / -1; }
@media (min-width: 640px) { .filter-bar button { width: auto; } }

.pagination { display: flex; justify-content: center; gap: var(--space-2); margin: var(--space-5) 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; border-radius: var(--radius-sm);
    border: 1px solid var(--color-border); color: var(--color-ink);
}
.pagination .active { background: var(--color-thread); color: #fff; border-color: var(--color-thread); }

.data-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.data-table th, .data-table td { padding: var(--space-2) var(--space-3); text-align: left; border-bottom: 1px solid var(--color-border); font-size: 0.9rem; }
.data-table th { background: var(--color-bg); font-weight: 600; }

@media (max-width: 640px) {
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table tr { margin-bottom: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
    .data-table td { border-bottom: none; display: flex; justify-content: space-between; gap: var(--space-2); }
    .data-table td::before { content: attr(data-label); font-weight: 600; color: var(--color-ink-soft); }
}

/* ---------- Mobiel menu ---------- */
@media (max-width: 640px) {
    .menu-toggle { display: block; }

    .main-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-surface);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4);
        gap: var(--space-3);
        overflow-y: auto;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { font-size: 1.1rem; padding: var(--space-2) 0; }
    .main-nav a.button { padding: 0.85rem 1.25rem; }

    .container, .container-wide { padding: var(--space-4) var(--space-3); }
    .card { padding: var(--space-4); }
}

/* ============================================================
   V2 levendige interface — voorpagina, navigatie en dashboard
   ============================================================ */
:root {
    --color-bg: #f8f7ff;
    --color-surface: #ffffff;
    --color-ink: #252238;
    --color-ink-soft: #716d83;
    --color-thread: #7c3aed;
    --color-thread-dark: #6124c9;
    --color-sage: #14966f;
    --color-gold: #d68a00;
    --color-indigo: #4f63d8;
    --color-rosewood: #e84a78;
    --color-border: #e9e5f2;
    --font-display: 'Manrope', 'Segoe UI', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 22px;
    --radius-sm: 13px;
    --shadow-card: 0 12px 36px rgba(57, 42, 91, .08);
    --purple: #7c3aed;
    --purple-dark: #5b21b6;
    --purple-soft: #f0e9ff;
    --pink: #ec4899;
    --pink-soft: #fff0f7;
    --coral: #ff6b5e;
    --orange: #f59e0b;
    --orange-soft: #fff7df;
    --green: #18a57a;
    --green-soft: #eafaf4;
    --blue: #4f6fe8;
    --blue-soft: #eef2ff;
}

html { scroll-behavior: smooth; }
html, body {
    background: #f8f7ff;
    background-image:
        radial-gradient(circle at 8% 10%, rgba(124,58,237,.06), transparent 25%),
        radial-gradient(circle at 94% 16%, rgba(236,72,153,.055), transparent 22%),
        radial-gradient(circle at 75% 88%, rgba(245,158,11,.045), transparent 24%);
}
body { min-height: 100vh; }
main { min-height: 65vh; }
h1, h2, h3 { letter-spacing: -.035em; }
a { color: var(--purple); }

/* Header */
.site-header {
    padding: 0;
    background: rgba(255,255,255,.9);
    border: 0;
    border-bottom: 1px solid rgba(231,226,243,.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 4px 24px rgba(45,35,75,.035);
}
.header-inner {
    width: min(1180px, calc(100% - 36px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { gap: 11px; color: var(--color-ink); }
.brand-mark-wrap {
    width: 43px;
    height: 43px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #9b5cf6, #6d28d9 60%, #ec4899);
    box-shadow: 0 8px 20px rgba(124,58,237,.28);
    transform: rotate(-3deg);
}
.brand-mark { width: 29px; height: 29px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
.brand-copy strong { font-size: 1.08rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; }
.brand-copy small { margin-top: 4px; color: var(--color-ink-soft); font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .02em; }
.main-nav { gap: 7px; }
.main-nav > a:not(.button) {
    padding: 10px 13px;
    border-radius: 12px;
    color: #565168;
    font-size: .91rem;
    font-weight: 600;
    transition: .2s ease;
}
.main-nav > a:not(.button):hover,
.main-nav > a.is-active { color: var(--purple); background: var(--purple-soft); text-decoration: none; }
.main-nav .nav-login { color: var(--purple) !important; }
.main-nav .nav-logout { color: #d54c66 !important; }
.main-nav .button.nav-cta { width: auto; padding: 11px 18px; border-radius: 14px; box-shadow: 0 8px 20px rgba(124,58,237,.18); }
.menu-toggle { width: 44px; height: 44px; border-radius: 13px; background: var(--purple-soft); padding: 10px; }
.menu-toggle span { display: block; height: 2px; border-radius: 99px; margin: 5px 0; background: var(--purple); transition: .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.button {
    border-radius: 14px;
    padding: .82rem 1.2rem;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); text-decoration: none; }
.button-primary {
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9 60%, #7c3aed);
    box-shadow: 0 10px 24px rgba(124,58,237,.2);
}
.button-primary:hover { background: linear-gradient(135deg, #7c3aed, #5b21b6); box-shadow: 0 13px 28px rgba(124,58,237,.28); }
.button-secondary { color: var(--purple); border-color: #d8caef; background: #fff; }
.button-secondary:hover { background: var(--purple-soft); border-color: #c2aae8; }
.button-light { color: #554d68; background: #fff; border: 1px solid #e9e5f2; box-shadow: 0 7px 18px rgba(48,37,72,.06); }
.button-light:hover { color: var(--purple); border-color: #d5c6ee; }
.button-white { color: var(--purple); background: #fff; box-shadow: 0 10px 26px rgba(52,28,94,.18); }
.button-large { width: auto; min-width: 180px; padding: 1rem 1.35rem; }

/* Flash */
.flash-wrap { width: min(1120px, calc(100% - 32px)); margin: 18px auto 0; }
.flash-wrap .alert { display: flex; align-items: center; gap: 12px; margin: 0; border: 0; box-shadow: var(--shadow-card); }
.alert-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-weight: 800; background: rgba(255,255,255,.65); }

/* Home layout */
.home-page { overflow: hidden; }
.home-hero {
    position: relative;
    background: linear-gradient(132deg, #fbf8ff 0%, #f4ecff 46%, #fff2f7 100%);
    border-bottom: 1px solid #eee7f6;
    isolation: isolate;
}
.home-hero-inner {
    width: min(1180px, calc(100% - 36px));
    min-height: 610px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 56px;
    padding: 72px 0 82px;
}
.home-hero-copy { position: relative; z-index: 2; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #6d28d9;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(124,58,237,.12);
    box-shadow: 0 7px 20px rgba(67,39,113,.06);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.eyebrow-soft { background: var(--purple-soft); box-shadow: none; }
.eyebrow-light { color: #fff; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.24); box-shadow: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #20b486; box-shadow: 0 0 0 5px rgba(32,180,134,.12); }
.home-hero h1 { max-width: 650px; margin-bottom: 20px; font-size: clamp(3rem, 5.3vw, 5rem); line-height: 1.01; font-weight: 800; letter-spacing: -.065em; }
.home-hero h1 span { color: transparent; background: linear-gradient(90deg, #7c3aed, #ec4899, #f97360); -webkit-background-clip: text; background-clip: text; }
.home-hero-copy > p { max-width: 610px; margin-bottom: 30px; color: #686178; font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 27px; }
.hero-trust-row { display: flex; flex-wrap: wrap; gap: 18px; color: #6d687b; font-size: .82rem; font-weight: 600; }
.hero-trust-row b { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 4px; border-radius: 50%; color: #15936d; background: #e6f8f1; font-size: .7rem; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .7; z-index: -1; }
.hero-orb-one { width: 380px; height: 380px; right: -110px; top: -130px; background: radial-gradient(circle at 30% 30%, rgba(236,72,153,.28), rgba(124,58,237,.04) 66%); }
.hero-orb-two { width: 280px; height: 280px; left: 41%; bottom: -170px; background: radial-gradient(circle, rgba(245,158,11,.12), transparent 70%); }

/* CSS illustration */
.hero-visual { position: relative; min-height: 450px; display: grid; place-items: center; }
.hero-profile-stack { position: relative; width: 440px; height: 340px; }
.mini-profile {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 22px 60px rgba(73,49,111,.13);
    backdrop-filter: blur(12px);
}
.mini-profile > span:nth-child(2) { display: flex; flex-direction: column; }
.mini-profile strong { font-size: .92rem; }
.mini-profile small { margin-top: 4px; color: var(--color-ink-soft); font-size: .72rem; }
.mini-profile-back { width: 250px; top: 6px; left: 10px; transform: rotate(-6deg); opacity: .84; }
.mini-profile-main { width: 340px; min-height: 180px; top: 83px; left: 52px; flex-wrap: wrap; z-index: 3; border-color: #e9dcff; box-shadow: 0 28px 80px rgba(87,54,137,.18); }
.mini-profile-front { width: 247px; right: -2px; bottom: 9px; z-index: 4; transform: rotate(5deg); }
.mini-avatar { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; font-weight: 800; box-shadow: inset 0 -8px 16px rgba(0,0,0,.08); }
.avatar-purple { background: linear-gradient(145deg, #9d73f2, #6d28d9); }
.avatar-pink { background: linear-gradient(145deg, #f77cad, #db2777); }
.avatar-orange { background: linear-gradient(145deg, #ffad6b, #f97316); }
.match-bubble { position: absolute; right: 17px; top: -18px; padding: 9px 13px; border-radius: 999px; color: #8a2960; background: #fff0f7; border: 1px solid #ffd6e8; font-size: .72rem; font-weight: 800; }
.interest-pills { display: flex; gap: 7px; width: 100%; padding-top: 5px; }
.interest-pills i { padding: 6px 9px; border-radius: 999px; color: #6f42b0; background: #f4edff; font-size: .66rem; font-style: normal; font-weight: 700; }
.active-community-card { position: absolute; right: 7px; top: 20px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #7c3aed, #ec4899); box-shadow: 0 15px 35px rgba(124,58,237,.25); transform: rotate(3deg); z-index: 5; }
.active-community-card > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.active-community-card strong { font-size: 1.08rem; }
.active-community-card small { opacity: .85; font-size: .67rem; }
.community-icon { width: 33px; height: 33px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.19); }
.floating-heart { position: absolute; display: grid; place-items: center; border-radius: 50%; color: #ec4899; background: #fff; box-shadow: 0 12px 30px rgba(95,52,129,.15); animation: floatHeart 3.4s ease-in-out infinite; }
.heart-one { width: 43px; height: 43px; left: 14px; bottom: 45px; }
.heart-two { width: 31px; height: 31px; right: 42px; top: 92px; color: #f59e0b; animation-delay: .8s; }
@keyframes floatHeart { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-10px) rotate(5deg); } }

.home-stats {
    width: min(1080px, calc(100% - 36px));
    margin: -31px auto 78px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid #eee9f5;
    border-radius: 24px;
    background: #eee9f5;
    box-shadow: 0 18px 46px rgba(59,43,88,.09);
}
.home-stats > div { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 100px; padding: 18px; background: #fff; }
.stat-icon { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; font-size: 1.1rem; font-weight: 800; }
.stat-purple { color: var(--purple); background: var(--purple-soft); }
.stat-pink { color: var(--pink); background: var(--pink-soft); }
.stat-orange { color: #d87d00; background: var(--orange-soft); }
.stat-green { color: var(--green); background: var(--green-soft); }
.home-stats p { display: flex; flex-direction: column; margin: 0; }
.home-stats strong { font-size: .92rem; }
.home-stats small { margin-top: 3px; color: var(--color-ink-soft); font-size: .72rem; }

.how-section, .profiles-section, .opportunity-section { width: min(1120px, calc(100% - 36px)); margin-left: auto; margin-right: auto; }
.how-section { margin-bottom: 82px; }
.section-heading { max-width: 670px; }
.section-heading.centered { margin: 0 auto 35px; text-align: center; }
.section-heading h2 { margin-bottom: 12px; font-size: clamp(2rem, 3.3vw, 2.8rem); font-weight: 800; }
.section-heading p { color: var(--color-ink-soft); line-height: 1.7; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { position: relative; min-height: 250px; padding: 31px 28px; overflow: hidden; border: 1px solid #ece7f4; border-radius: 26px; background: #fff; box-shadow: 0 13px 36px rgba(53,40,83,.06); transition: .25s ease; }
.step-card:hover { transform: translateY(-7px); box-shadow: 0 22px 44px rgba(53,40,83,.11); }
.step-card::after { content: ''; position: absolute; width: 130px; height: 130px; right: -55px; bottom: -60px; border-radius: 50%; opacity: .55; }
.step-purple::after { background: #ede3ff; }
.step-pink::after { background: #ffe1ee; }
.step-orange::after { background: #ffedc4; }
.step-number { position: absolute; top: 23px; right: 24px; color: #d6d0df; font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; }
.step-emoji { width: 54px; height: 54px; margin-bottom: 24px; border-radius: 17px; display: grid; place-items: center; font-size: 1.35rem; font-weight: 800; }
.step-purple .step-emoji { color: var(--purple); background: var(--purple-soft); }
.step-pink .step-emoji { color: var(--pink); background: var(--pink-soft); }
.step-orange .step-emoji { color: #d57d00; background: var(--orange-soft); }
.step-card h3 { font-size: 1.23rem; }
.step-card p { color: var(--color-ink-soft); font-size: .91rem; line-height: 1.7; }

.opportunity-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 86px; }
.opportunity-card {
    position: relative;
    min-height: 190px;
    padding: 28px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 26px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(59, 34, 112, .10);
    transform: translateY(0) scale(1);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, filter .24s ease;
    -webkit-tap-highlight-color: transparent;
}
.opportunity-card:hover { color: inherit; text-decoration: none; }
.opportunity-promoter { color: #fff; background: linear-gradient(135deg, #6d28d9, #8b5cf6 68%, #a878f4); }
.opportunity-reseller { color: #443210; background: linear-gradient(135deg, #fff0ba, #ffd36d 70%, #ffc34d); }
.opportunity-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.20) 48%, transparent 76%);
    transform: translateX(-120%);
    transition: transform .65s ease;
    pointer-events: none;
}
.opportunity-card::after { content: '♥'; position: absolute; right: 80px; bottom: -55px; z-index: 0; font-size: 10rem; line-height: 1; opacity: .075; transform: rotate(-15deg); pointer-events: none; }
.opportunity-card > * { position: relative; z-index: 1; }
.opportunity-icon { width: 60px; height: 60px; border-radius: 19px; display: grid; place-items: center; font-size: 1.55rem; font-weight: 800; background: rgba(255,255,255,.18); transition: transform .24s ease, background .24s ease; }
.opportunity-reseller .opportunity-icon { background: rgba(255,255,255,.45); }
.opportunity-content { min-width: 0; display: block; }
.card-kicker { display: block; margin-bottom: 5px; opacity: .78; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.opportunity-title { display: block; margin-bottom: 8px; color: inherit; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.opportunity-description { display: block; margin: 0; opacity: .83; font-size: .88rem; line-height: 1.55; }
.opportunity-cta {
    min-height: 45px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: inherit;
    background: rgba(255,255,255,.18);
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .24s ease, background .24s ease, box-shadow .24s ease;
}
.opportunity-reseller .opportunity-cta { border-color: rgba(68,50,16,.08); background: rgba(255,255,255,.55); }
.opportunity-arrow { display: inline-block; font-size: 1.2rem; line-height: 1; transition: transform .24s ease; }
.opportunity-card:focus-visible { outline: 4px solid rgba(123, 72, 229, .25); outline-offset: 4px; }
.opportunity-card:active { transform: translateY(-1px) scale(.985); }

@media (hover: hover) and (pointer: fine) {
    .opportunity-card:hover {
        transform: translateY(-7px) scale(1.012);
        border-color: rgba(255,255,255,.40);
        box-shadow: 0 24px 52px rgba(59, 34, 112, .20);
        filter: saturate(1.05) brightness(1.02);
    }
    .opportunity-card:hover::before { transform: translateX(120%); }
    .opportunity-card:hover .opportunity-icon { transform: rotate(-4deg) scale(1.06); background: rgba(255,255,255,.27); }
    .opportunity-reseller:hover .opportunity-icon { background: rgba(255,255,255,.68); }
    .opportunity-card:hover .opportunity-cta { transform: translateX(3px); background: rgba(255,255,255,.29); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
    .opportunity-reseller:hover .opportunity-cta { background: rgba(255,255,255,.78); }
    .opportunity-card:hover .opportunity-arrow { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .opportunity-card,
    .opportunity-card::before,
    .opportunity-icon,
    .opportunity-cta,
    .opportunity-arrow { transition: none; }
}

.profiles-section { margin-bottom: 86px; }
.profiles-header { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.filter-jump { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border: 1px solid #e3d9f1; border-radius: 13px; background: #fff; color: var(--purple); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.filter-jump:hover { text-decoration: none; background: var(--purple-soft); }
.modern-filter-panel { margin-bottom: 28px; overflow: hidden; border: 1px solid #e8e2f1; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(55,41,84,.055); }
.modern-filter-panel summary { list-style: none; display: flex; align-items: center; gap: 13px; padding: 19px 22px; cursor: pointer; }
.modern-filter-panel summary::-webkit-details-marker { display: none; }
.modern-filter-panel summary > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.modern-filter-panel summary strong { font-size: .95rem; }
.modern-filter-panel summary small { margin-top: 2px; color: var(--color-ink-soft); font-size: .73rem; }
.filter-summary-icon { width: 39px; height: 39px; border-radius: 13px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); font-size: 1.25rem; }
.filter-active-count { flex: 0 0 auto !important; padding: 6px 9px; border-radius: 999px; color: var(--pink); background: var(--pink-soft); font-size: .7rem; font-weight: 800; }
.filter-panel-body { padding: 4px 22px 23px; border-top: 1px solid #f0ecf5; }
.modern-filter-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; padding-top: 20px; align-items: end; }
.modern-filter-form .form-group { margin: 0; }
.modern-filter-form .filter-wide { grid-column: span 2; }
.modern-filter-form label { color: #5e586b; font-size: .78rem; }
.modern-filter-form input, .modern-filter-form select { min-height: 46px; border-color: #e6e0ed; background: #fbfaff; }
.modern-filter-form input:focus, .modern-filter-form select:focus { border-color: #a98bd9; box-shadow: 0 0 0 4px rgba(124,58,237,.09); }
.filter-actions { grid-column: span 4; display: flex; justify-content: flex-end; gap: 10px; padding-top: 3px; }
.filter-actions .button { width: auto; min-width: 130px; }

.home-profile-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 0; }
.profile-card { border: 1px solid #ebe6f3; border-radius: 23px; box-shadow: 0 13px 34px rgba(48,36,74,.065); }
.profile-card:hover { transform: translateY(-7px); box-shadow: 0 20px 45px rgba(48,36,74,.12); }
.profile-card-header { min-height: 112px; padding: 24px 22px 18px; }
.profile-avatar { width: 58px; height: 58px; border: 0; border-radius: 18px; color: #fff !important; box-shadow: inset 0 -8px 18px rgba(0,0,0,.08); }
.avatar-thread { background: linear-gradient(145deg, #a674f1, #7c3aed); }
.avatar-sage { background: linear-gradient(145deg, #45c79d, #138b68); }
.avatar-gold { background: linear-gradient(145deg, #ffc95d, #d98a00); }
.avatar-indigo { background: linear-gradient(145deg, #7f91ef, #4f63d8); }
.avatar-rosewood { background: linear-gradient(145deg, #f37b9e, #d93a68); }
.profile-card-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; }
.profile-card-body { padding: 18px 22px 22px; }
.profile-card-bio { color: #686274; }
.profile-card .badge { align-self: flex-start; padding: 6px 9px; font-family: var(--font-body); font-size: .67rem; font-weight: 700; }
.profile-card-actions { margin-top: 8px; }
.profile-card-actions .button { padding: .72rem .8rem; }
.profile-card-actions .button-primary { box-shadow: none; }
.matched-ribbon { top: 13px; right: 13px; background: linear-gradient(135deg, #13a276, #2eb98e); }
.empty-state { max-width: 600px; margin: 45px auto; padding: 45px; text-align: center; border: 1px dashed #dcd2eb; border-radius: 26px; background: #fff; }
.empty-state > span { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); font-size: 2rem; }
.empty-state p { color: var(--color-ink-soft); }
.empty-state .button { width: auto; }
.pagination a, .pagination span { border-radius: 12px; background: #fff; }
.pagination .active { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.home-cta { width: min(1120px, calc(100% - 36px)); margin: 0 auto 86px; padding: 48px 54px; display: flex; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden; position: relative; border-radius: 30px; color: #fff; background: linear-gradient(125deg, #6d28d9, #8b5cf6 53%, #ec4899); box-shadow: 0 24px 60px rgba(107,40,190,.23); }
.home-cta::after { content: '♥'; position: absolute; right: 22%; bottom: -105px; font-size: 16rem; opacity: .08; transform: rotate(-12deg); }
.home-cta > div, .home-cta > a { position: relative; z-index: 2; }
.home-cta h2 { color: #fff; margin-bottom: 9px; font-size: clamp(2rem, 3.2vw, 2.7rem); }
.home-cta p { margin: 0; opacity: .82; }
.home-cta .button { flex: 0 0 auto; }

/* Dashboard */
.dashboard-page { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 84px; }
.dashboard-welcome { position: relative; overflow: hidden; min-height: 210px; padding: 38px 42px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 30px; color: #fff; background: linear-gradient(125deg, #6d28d9, #8b5cf6 55%, #ec4899); box-shadow: 0 22px 50px rgba(101,45,181,.2); }
.dashboard-welcome::before { content: ''; position: absolute; width: 330px; height: 330px; right: -90px; top: -155px; border: 55px solid rgba(255,255,255,.08); border-radius: 50%; }
.dashboard-welcome::after { content: '♥'; position: absolute; left: 47%; bottom: -90px; font-size: 13rem; opacity: .065; transform: rotate(-15deg); }
.dashboard-welcome-copy { position: relative; z-index: 2; max-width: 710px; }
.dashboard-welcome h1 { color: #fff; margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; }
.dashboard-welcome p { margin: 0; opacity: .84; font-size: 1rem; }
.dashboard-user-chip { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; min-width: 240px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.dashboard-user-chip > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.dashboard-user-chip strong, .dashboard-user-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-user-chip small { margin-top: 3px; opacity: .75; font-size: .7rem; }


.avatar-svg { display: inline-flex; align-items: center; justify-content: center; width: 68%; height: 68%; color: currentColor; }
.avatar-svg svg { display: block; width: 100%; height: 100%; }
.avatar-svg .icon-stroke { fill: none; stroke: currentColor; stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round; }
.avatar-svg .icon-fill { fill: currentColor; opacity: .18; stroke: currentColor; stroke-width: 1.35; stroke-linejoin: round; }
.avatar-svg .icon-fill-solid { fill: currentColor; }
.avatar-svg-lg { width: 70%; height: 70%; }
.avatar-svg-dashboard { width: 62%; height: 62%; }
.avatar-svg-overview { width: 66%; height: 66%; }

.avatar-symbol { display: inline-block; line-height: 1; font-size: 1.45rem; font-weight: 400; }
.avatar-symbol-large { font-size: 1.9rem; }
.avatar-symbol-dashboard { font-size: 1.3rem; }
.avatar-symbol-overview { font-size: 1.8rem; }

.dashboard-avatar { width: 49px; height: 49px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; color: #6d28d9; background: #fff; font-weight: 800; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin: -25px 28px 26px; position: relative; z-index: 5; }
.dash-stat-card { min-height: 100px; padding: 19px 20px; display: flex; align-items: center; gap: 14px; border: 1px solid #ebe6f2; border-radius: 22px; background: #fff; box-shadow: 0 15px 38px rgba(48,35,74,.09); }
.dash-stat-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; font-size: 1.25rem; }
.dash-stat-profile .dash-stat-icon { color: var(--purple); background: var(--purple-soft); }
.dash-stat-credit .dash-stat-icon { color: #d28300; background: var(--orange-soft); }
.dash-stat-message .dash-stat-icon { color: var(--pink); background: var(--pink-soft); }
.dash-stat-card > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dash-stat-card small { color: var(--color-ink-soft); font-size: .7rem; }
.dash-stat-card strong { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.dash-stat-card > a { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; color: var(--purple); background: #f5f1fb; font-size: 1.15rem; font-weight: 800; }
.dash-stat-card > a:hover { text-decoration: none; background: var(--purple-soft); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #a9a4b2; box-shadow: 0 0 0 5px #f1eff4; }
.status-dot.status-active { background: #18a57a; box-shadow: 0 0 0 5px #e6f8f1; }
.status-dot.status-pending, .status-dot.status-awaiting_payment { background: #f59e0b; box-shadow: 0 0 0 5px #fff4d8; }
.status-dot.status-matched { background: #ec4899; box-shadow: 0 0 0 5px #ffeaf4; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.dashboard-main-column, .dashboard-side-column { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.dashboard-panel { padding: 26px; border: 1px solid #ebe6f2; border-radius: 25px; background: #fff; box-shadow: 0 13px 36px rgba(48,35,74,.06); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.panel-heading > div { display: flex; align-items: center; gap: 12px; }
.panel-heading > div > span:last-child { display: flex; flex-direction: column; }
.panel-heading small { color: var(--color-ink-soft); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.panel-heading h2 { margin: 2px 0 0; font-size: 1.3rem; }
.panel-heading.compact { margin-bottom: 13px; }
.panel-icon { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; font-size: 1.15rem; font-weight: 800; }
.panel-icon-purple { color: var(--purple); background: var(--purple-soft); }
.panel-icon-pink { color: var(--pink); background: var(--pink-soft); }
.panel-icon-blue { color: var(--blue); background: var(--blue-soft); }
.dashboard-status-badge { padding: 7px 11px; border-radius: 999px; font-size: .69rem; font-weight: 800; }
.status-badge-active { color: #087957; background: #e5f8f1; }
.status-badge-pending, .status-badge-awaiting_payment { color: #a96500; background: #fff3d6; }
.status-badge-hidden { color: #5e5969; background: #f0edf3; }
.status-badge-matched { color: #ba2460; background: #ffe8f2; }
.profile-empty-card { min-height: 190px; padding: 26px; display: flex; align-items: center; gap: 25px; border-radius: 21px; background: linear-gradient(135deg, #f7f2ff, #fff3f8); }
.profile-empty-art { position: relative; width: 105px; height: 105px; border-radius: 32px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(145deg, #9f73ee, #7c3aed); font-size: 2.4rem; box-shadow: 0 17px 34px rgba(124,58,237,.2); transform: rotate(-4deg); }
.profile-empty-art i { position: absolute; right: -7px; bottom: -7px; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: var(--pink); background: #fff; font-style: normal; font-weight: 800; box-shadow: 0 7px 16px rgba(77,50,111,.15); }
.profile-empty-card h3 { margin-bottom: 8px; font-size: 1.35rem; }
.profile-empty-card p { color: var(--color-ink-soft); }
.profile-empty-card .button { width: auto; }
.profile-overview-row { padding: 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; border: 1px solid #eee8f5; border-radius: 21px; background: linear-gradient(135deg, #fbf9ff, #fff); }
.profile-overview-avatar { width: 68px; height: 68px; border-radius: 21px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #a874f3, #7c3aed); font-weight: 800; font-size: 1.1rem; box-shadow: 0 11px 23px rgba(124,58,237,.17); }
.profile-overview-copy h3 { margin-bottom: 4px; }
.profile-overview-copy p { margin: 0; color: var(--color-ink-soft); font-size: .83rem; }
.profile-overview-actions { display: flex; gap: 9px; }
.profile-overview-actions .button { width: auto; white-space: nowrap; padding: .7rem .95rem; font-size: .78rem; }
.dashboard-notice { margin-top: 17px; padding: 16px; display: flex; align-items: center; gap: 13px; border-radius: 17px; }
.notice-warning { background: #fff7e2; border: 1px solid #ffe3a4; }
.dashboard-notice > span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; color: #a96400; background: #ffe6ac; font-weight: 900; }
.dashboard-notice > div { flex: 1; }
.dashboard-notice p { margin: 2px 0 0; color: #806a46; font-size: .76rem; }
.dashboard-notice .button { width: auto; font-size: .76rem; }
.profile-management-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 16px; }
.profile-management-actions form { margin: 0; }
.action-tile { width: 100%; min-height: 78px; padding: 13px; display: flex; align-items: center; gap: 11px; text-align: left; border: 1px solid #ebe5f2; border-radius: 17px; color: var(--color-ink); background: #fff; cursor: pointer; transition: .2s ease; }
.action-tile:hover { transform: translateY(-2px); border-color: #d4c5eb; background: #fcfaff; }
.action-tile-love { border-color: #f4d5e2; background: #fff8fb; }
.action-tile-icon { width: 39px; height: 39px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; color: var(--purple); background: var(--purple-soft); font-size: 1rem; }
.action-tile-love .action-tile-icon { color: var(--pink); background: var(--pink-soft); }
.action-tile > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.action-tile strong { font-size: .78rem; }
.action-tile small { margin-top: 3px; color: var(--color-ink-soft); font-size: .64rem; }
.action-tile b { color: #a8a1b4; }
.quick-link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-link-card { min-height: 88px; padding: 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #eee9f4; border-radius: 18px; color: var(--color-ink); background: #fff; transition: .2s ease; }
.quick-link-card:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 12px 25px rgba(50,38,76,.08); }
.quick-link-card > span { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; font-size: 1.1rem; font-weight: 800; }
.quick-link-card > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.quick-link-card strong { font-size: .8rem; }
.quick-link-card small { margin-top: 3px; color: var(--color-ink-soft); font-size: .64rem; line-height: 1.35; }
.quick-link-card b { color: #aca5b7; }
.quick-purple > span { color: var(--purple); background: var(--purple-soft); }
.quick-gold > span { color: #c57900; background: var(--orange-soft); }
.quick-pink > span { color: var(--pink); background: var(--pink-soft); }
.quick-blue > span { color: var(--blue); background: var(--blue-soft); }
.quick-green > span { color: var(--green); background: var(--green-soft); }
.quick-orange > span { color: #e36b31; background: #fff0e9; }
.credits-wallet-card { position: relative; overflow: hidden; min-height: 255px; padding: 27px; border-radius: 26px; color: #fff; background: linear-gradient(145deg, #6d28d9, #8b5cf6 55%, #ec4899); box-shadow: 0 20px 43px rgba(100,44,178,.2); }
.credits-wallet-card::after { content: '✦'; position: absolute; right: -12px; bottom: -52px; font-size: 9rem; opacity: .11; transform: rotate(-13deg); }
.wallet-shine { position: absolute; width: 230px; height: 230px; border: 40px solid rgba(255,255,255,.08); border-radius: 50%; right: -110px; top: -125px; }
.wallet-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 700; }
.wallet-chip { width: 35px; height: 35px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.credits-wallet-card > strong { position: relative; z-index: 2; display: block; margin-top: 17px; font-size: 3.5rem; line-height: 1; font-family: var(--font-display); }
.credits-wallet-card > small { position: relative; z-index: 2; display: block; margin-top: 5px; opacity: .75; }
.credits-wallet-card .button { position: relative; z-index: 2; margin-top: 23px; }
.wallet-link { position: relative; z-index: 2; display: block; margin-top: 13px; color: #fff; text-align: center; font-size: .72rem; font-weight: 700; opacity: .82; }
.wallet-link:hover { color: #fff; opacity: 1; }
.side-panel { padding: 22px; }
.account-menu { display: flex; flex-direction: column; }
.account-menu a { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #f0edf4; color: #575164; font-size: .78rem; font-weight: 600; }
.account-menu a:hover { color: var(--purple); text-decoration: none; }
.account-menu i { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: var(--pink); font-style: normal; font-size: .65rem; }
.account-menu b { color: #b0a9bb; }
.logout-all-form { margin-top: 15px; }
.logout-all-form button { width: 100%; padding: 11px; border: 1px solid #f1d7df; border-radius: 13px; color: #cd4864; background: #fff6f8; font-family: var(--font-body); font-size: .75rem; font-weight: 700; cursor: pointer; }
.logout-all-form button:hover { background: #ffeef2; }
.safety-tip-card { padding: 20px; display: flex; gap: 13px; border: 1px solid #ddefe8; border-radius: 22px; background: linear-gradient(135deg, #effcf7, #fafffd); }
.safety-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green); background: #dcf7ed; font-size: 1.2rem; }
.safety-tip-card strong { font-size: .82rem; }
.safety-tip-card p { margin: 5px 0 8px; color: #648076; font-size: .69rem; line-height: 1.5; }
.safety-tip-card a { color: #128261; font-size: .69rem; font-weight: 800; }

/* Footer */
.site-footer { padding: 60px 0 0; color: #746f80; background: #211d30; text-align: left; }
.footer-inner { width: min(1120px, calc(100% - 36px)); margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; padding-bottom: 46px; }
.footer-brand p { max-width: 360px; margin-top: 18px; color: #aaa5b5; font-size: .82rem; line-height: 1.7; }
.footer-logo { color: #fff; }
.footer-logo .brand-copy small { color: #aaa5b5; }
.footer-column { display: flex; flex-direction: column; gap: 9px; }
.footer-column h3 { color: #fff; margin-bottom: 7px; font-size: .9rem; }
.footer-column a { color: #aaa5b5; font-size: .78rem; }
.footer-column a:hover { color: #fff; text-decoration: none; }
.footer-bottom { min-height: 66px; padding: 18px max(18px, calc((100% - 1120px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.08); color: #898492; font-size: .72rem; }
.footer-love span { color: #ec4899; }

/* General forms/cards modernized */
.container { max-width: 520px; }
.container-wide { max-width: 1120px; }
.card { border: 1px solid #ebe6f2; border-left: 0; border-radius: 24px; box-shadow: 0 13px 36px rgba(48,35,74,.07); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="number"], input[type="file"], select, textarea { border-radius: 13px; border-color: #e2ddea; background: #fcfbff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #a887dc; box-shadow: 0 0 0 4px rgba(124,58,237,.1); }

/* Responsive */
@media (max-width: 1020px) {
    .home-hero-inner { grid-template-columns: 1fr .8fr; gap: 20px; }
    .hero-profile-stack { transform: scale(.85); }
    .home-profile-grid { grid-template-columns: repeat(2, 1fr); }
    .modern-filter-form { grid-template-columns: repeat(3, 1fr); }
    .filter-actions { grid-column: span 3; }
    .dashboard-layout { grid-template-columns: minmax(0, 1fr) 295px; }
    .profile-overview-row { grid-template-columns: auto 1fr; }
    .profile-overview-actions { grid-column: 1 / -1; }
    .profile-overview-actions .button { flex: 1; }
}

@media (max-width: 820px) {
    .home-hero-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 58px; }
    .home-hero-copy { text-align: center; }
    .home-hero-copy > p { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-trust-row { justify-content: center; }
    .hero-visual { min-height: 390px; }
    .home-stats { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-card { min-height: 210px; }
    .opportunity-section { grid-template-columns: 1fr; }
    .dashboard-welcome { align-items: flex-start; flex-direction: column; }
    .dashboard-user-chip { width: 100%; }
    .dashboard-stats { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-side-column { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .safety-tip-card { grid-column: 1 / -1; }
    .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .header-inner { width: min(100% - 24px, 1180px); min-height: 67px; }
    .brand-mark-wrap { width: 39px; height: 39px; border-radius: 13px; }
    .brand-mark { width: 26px; height: 26px; }
    .menu-toggle { display: block; }
    .main-nav {
        top: 67px;
        padding: 20px 16px;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(18px);
        gap: 7px;
    }
    .main-nav > a:not(.button) { padding: 13px 14px; font-size: .98rem; }
    .main-nav .button.nav-cta { width: 100%; margin-top: 5px; }
    .home-hero-inner, .how-section, .profiles-section, .opportunity-section, .home-cta, .dashboard-page { width: min(100% - 24px, 1180px); }
    .home-hero-inner { padding: 45px 0 70px; }
    .home-hero h1 { font-size: 2.65rem; }
    .home-hero-copy > p { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .hero-trust-row { gap: 9px 15px; }
    .hero-visual { min-height: 320px; margin-top: -10px; }
    .hero-profile-stack { width: 400px; transform: scale(.7); }
    .active-community-card { right: -4px; top: 7px; transform: scale(.9) rotate(3deg); }
    .home-stats { width: min(100% - 24px, 1080px); grid-template-columns: 1fr 1fr; margin-bottom: 60px; }
    .home-stats > div { min-height: 92px; padding: 12px 9px; justify-content: flex-start; }
    .stat-icon { width: 37px; height: 37px; border-radius: 12px; }
    .home-stats small { display: none; }
    .section-heading h2 { font-size: 2rem; }
    .how-section, .opportunity-section, .profiles-section { margin-bottom: 60px; }
    .step-card { padding: 25px 22px; }
    .opportunity-card { grid-template-columns: auto 1fr; padding: 23px 20px; }
    .opportunity-card .opportunity-cta { grid-column: 2; justify-self: start; }
    .profiles-header { align-items: flex-start; flex-direction: column; }
    .filter-jump { width: 100%; justify-content: center; }
    .modern-filter-panel summary { padding: 16px; }
    .filter-panel-body { padding-left: 16px; padding-right: 16px; }
    .modern-filter-form { grid-template-columns: 1fr 1fr; }
    .modern-filter-form .filter-wide { grid-column: span 2; }
    .filter-actions { grid-column: span 2; }
    .home-profile-grid { grid-template-columns: 1fr; }
    .home-cta { padding: 35px 25px; flex-direction: column; align-items: flex-start; }
    .home-cta .button { width: 100%; }
    .dashboard-page { padding-top: 18px; }
    .dashboard-welcome { padding: 30px 24px 55px; border-radius: 25px; }
    .dashboard-welcome h1 { font-size: 2.15rem; }
    .dashboard-stats { margin-top: -38px; }
    .dashboard-panel { padding: 20px 16px; }
    .profile-empty-card { align-items: flex-start; flex-direction: column; }
    .profile-empty-art { width: 86px; height: 86px; border-radius: 26px; }
    .profile-overview-row { grid-template-columns: auto 1fr; padding: 17px; }
    .profile-overview-actions { flex-direction: column; }
    .profile-management-actions { grid-template-columns: 1fr; }
    .quick-link-grid { grid-template-columns: 1fr; }
    .dashboard-side-column { display: flex; }
    .credits-wallet-card { min-height: 245px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 410px) {
    .home-hero h1 { font-size: 2.28rem; }
    .hero-profile-stack { transform: scale(.62); }
    .home-stats { grid-template-columns: 1fr; }
    .home-stats > div { min-height: 74px; }
    .modern-filter-form { grid-template-columns: 1fr; }
    .modern-filter-form .filter-wide, .filter-actions { grid-column: span 1; }
    .filter-actions { flex-direction: column; }
    .filter-actions .button { width: 100%; }
    .profile-overview-row { grid-template-columns: 1fr; text-align: center; }
    .profile-overview-avatar { margin: 0 auto; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Mobile overflow fix
   Voorkomt dat flex- en gridinhoud de viewport breder maakt.
   ============================================================ */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

main,
.home-page,
.home-hero,
.home-hero-inner,
.home-hero-copy,
.hero-actions,
.hero-trust-row,
.hero-visual,
.dashboard-page,
.dashboard-layout,
.dashboard-main-column,
.dashboard-side-column {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 820px) {
    .home-hero-inner {
        width: min(100% - 28px, 1180px);
        overflow: hidden;
    }

    .home-hero-copy {
        width: 100%;
    }

    .eyebrow {
        max-width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        white-space: normal;
        line-height: 1.35;
        text-align: center;
    }

    .home-hero h1,
    .home-hero-copy > p {
        width: 100%;
        max-width: 100%;
    }

    .home-hero h1 {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .button {
        max-width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .hero-trust-row span {
        display: inline-flex;
        align-items: center;
        min-width: 0;
    }

    .hero-visual {
        width: 100%;
        overflow: hidden;
    }

    .hero-profile-stack {
        width: min(340px, 100%);
        max-width: 100%;
        transform-origin: center center;
    }

    .active-community-card {
        right: 10px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 640px) {
    .home-hero-inner {
        width: calc(100% - 28px);
        padding: 38px 0 48px;
    }

    .eyebrow {
        padding: 7px 10px;
        font-size: .68rem;
        letter-spacing: .025em;
    }

    .home-hero h1 {
        font-size: clamp(2.05rem, 10.5vw, 2.55rem);
        line-height: 1.06;
        letter-spacing: -.045em;
    }

    .home-hero-copy > p {
        margin-bottom: 24px;
        font-size: .96rem;
        line-height: 1.62;
    }

    .hero-actions {
        gap: 10px;
        margin-bottom: 23px;
    }

    .hero-actions .button {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-trust-row {
        gap: 9px 12px;
        font-size: .76rem;
    }

    .hero-visual {
        min-height: 285px;
        margin-top: 2px;
    }

    .hero-profile-stack {
        width: min(330px, 100%);
        height: 300px;
        transform: scale(.76);
    }

    .active-community-card {
        right: 8px;
        top: 9px;
        transform: scale(.84) rotate(2deg);
        transform-origin: top right;
    }

    .dashboard-welcome,
    .dashboard-panel,
    .credits-wallet-card,
    .account-menu-card,
    .safety-tip-card {
        max-width: 100%;
    }

    .dashboard-user-chip {
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 410px) {
    .home-hero-inner {
        width: calc(100% - 24px);
    }

    .home-hero h1 {
        font-size: clamp(1.95rem, 10.2vw, 2.25rem);
    }

    .hero-trust-row {
        justify-content: center;
    }

    .hero-visual {
        min-height: 260px;
    }

    .hero-profile-stack {
        width: min(310px, 100%);
        transform: scale(.70);
    }

    .active-community-card {
        right: 4px;
        transform: scale(.78) rotate(2deg);
    }
}


/* Premium avatar-stijl + typeaccenten */
.profile-name-row, .profile-title-row { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.profile-title-row h1, .profile-name-row h3, .profile-name-row p { margin: 0; }
.profile-type-badge, .dashboard-type-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1;
    border: 1px solid transparent;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .08);
    backdrop-filter: blur(8px);
}
.dashboard-type-label { margin-top: .26rem; width: fit-content; font-style: normal; }
.profile-avatar,
.dashboard-avatar,
.profile-overview-avatar {
    position: relative;
    overflow: hidden;
}
.profile-avatar::before,
.dashboard-avatar::before,
.profile-overview-avatar::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.02));
    pointer-events: none;
}
.profile-avatar::after,
.dashboard-avatar::after,
.profile-overview-avatar::after {
    content: '';
    position: absolute;
    top: 9%;
    left: 11%;
    width: 58%;
    height: 34%;
    border-radius: 999px;
    background: rgba(255,255,255,.26);
    filter: blur(8px);
    pointer-events: none;
}
.profile-avatar { box-shadow: inset 0 -12px 20px rgba(0,0,0,.12), 0 12px 28px rgba(15, 23, 42, .14); }
.dashboard-avatar { box-shadow: inset 0 -10px 16px rgba(0,0,0,.08), 0 10px 24px rgba(15, 23, 42, .12); }
.profile-overview-avatar { box-shadow: inset 0 -12px 22px rgba(0,0,0,.12), 0 14px 28px rgba(15, 23, 42, .14); }
.avatar-svg { filter: drop-shadow(0 1px 1px rgba(255,255,255,.08)); }

.avatar-type-man { background: linear-gradient(145deg, #72a6ff, #2859c9) !important; color: #fff !important; }
.avatar-type-vrouw { background: linear-gradient(145deg, #ff97c7, #d53e83) !important; color: #fff !important; }
.avatar-type-koppel { background: linear-gradient(145deg, #c397ff, #7c3aed) !important; color: #fff !important; }
.avatar-type-gay { background: linear-gradient(145deg, #65d6c7, #5b6cff) !important; color: #fff !important; }
.avatar-type-lesbienne { background: linear-gradient(145deg, #ffb26f, #ef476f) !important; color: #fff !important; }
.avatar-type-anders { background: linear-gradient(145deg, #9ca3af, #4b5563) !important; color: #fff !important; }

.type-man { background: rgba(59, 130, 246, .10); color: #2156be; border-color: rgba(59, 130, 246, .18); }
.type-vrouw { background: rgba(236, 72, 153, .10); color: #bf2f73; border-color: rgba(236, 72, 153, .18); }
.type-koppel { background: rgba(124, 58, 237, .11); color: #6d28d9; border-color: rgba(124, 58, 237, .18); }
.type-gay { background: rgba(79, 70, 229, .10); color: #4255d5; border-color: rgba(79, 70, 229, .18); }
.type-lesbienne { background: rgba(244, 114, 182, .11); color: #d54472; border-color: rgba(244, 114, 182, .18); }
.type-anders { background: rgba(107, 114, 128, .10); color: #4b5563; border-color: rgba(107, 114, 128, .18); }

@media (max-width: 640px) {
    .profile-type-badge, .dashboard-type-label { font-size: .68rem; padding: .3rem .62rem; }
}


/* Admin contentbeheer */
.cms-admin-page { padding-bottom: 70px; }
.cms-admin-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:28px; }
.cms-admin-heading h1 { margin-bottom:8px; }
.cms-admin-heading p { max-width:760px; margin:0; }
.cms-admin-grid { display:grid; grid-template-columns:260px minmax(0,1fr); gap:24px; align-items:start; }
.cms-admin-menu { position:sticky; top:95px; padding:18px; }
.cms-admin-menu h3 { margin:10px 10px 8px; font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; color:var(--color-muted); }
.cms-admin-menu a { display:block; padding:11px 12px; border-radius:11px; color:var(--color-text); font-weight:700; font-size:.9rem; }
.cms-admin-menu a:hover, .cms-admin-menu a.is-active { background:rgba(124,58,237,.1); color:#6d28d9; text-decoration:none; }
.cms-editor-card { min-width:0; }
.cms-editor-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding-bottom:18px; margin-bottom:22px; border-bottom:1px solid var(--color-border); }
.cms-editor-header h2 { margin-bottom:5px; }
.cms-editor-header p { margin:0; }
.cms-toolbar { display:flex; flex-wrap:wrap; gap:6px; padding:8px; border:1px solid var(--color-border); border-bottom:0; border-radius:12px 12px 0 0; background:#f8f7fb; }
.cms-toolbar button { border:1px solid #ded9e8; background:#fff; border-radius:8px; min-height:34px; padding:6px 10px; cursor:pointer; font:inherit; font-size:.8rem; }
.cms-toolbar button:hover { border-color:#8b5cf6; color:#6d28d9; }
.cms-rich-editor { min-height:360px; padding:20px; border:1px solid var(--color-border); border-radius:0 0 12px 12px; background:#fff; line-height:1.7; outline:none; overflow:auto; }
.cms-rich-editor:focus { border-color:#8b5cf6; box-shadow:0 0 0 3px rgba(124,58,237,.1); }
.cms-rich-editor h2,.cms-rich-editor h3,.cms-rich-editor h4 { margin-top:1.1em; }
.cms-public-content { line-height:1.75; }
.cms-public-content h2,.cms-public-content h3,.cms-public-content h4 { margin-top:1.35em; }
.cms-public-content ul,.cms-public-content ol { padding-left:1.35rem; margin-bottom:1rem; }
.cms-public-content blockquote { margin:1rem 0; padding:1rem 1.2rem; border-left:4px solid #8b5cf6; background:#f7f2ff; border-radius:0 10px 10px 0; }
.form-grid.three-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
@media(max-width:900px){.cms-admin-grid{grid-template-columns:1fr}.cms-admin-menu{position:static}.cms-admin-heading{flex-direction:column}.form-grid.three-columns{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.form-grid.three-columns,.form-grid.two-columns{grid-template-columns:1fr}.cms-editor-header{flex-direction:column}.cms-rich-editor{min-height:300px}}


/* Registratie waarschuwing */
.registration-email-warning {
    margin: .55rem 0 .25rem;
    padding: .7rem .85rem;
    border: 1px solid rgba(220, 38, 38, .22);
    border-radius: 12px;
    color: #b91c1c;
    background: #fff1f2;
    font-size: .84rem;
    line-height: 1.45;
}

/* Supporttickets */
.support-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1.25rem; margin-bottom:var(--space-4); }
.support-heading h1 { margin-bottom:.35rem; }
.support-heading p { margin:0; color:var(--color-text-muted); }
.support-layout { display:grid; grid-template-columns:minmax(280px, .8fr) minmax(0, 1.6fr); gap:24px; align-items:start; }
.support-ticket-list { display:flex; flex-direction:column; gap:10px; }
.support-ticket-item { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 15px; border:1px solid rgba(124,58,237,.10); border-radius:16px; background:#fff; color:inherit; transition:.2s ease; }
.support-ticket-item:hover, .support-ticket-item.is-active { text-decoration:none; transform:translateY(-2px); border-color:rgba(124,58,237,.32); box-shadow:0 10px 24px rgba(56,32,108,.10); }
.support-ticket-item span { min-width:0; }
.support-ticket-item strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.support-ticket-item small { display:block; margin-top:4px; color:var(--color-text-muted); font-size:.72rem; line-height:1.4; }
.ticket-status { flex:0 0 auto; padding:.33rem .62rem; border-radius:999px; font-size:.68rem; font-weight:800; font-style:normal; }
.ticket-status-open { background:#fff0dc; color:#a85b00; }
.ticket-status-answered { background:#e7f8f2; color:#087957; }
.ticket-status-closed { background:#efedf2; color:#625b69; }
.ticket-thread { display:flex; flex-direction:column; gap:14px; margin:18px 0 24px; }
.ticket-message { max-width:86%; padding:15px 17px; border-radius:18px; box-shadow:0 8px 20px rgba(15,23,42,.07); }
.ticket-message.from-user { align-self:flex-end; background:linear-gradient(145deg,#8b5cf6,#6d28d9); color:#fff; border-bottom-right-radius:5px; }
.ticket-message.from-admin { align-self:flex-start; background:#fff; border:1px solid rgba(124,58,237,.12); border-bottom-left-radius:5px; }
.ticket-message p { margin:.45rem 0 0; color:inherit; }
.ticket-message-meta { display:flex; justify-content:space-between; gap:14px; font-size:.72rem; opacity:.82; }
.ticket-reply-form { margin-top:var(--space-3); }
.filter-bar .button { width:auto; display:inline-block; margin:.2rem; }
@media (max-width: 820px) {
    .support-layout { grid-template-columns:1fr; }
    .support-heading { align-items:flex-start; flex-direction:column; }
    .ticket-message { max-width:94%; }
}


/* Admin: duidelijke destructieve actie voor permanent verwijderen */
.admin-danger-link {
    color: #b42318 !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.admin-danger-link:hover,
.admin-danger-link:focus-visible {
    color: #7a271a !important;
    background: #fff1f0;
    border-radius: 6px;
}

/* V17.4 profieltekst-validatie */
.profile-char-counter { margin-top: .35rem; font-weight: 700; }
.profile-char-counter.is-incomplete { color: #c62828; }
.profile-char-counter.is-complete { color: #12805c; }
textarea:required:invalid:not(:placeholder-shown) { border-color: rgba(198, 40, 40, .45); }


/* V17.4.1 — mobiele login en adminnavigatie */
.mobile-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mobile-login-button, .mobile-admin-settings { display: none; }
.admin-mobile-link { display: none; }
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: var(--space-4);
}
.admin-toolbar .button { width: auto; margin: 0; }

@media (max-width: 640px) {
    .header-inner { gap: 10px; }
    .brand { min-width: 0; }
    .brand-copy strong { white-space: nowrap; font-size: .96rem; }
    .brand-copy small { display: none; }
    .mobile-header-actions { display: flex; flex: 0 0 auto; }
    .mobile-login-button, .mobile-admin-settings {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: .82rem;
        font-weight: 800;
        color: #6d28d9;
        background: #f2eaff;
        border: 1px solid rgba(124,58,237,.12);
        text-decoration: none;
    }
    .mobile-login-button:hover, .mobile-admin-settings:hover { text-decoration: none; background: #eadcff; }
    .menu-toggle { flex: 0 0 44px; }
    .main-nav {
        z-index: 1000;
        border-top: 1px solid rgba(124,58,237,.1);
        box-shadow: 0 18px 40px rgba(35,25,65,.12);
    }
    .main-nav .nav-login { display: flex; }
    .admin-mobile-link { display: flex !important; }
    .admin-settings-link { font-weight: 800 !important; }
    .admin-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .admin-toolbar .button { width: 100%; display: flex; justify-content: center; margin: 0; }
}

@media (max-width: 380px) {
    .mobile-login-button, .mobile-admin-settings { padding: 0 9px; font-size: .76rem; }
    .brand-copy strong { font-size: .88rem; }
}
