/* Advanced Practice Ready — Design System */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #0A0A0A;         /* Black */
    --primary-dark: #222222;
    --primary-light: #333333;
    --secondary: #333333;       /* Dark gray */
    --secondary-light: #555555;
    --accent: #FFBD4A;          /* Warm gold */
    --accent-light: #FFD07A;

    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-light: #718096;

    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-medium: #EDF2F7;
    --bg-dark: #1A202C;

    --border: #E2E8F0;
    --border-focus: var(--primary);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Barlow Condensed', 'Helvetica Neue', Arial, sans-serif;
    --bg-warm: #F5F0E8;
    --max-width: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ---------- Layout ---------- */
.page-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ---------- Navigation ---------- */
.main-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-logo:hover {
    color: var(--primary-dark);
}

.nav-logo-icon {
    height: 32px;
    width: 32px;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btn-outline {
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-full);
    color: var(--primary) !important;
    font-weight: 600 !important;
}

.nav-btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white) !important;
}

.nav-btn-primary {
    padding: 0.4rem 1rem;
    background: var(--primary);
    border-radius: var(--radius-full);
    color: var(--bg-white) !important;
    font-weight: 600 !important;
}

.nav-btn-primary:hover {
    background: var(--primary-dark);
}

.nav-btn-gold {
    padding: 0.4rem 1rem;
    background: var(--accent);
    border-radius: var(--radius-full);
    color: var(--primary) !important;
    font-weight: 600 !important;
}

.nav-btn-gold:hover {
    background: var(--accent-light);
}

/* ---------- Nav Dropdown ---------- */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-label {
    display: inline-block;
    line-height: 1;
}

/* Hidden by default — display:none is the only bulletproof hide */
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.875rem);
    left: -1rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 200;
    cursor: pointer;
}
/* Invisible bridge above the menu so hover stays active crossing the gap */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.875rem;
    left: 0;
    right: 0;
    height: 0.875rem;
}

/* Show with fade-in animation — desktop: CSS hover; mobile: JS touch-open */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.touch-open .nav-dropdown-menu {
    display: block;
    animation: dropdown-in 0.15s ease forwards;
}
@keyframes dropdown-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-section-label {
    padding: 0.5rem 1rem 0.125rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    line-height: 1.4;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.nav-product-link {
    display: block;
    padding: 0.4rem 1rem 0.4rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.nav-product-link:hover { background: var(--bg-light); color: var(--primary-dark); }

.nav-product-soon {
    display: block;
    padding: 0.4rem 1rem 0.4rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.nav-badge-soon {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--bg-medium);
    color: var(--text-light);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-full);
    vertical-align: middle;
    margin-left: 0.3rem;
}

/* Dropdown items — clean, larger font */
.nav-dropdown-item {
    display: block;
    padding: 0.55rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover { background: var(--bg-light); color: var(--primary); }

@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border);
        border-radius: 0;
        min-width: unset;
        padding: 0;
        margin: 0.25rem 0 0.25rem 0.75rem;
        animation: none;
    }
    .nav-dropdown.touch-open .nav-dropdown-menu {
        animation: none;
    }
    .nav-dropdown-item { padding: 0.4rem 0.75rem; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 1.5rem;
    text-align: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
}

/* ---------- Forms ---------- */
.auth-section {
    max-width: 440px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.auth-form {
    margin-top: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
}

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

.auth-alt {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

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

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
}

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

/* ---------- Flash Messages ---------- */
.flash-message {
    max-width: var(--max-width);
    margin: 1rem auto;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.flash-success {
    background: #F0FFF4;
    color: #22543D;
    border: 1px solid #C6F6D5;
}

.flash-error {
    background: #FFF5F5;
    color: #742A2A;
    border: 1px solid #FED7D7;
}

.flash-info {
    background: #EBF8FF;
    color: #2A4365;
    border: 1px solid #BEE3F8;
}

/* ---------- Footer ---------- */
.main-footer {
    background: var(--bg-dark);
    color: var(--bg-medium);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--bg-medium);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--bg-white);
}

.footer-copyright p {
    font-size: 0.8rem;
    color: var(--text-light);
    border-top: 1px solid #2D3748;
    padding-top: 1.5rem;
}

/* ---------- Section Variants ---------- */
.section-light {
    background: var(--bg-light);
    padding: 1px 0; /* collapse margin fix */
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-intro {
    font-size: 1.15rem;
    max-width: 720px;
    color: var(--text-secondary);
}

/* ---------- Button Sizes ---------- */
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ---------- Hero Variants ---------- */
.hero-subtitle {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

.product-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--bg-white);
    max-width: 100%;
    padding: 5rem 1.5rem;
}

