:root {
    /* PassMRCS brand — from logo: ink black + golden yellow */
    --primary: #FACC15;
    --primary-dark: #EAB308;
    --primary-ink: #0B0F19;
    --secondary: #FEF9C3;
    --accent: #FDE047;
    --success: #16a34a;
    --error: #ef4444;
    --danger: #ef4444;
    --surface: #ffffff;
    --background: #F8F7F2;
    --text: #0B0F19;
    --text-dark: #0B0F19;
    --text-muted: #64748b;
    --border: #E7E5DD;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --login-bg: #0B0F19;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ============ SR-ONLY / VISUALLY HIDDEN (CRAWLER & ACCESSIBILITY SAFE) ============ */
.sr-only,
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============ LOGIN PAGE ============ */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0B0F19 0%, #1e293b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-brand {
    color: white;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    text-align: center;
    font-size: 0.95rem;
}

.login-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text);
    font-weight: 400;
    font-size: 1.75rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 2rem;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--primary-ink);
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    background: var(--primary-dark);
    color: var(--primary-ink);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.45);
}

.forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

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

.login-version {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 3rem;
    font-size: 0.85rem;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ============ NAVBAR ============ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-ink);
}

.brand-icon {
    width: 28px;
    height: 28px;
}

.brand-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.brand-accent {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.btn-logout {
    background: none;
    border: 2px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
}

.btn-logout:hover {
    border-color: var(--error);
    color: var(--error);
}

/* ============ MAIN LAYOUT ============ */
#main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============ TABS ============ */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-btn:hover {
    color: var(--primary);
}

/* ============ COMPONENTS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-ink);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--primary-ink);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

.btn-danger,
.btn-delete {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    font-weight: 600;
}

.btn-danger:hover,
.btn-delete:hover {
    background-color: #ef4444;
    color: white;
    border-color: #dc2626;
}

/* ============ BADGES ============ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-primary {
    background-color: var(--primary);
    color: var(--primary-ink);
    font-weight: 700;
}

.badge-pending {
    background-color: var(--primary);
    color: var(--primary-ink);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.35rem;
    display: inline-block;
}

.badge-outline {
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.card {
    background-color: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

/* ============ FOLDER CARDS ============ */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* LIST VIEW STYLES */
.folder-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.folder-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.folder-list .folder-card {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}

.folder-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.folder-list .folder-card:hover {
    transform: translateX(4px);
    /* Horizontal shift for list items */
}

.folder-icon {
    width: 48px;
    height: 48px;
    background: var(--secondary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.folder-list .folder-icon {
    width: 36px;
    height: 36px;
    /* Smaller icon in list view */
}

.folder-list .folder-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.folder-info {
    flex-grow: 1;
    /* Take up remaining space */
}

.folder-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.folder-list .folder-info h3 {
    margin-bottom: 0;
    /* Align perfectly in row */
}

.folder-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============ PROGRESS CIRCLES ============ */
.progress-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin: 3rem 0;
}

.progress-circle {
    text-align: center;
}

.circle-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
}

.circle-svg {
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 12;
}

.circle-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-label {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.progress-stats {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============ QUESTION STYLES ============ */
.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-btn {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    background-color: white;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.option-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background-color: var(--secondary);
}

.option-btn.selected {
    border-color: var(--primary);
    background-color: var(--secondary);
    font-weight: 500;
}

.option-btn.correct {
    border-color: #22c55e !important;
    background-color: #dcfce7 !important;
    color: #15803d !important;
}

.option-btn.incorrect {
    border-color: #ef4444 !important;
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}

.opt-letter {
    font-weight: 700;
    min-width: 24px;
    color: var(--text-muted);
}

.option-btn.selected .opt-letter,
.option-btn.correct .opt-letter,
.option-btn.incorrect .opt-letter {
    color: inherit;
}

.explanation-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f1f5f9;
    border-radius: 0.75rem;
    border-left: 5px solid var(--primary);
    animation: slideDown 0.3s ease-out;
}

.explanation-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ TABLE ============ */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

th {
    font-weight: 600;
    background: var(--background);
}

/* ============ UTILITIES ============ */
.hidden {
    display: none !important;
}

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

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-muted {
    color: var(--text-muted);
}

/* ============ MODAL SYSTEM ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 1.25rem;
    width: 95%;
    max-width: 550px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.modal-close:hover {
    background: var(--background);
    color: var(--error);
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* ============ TOAST NOTIFICATIONS ============ */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid var(--primary);
    transform: translateX(120%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 320px;
    max-width: 450px;
}

.toast.active {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

.toast-message {
    font-size: 0.95rem;
    color: var(--text);
}

/* ============ LOADING SPINNER ============ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

/* Breadcrumbs clickable */
.breadcrumbs .crumb-link {
    cursor: pointer;
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumbs .crumb-link:hover {
    color: var(--primary-dark);
}

/* Smaller folders for subfolders */
.folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Decrease min size */
}

.folder-card {
    padding: 1rem;
    /* Reduce padding */
}

.folder-card h3 {
    font-size: 1rem;
    /* Smaller Font */
}

/* Folder Image/Logo Styles */
.folder-image-container {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
}

.folder-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.folder-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.folder-icon img.folder-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
}

/* ============ LIST VIEW STYLES ============ */
.folder-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.folder-list .folder-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
}

