/* Trust Connect Mailchecker-thema - verbeterde mobiele ervaring */
:root {
    color-scheme: light dark;
    --primary: #4f1c70;
    --primary-light: #6b2d8f;
    --accent: #f28284;
    --accent-light: #f89ea0;
    --bg-light: #fdf8ff;
    --bg-dark: #231739;
    --text-light: #4f1c70;
    --text-dark: #f8f2ff;
    --success: #59d38a;
    --success-dark: #3da26a;
    --warning: #f2c873;
    --warning-dark: #c88a1c;
    --error: #f26d70;
    --error-dark: #c7352f;
    --info: #9da2f5;
    --info-dark: #6156c4;
    --transition-fast: 0.15s ease;
    --transition-medium: 0.25s ease;
    --transition-slow: 0.4s ease;
    --shadow-sm: 0 4px 12px rgba(79, 28, 112, 0.08);
    --shadow-md: 0 12px 32px rgba(79, 28, 112, 0.12);
    --shadow-lg: 0 24px 60px rgba(79, 28, 112, 0.16);
    --shadow-xl: 0 32px 80px rgba(79, 28, 112, 0.2);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 32px;
    --radius-full: 999px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(242, 130, 132, 0.16), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(79, 28, 112, 0.12), transparent 45%),
        linear-gradient(135deg, #fdf8ff 0%, #f6f3ff 50%, #f8fbff 100%);
    color: var(--text-light);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(242, 130, 132, 0.18), transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(79, 28, 112, 0.18), transparent 60%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    pointer-events: none;
    z-index: -3;
}

body.modal-open {
    overflow: hidden;
}

/* Kop */
header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(236, 224, 236, 0.8);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition-medium);
}

.header-inner {
    width: min(1120px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 42px;
    max-width: 200px;
    object-fit: contain;
    transition: transform var(--transition-medium);
}

.logo-dark {
    display: none;
}

.dark-mode .logo-light {
    display: none;
}

.dark-mode .logo-dark {
    display: block;
}

.logo-container img:hover {
    transform: scale(1.02);
}

.theme-toggle {
    flex-shrink: 0;
}

#toggleTheme {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

#toggleTheme:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#toggleTheme:active {
    transform: translateY(0);
}

/* Hoofdinhoud */
main {
    flex: 1;
    width: min(1120px, calc(100% - 2rem));
    margin: 1.5rem auto 2.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(248, 239, 255, 0.7));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(239, 228, 238, 0.75);
    box-shadow: var(--shadow-xl);
    padding: clamp(1.5rem, 4vw, 3rem);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
}

/* Hero-sectie */
.hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__copy {
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    margin: 0 0 0.75rem;
    text-align: left;
    color: #301045;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.dark-mode h1 {
    color: #fef8ff;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.subtext {
    text-align: left;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: rgba(79, 28, 112, 0.72);
    margin: 0 0 1.25rem;
    max-width: min(65ch, 100%);
    line-height: 1.6;
}

.hero__signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.signal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(242, 130, 132, 0.12), rgba(242, 130, 132, 0.06));
    color: var(--text-light);
    border: 1px solid rgba(242, 130, 132, 0.35);
    font-weight: 600;
    font-size: 0.82rem;
    transition: all var(--transition-fast);
}

.signal-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(242, 130, 132, 0.5);
}

/* Formuliersectie */
.form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-section form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 700px;
}

.input-with-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 235, 255, 0.75));
    border: 2px solid rgba(217, 198, 218, 0.6);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex: 1;
    min-width: 0;
    transition: all var(--transition-medium);
}

.input-icon {
    width: 36px;
    height: auto;
    flex-shrink: 0;
}

input[type="text"],
input[type="email"] {
    border-radius: var(--radius-full);
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
    min-width: 0;
    transition: all var(--transition-medium);
    background: transparent;
    color: var(--text-light);
    font-family: inherit;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
    color: rgba(79, 28, 112, 0.45);
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
}

.input-with-icon:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(242, 130, 132, 0.15), var(--shadow-lg);
}

.details {
    font-size: 0.85rem;
    color: rgba(79, 28, 112, 0.6);
}

.field-note {
    font-size: 0.85rem;
    color: rgba(79, 28, 112, 0.65);
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.field-note strong {
    color: var(--text-light);
}

.share-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(79, 28, 112, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 14px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    width: 100%;
    margin: 0.5rem 0 1.5rem;
}

.share-note__icon {
    font-size: 1rem;
    opacity: 0.6;
}

.share-note__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.share-note__label {
    font-weight: 600;
    color: rgba(79, 28, 112, 0.8);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.share-note__url {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.82rem;
    color: var(--primary);
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    background: rgba(79, 28, 112, 0.06);
    border: 1px solid rgba(79, 28, 112, 0.08);
    word-break: break-all;
}

.share-note__url:hover {
    background: rgba(79, 28, 112, 0.12);
}

.share-note__badge {
    font-size: 0.75rem;
    color: rgba(79, 28, 112, 0.65);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-full);
    background: rgba(79, 28, 112, 0.08);
    border: 1px solid rgba(79, 28, 112, 0.1);
    width: fit-content;
}

.share-note__button {
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    border-color: rgba(79, 28, 112, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 235, 255, 0.85));
    flex-shrink: 0;
}

.field-note a {
    color: var(--text-light);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(79, 28, 112, 0.3);
    transition: all var(--transition-fast);
}

.field-note a:hover,
.field-note a:focus {
    color: #3a1354;
    text-decoration-color: rgba(79, 28, 112, 0.55);
}

/* Geavanceerde opties */
.advanced-toggle-btn {
    flex-basis: 100%;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.3rem 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast), color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: center;
}

.advanced-toggle-btn:hover {
    opacity: 1;
    color: var(--accent);
}

.advanced-toggle-chevron {
    display: inline-block;
    transition: transform var(--transition-medium);
    font-size: 0.7rem;
}

.advanced-toggle-btn.is-open .advanced-toggle-chevron {
    transform: rotate(180deg);
}

.advanced-panel {
    flex-basis: 100%;
    width: 100%;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows var(--transition-slow), opacity var(--transition-medium);
    overflow: hidden;
}

.advanced-panel.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.advanced-panel__inner {
    min-height: 0;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(247, 235, 255, 0.5));
    border: 1px solid rgba(217, 198, 218, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transform: translateY(-8px);
    transition: transform var(--transition-slow);
}

.advanced-panel.is-open .advanced-panel__inner {
    transform: translateY(0);
}

.advanced-panel__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}

.advanced-panel__hint {
    font-size: 0.75rem;
    color: rgba(79, 28, 112, 0.6);
    margin: 0;
    line-height: 1.4;
}

.advanced-panel__hint code {
    background: rgba(79, 28, 112, 0.07);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.72rem;
}

.advanced-panel__inner input[type="text"] {
    border: 2px solid rgba(217, 198, 218, 0.6);
    border-radius: var(--radius-full);
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    text-align: left;
}

.advanced-panel__inner input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(242, 130, 132, 0.15);
}

.dark-mode .field-note a {
    color: var(--accent);
    text-decoration-color: rgba(242, 130, 132, 0.4);
}