.product-hero h1 {
    color: var(--bg-white);
}

.product-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.hero-access {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem auto 1.25rem;
    letter-spacing: -0.01em;
}


/* ---------- Featured Card ---------- */
.featured-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    border-top: 4px solid var(--primary);
}

.featured-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.featured-card h2 {
    font-size: 1.75rem;
}

.featured-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.featured-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-card h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* ---------- Checklist ---------- */
.checklist {
    max-width: 720px;
    margin: 0 auto;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.check-item:last-child {
    border-bottom: none;
}

.check-icon {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ---------- Mastery Grid ---------- */
.mastery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.mastery-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.mastery-item h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.mastery-item p {
    font-size: 0.9rem;
}

/* ---------- Audience Grid ---------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.audience-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    border-left: 4px solid var(--primary);
}

.audience-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

/* ---------- Details Box ---------- */
.details-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

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

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value {
    color: var(--text-secondary);
    text-align: right;
}

/* ---------- Curriculum Table ---------- */
.curriculum-table {
    margin-top: 1.5rem;
}

.lesson-row {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

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

.lesson-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--primary);
    color: var(--bg-white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
}

.lesson-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.lesson-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.section-range {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}

/* ---------- FAQ ---------- */
.faq-section {
    margin-bottom: 2.5rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

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

.faq-item h3,
.faq-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Pricing ---------- */
.pricing-page .page-intro {
    text-align: center;
    margin: 0 auto 2rem;
}

.pricing-card-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.pricing-header {
    background: var(--primary);
    color: var(--bg-white);
    padding: 2rem;
    text-align: center;
}

.pricing-header h2 {
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
}

.price-period {
    font-size: 0.9rem;
    opacity: 0.85;
}

.pricing-features {
    padding: 2rem;
}

.pricing-feature {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    padding-left: 1.5rem;
    position: relative;
}

.pricing-feature::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-cta {
    display: block;
    margin: 0 2rem 2rem;
    text-align: center;
}

.pricing-details {
    margin: 3rem 0;
}

.pricing-details h3 {
    margin-bottom: 1.5rem;
}

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

.included-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.included-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.included-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.pricing-faq {
    margin-top: 3rem;
}

.pricing-faq h3 {
    margin-bottom: 1.5rem;
}

/* ---------- Pricing Page — Multi-Product ---------- */
.pricing-hero {
    padding: 3rem 0 2rem;
}

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

.pricing-section-header h2 {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.pricing-section-sub {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1rem;
}

.pricing-section-badge {
    display: inline-block;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.available-now {
    background: #d1fae5;
    color: #065f46;
}

.coming-soon-badge {
    background: #e0e7ff;
    color: #3730a3;
}

/* CertReady 3-column grid */
.certready-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cr-pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.cr-pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.cr-pricing-card-inner {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cr-specialty-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.cr-pricing-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.cr-exam-labels {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cr-price-block {
    margin-bottom: 1.25rem;
}

.cr-price {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.cr-price-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cr-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.cr-feature-list li {
    padding: 0.4rem 0 0.4rem 1.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-light);
    position: relative;
}

.cr-feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.cr-feature-list li:last-child {
    border-bottom: none;
}

.cr-try-btn {
    margin-bottom: 0.5rem;
    text-align: center;
}

.pricing-free-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* NPReady / CourseReady pricing */
.npready-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 820px;
    margin: 0 auto 1.5rem;
}

.npready-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}

.npready-bundle {
    border-color: var(--primary);
}

.npready-bundle-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
}

.npready-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.npready-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.npready-price-block {
    margin-bottom: 1rem;
}

.npready-price {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.npready-price-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.npready-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.pricing-notify-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ACA pricing */
.aca-pricing-wrapper {
    display: flex;
    justify-content: center;
}

.aca-pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.aca-pricing-inner {
    padding: 2rem;
}

.aca-pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.aca-exam-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.aca-price-block {
    margin-bottom: 1.5rem;
}

.aca-price {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.aca-price-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.aca-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.aca-feature-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-light);
    position: relative;
}

.aca-feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.aca-feature-list li:last-child {
    border-bottom: none;
}

/* Responsive — pricing page */
@media (max-width: 900px) {
    .certready-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .npready-pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- About ---------- */
.about-content {
    max-width: 720px;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.7;
}

.instructor-detail {
    max-width: 720px;
}

.instructor-bio h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.instructor-title {
    font-weight: 600;
    color: var(--primary) !important;
    font-size: 0.95rem;
    margin-bottom: 1.25rem !important;
}

.credentials-list {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.credentials-list h4 {
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.credentials-list ul {
    list-style: none;
    padding: 0;
}

.credentials-list li {
    padding: 0.35rem 0;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.credentials-list li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ---------- Instructor Card (Home) ---------- */
.instructor-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.instructor-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Dashboard ---------- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.overall-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.progress-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.progress-bar-lg {
    width: 200px;
    height: 10px;
    background: var(--bg-medium);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-sm {
    width: 80px;
    height: 6px;
    background: var(--bg-medium);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.progress-pct {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 2.5rem;
}

.certificate-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--text-primary);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.certificate-banner p {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

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

.module-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

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

.module-coming-soon {
    opacity: 0.6;
}

.module-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.module-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--bg-white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.module-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-pct {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.badge-coming-soon {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-medium);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.module-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.module-section {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

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

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ---------- Module Detail ---------- */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.module-header {
    margin-bottom: 2rem;
}

.module-progress-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.module-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.module-intro p {
    margin-bottom: 0;
}

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

.component-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
}

.component-card:hover {
    border-color: var(--primary);
}

.component-done {
    border-left: 4px solid var(--primary);
    background: #f8f8f8;
}

.component-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.component-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.component-done .component-icon {
    color: var(--primary);
    font-weight: 700;
}

.component-info h3 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.component-info p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.module-nav {
    margin-top: 2rem;
}

/* ---------- Video Player ---------- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #000;
    margin: 1.5rem 0;
}

.placeholder-message {
    padding: 3rem;
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

/* ---------- Certificate ---------- */
.certificate-page {
    text-align: center;
}

.certificate-frame {
    max-width: 800px;
    margin: 0 auto 2rem;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 3px;
}

.certificate-inner {
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 3rem;
}

.cert-header h2 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cert-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.cert-recipient {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem !important;
}

.cert-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

.cert-program {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem !important;
}

.cert-details {
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto 2rem !important;
    color: var(--text-secondary);
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.cert-signer {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.1rem !important;
}

.cert-signer-title {
    font-size: 0.85rem;
    color: var(--text-light);
}

.cert-meta p {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: right;
    margin-bottom: 0.2rem;
}

.certificate-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media print {
    .main-nav, .main-footer, .certificate-actions { display: none; }
    .certificate-frame { border-width: 2px; }
}

/* ---------- Admin ---------- */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-nav {
    display: flex;
    gap: 0.5rem;
}

.admin-nav-link {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    color: var(--text-secondary) !important;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.admin-nav-link:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}

.admin-nav-link.active {
    background: var(--primary);
    color: var(--bg-white) !important;
    border-color: var(--primary);
}

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

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.stat-card-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.quick-link {
    display: block;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.quick-link:hover {
    border-color: var(--primary);
}

.quick-link h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.quick-link p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
}

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

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

.admin-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-table td {
    color: var(--text-secondary);
}

.badge-enrolled {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: #F0FFF4;
    color: #22543D;
}

.badge-not-enrolled {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--bg-medium);
    color: var(--text-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .mastery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero { padding: 3rem 1.5rem; }
    .product-hero { padding: 3rem 1.5rem; }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .features-grid,
    .features-grid-3 {
        grid-template-columns: 1fr;
    }

    .mastery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .included-grid {
        grid-template-columns: 1fr;
    }

    .featured-stats {
        gap: 1.5rem;
    }

    .featured-card {
        padding: 2rem 1.5rem;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .detail-value {
        text-align: left;
    }

    .dashboard-header {
        flex-direction: column;
    }

    .progress-bar-lg {
        width: 150px;
    }

    .component-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cert-footer {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .cert-meta p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* nav-container stays horizontal (hamburger handles collapse) */

    .featured-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat {
        width: 45%;
    }

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .lesson-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .lesson-num {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }
}


/* ============================================================
   CERTIFICATION REVIEW STYLES
   ============================================================ */

/* Hero */
.cr-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: #fff; padding: 5rem 0; }
.cr-hero .hero-content { max-width: 700px; margin: 0 auto; text-align: center; }
.cr-hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: 1rem; }
.cr-hero .hero-subtitle { font-size: 1.2rem; opacity: 0.95; margin-bottom: 2rem; line-height: 1.6; }
.cr-hero .hero-badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: 0.5px; }
.cr-hero .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; justify-content: center; }
.cr-hero .hero-note { font-size: 0.85rem; opacity: 0.8; }
.cr-hero .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.cr-hero .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Steps grid */
.cr-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.cr-step-card { text-align: center; padding: 2rem 1.5rem; }
.cr-step-number { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.cr-step-pill { display: inline-block; padding: 0.3rem 0.9rem; border-radius: 20px; background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; white-space: nowrap; }
.cr-step-card h3 { margin-bottom: 0.5rem; }
.cr-step-card p { font-size: 0.9rem; color: #555; line-height: 1.5; }

/* Comparison */
.cr-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cr-compare-card { padding: 2rem; border-radius: 12px; }
.cr-compare-card h3 { margin-bottom: 1rem; }
.cr-compare-card ul { list-style: none; padding: 0; }
.cr-compare-card li { padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 0.95rem; }
.cr-compare-them { background: #f5f5f5; color: #666; }
.cr-compare-us { background: var(--secondary); color: #fff; }
.cr-compare-us h3 { color: #fff; }

/* Features grid */
.cr-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.cr-feature { padding: 1.5rem; background: #f8f9fa; border-radius: 12px; border-left: 4px solid var(--primary); }
.cr-feature h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.cr-feature p { font-size: 0.9rem; color: #555; line-height: 1.5; }

/* Instructor */
.cr-instructor { max-width: 700px; }
.cr-instructor h2 { margin-bottom: 1rem; }
.cr-instructor p { margin-bottom: 1rem; line-height: 1.7; }

/* Pricing cards */
.cr-pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 800px; margin: 2rem auto; }
.cr-price-card { padding: 2rem; border-radius: 16px; border: 2px solid #e5e7eb; position: relative; }
.cr-price-full { border-color: var(--primary); background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%); }
.cr-price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.cr-price { font-size: 2.5rem; font-weight: 800; color: var(--secondary); margin: 0.5rem 0; }
.cr-price-detail { font-size: 0.85rem; color: #666; margin-bottom: 1rem; }
.cr-price-card ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.cr-price-card li { padding: 0.4rem 0; font-size: 0.9rem; padding-left: 1.2rem; position: relative; }
.cr-price-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* FAQ */
.cr-faq { max-width: 700px; margin: 0 auto; }
.cr-faq-item { border-bottom: 1px solid #e5e7eb; }
.cr-faq-item summary { padding: 1.2rem 0; cursor: pointer; font-weight: 600; font-size: 1rem; }
.cr-faq-item p { padding: 0 0 1.2rem 0; color: #555; line-height: 1.6; }

/* Dashboard */
.cr-exam-toggle { display: flex; gap: 0.5rem; }
.cr-assessment-card { padding: 2rem; border-radius: 12px; margin: 1.5rem 0; border-left: 5px solid #ccc; background: #f8f9fa; }
.cr-rating-expert { border-left-color: #0ea5e9; }
.cr-rating-proficient { border-left-color: #22c55e; }
.cr-rating-competent { border-left-color: #f59e0b; }
.cr-rating-developing { border-left-color: #ef4444; }
.cr-rating-not_started { border-left-color: #94a3b8; }
.cr-assessment-summary { font-size: 1.05rem; line-height: 1.6; margin-bottom: 1rem; }

.cr-stats-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.cr-stat { text-align: center; }
.cr-stat-value { display: block; font-size: 1.8rem; font-weight: 800; color: var(--secondary); }
.cr-stat-label { font-size: 0.8rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }

.cr-actions-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }

.cr-section-title { margin-top: 2.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.cr-exam-label { font-size: 0.8rem; background: var(--secondary); color: #fff; padding: 0.2rem 0.6rem; border-radius: 4px; font-weight: 600; }

/* Domain mastery grid */
.cr-domain-group { margin-bottom: 2rem; }
.cr-domain-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e5e7eb; }
.cr-weight-badge { background: var(--secondary); color: #fff; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.cr-weight-sm { font-size: 0.75rem; color: #888; }

.cr-subdomain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.cr-subdomain-card { padding: 1.2rem; border-radius: 10px; border: 1px solid #e5e7eb; border-left: 4px solid #94a3b8; background: #fff; }
.cr-subdomain-card.cr-rating-expert { border-left-color: #0ea5e9; }
.cr-subdomain-card.cr-rating-proficient { border-left-color: #22c55e; }
.cr-subdomain-card.cr-rating-competent { border-left-color: #f59e0b; }
.cr-subdomain-card.cr-rating-developing { border-left-color: #ef4444; }
.cr-subdomain-card.cr-excluded { opacity: 0.6; background: #f1f5f9; }
.cr-subdomain-card.cr-excluded::after { content: 'Excluded from practice'; display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin-top: 0.5rem; font-weight: 600; }
.cr-subdomain-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.cr-subdomain-header h4 { font-size: 0.9rem; margin: 0; }
.cr-mastery-bar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.cr-mastery-pct { font-size: 0.85rem; font-weight: 700; }
.cr-subdomain-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: #666; margin-bottom: 0.5rem; }

.cr-rating-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.cr-rating-expert .cr-rating-label { color: #0ea5e9; }
.cr-rating-proficient .cr-rating-label { color: #22c55e; }
.cr-rating-competent .cr-rating-label { color: #f59e0b; }
.cr-rating-developing .cr-rating-label { color: #ef4444; }
.cr-rating-not_started .cr-rating-label { color: #94a3b8; }

/* Progress fills by rating */
.cr-fill-expert { background: #0ea5e9 !important; }
.cr-fill-proficient { background: #22c55e !important; }
.cr-fill-competent { background: #f59e0b !important; }
.cr-fill-developing { background: #ef4444 !important; }

/* Mastery milestones on progress bars (ADR-009) */
.cr-progress-milestones { position: relative; overflow: visible; }
.cr-milestone { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #475569; pointer-events: none; }
.cr-milestone-80 { left: 80%; }
.cr-milestone-90 { left: 90%; background: #0ea5e9; }
.cr-progress-toward { font-size: 0.75rem; color: #64748b; margin-top: 0.25rem; }
.cr-subdomain-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.5rem; }
.cr-exclude-toggle { padding: 0.25rem 0.5rem; font-size: 0.8rem; color: #2563eb; background: transparent; border: none; cursor: pointer; text-decoration: underline; }
.cr-exclude-toggle:hover { color: #1d4ed8; }
.cr-exclude-toggle:disabled { color: #94a3b8; cursor: not-allowed; }

/* Question card */
.cr-question-progress { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.cr-question-progress span { font-size: 0.9rem; color: #666; white-space: nowrap; }
.cr-question-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 2rem; margin-bottom: 1.5rem; }
.cr-question-meta { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.cr-question-body-system { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 0.5px; background: #f1f5f9; padding: 0.2rem 0.6rem; border-radius: 4px; }
.cr-blooms-badge { font-size: 0.75rem; background: var(--secondary); color: #fff; padding: 0.2rem 0.5rem; border-radius: 4px; }
.cr-question-text { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; }

/* Options */
.cr-options { display: flex; flex-direction: column; gap: 0.75rem; }
.cr-option { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem; border: 2px solid #e5e7eb; border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font-size: 0.95rem; line-height: 1.5; transition: border-color 0.2s, background 0.2s; }
.cr-option:hover:not(:disabled) { border-color: var(--primary); background: #f8f8f8; }
.cr-option:disabled { cursor: default; }
.cr-option-letter { display: flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: 50%; background: #f1f5f9; font-weight: 700; font-size: 0.9rem; color: var(--secondary); flex-shrink: 0; }
.cr-option-selected { border-color: var(--secondary); background: #eff6ff; }
.cr-option-correct { border-color: #22c55e !important; background: #f0fdf4 !important; }
.cr-option-correct .cr-option-letter { background: #22c55e; color: #fff; }
.cr-option-incorrect { border-color: #ef4444 !important; background: #fef2f2 !important; }
.cr-option-incorrect .cr-option-letter { background: #ef4444; color: #fff; }

/* Feedback */
.cr-feedback { padding: 1.5rem; border-radius: 12px; background: #f8f9fa; border: 1px solid #e5e7eb; }
.cr-feedback-result { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.8rem; }
.cr-correct { color: #22c55e; }
.cr-incorrect { color: #ef4444; }
.cr-feedback-rationale { font-size: 0.95rem; line-height: 1.6; color: #444; margin-bottom: 1rem; }
.cr-feedback-actions { display: flex; gap: 1rem; }
.cr-flag-area { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid #e5e7eb; }
.cr-flag-link { background: none; border: none; color: #9ca3af; font-size: 0.8rem; cursor: pointer; padding: 0; text-decoration: underline; }
.cr-flag-link:hover { color: #6b7280; }
.cr-flag-link.cr-flag-active { color: #6b7280; text-decoration: none; cursor: pointer; }

/* Osler tutorbot — φ² ≈ 2.618rem gap from flag area */
.cr-tutor-area { margin-top: 2.618rem; padding-top: 1.618rem; border-top: 1px solid #e5e7eb; }
.cr-tutor-label { font-size: 1rem; font-weight: 600; color: #374151; margin-bottom: 0.75rem; }
.cr-tutor-prompt { display: flex; gap: 0.5rem; align-items: center; }
.cr-tutor-input { flex: 1; padding: 0.5rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 1rem; font-family: inherit; resize: none; line-height: 1.4; }
.cr-tutor-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.cr-tutor-submit { white-space: nowrap; }
.cr-tutor-response { margin-top: 0.75rem; padding: 0.875rem 1rem; background: #f8faff; border: 1px solid #dbeafe; border-radius: 6px; font-size: 0.9rem; line-height: 1.6; color: #1e3a5f; white-space: pre-wrap; }
.cr-tutor-speak { background: none; border: none; cursor: pointer; padding: 0.25rem; color: #2563eb; flex-shrink: 0; line-height: 0; border-radius: 6px; transition: opacity 0.2s; }
.cr-tutor-speak:hover:not(:disabled) { opacity: 0.7; }
.cr-tutor-speak:disabled { cursor: default; }
.cr-speak-idle { display: block; }
.cr-speak-playing { display: none; gap: 3px; align-items: flex-end; height: 32px; }
.cr-speak-error { display: block; opacity: 0.4; }
.cr-tutor-speak[data-state=""] .cr-speak-idle,
.cr-tutor-speak:not([data-state]) .cr-speak-idle { display: block; }
.cr-tutor-speak[data-state="loading"] .cr-speak-idle { animation: cr-pulse 0.9s ease-in-out infinite; }
.cr-tutor-speak[data-state="playing"] .cr-speak-idle { display: none; }
.cr-tutor-speak[data-state="playing"] .cr-speak-playing { display: flex; }
.cr-tutor-speak[data-state="error"] .cr-speak-idle { display: none; }
.cr-tutor-speak[data-state="error"] .cr-speak-error { display: block; }
.cr-tutor-speak:not([data-state="error"]) .cr-speak-error { display: none; }
.cr-eq-bar { width: 5px; background: #2563eb; border-radius: 3px; animation: cr-eq 0.7s ease-in-out infinite; }
.cr-eq-bar:nth-child(1) { animation-delay: 0s; }
.cr-eq-bar:nth-child(2) { animation-delay: 0.15s; }
.cr-eq-bar:nth-child(3) { animation-delay: 0.3s; }
@keyframes cr-eq { 0%, 100% { height: 8px; } 50% { height: 26px; } }
@keyframes cr-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Results */
.cr-results-subtitle { color: #666; margin-bottom: 2rem; }
.cr-results-overview { display: flex; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.cr-score-circle { text-align: center; padding: 2rem; border-radius: 50%; width: 150px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f8f9fa; border: 4px solid #ccc; flex-shrink: 0; }
.cr-score-circle.cr-rating-proficient { border-color: #22c55e; }
.cr-score-circle.cr-rating-competent { border-color: #f59e0b; }
.cr-score-circle.cr-rating-developing { border-color: #ef4444; }
.cr-score-value { font-size: 2rem; font-weight: 800; color: var(--secondary); }
.cr-score-label { font-size: 0.75rem; color: #666; }
.cr-results-summary { flex: 1; }
.cr-results-stats { margin-top: 0.5rem; color: #666; }
.cr-section-desc { color: #666; margin-bottom: 1.5rem; }

/* Domain results list */
.cr-domain-results { display: flex; flex-direction: column; gap: 1rem; }
.cr-domain-result { padding: 1.2rem; border-radius: 10px; border-left: 4px solid #ccc; background: #fff; border: 1px solid #e5e7eb; }
.cr-domain-result.cr-rating-proficient { border-left-color: #22c55e; }
.cr-domain-result.cr-rating-competent { border-left-color: #f59e0b; }
.cr-domain-result.cr-rating-developing { border-left-color: #ef4444; }
.cr-domain-result-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.cr-domain-result-header h3 { font-size: 1rem; margin: 0; text-transform: capitalize; }
.cr-domain-result-score { text-align: right; }
.cr-domain-pct { font-size: 1.3rem; font-weight: 800; color: var(--secondary); display: block; }
.cr-domain-detail { font-size: 0.8rem; color: #888; }
.cr-domain-result-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }

/* Study plan */
.cr-plan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cr-plan-subtitle { color: #666; margin-bottom: 2rem; }
.cr-study-plan { display: flex; flex-direction: column; gap: 0.75rem; }
.cr-plan-item { padding: 1.2rem; border-radius: 10px; border: 1px solid #e5e7eb; border-left: 4px solid #ccc; background: #fff; }
.cr-effort-significant, .cr-effort-full_review { border-left-color: #ef4444; }
.cr-effort-moderate { border-left-color: #f59e0b; }
.cr-effort-maintenance { border-left-color: #22c55e; }
.cr-plan-item-header { display: flex; align-items: center; gap: 1rem; }
.cr-plan-priority { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--secondary); color: #fff; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.cr-plan-item-info { flex: 1; }
.cr-plan-item-info h3 { font-size: 1rem; margin: 0 0 0.3rem 0; }
.cr-plan-item-info h4 { font-size: 1rem; margin: 0 0 0.3rem 0; }
.cr-plan-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: #666; }
.cr-plan-effort-badge { font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.cr-plan-item-stats { text-align: right; }
.cr-plan-mastery { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.cr-plan-mastery .progress-bar-sm { width: 80px; }
.cr-plan-est { font-size: 0.85rem; color: #666; }
.cr-plan-item-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid #f1f5f9; font-size: 0.85rem; color: #888; }

/* Mini diagnostic */
.cr-mini-header { text-align: center; max-width: 600px; margin: 3rem auto; }
.cr-mini-header h1 { margin-bottom: 1rem; }
.cr-mini-header p { margin-bottom: 2rem; color: #555; }
.cr-mini-results-card { max-width: 700px; margin: 0 auto; }
.cr-mini-score { text-align: center; margin: 2rem 0; }
.cr-mini-score .cr-score-value { font-size: 2.5rem; }
.cr-mini-cta { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e5e7eb; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.cr-mini-cta p { margin-bottom: 0.75rem; color: #555; line-height: 1.6; }

/* Practice header */
.cr-practice-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.cr-practice-stats { display: flex; gap: 1.5rem; font-size: 0.9rem; color: #666; }

/* Loading state */
.cr-loading { text-align: center; padding: 3rem; color: #888; }

/* Empty state */
.cr-empty-state { text-align: center; padding: 3rem; max-width: 500px; margin: 0 auto; }
.cr-empty-state h2 { margin-bottom: 1rem; }
.cr-empty-state p { margin-bottom: 2rem; color: #555; }

/* Diagnostic container */
.cr-diagnostic-container { max-width: 800px; margin: 0 auto; }
.cr-diagnostic-intro { color: #555; line-height: 1.6; margin-bottom: 2rem; }
.cr-diagnostic-info { background: #f8f9fa; border-radius: 10px; padding: 1.5rem; margin-bottom: 2rem; }
.cr-info-item { padding: 0.4rem 0; font-size: 0.9rem; }

/* Complete card */
.cr-complete-card { text-align: center; padding: 3rem; background: #f0fdf4; border-radius: 12px; border: 1px solid #bbf7d0; }
.cr-complete-card h2 { color: #22c55e; margin-bottom: 1rem; }
.cr-complete-card p { margin-bottom: 2rem; font-size: 1.1rem; }

/* Session summary modal (ADR-009) */
.cr-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cr-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); }
.cr-modal-card { position: relative; background: #fff; border-radius: 14px; padding: 2rem; max-width: 560px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.25); max-height: 90vh; overflow-y: auto; }
.cr-modal-card h2 { margin: 0 0 1rem 0; font-size: 1.4rem; }
.cr-summary-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; padding: 1rem; background: #f8f9fa; border-radius: 10px; }
.cr-stat { display: flex; flex-direction: column; align-items: center; }
.cr-stat-value { font-size: 1.6rem; font-weight: 700; color: #111827; }
.cr-stat-label { font-size: 0.8rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; }
.cr-summary-deltas h3 { font-size: 1rem; margin: 0 0 0.75rem 0; color: #374151; }
.cr-summary-list { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
.cr-summary-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid #f1f5f9; gap: 1rem; }
.cr-summary-list li:last-child { border-bottom: none; }
.cr-summary-domain { font-weight: 500; color: #111827; }
.cr-summary-change { font-size: 0.85rem; color: #475569; text-align: right; }
.cr-summary-note { color: #64748b; margin: 0 0 1.5rem 0; }
.cr-modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; }

/* Admin stats grid */
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }

/* Alt background sections */
.alt-bg { background: #f8f9fa; }

/* Responsive */
@media (max-width: 768px) {
    .cr-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .cr-comparison { grid-template-columns: 1fr; }
    .cr-features-grid { grid-template-columns: 1fr; }
    .cr-pricing-cards { grid-template-columns: 1fr; }
    .cr-results-overview { flex-direction: column; }
    .cr-practice-header { flex-direction: column; gap: 1rem; }
    .cr-stats-row { gap: 1rem; }
    .cr-plan-item-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .cr-steps-grid { grid-template-columns: 1fr; }
    .cr-hero h1 { font-size: 1.8rem; }
}


/* ============================================================
   MOBILE RESPONSIVE ENHANCEMENTS
   ============================================================ */

/* ---------- Hamburger Menu ---------- */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-container {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        z-index: 99;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .main-nav {
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

/* ---------- Question UI Mobile Fixes ---------- */
@media (max-width: 768px) {
    .cr-option {
        min-height: 44px;
        padding: 0.875rem 1rem;
    }

    .cr-option-letter {
        min-width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .cr-question-card {
        padding: 1rem 0.875rem;
    }

    .cr-feedback-actions {
        flex-direction: column;
    }

    .cr-feedback-actions .btn {
        width: 100%;
    }

    .cr-practice-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .cr-practice-stats span {
        text-align: center;
        background: var(--bg-light);
        padding: 0.4rem 0.5rem;
        border-radius: var(--radius-sm);
        font-size: 0.8rem;
    }

    .cr-question-progress {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .cr-question-progress .progress-bar-lg {
        width: 100%;
    }

    .page-section {
        padding: 1.5rem 1rem;
    }

    .cr-practice-header {
        gap: 0.75rem;
    }

    .cr-stats-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .cr-actions-row {
        flex-direction: column;
    }

    .cr-actions-row .btn {
        width: 100%;
        text-align: center;
    }
}

/* ---------- Safe Area Insets ---------- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .main-footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }

    .qp-nav {
        padding-top: calc(0.75rem + env(safe-area-inset-top));
    }
}


/* ============================================================
   QUICK PRACTICE
   ============================================================ */

/* ---------- Quick Practice Nav ---------- */
.qp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.qp-back {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1;
    padding: 0.25rem;
}

.qp-back:hover {
    color: var(--primary);
}

.qp-title {
    font-weight: 700;
    font-size: 1.1rem;
    flex: 1;
}

.qp-counter {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ---------- Quick Practice Container ---------- */
.qp-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    min-height: calc(100vh - 56px);
}

/* ---------- Session Picker ---------- */
.qp-picker {
    text-align: center;
    padding: 3rem 1rem;
}

.qp-picker h2 {
    margin-bottom: 0.5rem;
}

.qp-picker p {
    margin-bottom: 2.5rem;
}

.qp-size-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.qp-size-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 2.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.qp-size-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.qp-size-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.qp-size-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.qp-size-time {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ---------- Progress Bar ---------- */
.qp-progress-track {
    width: 100%;
    height: 4px;
    background: var(--bg-medium);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.qp-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0;
}

/* ---------- Summary ---------- */
.qp-summary-card {
    text-align: center;
    padding: 2rem 1rem;
}

.qp-score-display {
    margin-bottom: 2rem;
}

.qp-score-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.qp-score-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.qp-domain-breakdown {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.qp-domain-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

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

.qp-domain-name {
    color: var(--text-secondary);
    text-transform: capitalize;
}

.qp-domain-score {
    font-weight: 700;
}

.qp-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 320px;
    margin: 0 auto;
}

.qp-summary-actions .btn {
    width: 100%;
}

/* ---------- Quick Practice Responsive ---------- */
@media (max-width: 480px) {
    .qp-size-options {
        gap: 1rem;
    }

    .qp-size-btn {
        padding: 1.5rem 2rem;
    }

    .qp-score-number {
        font-size: 2.5rem;
    }
}



/* ================================================================
   CourseReady — Practice Engine UI
   ================================================================ */

/* ---------- Overall progress bar ---------- */
.courseready-progress-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.courseready-progress-bar-wrap {
    flex: 1;
    height: 8px;
    background: var(--bg-medium);
    border-radius: 4px;
    overflow: hidden;
}

.courseready-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
    min-width: 4px;
}

.courseready-progress-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ---------- Section ---------- */
.courseready-section {
    margin-bottom: 2.5rem;
}

.courseready-section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.courseready-section-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.courseready-section-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ---------- Category grid ---------- */
.courseready-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* ---------- Category card ---------- */
.courseready-cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.courseready-cat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.courseready-cat-inprogress {
    border-left: 3px solid #f59e0b;
}

.courseready-cat-mastered {
    border-left: 3px solid #10b981;
}

.courseready-cat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.courseready-cat-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.courseready-cat-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

.courseready-cat-notstarted {
    color: var(--text-light);
    font-style: italic;
}

.courseready-practice-btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* ---------- Mastery bar ---------- */
.courseready-mastery-bar-wrap {
    height: 6px;
    background: var(--bg-medium);
    border-radius: 3px;
    overflow: hidden;
}

.courseready-mastery-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
    min-width: 0;
}

.courseready-bar-green  { background: #10b981; }
.courseready-bar-amber  { background: #f59e0b; }
.courseready-bar-blue   { background: #3b82f6; }
.courseready-bar-gray   { background: var(--bg-medium); width: 0 !important; }

/* ---------- Bloom's level badges ---------- */
.courseready-blooms-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.courseready-blooms-l2 { background: #dbeafe; color: #1d4ed8; }
.courseready-blooms-l3 { background: #fef3c7; color: #b45309; }
.courseready-blooms-l4 { background: #d1fae5; color: #065f46; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .courseready-category-grid {
        grid-template-columns: 1fr;
    }

    .courseready-section-header {
        flex-direction: column;
        gap: 0.25rem;
    }
}
