.image-placeholder {
background-color: #f8f9fa;
border: 2px dashed #dee2e6;
border-radius: 8px;
padding: 20px;
text-align: center;
margin: 15px 0;
min-height: 80px;
display: flex;
align-items: center;
justify-content: center;
}

.loading-spinner {
color: #6c757d;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
font-size: 14px;
}

.loading-spinner i {
font-size: 20px;
}

.image-error {
color: #dc3545;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
font-size: 14px;
}

/* Import Progress Modal - Must be above drag overlay */
#import-progress-modal {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
background: rgba(0, 0, 0, 0.8) !important;
display: none;
align-items: center !important;
justify-content: center !important;
z-index: 99999 !important;
-webkit-backdrop-filter: blur(4px) !important;
backdrop-filter: blur(4px) !important;
pointer-events: auto !important;
}

#import-progress-modal.active {
display: flex !important;
}

.import-progress-content {
background: var(--bg-secondary) !important;
border-radius: 16px !important;
padding: 40px !important;
max-width: 500px !important;
width: 90% !important;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
text-align: center !important;
animation: slideIn 0.3s ease-out !important;
position: relative !important;
z-index: 100000 !important;
}

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

.import-progress-icon {
font-size: 48px;
color: var(--primary-color);
margin-bottom: 20px;
animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.1); opacity: 0.8; }
}

.import-progress-title {
font-size: 24px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 12px;
}

.import-progress-subtitle {
font-size: 14px;
color: var(--text-secondary);
margin-bottom: 30px;
}

.import-progress-bar-container {
background: var(--bg-primary);
border-radius: 12px;
height: 16px;
overflow: hidden;
margin-bottom: 16px;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.import-progress-bar {
width: 0%;
height: 100%;
background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
border-radius: 12px;
transition: width 0.3s ease;
position: relative;
overflow: hidden;
}

.import-progress-bar::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}

.import-progress-stats {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 14px;
color: var(--text-secondary);
}

.import-progress-percentage {
font-size: 18px;
font-weight: 700;
color: var(--primary-color);
}

.import-progress-count {
font-weight: 500;
}

.image-error i {
font-size: 20px;
}

.question-image {
max-width: 100%;
height: auto;
border: 1px solid #ddd;
border-radius: 8px;
margin: 15px 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
display: block;
margin-left: auto;
margin-right: auto;
}

.explanation-image {
max-width: 100%;
height: auto;
border: 1px solid #ddd;
border-radius: 8px;
margin: 10px 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
display: block;
margin-left: auto;
margin-right: auto;
}

.question-content img {
display: block;
margin: 15px auto;
}
        
.hotspot-question {
background-color: #fff3cd;
border: 1px solid #ffeaa7;
border-radius: 8px;
padding: 15px;
margin: 10px 0;
}
        
.hotspot-question h5 {
color: #856404;
margin-bottom: 10px;
}
        
.drag-drop-question {
background-color: #d4edda;
border: 1px solid #c3e6cb;
border-radius: 8px;
padding: 15px;
margin: 10px 0;
}
        
.drag-drop-question h5 {
color: #155724;
margin-bottom: 10px;
}