.dark-mode .field-note a:hover,
.dark-mode .field-note a:focus {
    color: var(--accent-light);
    text-decoration-color: rgba(242, 130, 132, 0.7);
}

.dark-mode .share-note {
    background: rgba(37, 33, 54, 0.78);
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.dark-mode .share-note__label {
    color: rgba(244, 241, 255, 0.8);
}

.dark-mode .share-note__url {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #d8d3ff;
}

.dark-mode .share-note__url:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .share-note__badge {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.dark-mode .share-note__button {
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(56, 50, 78, 0.95), rgba(70, 60, 95, 0.9));
    color: #f8f6ff;
}

/* Custom selectors badge */
.custom-selectors-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(79, 28, 112, 0.08), rgba(242, 130, 132, 0.06));
    border: 1px solid rgba(79, 28, 112, 0.18);
    margin: 0.5rem 0 0.75rem;
    animation: fadeInUp 0.5s ease-out;
}

.custom-selectors-badge__icon {
    font-size: 0.9rem;
    opacity: 0.6;
}

.custom-selectors-badge__text {
    font-size: 0.78rem;
    color: rgba(79, 28, 112, 0.75);
    line-height: 1.4;
}

.custom-selectors-badge__text strong {
    color: var(--primary);
    font-weight: 700;
}

.dark-mode .custom-selectors-badge {
    background: linear-gradient(135deg, rgba(140, 100, 200, 0.12), rgba(242, 130, 132, 0.08));
    border-color: rgba(140, 100, 200, 0.3);
}

.dark-mode .custom-selectors-badge__text {
    color: rgba(254, 248, 255, 0.75);
}

.dark-mode .custom-selectors-badge__text strong {
    color: var(--accent-light);
}

/* Gedeeld rapport banner */
.shared-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.shared-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(242, 130, 132, 0.15), rgba(79, 28, 112, 0.1));
    border: 1px solid rgba(242, 130, 132, 0.35);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
}

.shared-banner__badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shared-banner__badge-icon svg {
    width: 16px;
    height: 16px;
}

.shared-banner__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin: 0;
    color: #301045;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.shared-banner__title strong {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shared-banner__subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    color: rgba(79, 28, 112, 0.65);
    margin: 0;
    max-width: 55ch;
    line-height: 1.6;
}

.shared-banner__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.shared-banner__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(79, 28, 112, 0.06);
    border: 1px solid rgba(79, 28, 112, 0.1);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(79, 28, 112, 0.7);
}

.shared-banner__meta-icon {
    font-size: 0.9rem;
}

.shared-banner__cta {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
}

/* Deelacties (op gedeelde pagina) */
.share-actions {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 1.5rem;
}

.share-actions__copy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(79, 28, 112, 0.14);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition-medium);
}

.share-actions__copy:hover {
    background: rgba(242, 130, 132, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-actions__copy-icon {
    font-size: 1rem;
}

/* Knoppen */
.btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(217, 198, 218, 0.7);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: rgba(242, 130, 132, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Samenvatting-glas */
.summary-glass {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(249, 231, 255, 0.45));
    border: 1px solid rgba(238, 224, 244, 0.6);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    animation: fadeInUp 0.5s ease-out;
    margin-bottom: 0.5rem;
}

.summary-glass__right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-width: 0;
}

.score-orb {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent), var(--primary));
    box-shadow:
        inset 0 12px 24px rgba(255, 255, 255, 0.3),
        0 20px 40px rgba(79, 28, 112, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow:
            inset 0 12px 24px rgba(255, 255, 255, 0.3),
            0 20px 40px rgba(79, 28, 112, 0.25);
    }
    50% {
        box-shadow:
            inset 0 12px 24px rgba(255, 255, 255, 0.35),
            0 25px 50px rgba(79, 28, 112, 0.3);
    }
}

.score-orb::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.6), transparent 60%);
    mix-blend-mode: screen;
}

.score-orb__value {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.score-orb__unit {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.summary-glass__meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.summary-glass__label {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(79, 28, 112, 0.88);
}

.summary-glass__domain {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
    white-space: nowrap;
}

.summary-glass__timestamp {
    font-size: 0.85rem;
    color: rgba(79, 28, 112, 0.65);
}

.summary-glass__note {
    font-size: 0.85rem;
    color: rgba(79, 28, 112, 0.6);
    margin-top: 0.3rem;
}

.summary-glass__issues {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.issue-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-full);
    background: rgba(79, 28, 112, 0.06);
    border: 1px solid rgba(79, 28, 112, 0.1);
    transition: all var(--transition-fast);
}

.issue-chip:hover {
    background: rgba(79, 28, 112, 0.1);
    transform: translateY(-1px);
}

.issue-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    box-shadow: 0 0 0 2px rgba(79, 28, 112, 0.1), var(--shadow-sm);
    flex-shrink: 0;
}

.issue-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(79, 28, 112, 0.7);
    line-height: 1.1;
}

.issue-dot.warn {
    background: linear-gradient(135deg, var(--warning), var(--warning-dark));
}

.issue-dot.fail {
    background: linear-gradient(135deg, var(--error), var(--error-dark));
}

.issue-dot.pass {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
}

.issue-dot.info {
    background: linear-gradient(135deg, var(--info), var(--info-dark));
}

/* Resultatensectie */
.results-section {
    margin-top: 1.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
}

.result-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(245, 233, 255, 0.55));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(236, 222, 244, 0.7);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    backdrop-filter: blur(38px);
    -webkit-backdrop-filter: blur(38px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    word-break: break-word;
    transition: all var(--transition-medium);
    animation: fadeInUp 0.5s ease-out backwards;
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.15s; }
.result-card:nth-child(3) { animation-delay: 0.2s; }
.result-card:nth-child(4) { animation-delay: 0.25s; }
.result-card:nth-child(5) { animation-delay: 0.3s; }
.result-card:nth-child(6) { animation-delay: 0.35s; }

.result-card:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 222, 244, 0.9);
    box-shadow: var(--shadow-xl);
}

.error-card {
    max-width: 540px;
    margin: 0 auto 2rem;
    border-color: rgba(242, 109, 112, 0.4);
}

.result-card__header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.result-card__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}

.result-card__title h2 {
    text-align: center;
}

.result-card__icon {
    font-size: 1.3rem;
}

.result-card__header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.status-chip {
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-chip.pass {
    background: rgba(82, 199, 140, 0.18);
    border: 1px solid rgba(82, 199, 140, 0.5);
    color: #21744f;
}

.status-chip.warn {
    background: rgba(242, 206, 132, 0.22);
    border: 1px solid rgba(242, 206, 132, 0.5);
    color: #9c6a18;
}

.status-chip.fail {
    background: rgba(242, 93, 96, 0.18);
    border: 1px solid rgba(242, 93, 96, 0.5);
    color: #b3252c;
}

.status-chip.info {
    background: rgba(115, 117, 174, 0.18);
    border: 1px solid rgba(115, 117, 174, 0.5);
    color: var(--text-light);
}

.result-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(240, 230, 239, 0.55);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    transition: all var(--transition-fast);
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(240, 230, 239, 0.75);
}

.result-item__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.result-item__head h3 {
    margin: 0;
    font-size: 0.95rem;
}

.result-item__summary {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    color: rgba(79, 28, 112, 0.75);
    line-height: 1.5;
}

