@import url("tokens.css");

.auth-page,
.dashboard-page,
.wizard-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.wizard-page--wide,
.dashboard-page--wide {
    max-width: min(1180px, calc(100vw - 2.5rem));
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Setup-wizard: ruim op desktop, meer inhoud per stap in één oogopslag */
.wizard-page--editor {
    max-width: min(1180px, calc(100vw - 2.5rem));
}

.wizard-page--editor.wizard-page--wide {
    max-width: min(1240px, calc(100vw - 2.5rem));
}

.auth-card,
.wizard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(15, 15, 18, 0.04);
}

.auth-card h1,
.wizard-card h1 {
    margin: 0 0 0.5rem;
}

.auth-card__lead,
.wizard-card__plan,
.wizard-card__desc {
    color: var(--gray-dark);
    margin: 0 0 1.5rem;
}

.auth-form .form-group,
.wizard-form .form-group {
    margin-bottom: 1.1rem;
}

.auth-form label,
.wizard-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--gray-dark);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.wizard-form input[type="text"],
.wizard-form input[type="email"],
.wizard-form input[type="file"],
.wizard-form input[type="color"],
.wizard-form select,
.wizard-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    font-family: inherit;
    font-size: 1rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.wizard-form input[type="text"]:focus,
.wizard-form input[type="email"]:focus,
.wizard-form select:focus,
.wizard-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

.btn--block {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-card__footer {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--gray-dark);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md, 10px);
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert--info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.alert--info code {
    font-size: 0.875em;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.preview-hint__note {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted, #71717a);
    font-size: 0.875rem;
}

.preview-link {
    font-weight: 600;
}

.alert--success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert--warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    font-weight: 400;
}

.alert--warning strong {
    font-weight: 700;
}

.alert__action {
    display: inline;
    margin-left: 0.5rem;
}

.nav-user {
    font-size: 0.9rem;
    color: var(--gray-dark);
    font-weight: 600;
}

.wizard-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.wizard-progress--6 {
    grid-template-columns: repeat(6, 1fr);
}

.wizard-progress--8 {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

@media (min-width: 900px) {
    .wizard-progress--8 {
        grid-template-columns: repeat(8, 1fr);
    }
}

.wizard-card__intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 0.5rem;
    max-width: 52rem;
}

.wizard-page--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 10rem);
    max-width: 720px;
}

.wizard-card--welcome {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 2.25rem 2.5rem;
}

.wizard-welcome__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand);
}

.wizard-card--welcome h1 {
    margin: 0 0 0.75rem;
    font-size: 1.65rem;
    line-height: 1.25;
}

.wizard-welcome__lead {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--gray-dark);
}

.wizard-welcome__list {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gray-dark);
}

.wizard-welcome__list strong {
    color: var(--ink, #0f0f12);
}

.wizard-welcome__sublead {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wizard-welcome__steps {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gray-dark);
    counter-reset: step-counter;
}

.wizard-welcome__steps li {
    padding-left: 0.25rem;
}

.wizard-welcome__steps strong {
    color: var(--ink, #0f0f12);
}

.wizard-welcome__note {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    margin: 0 0 1.5rem;
    padding: 0.65rem 0.9rem;
    background: var(--surface-alt, #f8f9fb);
    border-radius: var(--radius-sm, 6px);
    border-left: 3px solid var(--primary, #2563eb);
}

.wizard-welcome__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.wizard-progress__step {
    text-align: center;
    padding: 0.65rem 0.35rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 0.75rem;
}

.wizard-progress__step.is-active {
    border-color: var(--brand);
    background: var(--brand-light);
}

.wizard-progress__step.is-done {
    opacity: 0.85;
}

a.wizard-progress__step.is-clickable {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}

a.wizard-progress__step.is-clickable:hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
    opacity: 1;
}

.wizard-progress__num {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--brand);
}

.wizard-progress__label {
    display: block;
    margin-top: 0.15rem;
    color: var(--gray-dark);
    line-height: 1.2;
}

.input-addon {
    display: flex;
    align-items: stretch;
}

.input-addon input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-addon__suffix {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 10px 10px 0;
    font-size: 0.9rem;
    color: var(--gray-dark);
    white-space: nowrap;
}

.color-input-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.color-input-row input[type="color"] {
    width: 3rem;
    height: 2.75rem;
    padding: 0.15rem;
    flex-shrink: 0;
}

.field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--gray);
}