.folder-list .folder-image-container {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.folder-list .folder-card h3 {
    margin: 0;
    flex: 1;
    font-size: 1.1rem;
}

.folder-list .folder-actions {
    margin-top: 0 !important;
    gap: 1rem !important;
}

.folder-list .folder-icon-placeholder i {
    width: 24px !important;
    height: 24px !important;
}

/* ============ PASSMEDICINE LIST STYLE ============ */
.passmed-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* No gap, borders handle separation */
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.passmed-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.1s;
}

.passmed-row:last-child {
    border-bottom: none;
}

.passmed-row:hover {
    background: #f8fafc;
}

.pm-check {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.pm-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
}

.pm-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.pm-count {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.pm-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 1;
    /* Always visible for better UX */
    transition: opacity 0.2s;
}

.passmed-row:hover .pm-actions {
    opacity: 1;
}

.btn-icon-sm {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    border-radius: 4px;
}

.btn-icon-sm:hover {
    background: #e2e8f0;
    color: #475569;
}

.btn-icon-sm.text-danger:hover {
    color: #ef4444;
    background: #fee2e2;
}.profile-dropdown {
    position: relative;
    display: inline-block;
}

#profile-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    z-index: 1000;
}

#profile-menu.hidden {
    display: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--surface);
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
}

/* ============ RESPONSIVE MEDIA QUERIES (TABLET & MOBILE / 390px) ============ */
@media (max-width: 768px) {
    #main-content {
        padding: 1rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

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

    .nav-right {
        gap: 0.75rem;
    }

    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .folder-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .progress-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        margin: 1.5rem 0;
    }

    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.25rem;
        border-radius: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .login-brand {
        font-size: 2.25rem;
    }

    .modal-container {
        width: 95vw;
        max-width: 95vw;
        margin: 1rem;
        padding: 1.25rem;
    }

    .user-table th,
    .user-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    #main-content {
        padding: 0.75rem;
    }

    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .nav-brand span {
        font-size: 1.1rem;
    }

    .brand-logo {
        height: 28px;
    }

    .circle-wrapper {
        width: 140px;
        height: 140px;
    }

    .circle-svg {
        width: 140px;
        height: 140px;
    }

    .circle-text h2 {
        font-size: 1.5rem;
    }

    .circle-text p {
        font-size: 0.75rem;
    }

    .login-card {
        padding: 1.5rem 1rem;
    }

    .login-brand {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .passmed-row {
        padding: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pm-stats {
        gap: 0.75rem;
    }

    .flex-between {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .card {
        padding: 1.25rem 1rem;
        border-radius: 0.75rem;
    }

    .folder-card {
        padding: 1rem;
    }

    .breadcrumbs {
        font-size: 0.85rem;
        word-break: break-word;
    }

    .option-btn {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}



/* ==========================================================================
   MILESTONES 3 & 4: PUBLIC LANDING, CHECKOUT, PENDING, STATUS & ADMIN PAYMENTS
   ========================================================================== */

/* Pending Badge in Admin Tab */
.badge-pending {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 9999px;
    vertical-align: middle;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.status-pending, .badge-status-pending {
    background: #fef08a;
    color: #854d0e;
    border: 1px solid #fde047;
}
.status-approved, .badge-status-approved {
    background: #bbf7d0;
    color: #166534;
    border: 1px solid #86efac;
}
.status-rejected, .badge-status-rejected {
    background: #fecaca;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Admin Filter Pills */
.filter-pills {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.filter-pills .pill {
    padding: 0.5rem 1.15rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}
.filter-pills .pill:hover {
    border-color: var(--primary-dark);
}
.filter-pills .pill.active {
    background: var(--primary);
    color: var(--primary-ink);
    border-color: var(--primary);
}

/* Account Copy Cards */
.account-copy-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
    position: relative;
}
.account-copy-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.account-number {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-ink);
    letter-spacing: 1px;
}
.copy-btn {
    background: var(--secondary);
    border: 1px solid var(--primary);
    color: var(--primary-ink);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.copy-btn:hover {
    background: var(--primary);
    color: var(--primary-ink);
}

/* Subscription Plan Radio Cards */
.plan-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.plan-radio-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: block;
}
.plan-radio-card:hover {
    border-color: var(--primary-dark);
}
.plan-radio-card.selected {
    border-color: var(--primary);
    background: #fffef2;
    box-shadow: 0 0 0 1px var(--primary);
}
.popular-tag {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--primary);
    color: var(--primary-ink);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
}

/* Dynamic Price Calculator Box */
.calculator-box {
    background: #0B0F19;
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.calc-formula-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
}
.calc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Landing Page Hero */
.landing-hero {
    background: linear-gradient(135deg, #0B0F19 0%, #1e293b 100%);
    color: white;
    padding: 4.5rem 2rem;
}
.landing-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(250, 204, 21, 0.15);
    color: #FACC15;
    border: 1px solid rgba(250, 204, 21, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}
.hero-sub {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 2rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}
.metric-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.metric-icon {
    width: 24px;
    height: 24px;
    color: #FACC15;
    flex-shrink: 0;
}
.metric-item strong {
    display: block;
    font-size: 0.95rem;
    color: white;
}
.metric-item span {
    font-size: 0.8rem;
    color: #94a3b8;
}
.hero-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
    border: 2px solid rgba(250, 204, 21, 0.4);
}
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.hero-image-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(250, 204, 21, 0.3);
}
.overlay-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #FACC15;
}
.overlay-badge strong {
    display: block;
    color: white;
    font-size: 0.9rem;
}
.overlay-badge span {
    font-size: 0.75rem;
    color: #cbd5e1;
}

/* Landing Section General */
.landing-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.landing-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}
.landing-section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0B0F19;
    margin-bottom: 0.75rem;
}
.landing-section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Landing Navbar */
.landing-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #0B0F19;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}
.landing-navbar .brand-text {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-left: 0.5rem;
}
.landing-nav-links {
    display: flex;
    gap: 1.75rem;
}
.landing-nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.landing-nav-link:hover {
    color: #FACC15;
}
.landing-nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Qbanks Grid */
.landing-qbank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.landing-qbank-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.landing-qbank-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08);
}