/* Yes/No Matrix */
.yn-matrix { display: grid; gap: 10px; margin: 10px 0; }
.yn-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.yn-label { font-size: 14px; }
.yn-controls { display: flex; gap: 8px; }
.yn-btn { padding: 6px 10px; border: 1px solid #ccc; background: #fff; border-radius: 6px; cursor: pointer; }
.yn-btn.selected { border-color: #007bff; background: #e7f1ff; }
.yn-results { display: grid; gap: 6px; margin-top: 8px; }
.yn-result-row { display: flex; justify-content: space-between; font-size: 14px; }
.yn-result-row.ok .ans { color: #28a745; }
.yn-result-row.bad .ans { color: #dc3545; }

/* Exam Selection Styles - Obsolete layout rules removed, using homepage-styles.css instead */

.current-exam-indicator {
background-color: #28a745;
color: white;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
margin-left: 10px;
display: inline-block;
}

/* Import/No Exams Styles */
.no-exams-section {
text-align: center;
padding: 40px 20px;
}

.import-area {
max-width: 600px;
margin: 0 auto;
}

.import-icon {
font-size: 48px;
color: #6c757d;
margin-bottom: 20px;
}

.drop-zone {
border: 2px dashed #dee2e6;
border-radius: 12px;
padding: 40px 20px;
margin: 30px 0;
background: #f8f9fa;
transition: all 0.3s ease;
cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
border-color: #007bff;
background: #e7f1ff;
transform: translateY(-2px);
}

.drop-zone i {
font-size: 36px;
color: #6c757d;
margin-bottom: 15px;
}

.drop-zone.dragover {
border-color: #28a745;
background: #d4edda;
}

.drop-zone.dragover i {
color: #28a745;
}

.import-instructions {
background: #f8f9fa;
border-radius: 8px;
padding: 20px;
margin-top: 30px;
text-align: left;
}

.import-instructions h4 {
margin-bottom: 15px;
color: #495057;
}

.import-instructions ol {
margin-bottom: 20px;
}

.import-instructions li {
margin-bottom: 8px;
}

/* Dynamic exam card variations */
.exam-card.exam-sc900 {
background: linear-gradient(135deg, #0f4c81 0%, #137c8b 100%);
}

.exam-card.exam-ab730 {
background: linear-gradient(135deg, #0f766e 0%, #16a34a 100%);
}

.exam-card.exam-ab731 {
background: linear-gradient(135deg, #92400e 0%, #be123c 100%);
}

.exam-card.custom {
background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.exam-card.loading {
opacity: 0.7;
pointer-events: none;
}

/* Small tweak: show a hint for multi-select */
.multi-select-hint { font-size: 12px; color: #6c757d; margin-bottom: 8px; }

/* ===== Dark Mode ===== */
[data-theme="dark"] .drop-zone,
.dark-mode .drop-zone {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .drop-zone:hover,
.dark-mode .drop-zone:hover,
[data-theme="dark"] .drop-zone.dragover,
.dark-mode .drop-zone.dragover {
    background: rgba(30, 41, 59, 1);
    border-color: var(--primary, #6366f1);
}

[data-theme="dark"] .drop-zone i,
.dark-mode .drop-zone i {
    color: #94a3b8;
}

[data-theme="dark"] .import-instructions,
.dark-mode .import-instructions {
    background: rgba(30, 41, 59, 0.6);
    color: #e2e8f0;
}

[data-theme="dark"] .import-instructions h4,
.dark-mode .import-instructions h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .multi-select-hint,
.dark-mode .multi-select-hint {
    color: #94a3b8;
}

[data-theme="dark"] .exam-card.custom,
.dark-mode .exam-card.custom {
    background: linear-gradient(135deg, #5b21b6 0%, #be185d 100%);
}

[data-theme="dark"] .exam-card.exam-sc900,
.dark-mode .exam-card.exam-sc900 {
    background: linear-gradient(135deg, #0b335f 0%, #0f5f6c 100%);
}

[data-theme="dark"] .exam-card.exam-ab730,
.dark-mode .exam-card.exam-ab730 {
    background: linear-gradient(135deg, #115e59 0%, #15803d 100%);
}

[data-theme="dark"] .exam-card.exam-ab731,
.dark-mode .exam-card.exam-ab731 {
    background: linear-gradient(135deg, #78350f 0%, #9f1239 100%);
}

/* Config/Manage Exams Modal */
.config-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.config-modal-content {
    background: #fff;
    color: #333;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    padding: 30px;
    position: relative;
}
.config-modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.config-modal-close:hover { opacity: 0.7; }
.config-modal-title { margin-top: 0; }
.config-modal-desc { color: #666; margin-bottom: 20px; }
.config-modal-list { display: grid; gap: 12px; }
.config-modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.config-modal-footer p { font-size: 12px; color: #999; margin: 0; }

.config-exam-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #ddd;
}
.config-exam-item.active { border-color: #28a745; }
.config-exam-name { font-weight: bold; margin-bottom: 4px; }
.config-exam-desc { font-size: 12px; color: #666; }

/* Dark mode */
[data-theme="dark"] .config-modal-content,
.dark-mode .config-modal-content {
    background: #1e293b;
    color: #e2e8f0;
}
[data-theme="dark"] .config-modal-close,
.dark-mode .config-modal-close { color: #94a3b8; }
[data-theme="dark"] .config-modal-desc,
.dark-mode .config-modal-desc { color: #94a3b8; }
[data-theme="dark"] .config-modal-footer,
.dark-mode .config-modal-footer { border-top-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .config-modal-footer p,
.dark-mode .config-modal-footer p { color: #64748b; }
[data-theme="dark"] .config-exam-item,
.dark-mode .config-exam-item {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
}
[data-theme="dark"] .config-exam-item.active,
.dark-mode .config-exam-item.active { border-color: #22c55e; }
[data-theme="dark"] .config-exam-desc,
.dark-mode .config-exam-desc { color: #94a3b8; }

/* Custom switch toggle styles for Manage Exams */
.config-exam-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.config-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .config-toggle-wrapper,
.dark-mode .config-toggle-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.config-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

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

.config-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.config-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.config-switch input:checked + .config-slider {
    background-color: #10b981;
}

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

[data-theme="dark"] .config-slider,
.dark-mode .config-slider {
    background-color: #475569;
}

.config-toggle-status {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    min-width: 42px;
    text-align: center;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

[data-theme="dark"] .config-toggle-status,
.dark-mode .config-toggle-status {
    color: #94a3b8;
}

/* Custom premium styles for Remove button in Manage Exams */
.config-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.config-delete-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.config-delete-btn:active {
    transform: translateY(0);
}

.config-delete-btn i {
    font-size: 11px;
}

[data-theme="dark"] .config-delete-btn,
.dark-mode .config-delete-btn {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

[data-theme="dark"] .config-delete-btn:hover,
.dark-mode .config-delete-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Make item itself look better */
.config-exam-item {
    transition: all 0.25s ease;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.config-exam-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .config-exam-item,
.dark-mode .config-exam-item {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.config-exam-item.active {
    border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .config-exam-item.active,
.dark-mode .config-exam-item.active {
    border-color: rgba(16, 185, 129, 0.45);
}

/* Animations for premium alerts */
@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.custom-alert-animate {
    animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Selectable modules list styling */
.modules-list.selectable-list li::before {
    content: none !important;
}

.modules-list.selectable-list li {
    cursor: pointer;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.95rem;
    border-radius: 8px;
    border: 1px solid rgba(30, 60, 114, 0.08);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode selection styling */
.modules-list.selectable-list li.checked {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.35);
}
.modules-list.selectable-list li:hover {
    background: rgba(30, 60, 114, 0.04);
    border-color: rgba(30, 60, 114, 0.18);
    transform: translateX(4px);
}
.modules-list.selectable-list li.checked:hover {
    background: rgba(16, 185, 129, 0.09);
    border-color: rgba(16, 185, 129, 0.45);
}

/* Dark mode selection styling */
[data-theme="dark"] .modules-list.selectable-list li,
.dark-mode .modules-list.selectable-list li {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
}
[data-theme="dark"] .modules-list.selectable-list li.checked,
.dark-mode .modules-list.selectable-list li.checked {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.08);
}
[data-theme="dark"] .modules-list.selectable-list li:hover,
.dark-mode .modules-list.selectable-list li:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(0, 188, 242, 0.25);
}
[data-theme="dark"] .modules-list.selectable-list li.checked:hover,
.dark-mode .modules-list.selectable-list li.checked:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.6);
}

/* Module content wrapper (checkbox + text) */
.module-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.module-item-title {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Custom checkbox wrapper */
.module-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Custom checkbox visual container */
.module-checkbox-custom {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .module-checkbox-custom,
.dark-mode .module-checkbox-custom {
    border-color: #475569;
}

.modules-list.selectable-list li.checked .module-checkbox-custom {
    background: #10b981;
    border-color: #10b981;
}

.module-checkbox-custom::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2px;
}

.modules-list.selectable-list li.checked .module-checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

/* Modules select all / deselect all controls */
.modules-select-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.modules-select-btn {
    color: var(--primary);
    background: none;
    border: none;
    padding: 0;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-decoration: none;
}
.modules-select-btn:hover {
    opacity: 0.8;
    text-decoration: underline;
}
[data-theme="dark"] .modules-select-btn,
.dark-mode .modules-select-btn {
    color: #38bdf8;
}

.modules-select-separator {
    color: #cbd5e1;
}
[data-theme="dark"] .modules-select-separator,
.dark-mode .modules-select-separator {
    color: #475569;
}

/* Questions count badge */
.module-qcount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
[data-theme="dark"] .module-qcount-badge,
.dark-mode .module-qcount-badge {
    color: #94a3b8;
    background: rgba(51, 65, 85, 0.8);
}
.modules-list.selectable-list li.checked .module-qcount-badge {
    color: #065f46;
    background: rgba(16, 185, 129, 0.15);
}
[data-theme="dark"] .modules-list.selectable-list li.checked .module-qcount-badge,
.dark-mode .modules-list.selectable-list li.checked .module-qcount-badge {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.25);
}

/* ============================================================
   Hero banner (Examplar) — atmospheric, theme-independent
   ============================================================ */
.hero-header.hero-banner {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 0;
    border: none;
    border-bottom: none;
    border-radius: 18px;
    background:
        radial-gradient(120% 130% at 88% 6%, rgba(0, 188, 242, 0.28), transparent 42%),
        radial-gradient(90% 90% at 6% 112%, rgba(0, 102, 204, 0.26), transparent 52%),
        linear-gradient(135deg, #0a1a33 0%, #143a72 52%, #0a1d3c 100%);
    box-shadow: 0 24px 55px -28px rgba(3, 18, 30, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* faint grid texture, faded toward the bottom-left */
.hero-header.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(125% 95% at 82% 0%, #000 28%, transparent 76%);
    mask-image: radial-gradient(125% 95% at 82% 0%, #000 28%, transparent 76%);
    pointer-events: none;
}

/* oversized decorative ring motif */
.hero-header.hero-banner::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -170px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 188, 242, 0.16);
    box-shadow: 0 0 0 30px rgba(0, 188, 242, 0.045), inset 0 0 70px rgba(0, 188, 242, 0.08);
    pointer-events: none;
}

.hero-banner__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.75rem;
    padding: 2.1rem 2.25rem;
}

/* live-site link — only shown on local self-host, points to the public site */
.hero-banner .hero-livelink {
    margin-top: 1.2rem;
}
.hero-banner .hero-pill.public-link {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    color: #cdeffb;
    box-shadow: none;
}
.hero-banner .hero-pill.public-link:hover {
    background: rgba(0, 188, 242, 0.16);
    border-color: rgba(0, 188, 242, 0.4);
}

/* wordmark */
.hero-banner .logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}
.hero-banner .logo-img {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}
.hero-banner .logo h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4.4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
    color: #f4fbff;
    -webkit-text-fill-color: #f4fbff;
    background: none;
}
.hero-banner .logo-accent {
    color: #00bcf2;
    -webkit-text-fill-color: #00bcf2;
}

.hero-banner .hero-subtitle {
    margin: 0;
    max-width: 50ch;
    font-size: 1.02rem;
    line-height: 1.5;
    color: rgba(233, 246, 252, 0.82);
}
.hero-banner .hero-subtitle strong {
    color: #ffffff;
    font-weight: 700;
}

/* glass trust chips */
.hero-banner .hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.15rem 0 0;
    padding: 0;
}
.hero-banner .hero-trust .trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hero-banner .hero-trust .trust-chip i {
    color: #38bdf8;
    font-size: 0.78rem;
}

/* CTAs */
.hero-banner .hero-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}
.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #06222e;
    text-decoration: none;
    background: linear-gradient(135deg, #6fe7ff, #00bcf2 55%, #0a84ff);
    box-shadow: 0 14px 30px -10px rgba(0, 188, 242, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px -12px rgba(0, 188, 242, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    filter: brightness(1.05);
}
.hero-cta-primary i {
    font-size: 0.85rem;
}
.hero-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #cdeffb;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}
.hero-cta-ghost:hover {
    color: #ffffff;
    gap: 0.78rem;
}
.hero-cta-ghost i {
    font-size: 0.78rem;
}

/* proof column — glass stat tiles (force dark styling regardless of page theme) */
.hero-proof {
    align-self: stretch;
}
.hero-proof .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}
.hero-proof .stat-card {
    min-width: 0;
    min-height: 0;
    padding: 0.85rem 1rem;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
.hero-proof .stat-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-1px);
}
.hero-proof .stat-content {
    width: 100%;
}
.hero-proof .stat-value {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 800;
}
.hero-proof .stat-label {
    color: rgba(233, 246, 252, 0.7) !important;
}
.hero-proof .stat-label-icon {
    color: #38bdf8;
}

/* entrance animation */
@keyframes heroRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-banner .hero-badges,
.hero-banner .logo,
.hero-banner .hero-subtitle,
.hero-banner .hero-trust,
.hero-banner .hero-cta-row,
.hero-banner .hero-proof {
    animation: heroRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-banner .logo { animation-delay: 0.06s; }
.hero-banner .hero-subtitle { animation-delay: 0.12s; }
.hero-banner .hero-trust { animation-delay: 0.18s; }
.hero-banner .hero-cta-row { animation-delay: 0.24s; }
.hero-banner .hero-proof { animation-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
    .hero-banner .hero-badges,
    .hero-banner .logo,
    .hero-banner .hero-subtitle,
    .hero-banner .hero-trust,
    .hero-banner .hero-cta-row,
    .hero-banner .hero-proof {
        animation: none;
    }
}

/* responsive */
@media (max-width: 860px) {
    .hero-banner__inner {
        grid-template-columns: 1fr;
        gap: 1.3rem;
        padding: 1.65rem 1.5rem;
    }
    .hero-proof .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-header.hero-banner::after {
        display: none;
    }
}
@media (max-width: 520px) {
    .hero-proof .hero-stats {
        grid-template-columns: 1fr;
    }
    .hero-banner .logo h1 {
        font-size: 2rem;
    }
}

/* ===== Preview pack card + pro (unlock) modal ===== */
.exam-preview-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    margin-bottom: 2px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.32);
}
.exam-preview-flag i {
    font-size: 9px;
}

/* Unlock action lives inside the hover/selected actions overlay (grid cell),
   so it is never covered by Start/Study. */
.exam-card-unlock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 800;
    color: #3a2400;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transition: filter 0.18s ease;
}
.exam-card-unlock:hover {
    filter: brightness(1.06);
}

.pro-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.pro-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow: auto;
    padding: 26px;
    border-radius: 14px;
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
    animation: modalScaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pro-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}
.pro-modal-close:hover {
    color: #333;
}
.pro-modal-title {
    margin: 0 0 4px;
    font-size: 22px;
}
.pro-modal-sub {
    margin: 0 0 16px;
    font-size: 14px;
    color: #666;
}
.pro-modal-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.pro-modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.45;
}
.pro-modal-list li i {
    margin-top: 3px;
    color: #16a34a;
}
.pro-modal-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #00bcf2, #0066cc);
    box-shadow: 0 10px 24px -8px rgba(0, 102, 204, 0.6);
    transition: filter 0.2s ease;
}
.pro-modal-buy:hover {
    filter: brightness(1.05);
}
.pro-modal-divider {
    height: 1px;
    margin: 18px 0;
    background: rgba(0, 0, 0, 0.08);
}
.pro-modal-activate-text {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
}
.pro-modal-import {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 9px;
    border: 1.5px solid rgba(0, 102, 204, 0.3);
    background: rgba(0, 102, 204, 0.06);
    color: #0066cc;
    font-weight: 600;
    cursor: pointer;
}
.pro-modal-import:hover {
    background: rgba(0, 102, 204, 0.12);
}

[data-theme="dark"] .pro-modal,
.dark-mode .pro-modal {
    background: #1e293b;
    color: #e2e8f0;
}
[data-theme="dark"] .pro-modal-sub,
.dark-mode .pro-modal-sub,
[data-theme="dark"] .pro-modal-activate-text,
.dark-mode .pro-modal-activate-text {
    color: #94a3b8;
}
[data-theme="dark"] .pro-modal-divider,
.dark-mode .pro-modal-divider {
    background: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .pro-modal-close,
.dark-mode .pro-modal-close {
    color: #94a3b8;
}
[data-theme="dark"] .pro-modal-close:hover,
.dark-mode .pro-modal-close:hover {
    color: #e2e8f0;
}
[data-theme="dark"] .pro-modal-import,
.dark-mode .pro-modal-import {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}