.logo-preview {
    margin-bottom: 0.75rem;
}

.logo-preview img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    background: #fff;
}

.settings-fieldset {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 0 0 1rem;
}

.settings-fieldset legend {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 0.35rem;
}

.settings-check,
.settings-radio {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    cursor: pointer;
}

.settings-check:last-child,
.settings-radio:last-child {
    margin-bottom: 0;
}

.code-snippet {
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0f172a;
    color: #e2e8f0;
}

#embed-mode-panel {
    margin-top: 0.5rem;
}

.dynamic-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dynamic-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    background: var(--bg, #f8fafc);
}

.btn-remove-item {
    margin-top: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
    border-radius: var(--radius-md, 10px);
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.wizard-settings-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-fieldset--block {
    margin-bottom: 0;
}

.settings-fieldset__intro {
    margin: 0 0 1rem;
}

.settings-fieldset__sub {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}

.settings-fieldset__sub-label {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

@media (min-width: 900px) {
    .wizard-page--editor .statement-item:not(.statement-item--with-positions) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 1.25rem;
        align-items: start;
    }

    .wizard-page--editor .statement-item:not(.statement-item--with-positions) .btn-remove-item {
        grid-column: 1 / -1;
    }

    .wizard-page--editor .statement-item--with-positions .statement-item__fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 1.25rem;
        align-items: start;
    }

    .wizard-page--editor .statement-item--with-positions .statement-item__fields .btn-remove-item {
        grid-column: 1 / -1;
    }

    .wizard-page--editor .wizard-settings-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        align-items: start;
    }
}

.wizard-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.wizard-actions__end {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.wizard-payment-success,
.wizard-publish-success {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--brand-light);
    border: 1px solid rgba(38, 67, 221, 0.15);
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
}

.wizard-payment-success__icon,
.wizard-publish-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--success-subtle);
    color: var(--success);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.wizard-payment-success__title,
.wizard-publish-success__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
}

.wizard-payment-success__lead,
.wizard-publish-success__lead {
    margin: 0 0 1rem;
    color: var(--text-secondary);
}

.wizard-publish-cta {
    padding: 1.5rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.wizard-publish-cta__lead {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.wizard-publish-cta__checks {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.wizard-publish-cta__checks li {
    margin: 0.35rem 0;
}

.wizard-btn-publish {
    min-width: 14rem;
}

.wizard-checkout-summary {
    margin-bottom: 1.25rem;
}

.wizard-actions .btn--primary {
    margin-left: auto;
}

.dashboard-header h1 {
    margin: 0 0 0.35rem;
}

.dashboard-header p {
    margin: 0;
}

.dashboard-header p {
    color: var(--gray-dark);
    margin: 0 0 1.5rem;
}

.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.dashboard-tabs__tab {
    display: inline-block;
    padding: 0.65rem 1rem;
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-dark);
    text-decoration: none;
}

.dashboard-tabs__tab:hover {
    color: var(--brand-dark);
    background: var(--brand-light);
}

.dashboard-tabs__tab.is-active {
    color: var(--brand-dark);
    background: var(--surface);
    border-color: var(--border);
    border-bottom-color: var(--surface);
}

.account-settings {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.account-settings__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
}

.account-settings__card h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.account-settings__card--danger {
    border-color: #fecaca;
    background: #fffbfb;
}

.account-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 1rem 1.5rem;
    margin: 0 0 1.25rem;
}

.account-details dt {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-dark);
}

.account-details dd {
    margin: 0;
    font-size: 0.95rem;
}

.account-form {
    max-width: 32rem;
}

.account-form .form-group {
    margin-bottom: 1rem;
}

.account-form--danger {
    max-width: 28rem;
}

.account-form--danger .settings-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.election-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.election-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.election-card h2 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
}