/* Pricing Grid */
.landing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.landing-pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
}
.landing-pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(250, 204, 21, 0.3);
}
.landing-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--primary-ink);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 2rem;
    text-transform: uppercase;
}

/* Testimonials / Endorsement */
.endorsement-card {
    background: white;
    border-radius: 1.25rem;
    padding: 3rem;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}
.endorsement-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
}
.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0B0F19;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.faq-answer {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Landing Footer */
.landing-footer {
    background: #0B0F19;
    color: #94a3b8;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* Accessible screen-reader utility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============ PLATFORM PREVIEW GALLERY ============ */
.platform-preview-section {
    padding-top: 4rem;
    padding-bottom: 5rem;
}
.preview-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0B0F19;
    color: #FACC15;
    padding: 6px 16px;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid rgba(250, 204, 21, 0.3);
}
.platform-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
}
.browser-preview-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.browser-preview-card:hover {
    transform: translateY(-6px);
    border-color: #FACC15;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(250, 204, 21, 0.5);
}
.browser-frame-header {
    background: #0F172A;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.browser-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.browser-address-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #94A3B8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.browser-lock-icon {
    width: 11px;
    height: 11px;
    color: #10B981;
    flex-shrink: 0;
}
.browser-url-text {
    overflow: hidden;
    text-overflow: ellipsis;
}
.browser-actions-hint {
    flex-shrink: 0;
}
.browser-zoom-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #FACC15;
    background: rgba(250, 204, 21, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
}
.browser-zoom-tag i {
    width: 10px;
    height: 10px;
}

.browser-image-viewport {
    position: relative;
    background: #0B0F19;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.browser-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}
.browser-preview-card:hover .browser-screenshot {
    transform: scale(1.03);
}
.browser-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.browser-preview-card:hover .browser-image-overlay {
    opacity: 1;
}
.browser-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FACC15;
    color: #0B0F19;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(6px);
    transition: transform 0.25s ease;
}
.browser-preview-card:hover .browser-overlay-btn {
    transform: translateY(0);
}
.browser-overlay-btn i {
    width: 16px;
    height: 16px;
}

.browser-preview-footer {
    padding: 1.5rem;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.browser-preview-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.preview-badge {
    background: #FEF9C3;
    color: #854D0E;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.preview-diet-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #16A34A;
}
.preview-diet-tag i {
    width: 12px;
    height: 12px;
}
.preview-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0B0F19;
    margin-bottom: 0.5rem;
}
.preview-card-caption {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}
.preview-card-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0B0F19;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.browser-preview-card:hover .preview-card-action {
    color: #D97706;
}