.result-item__detail {
    margin: 0.6rem 0 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(229, 215, 232, 0.6);
    padding: 0.75rem;
    font-family: 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: rgba(79, 28, 112, 0.78);
    overflow-x: auto;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(79, 28, 112, 0.15);
    flex-shrink: 0;
}

.status-dot.pass {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
}

.status-dot.warn {
    background: linear-gradient(135deg, var(--warning), var(--warning-dark));
}

.status-dot.fail {
    background: linear-gradient(135deg, var(--error), var(--error-dark));
}

.status-dot.info {
    background: linear-gradient(135deg, var(--info), var(--info-dark));
}

/* Help-knop */
.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(79, 28, 112, 0.3);
    background: rgba(79, 28, 112, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.help-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-color: var(--accent);
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(242, 130, 132, 0.3);
}

.dark-mode .help-btn {
    border-color: rgba(200, 180, 230, 0.4);
    background: rgba(200, 180, 230, 0.15);
    color: #d8c8f0;
}

.dark-mode .help-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-color: var(--accent);
    color: #fff;
}

/* Help-modal */
.help-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
    padding: 1rem;
}

.help-modal.active {
    pointer-events: all;
}

.help-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 20, 48, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background var(--transition-slow), backdrop-filter var(--transition-slow), -webkit-backdrop-filter var(--transition-slow);
}

.help-modal.active .help-modal__backdrop {
    background: rgba(30, 20, 48, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.help-modal__glass {
    position: relative;
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 239, 255, 0.92));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(238, 224, 244, 0.7);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: transform var(--transition-slow), opacity var(--transition-medium);
}

.help-modal.active .help-modal__glass {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.help-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(238, 224, 244, 0.5);
}

.help-modal__title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.help-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(79, 28, 112, 0.08);
    color: var(--primary);
    font-size: 1.3rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    line-height: 1;
}

.help-modal__close:hover {
    background: rgba(242, 130, 132, 0.2);
    color: var(--accent);
    transform: rotate(90deg) scale(1.1);
}

.help-modal__body {
    padding: 1.25rem 1.5rem 1.5rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(79, 28, 112, 0.82);
    overflow-y: auto;
}

.help-modal__body h4 {
    margin: 0 0 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.01em;
}

.help-modal__body h4:not(:first-child) {
    margin-top: 1.1rem;
}

.help-modal__body p {
    margin: 0 0 0.5rem;
}

.help-modal__body ul {
    margin: 0.25rem 0 0.5rem;
    padding-left: 1.25rem;
}

.help-modal__body li {
    margin-bottom: 0.35rem;
}

.help-modal__body strong {
    color: var(--primary);
    font-weight: 700;
}

.dark-mode .help-modal.active .help-modal__backdrop {
    background: rgba(10, 6, 18, 0.5);
}

.dark-mode .help-modal__glass {
    background: linear-gradient(145deg, rgba(52, 38, 81, 0.97), rgba(35, 25, 55, 0.95));
    border-color: rgba(90, 70, 130, 0.6);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.dark-mode .help-modal__header {
    border-bottom-color: rgba(90, 70, 130, 0.4);
}

.dark-mode .help-modal__title {
    color: #f0e4ff;
}

.dark-mode .help-modal__close {
    background: rgba(200, 180, 230, 0.15);
    color: #d8c8f0;
}

.dark-mode .help-modal__close:hover {
    background: rgba(242, 130, 132, 0.25);
    color: var(--accent-light);
}

.dark-mode .help-modal__body {
    color: rgba(254, 248, 255, 0.88);
}

.dark-mode .help-modal__body h4 {
    color: var(--accent-light);
}

.dark-mode .help-modal__body strong {
    color: var(--accent-light);
}

/* QR-modal */
.qr-modal__glass {
    max-width: 340px;
}

.qr-modal__body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem 1.75rem;
}

.qr-modal__body svg {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(79, 28, 112, 0.08);
}

.dark-mode .qr-modal__body svg {
    filter: invert(1) hue-rotate(180deg);
    background: transparent;
    box-shadow: none;
}