.election-card__meta,
.election-card__step {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.dashboard-new {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.new-election-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.new-election-form select {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
}

.term-schedule-fields {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

.term-end-preview {
    margin-top: 0.5rem;
}

.project-card__term {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed var(--border);
}

.is-hidden {
    display: none !important;
}

.wizard-bundle-bar {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.wizard-bundle-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

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

.election-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.election-tab:hover {
    border-color: var(--brand);
    color: var(--brand);
    text-decoration: none;
}

.election-tab.is-active {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand);
}

.subdomain-status.is-available {
    color: var(--success);
}

.subdomain-status.is-taken {
    color: var(--danger);
}

.subdomain-status.is-checking {
    color: var(--gray);
}

.form-row--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* .project-card base layout — later overridden by the SaaS block */
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.project-card h2 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
}

.project-card__meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.project-card__elections {
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-card__elections .muted {
    color: var(--gray);
}

/* .project-election (legacy, keep for safety) */
.project-election {
    padding: 0.85rem 0;
    border-top: 1px solid var(--border);
}

.project-election:first-child {
    border-top: none;
    padding-top: 0.25rem;
}

.project-election__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
}

.project-election__title {
    font-weight: 600;
    color: var(--brand, #3730a3);
    text-decoration: none;
}

.project-election__title:hover {
    text-decoration: underline;
}

.project-election__sub {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
}

.election-lifecycle {
    margin-top: 0.5rem;
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
}

.election-lifecycle--compact {
    padding: 0.6rem 0.75rem;
}

.election-lifecycle__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.election-lifecycle__hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.election-lifecycle__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.election-tab__status {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.65rem;
}

.election-tab .status-badge {
    text-transform: none;
    letter-spacing: 0;
}

.inline-form {
    display: inline;
}

@media (max-width: 640px) {
    .wizard-progress {
        grid-template-columns: repeat(2, 1fr);
    }

    .wizard-progress--6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .wizard-progress__label {
        font-size: 0.65rem;
    }

    .form-row--3 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .wizard-actions {
        flex-direction: column;
    }

    .wizard-actions .btn--primary {
        margin-left: 0;
    }
}

/* Supermod klantenoverzicht */
.supermod-page .dashboard-header {
    margin-bottom: 1.5rem;
}

.supermod-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.supermod-kpis--wide {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.supermod-kpi--phase .supermod-kpi__value {
    font-size: 1.5rem;
}

.supermod-kpi {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.supermod-kpi__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand, #3730a3);
    line-height: 1.1;
}

.supermod-kpi__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.supermod-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.supermod-toolbar__search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.supermod-toolbar__search input[type="search"] {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    font-family: inherit;
    font-size: 1rem;
}

.supermod-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.supermod-filter {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--gray-dark);
    background: #fff;
    border: 1px solid var(--border);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.supermod-filter:hover {
    border-color: var(--brand, #3730a3);
    color: var(--brand, #3730a3);
}

.supermod-filter.is-active {
    background: var(--brand, #3730a3);
    border-color: var(--brand, #3730a3);
    color: #fff;
}

.supermod-view-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    background: #fff;
    width: fit-content;
}

.supermod-view-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--gray-dark);
    border-right: 1px solid var(--border);
}

.supermod-view-btn:last-child {
    border-right: none;
}

.supermod-view-btn.is-active {
    background: var(--brand, #3730a3);
    color: #fff;
}

.supermod-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.supermod-search input[type="search"] {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    font-family: inherit;
    font-size: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.supermod-db-hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
}

.supermod-customers {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.supermod-customer {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.supermod-customer__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.supermod-customer__header h2 {
    margin: 0 0 0.2rem;
    font-size: 1.2rem;
}

.supermod-customer__email {
    margin: 0;
    font-size: 0.95rem;
}

.supermod-customer__email a {
    color: var(--brand, #3730a3);
}

.supermod-customer__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    flex-shrink: 0;
    min-width: 10.5rem;
    max-width: 100%;
    font-size: 0.85rem;
    color: var(--gray-dark);
    text-align: right;
}

.supermod-customer__since {
    display: block;
    line-height: 1.4;
}

.supermod-customer__meta .js-admin-delete-trigger {
    white-space: normal;
    text-align: center;
    max-width: 100%;
}

.supermod-customer__empty,
.supermod-bundle__empty {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray-dark);
}

.supermod-bundle {
    margin-top: 1rem;
}

.supermod-bundle:first-of-type {
    margin-top: 0;
}

.supermod-bundle__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-bottom: 0.5rem;
}

.supermod-bundle__head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.supermod-bundle__dates {
    font-size: 0.85rem;
    color: var(--gray);
}

.supermod-bundle__portal {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.supermod-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.supermod-table th,
.supermod-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.supermod-table th {
    font-weight: 700;
    color: var(--gray-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.supermod-table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-md, 10px);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-badge--draft {
    background: #f1f5f9;
    color: #475569;
}

.status-badge--ready {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge--published {
    background: #dcfce7;
    color: #15803d;
}

.status-badge--lifecycle.status-badge--concept {
    background: #f1f5f9;
    color: #475569;
}

.status-badge--lifecycle.status-badge--scheduled {
    background: #fef3c7;
    color: #b45309;
}

.status-badge--lifecycle.status-badge--published {
    background: #dcfce7;
    color: #15803d;
}

.status-badge--lifecycle.status-badge--ended {
    background: #e2e8f0;
    color: #334155;
}

.status-badge--lifecycle.status-badge--awaiting_payment {
    background: #fef9c3;
    color: #a16207;
    outline: 1px solid #fbbf24;
}

.status-badge--supermod {
    background: #fef3c7;
    color: #b45309;
}

.supermod-bundle__term {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.supermod-flat-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.supermod-table--flat td {
    vertical-align: top;
}

.supermod-flat-account {
    display: block;
    font-weight: 600;
}

.supermod-flat-email {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.supermod-flat-term {
    max-width: 16rem;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.supermod-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.supermod-actions-col {
    width: 1%;
    min-width: 6.5rem;
}

.supermod-actions {
    white-space: nowrap;
    text-align: right;
    vertical-align: top;
}

.supermod-actions .js-admin-delete-trigger {
    white-space: nowrap;
}

.btn--small {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
}

.btn--danger {
    background: #dc2626;
    color: #fff;
    border: 1px solid #dc2626;
}

.btn--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

/* Admin: bevestigingsmodal verwijderen */
.admin-modal[hidden] {
    display: none !important;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.admin-modal__panel {
    position: relative;
    width: min(100%, 28rem);
    padding: 1.5rem 1.65rem;
    background: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.admin-modal__title {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.admin-modal__message {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--gray-dark);
}

.admin-modal__warning {
    margin: 0 0 1.25rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

.admin-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    align-items: center;
}

.admin-modal__form {
    display: inline;
    margin: 0;
}

body.admin-modal-open {
    overflow: hidden;
}

.access-password-panel {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    background: #f8fafc;
}

.access-password-panel.is-hidden {
    display: none;
}

.show-publish-date-wrap.is-hidden {
    display: none;
}

.access-password-privacy {
    margin-bottom: 1rem;
}

.access-password-existing {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.access-password-existing__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}

.access-password-existing__item:last-child {
    border-bottom: none;
}

.access-password-existing__label {
    font-weight: 600;
    font-size: 0.9rem;
}

.access-password-existing__remove {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.wizard-form input[type="password"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    font-family: inherit;
    font-size: 1rem;
}

/* Klant-statistieken (account/analytics.php) */
.analytics-page__back {
    margin: 0 0 1.25rem;
}

.analytics-page__back a {
    color: var(--text-muted, #64748b);
    text-decoration: none;
    font-size: 0.95rem;
}

.analytics-page__back a:hover {
    color: var(--brand, #1a56db);
}

.analytics-page__title {
    font-size: 1.15rem;
    color: var(--text-muted, #64748b);
    margin: 0.25rem 0 0.5rem;
}

.analytics-page__meta {
    margin: 0;
}

.analytics-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.analytics-page__privacy {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
    background: var(--surface-muted, #f8fafc);
    border-radius: var(--radius-md, 10px);
    padding: 0.85rem 1rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.analytics-statements {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.analytics-statement {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    padding: 1rem 1.25rem;
    background: #fff;
}

.analytics-statement__text {
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.analytics-table th,
.analytics-table td {
    padding: 0.5rem 0.75rem 0.5rem 0;
    text-align: left;
    vertical-align: middle;
}

.analytics-table th {
    font-weight: 600;
    color: var(--text-muted, #64748b);
    font-size: 0.85rem;
}

.analytics-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.analytics-bar__fill {
    display: block;
    height: 8px;
    width: var(--pct, 0%);
    max-width: 100%;
    background: var(--brand, #1a56db);
    border-radius: 4px;
    flex: 0 0 auto;
}

.analytics-bar__label {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
}

.analytics-page__actions {
    margin-top: 2rem;
}

.project-election__analytics {
    margin: 0.5rem 0 0;
}

@media (max-width: 640px) {
    .supermod-kpis,
    .supermod-kpis--wide {
        grid-template-columns: 1fr 1fr;
    }

    .supermod-customer__header {
        flex-direction: column;
        align-items: stretch;
    }

    .supermod-customer__meta {
        align-items: stretch;
        text-align: left;
        min-width: 0;
        width: 100%;
    }

    .supermod-customer__meta .js-admin-delete-trigger {
        width: 100%;
    }

    .supermod-table,
    .supermod-flat-wrap {
        display: block;
        overflow-x: auto;
    }

    .supermod-filters {
        gap: 0.35rem;
    }

    .supermod-filter {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ------------------------------------------------------------
   2026 visual polish layer
   Aligns auth/dashboard/wizard/admin with homepage styling.
   ------------------------------------------------------------ */

.auth-card,
.wizard-card,
.election-card,
.supermod-customer,
.supermod-flat-wrap {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.wizard-progress__step,
.election-tab,
.supermod-filter,
.supermod-view-toggle {
    border-color: var(--border-strong);
    border-radius: 12px;
}

.wizard-progress__step.is-active,
.election-tab.is-active,
.supermod-filter.is-active,
.supermod-view-btn.is-active {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.wizard-form input[type="text"],
.wizard-form input[type="email"],
.wizard-form input[type="file"],
.wizard-form input[type="color"],
.wizard-form input[type="password"],
.wizard-form select,
.wizard-form textarea,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.supermod-search input[type="search"],
.supermod-toolbar__search input[type="search"] {
    border-color: var(--border-strong);
    border-radius: 12px;
    background: #fff;
}

.wizard-form input:focus,
.wizard-form select:focus,
.wizard-form textarea:focus,
.auth-form input:focus,
.supermod-search input[type="search"]:focus,
.supermod-toolbar__search input[type="search"]:focus {
    outline: 3px solid var(--brand-light);
    border-color: var(--brand);
}

.status-badge {
    border-radius: 999px;
}

.status-badge--lifecycle.status-badge--scheduled {
    background: var(--warn-soft, #fff2df);
    color: var(--warn, #b87212);
}

/* ─── Organisator-positiematrix (wizard stap 5) ─────────────────────────────── */

.position-matrix-wrap {
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.position-matrix__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.position-matrix-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.position-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    white-space: nowrap;
}

.position-matrix th,
.position-matrix td {
    border: 1px solid #e5e7eb;
    padding: 0.4rem 0.55rem;
    text-align: left;
    vertical-align: middle;
}

.position-matrix th {
    background: #f9fafb;
    font-weight: 700;
    position: sticky;
    top: 0;
}

.position-matrix__th-participant {
    min-width: 140px;
}

.position-matrix__th-stmt {
    min-width: 80px;
    text-align: center;
}

.position-matrix__name {
    white-space: normal;
    min-width: 140px;
}

.position-matrix__name small {
    display: block;
    font-size: 0.78rem;
    color: #9ca3af;
}

.position-matrix__cell {
    text-align: center;
    padding: 0.3rem 0.4rem;
}

.position-matrix__select {
    font-size: 0.8rem;
    padding: 0.2rem 0.3rem;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    max-width: 100px;
}
.position-matrix__explanation {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 0.25rem 0.4rem;
    resize: vertical;
    font-family: inherit;
    color: #374151;
    box-sizing: border-box;
    min-width: 90px;
}

.position-matrix__legend {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #374151;
}

.position-matrix__legend-item {
    margin: 0.2rem 0;
}

/* ─── Deelnemers-overzichtstabel (account/participants.php) ─────────────────── */

.dashboard-participants__summary {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

/* ─── Dashboard: project-kaart + election-kaart (ecard) ──────────────────── */

/* Kleurvariabelen per fase, via de linkerrand */
.ecard--concept          { --ecard-accent: var(--border-strong); }
.ecard--awaiting_payment { --ecard-accent: #e8a020; }
.ecard--scheduled        { --ecard-accent: var(--brand); }
.ecard--published        { --ecard-accent: var(--success); }
.ecard--ended            { --ecard-accent: var(--text-muted); }

.ecard {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--ecard-accent, var(--border-strong));
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem 0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
}

.ecard:hover {
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.09);
}

/* ① Bovenste rij */
.ecard__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.ecard__identity {
    min-width: 0;
    flex: 1;
}

.ecard__title {
    margin: 0 0 0.2rem;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: var(--tracking-display);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
}

.ecard__url {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--brand);
    text-decoration: none;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.15s;
}

.ecard__url:hover {
    opacity: 0.75;
}

.ecard__url-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.ecard__top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ecard__badge {
    flex-shrink: 0;
}

.ecard__side-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

/* Disabled button state (Naar stemhulp zonder URL, etc.) */
.ecard__btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: auto;
}

.ecard__btn-disabled:hover {
    opacity: 0.4;
}

/* Statistieken disabled: knop + zichtbare hint-tekst eronder */
.ecard__stats-disabled {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.ecard__stats-disabled-btn {
    opacity: 0.4;
    cursor: not-allowed;
}

.ecard__stats-disabled-hint {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: right;
    line-height: 1.2;
    white-space: nowrap;
}

/* ② Voortgangs-pipeline */
.ecard__pipeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0 -1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--cream);
    overflow: hidden;
}

.ecard__pip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.2rem 0.55rem;
    border-right: 1px solid var(--border);
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    transition: background 0.15s;
    cursor: default;
}

.ecard__pip:last-child {
    border-right: none;
}

.ecard__pip-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-strong);
    flex-shrink: 0;
}

.ecard__pip-name {
    font-size: 0.6rem;
    line-height: 1.2;
}

.ecard__pip.is-done {
    background: var(--success-subtle);
    color: var(--success);
}

.ecard__pip.is-done .ecard__pip-dot {
    background: var(--success);
}

.ecard__pip.is-current {
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 700;
}

.ecard__pip.is-current .ecard__pip-dot {
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(38, 67, 221, 0.22);
}

/* ③ Snelactie (alleen als betaling/publicatie nog nodig is) */
.ecard__quick-action {
    padding: 0.6rem 0 0.2rem;
}

/* ④ Deelnemers-rij */
.ecard__resp-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    padding: 0.55rem 0 0.2rem;
    font-size: 0.82rem;
}

/* ⑤ Bottom bar */
.ecard__bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

/* Response badge (deelnemers) */
.ecard__resp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(236, 201, 75, 0.1);
    border: 1px solid #ecc94b;
    color: #744210;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
}

.ecard__resp-badge:hover {
    opacity: 0.8;
}

.ecard__resp-badge.is-complete {
    background: rgba(15, 138, 95, 0.08);
    border-color: var(--success);
    color: var(--success);
}

.ecard__resp-nums {
    font-size: 0.88rem;
    font-weight: 800;
}

.ecard__resp-label {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Offline datum */
.ecard__offline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
}

.ecard__offline-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ─── Project-kaart wrapper ───────────────────────────────────────────────── */

.project-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* Project-card header strip */
.project-card__header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2rem 0.65rem;
    padding: 0.6rem 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.project-card__plan {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.project-card__meta {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-card__renew-badge {
    font-size: 0.72rem;
    color: var(--success, #0f8a5f);
    font-weight: 600;
}

.project-card__elections {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-card__elections > .ecard {
    border-radius: 0;
    border-top: none;
    border-right: none;
    border-bottom: none;
    box-shadow: none;
}

.project-card__elections > .ecard + .ecard {
    border-top: 1px solid var(--border);
}

/* pipeline al correct door de eigen ecard padding */

.project-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--cream);
    border-top: 1px solid var(--border);
}

/* btn--sm (dashboard knoppen) */
.btn--sm {
    padding: 0.45rem 1rem;
    font-size: var(--text-sm);
}

/* ─── ecard responsive ───────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .ecard {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ecard__pipeline {
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .ecard__pip-name {
        display: none;
    }

    .ecard__pip {
        padding: 0.55rem 0.15rem;
    }

    .ecard__top {
        flex-wrap: wrap;
    }

    .ecard__top-right {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .ecard__bottom-bar {
        flex-wrap: wrap;
    }

    .project-card__header,
    .project-card__actions {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ─── Dashboard: wizard-checklist (legacy) ───────────────────────────────── */

.election-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 4px;
}

.election-checklist__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #718096;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2px 9px;
    white-space: nowrap;
}

.election-checklist__item.is-done {
    color: #276749;
    background: #f0fff4;
    border-color: #9ae6b4;
}

.election-checklist__icon {
    font-size: 11px;
    font-weight: 700;
}

/* ─── Dashboard: response-badge ─────────────────────────────────────────── */

.election-participants-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 4px;
}

.election-response-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(236, 201, 75, .12);
    border: 1px solid #ecc94b;
    color: #744210;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: opacity .15s;
}

.election-response-badge:hover {
    opacity: .85;
}

.election-response-badge--complete {
    background: rgba(104, 211, 145, .12);
    border-color: #68d391;
    color: #22543d;
}

.election-response-badge__nums {
    font-size: 15px;
    font-weight: 700;
}

.election-response-badge__label {
    font-size: 11px;
    font-weight: 400;
    opacity: .85;
}

/* ─── Dashboard: publiceer-rij ──────────────────────────────────────────── */

.election-publish-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 4px;
}

.election-publish-row__hint {
    font-size: 12px;
}

/* ─── Dashboard: offline-datum ──────────────────────────────────────────── */

.election-offline-date {
    font-size: 12px;
    margin: 6px 0 2px;
}

/* ─── Participants-tabel (account/participants.php) ─────────────────────── */

.participants-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    white-space: nowrap;
}

.participants-table th,
.participants-table td {
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.participants-table th {
    background: var(--cream);
    font-weight: 700;
    position: sticky;
    top: 0;
}

.participants-table__stmt-th {
    min-width: 70px;
    text-align: center;
}

.participants-table__name {
    white-space: normal;
    min-width: 160px;
}

.participants-table__row--responded {
    background: var(--success-subtle);
}

.participants-table__answer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.participants-table__answer--filled {
    color: var(--text);
    font-weight: 600;
}

.participants-table__legend {
    font-size: 0.88rem;
    color: var(--text);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.participants-table__legend h3 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
}

.participants-table__legend p {
    margin: 0.2rem 0;
}

/* ─── Stap 5 organizer: inline standpunten per stelling ─────────────────── */

.statement-item--with-positions {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.statement-item--with-positions .statement-item__fields {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
}

.statement-item--with-positions .btn-remove-item {
    margin-top: 0.5rem;
}

.stmt-positions {
    padding: 1rem 1.5rem 1.25rem;
    background: #f2f4fd;
}

.stmt-positions__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 0.85rem;
}

.stmt-positions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.stmt-pos-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.15s;
}

.stmt-pos-card:focus-within {
    box-shadow: 0 0 0 3px var(--brand-glow);
    border-color: var(--brand);
}

.stmt-pos-card__name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.stmt-pos-card__cat {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.stmt-pos-card__select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s;
}

.stmt-pos-card__select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

.stmt-pos-card__explanation {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.82rem;
    color: var(--text);
    resize: vertical;
    transition: border-color 0.15s;
}

.stmt-pos-card__explanation:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

.stmt-positions__empty-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
    padding: 0.75rem 1.5rem 1rem;
}

/* ══ Custom colour picker (stap 1) ════════════════════════════════════ */

.color-picker-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.color-picker-preview {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.1s;
}

.color-picker-preview:hover {
    transform: scale(1.05);
}

.color-picker-hex {
    flex: 1;
    font-family: var(--font-mono, monospace);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    max-width: 10rem;
}

.color-picker-palette {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 50;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(15, 15, 18, 0.12);
    min-width: 260px;
}

.color-picker-palette[hidden] {
    display: none;
}

.color-picker-swatches {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.1s;
    padding: 0;
    outline: none;
}

.color-swatch:hover {
    transform: scale(1.12);
    border-color: var(--ink);
}

.color-swatch.is-selected {
    border-color: var(--ink);
    transform: scale(1.08);
}

.color-picker-sliders {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: visible;
    padding: 0 0 0.25rem;
}

.color-picker-slider-label {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs, 0.75rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}

.color-picker-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    background: var(--border);
    position: relative;
    z-index: 0;
}

.color-picker-range--r { background: linear-gradient(to right, #000, #f00); }
.color-picker-range--g { background: linear-gradient(to right, #000, #0f0); }
.color-picker-range--b { background: linear-gradient(to right, #000, #00f); }

.color-picker-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--ink, #0f0f12);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.color-picker-range::-webkit-slider-container {
    overflow: visible;
}

.color-picker-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--ink, #0f0f12);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
}

.color-picker-range::-webkit-slider-runnable-track {
    border-radius: 3px;
    height: 6px;
}

.color-picker-range::-moz-range-track {
    border-radius: 3px;
    height: 6px;
}

/* ══ Step 6 stellingname ═══════════════════════════════════════════════ */

.stmt-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.stmt-block__header {
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--cream);
}

.stmt-block__num {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
}

.stmt-block__text {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.25rem;
}

.stmt-block__dilemma {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

.stmt-positions--inline {
    padding: 0.75rem 1.25rem 1rem;
}

/* ══ Invite flow (stap 6 invite-modus) ════════════════════════════════ */

.invite-send-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.invite-participants-preview {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

.invite-participants-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: var(--text-sm);
}

.invite-send-actions {
    margin-top: 0.5rem;
}

.invite-sent-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    padding: 0.9rem 1.25rem;
    margin-bottom: 1.5rem;
}

.invite-sent-banner__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.invite-overview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.invite-overview__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.invite-overview__score {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}

.invite-overview__score.is-complete {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.invite-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.invite-row--done {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.invite-row__name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 10rem;
    font-size: var(--text-sm);
    font-weight: 500;
}

.invite-row__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.invite-row--done .invite-row__status-dot {
    background: #22c55e;
}

.invite-row__status-label {
    font-size: var(--text-xs, 0.75rem);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.invite-row--done .invite-row__status-label {
    color: #15803d;
}

.invite-row__answers {
    width: 100%;
    margin-top: 0.5rem;
}

.invite-row__answers summary {
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--brand);
    font-weight: 500;
    padding: 0.25rem 0;
}

.invite-row__answers-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.invite-answer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
}

.invite-answer__stmt {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.3rem;
}

.invite-answer__val {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

.invite-answer__val.has-answer {
    color: var(--brand);
    font-weight: 600;
}

.invite-answer__expl {
    font-size: var(--text-xs, 0.75rem);
    color: var(--text-muted);
    margin: 0.2rem 0 0;
    font-style: italic;
}

/* ══ Stap 8: looptijd timing grid ═══════════════════════════════════════ */

.pub-timing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 560px) {
    .pub-timing-grid { grid-template-columns: 1fr; }
}

.field-label-hint {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary, #6b7280);
    margin-left: 0.25rem;
}

/* ══ Toggle switch (landingspagina) ════════════════════════════════════ */

.landing-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    color: var(--ink, #0f0f12);
}

.toggle-switch__track {
    display: inline-block;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #cbd5e1;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s;
}

.toggle-switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.toggle-switch.is-on .toggle-switch__track {
    background: var(--brand, #2563eb);
}

.toggle-switch.is-on .toggle-switch__track::after {
    transform: translateX(20px);
}

.landing-page-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.landing-page-status-badge.is-on {
    background: #dcfce7;
    color: #166534;
}

.landing-page-status-badge.is-off {
    background: #f1f5f9;
    color: #64748b;
}

/* ══ Landing-page status indicator (stap 8) ════════════════════════════ */

.landing-page-status {
    margin-top: 0.75rem;
}

.landing-page-status.is-hidden {
    display: none;
}

/* ══ Embed panel (stap 8 success) ══════════════════════════════════════ */

.embed-panel {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.embed-panel summary {
    padding: 0.65rem 1rem;
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--brand);
    background: var(--cream);
}

.embed-panel .code-snippet {
    margin: 0.75rem 1rem;
}

.embed-panel .btn {
    margin: 0 1rem 0.75rem;
}

