/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.nav-center-right {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    margin-right: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.webmail-link {
    background: var(--accent-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.webmail-link:hover {
    background: #2980b9;
}

.webmail-link::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.6);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.content-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.content-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* About Content */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.about-intro .lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-intro p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.about-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.about-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section strong {
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    background: var(--bg-light);
}

.faq-accordion {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-white);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-color);
    transition: var(--transition);
    min-width: 24px;
    text-align: center;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-answer.active {
    max-height: 2000px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--text-light);
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.faq-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.faq-link:hover {
    text-decoration: underline;
}

.lessen-tijden {
    list-style: none;
    padding-left: 0;
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.lessen-tijden li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.lessen-tijden li:last-child {
    border-bottom: none;
}

/* Lessen Info */
.lessen-info {
    text-align: center;
    margin-bottom: 3rem;
}

.lessen-location {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.lessen-location h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.lessen-location p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.lessen-location p:last-child {
    margin-bottom: 0;
}

.lessen-benefit {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
}

.lessen-benefit p {
    margin: 0;
    font-size: 1.1rem;
}

/* Classes Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

.class-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.class-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
    position: relative;
    z-index: 1;
}

.class-header:has(.info-icon:hover) {
    z-index: 10004;
}

.class-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.class-card h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
    position: relative;
}

.class-details {
    flex-grow: 1;
}

.class-details p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.class-details p:last-child {
    margin-bottom: 0;
}

.class-details strong {
    color: var(--primary-color);
}

/* Info Icon with Tooltip */
.info-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: help;
    margin-left: 0.5rem;
    position: relative;
    vertical-align: middle;
    transition: var(--transition);
    z-index: 10002;
}

.class-card:has(.info-icon:hover) {
    z-index: 10003;
}

.class-header h3 {
    position: relative;
    z-index: 1;
}

.class-header h3:has(.info-icon:hover) {
    z-index: 10005;
}

.info-icon:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: normal;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999999 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.info-icon::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000000 !important;
}

.info-icon:hover::after,
.info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Shop Items */
.shop-item {
    cursor: default;
}

/* Contact Section */
.contact-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.contact-block {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.contact-block h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.75rem;
}

.contact-block p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-block p:last-of-type {
    margin-bottom: 0;
}

.contact-block a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-block a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Captcha */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.captcha-question {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    white-space: nowrap;
}

.captcha-wrapper input {
    flex: 0 0 100px;
    max-width: 120px;
}

.captcha-hint {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Email Section */
.email-address {
    font-size: 1.1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.email-address:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


.email-button {
    margin-top: 0.75rem;
    display: inline-block !important;
    width: 100%;
    text-align: center;
    background: var(--accent-color) !important;
    color: white !important;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: visible;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

.email-button * {
    opacity: 1 !important;
    visibility: visible !important;
}

.email-button::before {
    content: '✉️ ';
    font-size: 1.2rem;
    display: inline-block;
    opacity: 1;
    visibility: visible;
}

.email-button:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: white;
}

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

.email-help-text {
    margin-top: 0.75rem;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Phone Section */
.phone-link {
    font-size: 1.1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.whatsapp-button {
    margin-top: 0.75rem;
    background: #25D366 !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
}

.whatsapp-button::before {
    content: '💬 ';
}

.whatsapp-button:hover {
    background: #20BA5A !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
}

.whatsapp-help-text {
    margin-top: 0.75rem;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-links a {
    font-size: 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Admin Lesson Config Styles */
.admin-lesson-config-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.admin-lesson-configs-table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.admin-lesson-configs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-lesson-configs-table thead {
    background: var(--primary-color);
    color: white;
}

.admin-lesson-configs-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-lesson-configs-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-lesson-configs-table tbody tr:hover {
    background: var(--bg-light);
}

.admin-lesson-configs-table tbody tr:last-child td {
    border-bottom: none;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.btn-danger {
    background: var(--secondary-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.instructor-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.instructor-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-logo {
        height: 32px;
    }

    .nav-brand h1 {
        font-size: 1.25rem;
    }

    .nav-center-right {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--bg-white);
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        z-index: 999;
        flex-direction: column;
    }

    .nav-center-right.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .login-link {
        display: block;
        text-align: center;
        margin: 1.5rem auto 0;
        width: fit-content;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .contact-blocks {
        grid-template-columns: 1fr;
    }

    .content-grid,
    .classes-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .captcha-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .captcha-wrapper input {
        width: 100%;
        max-width: 100%;
    }
    
    .email-button {
        width: 100%;
    }
    
    .info-icon::after {
        width: 240px;
        font-size: 0.85rem;
        left: auto;
        right: 0;
        transform: none;
    }
    
    .info-icon::before {
        left: auto;
        right: 20px;
        transform: none;
    }
}

/* Toasts (shared UI utility) */
.dojo-toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.dojo-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    background: #111827;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 12px 12px 12px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-left: 4px solid #22c55e;
    animation: dojoToastIn 160ms ease-out;
}

.dojo-toast--error { border-left-color: #ef4444; }
.dojo-toast--warning { border-left-color: #f59e0b; }
.dojo-toast--info { border-left-color: #3b82f6; }

.dojo-toast__text {
    font-size: 0.95rem;
    line-height: 1.35;
    word-break: break-word;
}

.dojo-toast__close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.dojo-toast__close:hover {
    color: #fff;
}

.dojo-toast--hide {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Webmail Page Styles */
.webmail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.webmail-header {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.webmail-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Login Page Styles */
.login-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.login-container {
    max-width: 550px;
    width: 100%;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.login-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.login-form {
    margin-top: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.login-form .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.login-form .form-group input::placeholder {
    color: #999;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-color);
    font-weight: normal;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checkbox-label span {
    user-select: none;
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.register-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.register-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Login Link in Navigation */
.login-link {
    background: var(--accent-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 2rem;
    position: relative;
    z-index: 1;
}

.login-link:hover {
    background: #2980b9;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.login-link::after {
    display: none;
}

/* Responsive Login */
@media (max-width: 768px) {
    .login-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .form-group-checkbox {
        align-items: flex-start;
    }
}

/* Dashboard Page Styles */
.dashboard-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.dashboard-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dashboard-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.dashboard-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.dashboard-card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.dashboard-card-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.dashboard-card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.dashboard-welcome-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.dashboard-welcome-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.dashboard-welcome-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }
    
    .dashboard-subtitle {
        font-size: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-welcome-box {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-welcome-box h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-welcome-box p {
        font-size: 1rem;
    }
}

/* Profile Page Styles */
.profile-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.profile-header {
    margin-bottom: 3rem;
}

.back-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.profile-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.profile-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

.profile-content {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-hover);
}

.avatar-icon {
    font-size: 4rem;
    line-height: 1;
}

.profile-name {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.profile-role {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.profile-edit-btn {
    margin-top: 1rem;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-info-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.profile-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.profile-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.profile-info-icon {
    font-size: 2rem;
    line-height: 1;
}

.profile-info-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.profile-info-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-info-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info-value {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.5;
}

.status-active {
    color: #27ae60 !important;
    font-weight: 600;
}

.status-inactive {
    color: #e74c3c !important;
    font-weight: 600;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.profile-actions .btn {
    min-width: 200px;
}

/* Responsive Profile */
@media (max-width: 768px) {
    .profile-title {
        font-size: 2rem;
    }
    
    .profile-subtitle {
        font-size: 1rem;
    }
    
    .profile-card {
        padding: 2rem 1.5rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .avatar-icon {
        font-size: 3rem;
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-info-card {
        padding: 1.5rem;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-actions .btn {
        width: 100%;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
    pointer-events: none;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 1;
    pointer-events: auto;
    opacity: 1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 10002;
    margin: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
}

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

.modal-large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid var(--bg-light);
    position: sticky;
    top: 0;
    background: var(--bg-white);
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.modal-close {
    background: var(--bg-light);
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    font-weight: 300;
    line-height: 1;
}

.modal-close:hover {
    background: var(--secondary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Article Modal Styles */
.article-modal-header {
    padding: 2.5rem 2rem 2rem 2rem;
    border-bottom: 2px solid var(--bg-light);
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-white) 95%, rgba(255, 255, 255, 0.98) 100%);
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

.article-modal-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    color: white;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.article-modal-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 0 0 1.25rem 0;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.article-modal-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    overflow-x: auto;
    max-height: calc(90vh - 200px);
}

.article-modal-body::-webkit-scrollbar {
    width: 8px;
}

.article-modal-body::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.article-modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.article-modal-body::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.article-modal-body h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1.25rem 0;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.article-modal-body h3:first-child {
    margin-top: 0;
}

.article-modal-body p {
    color: var(--text-color);
    line-height: 1.9;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.article-modal-body ul,
.article-modal-body ol {
    margin: 1.5rem 0 1.5rem 2.5rem;
    color: var(--text-color);
    line-height: 1.9;
    font-size: 1.05rem;
}

.article-modal-body li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.article-modal-body li::marker {
    color: var(--accent-color);
}

.article-modal-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tables inside rich-text article content */
.article-modal-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    background: var(--bg-white);
    border: 1px solid var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
}

.article-modal-body thead th {
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 700;
}

.article-modal-body th,
.article-modal-body td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--bg-light);
    border-right: 1px solid var(--bg-light);
    vertical-align: top;
    text-align: left;
}

.article-modal-body th:last-child,
.article-modal-body td:last-child {
    border-right: none;
}

.article-modal-body tbody tr:last-child td {
    border-bottom: none;
}

.article-modal-body tbody tr:nth-child(even) {
    background: #fafbfc;
}

.profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-light);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-edit-form .form-group {
    margin-bottom: 1.5rem;
}

.profile-edit-form .form-group:last-child {
    margin-bottom: 0;
}

.profile-edit-form .form-row .form-group:last-child {
    margin-bottom: 1.5rem;
}

.profile-edit-form .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.profile-edit-form .form-group input,
.profile-edit-form .form-group select,
.profile-edit-form .form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-color);
}

.profile-edit-form .form-group input:hover,
.profile-edit-form .form-group select:hover,
.profile-edit-form .form-group textarea:hover {
    border-color: rgba(52, 152, 219, 0.4);
}

.profile-edit-form .form-group input:focus,
.profile-edit-form .form-group select:focus,
.profile-edit-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
}

.profile-edit-form .form-group select {
    cursor: pointer;
}

.profile-edit-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-light);
}

.modal-actions .btn {
    min-width: 120px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal.active {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* Progress Page Styles */
.progress-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.progress-header {
    margin-bottom: 3rem;
}

.progress-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.progress-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

.progress-current-grade {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.progress-grade-icon {
    font-size: 5rem;
    line-height: 1;
}

.progress-grade-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: white;
}

.progress-grade-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.progress-grade-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.progress-stat-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.progress-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.progress-stat-icon {
    font-size: 3rem;
    line-height: 1;
}

.progress-stat-content h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.progress-stat-number {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.progress-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.progress-exams-section {
    margin-bottom: 3rem;
}

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

.progress-exam-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.progress-exam-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.progress-exam-date {
    background: var(--accent-color);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 90px;
}

.exam-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.exam-month {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exam-year {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.progress-exam-info {
    flex: 1;
}

.progress-exam-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-exam-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.progress-exam-instructor {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.progress-exam-badge {
    display: flex;
    align-items: center;
}

.exam-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-passed {
    background: #d4edda;
    color: #155724;
}

.progress-belts-section {
    margin-bottom: 3rem;
}

.progress-belts-category {
    margin-bottom: 3rem;
}

.progress-belts-category:last-child {
    margin-bottom: 0;
}

.progress-category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-light);
}

.progress-belts-timeline {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    position: relative;
}

.progress-belt-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 120px;
    position: relative;
}

.belt-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.belt-completed .belt-circle {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.belt-completed .belt-circle::after {
    content: '✓';
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.belt-current .belt-circle {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    animation: pulse 2s infinite;
}

.belt-current .belt-circle::after {
    content: '';
    font-size: 1.5rem;
    color: white;
}

.belt-upcoming .belt-circle {
    background: var(--bg-light);
    border-color: var(--border-color);
}

.belt-info {
    text-align: center;
}

.belt-info h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.belt-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.belt-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
}

.progress-skills-section {
    margin-bottom: 2rem;
}

.progress-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.progress-skill-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.progress-skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.progress-skill-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.progress-skill-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, #2980b9 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-skill-level {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* Responsive Progress */
@media (max-width: 768px) {
    .progress-title {
        font-size: 2rem;
    }
    
    .progress-subtitle {
        font-size: 1rem;
    }
    
    .progress-current-grade {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .progress-grade-icon {
        font-size: 4rem;
    }
    
    .progress-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .progress-stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .progress-exam-card {
        flex-direction: column;
        text-align: center;
    }
    
    .progress-belts-timeline {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    
    .progress-skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Agenda Page Styles */
.agenda-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.agenda-header {
    margin-bottom: 3rem;
}

.agenda-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.agenda-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

.agenda-calendar-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.agenda-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-month-year {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.btn-calendar-nav {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-calendar-nav:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    text-decoration: none;
}

.agenda-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.75rem;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    min-height: 100px;
}

.calendar-day:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day.empty:hover {
    background: transparent;
}

.calendar-day.past-day {
    opacity: 0.5;
    cursor: default;
}

.calendar-day.past-day:hover {
    background: var(--bg-light);
    border-color: var(--border-color);
}

.day-number {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.calendar-day:hover .day-number {
    color: white;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.3rem;
    width: 100%;
    max-height: calc(100% - 1.5rem);
    overflow: hidden;
    flex-shrink: 0;
}

.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.event-dot.lesson {
    background: var(--accent-color);
}

.event-dot.event {
    background: var(--secondary-color);
}

.event-banner {
    font-size: 0.65rem;
    padding: 0.2rem 0.35rem;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    width: 100%;
    line-height: 1.2;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.event-banner:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.event-detail-content {
    padding: 0;
}

.event-detail-value {
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 6px;
    color: var(--text-color);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    word-wrap: break-word;
    line-height: 1.5;
}

.event-banner-lesson {
    background: var(--accent-color);
}

.event-banner-event {
    background: var(--secondary-color);
}

.event-banner-training {
    background: #28a745;
}

.event-banner-seminar {
    background: #6f42c1;
}

.event-banner-workshop {
    background: #fd7e14;
}

.event-banner-examen {
    background: #dc3545;
}

.event-banner-proefexamen {
    background: #ffc107;
    color: var(--primary-color);
}

.event-banner-evenement {
    background: #17a2b8;
}

.event-banner-wedstrijd {
    background: #0d6efd;
}

.event-banner-uitje {
    background: #198754;
}

.event-banner-holiday {
    background: #ff6b6b;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.legend-item .event-banner {
    min-width: 60px;
    text-align: center;
}

.agenda-events-section {
    margin-bottom: 2rem;
}

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

.agenda-event-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.agenda-event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.event-date-badge {
    background: var(--accent-color);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

.event-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-details p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.event-time {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.event-type-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.event-type-training {
    background: #d4edda;
    color: #155724;
}

.event-type-workshop {
    background: #fff3cd;
    color: #856404;
}

.event-type-exam {
    background: #f8d7da;
    color: #721c24;
}

/* Settings Page Styles */
.settings-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.settings-header {
    margin-bottom: 3rem;
}

.settings-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.settings-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

.settings-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-card {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.settings-card:hover {
    box-shadow: var(--shadow-hover);
}

.settings-card-danger {
    border: 2px solid #f8d7da;
}

.settings-card-header {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
}

.settings-card-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.settings-card-body {
    padding: 2rem;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--bg-light);
}

.settings-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-item-info h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.settings-item-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.settings-input-disabled {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background-color: var(--bg-light);
    color: var(--text-light);
    cursor: not-allowed;
    width: 100%;
    max-width: 400px;
    margin: 0;
}

.settings-input-disabled:disabled,
select.settings-input-disabled:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.settings-btn {
    min-width: 100px;
}

.settings-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--bg-light);
}

.settings-toggle-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-toggle-info h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.settings-toggle-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.settings-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--primary-color);
    cursor: pointer;
    min-width: 200px;
    transition: var(--transition);
}

.settings-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Responsive Agenda & Settings */
@media (max-width: 768px) {
    .agenda-title,
    .settings-title {
        font-size: 2rem;
    }
    
    .agenda-subtitle,
    .settings-subtitle {
        font-size: 1rem;
    }
    
    .agenda-calendar-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .agenda-calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-day {
        padding: 0.25rem;
        font-size: 0.8rem;
    }
    
    .agenda-event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .settings-item,
    .settings-toggle-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .settings-btn {
        width: 100%;
    }
    
    .settings-select {
        width: 100%;
        min-width: auto;
    }
}

/* Lessons Page Styles */
.lessons-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.lessons-header {
    margin-bottom: 3rem;
}

.lessons-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.lessons-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

.lessons-info-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    margin-bottom: 3rem;
}

.lessons-info-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lessons-info-icon {
    font-size: 4rem;
    line-height: 1;
}

.lessons-info-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: white;
}

.lessons-info-text p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.lessons-info-text strong {
    color: white;
    font-weight: 600;
}

.section-subtitle {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.schedule-section {
    margin-bottom: 3rem;
}

.schedule-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-month-item {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.schedule-month-item:hover {
    box-shadow: var(--shadow-hover);
}

.schedule-month-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
    transition: var(--transition);
}

.schedule-month-header:hover {
    background: #34495e;
}

.schedule-month-name {
    flex: 1;
}

.schedule-month-icon {
    font-size: 1.5rem;
    font-weight: 300;
    min-width: 30px;
    text-align: center;
    transition: var(--transition);
}

.schedule-month-header[aria-expanded="true"] .schedule-month-icon {
    transform: rotate(0deg);
}

.schedule-month-header[aria-expanded="false"] .schedule-month-icon {
    transform: rotate(0deg);
}

.schedule-month-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 2rem;
}

.schedule-month-content.active {
    max-height: 10000px;
    padding: 2rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.schedule-day {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.schedule-day:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.schedule-day-vacation {
    border: 2px solid #e74c3c;
    background: #fff5f5;
}

.schedule-day-vacation .schedule-day-header {
    background: #e74c3c;
    color: white;
}

.schedule-vacation-message {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.schedule-vacation-icon {
    font-size: 3rem;
    line-height: 1;
}

.schedule-vacation-text h4 {
    font-size: 1.3rem;
    color: #e74c3c;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.schedule-vacation-text p {
    color: #c0392b;
    margin: 0;
    font-size: 1rem;
}

.schedule-day-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-day-header h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.schedule-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.schedule-class {
    padding: 1.5rem;
    transition: var(--transition);
}

.schedule-class-my-group {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.schedule-class-time {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.schedule-class-my-group .schedule-class-time {
    color: var(--accent-color);
    font-weight: 700;
}

.schedule-class-info h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.schedule-class-my-group .schedule-class-info h4 {
    color: var(--accent-color);
    font-weight: 700;
}

.my-group-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-class-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.schedule-class-info p:last-child {
    margin-bottom: 1rem;
}

.schedule-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-attending {
    background: #d4edda;
    color: #155724;
}

.status-absent {
    background: #f8d7da;
    color: #721c24;
}

.lessons-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.lessons-stat-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.lessons-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.lessons-stat-icon {
    font-size: 3rem;
    line-height: 1;
}

.lessons-stat-content h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.lessons-stat-number {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.lessons-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.events-section {
    margin-bottom: 2rem;
}

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

.event-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.event-date {
    background: var(--accent-color);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

.event-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-info {
    flex: 1;
}

.event-info h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.event-time {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.event-btn {
    white-space: nowrap;
}

/* Responsive Lessons */
@media (max-width: 768px) {
    .lessons-title {
        font-size: 2rem;
    }
    
    .lessons-subtitle {
        font-size: 1rem;
    }
    
    .lessons-info-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .lessons-info-icon {
        font-size: 3rem;
    }
    
    .schedule-month-header {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .schedule-month-content.active {
        padding: 1.5rem;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .lessons-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .lessons-stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .lessons-stat-icon {
        font-size: 2.5rem;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-btn {
        width: 100%;
    }
}

/* Members Section */
.members-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.members-header {
    margin-bottom: 3rem;
}

.members-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.members-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Members Statistics */
.members-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.members-stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.members-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.members-stat-card-clickable {
    cursor: pointer;
}

.members-stat-card-clickable:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--accent-color);
}

.members-stat-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.members-stat-content h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.members-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Members Toolbar */
.members-toolbar {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.members-search-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.members-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.members-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
}

.members-filters-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.members-filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.members-filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.member-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.member-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.avatar-icon {
    font-size: 2rem;
}

.member-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.member-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.member-badge-role {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.member-badge-lid {
    background: rgba(52, 152, 219, 0.8);
}

.member-badge-kader {
    background: rgba(46, 204, 113, 0.8);
}

.member-badge-instructeur {
    background: rgba(231, 76, 60, 0.8);
}

.member-badge-secretaris {
    background: rgba(155, 89, 182, 0.8);
}

.member-badge-sensei {
    background: rgba(241, 196, 15, 0.8);
}

.member-badge-sempai {
    background: rgba(52, 152, 219, 0.8);
}

.member-badge-grade {
    background: rgba(255, 255, 255, 0.2);
}

/* Instructor select styling */
.instructor-select-wrapper {
    position: relative;
}

.instructor-select {
    padding-right: 5rem !important;
}

.instructor-role-badge {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.member-badge-wit {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.member-badge-geel {
    background: #f1c40f;
    color: #333;
}

.member-badge-oranje {
    background: #e67e22;
}

.member-badge-groen {
    background: #27ae60;
}

.member-badge-blauw {
    background: #3498db;
}

.member-badge-bruin {
    background: #8b4513;
}

.member-badge-zwart {
    background: #1a1a1a;
}

.member-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.member-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.member-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.member-detail-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.member-detail-text {
    flex: 1;
}

.member-card-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .members-toolbar {
        flex-direction: column;
    }
    
    .members-search-wrapper {
        width: 100%;
    }
    
    .members-filters-wrapper {
        width: 100%;
    }
    
    .members-filter-select {
        flex: 1;
        min-width: 0;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .members-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .member-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    
    .member-item-name,
    .member-item-grade,
    .member-item-role {
        text-align: center;
    }
}

/* Members Modal */
.members-modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--bg-light);
    position: sticky;
    top: 0;
    background: var(--bg-white);
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

.members-modal-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.members-modal-body {
    padding: 2rem;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.members-modal-body::-webkit-scrollbar {
    width: 8px;
}

.members-modal-body::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.members-modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.members-modal-body::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

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

.member-item {
    background: var(--bg-white);
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr;
    gap: 1rem;
    align-items: center;
    transition: var(--transition);
}

.member-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.member-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.member-item-grade {
    font-size: 0.95rem;
    font-weight: 600;
}

.member-item-grade[data-belt="wit"] {
    color: #999;
}

.member-item-grade[data-belt="geel"] {
    color: #f1c40f;
}

.member-item-grade[data-belt="oranje"] {
    color: #e67e22;
}

.member-item-grade[data-belt="groen"] {
    color: #27ae60;
}

.member-item-grade[data-belt="blauw"] {
    color: #3498db;
}

.member-item-grade[data-belt="bruin"] {
    color: #8b4513;
}

.member-item-grade[data-belt="zwart"] {
    color: #1a1a1a;
    font-weight: 700;
}

.member-item-role {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-item-role[data-role="Lid"] {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.member-item-role[data-role="Kader"] {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.member-item-role[data-role="Instructeur"] {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.member-item-role[data-role="Secretaris"] {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

/* Admin Members Section */
.admin-members-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--primary-color);
}

.admin-members-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.admin-members-table-container {
    overflow-x: auto;
    margin-top: 2rem;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1rem;
}

.admin-members-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.admin-members-table thead {
    background: var(--primary-color);
    color: white;
}

.admin-members-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-members-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-members-table tbody tr:hover {
    background: var(--bg-light);
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.no-members {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* DOPedia Section */
.dopedia-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.dopedia-header {
    margin-bottom: 3rem;
}

.dopedia-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dopedia-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* DOPedia Search */
.dopedia-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.dopedia-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1.1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.dopedia-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.dopedia-search-wrapper .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    pointer-events: none;
}

/* DOPedia Categories */
.dopedia-categories {
    margin-bottom: 4rem;
}

.dopedia-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dopedia-category-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.dopedia-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.dopedia-category-card.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.dopedia-category-card.active h3,
.dopedia-category-card.active p {
    color: white;
}

.dopedia-category-card.active .category-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dopedia-category-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.dopedia-category-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-count {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* DOPedia Articles Section */
.dopedia-articles-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.dopedia-articles-section .section-subtitle {
    margin-bottom: 2rem;
}

.no-articles {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.dopedia-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dopedia-article-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--accent-color);
}

.dopedia-article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-category-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.article-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-date,
.article-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.article-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* DOPedia Recent Articles */
.dopedia-recent {
    margin-bottom: 2rem;
}

.dopedia-articles-list {
    margin-top: 2rem;
}

.dopedia-article-item {
    background: var(--bg-white);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.dopedia-article-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.article-item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.article-item-content {
    flex-grow: 1;
}

.article-item-content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.article-item-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.article-item-link {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.article-item-link:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

/* Responsive DOPedia */
@media (max-width: 768px) {
    .dopedia-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .dopedia-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .dopedia-article-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .article-item-link {
        align-self: center;
    }
}
/* === Member hub Design B === */
/* Persistent sidebar + main panel for logged-in members (dashboard.php).
   Cream/charcoal theme with red accent. All selectors prefixed .mh- / .member-hub-body. */
.member-hub-body {
    --mh-cream: #f6f1e7;
    --mh-cream-2: #efe7d8;
    --mh-paper: #fffdf8;
    --mh-ink: #1f1d1b;
    --mh-ink-2: #2b2825;
    --mh-ink-soft: #6b645b;
    --mh-line: #e3d9c6;
    --mh-red: #c8102e;
    --mh-red-soft: #fbe7e9;
    --mh-radius: 14px;
    --mh-sidebar-w: 248px;
    background: var(--mh-cream);
    color: var(--mh-ink);
}

.mh-shell {
    display: grid;
    grid-template-columns: var(--mh-sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.mh-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--mh-ink);
    color: #ece6dc;
    border-right: 4px solid var(--mh-red);
    padding: 1.25rem 0.9rem 1rem;
    overflow-y: auto;
    z-index: 1100;
}

.mh-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.25rem 0.5rem 1.25rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: inherit;
    text-decoration: none;
}

.mh-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
}

.mh-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.mh-brand-text strong { font-size: 0.98rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-brand-text small { font-size: 0.72rem; color: #a9a196; letter-spacing: 0.08em; text-transform: uppercase; }

.mh-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.mh-nav-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a8279;
    padding: 0.9rem 0.75rem 0.35rem;
}

.mh-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.62rem 0.75rem;
    border-radius: 10px;
    color: #ddd6cb;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.mh-nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.mh-nav-item.is-active {
    background: rgba(200, 16, 46, 0.16);
    color: #fff;
    font-weight: 600;
}

.mh-nav-item.is-active::before {
    content: '';
    position: absolute;
    left: -0.9rem;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--mh-red);
}

.mh-nav-icon { width: 1.4rem; text-align: center; font-size: 1.05rem; }
.mh-nav-item-staff { font-size: 0.9rem; color: #bfb7ab; }

.mh-sidebar-bottom {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mh-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}
.mh-user:hover, .mh-user.is-active { background: rgba(255, 255, 255, 0.06); }
.mh-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mh-user-text strong { color: #fff; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-user-text small { color: #b3ab9f; font-size: 0.78rem; display: flex; align-items: center; gap: 0.35rem; }

.mh-belt-dot {
    display: inline-block;
    width: 18px;
    height: 6px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.mh-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mh-red);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-decoration: none;
}
.mh-avatar-sm { width: 34px; height: 34px; font-size: 0.8rem; }

.mh-user-links { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; padding: 0 0.6rem; }
.mh-user-links a { color: #b3ab9f; font-size: 0.82rem; text-decoration: none; }
.mh-user-links a:hover, .mh-user-links a.is-active { color: #fff; text-decoration: underline; }

.mh-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: #ddd6cb;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.mh-logout:hover { border-color: var(--mh-red); color: #fff; background: rgba(200, 16, 46, 0.18); }

/* ---- Main ---- */
.mh-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mh-footer {
    margin-top: auto;
    padding: 1.25rem 2rem;
    color: var(--mh-ink-soft);
    font-size: 0.8rem;
    border-top: 1px solid var(--mh-line);
}

/* Existing dashboard sub-pages inside the shell: calmer spacing */
.mh-main .section { padding: 2.5rem 0; }
.mh-main .dashboard-section { min-height: 0; }
.mh-main > section > .container,
.mh-main .section > .container { max-width: 1180px; padding: 0 2rem; }

.mh-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mh-alert {
    background: var(--mh-red-soft);
    color: #7a0a1c;
    border-left: 4px solid var(--mh-red);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
}

/* Hero */
.mh-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 1.5rem;
    align-items: stretch;
}

.mh-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mh-ink-soft);
    margin-bottom: 0.35rem;
}

.mh-greeting {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--mh-ink);
    margin-bottom: 0.9rem;
}

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

.mh-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: var(--mh-paper);
    border: 1px solid var(--mh-line);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mh-ink-2);
}
.mh-chip-muted { font-weight: 500; color: var(--mh-ink-soft); background: transparent; }
.mh-chip-belt { background: #fff; }

.mh-belt-bar {
    width: 26px;
    height: 8px;
    border-radius: 4px;
    background: var(--belt, #ccc);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.mh-next {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.2rem 1.4rem 1.2rem 1.6rem;
    border-radius: var(--mh-radius);
    background: var(--mh-ink);
    color: #f3ede3;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mh-next::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: var(--mh-red);
}
.mh-next:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 29, 27, 0.25); }
.mh-next-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #e8a1ab; font-weight: 700; }
.mh-next-when { font-size: 1.35rem; color: #fff; }
.mh-next-title { font-size: 1rem; font-weight: 600; }
.mh-next-meta { font-size: 0.85rem; color: #b8b0a4; }
.mh-next-arrow { position: absolute; right: 1.2rem; bottom: 1rem; font-size: 1.3rem; color: var(--mh-red); }

/* Cards */
.mh-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.mh-card {
    background: var(--mh-paper);
    border: 1px solid var(--mh-line);
    border-radius: var(--mh-radius);
    padding: 1.3rem 1.4rem;
    box-shadow: 0 1px 2px rgba(31, 29, 27, 0.04);
}

.mh-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.mh-card-head h2 { font-size: 1.15rem; font-weight: 800; color: var(--mh-ink); margin: 0; }
.mh-card-sub { font-size: 0.82rem; color: var(--mh-ink-soft); margin: 0.1rem 0 0; }

.mh-link { font-size: 0.85rem; font-weight: 600; color: var(--mh-red); text-decoration: none; white-space: nowrap; }
.mh-link:hover { text-decoration: underline; }

/* Week timeline */
.mh-timeline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.mh-day {
    display: flex;
    flex-direction: column;
    min-height: 168px;
    border-radius: 12px;
    background: var(--mh-cream);
    border: 1px solid transparent;
    overflow: hidden;
}
.mh-day.is-today { background: #fff; border-color: var(--mh-red); box-shadow: 0 0 0 3px var(--mh-red-soft); }
.mh-day.is-past { opacity: 0.6; }
.mh-day.is-empty .mh-day-body { justify-content: center; }

.mh-day-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.55rem 0.25rem 0.4rem;
    border-bottom: 1px dashed var(--mh-line);
}
.mh-day-name { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mh-ink-soft); font-weight: 700; }
.mh-day-num { font-size: 1.25rem; font-weight: 800; color: var(--mh-ink); line-height: 1.1; }
.mh-day.is-today .mh-day-name, .mh-day.is-today .mh-day-num { color: var(--mh-red); }
.mh-day-today { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: #fff; background: var(--mh-red); border-radius: 999px; padding: 0 0.45rem; margin-top: 2px; }

.mh-day-body { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; padding: 0.45rem; }
.mh-day-rest { font-size: 0.75rem; color: #a59d91; text-align: center; }

.mh-slot {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    background: var(--mh-ink);
    color: #f3ede3;
    text-decoration: none;
    border-left: 3px solid var(--mh-red);
    transition: transform 0.12s ease;
}
.mh-slot:hover { transform: translateY(-1px); }
.mh-slot.is-done { background: var(--mh-cream-2); color: var(--mh-ink-2); border-left-color: #b9ae9b; }
.mh-slot.is-next { box-shadow: 0 0 0 2px var(--mh-red); }
.mh-slot-time { font-size: 0.82rem; font-weight: 800; }
.mh-slot-title { font-size: 0.74rem; font-weight: 600; line-height: 1.25; }
.mh-slot-meta { font-size: 0.68rem; opacity: 0.75; }
.mh-slot-status { font-size: 0.66rem; font-weight: 700; margin-top: 2px; }

/* Progress ring */
.mh-progress { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mh-progress .mh-card-head { align-self: stretch; text-align: left; }

.mh-ring {
    --size: 168px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background:
        conic-gradient(var(--mh-red) calc(var(--pct) * 1%), var(--mh-cream-2) 0);
    display: grid;
    place-items: center;
    margin: 0.25rem auto 1rem;
    position: relative;
}
.mh-ring::after {
    /* subtle belt-colour rim */
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 3px solid var(--belt, transparent);
    opacity: 0.55;
}
.mh-ring-inner {
    width: calc(var(--size) - 30px);
    height: calc(var(--size) - 30px);
    border-radius: 50%;
    background: var(--mh-paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mh-ring-inner strong { font-size: 2.1rem; font-weight: 800; color: var(--mh-ink); line-height: 1; }
.mh-ring-inner small { font-size: 0.76rem; color: var(--mh-ink-soft); margin-top: 0.3rem; }

.mh-belt-path { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.mh-belt-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--mh-line);
    font-weight: 700;
    font-size: 0.85rem;
}
.mh-belt-pill::before {
    content: '';
    width: 16px;
    height: 6px;
    border-radius: 3px;
    background: var(--belt, #ccc);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.mh-belt-arrow { color: var(--mh-red); font-weight: 800; }
.mh-progress-note { font-size: 0.8rem; color: var(--mh-ink-soft); margin-bottom: 1rem; }
.mh-progress-note em { display: block; font-size: 0.74rem; color: #a59d91; margin-top: 0.2rem; }

.mh-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: var(--mh-red);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}
.mh-btn:hover { background: #a50d26; }

/* Quick actions */
.mh-section-title { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mh-ink-soft); font-weight: 800; margin-bottom: 0.6rem; }
.mh-section-title small { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 0.4rem; color: #a59d91; }

.mh-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mh-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    background: var(--mh-paper);
    border: 1px solid var(--mh-line);
    color: var(--mh-ink);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.mh-pill:hover { border-color: var(--mh-red); background: #fff; transform: translateY(-1px); }
.mh-pill-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }

/* Upcoming events */
.mh-empty { font-size: 0.9rem; color: var(--mh-ink-soft); }
.mh-event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.mh-event-list li { display: flex; align-items: center; gap: 0.9rem; }
.mh-event-date { display: flex; flex-direction: column; align-items: center; width: 48px; padding: 0.3rem 0; border-radius: 10px; background: var(--mh-ink); color: #fff; line-height: 1.1; }
.mh-event-date strong { font-size: 1.1rem; }
.mh-event-date small { font-size: 0.68rem; text-transform: uppercase; color: #e8a1ab; }
.mh-event-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mh-event-text small { color: var(--mh-ink-soft); }

/* Staff (secondary) */
.mh-staff { padding-top: 0.5rem; border-top: 1px dashed var(--mh-line); }
.mh-staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.6rem; }
.mh-staff-tile {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: transparent;
    border: 1px solid var(--mh-line);
    color: var(--mh-ink);
    text-decoration: none;
}
.mh-staff-tile:hover { background: var(--mh-paper); border-color: var(--mh-ink-soft); }
.mh-staff-tile strong { display: block; font-size: 0.9rem; }
.mh-staff-tile small { display: block; font-size: 0.76rem; color: var(--mh-ink-soft); line-height: 1.35; }
.mh-staff-icon { font-size: 1.2rem; }

/* Mobile chrome (hidden on desktop) */
.mh-topbar, .mh-tabs, .mh-scrim { display: none; }
.mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 1100px) {
    .mh-grid { grid-template-columns: 1fr; }
    .mh-hero { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .mh-shell { grid-template-columns: 1fr; }

    .mh-topbar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        position: sticky;
        top: 0;
        z-index: 1050;
        padding: 0.6rem 1rem;
        background: var(--mh-ink);
        color: #fff;
        border-bottom: 3px solid var(--mh-red);
        grid-column: 1;
    }
    .mh-topbar-brand { display: flex; align-items: center; gap: 0.5rem; flex: 1; color: #fff; text-decoration: none; font-weight: 700; min-width: 0; }
    .mh-topbar-brand img { width: 30px; height: 30px; background: #fff; border-radius: 8px; padding: 3px; object-fit: contain; }
    .mh-topbar-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mh-menu-btn { display: flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 6px; cursor: pointer; }
    .mh-menu-btn > span:not(.mh-sr) { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

    .mh-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(82vw, 290px);
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }
    .mh-open .mh-sidebar { transform: translateX(0); }
    .mh-open .mh-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 1090; }

    .mh-main { padding-bottom: 68px; }
    .mh-page { padding: 1.25rem 1rem 2rem; }
    .mh-main .section > .container { padding: 0 1rem; }

    .mh-tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 1040;
        background: var(--mh-paper);
        border-top: 1px solid var(--mh-line);
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
    }
    .mh-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0.5rem 0 0.55rem; text-decoration: none; color: var(--mh-ink-soft); font-size: 1.15rem; border-top: 3px solid transparent; }
    .mh-tab small { font-size: 0.68rem; font-weight: 600; }
    .mh-tab.is-active { color: var(--mh-red); border-top-color: var(--mh-red); }

    /* Week becomes a vertical agenda list on phones */
    .mh-timeline { grid-template-columns: 1fr; gap: 0.4rem; }
    .mh-day { flex-direction: row; min-height: 0; }
    .mh-day-head { width: 64px; flex: 0 0 64px; border-bottom: 0; border-right: 1px dashed var(--mh-line); justify-content: center; }
    .mh-day-body { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .mh-day.is-empty .mh-day-body { justify-content: flex-start; }
    .mh-slot { flex: 1 1 160px; }
    .mh-day.is-empty, .mh-day.is-past.is-empty { opacity: 0.5; }
}

/* === Member lessons === */
.mh-main .lessons-member-wrap { padding: 0; min-height: 0; }
.mh-main .lessons-admin-wrap { padding-top: 0; min-height: 0; }
.mh-lessons-actions { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mh-lessons-actions .mh-pill { cursor: pointer; font-family: inherit; }
.mh-next-static:hover { transform: none; box-shadow: none; }
.mh-lside { display: flex; flex-direction: column; gap: 1.5rem; }

.mh-lweek + .mh-lweek { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--mh-line); }
.mh-lweek-head { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--mh-ink-2); margin: 0 0 0.6rem; }
.mh-lweek-head small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--mh-ink-soft); margin-left: 0.35rem; font-size: 0.8rem; }

.mh-lrows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.mh-lrow {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.55rem 0.75rem 0.55rem 0.55rem;
    border-radius: 12px;
    background: var(--mh-cream);
    border: 1px solid transparent;
}
.mh-lrow.is-today { background: #fff; border-color: var(--mh-red); box-shadow: 0 0 0 3px var(--mh-red-soft); }
.mh-lrow.is-next:not(.is-today) { background: #fff; border-color: var(--mh-ink); }
.mh-lrow.is-done { opacity: 0.6; }
.mh-lrow.is-holiday .mh-ltext strong { text-decoration: line-through; color: var(--mh-ink-soft); }

.mh-ldate { display: flex; flex-direction: column; align-items: center; width: 46px; flex: 0 0 46px; padding: 0.25rem 0; border-radius: 10px; background: var(--mh-ink); color: #fff; line-height: 1.1; }
.mh-ldate small { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: #e8a1ab; font-weight: 700; }
.mh-ldate strong { font-size: 1.1rem; }
.mh-lrow.is-done .mh-ldate { background: #b9ae9b; }
.mh-lrow.is-done .mh-ldate small { color: #fff; }
.mh-lrow.is-today .mh-ldate { background: var(--mh-red); }
.mh-lrow.is-today .mh-ldate small { color: #fff; }

.mh-ltext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mh-ltext strong { font-size: 0.95rem; color: var(--mh-ink); }
.mh-ltext small { font-size: 0.8rem; color: var(--mh-ink-soft); }
.mh-lstatus { flex: 0 0 auto; }

.mh-ltag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 700; font-style: normal; background: var(--mh-cream-2); color: var(--mh-ink-2); white-space: nowrap; }
.mh-ltag.is-present { background: rgba(46, 204, 113, 0.15); color: #1b6b3a; }
.mh-ltag.is-next { background: var(--mh-red); color: #fff; }
.mh-ltag.is-holiday { background: #fff3d6; color: #8a5a00; }

.mh-lfixed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.mh-lfixed li { display: flex; flex-direction: column; padding-left: 0.75rem; border-left: 3px solid var(--mh-red); }
.mh-lfixed strong { font-size: 0.92rem; color: var(--mh-ink); }
.mh-lfixed span { font-size: 0.85rem; color: var(--mh-ink-2); }
.mh-lfixed small { font-size: 0.78rem; color: var(--mh-ink-soft); }

@media (max-width: 520px) {
    .mh-lrow { flex-wrap: wrap; }
    .mh-lstatus { margin-left: calc(46px + 0.9rem); }
    .mh-lstatus:empty { display: none; }
}

/* === Member progress === */
.mh-main .progress-legacy {
    padding: 0 0 2.5rem;
    min-height: 0;
}
.mh-main .progress-legacy > .container {
    max-width: 1100px;
    padding: 0 1.5rem;
}
/* Hide old student clutter: current-grade banner, empty history boxes, belt-circle wall, localStorage demo */
.mh-main .progress-legacy .progress-header,
.mh-main .progress-legacy .progress-current-grade,
.mh-main .progress-legacy .progress-exams-section,
.mh-main .progress-legacy .progress-belts-section,
.mh-main .progress-legacy #progress-visual-exam {
    display: none !important;
}
/* Keep DB exam results table when JS reveals it */
.mh-main .progress-legacy #progress-exam-db {
    margin-top: 0.5rem;
}

.mh-progress-page .mh-prog-hero {
    position: relative;
    overflow: hidden;
}
.mh-prog-beltstripe {
    display: block;
    height: 10px;
    border-radius: 999px;
    margin: 0.65rem 0 0.35rem;
    background: var(--belt, #ccc);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.mh-prog-hero[style*="--belt: #FFFFFF"],
.mh-prog-hero[style*="--belt: #ffffff"],
.mh-prog-hero[style*="--belt: #FFF"] {
    /* white belt needs a visible edge – handled by inset shadow on stripe */
}

.mh-prog-next-belt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.25rem 0 0.85rem;
}
.mh-prog-next-label {
    text-align: center;
    font-size: 0.95rem;
    color: var(--mh-ink);
    margin: 0 0 0.25rem;
}
.mh-prog-next-step {
    text-align: center;
    font-size: 0.82rem;
    color: var(--mh-ink-soft);
    margin: 0 0 1rem;
}
.mh-prog-checklist {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.mh-prog-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: var(--mh-cream);
    font-size: 0.9rem;
    color: var(--mh-ink-2);
}
.mh-prog-check {
    flex: 0 0 auto;
    width: 1.1rem;
    text-align: center;
    color: var(--mh-ink-soft);
    font-weight: 700;
}
.mh-prog-checklist li.is-done .mh-prog-check { color: #1b6b3a; }
.mh-prog-req-empty { margin-top: 0.25rem; }

.mh-prog-path { margin-top: 1.5rem; }
.mh-prog-steps {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.mh-prog-step {
    flex: 1 0 auto;
    min-width: 64px;
    max-width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    padding: 0.25rem 0.35rem 0.5rem;
    text-align: center;
}
.mh-prog-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 12px);
    right: calc(-50% + 12px);
    height: 3px;
    background: var(--mh-line);
    z-index: 0;
}
.mh-prog-step.is-done:not(:last-child)::after,
.mh-prog-step.is-current:not(:last-child)::after {
    background: var(--mh-ink);
}
.mh-prog-step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--belt, #ccc);
    border: 2px solid rgba(0,0,0,0.15);
    box-shadow: 0 0 0 3px #fff;
    position: relative;
    z-index: 1;
}
.mh-prog-step.is-done .mh-prog-step-dot {
    outline: 2px solid var(--mh-ink);
    outline-offset: 1px;
}
.mh-prog-step.is-current .mh-prog-step-dot {
    width: 28px;
    height: 28px;
    border-color: var(--mh-red);
    box-shadow: 0 0 0 3px var(--mh-red-soft), 0 0 0 1px #fff;
}
.mh-prog-step.is-next .mh-prog-step-dot {
    border-color: var(--mh-ink);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.mh-prog-step.is-future {
    opacity: 0.45;
}
.mh-prog-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--mh-ink-2);
    line-height: 1.2;
}
.mh-prog-step.is-current .mh-prog-step-label,
.mh-prog-step.is-next .mh-prog-step-label {
    color: var(--mh-ink);
    font-weight: 800;
}
.mh-prog-step-tag {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--mh-red);
    color: #fff;
}
.mh-prog-step-tag.is-next {
    background: var(--mh-ink);
}

.mh-prog-bottom {
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .mh-main .progress-legacy > .container { padding: 0 1rem; }
}
@media (max-width: 520px) {
    .mh-prog-step { min-width: 56px; max-width: 72px; }
    .mh-prog-step-label { font-size: 0.66rem; }
}

/* === Member agenda === */
.mh-main .agenda-admin-wrap { padding: 0 0 2.5rem; min-height: 0; }
.agenda-admin-details { background: var(--mh-paper, #fff); border: 1px dashed var(--mh-line, #ddd); border-radius: 14px; padding: 0.9rem 1.2rem; }
.agenda-admin-summary { cursor: pointer; font-weight: 700; color: var(--mh-ink-2, #333); }
.agenda-admin-details[open] .agenda-admin-summary { margin-bottom: 1rem; }

.mh-ag-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.mh-ag-monthnav { display: flex; align-items: center; gap: 0.5rem; }
.mh-ag-monthnav h2 { font-size: 1.15rem; font-weight: 800; margin: 0; min-width: 9.5rem; text-align: center; color: var(--mh-ink); }
.mh-ag-navbtn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--mh-line); background: var(--mh-cream);
    color: var(--mh-ink); font-size: 1.35rem; line-height: 1; text-decoration: none;
}
.mh-ag-navbtn:hover { border-color: var(--mh-ink); background: #fff; }
.mh-ag-today { font-size: 0.82rem; font-weight: 700; color: var(--mh-red); text-decoration: none; margin-left: 0.25rem; }
.mh-ag-today:hover { text-decoration: underline; }

.mh-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mh-cream-2); border: 1px solid var(--mh-line); }
.mh-seg-btn { padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.84rem; font-weight: 700; color: var(--mh-ink-soft); text-decoration: none; white-space: nowrap; }
.mh-seg-btn.is-active { background: var(--mh-ink); color: #fff; }
.mh-seg-btn:not(.is-active):hover { color: var(--mh-ink); }

.mh-ag-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0 0 1rem; padding: 0 0 0.85rem; border-bottom: 1px solid var(--mh-line); font-size: 0.8rem; color: var(--mh-ink-soft); }
.mh-ag-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.mh-ag-key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mh-ag-key.is-lesson { background: var(--mh-ink); }
.mh-ag-key.is-event { background: var(--mh-red); }
.mh-ag-key.is-holiday { background: #f2c24b; }

/* Row types */
.mh-ag-row { scroll-margin-top: 90px; }
.mh-ag-row.is-event { background: var(--mh-red-soft); }
.mh-ag-row.is-event .mh-ldate { background: var(--mh-red); }
.mh-ag-row.is-event .mh-ldate small { color: #fff; }
.mh-ag-row.is-holiday { background: #fff3d6; }
.mh-ag-row.is-holiday .mh-ldate { background: #e0a82e; }
.mh-ag-row.is-holiday .mh-ldate small { color: #fff; }
.mh-ag-row.is-other { background: transparent; border: 1px dashed var(--mh-line); }
.mh-ag-row.is-other .mh-ldate { background: #cfc5b4; }
.mh-ag-row.is-other .mh-ldate small { color: #fff; }
.mh-ag-row.is-other .mh-ltext strong { color: var(--mh-ink-2); font-weight: 600; }
.mh-ag-type { color: var(--mh-red); margin-right: 0.15rem; }
.mh-ag-type:empty { display: none; }
.mh-ltag.is-other { background: transparent; border: 1px solid var(--mh-line); color: var(--mh-ink-soft); }

button.mh-ltext.mh-ag-open { background: none; border: 0; padding: 0; margin: 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
button.mh-ltext.mh-ag-open:hover strong { text-decoration: underline; }

.mh-ag-cta {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.35rem 0.8rem; border-radius: 999px;
    background: var(--mh-red); color: #fff; font-size: 0.8rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.mh-ag-cta:hover { background: #a50d26; }

@keyframes mhAgFlash { 0% { box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.45); } 100% { box-shadow: 0 0 0 4px rgba(200, 16, 46, 0); } }
.mh-ag-row.is-flash { animation: mhAgFlash 1.4s ease-out; }

/* Own group by default: hide other groups until "Alle groepen" */
.mh-agenda:not(.mh-ag-all) .mh-ag-row[data-mine="0"],
.mh-agenda:not(.mh-ag-all) .mh-lweek.is-other-only,
.mh-agenda:not(.mh-ag-all) .mh-ag-past.is-other-only,
.mh-agenda:not(.mh-ag-all) .mh-mcal-dots .is-other,
.mh-agenda:not(.mh-ag-all) .mh-ag-count-all { display: none; }
.mh-agenda.mh-ag-all .mh-ag-hint,
.mh-agenda.mh-ag-all .mh-ag-count-mine { display: none; }
.mh-agenda:not(.mh-ag-all) .mh-mcal-d.has-other { pointer-events: none; }

.mh-ag-past { margin-bottom: 1rem; border: 1px solid var(--mh-line); border-radius: 12px; padding: 0.55rem 0.8rem; background: var(--mh-cream); }
.mh-ag-past summary { cursor: pointer; font-size: 0.85rem; font-weight: 700; color: var(--mh-ink-soft); }
.mh-ag-past[open] summary { margin-bottom: 0.6rem; }
.mh-ag-count { display: inline-block; min-width: 1.4rem; margin-left: 0.3rem; padding: 0 0.4rem; border-radius: 999px; background: var(--mh-cream-2); text-align: center; font-size: 0.75rem; }

.mh-ag-hint { margin: 1rem 0 0; font-size: 0.82rem; color: var(--mh-ink-soft); }
.mh-ag-hint a { color: var(--mh-red); font-weight: 700; text-decoration: none; }
.mh-ag-hint a:hover { text-decoration: underline; }
.mh-ag-more { display: inline-block; margin-top: 1rem; font-size: 0.85rem; font-weight: 700; color: var(--mh-red); text-decoration: none; }
.mh-ag-more:hover { text-decoration: underline; }
.mh-ag-empty { padding: 0.5rem 0; }

/* Compact month calendar */
.mh-mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mh-mcal-h { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; text-align: center; color: var(--mh-ink-soft); padding-bottom: 0.2rem; }
.mh-mcal-d {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 3px; min-height: 42px; padding: 6px 0 4px; border-radius: 9px;
    color: var(--mh-ink-2); text-decoration: none; font-size: 0.85rem;
}
.mh-mcal-d b { font-weight: 600; line-height: 1; }
.mh-mcal-d.is-blank { min-height: 0; }
.mh-mcal-d.is-past { color: #b2a896; }
a.mh-mcal-d:hover { background: var(--mh-cream); }
.mh-mcal-d.has-mine b { font-weight: 800; color: var(--mh-ink); }
.mh-mcal-d.is-past.has-mine b { color: #9b917f; }
.mh-mcal-d.is-holiday { background: #fff3d6; }
.mh-mcal-d.is-today { background: var(--mh-red); color: #fff; }
.mh-mcal-d.is-today b { color: #fff; }
.mh-mcal-dots { display: flex; gap: 3px; height: 6px; font-style: normal; }
.mh-mcal-dots em { width: 6px; height: 6px; border-radius: 50%; background: var(--mh-ink); }
.mh-mcal-dots em.is-other { background: #cfc5b4; }
.mh-mcal-dots em.is-event { background: var(--mh-red); }
.mh-mcal-d.is-today .mh-mcal-dots em { background: #fff; }
.mh-mcal-d.is-past .mh-mcal-dots em { opacity: 0.5; }

.mh-ag-signup .mh-lfixed { margin-bottom: 1rem; }
.mh-ag-signup-btn { display: inline-flex; text-decoration: none; }
.mh-ag-signup .mh-empty { margin-bottom: 1rem; }

@media (max-width: 1100px) {
    .mh-ag-grid .mh-lside { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: start; }
}
@media (max-width: 520px) {
    .mh-ag-toolbar { flex-direction: column; align-items: stretch; }
    .mh-ag-monthnav { justify-content: space-between; }
    .mh-ag-monthnav h2 { flex: 1; min-width: 0; }
    .mh-seg { align-self: stretch; }
    .mh-seg-btn { flex: 1; text-align: center; }
    .mh-ag-row .mh-lstatus { margin-left: calc(46px + 0.9rem); }
}
.mh-ag-row.is-holiday .mh-ltext strong { text-decoration: none; color: var(--mh-ink); }
.mh-ag-row .mh-lstatus:empty { display: none; }
@media (max-width: 520px) {
    .mh-ag-row { flex-wrap: wrap; row-gap: 0.45rem; }
    .mh-ag-row.has-cta .mh-ltext { flex: 1 0 calc(100% - 46px - 0.9rem - 1px); }
    .mh-ag-row:not(.has-cta) .mh-lstatus { margin-left: 0; }
}

/* === Design B: shared tokens (member hub + public site) === */
/* Same palette on public pages; legacy theme vars are remapped so old components
   (buttons, toggles, focus rings) pick up charcoal/red instead of blue. */
.pb-body {
    --mh-cream: #f6f1e7;
    --mh-cream-2: #efe7d8;
    --mh-paper: #fffdf8;
    --mh-ink: #1f1d1b;
    --mh-ink-2: #2b2825;
    --mh-ink-soft: #6b645b;
    --mh-line: #e3d9c6;
    --mh-red: #c8102e;
    --mh-red-soft: #fbe7e9;
    --mh-radius: 14px;
    background: var(--mh-cream);
    color: var(--mh-ink);
}
.pb-body,
.member-hub-body {
    --primary-color: #1f1d1b;
    --secondary-color: #c8102e;
    --accent-color: #c8102e;
    --text-color: #2b2825;
    --text-light: #6b645b;
    --bg-light: #f6f1e7;
    --border-color: #e3d9c6;
}

/* === Design B: public header === */
.pb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--mh-ink);
    border-bottom: 4px solid var(--mh-red);
    color: #ece6dc;
}
.pb-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.7rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.pb-brand { display: flex; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none; min-width: 0; }
.pb-brand-logo { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; flex: 0 0 auto; }
.pb-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pb-brand-text strong { color: #fff; font-size: 1rem; white-space: nowrap; }
.pb-brand-text small { color: #a9a196; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

.pb-nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.pb-nav-link {
    position: relative;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    color: #ddd6cb;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}
.pb-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.pb-nav-link.is-active { color: #fff; font-weight: 600; }
.pb-nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0.8rem; right: 0.8rem; bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--mh-red);
}
.pb-nav-cta {
    margin-left: 0.6rem;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    background: var(--mh-red);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
.pb-nav-cta:hover, .pb-nav-cta.is-active { background: #a50d26; }
.pb-menu-btn { display: none; margin-left: auto; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.pb-menu-btn > span:not(.mh-sr) { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* Exam focus bar (examen-run sheet, outside the sidebar shell) */
.pb-focusbar {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.6rem 1.5rem;
    background: var(--mh-ink);
    border-bottom: 4px solid var(--mh-red);
}
.pb-focusbar-links { display: flex; gap: 0.5rem; }
.pb-focusbar-links a { color: #ddd6cb; text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); }
.pb-focusbar-links a:hover { color: #fff; border-color: var(--mh-red); background: rgba(200, 16, 46, 0.18); }

/* === Design B: public footer === */
.pb-footer {
    margin-top: 0;
    background: var(--mh-ink);
    border-top: 4px solid var(--mh-red);
    color: #b3ab9f;
    font-size: 0.9rem;
}
.pb-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.75rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}
.pb-footer-brand p { margin-top: 1rem; max-width: 30ch; line-height: 1.6; }
.pb-footer h4 { color: #fff; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8rem; }
.pb-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.pb-footer a { color: #ddd6cb; text-decoration: none; }
.pb-footer a:hover { color: #fff; text-decoration: underline; }
.pb-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.pb-social a { padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.82rem; }
.pb-social a:hover { border-color: var(--mh-red); text-decoration: none; }
.pb-footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: #8a8279;
}

/* === Design B: public content building blocks === */
.pb-wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.pb-eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mh-red); font-weight: 800; margin-bottom: 0.4rem; }
.pb-eyebrow-light { color: #e8a1ab; }
.pb-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; font-weight: 800; color: var(--mh-ink); margin-bottom: 1rem; letter-spacing: -0.01em; }
.pb-lead { font-size: 1.1rem; line-height: 1.6; color: var(--mh-ink-2); max-width: 34em; margin-bottom: 1.5rem; }
.pb-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.pb-hero-chips { margin-top: 0.25rem; }

.pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    border: 2px solid var(--mh-red);
    background: var(--mh-red);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.pb-btn:hover { background: #a50d26; border-color: #a50d26; transform: translateY(-1px); }
.pb-btn-ghost { background: transparent; color: var(--mh-ink); border-color: var(--mh-ink); }
.pb-btn-ghost:hover { background: var(--mh-ink); border-color: var(--mh-ink); color: #fff; }
.pb-btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; align-self: flex-start; margin-top: 0.6rem; }
.pb-btn-block { width: 100%; }

.pb-hero { padding: 3.5rem 0 3rem; }
.pb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2.5rem; align-items: center; }
.pb-hero-media { position: relative; padding-bottom: 1.5rem; }
.pb-hero-photo {
    aspect-ratio: 4 / 3;
    border-radius: var(--mh-radius);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--mh-line);
    box-shadow: 0 18px 40px rgba(31, 29, 27, 0.18);
}
.pb-hero-card { position: absolute; left: -1.5rem; bottom: 0; width: min(300px, 80%); box-shadow: 0 14px 30px rgba(31, 29, 27, 0.3); }
.pb-hero-compact { padding: 3rem 0 2rem; }
.pb-hero-compact .pb-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); align-items: stretch; }
.pb-hero-compact .pb-hero-card { position: relative; left: auto; bottom: auto; width: auto; box-shadow: none; justify-content: center; }
.pb-times { list-style: none; margin: 0.45rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.pb-times li { display: flex; align-items: baseline; gap: 0.6rem; color: #f3ede3; font-weight: 600; }
.pb-times strong { color: #fff; min-width: 3.1rem; font-size: 1.1rem; }
.pb-times small { margin-left: auto; color: #b8b0a4; font-weight: 500; }

.pb-section { padding: 3.5rem 0; }
.pb-section-paper { background: var(--mh-paper); border-top: 1px solid var(--mh-line); border-bottom: 1px solid var(--mh-line); }
.pb-section-head { margin-bottom: 1.75rem; max-width: 46rem; }
.pb-section-head-sm { margin-bottom: 1rem; }
.pb-h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; font-weight: 800; color: var(--mh-ink); margin-bottom: 0.5rem; }
.pb-section-sub { color: var(--mh-ink-soft); font-size: 1rem; line-height: 1.6; }
.pb-lead-sm { color: var(--mh-ink-2); font-size: 1.05rem; }
.pb-card-title { font-size: 1.15rem; font-weight: 800; color: var(--mh-ink); margin: 0 0 0.45rem; }
.pb-text { font-size: 0.95rem; line-height: 1.6; color: var(--mh-ink-2); }
.pb-text a, .pb-prose a { color: var(--mh-red); font-weight: 600; text-decoration: none; }
.pb-text a:hover, .pb-prose a:hover { text-decoration: underline; }
.pb-help { font-size: 0.8rem; line-height: 1.5; color: var(--mh-ink-soft); }

.pb-lessons-grid { grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); }
.pb-side { display: flex; flex-direction: column; gap: 1.5rem; }
.pb-side .mh-card .pb-text { margin-bottom: 0.6rem; }
.pb-card-accent { border-left: 6px solid var(--mh-red); }
.pb-ltime { width: 58px; flex: 0 0 58px; }
.pb-ltime strong { font-size: 0.98rem; }
.pb-lrow-alt { align-items: flex-start; }
.pb-lrow-alt .mh-ltext small { line-height: 1.5; }
.pb-subhead { margin-top: 1.4rem; }

.pb-about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.pb-about-wide { grid-column: 1 / -1; }
.pb-prose p { font-size: 0.95rem; line-height: 1.7; color: var(--mh-ink-2); margin-bottom: 0.8rem; }
.pb-prose p:last-child { margin-bottom: 0; }

.pb-faq { margin-top: 3rem; max-width: 820px; }
.pb-body .faq-accordion { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; }
.pb-body .faq-item { background: var(--mh-paper); border: 1px solid var(--mh-line); border-radius: 12px; box-shadow: none; overflow: hidden; margin: 0; }
.pb-body .faq-item:hover { border-color: var(--mh-ink-soft); box-shadow: none; }
.pb-body .faq-question { background: transparent; color: var(--mh-ink); font-weight: 700; padding: 1rem 1.2rem; }
.pb-body .faq-question:hover { background: var(--mh-cream); }
.pb-body .faq-icon { background: var(--mh-cream-2); color: var(--mh-ink); }
.pb-body .faq-question[aria-expanded="true"] .faq-icon { background: var(--mh-red); color: #fff; }
.pb-body .faq-answer p, .pb-body .faq-answer li { color: var(--mh-ink-2); }
.pb-body .faq-answer a, .pb-body .faq-link { color: var(--mh-red); }

.pb-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pb-contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.pb-contact-card .pb-btn { margin-top: auto; }
.pb-contact-icon { font-size: 1.5rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--mh-cream-2); }
.pb-contact-card-dark { background: var(--mh-ink); border-color: var(--mh-ink); position: relative; overflow: hidden; }
.pb-contact-card-dark::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--mh-red); }
.pb-contact-card-dark .pb-card-title { color: #fff; }
.pb-contact-card-dark .pb-text, .pb-contact-card-dark .pb-text a { color: #f3ede3; }
.pb-contact-card-dark .pb-help { color: #b8b0a4; }
.pb-contact-card-dark .pb-contact-icon { background: rgba(255, 255, 255, 0.08); }
.pb-contact-card .pb-product-meta { margin-top: 0.25rem; }

/* Shop */
.pb-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.pb-product {
    display: flex; flex-direction: column; gap: 0.4rem;
    background: var(--mh-paper); border: 1px solid var(--mh-line); border-radius: var(--mh-radius);
    padding: 1.2rem 1.25rem; transition: border-color 0.15s ease, transform 0.15s ease;
}
.pb-product:hover { border-color: var(--mh-red); transform: translateY(-2px); }
.pb-product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.35rem; }
.pb-product-icon { font-size: 1.5rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--mh-cream-2); }
.pb-product .pb-card-title { margin-bottom: 0; }
.pb-product-meta { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--mh-ink-2); }
.pb-product-meta span { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mh-ink-soft); font-weight: 700; }
.pb-price { margin-top: auto; padding-top: 0.7rem; border-top: 1px dashed var(--mh-line); font-weight: 800; color: var(--mh-ink); font-size: 0.92rem; }
.pb-note { margin-top: 2rem; }

/* Login */
.pb-auth-body { min-height: 100vh; display: flex; flex-direction: column; }
.pb-auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3.5rem 1.25rem; }
.pb-auth-card {
    width: 100%; max-width: 940px;
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    border-radius: 18px; overflow: hidden;
    border: 1px solid var(--mh-line);
    box-shadow: 0 24px 60px rgba(31, 29, 27, 0.16);
    background: var(--mh-paper);
}
.pb-auth-side { position: relative; background: var(--mh-ink); color: #ddd6cb; padding: 2.5rem 2.25rem 2.5rem 2.6rem; display: flex; flex-direction: column; }
.pb-auth-side::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--mh-red); }
.pb-auth-side h2 { color: #fff; font-size: 1.55rem; line-height: 1.2; font-weight: 800; margin-bottom: 1.5rem; }
.pb-auth-points { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; font-size: 0.95rem; }
.pb-auth-points li { display: flex; align-items: center; gap: 0.75rem; }
.pb-auth-points li span { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.08); }
.pb-auth-main { padding: 2.5rem 2.75rem; }
.pb-auth-title { font-size: 2rem; font-weight: 800; color: var(--mh-ink); line-height: 1.15; margin-bottom: 0.35rem; }
.pb-auth-sub { color: var(--mh-ink-soft); font-size: 0.95rem; margin-bottom: 1.5rem; }
.pb-auth-alert { margin-bottom: 1.25rem; }
.pb-auth-help { margin-top: 1.25rem; font-size: 0.85rem; color: var(--mh-ink-soft); }
.pb-auth-help a { color: var(--mh-red); font-weight: 700; text-decoration: none; }

.pb-field { margin-bottom: 1rem; }
.pb-field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--mh-ink-2); margin-bottom: 0.35rem; }
.pb-field input {
    width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--mh-line); border-radius: 10px;
    background: #fff; color: var(--mh-ink); font-size: 1rem; font-family: inherit;
}
.pb-field input:focus { outline: none; border-color: var(--mh-red); box-shadow: 0 0 0 3px var(--mh-red-soft); }
.pb-field input:disabled { background: var(--mh-cream); color: var(--mh-ink-soft); }
.pb-check { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--mh-ink-2); margin: 0.1rem 0 1.25rem; cursor: pointer; }
.pb-check input { accent-color: var(--mh-red); width: 16px; height: 16px; }

/* Legacy fallbacks on public-chrome pages (e.g. dashboard views rendered without the shell) */
.pb-body .section { box-shadow: none; }

@media (max-width: 1000px) {
    .pb-hero-grid, .pb-hero-compact .pb-hero-grid { grid-template-columns: 1fr; }
    .pb-hero-card { left: 1rem; }
    .pb-lessons-grid { grid-template-columns: 1fr; }
    .pb-contact-grid { grid-template-columns: 1fr; }
    .pb-footer-inner { grid-template-columns: 1fr 1fr; }
    .pb-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .pb-header-inner { padding: 0.6rem 1rem; flex-wrap: wrap; }
    .pb-menu-btn { display: flex; }
    .pb-nav {
        display: none; width: 100%; margin: 0; padding: 0.5rem 0 0.75rem;
        flex-direction: column; align-items: stretch; gap: 2px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .pb-open .pb-nav { display: flex; }
    .pb-nav-link { padding: 0.7rem 0.75rem; }
    .pb-nav-link.is-active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
    .pb-nav-cta { margin: 0.5rem 0 0; text-align: center; padding: 0.7rem 1rem; }
    .pb-wrap { padding: 0 1rem; }
    .pb-hero { padding: 2rem 0 2.25rem; }
    .pb-section { padding: 2.5rem 0; }
    .pb-about-grid { grid-template-columns: 1fr; }
    .pb-auth { padding: 1.5rem 1rem 2.5rem; }
    .pb-auth-card { grid-template-columns: 1fr; }
    .pb-auth-side { padding: 1.5rem 1.5rem 1.5rem 1.9rem; }
    .pb-auth-side h2 { font-size: 1.2rem; margin-bottom: 1rem; }
    .pb-auth-points { font-size: 0.88rem; gap: 0.55rem; }
    .pb-auth-main { padding: 1.75rem 1.5rem; }
    .pb-focusbar { padding: 0.5rem 1rem; }
    .pb-focusbar .pb-brand-text small { display: none; }
}
@media (max-width: 560px) {
    .pb-footer-inner { grid-template-columns: 1fr; padding: 2rem 1rem 1.5rem; }
    .pb-footer-bottom { padding: 1rem; }
    .pb-hero-card { position: relative; left: auto; width: auto; margin-top: -2.5rem; margin-left: 0.75rem; margin-right: 0.75rem; }
    .pb-hero-media { padding-bottom: 0; }
    .pb-actions .pb-btn { flex: 1 1 100%; }
}
.pb-contact-card-dark .pb-btn-wa { background: #fff; border-color: #fff; color: var(--mh-ink); }
.pb-contact-card-dark .pb-btn-wa:hover { background: var(--mh-red); border-color: var(--mh-red); color: #fff; }

/* === Design B: shared member components (profile/settings/staff pages) === */
.mh-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; }
.mh-pagehead .mh-greeting { margin-bottom: 0.35rem; }
.mh-pagehead-sub { color: var(--mh-ink-soft); font-size: 0.98rem; max-width: 46rem; margin-bottom: 0.75rem; }
.mh-pagehead-text > :last-child { margin-bottom: 0; }
.mh-pagehead-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.mh-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.mh-cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }

.mh-prof-id { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.mh-prof-id .mh-greeting { margin-bottom: 0; }
.mh-avatar-lg { width: 64px; height: 64px; font-size: 1.35rem; box-shadow: 0 0 0 4px var(--mh-paper), 0 0 0 5px var(--mh-line); }

button.mh-pill { cursor: pointer; font-family: inherit; }
.mh-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }

.mh-btn { border: 0; cursor: pointer; font-family: inherit; line-height: 1.2; }
.mh-btn-sm { padding: 0.45rem 0.95rem; font-size: 0.82rem; }
.mh-btn-ghost { background: transparent; color: var(--mh-ink); box-shadow: inset 0 0 0 1px var(--mh-ink-soft); }
.mh-btn-ghost:hover { background: var(--mh-ink); color: #fff; box-shadow: none; }
.mh-btn-dark { background: var(--mh-ink, #1f1d1b); color: #fff; }
.mh-btn-dark:hover { background: #000; color: #fff; }
.mh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.mh-alert-ok { background: #e8f3ea; color: #1f5130; border-left-color: #2e7d46; }
.mh-alert-warn { background: #fff3d6; color: #6b4b00; border-left-color: #e0a82e; }

.mh-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8a8279; margin-right: 0.3rem; vertical-align: middle; }
.mh-status-dot.is-on { background: #49b36b; box-shadow: 0 0 0 3px rgba(73, 179, 107, 0.25); }

.mh-dl { display: flex; flex-direction: column; margin: 0; }
.mh-dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.6rem 0; border-top: 1px dashed var(--mh-line); align-items: baseline; }
.mh-dl > div:first-child { border-top: 0; padding-top: 0; }
.mh-dl dt { font-size: 0.8rem; color: var(--mh-ink-soft); font-weight: 600; }
.mh-dl dd { margin: 0; font-size: 0.93rem; font-weight: 600; color: var(--mh-ink); overflow-wrap: anywhere; }
.mh-dl dd small { color: var(--mh-ink-soft); font-weight: 500; }
.mh-dd-empty { color: #a59d91; font-weight: 500; font-style: italic; }
.mh-card-foot { margin-top: 0.9rem; font-size: 0.8rem; color: var(--mh-ink-soft); }

.mh-setrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px dashed var(--mh-line); }
.mh-card-head + .mh-setrow { border-top: 0; padding-top: 0; }
.mh-setrow-text { display: flex; flex-direction: column; min-width: 0; }
.mh-setrow-text strong { font-size: 0.95rem; color: var(--mh-ink); }
.mh-setrow-text small { font-size: 0.82rem; color: var(--mh-ink-soft); line-height: 1.4; }
.mh-ltag.is-present { background: #e8f3ea; color: #1f5130; }

.mh-disclose { margin-top: 0.75rem; border: 1px solid var(--mh-line); border-radius: 12px; padding: 0.6rem 0.85rem; background: var(--mh-cream); }
.mh-disclose summary { cursor: pointer; font-size: 0.85rem; font-weight: 700; color: var(--mh-ink-2); }
.mh-disclose[open] summary { margin-bottom: 0.75rem; }
.mh-disclose-inline { background: transparent; border-style: dashed; margin: 0.5rem 0 0.75rem; }
.mh-code { display: block; padding: 0.55rem 0.7rem; border-radius: 8px; background: var(--mh-ink); color: #f3ede3; font-size: 0.8rem; word-break: break-all; margin: 0.35rem 0 0.25rem; }
.mh-twofa-setup { margin-top: 0.75rem; }
.mh-form { margin-top: 0.75rem; }
.mh-form .form-group { margin-bottom: 0.85rem; }

/* Toggle row used by Settings */
.mh-toggle { position: relative; display: inline-flex; flex: 0 0 auto; width: 46px; height: 26px; }
.mh-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.mh-toggle span { position: absolute; inset: 0; border-radius: 999px; background: #d8cfbf; transition: background 0.15s ease; }
.mh-toggle span::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease; }
.mh-toggle input:checked + span { background: var(--mh-red); }
.mh-toggle input:checked + span::before { transform: translateX(20px); }
.mh-toggle input:focus-visible + span { box-shadow: 0 0 0 3px var(--mh-red-soft); }

.mh-select, .mh-input {
    padding: 0.55rem 0.8rem; border: 1px solid var(--mh-line); border-radius: 10px; background: #fff;
    color: var(--mh-ink); font: inherit; font-size: 0.92rem; min-width: 0;
}
.mh-select:focus, .mh-input:focus { outline: none; border-color: var(--mh-red); box-shadow: 0 0 0 3px var(--mh-red-soft); }
.mh-input:disabled { background: var(--mh-cream); color: var(--mh-ink-soft); }
.mh-stack { display: flex; flex-direction: column; gap: 0.5rem; }
.mh-card-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }

.mh-card-danger { border-color: #e9c3c9; background: #fffafa; }
.mh-card-danger .mh-card-head h2 { color: #7a0a1c; }

@media (max-width: 1100px) {
    .mh-cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .mh-cards3, .mh-cards2 { grid-template-columns: 1fr; }
    .mh-dl > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
    .mh-avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }
}

/* === Design B: legacy components inside the member shell === */
/* Older dashboard views (admin, members, exam pages, modals) keep their markup and JS;
   these rules re-skin them to cream cards, charcoal accents and red actions. */
.member-hub-body .back-link { display: none !important; }

.member-hub-body .mh-main .section { box-shadow: none; border-radius: 0; background: transparent; }
.member-hub-body .mh-main .mh-legacy { padding-top: 0; }

/* Legacy page headers (fallback when a view still renders its own) */
.member-hub-body .admin-header,
.member-hub-body .members-header,
.member-hub-body .inschrijven-header,
.member-hub-body .dopedia-header,
.member-hub-body .settings-header { text-align: left; margin-bottom: 1.5rem; }
.member-hub-body .admin-title,
.member-hub-body .members-title,
.member-hub-body .inschrijven-title,
.member-hub-body .dopedia-title,
.member-hub-body .settings-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--mh-ink); line-height: 1.15; margin: 0 0 0.35rem; }
.member-hub-body .admin-subtitle,
.member-hub-body .members-subtitle,
.member-hub-body .inschrijven-subtitle,
.member-hub-body .dopedia-subtitle,
.member-hub-body .settings-subtitle { color: var(--mh-ink-soft); font-size: 0.98rem; }
.member-hub-body .section-subtitle { color: var(--mh-ink); font-weight: 800; font-size: 1.15rem; }

/* Buttons */
.member-hub-body .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    padding: 0.55rem 1.15rem; border-radius: 999px;
    font-size: 0.88rem; font-weight: 700; line-height: 1.25; font-family: inherit;
    background: var(--mh-paper); color: var(--mh-ink);
    border: 1px solid var(--mh-ink-soft);
    box-shadow: none; animation: none; transform: none; text-decoration: none;
}
.member-hub-body .btn:hover { background: var(--mh-ink); color: #fff; border-color: var(--mh-ink); transform: none; box-shadow: none; }
.member-hub-body .btn-primary { background: var(--mh-red); border-color: var(--mh-red); color: #fff; }
.member-hub-body .btn-primary:hover { background: #a50d26; border-color: #a50d26; color: #fff; }
.member-hub-body .btn-secondary { background: var(--mh-ink); border-color: var(--mh-ink); color: #fff; }
.member-hub-body .btn-secondary:hover { background: #000; border-color: #000; }
.member-hub-body .btn-danger,
.member-hub-body .admin-btn-danger { background: transparent; color: var(--mh-red); border: 1px solid #e4a3ae; }
.member-hub-body .btn-danger:hover,
.member-hub-body .admin-btn-danger:hover { background: var(--mh-red); color: #fff; border-color: var(--mh-red); }
.member-hub-body .btn-small, .member-hub-body .btn-sm, .member-hub-body .admin-btn-small { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.member-hub-body .btn-large { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
.member-hub-body .btn-block { width: 100%; }
.member-hub-body .btn:disabled, .member-hub-body .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.member-hub-body .btn:disabled:hover { background: inherit; color: inherit; }
.member-hub-body .btn-primary:disabled:hover { background: var(--mh-red); color: #fff; }

/* Form fields */
.member-hub-body .mh-main input[type="text"], .member-hub-body .mh-main input[type="email"],
.member-hub-body .mh-main input[type="password"], .member-hub-body .mh-main input[type="tel"],
.member-hub-body .mh-main input[type="date"], .member-hub-body .mh-main input[type="time"],
.member-hub-body .mh-main input[type="number"], .member-hub-body .mh-main input[type="search"],
.member-hub-body .mh-main input[type="url"], .member-hub-body .mh-main input:not([type]),
.member-hub-body .mh-main select, .member-hub-body .mh-main textarea {
    border: 1px solid var(--mh-line); border-radius: 10px; background-color: #fff; color: var(--mh-ink); font-family: inherit;
}
.member-hub-body .mh-main input:focus, .member-hub-body .mh-main select:focus, .member-hub-body .mh-main textarea:focus {
    outline: none; border-color: var(--mh-red); box-shadow: 0 0 0 3px var(--mh-red-soft);
}
.member-hub-body .mh-main input:disabled, .member-hub-body .mh-main select:disabled, .member-hub-body .mh-main textarea:disabled,
.member-hub-body .settings-input-disabled { background-color: var(--mh-cream); color: var(--mh-ink-soft); }
.member-hub-body .mh-main input[type="checkbox"], .member-hub-body .mh-main input[type="radio"] { accent-color: var(--mh-red); }
.member-hub-body .form-group label, .member-hub-body .admin-label-text, .member-hub-body .examen-form-label-text { color: var(--mh-ink-2); font-weight: 700; }
.member-hub-body .admin-label-text { font-size: 0.98rem; }
.member-hub-body .admin-label-description, .member-hub-body .form-help-text, .member-hub-body .examen-form-label-hint { color: var(--mh-ink-soft); }
.member-hub-body .form-section-title { color: var(--mh-ink); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px dashed var(--mh-line); padding-bottom: 0.4rem; }

/* Cards */
.member-hub-body .admin-card,
.member-hub-body .settings-card,
.member-hub-body .event-card,
.member-hub-body .members-stat-card,
.member-hub-body .dopedia-category-card,
.member-hub-body .article-card,
.member-hub-body .examen-grade-card {
    background: var(--mh-paper); border: 1px solid var(--mh-line); border-radius: var(--mh-radius); box-shadow: none;
}
.member-hub-body .admin-card-header {
    position: relative; background: var(--mh-paper); color: var(--mh-ink);
    padding: 1.2rem 1.4rem 1rem 1.6rem; border-bottom: 1px dashed var(--mh-line);
}
.member-hub-body .admin-card-header::before { content: ''; position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--mh-red); }
.member-hub-body .admin-card-header h2 { color: var(--mh-ink); font-size: 1.2rem; font-weight: 800; margin: 0 0 0.2rem; }
.member-hub-body .admin-card-description { color: var(--mh-ink-soft); opacity: 1; font-size: 0.86rem; }
.member-hub-body .admin-card-body { padding: 1.3rem 1.4rem; }

/* Tab bars (admin, examen-config, examineren) */
.member-hub-body .admin-nav, .member-hub-body .examineren-tabs {
    background: var(--mh-cream-2); border: 1px solid var(--mh-line); box-shadow: none; border-radius: 16px; padding: 0.4rem; gap: 0.35rem; backdrop-filter: none;
}
.member-hub-body .admin-nav-item, .member-hub-body .examen-tab {
    background: transparent; color: var(--mh-ink-soft); border: 0; border-radius: 999px; font-size: 0.86rem; font-weight: 700; padding: 0.45rem 0.9rem;
}
.member-hub-body .admin-nav-item:hover, .member-hub-body .examen-tab:hover { color: var(--mh-ink); background: rgba(255, 255, 255, 0.6); border-color: transparent; transform: none; }
.member-hub-body .admin-nav-item.is-active, .member-hub-body .examen-tab.active, .member-hub-body .examen-tab.is-active { background: var(--mh-ink); color: #fff; }

/* Tables */
.member-hub-body .mh-main table { border-collapse: separate; border-spacing: 0; }
.member-hub-body .mh-main table thead, .member-hub-body .mh-main table thead tr { background: transparent; }
.member-hub-body .mh-main table th {
    background: var(--mh-cream-2); color: var(--mh-ink-2); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800;
    border-bottom: 1px solid var(--mh-line);
}
.member-hub-body .mh-main table th:first-child { border-top-left-radius: 10px; }
.member-hub-body .mh-main table th:last-child { border-top-right-radius: 10px; }
.member-hub-body .mh-main table td { border-bottom: 1px dashed var(--mh-line); color: var(--mh-ink); }
.member-hub-body .mh-main table tbody tr:hover { background: var(--mh-cream); }

/* Modals */
.member-hub-body .modal { background: rgba(31, 29, 27, 0.55); backdrop-filter: blur(4px); }
.member-hub-body .modal-content { background: var(--mh-paper); border-radius: 18px; border: 1px solid var(--mh-line); box-shadow: 0 30px 70px rgba(31, 29, 27, 0.35); }
.member-hub-body .members-modal-header, .member-hub-body .modal-header, .member-hub-body .examen-modal-header {
    position: relative; background: var(--mh-ink); color: #fff; border-bottom: 4px solid var(--mh-red); border-radius: 0;
}
.member-hub-body .members-modal-title, .member-hub-body .modal-header h2, .member-hub-body .examen-modal-title { color: #fff; font-weight: 800; }
.member-hub-body .examen-modal-subtitle { color: #b8b0a4; }
.member-hub-body .modal-close { color: #fff; background: rgba(255, 255, 255, 0.1); border-radius: 50%; }
.member-hub-body .modal-close:hover { background: var(--mh-red); color: #fff; }
.member-hub-body .members-modal-body, .member-hub-body .modal-body { background: var(--mh-paper); }
.member-hub-body .modal-actions, .member-hub-body .modal-footer { border-top: 1px dashed var(--mh-line); background: var(--mh-paper); }

/* Toggle switches (legacy) */
.member-hub-body .toggle-slider { background-color: #d8cfbf; }
.member-hub-body .toggle-switch input:checked + .toggle-slider { background-color: var(--mh-red); }

/* Toasts */
.member-hub-body .dojo-toast { border-radius: 12px; }

/* === Design B: settings page extras === */
.mh-settings .mh-cards2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.mh-settings-prefs { display: flex; flex-direction: column; gap: 1.5rem; }
.mh-setrow-form { align-items: flex-start; flex-direction: column; }
.mh-pw-fields { width: 100%; margin-top: 0.6rem; }
.mh-alert-sm { padding: 0.55rem 0.85rem; font-size: 0.85rem; margin-bottom: 0.5rem; }
.mh-savebar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 0.9rem 1.2rem; border-radius: var(--mh-radius); background: var(--mh-ink); color: #b8b0a4; font-size: 0.85rem;
}
.mh-savebar .mh-btn { margin-left: auto; }
.mh-danger { padding: 0; }
.mh-danger > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.3rem;
}
.mh-danger > summary::-webkit-details-marker { display: none; }
.mh-danger > summary span:first-child { display: flex; flex-direction: column; gap: 0.15rem; }
.mh-danger > summary strong { color: #7a0a1c; }
.mh-danger > summary small { color: var(--mh-ink-soft); font-weight: 500; }
.mh-danger[open] > summary { border-bottom: 1px dashed #e9c3c9; }
.mh-danger > .mh-setrow { padding: 1rem 1.3rem 1.2rem; }
@media (max-width: 1100px) {
    .mh-settings .mh-cards2 { grid-template-columns: 1fr; }
}

/* === Design B: contact + DOPedia === */
.mh-card-accent { border-left: 6px solid var(--mh-red); }
.mh-empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.25rem 0; }
.mh-empty-icon { font-size: 1.5rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--mh-cream-2); margin-bottom: 0.25rem; }
.mh-contact-body { font-size: 0.98rem; line-height: 1.7; color: var(--mh-ink); }
.mh-textarea { width: 100%; min-height: 220px; padding: 0.75rem 0.9rem; resize: vertical; font-size: 0.92rem; line-height: 1.5; }
.mh-contact .form-group label { display: block; margin-bottom: 0.4rem; }
.mh-contact .form-help-text { display: block; margin-top: 0.4rem; font-size: 0.8rem; }
pre.mh-code { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.mh-dp-search { position: relative; max-width: none; margin: 0; }
.member-hub-body .mh-dp-search .dopedia-search-input {
    width: 100%; padding: 0.95rem 1rem 0.95rem 3rem; border-radius: 999px; border: 1px solid var(--mh-line);
    background: var(--mh-paper); font-size: 1rem; box-shadow: 0 1px 2px rgba(31, 29, 27, 0.04);
}
.mh-dp-search .search-icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); right: auto; font-size: 1rem; opacity: 0.7; pointer-events: none; }
.mh-dp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0.6rem; margin: 0; }
.member-hub-body .mh-dp-cat {
    display: flex; align-items: center; gap: 0.9rem; text-align: left;
    padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--mh-line); background: var(--mh-cream);
    box-shadow: none; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.member-hub-body .mh-dp-cat:hover, .member-hub-body .mh-dp-cat:focus-visible { border-color: var(--mh-ink); background: #fff; transform: none; box-shadow: none; outline: none; }
.member-hub-body .mh-dp-cat.active { border-color: var(--mh-red); background: #fff; box-shadow: 0 0 0 3px var(--mh-red-soft); }
.member-hub-body .mh-dp-cat .category-icon { font-size: 1.4rem; width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 12px; background: var(--mh-ink); margin: 0; }
.mh-dp-cat-text { flex: 1; min-width: 0; }
.member-hub-body .mh-dp-cat h3 { font-size: 0.98rem; font-weight: 800; color: var(--mh-ink); margin: 0 0 0.1rem; }
.member-hub-body .mh-dp-cat p { font-size: 0.8rem; color: var(--mh-ink-soft); margin: 0; line-height: 1.4; }
.member-hub-body .mh-dp-cat .category-count { flex: 0 0 auto; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--mh-cream-2); color: var(--mh-ink-2); font-size: 0.74rem; font-weight: 700; margin: 0; }
.member-hub-body .mh-dp-cat.is-empty .category-count { background: transparent; border: 1px dashed var(--mh-line); color: #a59d91; }
.member-hub-body .dopedia-articles-section { padding: 1.3rem 1.4rem; }
.member-hub-body .dopedia-article-card { background: var(--mh-cream); border: 1px solid var(--mh-line); border-radius: 12px; box-shadow: none; }
.member-hub-body .dopedia-article-card:hover { border-color: var(--mh-ink); transform: none; }
.member-hub-body .article-category-badge { background: var(--mh-ink); color: #fff; border-radius: 999px; }
.member-hub-body .article-link { color: var(--mh-red); }
.member-hub-body .no-articles { color: var(--mh-ink-soft); }
.mh-panel { padding: 0; overflow: hidden; }
.member-hub-body .admin-members-section.mh-card { padding: 1.3rem 1.4rem; }

/* === Design B: Inschrijven === */
.mh-signup .mh-signup-grid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
.mh-sg-row { align-items: flex-start; }
.mh-sg-row .mh-ldate { margin-top: 0.15rem; }
.mh-sg-row .mh-lstatus { align-self: center; }
.mh-sg-row.is-closed { background: var(--mh-cream); }
.mh-sg-row.is-closed .mh-ldate { background: var(--mh-ink); }
.mh-sg-desc { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--mh-ink-2); line-height: 1.45; }
.mh-sg-window { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-top: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--mh-ink-soft); }
.mh-sg-pay { display: block; margin-top: 0.25rem; font-size: 0.78rem; color: #8a5a00; }
.mh-sg-attach { display: inline-block; margin-top: 0.3rem; font-size: 0.8rem; font-weight: 700; color: var(--mh-red); text-decoration: none; }
.mh-sg-attach:hover { text-decoration: underline; }
.mh-sg-mine { background: #fff; border-color: var(--mh-line); }
.mh-sg-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.mh-sg-history { padding: 0; }
.mh-sg-history > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; font-weight: 800; color: var(--mh-ink); }
.mh-sg-history > summary::-webkit-details-marker { display: none; }
.mh-sg-history[open] > summary { border-bottom: 1px solid var(--mh-line); }
.mh-sg-history > .mh-card-sub, .mh-sg-history > .mh-lrows { margin: 0.8rem 1.4rem; }
.mh-sg-history > .mh-lrows { margin-top: 0; margin-bottom: 1.2rem; }
.mh-sg-manage { margin-top: 1.5rem; }
.mh-sg-closed { margin-top: 1rem; margin-bottom: 0; }
.mh-sg-closed .mh-card-sub { margin-bottom: 0.6rem; }

/* "+ Nieuw evenement" dropdown in page head */
.mh-addmenu { position: relative; }
.mh-addmenu > summary { list-style: none; cursor: pointer; }
.mh-addmenu > summary::-webkit-details-marker { display: none; }
.mh-addmenu-list {
    position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 30; min-width: 220px;
    display: flex; flex-direction: column; padding: 0.4rem; border-radius: 12px;
    background: var(--mh-paper); border: 1px solid var(--mh-line); box-shadow: 0 12px 30px rgba(31, 29, 27, 0.16);
}
.mh-addmenu-item { text-align: left; border: 0; background: transparent; padding: 0.6rem 0.75rem; border-radius: 8px; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--mh-ink); cursor: pointer; }
.mh-addmenu-item:hover, .mh-addmenu-item:focus-visible { background: var(--mh-cream); outline: none; }

@media (max-width: 1100px) {
    .mh-signup .mh-signup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .mh-sg-row { flex-wrap: wrap; }
    .mh-sg-row .mh-ltext { flex: 1 1 calc(100% - 70px); }
    .mh-sg-row .mh-lstatus { flex: 1 1 100%; justify-content: flex-start; padding-left: calc(46px + 0.9rem); }
    .mh-addmenu-list { right: auto; left: 0; }
}

/* === Design B: legacy staff pages (members/admin/examens/dojos) === */
.member-hub-body .mh-main .section.mh-legacy { padding: 2rem 0 2.5rem; }
.mh-legacy > .container > .mh-pagehead { margin-bottom: 1.5rem; }
.member-hub-body .admin-members-header h2 { color: var(--mh-ink) !important; font-size: 1.15rem; font-weight: 800; margin: 0 0 0.2rem !important; }
.member-hub-body .admin-members-header p { color: var(--mh-ink-soft) !important; margin-bottom: 1rem !important; font-size: 0.9rem; }
.member-hub-body .admin-members-header > div { margin-bottom: 1.25rem !important; }
.pb-focus-body { background: var(--mh-cream); }

/* ---- Backend round: small shared helpers ---- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Instructor "Aanwezigheid / Leden" button in the lesson roster */
.mh-att-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.35rem 0.75rem; font-size: 0.78rem; font-weight: 700;
    border-radius: 999px; border: 1px solid var(--mh-line, #e3dccd);
    background: #fff; color: var(--mh-ink); cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.mh-att-btn:hover, .mh-att-btn.is-open { border-color: var(--mh-red); color: var(--mh-red); }
.mh-att-btn:focus-visible { outline: 2px solid var(--mh-red); outline-offset: 2px; }
/* Competition result (Voortgang → Evenementen) */
.mh-result-form { display: flex; gap: 0.4rem; align-items: center; margin-top: 0.4rem; flex-wrap: wrap; }
.mh-result-form .mh-input { min-width: 0; flex: 1 1 180px; padding: 0.4rem 0.6rem; font-size: 0.85rem; }
@media (max-width: 900px) {
    .mh-att-btn { padding: 0.3rem 0.6rem; }
}

/* ---- Design B: shared table / badges / stat tiles (Leden, Admin, Examens) ---- */
.mh-muted { color: var(--mh-ink-soft); }
.mh-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.15rem 0.55rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700; white-space: nowrap;
    background: var(--mh-cream-2); color: var(--mh-ink);
}
.mh-badge-ok { background: #e8f3ea; color: #1f5130; }
.mh-badge-off { background: var(--mh-red-soft); color: #7a0a1c; }
.mh-badge-dark { background: var(--mh-ink); color: #fff; }
.mh-badge-warn { background: #fff3d6; color: #6b4b00; }

.mh-table-wrap { overflow-x: auto; border: 1px solid var(--mh-line); border-radius: 12px; background: #fff; }
.mh-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.mh-table thead th {
    background: var(--mh-cream-2); color: var(--mh-ink);
    text-align: left; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
    font-weight: 800; padding: 0.7rem 0.85rem; white-space: nowrap;
}
.mh-table td { padding: 0.7rem 0.85rem; border-top: 1px solid var(--mh-line); vertical-align: middle; color: var(--mh-ink); }
.mh-table tbody tr:hover td { background: #fdfaf3; }
.mh-table tr.is-inactive td { opacity: 0.62; }
.mh-table .mh-empty { text-align: center; padding: 1.5rem; color: var(--mh-ink-soft); }
.mh-col-actions { text-align: right; white-space: nowrap; }
.mh-row-actions { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.mh-member-name { display: inline-flex; align-items: center; gap: 0.6rem; }
.mh-member-name .mh-avatar { flex: 0 0 auto; }

.mh-members-tools { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.mh-members-tools .mh-input { width: 260px; max-width: 100%; }
.mh-members-toggle { display: inline-flex; gap: 0.35rem; align-items: center; font-size: 0.85rem; color: var(--mh-ink-soft); white-space: nowrap; }

.mh-mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.85rem; }
.mh-mstat {
    display: flex; align-items: center; gap: 0.8rem; text-align: left;
    background: var(--mh-paper); border: 1px solid var(--mh-line); border-radius: var(--mh-radius);
    padding: 0.95rem 1.1rem; font: inherit; color: var(--mh-ink);
}
button.mh-mstat { cursor: pointer; transition: border-color .15s, transform .15s; }
button.mh-mstat:hover { border-color: var(--mh-red); transform: translateY(-1px); }
button.mh-mstat:focus-visible { outline: 2px solid var(--mh-red); outline-offset: 2px; }
.mh-mstat-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--mh-cream-2); font-size: 1.25rem; }
.mh-mstat-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mh-mstat-text small { font-size: 0.78rem; color: var(--mh-ink-soft); font-weight: 600; }
.mh-mstat-text strong { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.mh-mstat-go { color: var(--mh-ink-soft); font-size: 1.4rem; }

@media (max-width: 900px) {
    .mh-members-card .mh-card-head { flex-direction: column; align-items: stretch; }
    .mh-members-tools .mh-input { width: 100%; }
    /* Tables become stacked cards on phones */
    .mh-table-stack thead, .mh-members-card .mh-table thead { display: none; }
    .mh-table-stack, .mh-table-stack tbody, .mh-table-stack tr, .mh-table-stack td,
    .mh-members-card .mh-table, .mh-members-card .mh-table tbody, .mh-members-card .mh-table tr, .mh-members-card .mh-table td { display: block; width: 100%; }
    .mh-table-stack tr, .mh-members-card .mh-table tr { border-top: 1px solid var(--mh-line); padding: 0.6rem 0.2rem; }
    .mh-table-stack tr:first-child, .mh-members-card .mh-table tr:first-child { border-top: 0; }
    .mh-table-stack td, .mh-members-card .mh-table td { border: 0; padding: 0.2rem 0.75rem; }
    .mh-table-stack td[data-label]::before, .mh-members-card .mh-table td[data-label]::before {
        content: attr(data-label); display: inline-block; min-width: 5.5rem;
        font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mh-ink-soft);
    }
    .mh-members-card .mh-table td[data-label="Naam"]::before { display: none; }
    .mh-col-actions { text-align: left; }
    .mh-row-actions { justify-content: flex-start; padding-top: 0.35rem; }
    .mh-mstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mh-table tr[hidden] { display: none !important; }
@media (max-width: 900px) {
    .mh-members-card .mh-table-wrap { border: 0; background: transparent; }
    .mh-members-card .mh-table tr { background: #fff; border: 1px solid var(--mh-line) !important; border-radius: 12px; margin-bottom: 0.6rem; }
}

/* Progress: DB exam results block aligned with the Design B page and card */
.mh-main .progress-legacy > .container { max-width: 1180px; padding: 0 2rem; margin: 0 auto; }
.mh-main .progress-legacy #progress-exam-db {
    margin-top: 0; background: var(--mh-paper); border: 1px solid var(--mh-line);
    border-radius: var(--mh-radius); box-shadow: 0 1px 2px rgba(31,29,27,.04); padding: 1.3rem 1.4rem;
}
.mh-main .progress-legacy #progress-exam-db .progress-visual-exam-header { background: transparent; padding: 0 0 1rem; border: 0; }
.mh-main .progress-legacy #progress-exam-db .progress-visual-exam-header h2 { font-size: 1.15rem; font-weight: 800; color: var(--mh-ink); }
.mh-main .progress-legacy #progress-exam-db .progress-visual-exam-header p { font-size: .82rem; color: var(--mh-ink-soft) !important; }
.mh-main .progress-legacy #progress-exam-db .progress-visual-exam-body { padding: 0; }
.mh-main .progress-legacy #progress-exam-db .progress-visual-exam-tablewrap { border: 1px solid var(--mh-line); border-radius: 12px; overflow: auto; }
.mh-main .progress-legacy #progress-exam-db table { width: 100%; border-collapse: collapse; }
.mh-main .progress-legacy #progress-exam-db th { background: var(--mh-cream-2); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-ink-soft); text-align: left; padding: .7rem .9rem; }
.mh-main .progress-legacy #progress-exam-db td { padding: .75rem .9rem; border-top: 1px solid var(--mh-line); }
@media (max-width: 900px) {
    .mh-main .progress-legacy > .container { padding: 0 1rem; }
}
@media (max-width: 900px) {
    .mh-main .progress-legacy #progress-exam-db thead { display: none; }
    .mh-main .progress-legacy #progress-exam-db tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; padding: .75rem .9rem; border-top: 1px solid var(--mh-line); }
    .mh-main .progress-legacy #progress-exam-db tbody tr:first-child { border-top: 0; }
    .mh-main .progress-legacy #progress-exam-db tbody td { border: 0; padding: 0; }
    .mh-main .progress-legacy #progress-exam-db tbody td:first-child { flex-basis: 100%; font-weight: 700; }
    .mh-main .progress-legacy #progress-exam-db tbody td:last-child { margin-left: auto; }
}

/* Examineren: keep the two cards inside the viewport on tablet/phone (wide candidate table scrolls) */
@media (max-width: 980px) {
    .examineren-layout { grid-template-columns: minmax(0, 1fr) !important; }
}
.examineren-layout > * { min-width: 0; }
.examineren-layout .admin-card { max-width: 100%; }
.examineren-layout table { max-width: 100%; }
.examineren-layout .examineren-table-wrap, .examineren-layout .examineren-candidates-wrap { overflow-x: auto; }

/* ===== DojoUI (Design B): toasts + confirm/prompt dialogs — replaces browser alert/confirm/prompt ===== */
.dojo-toast-container { top: 18px; right: 18px; left: auto; }
.dojo-toast {
    background: var(--mh-paper, #fffdf8);
    color: var(--mh-ink, #1f1d1b);
    border: 1px solid var(--mh-line, #e3d9c6);
    border-left: 5px solid #2e7d46;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(31, 29, 27, 0.18);
    align-items: center;
    font-family: inherit;
}
.dojo-toast--error { border-left-color: var(--mh-red, #c8102e); }
.dojo-toast--warning { border-left-color: #e0a82e; }
.dojo-toast--info { border-left-color: var(--mh-ink, #1f1d1b); }
.dojo-toast__icon {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.85rem; color: #fff; background: #2e7d46;
}
.dojo-toast--error .dojo-toast__icon { background: var(--mh-red, #c8102e); }
.dojo-toast--warning .dojo-toast__icon { background: #e0a82e; }
.dojo-toast--info .dojo-toast__icon { background: var(--mh-ink, #1f1d1b); }
.dojo-toast__text { flex: 1; font-weight: 600; font-size: 0.92rem; }
.dojo-toast__close { color: var(--mh-ink-soft, #6b645b); }
.dojo-toast__close:hover { color: var(--mh-ink, #1f1d1b); }
@media (max-width: 560px) {
    .dojo-toast-container { left: 12px; right: 12px; top: 12px; }
    .dojo-toast { min-width: 0; max-width: none; width: 100%; }
}

body.mh-dialog-open { overflow: hidden; }
.mh-dialog-overlay {
    position: fixed; inset: 0; z-index: 10060;
    background: rgba(31, 29, 27, 0.45);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    animation: mhDialogFade 120ms ease-out;
}
.mh-dialog-overlay.is-closing { opacity: 0; transition: opacity 120ms ease; }
.mh-dialog {
    width: 100%; max-width: 440px;
    background: var(--mh-paper, #fffdf8);
    color: var(--mh-ink, #1f1d1b);
    border: 1px solid var(--mh-line, #e3d9c6);
    border-top: 6px solid var(--mh-ink, #1f1d1b);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(31, 29, 27, 0.3);
    padding: 1.35rem 1.4rem 1.2rem;
    animation: mhDialogIn 140ms ease-out;
}
.mh-dialog--danger { border-top-color: var(--mh-red, #c8102e); }
.mh-dialog-title { margin: 0 0 0.4rem; font-size: 1.12rem; font-weight: 800; line-height: 1.3; color: var(--mh-ink, #1f1d1b); }
.mh-dialog-msg { margin: 0 0 0.9rem; color: var(--mh-ink-soft, #6b645b); font-size: 0.93rem; white-space: pre-line; }
.mh-dialog-field { display: block; margin: 0 0 0.75rem; }
.mh-dialog-field > span { display: block; font-size: 0.8rem; font-weight: 700; color: var(--mh-ink-soft, #6b645b); margin-bottom: 0.3rem; }
.mh-dialog-field .mh-input { width: 100%; box-sizing: border-box; }
.mh-dialog-field textarea.mh-input { min-height: 90px; resize: vertical; }
.mh-dialog-error { margin: 0 0 0.6rem; color: var(--mh-red, #c8102e); font-weight: 600; font-size: 0.85rem; }
.mh-dialog-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.mh-btn.mh-btn-danger, .mh-btn-danger { background: var(--mh-red, #c8102e); color: #fff; }
@keyframes mhDialogFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mhDialogIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
    .mh-dialog-overlay { align-items: flex-end; padding: 0; }
    .mh-dialog { max-width: none; border-radius: 18px 18px 0 0; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); }
    .mh-dialog-actions .mh-btn { flex: 1; text-align: center; justify-content: center; }
}

/* ===== Design B: generic form/tabs building blocks (Admin, Examen configuratie, Examineren, Dojo's) ===== */
.mh-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.85rem 1rem; }
.mh-fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; margin: 0; }
.mh-field > span, .mh-field-label { font-size: 0.78rem; font-weight: 700; color: var(--mh-ink-soft); letter-spacing: 0.01em; }
.mh-field > small, .mh-field-help { font-size: 0.78rem; color: var(--mh-ink-soft); line-height: 1.4; }
.mh-field .mh-input, .mh-field .mh-select, .mh-field .mh-textarea, .mh-field textarea, .mh-field select, .mh-field input[type="text"], .mh-field input[type="email"], .mh-field input[type="number"], .mh-field input[type="url"], .mh-field input[type="password"], .mh-field input[type="date"] { width: 100%; box-sizing: border-box; }
.mh-textarea { padding: 0.6rem 0.8rem; border: 1px solid var(--mh-line); border-radius: 10px; background: #fff; color: var(--mh-ink); font: inherit; font-size: 0.92rem; min-height: 110px; resize: vertical; }
.mh-textarea:focus { outline: none; border-color: var(--mh-red); box-shadow: 0 0 0 3px var(--mh-red-soft); }
.mh-check { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--mh-ink); cursor: pointer; }
.mh-check input { width: 18px; height: 18px; accent-color: var(--mh-red); }
.mh-inline { display: flex; gap: 0.6rem; align-items: flex-end; flex-wrap: wrap; }
.mh-inline > .mh-field { flex: 1 1 200px; }
.mh-subhead { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mh-ink-soft); font-weight: 800; margin: 1.4rem 0 0.65rem; }
.mh-card > .mh-subhead:first-of-type { margin-top: 0.4rem; }
.mh-fieldset { border: 1px dashed var(--mh-line); border-radius: 12px; padding: 0.9rem 1rem 1rem; margin: 1rem 0 0; background: var(--mh-cream); }
.mh-fieldset > legend { padding: 0 0.4rem; font-size: 0.8rem; font-weight: 800; color: var(--mh-ink); }
.mh-help { font-size: 0.85rem; color: var(--mh-ink-soft); margin: 0 0 0.85rem; line-height: 1.5; }
.mh-tabbar {
    display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none;
    padding: 4px; background: var(--mh-cream-2); border: 1px solid var(--mh-line); border-radius: 999px;
    margin: 0 0 1.25rem; position: sticky; top: 8px; z-index: 20; max-width: 100%;
}
.mh-tabbar::-webkit-scrollbar { display: none; }
.mh-tab-btn {
    flex: 0 0 auto; border: 0; background: transparent; cursor: pointer; font: inherit;
    padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
    color: var(--mh-ink-soft); white-space: nowrap;
}
.mh-tab-btn:hover { color: var(--mh-ink); }
.mh-tab-btn.is-active { background: var(--mh-ink); color: #fff; }
.mh-tabpanel[hidden] { display: none !important; }
.mh-tabpanel > .mh-card + .mh-card, .mh-tabpanel > .mh-card + .mh-cards2, .mh-tabpanel > .mh-cards2 + .mh-card { margin-top: 1.25rem; }
.mh-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.mh-list-item { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0.9rem; border: 1px solid var(--mh-line); border-radius: 12px; background: #fff; }
.mh-list-item-text { display: flex; flex-direction: column; min-width: 0; }
.mh-list-item-text strong { font-size: 0.93rem; color: var(--mh-ink); }
.mh-list-item-text small { font-size: 0.8rem; color: var(--mh-ink-soft); line-height: 1.4; }
.mh-kv { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: baseline; font-size: 0.82rem; color: var(--mh-ink-soft); }
.mh-kv strong { color: var(--mh-ink); }
.mh-swatch { display: inline-block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--mh-line); vertical-align: middle; }
.mh-dropzone { border: 2px dashed var(--mh-line); border-radius: 14px; padding: 1.1rem; text-align: center; background: var(--mh-cream); color: var(--mh-ink-soft); }
.mh-dropzone img { max-height: 90px; max-width: 100%; display: block; margin: 0 auto 0.6rem; }
.mh-context-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--mh-ink); color: #fff; margin: 0 0 1.25rem; font-size: 0.88rem; }
.mh-context-bar strong { color: #fff; }
.mh-context-bar .mh-btn-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55); }
.mh-context-bar .mh-btn-ghost:hover { background: #fff; color: var(--mh-ink); }
@media (max-width: 700px) {
    .mh-fields-2 { grid-template-columns: 1fr; }
    .mh-tabbar { border-radius: 14px; }
}
.mh-ctx-pill { display: block; margin: -0.4rem 0 0.9rem; padding: 0.4rem 0.7rem; border-radius: 10px; background: var(--mh-red); color: #fff; font-size: 0.76rem; font-weight: 700; text-decoration: none; text-align: center; }
.mh-ctx-pill:hover { background: #a50d26; color: #fff; }

/* ===== Design B — Admin / Examen configuratie / Examineren building blocks ===== */
.mh-admin-autosave { margin-top: -0.6rem; }
.mh-admin-page .mh-card-foot, .mh-cfg-page .mh-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.9rem; border-top: 1px dashed var(--mh-line); }
.mh-empty-cell { text-align: center; padding: 1.6rem 1rem !important; color: var(--mh-ink-soft); }
.mh-admin-range { flex-wrap: nowrap; }
.mh-admin-range .mh-field { flex: 0 0 110px; }
.mh-admin-range .mh-input { width: 110px; }
.mh-admin-group + .mh-admin-group { margin-top: 0.4rem; }
.mh-admin-group .mh-subhead { display: flex; align-items: center; gap: 0.5rem; }
.mh-colorpick { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; min-width: 0; }
.mh-colorpick input[type="color"], input.admin-color-input[type="color"] { width: 42px; height: 36px; padding: 2px; border: 1px solid var(--mh-line); border-radius: 10px; background: #fff; cursor: pointer; flex: 0 0 auto; }
.mh-colorpick .mh-input { flex: 1 1 140px; min-width: 120px; }
.mh-colorpick code, .admin-color-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; color: var(--mh-ink-soft); background: var(--mh-cream); border: 1px solid var(--mh-line); border-radius: 6px; padding: 0.15rem 0.4rem; }
.mh-drag-item { cursor: grab; }
.mh-drag-item .mh-colorpick, .mh-drag-item .mh-list-item-text { flex: 1 1 auto; }
.mh-drag-handle { color: var(--mh-ink-soft); font-weight: 800; letter-spacing: -2px; user-select: none; padding: 0 0.2rem; cursor: grab; }
.mh-drag-item.dragging { opacity: 0.55; border-style: dashed; border-color: var(--mh-red); }
.mh-legend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.9rem; }
.mh-legend-card { display: flex; flex-direction: column; gap: 0.65rem; padding: 0.9rem; border: 1px solid var(--mh-line); border-radius: 14px; background: #fff; }
.mh-legend-banner { display: block; width: 100%; box-sizing: border-box; text-align: center; padding: 0.45rem 0.6rem; border-radius: 8px; color: #fff; font-weight: 700; font-size: 0.85rem; }
.mh-legend-options { display: flex; flex-direction: column; gap: 0.4rem; }
.mh-legend-options .mh-check { font-size: 0.85rem; }
.mh-mailtpl { border: 1px solid var(--mh-line); border-radius: 12px; padding: 0.8rem 0.95rem; background: #fff; }
.mh-mailtpl + .mh-mailtpl { margin-top: 0.65rem; }
.mh-mailtpl-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.mh-mailtpl-head .mh-row-actions { align-items: center; }
.mh-mailpreview { margin-top: 0.75rem; padding: 0.8rem 0.95rem; border: 1px dashed var(--mh-line); border-radius: 10px; background: var(--mh-cream); display: none; }
.mh-mailpreview .mh-field-label { display: block; margin: 0.4rem 0 0.25rem; }
.mh-mailpreview-subject, .mh-mailpreview-body { padding: 0.5rem 0.7rem; border: 1px solid var(--mh-line); border-radius: 8px; background: #fff; font-size: 0.9rem; }
.mh-picker { position: relative; }
.mh-picker-drop { position: absolute; z-index: 30; left: 0; right: 0; margin-top: 0.5rem; background: #fff; border: 1px solid var(--mh-line); border-radius: 14px; padding: 0.85rem; max-height: 320px; overflow: auto; box-shadow: 0 18px 40px rgba(33, 24, 12, 0.16); }
.mh-picker-filters { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 0.75rem; margin-bottom: 0.6rem; border-bottom: 1px dashed var(--mh-line); }
.mh-picker-filters .mh-select { flex: 1 1 160px; }
.mh-picker-list { display: flex; flex-direction: column; gap: 0.15rem; }
.mh-picker-row { padding: 0.35rem 0.4rem; border-radius: 8px; width: 100%; box-sizing: border-box; }
.mh-picker-row:hover { background: var(--mh-cream); }
#logo-preview-container img { max-height: 90px; max-width: 220px; display: block; margin: 0 auto 0.4rem; }
@media (max-width: 700px) {
    .mh-admin-range { flex-wrap: wrap; }
    .mh-admin-agerow { flex-direction: column; align-items: stretch; }
    .mh-legend-grid { grid-template-columns: 1fr; }
    .mh-picker-drop { position: static; box-shadow: none; }
    .mh-drag-item { flex-wrap: wrap; }
}

/* --- Examen configuratie (Design B) --- */
.mh-tab-btn.active { background: var(--mh-ink); color: #fff; }
.mh-tab-btn .mh-swatch, .mh-swatch-sm { width: 12px; height: 12px; border-radius: 4px; margin-right: 0.3rem; vertical-align: -1px; }
.mh-tab-btn .examen-tab-belt { font-weight: 600; opacity: 0.7; font-size: 0.78rem; }
.examen-tab-add { color: var(--mh-red); }
.examen-tab-panel:not(.active) { display: none; }
.examen-card-body { display: flex; flex-direction: column; gap: 1rem; }
.examen-section { border: 1px solid var(--mh-line); border-radius: 14px; padding: 0.95rem 1rem 1rem; background: var(--mh-cream); }
.examen-section-header { margin-bottom: 0.7rem; }
.examen-section-controls, .examen-subsection-controls { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.examen-section-title-input { flex: 1 1 240px; font-weight: 800; }
.examen-subsection-title-input { flex: 1 1 220px; font-weight: 700; }
.examen-section-order-input, .examen-subsection-order-input { width: 76px; flex: 0 0 76px; }
.examen-section-title { font-size: 1.05rem; font-weight: 800; color: var(--mh-ink); margin: 0; }
.examen-subsection { margin: 0.75rem 0 0; padding: 0.75rem 0 0 0.85rem; border-left: 3px solid var(--mh-line); }
.examen-subsection-header { margin-bottom: 0.55rem; }
.examen-subsection-title { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; color: var(--mh-ink-soft); margin: 0; }
.examen-requirements-list { display: flex; flex-direction: column; gap: 0.45rem; }
.examen-requirement-item { display: flex; align-items: flex-start; gap: 0.5rem; }
.examen-requirement-number { flex: 0 0 auto; min-width: 1.8rem; padding-top: 0.55rem; font-weight: 800; color: var(--mh-ink-soft); font-size: 0.85rem; text-align: right; }
.examen-requirement-item .examen-input, .examen-requirement-item .examen-textarea { flex: 1 1 auto; min-width: 0; }
.examen-requirement-item .examen-textarea { min-height: 64px; }
.examen-requirement-item .mh-input:disabled, .examen-requirement-item .mh-textarea:disabled { background: #fff; color: var(--mh-ink); border-color: transparent; opacity: 1; }
.examen-requirement-remove { flex: 0 0 auto; width: 30px; height: 30px; margin-top: 0.35rem; border-radius: 50%; border: 1px solid var(--mh-line); background: #fff; color: var(--mh-ink-soft); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.examen-requirement-remove:hover { background: var(--mh-red); border-color: var(--mh-red); color: #fff; }
.examen-add-requirement, .examen-add-subsection { align-self: flex-start; margin-top: 0.35rem; }
.examen-add-section-container { display: flex; justify-content: center; padding-top: 0.25rem; }
.examen-card-actions { justify-content: flex-end !important; }
.mh-color-presets { display: inline-flex; gap: 0.3rem; flex-wrap: wrap; }
.mh-color-preset { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--mh-line); cursor: pointer; padding: 0; }
.mh-color-preset:hover { border-color: var(--mh-ink); }
/* Exam form sheet: stays paper-like (it is a print template) with Design B accents */
.examen-examform-notice { margin-bottom: 1rem; }
.examen-examform-preview-sheet { background: #fff; border: 1px solid var(--mh-line); border-radius: 14px; padding: 1.1rem; box-shadow: 0 10px 30px rgba(33, 24, 12, 0.06); overflow-x: auto; }
.examen-examform-editor-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; padding-bottom: 0.9rem; border-bottom: 1px dashed var(--mh-line); }
.examen-examform-editor-btn-secondary { margin-left: auto; }
.examen-examform-preview-header { padding-bottom: 0.75rem; border-bottom: 2px solid var(--mh-ink); margin-bottom: 0.75rem; }
.examen-examform-preview-title { font-size: 1.25rem; font-weight: 900; color: var(--mh-ink); }
.examen-examform-preview-subtitle { font-size: 0.92rem; color: var(--mh-ink-soft); margin-top: 0.2rem; }
.examen-examform-preview-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--mh-line); margin-bottom: 0.75rem; }
.examen-examform-preview-meta-item { display: flex; gap: 0.5rem; align-items: baseline; font-size: 0.9rem; }
.examen-examform-preview-meta-label { font-weight: 800; white-space: nowrap; }
.examen-examform-preview-meta-item span:not(.examen-examform-preview-meta-label) { flex: 1; min-width: 8ch; border-bottom: 1px dashed var(--mh-line); }
.examen-examform-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.examen-examform-table th, .examen-examform-table td { border: 1px solid var(--mh-line); padding: 0.5rem 0.65rem; vertical-align: top; }
.examen-examform-table th { background: var(--mh-cream-2, #efe7d8); font-weight: 800; text-align: left; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.examen-examform-col-score { width: 70px; text-align: center; font-weight: 700; }
.examen-examform-row-section td { background: var(--mh-ink); color: #fff; font-weight: 800; letter-spacing: 0.02em; }
.examen-examform-row-section-inner, .examen-examform-row-item-inner { display: flex; align-items: center; gap: 0.6rem; }
.examen-examform-item-text, .examen-examform-section-title-text { flex: 1; }
.examen-examform-cell-item { font-weight: 600; }
.examen-examform-row-actions { display: flex; gap: 0.3rem; opacity: 0.35; transition: opacity 0.15s ease; }
.examen-examform-row-section:hover .examen-examform-row-actions, tr[data-row-type="item"]:hover .examen-examform-row-actions, .examen-examform-row-actions:focus-within { opacity: 1; }
.examen-examform-row-btn { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--mh-line); background: #fff; color: var(--mh-ink); cursor: pointer; font-weight: 900; line-height: 1; }
.examen-examform-row-btn:hover { background: var(--mh-red); border-color: var(--mh-red); color: #fff; }
.examen-examform-preview-bottom { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; margin-top: 0.85rem; }
.examen-examform-bottom-title { font-weight: 900; background: var(--mh-cream-2, #efe7d8); border: 1px solid var(--mh-line); padding: 0.45rem 0.65rem; }
.examen-examform-details-box { min-height: 110px; border: 1px solid var(--mh-line); border-top: 0; padding: 0.55rem 0.7rem; }
.examen-examform-passfail { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; align-items: center; margin-top: 0.75rem; }
.examen-examform-passfail-item { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; user-select: none; font-weight: 700; }
.examen-examform-passfail-circle { width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--mh-ink-soft); display: inline-block; }
.examen-examform-passfail-item.is-selected .examen-examform-passfail-circle { border-color: var(--mh-red); box-shadow: inset 0 0 0 4px var(--mh-red); }
.examen-examform-passfail-hint { grid-column: 1 / -1; font-size: 0.85rem; color: var(--mh-ink-soft); }
.examen-examform-signature-box { border: 1px solid var(--mh-line); min-height: 130px; display: flex; align-items: center; justify-content: center; padding: 0.75rem; }
.examen-examform-signature-placeholder { color: var(--mh-ink-soft); font-weight: 700; text-align: center; }
.examen-examform-examiner-row { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.6rem; }
.examen-examform-examiner-label { font-weight: 900; }
.examen-examform-examiner-value { flex: 1; min-width: 12ch; border-bottom: 1px dashed var(--mh-line); }
.examen-examform-preview-footer { margin-top: 0.75rem; padding-top: 0.7rem; border-top: 1px solid var(--mh-line); color: var(--mh-ink-soft); font-size: 0.88rem; }
.examen-examform-preview-sheet [contenteditable="true"] { cursor: text; }
.examen-examform-preview-sheet [contenteditable="true"]:focus { outline: 2px solid var(--mh-red-soft); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 900px) {
    .examen-examform-preview-meta, .examen-examform-preview-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .examen-section { padding: 0.8rem; }
    .examen-subsection { padding-left: 0.6rem; }
    .examen-requirement-number { min-width: 1.3rem; }
    .examen-section-order-input, .examen-subsection-order-input { width: 64px; flex-basis: 64px; }
}

/* --- Examineren (Design B) --- */
.mh-exr-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.mh-exr-side { display: flex; flex-direction: column; gap: 1.25rem; }
.mh-exr-group { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.mh-exr-group:hover { border-color: var(--mh-ink-soft); }
.mh-exr-group.is-active { border-color: var(--mh-red); box-shadow: 0 0 0 3px var(--mh-red-soft); }
.mh-exr-group-arrow { color: var(--mh-ink-soft); font-size: 1.2rem; font-weight: 800; }
.mh-exr-filter { justify-content: space-between; align-items: flex-end; }
.mh-exr-filter .mh-field { flex: 0 0 110px; }
.mh-exr-claim { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.mh-exr-claim .mh-select { min-width: 170px; flex: 1 1 170px; }
.examineren-table tr.is-ignored td { opacity: 0.6; }
.mh-exr-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.9rem; border-top: 1px dashed var(--mh-line); }
@media (max-width: 980px) { .mh-exr-layout { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .mh-exr-claim .mh-select { min-width: 0; } .mh-exr-foot .mh-btn { width: 100%; } }
.examen-requirement-text { flex: 1 1 auto; margin: 0; padding: 0.5rem 0.75rem; background: #fff; border: 1px solid var(--mh-line); border-radius: 10px; font-size: 0.92rem; line-height: 1.45; color: var(--mh-ink); }

/* ---- Lesrooster 2026: per-day rooster, descriptions, "no lesson" state ---- */
.pb-times-day { display: block; margin-top: 0.55rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #b8b0a4; }
.pb-times-day + .pb-times { margin-top: 0.25rem; }
.pb-hero-card .pb-times { gap: 0.2rem; }
.pb-hero-card .pb-times li { font-size: 0.92rem; }
.pb-hero-card .pb-times strong { font-size: 0.98rem; min-width: 2.9rem; }
.pb-hero-card .pb-times small { text-align: right; font-size: 0.78rem; line-height: 1.3; }
.pb-dayhead:first-of-type { margin-top: 0.4rem; }
.lessen-dag { margin: 0.6rem 0 0.2rem; }
.mh-nolesson { padding: 0.85rem 1rem; border-radius: 12px; background: var(--mh-cream-2, #f4efe6); color: var(--mh-ink-2); margin-bottom: 0.75rem; }
.mh-lfixed-desc { font-style: normal; font-weight: 500; color: var(--mh-ink-soft); font-size: 0.8rem; margin-left: 0.35rem; }
.lc-desc { color: var(--text-light, #6b6259); }
.lc-days { display: inline-block; min-width: 2.6rem; font-weight: 700; text-transform: uppercase; font-size: 0.78rem; color: var(--text-light, #6b6259); }
.pb-hero-card { width: min(330px, 86%); }
.pb-hero-card .pb-times li { white-space: nowrap; }
.pb-hero-card .pb-times small { white-space: normal; }
.admin-lesson-configs-table td:nth-child(2) { white-space: nowrap; }

/* Aanmeldingen-overzicht (inschrijven): brede tabel met veel kolommen, geef de dialoog meer ruimte */
#aanmeldingen-modal .modal-content.modal-large {
    max-width: min(1320px, 96vw);
    width: 96vw;
}

/* === Public SEO pass (hero image, footer headings, breadcrumb) === */
.pb-hero-photo { overflow: hidden; background: #2a2724; }
.pb-hero-photo picture, .pb-hero-photo img { display: block; width: 100%; height: 100%; }
.pb-hero-photo img { object-fit: cover; object-position: center; }
.pb-footer-title { color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.8rem; }
.pb-footer-address { font-style: normal; line-height: 1.5; }
.pb-footer-bottom { color: #a59d92; }
.pb-lessons-note { margin: 1rem 0 0.25rem; }
.pb-lessons-note a, .pb-prose a { color: var(--mh-red); }
.pb-breadcrumb { font-size: 0.85rem; color: #6f675e; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.pb-breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pb-breadcrumb [aria-current] { color: var(--mh-ink); font-weight: 600; }

/* Examenformulier in het ledenportaal: sectiebalk donker met witte tekst (wint van .mh-main table td) */
.member-hub-body .mh-main .examen-examform-row-section td,
.member-hub-body .mh-main .examen-examform-row-section td .examen-examform-section-title-text {
    color: #fff;
}
.pb-contact-card-dark .pb-contact-icon { color: #fff; }

/* Platform impersonation banner (platform admin opened this dojo via "Open als beheerder") */
.mh-impersonate-banner { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1.5rem; background: #fff3d6; color: #5c4100; border-bottom: 2px solid #d79b00; font-size: .88rem; }
.mh-impersonate-banner a { flex: 0 0 auto; background: var(--mh-ink); color: #fff; text-decoration: none; padding: .35rem .85rem; border-radius: 999px; font-weight: 700; font-size: .82rem; }
.mh-impersonate-banner a:hover { background: var(--mh-red); }

/* ---- Member Assistent (Design B chat) ---- */
.mh-chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
.mh-chat { display: flex; flex-direction: column; min-height: 520px; }
.mh-chat-log { flex: 1; min-height: 320px; max-height: calc(100vh - 420px); overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; padding: .25rem .1rem 1rem; }
.mh-chat-empty { margin: auto; text-align: center; color: var(--mh-ink-soft); max-width: 520px; padding: 1.25rem .5rem; }
.mh-chat-empty-icon { font-size: 2.1rem; margin-bottom: .35rem; }
.mh-chat-empty p { margin: 0 0 .9rem; line-height: 1.5; }
.mh-chat-empty strong { color: var(--mh-ink); }
.mh-chat-empty[hidden] { display: none; }
.mh-chat-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.mh-chat-chip { font: inherit; font-size: .85rem; border: 1px solid var(--mh-line); background: var(--mh-cream); color: var(--mh-ink); border-radius: 999px; padding: .4rem .85rem; cursor: pointer; }
.mh-chat-chip:hover:not(:disabled), .mh-chat-chip:focus-visible { border-color: var(--mh-red); color: var(--mh-red); background: #fff; outline: none; }
.mh-chat-chip:disabled { opacity: .55; cursor: not-allowed; }
.mh-msg { display: flex; gap: .6rem; align-items: flex-start; }
.mh-msg-user { justify-content: flex-end; }
.mh-msg-user .mh-msg-bubble { background: var(--mh-ink); color: #fff; border: 0; border-radius: 16px 16px 4px 16px; max-width: 78%; }
.mh-msg-avatar { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--mh-red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.mh-msg-body { min-width: 0; max-width: 86%; display: flex; flex-direction: column; gap: .4rem; }
.mh-msg-bubble { padding: .7rem .95rem; border-radius: 16px 16px 16px 4px; background: var(--mh-cream); border: 1px solid var(--mh-line); color: var(--mh-ink); font-size: .93rem; line-height: 1.55; overflow-wrap: anywhere; }
.mh-msg-bubble p { margin: 0 0 .5rem; }
.mh-msg-bubble p:last-child, .mh-msg-bubble ul:last-child, .mh-msg-bubble ol:last-child { margin-bottom: 0; }
.mh-msg-bubble ul, .mh-msg-bubble ol { margin: 0 0 .5rem; padding-left: 1.2rem; }
.mh-msg-error .mh-msg-bubble { background: var(--mh-red-soft); border-color: #f2c2c8; color: #7a0c1d; }
.mh-msg-guard .mh-msg-avatar { background: var(--mh-ink); }
.mh-msg-guard .mh-msg-bubble { background: #fff8e6; border-color: #f0dfb0; }
.mh-msg-typing .mh-msg-bubble { color: var(--mh-ink-soft); }
.mh-msg-sources { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .78rem; }
.mh-msg-sources-label { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--mh-ink-soft); font-size: .68rem; }
.mh-src { display: inline-flex; gap: .25rem; align-items: center; border: 1px solid var(--mh-line); background: var(--mh-paper); border-radius: 999px; padding: .2rem .6rem; color: var(--mh-ink); text-decoration: none; }
.mh-src small { color: var(--mh-ink-soft); }
a.mh-src:hover { border-color: var(--mh-red); color: var(--mh-red); }
.mh-src-me { border-color: var(--mh-red); background: var(--mh-red-soft); font-weight: 700; }
.mh-dots { display: inline-flex; gap: 3px; margin-right: .35rem; vertical-align: middle; }
.mh-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mh-ink-soft); animation: mh-dot 1s infinite ease-in-out; }
.mh-dots i:nth-child(2) { animation-delay: .15s; } .mh-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mh-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.mh-chat-form { display: flex; gap: .6rem; align-items: flex-end; border-top: 1px solid var(--mh-line); padding-top: .9rem; }
.mh-chat-input { flex: 1; resize: vertical; min-height: 52px; max-height: 180px; font-family: inherit; line-height: 1.45; width: 100%; }
.mh-chat-form .mh-btn { height: 52px; border: 0; cursor: pointer; font-family: inherit; }
.mh-chat-privacy { margin: .55rem 0 0; font-size: .76rem; color: var(--mh-ink-soft); line-height: 1.45; }
.mh-chat-know { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.mh-chat-know li { display: flex; gap: .5rem; }
.mh-chat-aside .mh-btn { cursor: pointer; border: 0; font-family: inherit; }
@media (max-width: 1000px) { .mh-chat-layout { grid-template-columns: 1fr; } .mh-chat-log { max-height: 60vh; } }
@media (max-width: 640px) { .mh-msg-body, .mh-msg-user .mh-msg-bubble { max-width: 100%; } .mh-chat-form { flex-direction: column; align-items: stretch; } .mh-chat-form .mh-btn { height: auto; } }

/* === Onboarding: "Je dojo instellen" (Design B) === */
.ob-page { max-width: 1080px; }
.ob-page [hidden], .ob-banner [hidden], .ob-preview-bar[hidden] { display: none !important; }
.ob-progress { display: flex; align-items: center; gap: 0.85rem; margin: 0 0 1.1rem; }
.ob-progress-bar { position: relative; flex: 1 1 auto; height: 10px; border-radius: 999px; background: var(--mh-cream-2, #efe7d8); overflow: hidden; border: 1px solid var(--mh-line); }
.ob-progress-bar > span { position: absolute; inset: 0 auto 0 0; background: var(--mh-red); border-radius: 999px; transition: width 0.35s ease; }
.ob-progress-text { font-size: 0.85rem; font-weight: 800; color: var(--mh-ink); white-space: nowrap; min-width: 6.5rem; text-align: right; }
.ob-hero { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ob-hero h2 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.ob-hero-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.ob-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ob-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 0.85rem; padding: 0.8rem 0; border-top: 1px solid var(--mh-line); }
.ob-item:first-child { border-top: 0; }
.ob-item-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; background: var(--mh-cream-2, #efe7d8); color: var(--mh-ink-soft); }
.ob-item.is-done .ob-item-icon, .ob-item.is-default .ob-item-icon { background: #e8f3ea; color: #1f5130; }
.ob-item.is-todo .ob-item-icon { background: var(--mh-red); color: #fff; }
.ob-item.is-na { opacity: 0.55; }
.ob-item-text { display: flex; flex-direction: column; min-width: 0; }
.ob-item-text strong { font-size: 0.95rem; color: var(--mh-ink); }
.ob-item-text small { font-size: 0.8rem; color: var(--mh-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-item-actions { display: flex; gap: 0.4rem; justify-content: flex-end; flex-wrap: wrap; }
.ob-item-actions .mh-btn { white-space: nowrap; }
.ob-req { color: var(--mh-red); font-weight: 800; }

.ob-stepper { display: flex; gap: 0.35rem; overflow-x: auto; padding: 0.15rem 0 0.6rem; margin-bottom: 0.75rem; scrollbar-width: thin; }
.ob-step { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.7rem 0.35rem 0.35rem; border-radius: 999px; border: 1px solid var(--mh-line); background: var(--mh-paper); color: var(--mh-ink-soft); text-decoration: none; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.ob-step-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--mh-cream-2, #efe7d8); font-size: 0.75rem; }
.ob-step.is-done .ob-step-num, .ob-step.is-default .ob-step-num { background: #e8f3ea; color: #1f5130; }
.ob-step.is-skipped .ob-step-num { background: var(--mh-ink); color: #fff; }
.ob-step.is-current { border-color: var(--mh-ink); color: var(--mh-ink); box-shadow: 0 0 0 2px var(--mh-ink) inset; }
.ob-step.is-current .ob-step-num { background: var(--mh-red); color: #fff; }
.ob-step:hover { color: var(--mh-ink); }

.ob-card { padding: 1.6rem 1.75rem; }
.ob-count { margin: 0 0 0.3rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mh-red); }
.ob-question { margin: 0 0 0.35rem; font-size: 1.55rem; line-height: 1.2; font-weight: 800; color: var(--mh-ink); }
.ob-subq { margin: 1.6rem 0 0.4rem; font-size: 1.05rem; font-weight: 800; color: var(--mh-ink); }
.ob-why { margin: 0 0 1.1rem; color: var(--mh-ink-soft); font-size: 0.92rem; max-width: 62ch; }
.ob-field { margin-bottom: 0.9rem; }
.ob-big { font-size: 1.15rem !important; padding: 0.75rem 0.9rem !important; }
.ob-err { margin: 0.15rem 0 0; color: #a10e25; font-size: 0.82rem; font-weight: 600; }
.ob-err::before { content: '⚠ '; }
.ob-field.has-error .mh-input, .ob-field.has-error .mh-select, .ob-field.has-error textarea { border-color: #c8102e !important; box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12); }
.ob-saved { color: #2e7d46; font-weight: 800; font-size: 0.8rem; }
.ob-saved.is-flash { animation: obFlash 0.6s ease; }
@keyframes obFlash { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
#obForm > .ob-saved { display: inline-block; margin-top: 0.5rem; }
.ob-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid var(--mh-line); flex-wrap: wrap; }
.ob-nav-right { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-left: auto; }
.ob-nav .mh-btn { white-space: nowrap; }

.ob-seg { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.ob-seg-opt input, .ob-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ob-seg-opt span, .ob-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid var(--mh-line); background: var(--mh-paper); font-weight: 700; font-size: 0.88rem; color: var(--mh-ink); cursor: pointer; user-select: none; transition: background 0.12s ease, color 0.12s ease; }
.ob-seg-opt input:checked + span, .ob-chip input:checked + span { background: var(--mh-ink); border-color: var(--mh-ink); color: #fff; }
.ob-seg-opt input:focus-visible + span, .ob-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--mh-red-soft); }
.ob-daychips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ob-chip span { min-width: 48px; justify-content: center; }
.ob-suggest { margin: -0.4rem 0 0.9rem; }
.ob-suggest .mh-chip { cursor: pointer; border: 1px dashed var(--mh-line); }

.ob-address { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(8rem, 10rem) minmax(7rem, 9rem); gap: 0.75rem; }
.ob-disclose { margin: 0.5rem 0 1rem; }
.ob-preview-box { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--mh-cream); border: 1px dashed var(--mh-line); }
.ob-preview-label { margin: 0 0 0.45rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mh-ink-soft); }
.ob-owntext { margin-top: 0.75rem; }

.ob-logo { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.ob-logo-preview { width: 112px; height: 112px; border-radius: 16px; border: 1px solid var(--mh-line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.ob-logo-preview img { max-width: 92%; max-height: 92%; object-fit: contain; }
.ob-logo-actions { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; }
.ob-file { position: relative; overflow: hidden; cursor: pointer; }
.ob-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ob-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.ob-swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--mh-line); cursor: pointer; padding: 0; position: relative; }
.ob-swatch.is-active { box-shadow: 0 0 0 3px var(--mh-ink); }
.ob-swatch-custom { display: grid; place-items: center; background: conic-gradient(#c8102e, #f59e0b, #16a34a, #2563eb, #7c3aed, #c8102e); color: #fff; font-weight: 800; }
.ob-swatch-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ob-contrast { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.ob-sample-btn { display: inline-block; padding: 0.55rem 1.1rem; border-radius: 10px; color: #fff; font-weight: 800; font-size: 0.9rem; }
#obContrastText.is-ok { color: #1f5130; font-weight: 700; font-size: 0.85rem; }
#obContrastText.is-bad { color: #a10e25; font-weight: 700; font-size: 0.85rem; }

.ob-modules { list-style: none; margin: 0; padding: 0; }
.ob-module { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0.85rem; align-items: center; padding: 0.9rem 0; border-top: 1px solid var(--mh-line); margin: 0; }
.ob-module:first-child { border-top: 0; }
.ob-module-icon { font-size: 1.4rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--mh-cream-2, #efe7d8); }
.ob-module-text { display: flex; flex-direction: column; gap: 0.15rem; }
.ob-module-text small { color: var(--mh-ink-soft); font-size: 0.84rem; }
.ob-module-text .ob-dep { color: #6b4b00; }
.ob-module.is-readonly { opacity: 0.8; }

.ob-belts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.ob-belt { display: grid; grid-template-columns: 4.5rem 34px minmax(0, 1fr) 9rem 1.2rem; gap: 0.6rem; align-items: start; }
.ob-belt .ob-field { margin: 0; }
.ob-belt .mh-input, .ob-belt .mh-select { width: 100%; box-sizing: border-box; }
.ob-belt-kyu { font-weight: 800; font-size: 0.85rem; padding-top: 0.6rem; }
.ob-belt-swatch { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--mh-line); margin-top: 0.2rem; }
.ob-belt > .ob-saved { padding-top: 0.6rem; }
.ob-ages { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }
.ob-ages input[type=range], .ob-agerange input[type=range] { width: 100%; accent-color: var(--mh-red); }
.ob-age-bar { grid-column: 1 / -1; display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--mh-ink); }
.ob-age-bar .ob-a1 { background: #f3c64f; } .ob-age-bar .ob-a2 { background: #f08a3c; } .ob-age-bar .ob-a3 { flex: 1; }
#obAgeSummary { grid-column: 1 / -1; }

.ob-list { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.ob-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.5rem 0; border-top: 1px solid var(--mh-line); font-size: 0.9rem; }
.ob-list li:first-child { border-top: 0; }
.ob-teachers li { justify-content: flex-start; }
.ob-self { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.75rem 1rem; border-radius: 12px; background: var(--mh-red-soft); margin: 0.5rem 0 0.25rem; font-weight: 700; }
.ob-subform { padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--mh-line); background: var(--mh-cream); }
.ob-subform-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }
.ob-newaccount { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 12px; border: 2px solid #2e7d46; background: #f4faf5; }
.ob-pass { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.4rem; font-weight: 700; }
.ob-pass code { font-size: 1.05rem; padding: 0.3rem 0.6rem; border-radius: 8px; background: #fff; border: 1px solid var(--mh-line); letter-spacing: 0.04em; }

.ob-lessons { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.ob-lessons-side { position: sticky; top: 1rem; }
.ob-agerange { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ob-rooster { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.75rem; }
.ob-rooster-day { border: 1px solid var(--mh-line); border-radius: 12px; background: var(--mh-paper); overflow: hidden; }
.ob-rooster-day h4 { margin: 0; padding: 0.4rem 0.75rem; background: var(--mh-ink); color: #fff; font-size: 0.82rem; letter-spacing: 0.04em; }
.ob-rooster-day ul { list-style: none; margin: 0; padding: 0; }
.ob-rooster-day li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.1rem 0.6rem; padding: 0.5rem 0.75rem; border-top: 1px solid var(--mh-line); font-size: 0.87rem; }
.ob-rooster-day li:first-child { border-top: 0; }
.ob-rooster-day li.is-draft { background: var(--mh-red-soft); box-shadow: inset 4px 0 0 var(--mh-red); }
.ob-r-time { font-weight: 800; grid-row: span 3; }
.ob-r-title { font-weight: 700; }
.ob-r-title em { font-style: normal; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--mh-red); margin-left: 0.25rem; }
.ob-r-desc { color: var(--mh-ink-soft); font-size: 0.8rem; }

.ob-presets { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.4rem 0 0.6rem; }
.ob-preset-group { margin: 0.6rem 0 0.1rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mh-ink-soft); }
.ob-preset { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 0.6rem; align-items: center; padding: 0.5rem 0.75rem; border-radius: 10px; border: 1px solid var(--mh-line); background: var(--mh-paper); cursor: pointer; }
.ob-preset input { width: 18px; height: 18px; accent-color: var(--mh-red); }
.ob-preset-name { font-weight: 700; }
.ob-preset-date { color: var(--mh-ink-soft); font-size: 0.85rem; white-space: nowrap; }
.ob-preset.is-have { opacity: 0.7; cursor: default; }

.ob-templates { display: flex; flex-direction: column; gap: 0.6rem; }
.ob-template { border: 1px solid var(--mh-line); border-radius: 12px; background: var(--mh-paper); }
.ob-template > summary { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; cursor: pointer; list-style: none; }
.ob-template > summary::-webkit-details-marker { display: none; }
.ob-template > summary span:first-child { display: flex; flex-direction: column; }
.ob-template > summary small { color: var(--mh-ink-soft); font-size: 0.82rem; }
.ob-template .ob-subform { margin: 0 1rem 1rem; }
.ob-template.is-have > summary { cursor: default; opacity: 0.8; }

.ob-final-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.1rem 0 0.75rem; }
.ob-summary .ob-item { grid-template-columns: 34px minmax(0, 1fr) auto auto; }

.ob-member-preview { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1rem; align-items: start; }
.ob-mp-nav { display: flex; flex-direction: column; gap: 0.15rem; padding: 1rem; border-radius: 14px; background: var(--mh-ink); color: #fff; position: sticky; top: 1rem; }
.ob-mp-nav strong { margin-bottom: 0.5rem; }
.ob-mp-nav span { padding: 0.4rem 0.5rem; border-radius: 8px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); }
.ob-mp-main { display: flex; flex-direction: column; gap: 1rem; }
.ob-preview-note { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Dashboard banner + admin link + sidebar badge */
.ob-banner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: 1.25rem 3rem 1.25rem 1.4rem; margin-bottom: 1.25rem; border-radius: var(--mh-radius, 14px); background: var(--mh-paper); border: 1px solid var(--mh-line); box-shadow: inset 5px 0 0 var(--mh-red); }
.ob-banner h2 { margin: 0.1rem 0 0.6rem; font-size: 1.2rem; font-weight: 800; color: var(--mh-ink); }
.ob-banner-main { flex: 1 1 340px; min-width: 0; }
.ob-banner .ob-progress-bar { max-width: 420px; }
.ob-banner-sub { margin: 0.75rem 0 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--mh-ink-soft); }
.ob-banner-items { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.ob-banner-items a, .ob-banner-items span { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px; border: 1px solid var(--mh-line); background: var(--mh-cream); font-size: 0.82rem; font-weight: 700; color: var(--mh-ink); text-decoration: none; }
.ob-banner-items a.is-required { border-color: var(--mh-red); color: #8a0c20; background: var(--mh-red-soft); }
.ob-banner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ob-banner-actions .mh-btn { white-space: nowrap; }
.ob-banner-close { position: absolute; top: 0.6rem; right: 0.7rem; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; font-size: 1.4rem; line-height: 1; color: var(--mh-ink-soft); cursor: pointer; }
.ob-banner-close:hover { background: var(--mh-cream-2, #efe7d8); color: var(--mh-ink); }
.ob-admin-link { display: grid; grid-template-columns: 44px minmax(0, 1fr) 180px; gap: 0.9rem; align-items: center; padding: 1rem 1.2rem; margin-bottom: 1.25rem; border-radius: var(--mh-radius, 14px); border: 1px solid var(--mh-line); background: var(--mh-paper); text-decoration: none; color: var(--mh-ink); box-shadow: inset 5px 0 0 var(--mh-red); }
.ob-admin-link:hover { border-color: var(--mh-ink); }
.ob-admin-icon { font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--mh-red-soft); }
.ob-admin-text { display: flex; flex-direction: column; }
.ob-admin-text small { color: var(--mh-ink-soft); font-size: 0.84rem; }
.mh-nav-badge { margin-left: auto; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--mh-red); color: #fff; font-size: 0.7rem; font-weight: 800; }
.ob-preview-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; padding: 0.6rem 1rem; background: #1f1d1b; color: #fff; font-size: 0.9rem; }
.ob-preview-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; opacity: 0.75; }

@media (max-width: 860px) {
    .ob-lessons, .ob-member-preview { grid-template-columns: 1fr; }
    .ob-lessons-side, .ob-mp-nav { position: static; }
    .ob-item { grid-template-columns: 30px minmax(0, 1fr); }
    .ob-item > .mh-badge { grid-column: 2; justify-self: start; }
    .ob-item-actions { grid-column: 2; justify-content: flex-start; }
    .ob-admin-link { grid-template-columns: 44px minmax(0, 1fr); }
    .ob-admin-bar { grid-column: 1 / -1; }
    .ob-card { padding: 1.2rem 1.1rem; }
    .ob-question { font-size: 1.3rem; }
}
@media (max-width: 560px) {
    .ob-address { grid-template-columns: 1fr 1fr; }
    .ob-belt { grid-template-columns: 3.8rem 26px minmax(0, 1fr); }
    .ob-belt > .ob-field:nth-of-type(2) { grid-column: 3; }
    .ob-ages, .ob-agerange { grid-template-columns: 1fr; }
    .ob-nav-right { width: 100%; }
}

/* === Onboarding chat: "Stel je dojo in met de assistent" (Design B) === */
.obc-start-btn { white-space: nowrap; }
.obc-unavailable { margin: -0.5rem 0 1.1rem; padding: 0.6rem 0.85rem; border-radius: 12px; background: #fff8e6; border: 1px solid #f0dfb0; color: #6b4e00; font-size: 0.86rem; }
.obc { display: flex; flex-direction: column; gap: 0.9rem; }
.obc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 0.85rem; border-bottom: 1px solid var(--mh-line); }
.obc-head h2 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.obc-head .mh-card-sub { margin: 0; max-width: 46rem; }
.obc-head-progress { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; min-width: 11rem; }
.obc-head-progress .ob-progress-bar { width: 11rem; flex: 0 0 auto; }
.obc-pct { font-size: 0.85rem; font-weight: 800; color: var(--mh-ink); }
.obc-pct.is-bump { animation: obc-bump 0.6s ease; }
@keyframes obc-bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: var(--mh-red); } 100% { transform: scale(1); } }
.obc-log { min-height: 320px; max-height: calc(100vh - 380px); overflow-y: auto; display: flex; flex-direction: column; gap: 0.9rem; padding: 0.25rem 0.1rem 0.5rem; }
.obc-log > * { flex-shrink: 0; } /* cards must keep their full height inside the scrolling log */
.obc-empty { margin: auto; text-align: center; max-width: 30rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; color: var(--mh-ink-soft); }
.obc-empty p { margin: 0; }
.obc-log .mh-msg-bubble p { margin: 0 0 0.4rem; } .obc-log .mh-msg-bubble p:last-child { margin-bottom: 0; }
.obc-log .mh-msg-bubble ul { margin: 0.2rem 0 0.4rem; padding-left: 1.15rem; }
.obc-fix .mh-msg-bubble { background: #fff8e6; border-color: #f0dfb0; }
.obc-result .mh-msg-bubble { background: #ecf8ef; border-color: #bfe3c8; color: #14532d; }
.obc-card { margin-left: 2.75rem; max-width: 40rem; border: 1px solid var(--mh-line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(20, 15, 10, 0.06); overflow: hidden; }
.obc-card-head { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.75rem 1rem; background: var(--mh-cream); border-bottom: 1px solid var(--mh-line); }
.obc-card-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mh-red); }
.obc-card-body { padding: 0.85rem 1rem; font-size: 0.92rem; }
.obc-card-body > :last-child { margin-bottom: 0; }
.obc-card-foot { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; padding: 0.7rem 1rem; border-top: 1px solid var(--mh-line); background: #fcfaf6; }
.obc-card-status { font-weight: 800; font-size: 0.86rem; color: var(--mh-ink-soft); }
.obc-card.is-saved { border-color: #bfe3c8; } .obc-card.is-saved .obc-card-status { color: #15803d; }
.obc-card.is-discarded, .obc-card.is-expired { opacity: 0.6; }
.obc-card.is-failed .obc-card-status, .obc-card.is-partial .obc-card-status { color: #a10e25; }
.obc-card-wizard .obc-card-body p { margin: 0; font-weight: 600; }
.obc-rows { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: 0.35rem 1rem; margin: 0 0 0.6rem; }
.obc-rows dt { font-weight: 700; color: var(--mh-ink-soft); font-size: 0.85rem; }
.obc-rows dd { margin: 0; overflow-wrap: anywhere; }
.obc-belt { display: inline-block; width: 1.6rem; height: 0.6rem; border-radius: 3px; border: 1px solid rgba(0, 0, 0, 0.25); margin-right: 0.45rem; vertical-align: middle; }
.obc-note { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--mh-ink-soft); }
.obc-sub { margin: 0.6rem 0 0.35rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mh-ink-soft); }
.obc-warn { list-style: none; margin: 0.6rem 0 0; padding: 0.55rem 0.75rem; border-radius: 10px; background: #fff8e6; border: 1px solid #f0dfb0; color: #6b4e00; font-size: 0.85rem; }
.obc-card .ob-rooster { margin-top: 0.25rem; }
.obc-brand { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.obc-brand-logo { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.obc-brand-logo .ob-logo-preview { width: 96px; height: 96px; }
.obc-brand-color .obc-sub { margin-top: 0; }
.obc-brand-color .ob-contrast { margin-bottom: 0.6rem; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; font-size: 0.85rem; }
.obc-brand-color .is-ok { color: #15803d; font-weight: 700; } .obc-brand-color .is-bad { color: #a10e25; font-weight: 700; }
.obc-secret { margin-top: 0.6rem; padding: 0.7rem 0.8rem; border-radius: 12px; background: #fff; border: 1px dashed #9ccaa8; color: var(--mh-ink); }
.obc-secret-title { margin: 0 0 0.35rem !important; font-weight: 800; font-size: 0.82rem; }
.obc-secret-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.4rem; }
.obc-secret code { font-size: 1rem; padding: 0.3rem 0.55rem; border-radius: 8px; background: var(--mh-cream); border: 1px solid var(--mh-line); letter-spacing: 0.04em; }
.obc-invite { white-space: pre-wrap; font: inherit; font-size: 0.82rem; margin: 0 0 0.4rem; padding: 0.5rem 0.65rem; border-radius: 8px; background: var(--mh-cream); border: 1px solid var(--mh-line); max-height: 9rem; overflow: auto; }
.obc-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.obc-foot { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; align-items: center; padding-top: 0.6rem; border-top: 1px solid var(--mh-line); }
.obc-foot .mh-chat-privacy { margin: 0; flex: 1 1 22rem; }
.obc-foot-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
@media (max-width: 720px) {
    .obc-head-progress { align-items: stretch; width: 100%; } .obc-head-progress .ob-progress-bar { width: 100%; }
    .obc-log { max-height: 62vh; min-height: 260px; }
    .obc-card { margin-left: 0; max-width: 100%; }
    .obc-brand { grid-template-columns: 1fr; }
    .obc-rows { grid-template-columns: 1fr; gap: 0.1rem; } .obc-rows dd { margin-bottom: 0.4rem; }
    .obc-card-foot .mh-btn { flex: 1 1 auto; justify-content: center; }
}