/* Laadstatussen */
.loading {
    text-align: center;
    font-size: 0.95rem;
    color: rgba(79, 28, 112, 0.74);
    padding: 2rem;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 48, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
    z-index: 999;
    padding: 1rem;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-overlay__glass {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(233, 221, 240, 0.7);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 90%;
}

.loading-overlay__glass p {
    margin: 0;
    font-weight: 600;
    color: rgba(79, 28, 112, 0.8);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(79, 28, 112, 0.12);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

/* Progress bar */
.progress-bar {
    width: 280px;
    max-width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(79, 28, 112, 0.1);
    overflow: hidden;
    border: 1px solid rgba(79, 28, 112, 0.08);
}

.progress-bar__fill {
    height: 100%;
    width: 0%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    transition: width 0.4s ease;
}

.progress-pct {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(79, 28, 112, 0.75);
}

.progress-phase {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(79, 28, 112, 0.55);
    min-height: 1.1em;
}

.dark-mode .progress-bar {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.06);
}

.dark-mode .progress-bar__fill {
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
}

.dark-mode .progress-pct {
    color: rgba(254, 248, 255, 0.85);
}

.dark-mode .progress-phase {
    color: rgba(254, 248, 255, 0.6);
}

.btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Voettekst */
footer {
    background: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(236, 224, 236, 0.8);
    text-align: center;
    padding: 1.25rem 1rem;
    font-size: 0.85rem;
    color: rgba(79, 28, 112, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.footer-version {
    font-size: 0.7rem;
    color: rgba(79, 28, 112, 0.45);
    margin-top: 0.5rem;
}

.dark-mode .footer-version {
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   RESPONSIEF ONTWERP - TABLET
   ======================================== */
@media (max-width: 1024px) {
    main {
        margin: 1.25rem auto 2rem;
    }

    .hero {
        text-align: center;
        align-items: center;
    }

    .hero__copy,
    .subtext {
        text-align: center;
        align-items: center;
    }

    h1 {
        text-align: center;
    }

    .hero__signals {
        justify-content: center;
    }

    .summary-glass {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .summary-glass__right {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .summary-glass__meta {
        align-items: center;
        text-align: center;
    }

    .summary-glass__issues {
        align-items: center;
    }
}

/* ========================================
   RESPONSIEF ONTWERP - MOBIEL GROOT
   ======================================== */
@media (max-width: 768px) {
    .shared-banner {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .shared-banner__badge {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .shared-banner__subtitle {
        display: none;
    }

    .shared-banner__meta-item {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .shared-banner__cta {
        font-size: 0.85rem;
        padding: 0.6rem 1.25rem;
    }

    header {
        padding: 0.875rem 1rem;
    }

    .header-inner {
        gap: 0.75rem;
    }

    .logo-container img {
        height: 36px;
        max-width: 160px;
    }

    #toggleTheme {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    main {
        width: calc(100% - 1rem);
        margin: 1rem auto 1.5rem;
        padding: clamp(1.25rem, 4vw, 2rem);
        border-radius: var(--radius-lg);
    }

    .hero {
        margin-bottom: 1.5rem;
    }

    .subtext {
        font-size: 0.95rem;
    }

    .form-section {
        margin-bottom: 1.5rem;
    }

    .form-section form {
        flex-direction: column;
        align-items: stretch;
    }

    .input-with-icon {
        width: 100%;
    }

    input[type="text"],
    input[type="email"] {
        text-align: center;
        font-size: 1rem;
        padding: 0.875rem 0.75rem;
    }

    .btn,
    .btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .advanced-panel__inner {
        padding: 0.85rem 1rem;
        text-align: center;
    }

    .advanced-panel__inner input[type="text"] {
        text-align: center;
        font-size: 0.92rem;
    }

    .custom-selectors-badge {
        padding: 0.45rem 0.75rem;
        gap: 0.5rem;
    }

    .custom-selectors-badge__text {
        font-size: 0.75rem;
    }

    .share-note {
        gap: 0.5rem;
    }

    .share-note__button {
        width: auto;
        padding: 0.25rem 0.65rem;
        font-size: 0.7rem;
    }

    .share-note__url {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .score-orb {
        width: 100px;
        height: 100px;
    }

    .score-orb__value {
        font-size: 2.25rem;
    }

    .summary-glass {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .summary-glass__domain {
        font-size: 1.15rem;
    }

    .issue-chip {
        padding: 0.35rem 0.6rem;
    }

    .issue-label {
        font-size: 0.7rem;
    }

    .results-grid {
        gap: 1rem;
    }

    .result-card {
        padding: 1.1rem;
    }

    .result-item {
        padding: 0.875rem;
    }

    footer {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   RESPONSIEF ONTWERP - MOBIEL KLEIN
   ======================================== */
@media (max-width: 480px) {
    .shared-banner {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .shared-banner__badge {
        padding: 0.3rem 0.75rem;
        font-size: 0.7rem;
        gap: 0.35rem;
    }

    .shared-banner__badge-icon {
        font-size: 0.85rem;
    }

    .shared-banner__title {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .shared-banner__meta {
        gap: 0.4rem;
    }

    .shared-banner__meta-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .shared-banner__meta-icon {
        font-size: 0.8rem;
    }

    .shared-banner__cta {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.55rem 1rem;
    }

    header {
        padding: 0.75rem;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo-container img {
        height: 32px;
        max-width: 140px;
    }

    #toggleTheme {
        padding: 0.45rem 0.8rem;
        font-size: 0.75rem;
    }

    main {
        width: calc(100% - 0.75rem);
        margin: 0.5rem auto 1rem;
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    h1 {
        font-size: 1.5rem;
    }

    .subtext {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .signal-chip {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }

    .input-with-icon {
        padding: 0.35rem 0.5rem;
    }

    .input-icon {
        width: 28px;
    }

    input[type="text"],
    input[type="email"] {
        padding: 0.75rem 0.5rem;
        font-size: 0.95rem;
    }

    .btn,
    .btn-secondary {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .advanced-toggle-btn {
        font-size: 0.72rem;
    }

    .advanced-panel__inner {
        padding: 0.75rem 0.85rem;
        border-radius: var(--radius-sm);
    }

    .advanced-panel__label {
        font-size: 0.78rem;
    }

    .advanced-panel__hint {
        font-size: 0.7rem;
    }

    .advanced-panel__inner input[type="text"] {
        padding: 0.55rem 0.75rem;
        font-size: 0.85rem;
    }

    .custom-selectors-badge {
        padding: 0.4rem 0.65rem;
        gap: 0.4rem;
        border-radius: var(--radius-sm);
    }

    .custom-selectors-badge__icon {
        font-size: 0.8rem;
    }

    .custom-selectors-badge__text {
        font-size: 0.7rem;
    }

    .share-note {
        padding: 0.45rem 0.65rem;
        gap: 0.45rem;
    }

    .share-note__button {
        width: auto;
        padding: 0.3rem 0.75rem;
        font-size: 0.8rem;
    }

    .share-note__url {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .field-note {
        font-size: 0.8rem;
    }

    .score-orb {
        width: 90px;
        height: 90px;
    }

    .score-orb__value {
        font-size: 2rem;
    }

    .score-orb__unit {
        font-size: 0.8rem;
    }

    .summary-glass {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .summary-glass__label {
        font-size: 0.9rem;
    }

    .summary-glass__domain {
        font-size: 1.05rem;
        white-space: normal;
        word-break: break-word;
    }

    .summary-glass__timestamp {
        font-size: 0.8rem;
    }

    .issue-chip {
        padding: 0.3rem 0.5rem;
    }

    .issue-dot {
        width: 12px;
        height: 12px;
    }

    .issue-label {
        font-size: 0.65rem;
    }

    .results-grid {
        gap: 0.75rem;
    }

    .result-card {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .result-card__header h2 {
        font-size: 0.95rem;
    }

    .result-card__icon {
        font-size: 1.15rem;
    }

    .status-chip {
        font-size: 0.68rem;
        padding: 0.3rem 0.7rem;
    }

    .result-item {
        padding: 0.75rem;
        border-radius: var(--radius-sm);
    }

    .result-item__head h3 {
        font-size: 0.9rem;
    }

    .result-item__summary {
        font-size: 0.82rem;
    }

    .result-item__detail {
        font-size: 0.7rem;
        padding: 0.6rem;
    }

    .status-dot {
        width: 8px;
        height: 8px;
    }

    .help-btn {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .help-modal__glass {
        max-width: calc(100% - 1rem);
        border-radius: var(--radius-md);
    }

    .help-modal__header {
        padding: 1rem 1.15rem;
    }

    .help-modal__title {
        font-size: 1rem;
    }

    .help-modal__body {
        padding: 1rem 1.15rem 1.25rem;
        font-size: 0.85rem;
    }

    .loading-overlay__glass {
        padding: 1.5rem;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
    }

    .progress-bar {
        width: 220px;
    }

    .progress-pct {
        font-size: 0.78rem;
    }

    .progress-phase {
        font-size: 0.72rem;
    }
}

/* ========================================
   DONKERE MODUS
   ======================================== */
.dark-mode {
    background: var(--bg-dark);
    color: var(--text-dark);
}

.dark-mode::before {
    background:
        radial-gradient(circle at 20% 20%, rgba(242, 130, 132, 0.28), transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(123, 78, 179, 0.42), transparent 65%);
}

.dark-mode::after {
    background: rgba(26, 18, 40, 0.6);
    backdrop-filter: blur(70px);
    -webkit-backdrop-filter: blur(70px);
}

.dark-mode header,
.dark-mode footer {
    background: rgba(40, 30, 61, 0.75);
    border-color: rgba(64, 50, 87, 0.75);
    color: var(--text-dark);
}

.dark-mode main {
    background: rgba(43, 32, 66, 0.8);
    border-color: rgba(70, 53, 98, 0.75);
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.4);
}

.dark-mode .hero__signals .signal-chip {
    border-color: rgba(242, 130, 132, 0.4);
    background: rgba(242, 130, 132, 0.12);
    color: #fbeafe;
}

.dark-mode .subtext,
.dark-mode .summary-glass__timestamp,
.dark-mode .result-item__summary,
.dark-mode .result-item__detail,
.dark-mode .loading-overlay__glass p,
.dark-mode .loading,
.dark-mode .details {
    color: rgba(254, 248, 255, 0.9);
}

.dark-mode .summary-glass__note {
    color: rgba(245, 234, 255, 0.72);
}

.dark-mode .field-note {
    color: rgba(240, 235, 250, 0.75);
}

.dark-mode .field-note strong {
    color: #f9f5ff;
}

.dark-mode .advanced-toggle-btn {
    color: rgba(240, 230, 255, 0.75);
}

.dark-mode .advanced-toggle-btn:hover {
    color: var(--accent-light);
}

.dark-mode .advanced-panel__inner {
    background: linear-gradient(135deg, rgba(52, 38, 81, 0.8), rgba(35, 25, 55, 0.7));
    border-color: rgba(90, 70, 130, 0.5);
}

.dark-mode .advanced-panel__label {
    color: #f0e4ff;
}

.dark-mode .advanced-panel__hint {
    color: rgba(254, 248, 255, 0.6);
}

.dark-mode .advanced-panel__hint code {
    background: rgba(255, 255, 255, 0.08);
}

.dark-mode .advanced-panel__inner input[type="text"] {
    background: rgba(39, 28, 60, 0.8);
    border-color: rgba(160, 132, 210, 0.45);
    color: rgba(255, 248, 255, 0.95);
}

.dark-mode .advanced-panel__inner input[type="text"]:focus {
    border-color: rgba(246, 180, 212, 0.7);
    box-shadow: 0 0 0 3px rgba(246, 180, 212, 0.15);
}

.dark-mode .input-with-icon {
    background: linear-gradient(135deg, rgba(122, 98, 180, 0.55), rgba(92, 70, 142, 0.4));
    border-color: rgba(160, 132, 210, 0.55);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dark-mode .input-icon {
    filter: brightness(1.15) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.dark-mode input[type="text"],
.dark-mode input[type="email"] {
    color: rgba(255, 248, 255, 0.95);
}

.dark-mode input[type="text"]::placeholder,
.dark-mode input[type="email"]::placeholder {
    color: rgba(255, 248, 255, 0.5);
}

.dark-mode .input-with-icon:focus-within {
    border-color: rgba(246, 180, 212, 0.7);
    box-shadow: 0 0 0 4px rgba(246, 180, 212, 0.2), 0 18px 36px rgba(0, 0, 0, 0.35);
}

.dark-mode .issue-dot {
    box-shadow: 0 0 0 2px rgba(15, 8, 24, 0.35), 0 8px 16px rgba(0, 0, 0, 0.4);
}

.dark-mode .issue-chip {
    background: rgba(25, 18, 39, 0.65);
    border-color: rgba(99, 77, 143, 0.45);
}

.dark-mode .issue-label {
    color: rgba(245, 236, 255, 0.8);
}

.dark-mode .summary-glass {
    background: linear-gradient(135deg, rgba(52, 38, 81, 0.9), rgba(30, 22, 48, 0.8));
    border-color: rgba(72, 55, 108, 0.65);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.dark-mode .score-orb {
    background: none;
    box-shadow: none;
}

.dark-mode .summary-glass__label,
.dark-mode .summary-glass__domain {
    color: rgba(250, 240, 255, 0.95);
}

.dark-mode .result-card {
    background: linear-gradient(135deg, rgba(45, 33, 70, 0.9), rgba(29, 21, 46, 0.8));
    border-color: rgba(71, 54, 107, 0.65);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.dark-mode .result-item {
    background: rgba(39, 28, 60, 0.8);
    border-color: rgba(80, 58, 118, 0.6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dark-mode .result-item:hover {
    background: rgba(50, 38, 75, 0.85);
}

.dark-mode .result-item__detail {
    background: rgba(29, 20, 47, 0.85);
    border-color: rgba(103, 80, 148, 0.45);
    color: rgba(247, 239, 255, 0.88);
}

.dark-mode .btn,
.dark-mode .btn-secondary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: transparent;
    color: #f2e9ff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.dark-mode .btn:hover,
.dark-mode .btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #1f1630;
}

.dark-mode .loading-overlay__glass {
    background: rgba(36, 26, 54, 0.92);
    border-color: rgba(81, 63, 118, 0.65);
}

.dark-mode #toggleTheme {
    background: linear-gradient(135deg, rgba(53, 36, 72, 0.9), rgba(40, 28, 58, 0.8));
}

.dark-mode #toggleTheme:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #1f1630;
}

.dark-mode .shared-banner__badge {
    background: linear-gradient(135deg, rgba(242, 130, 132, 0.2), rgba(140, 100, 200, 0.15));
    border-color: rgba(242, 130, 132, 0.4);
    color: #f0e4ff;
}

.dark-mode .shared-banner__title {
    color: #fef8ff;
}

.dark-mode .shared-banner__title strong {
    background: linear-gradient(135deg, var(--accent-light), #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .shared-banner__subtitle {
    color: rgba(254, 248, 255, 0.7);
}

.dark-mode .shared-banner__meta-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(245, 236, 255, 0.8);
}

.dark-mode .share-actions__copy {
    background: rgba(56, 50, 78, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e8e0ff;
}

.dark-mode .share-actions__copy:hover {
    background: rgba(242, 130, 132, 0.15);
    border-color: var(--accent);
    color: var(--accent-light);
}

.dark-mode .status-chip.pass {
    background: rgba(82, 199, 140, 0.2);
    border-color: rgba(82, 199, 140, 0.4);
    color: #7eeab4;
}

.dark-mode .status-chip.warn {
    background: rgba(242, 206, 132, 0.2);
    border-color: rgba(242, 206, 132, 0.4);
    color: #f5d68e;
}

.dark-mode .status-chip.fail {
    background: rgba(242, 93, 96, 0.2);
    border-color: rgba(242, 93, 96, 0.4);
    color: #f79598;
}

.dark-mode .status-chip.info {
    background: rgba(115, 117, 174, 0.2);
    border-color: rgba(115, 117, 174, 0.4);
    color: #b8baf5;
}

/* Toegankelijkheid - verminderde beweging */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .score-orb {
        animation: none;
    }
}

/* Focusstijlen voor toegankelijkheid */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Ondersteuning voor hoog contrast-modus */
@media (prefers-contrast: high) {
    .signal-chip,
    .issue-chip,
    .status-chip {
        border-width: 2px;
    }

    .result-card,
    .result-item,
    .summary-glass {
        border-width: 2px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Modern redesign (v1.3.3)
   — SVG iconografie, collapsible details, masonry-stijl grid, score-ring
   ═══════════════════════════════════════════════════════════════════════════ */

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ── Section icon badge ──────────────────────────────────────────────────── */
.result-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    flex-shrink: 0;
    background: rgba(79, 28, 112, 0.08);
    color: var(--primary);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    font-size: inherit;
}

.result-card__icon svg {
    width: 22px;
    height: 22px;
}

.result-card:hover .result-card__icon {
    transform: scale(1.05) rotate(-3deg);
}

.result-card__icon--pass {
    background: linear-gradient(135deg, rgba(89, 211, 138, 0.18), rgba(61, 162, 106, 0.12));
    color: var(--success-dark);
    box-shadow: 0 4px 16px rgba(89, 211, 138, 0.2);
}

.result-card__icon--warn {
    background: linear-gradient(135deg, rgba(242, 200, 115, 0.22), rgba(200, 138, 28, 0.14));
    color: var(--warning-dark);
    box-shadow: 0 4px 16px rgba(242, 200, 115, 0.22);
}

.result-card__icon--fail {
    background: linear-gradient(135deg, rgba(242, 109, 112, 0.2), rgba(199, 53, 47, 0.14));
    color: var(--error-dark);
    box-shadow: 0 4px 16px rgba(242, 109, 112, 0.22);
}

.result-card__icon--info {
    background: linear-gradient(135deg, rgba(157, 162, 245, 0.2), rgba(97, 86, 196, 0.14));
    color: var(--info-dark);
    box-shadow: 0 4px 16px rgba(157, 162, 245, 0.22);
}

/* ── Help-knop met SVG-icoon ─────────────────────────────────────────────── */
.help-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    padding: 0;
}

.help-btn svg {
    width: 16px;
    height: 16px;
}

/* ── Result-card header: nette horizontale layout ───────────────────────── */
.result-card__header {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    text-align: left;
}

.result-card__title {
    flex: 1;
    text-align: left;
    min-width: 0;
    gap: 0.8rem;
}

.result-card__title h2 {
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: manual;
    line-height: 1.25;
}

.result-card__header h2 {
    font-size: 1rem;
}

/* ── Grid: auto-fill kolommen, kaarten stretchen niet naar rij-hoogte ──
   Met collapsible items blijven kaarten redelijk klein; lege ruimte naast
   een lange kaart blijft beperkt.
   ─────────────────────────────────────────────────────────────────────── */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.25rem;
    align-items: start;
}

.result-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: auto;
    align-self: start;
}

/* ── Masonry-variant: cards pakken kolommen efficiënt vol zonder grote gaps. ── */
.results-grid--masonry {
    display: block;
    column-gap: 1.25rem;
    column-count: 2;
}

.results-grid--masonry > .result-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 1.25rem;
    display: block;
    width: 100%;
}

@media (max-width: 760px) {
    .results-grid--masonry {
        column-count: 1;
    }
}

/* ── Result-items: collapsible met native details/summary ────────────────── */
.result-items {
    gap: 0.5rem;
}

.result-item {
    padding: 0;
    overflow: hidden;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.result-item__collapse {
    display: block;
}

.result-item__collapse summary {
    list-style: none;
    cursor: pointer;
    outline: none;
}

.result-item__collapse summary::-webkit-details-marker {
    display: none;
}

.result-item__summary-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    transition: background var(--transition-fast);
}

.result-item__collapse summary.result-item__summary-row:hover {
    background: rgba(79, 28, 112, 0.04);
}

.result-item__collapse[open] summary.result-item__summary-row {
    background: rgba(79, 28, 112, 0.03);
    border-bottom: 1px solid rgba(79, 28, 112, 0.06);
}

.result-item__heading {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.result-item__heading h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-light);
    word-break: break-word;
}

.result-item__summary {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(79, 28, 112, 0.75);
    word-break: break-word;
}

/* ── Status-indicator: cirkel met SVG-icoon ─────────────────────────────── */
.status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 2px 6px rgba(79, 28, 112, 0.12);
    color: #ffffff;
}

.status-indicator svg {
    width: 14px;
    height: 14px;
}

.status-indicator--pass {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
}

.status-indicator--warn {
    background: linear-gradient(135deg, var(--warning), var(--warning-dark));
}

.status-indicator--fail {
    background: linear-gradient(135deg, var(--error), var(--error-dark));
}

.status-indicator--info {
    background: linear-gradient(135deg, var(--info), var(--info-dark));
}

/* ── Chevron voor collapsible items ──────────────────────────────────────── */
.result-item__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: rgba(79, 28, 112, 0.45);
    transition: transform var(--transition-medium), color var(--transition-fast);
    margin-top: 1px;
}

.result-item__chevron svg {
    width: 16px;
    height: 16px;
}

.result-item__collapse[open] .result-item__chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.result-item__detail-wrap {
    padding: 0.7rem 1rem 0.9rem;
    animation: detailFade 0.25s ease-out;
}

.result-item__detail {
    margin: 0;
    padding: 0.75rem 0.9rem;
    background: rgba(79, 28, 112, 0.05);
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.72rem;
    line-height: 1.55;
    color: rgba(79, 28, 112, 0.85);
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
    max-width: 100%;
}

@keyframes detailFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result-item--static .result-item__summary-row {
    cursor: default;
}

.result-item--static .result-item__summary-row:hover {
    background: transparent;
}

/* ── Score-orb met SVG-ring + count-up ────────────────────────────────── */
.score-orb {
    position: relative;
    width: 132px;
    height: 132px;
    background: none;
    box-shadow: none;
    animation: none;
    flex-shrink: 0;
}

.score-orb::after {
    display: none;
}

.score-orb__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-orb__ring-bg {
    fill: none;
    stroke: rgba(79, 28, 112, 0.1);
    stroke-width: 8;
}

.score-orb__ring-fg {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.score-orb.is-animating .score-orb__ring-fg,
.score-orb.is-rendered .score-orb__ring-fg {
    /* value gezet via style in HTML na animation trigger */
}

.score-orb--excellent .score-orb__ring-fg { stroke: url(#scoreGradientExcellent); }
.score-orb--good      .score-orb__ring-fg { stroke: url(#scoreGradientGood); }
.score-orb--warn      .score-orb__ring-fg { stroke: url(#scoreGradientWarn); }
.score-orb--critical  .score-orb__ring-fg { stroke: url(#scoreGradientCritical); }

/* Fallback kleuren als gradient-defs niet aanwezig zijn */
.score-orb--excellent .score-orb__ring-fg { stroke: var(--success); }
.score-orb--good      .score-orb__ring-fg { stroke: var(--info-dark); }
.score-orb--warn      .score-orb__ring-fg { stroke: var(--warning-dark); }
.score-orb--critical  .score-orb__ring-fg { stroke: var(--error); }

.score-orb__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.score-orb__value {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-orb--excellent .score-orb__value {
    background: linear-gradient(135deg, var(--success-dark), var(--success));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-orb--critical .score-orb__value {
    background: linear-gradient(135deg, var(--error-dark), var(--error));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-orb__unit {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.7;
    margin-top: 0.1rem;
}

/* ── Confetti canvas overlay ──────────────────────────────────────────── */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

/* ── Dark mode aanpassingen ──────────────────────────────────────────── */
.dark-mode .result-card__icon {
    background: rgba(255, 255, 255, 0.06);
    color: #d9c9f0;
}

.dark-mode .result-card__icon--pass {
    background: linear-gradient(135deg, rgba(89, 211, 138, 0.22), rgba(61, 162, 106, 0.14));
    color: #7eeab4;
}

.dark-mode .result-card__icon--warn {
    background: linear-gradient(135deg, rgba(242, 200, 115, 0.22), rgba(200, 138, 28, 0.14));
    color: #f5d68e;
}

.dark-mode .result-card__icon--fail {
    background: linear-gradient(135deg, rgba(242, 109, 112, 0.22), rgba(199, 53, 47, 0.14));
    color: #f79598;
}

.dark-mode .result-card__icon--info {
    background: linear-gradient(135deg, rgba(157, 162, 245, 0.24), rgba(97, 86, 196, 0.14));
    color: #b8baf5;
}

.dark-mode .result-item__heading h3 {
    color: rgba(248, 242, 255, 0.95);
}

.dark-mode .result-item__summary {
    color: rgba(248, 242, 255, 0.72);
}

.dark-mode .result-item__collapse summary.result-item__summary-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.dark-mode .result-item__collapse[open] summary.result-item__summary-row {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .result-item__detail {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(248, 242, 255, 0.85);
}

.dark-mode .result-item__chevron {
    color: rgba(248, 242, 255, 0.45);
}

.dark-mode .result-item__collapse[open] .result-item__chevron {
    color: #d9c9f0;
}

.dark-mode .score-orb__ring-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.dark-mode .score-orb__value {
    background: linear-gradient(135deg, #f8f2ff, #d9c9f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode .score-orb--excellent .score-orb__value {
    background: linear-gradient(135deg, #7eeab4, var(--success));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode .score-orb--critical .score-orb__value {
    background: linear-gradient(135deg, #f79598, var(--error));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode .score-orb__unit {
    color: rgba(248, 242, 255, 0.7);
}

/* ── Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .score-orb__ring-fg {
        transition: none;
    }
    .result-item__detail-wrap {
        animation: none;
    }
    .result-card:hover .result-card__icon {
        transform: none;
    }
}

/* ── Compacte hero + form ─────────────────────────────────────────────
   Minder verticale ruimte boven de score zodat het resultaat eerder in
   beeld komt.
   ─────────────────────────────────────────────────────────────────── */
.hero {
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

h1 {
    font-size: clamp(1.35rem, 3.2vw, 1.9rem);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.subtext {
    font-size: clamp(0.82rem, 1.6vw, 0.92rem);
    margin: 0 0 0.6rem;
    line-height: 1.5;
    max-width: min(68ch, 100%);
}

.hero__signals {
    gap: 0.4rem;
}

.signal-chip {
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}

.form-section {
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.form-section form {
    row-gap: 0.55rem;
    column-gap: 0.7rem;
}

.field-note {
    margin-top: 0.35rem;
    font-size: 0.78rem;
}

.details {
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }
    .subtext {
        font-size: 0.85rem;
    }
}

/* ── Mobile refinements voor v1.3.3 structuur ─────────────────────────
   De nieuwe horizontale card-header en collapsible items moeten ook op
   smalle schermen werken.
   ─────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .result-card__icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
    .result-card__icon svg {
        width: 20px;
        height: 20px;
    }
    .result-card__header {
        gap: 0.6rem;
    }
    .result-card__title {
        gap: 0.6rem;
    }
    .score-orb {
        width: 110px;
        height: 110px;
    }
    .score-orb__value {
        font-size: 2rem;
    }
    .summary-glass {
        padding: 1rem;
        gap: 1rem;
    }
    .result-item__summary-row {
        padding: 0.7rem 0.85rem;
        gap: 0.7rem;
    }
    .result-item__heading h3 {
        font-size: 0.88rem;
    }
    .result-item__summary {
        font-size: 0.8rem;
    }
    .result-item__detail {
        font-size: 0.7rem;
    }
    .status-indicator {
        width: 22px;
        height: 22px;
    }
    .status-indicator svg {
        width: 12px;
        height: 12px;
    }
    .result-item__chevron {
        width: 20px;
        height: 20px;
    }
    .result-item__chevron svg {
        width: 14px;
        height: 14px;
    }
}

/* Smalle schermen: laat card-header status-chip naar nieuwe regel.
   Het titelblok dwingt 100% breedte af zodat de chip op een nieuwe regel
   onder de titel valt en de titel niet verticaal in stukjes hyphenated. */
@media (max-width: 768px) {
    .result-card__header {
        flex-wrap: wrap;
    }
    .result-card__title {
        flex: 1 1 100%;
    }
    .status-chip {
        margin-left: calc(38px + 0.6rem); /* uitgelijnd met titel-tekst, onder het icoon */
    }
}

@media (max-width: 420px) {
    .status-chip {
        font-size: 0.65rem;
        padding: 0.28rem 0.65rem;
    }
    .score-orb {
        width: 96px;
        height: 96px;
    }
    .score-orb__value {
        font-size: 1.7rem;
    }
    .score-orb__unit {
        font-size: 0.75rem;
    }
}

/* ── Dark mode score-orb: ook de oude ::after gradient uit ─────────── */
.dark-mode .score-orb::after {
    display: none;
}

/* ── Header actions + language toggle ──────────────────────────────── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.lang-toggle {
    display: inline-flex;
    padding: 3px;
    border-radius: var(--radius-full);
    background: rgba(79, 28, 112, 0.06);
    border: 1px solid rgba(79, 28, 112, 0.12);
}

.lang-toggle__pill {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(79, 28, 112, 0.7);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
    line-height: 1;
}

.lang-toggle__pill:hover {
    color: var(--primary);
}

.lang-toggle__pill.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 28, 112, 0.25);
}

.dark-mode .lang-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .lang-toggle__pill {
    color: rgba(248, 242, 255, 0.7);
}

.dark-mode .lang-toggle__pill:hover {
    color: #ffffff;
}

.dark-mode .lang-toggle__pill.is-active {
    color: #ffffff;
}

@media (max-width: 480px) {
    .lang-toggle__pill {
        padding: 0.3rem 0.55rem;
        font-size: 0.65rem;
    }
}

/* ── In-section notice (e.g. Deep TLS: not yet counted) ── */
.result-card__notice {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(157, 162, 245, 0.18), rgba(97, 86, 196, 0.10));
    border: 1px solid rgba(97, 86, 196, 0.28);
    color: var(--info-dark);
    font-size: 0.85rem;
    line-height: 1.5;
}

.result-card__notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    flex: 0 0 auto;
    border-radius: var(--radius-full);
    background: rgba(97, 86, 196, 0.18);
    color: var(--info-dark);
}

.result-card__notice-icon svg {
    width: 0.95rem;
    height: 0.95rem;
}

.result-card__notice-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.result-card__notice-title {
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--info-dark);
}

.result-card__notice-body p {
    margin: 0;
    color: rgba(58, 38, 92, 0.92);
}

.result-card__notice-body strong {
    color: var(--primary);
}

.dark-mode .result-card__notice {
    background: linear-gradient(135deg, rgba(157, 162, 245, 0.22), rgba(97, 86, 196, 0.12));
    border-color: rgba(157, 162, 245, 0.35);
    color: #d9d6ff;
}

.dark-mode .result-card__notice-icon {
    background: rgba(157, 162, 245, 0.25);
    color: #d9d6ff;
}

.dark-mode .result-card__notice-title {
    color: #e3e0ff;
}

.dark-mode .result-card__notice-body p {
    color: rgba(232, 226, 255, 0.85);
}

.dark-mode .result-card__notice-body strong {
    color: #f2e9ff;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* Tab navigation                                                             */
/* ────────────────────────────────────────────────────────────────────────── */

.tab-nav {
    width: min(1120px, calc(100% - 2rem));
    margin: 1rem auto 0;
    display: flex;
    justify-content: center;
}

.tab-nav__inner {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(239, 228, 238, 0.7);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-wrap: wrap;
    justify-content: center;
}

.tab-nav__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.05rem;
    border-radius: var(--radius-full);
    color: rgba(79, 28, 112, 0.78);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab-nav__pill:hover {
    background: rgba(79, 28, 112, 0.07);
    color: var(--primary);
}

.tab-nav__pill.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.tab-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.tab-nav__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

.dark-mode .tab-nav__inner {
    background: rgba(40, 26, 64, 0.65);
    border-color: rgba(157, 162, 245, 0.18);
}

.dark-mode .tab-nav__pill {
    color: rgba(232, 222, 255, 0.78);
}

.dark-mode .tab-nav__pill:hover {
    background: rgba(157, 162, 245, 0.16);
    color: #f4ecff;
}

.dark-mode .tab-nav__pill.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #2a163e;
}

@media (max-width: 540px) {
    .tab-nav__pill {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    .tab-nav__pill span:not(.tab-nav__icon) {
        max-width: 84px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ────────────────────────────────────────────────────────────────────────── */
/* Header analyzer textarea                                                   */
/* ────────────────────────────────────────────────────────────────────────── */

.header-textarea {
    width: 100%;
    min-height: 220px;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(79, 28, 112, 0.2);
    background: rgba(255, 255, 255, 0.85);
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-light);
    resize: vertical;
    box-shadow: inset 0 2px 6px rgba(79, 28, 112, 0.05);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 28, 112, 0.12);
}

.dark-mode .header-textarea {
    background: rgba(40, 26, 64, 0.6);
    border-color: rgba(157, 162, 245, 0.25);
    color: #f4ecff;
}

.dark-mode .header-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(242, 130, 132, 0.18);
}

/* "Analyseer nog een header" CTA                                             */

.reset-cta {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 1.5rem;
}

.reset-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.reset-cta__icon {
    font-size: 1.05rem;
    line-height: 1;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* Mail-hop flow (visualisatie van Received-keten)                            */
/* ────────────────────────────────────────────────────────────────────────── */

.hop-flow {
    margin: 1.5rem 0;
    padding: 1.25rem 1.25rem 0.5rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(248, 239, 255, 0.7));
    border: 1px solid rgba(239, 228, 238, 0.7);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.hop-flow__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.hop-flow__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(79, 28, 112, 0.15), rgba(157, 162, 245, 0.18));
    color: var(--primary);
}

.hop-flow__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.hop-flow__list {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

.hop-flow__list::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, rgba(79, 28, 112, 0.18), rgba(79, 28, 112, 0.06));
    border-radius: 2px;
}

.hop-flow__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0;
}

.hop-flow__index {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.hop-flow__item.is-tls .hop-flow__index {
    background: linear-gradient(135deg, var(--success-dark), var(--success));
}

.hop-flow__item.is-plain .hop-flow__index {
    background: linear-gradient(135deg, var(--warning-dark), var(--warning));
}

.hop-flow__body {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(79, 28, 112, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.hop-flow__route {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.92rem;
    color: var(--primary);
    font-weight: 600;
}

.hop-flow__host {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.84rem;
    background: rgba(79, 28, 112, 0.07);
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--primary);
    word-break: break-all;
    max-width: 100%;
}

.hop-flow__host--by {
    background: rgba(157, 162, 245, 0.16);
    color: rgba(58, 38, 92, 0.9);
}

.hop-flow__arrow {
    color: rgba(79, 28, 112, 0.4);
    font-weight: 400;
}

.hop-flow__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.hop-flow__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: rgba(79, 28, 112, 0.08);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hop-flow__chip--proto {
    background: rgba(157, 162, 245, 0.18);
    color: var(--info-dark);
}

.hop-flow__chip--tls {
    background: rgba(89, 211, 138, 0.16);
    color: var(--success-dark);
    text-transform: none;
}

.hop-flow__chip--cipher {
    background: rgba(89, 211, 138, 0.08);
    color: rgba(61, 162, 106, 0.9);
    text-transform: none;
    font-family: 'SFMono-Regular', Consolas, monospace;
    letter-spacing: 0;
}

.hop-flow__chip--insecure {
    background: rgba(242, 200, 115, 0.2);
    color: var(--warning-dark);
}

.hop-flow__chip--ip {
    background: rgba(79, 28, 112, 0.06);
    color: rgba(58, 38, 92, 0.78);
    font-family: 'SFMono-Regular', Consolas, monospace;
    text-transform: none;
    letter-spacing: 0;
}

.hop-flow__time {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: rgba(58, 38, 92, 0.7);
}

.hop-flow__delta {
    font-weight: 600;
    color: var(--accent-dark, #c7352f);
    background: rgba(242, 130, 132, 0.12);
    padding: 0.05rem 0.45rem;
    border-radius: var(--radius-sm);
}

.dark-mode .hop-flow {
    background: linear-gradient(160deg, rgba(40, 26, 64, 0.7), rgba(56, 38, 88, 0.5));
    border-color: rgba(157, 162, 245, 0.22);
}

.dark-mode .hop-flow__title {
    color: #f4ecff;
}

.dark-mode .hop-flow__icon {
    background: linear-gradient(135deg, rgba(157, 162, 245, 0.3), rgba(97, 86, 196, 0.3));
    color: #f4ecff;
}

.dark-mode .hop-flow__list::before {
    background: linear-gradient(180deg, rgba(157, 162, 245, 0.4), rgba(157, 162, 245, 0.08));
}

.dark-mode .hop-flow__body {
    background: rgba(40, 26, 64, 0.65);
    border-color: rgba(157, 162, 245, 0.18);
}

.dark-mode .hop-flow__route {
    color: #e8ddff;
}

.dark-mode .hop-flow__host {
    background: rgba(157, 162, 245, 0.18);
    color: #f0e6ff;
}

.dark-mode .hop-flow__host--by {
    background: rgba(89, 211, 138, 0.16);
    color: #d6f3e2;
}

.dark-mode .hop-flow__arrow {
    color: rgba(232, 222, 255, 0.45);
}

.dark-mode .hop-flow__chip {
    background: rgba(157, 162, 245, 0.18);
    color: #f0e6ff;
}

.dark-mode .hop-flow__chip--proto {
    background: rgba(157, 162, 245, 0.25);
    color: #f0e6ff;
}

.dark-mode .hop-flow__chip--tls {
    background: rgba(89, 211, 138, 0.22);
    color: #d6f3e2;
}

.dark-mode .hop-flow__chip--cipher {
    background: rgba(89, 211, 138, 0.12);
    color: rgba(214, 243, 226, 0.85);
}

.dark-mode .hop-flow__chip--insecure {
    background: rgba(242, 200, 115, 0.2);
    color: #f5d896;
}

.dark-mode .hop-flow__chip--ip {
    background: rgba(232, 222, 255, 0.08);
    color: rgba(232, 222, 255, 0.78);
}

.dark-mode .hop-flow__time {
    color: rgba(232, 222, 255, 0.65);
}

.dark-mode .hop-flow__delta {
    background: rgba(242, 130, 132, 0.18);
    color: #f8b6b8;
}

@media (max-width: 600px) {
    .hop-flow__route {
        font-size: 0.86rem;
    }
    .hop-flow__host {
        font-size: 0.78rem;
        padding: 0.15rem 0.4rem;
    }
    .hop-flow__list::before {
        left: 14px;
    }
    .hop-flow__index {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}