/* Lightbox Modal Customization */
.lightbox-modal-container {
    max-width: 1100px !important;
    width: 95vw !important;
    background: #0B0F19 !important;
    color: white !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(250, 204, 21, 0.3) !important;
    border-radius: 16px !important;
}
.lightbox-modal-container .modal-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lightbox-modal-container .modal-header h2 {
    color: #FACC15 !important;
    font-size: 1.35rem !important;
}
.lightbox-modal-container .modal-close {
    color: #94A3B8 !important;
}
.lightbox-modal-container .modal-close:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}
.lightbox-modal-container .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1.25rem;
}
.lightbox-modal-container .modal-footer .btn-outline {
    color: #F8FAFC !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.05);
}
.lightbox-modal-container .modal-footer .btn-outline:hover {
    color: #0B0F19 !important;
    background: #FACC15 !important;
    border-color: #FACC15 !important;
}
.preview-lightbox-modal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.preview-lightbox-browser-bar {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
}
.preview-lightbox-url {
    flex: 1;
    font-family: monospace;
    color: #38BDF8;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.preview-lightbox-hint {
    color: #94A3B8;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.preview-lightbox-img-wrap {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-height: 70vh;
    overflow: auto;
    text-align: center;
}
.preview-lightbox-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}
.preview-lightbox-img:focus-visible {
    outline: 2px solid #FACC15;
    outline-offset: -2px;
}
.preview-lightbox-img.zoomed {
    width: 160% !important;
    max-width: none !important;
    min-width: 1024px !important;
    cursor: zoom-out;
}
.preview-lightbox-caption {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #FACC15;
}

/* ============ TELEGRAM COMMUNITY BANNER & HERO BADGE ============ */
.hero-community-strip {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.hero-telegram-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(36, 161, 222, 0.15);
    border: 1px solid rgba(36, 161, 222, 0.4);
    padding: 8px 16px;
    border-radius: 2rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}
.hero-telegram-badge:hover {
    background: rgba(36, 161, 222, 0.25);
    border-color: #24A1DE;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(36, 161, 222, 0.25);
}
.hero-telegram-badge .telegram-badge-icon {
    display: flex;
    align-items: center;
}
.hero-telegram-badge .telegram-badge-text strong {
    color: #38BDF8;
}

.telegram-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
}
.telegram-banner-card {
    position: relative;
    background: linear-gradient(135deg, #0B0F19 0%, #0F172A 50%, #0369A1 100%);
    border-radius: 1.5rem;
    padding: 3.5rem 3rem;
    color: white;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.25);
}
.telegram-banner-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.telegram-banner-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 3rem;
    align-items: center;
}
.telegram-banner-icon-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.telegram-banner-logo-wrapper {
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(56, 189, 248, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(36, 161, 222, 0.35);
}
.telegram-pill-highlight {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10B981;
    color: #34D399;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}
.telegram-tag {
    display: inline-block;
    color: #38BDF8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.telegram-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: white;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.telegram-description {
    color: #CBD5E1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 800px;
}
.telegram-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.telegram-feat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #E2E8F0;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 6px;
}
.telegram-feat-item i {
    color: #38BDF8;
    width: 16px;
    height: 16px;
}
.telegram-cta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.btn-telegram {
    background: #0284C7;
    color: white;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}
.btn-telegram:hover {
    background: #0369A1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5);
}
.telegram-direct-link {
    color: #94A3B8;
    font-size: 0.85rem;
}
.telegram-direct-link strong {
    color: #38BDF8;
}

/* Mobile Media Queries (390px and 768px) */
@media (max-width: 768px) {
    .landing-navbar {
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .landing-hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .landing-nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .endorsement-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .endorsement-img {
        margin: 0 auto;
    }
    .platform-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .telegram-banner-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .telegram-banner-icon-box {
        margin: 0 auto;
    }
    .telegram-features-list {
        justify-content: center;
    }
    .telegram-cta-row {
        justify-content: center;
    }
}

@media (max-width: 480px), (max-width: 390px) {
    .landing-navbar {
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .landing-hero {
        padding: 2.5rem 1rem;
    }
    .landing-section {
        padding: 3rem 1rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-community-strip {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    .hero-telegram-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        justify-content: center;
    }
    .telegram-banner-card {
        padding: 2rem 1.25rem;
    }
    .telegram-title {
        font-size: 1.35rem;
    }
    .btn-telegram {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    .preview-card-title {
        font-size: 1.05rem;
    }
    .preview-card-caption {
        font-size: 0.85rem;
    }
    .browser-frame-header {
        padding: 8px 10px;
    }
    .browser-preview-footer {
        padding: 1.25rem 1rem;
    }
    .lightbox-modal-container {
        padding: 1rem 0.75rem !important;
        width: 98vw !important;
    }
    .preview-lightbox-caption {
        padding: 0.75rem;
    }
    .landing-nav-actions {
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    .landing-nav-actions .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    .account-number {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   ADMIN STUDENT SEARCH & TABLE CONTROLS (M2 / R1)
   ========================================================================== */

.admin-student-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 900px) {
    .admin-student-controls {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .admin-student-controls {
        grid-template-columns: 1fr;
    }
}

.student-count-badge {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.admin-students-table th,
.admin-students-table td {
    vertical-align: middle;
}

.admin-students-pagination {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   DETERMINATE UPLOAD PROGRESS MODAL (M2 / R2)
   ========================================================================== */

.upload-modal {
    padding: 0.5rem 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.upload-status-text {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text, #0B0F19);
    line-height: 1.4;
    word-break: break-word;
}

.progress-percentage {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text, #0B0F19);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.progress-bar-track {
    width: 100%;
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    margin: 0.5rem 0 0.85rem 0;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #EAB308 0%, #FACC15 100%);
    border-radius: 9999px;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.upload-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.upload-counter {
    font-weight: 600;
    color: #334155;
}

.upload-batch-indicator {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #475569;
}

.upload-active-indicator {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    font-size: 0.825rem;
    color: #64748b;
}

.loading-spinner-sm {
    width: 18px;
    height: 18px;
    border: 2.5px solid #e2e8f0;
    border-top-color: #EAB308;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* Error State */
.upload-modal.upload-error-state {
    text-align: center;
    padding: 1rem 0;
}

.upload-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fef2f2;
    color: #ef4444;
    margin-bottom: 1rem;
}

.upload-error-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.upload-error-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: left;
}

.upload-error-detail-box {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.825rem;
    color: #991b1b;
    text-align: left;
    margin-bottom: 1.5rem;
    word-break: break-word;
    max-height: 140px;
    overflow-y: auto;
}

.upload-error-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Mobile responsive (390px viewport) */
@media (max-width: 480px) {
    .upload-progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .progress-percentage {
        font-size: 1.15rem;
    }
    .upload-progress-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .upload-error-actions {
        flex-direction: column;
    }
    .upload-error-actions button {
        width: 100%;
    }
}




/* ==========================================================================
   MULTI-SEGMENT SVG PROGRESS RINGS (Milestone 3 / R3)
   ========================================================================== */

.progress-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-ring-svg {
    display: block;
    overflow: visible;
}

.progress-ring circle {
    transform-origin: 50% 50%;
    transition: stroke-dasharray 0.35s ease, stroke-dashoffset 0.35s ease;
}

.progress-ring-track,
.progress-ring-bg {
    stroke: #FACC15;
}

.progress-ring-correct {
    stroke: #10b981;
}

.progress-ring-wrong {
    stroke: #ef4444;
}

.progress-ring-text {
    font-size: 24px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    fill: var(--text-dark, #0b0f19);
    user-select: none;
    text-anchor: middle;
    dominant-baseline: central;
}

/* Card Progress Placement */
.folder-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.folder-card-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
}

.folder-card:hover .progress-ring {
    transform: scale(1.06);
}

.folder-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}

/* Subfolder Row Progress Placement */
.pm-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
}

.pm-count {
    font-size: 0.825rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.pm-progress-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.passmed-row:hover .progress-ring {
    transform: scale(1.08);
}

/* ==========================================================================
   QUIZ SUMMARY & WRONG-QUESTION REVIEW (Milestone 3 / R3)
   ========================================================================== */

/* Summary Header Hero */
.quiz-summary-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    gap: 1.5rem;
    flex-wrap: wrap;
}

.summary-hero-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.summary-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #0B0F19;
    color: #FACC15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(11, 15, 25, 0.15);
    flex-shrink: 0;
}

.summary-score-pct {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.summary-score-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-top: 2px;
}

.summary-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0B0F19;
    margin-bottom: 0.25rem;
}

.summary-hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.summary-hero-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Metric Stats Cards */
.quiz-summary-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.quiz-stat-box {
    background: white;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.quiz-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0B0F19;
    line-height: 1.1;
}

.quiz-stat-lbl {
    font-size: 0.775rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

/* Filter Chips */
.quiz-summary-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.filter-chip:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #1e293b;
}

.filter-chip .chip-count {
    font-size: 0.8rem;
    opacity: 0.85;
}

.filter-chip.active {
    background: #0B0F19 !important;
    color: #FACC15 !important;
    border-color: #0B0F19 !important;
    box-shadow: 0 2px 4px rgba(11, 15, 25, 0.15);
}

.filter-chip.chip-wrong.active {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

.filter-chip.chip-flagged.active {
    background: #f59e0b !important;
    color: #0B0F19 !important;
    border-color: #f59e0b !important;
}

.filter-chip.chip-unattempted.active {
    background: #64748b !important;
    color: #ffffff !important;
    border-color: #64748b !important;
}

/* Review Wrong Questions Button */
.review-wrong-btn {
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.review-wrong-btn:disabled {
    background-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    border: 1px solid #cbd5e1 !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Quiz Summary Table Rows */
.quiz-summary-row {
    transition: background-color 0.15s ease;
}

.quiz-summary-row.wrong-row,
.quiz-summary-row.row-wrong {
    background-color: #fef2f2 !important;
    border-left: 3.5px solid #ef4444;
}

.quiz-summary-row.wrong-row:hover,
.quiz-summary-row.row-wrong:hover {
    background-color: #fee2e2 !important;
}

.quiz-summary-row.wrong-row td a,
.quiz-summary-row.row-wrong td a {
    color: #991b1b !important;
    font-weight: 600;
}

.quiz-summary-row.correct-row:hover,
.quiz-summary-row.row-correct:hover {
    background-color: #f0fdf4 !important;
}

.flag-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: transform 0.15s ease;
}

.flag-action-btn:hover {
    transform: scale(1.15);
}

/* Stepping Review Mode */
.wrong-review-container {
    width: 100%;
}

.review-step-banner {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.option-btn.disabled-neutral {
    opacity: 0.65;
    background-color: #ffffff;
    border-color: #e2e8f0;
}

/* Mobile Responsiveness for Quiz Summary & Review */
@media (max-width: 768px) {
    .quiz-summary-hero {
        padding: 1.25rem 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .summary-hero-actions {
        width: 100%;
    }
    .summary-hero-actions .btn {
        flex: 1;
    }
    .quiz-summary-stats-grid {
        padding: 1rem;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px), (max-width: 390px) {
    .summary-hero-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .summary-score-circle {
        width: 68px;
        height: 68px;
    }
    .summary-score-pct {
        font-size: 1.25rem;
    }
    .summary-hero-title {
        font-size: 1.25rem;
    }
    .quiz-summary-chips {
        gap: 0.35rem;
    }
    .filter-chip {
        padding: 0.35rem 0.65rem;
        font-size: 0.785rem;
    }
    .review-nav-bar {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    .review-nav-bar > div {
        width: 100%;
    }
    .review-nav-bar button {
        width: 100%;
    }
}


/* ==========================================================================
   OSCE VIVA STATIONS (MRCS Part B) STYLING (Milestone 5 / R5)
   ========================================================================== */

#osce-view,
.osce-view-container {
    width: 100%;
    min-height: 100vh;
    background-color: var(--background, #F8F7F2);
    color: var(--text, #0B0F19);
    display: flex;
    flex-direction: column;
}

.osce-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border, #E7E5DD);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.osce-main-content {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    flex: 1;
}

/* Header & Progress Card */
.osce-header-card {
    background: #0B0F19;
    color: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.osce-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.osce-badge-viva {
    background: #FACC15;
    color: #0B0F19;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0.35rem;
}

.osce-station-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.osce-station-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: right;
}

.osce-station-counter .counter-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FACC15;
    display: block;
}

.osce-station-counter .counter-total {
    font-size: 0.8rem;
    color: #94a3b8;
}

.osce-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.osce-progress-fill {
    height: 100%;
    background: #FACC15;
    transition: width 0.3s ease;
}

/* Audio Toolbar & Controls */
.osce-audio-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border, #E7E5DD);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.audio-controls-group,
.audio-settings-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.speed-slider-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.speed-slider-wrap input[type="range"] {
    width: 80px;
    cursor: pointer;
}

#osce-speed-val {
    font-weight: 700;
    color: #0B0F19;
    min-width: 32px;
}

.osce-voice-select {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    max-width: 200px;
    border-radius: 6px;
}

/* Audio Wave Animation */
.osce-audio-wave {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.85rem;
    color: #d97706;
    font-weight: 600;
    margin-left: 0.5rem;
}

.wave-bar {
    width: 3px;
    height: 14px;
    background: #FACC15;
    border-radius: 2px;
    animation: waveBounce 0.8s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 18px;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 12px;
}

@keyframes waveBounce {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1.2); }
}

/* Question Stem Card */
.osce-question-card {
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border, #E7E5DD);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.examiner-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.osce-question-stem {
    position: relative;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #0B0F19;
}

.osce-question-stem .question-text {
    font-weight: 500;
}

.blind-mode-overlay {
    display: none;
}

.osce-question-stem.blind-mode-active .question-text {
    filter: blur(8px);
    user-select: none;
    opacity: 0.3;
}

.osce-question-stem.blind-mode-active .blind-mode-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(248, 247, 242, 0.85);
    border-radius: 8px;
    color: #475569;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.osce-image-wrapper {
    margin-top: 1.25rem;
    text-align: center;
}

.osce-station-image {
    max-width: 100%;
    max-height: 380px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Candidate Card & Transcript */
.osce-candidate-card {
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border, #E7E5DD);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.candidate-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0B0F19;
}

.candidate-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.osce-mic-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.osce-mic-btn.recording {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    animation: micPulse 1.2s infinite;
}

@keyframes micPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.osce-mic-status-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: dotBlink 1s infinite;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.osce-mic-error-banner {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.transcript-wrapper {
    margin-bottom: 1.25rem;
}

.osce-transcript-textarea {
    width: 100%;
    min-height: 130px;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border, #E7E5DD);
    border-radius: 10px;
    font-size: 1.05rem;
    line-height: 1.6;
    font-family: inherit;
    color: #0B0F19;
    background: #fdfcf7;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.osce-transcript-textarea:focus {
    outline: none;
    border-color: #FACC15;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}

.osce-candidate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.osce-hint {
    font-size: 0.825rem;
    max-width: 550px;
    margin: 0;
}

.osce-submit-btn {
    min-width: 220px;
}

/* ==========================================================================
   OSCE RESULTS VIEW STYLING
   ========================================================================== */

.osce-results-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    background: #ffffff;
    border-top: 4px solid #FACC15;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hero-score-column {
    flex-shrink: 0;
}

.osce-score-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.osce-score-circle.circle-pass {
    background: #f0fdf4;
    border: 4px solid #22c55e;
    color: #16a34a;
}

.osce-score-circle.circle-fail {
    background: #fefce8;
    border: 4px solid #FACC15;
    color: #854d0e;
}

.osce-score-circle .score-pct {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.osce-score-circle .score-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
}

.hero-info-column {
    flex: 1;
}

.hero-badge-wrap {
    margin-bottom: 0.5rem;
}

.hero-info-column h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0B0F19;
    margin-bottom: 0.5rem;
}

.hero-subtext {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Question Breakdown Cards */
.osce-breakdown-header {
    margin-bottom: 1rem;
}

.osce-breakdown-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0B0F19;
    margin-bottom: 0.25rem;
}

.osce-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.osce-result-item-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.result-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.station-q-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    display: block;
    margin-bottom: 0.25rem;
}

.result-q-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0B0F19;
    margin: 0;
}

.result-score-badge {
    font-size: 1.1rem;
    font-weight: 800;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
}

.result-score-badge.badge-pass {
    background: #dcfce7;
    color: #15803d;
}

.result-score-badge.badge-fail {
    background: #fee2e2;
    color: #b91c1c;
}

.result-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-box {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.result-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.result-candidate-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.result-candidate-box h4 {
    color: #334155;
}

.candidate-transcript-text {
    color: #0B0F19;
    line-height: 1.5;
    word-break: break-word;
}

.result-model-box {
    background: #fefce8;
    border: 1px solid #fef08a;
}

.result-model-box h4 {
    color: #854d0e;
}

.model-answer-text {
    color: #713f12;
    line-height: 1.5;
    font-weight: 500;
}

.keywords-breakdown-section {
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.osce-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pill-hit {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.pill-miss {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Micro badges on cards */
.osce-mic-badge,
.osce-mic-tag {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    margin-left: 4px;
}

/* Mobile Responsiveness for OSCE */
@media (max-width: 768px) {
    .osce-results-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    .result-details-grid {
        grid-template-columns: 1fr;
    }
    .osce-audio-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .audio-controls-group,
    .audio-settings-group {
        justify-content: center;
    }
    .osce-candidate-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .osce-submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px), (max-width: 390px) {
    .osce-header-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .osce-station-counter {
        width: 100%;
        text-align: left;
    }
    .osce-station-title {
        font-size: 1.15rem;
    }
    .candidate-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .candidate-actions {
        width: 100%;
        justify-content: space-between;
    }
    .hero-actions button {
        width: 100%;
    }
}

/* ==========================================================================
   OSCE CLINICAL SCENARIO REDESIGN & DUAL-CARD LAYOUT (Milestone 3 / R2, R3, R4, R5)
   ========================================================================== */

/* Setup Modal */
.osce-setup-modal-body {
    padding: 0.5rem 0;
}
.osce-setup-station-info {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}
.osce-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.osce-time-choice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}
.osce-time-choice:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}
.osce-time-choice input[type="radio"]:checked + span {
    font-weight: 700;
    color: #0B0F19;
}
.osce-mode-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.osce-mode-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.osce-mode-card:hover {
    border-color: #CBD5E1;
    background: #FAFAFA;
}
.osce-mode-card.selected,
.osce-mode-card:has(input[type="radio"]:checked) {
    border-color: #FACC15;
    background: #FFFDF5;
}
.osce-mode-text strong {
    display: block;
    font-size: 0.95rem;
    color: #0B0F19;
}
.osce-mode-text p {
    margin: 0.25rem 0 0 0;
    font-size: 0.825rem;
    color: #64748B;
    line-height: 1.4;
}

/* Dual-Card Clinical Station Layout */
.osce-dual-wrapper {
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 1rem 3rem 1rem;
}

.osce-station-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.osce-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #0B0F19;
    color: #FACC15;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.925rem;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.osce-timer-badge.warning {
    background: #EF4444;
    color: #FFFFFF;
    animation: pulse 1s infinite;
}

/* Top Card: Clinical Scenario */
.osce-scenario-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.osce-scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #F1F5F9;
}

.osce-scenario-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0B0F19;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.osce-scenario-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #1E293B;
    margin: 0.75rem 0;
    font-weight: 450;
}

.osce-scenario-image-wrapper {
    margin-top: 1rem;
    text-align: center;
}

.osce-scenario-image {
    max-width: 100%;
    max-height: 280px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    object-fit: contain;
}

/* Bottom Card: Questions List & Accordions */
.osce-questions-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.osce-questions-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #F1F5F9;
}

.osce-questions-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0B0F19;
}

/* Automatic Mode Banners */
.osce-auto-banner {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

#osce-gap-timer {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    animation: fadeIn 0.2s ease-in;
}

#osce-rec-timer {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    animation: fadeIn 0.2s ease-in;
}

.osce-countdown-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: currentColor;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Accordion Rows */
.osce-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.osce-accordion-item {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    transition: all 0.2s ease;
    overflow: hidden;
}

.osce-accordion-item.active-step {
    border-color: #FACC15;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.25);
}

.osce-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.25rem;
    cursor: pointer;
    background: #F8FAFC;
    user-select: none;
    transition: background 0.15s ease;
}

.osce-accordion-header:hover {
    background: #F1F5F9;
}

.osce-accordion-item.open .osce-accordion-header {
    background: #F1F5F9;
    border-bottom: 1px solid #E2E8F0;
}

.osce-accordion-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0F172A;
}

.osce-accordion-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.osce-accordion-body {
    padding: 1.25rem;
    background: #FFFFFF;
}

.osce-q-stem {
    font-size: 1rem;
    color: #1E293B;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.osce-q-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.osce-q-textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.925rem;
    color: #0F172A;
    background: #FFFFFF;
    margin-bottom: 0.75rem;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.osce-q-textarea:focus {
    outline: none;
    border-color: #0B0F19;
    box-shadow: 0 0 0 2px rgba(11, 15, 25, 0.1);
}

.osce-q-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.osce-submitted-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #15803D;
    font-weight: 600;
}

/* Finish Exam Footer CTA */
.osce-station-finish-footer {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

/* R5 Word-Level Highlighting */
.osce-word-match {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    font-weight: 600 !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
    margin: 0 1px !important;
    display: inline-block !important;
}

.osce-word-miss {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    font-weight: 500 !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
    margin: 0 1px !important;
    display: inline-block !important;
}

.osce-q-pct {
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0B0F19;
    margin-right: 0.35rem;
}

.osce-q-pct.pct-high {
    color: #15803d;
}

.osce-q-pct.pct-low {
    color: #b91c1c;
}

/* ======================================================================
   COMPACT OSCE SETUP & STATION CONTROLS (PIC 2)
   ====================================================================== */

.osce-time-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.osce-time-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.osce-time-pill:hover {
    background: #E2E8F0;
    border-color: #94A3B8;
}

.osce-time-pill.selected,
.osce-time-pill:has(input[type="radio"]:checked) {
    background: #FEF9C3 !important;
    border-color: #FACC15 !important;
    color: #854D0E !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.osce-time-pill input[type="radio"] {
    display: none;
}

.osce-time-pill-custom {
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
}

.osce-mode-cards.compact {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.osce-mode-card.compact {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid #E2E8F0;
    background: #FFFFFF;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.osce-mode-card.compact:hover {
    border-color: #CBD5E1;
    background: #FAFAFA;
}

.osce-mode-card.compact.selected,
.osce-mode-card.compact:has(input[type="radio"]:checked) {
    border-color: #FACC15;
    background: #FFFDF5;
}

.osce-mode-card.compact .osce-mode-text strong {
    font-size: 0.85rem;
    color: #0B0F19;
}

.osce-mode-card.compact .osce-mode-text p {
    margin: 0.15rem 0 0 0;
    font-size: 0.75rem;
    color: #64748B;
    line-height: 1.35;
}

/* Compact Inline OSCE Station Buttons */
.osce-btn-inline {
    padding: 0.25rem 0.6rem !important;
    font-size: 0.78rem !important;
    height: 32px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

/* ======================================================================
   3-CIRCLE TRIAD PROGRESS & SINGLE-PAGE QUIZ SETUP
   ====================================================================== */

.folder-progress-triad {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    vertical-align: middle;
}

.folder-progress-triad .progress-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.folder-progress-triad .progress-ring-svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .folder-progress-triad {
        gap: 0.2rem;
    }
    .folder-progress-triad .progress-ring {
        width: 28px !important;
        height: 28px !important;
    }
    .folder-progress-triad .progress-ring-svg {
        width: 28px !important;
        height: 28px !important;
    }
}

/* Single-Page Quiz Setup Container (Pic 3 & 4 combined) */
.single-page-quiz-setup {
    max-width: 480px;
    margin: 1.5rem auto 0;
    padding: 1.25rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
}

.single-page-quiz-setup label {
    user-select: none;
}

/* Folder Filter Dropdown */
.folder-filter-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#folder-filter-dropdown.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    min-width: 180px;
    z-index: 100;
    padding: 0.35rem 0;
}

#folder-filter-dropdown.hidden {
    display: none !important;
}

#folder-filter-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    padding: 0.45rem 0.85rem;
    font-size: 0.825rem;
    color: #334155;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

#folder-filter-dropdown .dropdown-item:hover {
    background: #F1F5F9;
    color: #0B0F19;
}


