/* ═══════════════════════════════════════════════════════════
   COURSE DETAIL PAGE - Modern Design
   ═══════════════════════════════════════════════════════════ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #333;
}

.cd-page {
    min-height: 100vh;
}

/* ─── Hero Section ─────────────────────────────────────── */
.cd-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.cd-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.cd-hero-inner {
    position: relative;
    z-index: 1;
}

.cd-breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cd-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.cd-breadcrumb a:hover {
    opacity: 0.8;
}

.cd-breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.6;
}

.cd-breadcrumb .current {
    opacity: 0.7;
}

.cd-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.cd-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);
}

.cd-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 800px;
    line-height: 1.6;
}

.cd-meta-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.cd-meta-pill {
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.cd-meta-pill i {
    margin-right: 6px;
}

.cd-meta-pill.like i { color: #4ade80; }
.cd-meta-pill.dislike i { color: #f87171; }

.cd-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cd-btn-like,
.cd-btn-dislike {
    padding: 12px 24px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cd-btn-ai {
    padding: 12px 24px;
    border: 2px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cd-btn-ai:hover {
    background: rgba(59, 130, 246, 0.28);
    border-color: #93c5fd;
    color: #fff;
    text-decoration: none;
}

.cd-btn-like:hover {
    background: rgba(74, 222, 128, 0.3);
    border-color: #4ade80;
}

.cd-btn-dislike:hover {
    background: rgba(248, 113, 113, 0.3);
    border-color: #f87171;
}

/* ─── Content Section ──────────────────────────────────── */
.cd-content {
    padding: 50px 0 80px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.cd-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #667eea;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.cd-back:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: #667eea;
    text-decoration: none;
}

/* ─── Info Cards ───────────────────────────────────────── */
.cd-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.icon-wrap.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.icon-wrap.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.icon-wrap.green { background: linear-gradient(135deg, #10b981, #059669); }

.card-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* ─── Chapters Section ─────────────────────────────────── */
.cd-chapters {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cd-chapters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f4;
    flex-wrap: wrap;
    gap: 12px;
}

.cd-chapters-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.cd-chapters-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Progress bar in Course Content header */
.ch-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
    font-weight: 600;
    line-height: 1;
}

.ch-progress-bar {
    width: clamp(200px, 25vw, 240px);
    height: 8px;
    background: #e8edf3;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.ch-progress-fill {
    position: absolute;
    inset: 0;
    width: 0; /* set inline via style attr from template */
    height: 100%;
    background: linear-gradient(90deg, #2fbf71, #16a34a);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
    transition: width 0.4s ease;
}

.ch-count {
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

/* ─── Chapter Item ─────────────────────────────────────── */
.cd-ch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s;
    flex-wrap: wrap;
    gap: 15px;
}

.cd-ch-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.cd-ch-item.cd-ch-finished {
    background: #f0fdf4;
    border-color: #86efac;
}

.cd-ch-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.cd-ch-num {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.cd-ch-num.finished {
    background: linear-gradient(135deg, #10b981, #059669);
}

.cd-ch-info {
    flex: 1;
}

.cd-ch-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.cd-ch-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7280;
}

.cd-ch-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cd-ch-status.completed {
    color: #10b981;
    font-weight: 600;
}

.cd-ch-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cd-btn-finish,
.cd-btn-watch {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.cd-btn-finish {
    background: #f3f4f6;
    color: #6b7280;
}

.cd-btn-finish:hover {
    background: #2fbf71;
    color: #fff;
}

.cd-btn-finish.completed {
    background: #2fbf71;
    color: #fff;
}

.cd-btn-finish.completed:hover {
    background: #198754; /* darker green on hover instead of orange */
}

.cd-btn-watch {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.cd-btn-watch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
    text-decoration: none;
}

.cd-no-chapters {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 15px;
}

.cd-no-chapters p {
    font-size: 16px;
    color: #9ca3af;
}

/* ─── Sidebar ──────────────────────────────────────────── */
.cd-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cd-sidebar-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.cd-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.stat-label {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label i {
    font-size: 16px;
}

.stat-label i.blue { color: #3b82f6; }
.stat-label i.purple { color: #8b5cf6; }
.stat-label i.green { color: #10b981; }
.stat-label i.red { color: #ef4444; }

.cd-stat-row strong {
    font-size: 15px;
    color: #1f2937;
}

.cd-sidebar-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: #fff;
}

.cd-sidebar-cta h5 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cd-sidebar-cta p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #fff;
    color: #667eea;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: #667eea;
    text-decoration: none;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .cd-hero h1 {
        font-size: 28px;
    }
    
    .cd-subtitle {
        font-size: 16px;
    }
    
    .cd-meta-row {
        gap: 10px;
    }
    
    .cd-meta-pill {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .cd-chapters-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cd-ch-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cd-ch-actions {
        width: 100%;
    }
    
    .cd-btn-finish,
    .cd-btn-watch {
        flex: 1;
        justify-content: center;
    }
}

/* === Overrides to match reference visuals === */
.cd-hero {
    background:
        radial-gradient(70% 90% at 75% 30%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 55%),
        radial-gradient(60% 80% at 60% 70%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 65%),
        linear-gradient(110deg, #0f1b2f 0%, #0f2d4a 30%, #2165B1 100%);
    padding: 78px 0 96px;
}
.cd-hero::before { display: none; } /* keep old svg overlay off */
.cd-badge {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f7f9ff;
}
.cd-hero h1 { font-size: 40px; letter-spacing: -0.5px; }
.cd-subtitle { color: rgba(255, 255, 255, 0.82); max-width: 720px; }
.cd-meta-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
}
.cd-actions .cd-btn-like,
.cd-actions .cd-btn-dislike {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    color: #fff;
}

.cd-content { background: #f7f8fb; padding: 60px 0 90px; }
.cd-content .row { row-gap: 24px; }
.cd-info-card,
.cd-chapters,
.cd-sidebar-card {
    border-radius: 12px;
    border: 1px solid #eef1f5;
    box-shadow: 0 8px 18px rgba(17, 41, 85, 0.06);
    background: #fff;
}
.card-text { color: #4b5563; line-height: 1.65; }
.cd-chapters-header { border-bottom: 1px solid #edf0f4; padding-bottom: 16px; }
.cd-ch-item {
    border: 1px solid #edf0f4;
    padding: 18px;
    margin-bottom: 14px;
}
.cd-ch-item:hover { border-color: #c8d4e4; box-shadow: 0 6px 14px rgba(17, 41, 85, 0.05); }
.cd-ch-num {
    background: #3378CA;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    font-size: 17px;
}
.cd-ch-num.finished { background: #10b981; }
.cd-ch-meta { color: #6b7280; }
.cd-btn-watch {
    background: #3378CA;
    border-radius: 8px;
    padding: 10px 18px;
    box-shadow: 0 6px 18px rgba(51, 120, 202, 0.22);
}
.cd-btn-finish {
    border: 1px solid #d7dce3;
    background: #f7f8fb;
    color: #556070;
}
.cd-btn-finish.completed {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.cd-sidebar-cta {
    background: #5579D7;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(50, 91, 205, 0.26);
}
.cd-sidebar-cta h5 { color: #fff; }
.cd-sidebar-cta p { color: rgba(255, 255, 255, 0.86); }
.cta-btn {
    background: #fff;
    color: #5579D7;
    border-radius: 9px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

@media (max-width: 992px) {
    .cd-hero { padding: 56px 0 70px; }
    .cd-hero h1 { font-size: 32px; }
    .cd-sidebar-card, .cd-sidebar-cta { margin-top: 12px; }
}

@media (max-width: 768px) {
    .cx-grid { grid-template-columns: 1fr; }
    .cd-actions { gap: 10px; }
    .cd-ch-item { align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   QUIZ UNLOCK SECTION
   ═══════════════════════════════════════════════════════════ */

.cd-quiz-section {
    margin-top: 32px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cd-quiz-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.4s ease;
}

.cd-quiz-section.unlocked {
    border-color: rgba(40, 167, 69, 0.15);
}

.cd-quiz-section.unlocked::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.cd-quiz-section.locked {
    border-color: rgba(108, 117, 125, 0.15);
}

.cd-quiz-section.locked::before {
    background: linear-gradient(90deg, #adb5bd, #6c757d);
}

/* Icon */
.quiz-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quiz-icon-circle.unlocked {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

.quiz-icon-circle.locked {
    background: linear-gradient(135deg, #dee2e6, #adb5bd);
    color: #6c757d;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 6px 30px rgba(40, 167, 69, 0.5); }
}

/* Body */
.cd-quiz-body {
    flex: 1;
}

.cd-quiz-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.cd-quiz-badge.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.cd-quiz-badge.locked {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.cd-quiz-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.cd-quiz-desc {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cd-quiz-desc strong {
    color: #e74c3c;
    font-weight: 700;
}

/* Quiz meta tags */
.cd-quiz-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.cd-quiz-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f0f4ff;
    color: #5579D7;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.cd-quiz-meta span i {
    font-size: 14px;
}

/* Progress bar (locked state) */
.cd-quiz-progress {
    margin-bottom: 20px;
}

.cd-quiz-progress-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cd-quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 0.6s ease;
}

.cd-quiz-progress-text {
    font-size: 12px;
    color: #868e96;
    font-weight: 500;
}

/* Quiz button */
.cd-quiz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cd-quiz-btn.unlocked {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

.cd-quiz-btn.unlocked:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(40, 167, 69, 0.4);
    color: #fff;
    text-decoration: none;
}

.cd-quiz-btn.locked {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   QUIZ UNLOCK CARD (.qz)
   ═══════════════════════════════════════════════════════════ */

.qz {
    margin-top: 32px;
    background: #fff;
    border-radius: 16px;
    padding: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid #edf0f5;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    transition: box-shadow .3s, border-color .3s;
}
.qz:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.09);
}

/* Decorative blobs */
.qz__decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.qz__blob {
    position: absolute; border-radius: 50%; opacity: .06;
}
.qz--ready .qz__blob { background: #10b981; }
.qz--locked .qz__blob { background: #6b7280; }
.qz__blob--1 { width: 200px; height: 200px; top: -60px; right: -40px; }
.qz__blob--2 { width: 140px; height: 140px; bottom: -30px; left: -30px; }

/* Ribbon */
.qz__ribbon {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 24px;
    border-bottom: 1px solid #f0f2f7;
    font-size: 13px; font-weight: 600;
    position: relative; z-index: 1;
}
.qz__ribbon-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.qz__ribbon-dot--green { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,.5); }
.qz__ribbon-dot--amber { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,.5); }
.qz__ribbon-label { color: #4b5563; flex: 1; }
.qz__ribbon-tag {
    padding: 3px 12px; border-radius: 12px;
    font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
}
.qz--ready .qz__ribbon-tag { background: rgba(16,185,129,.1); color: #059669; }
.qz--locked .qz__ribbon-tag { background: rgba(107,114,128,.1); color: #6b7280; }

/* Body */
.qz__body {
    display: flex; gap: 22px; padding: 28px 28px 20px;
    position: relative; z-index: 1;
}

/* Glyph / Icon */
.qz__glyph {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0; position: relative;
}
.qz__glyph--trophy {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    box-shadow: 0 6px 18px rgba(16,185,129,.3);
}
.qz__glyph--trophy .qz__glyph-ring {
    position: absolute; inset: -4px; border-radius: 20px;
    border: 2px solid rgba(16,185,129,.25);
    animation: qzRingPulse 2.5s ease-in-out infinite;
}
@keyframes qzRingPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: .4; }
}
.qz__glyph--lock {
    background: #f3f4f6; color: #9ca3af;
}

/* Info */
.qz__info { flex: 1; min-width: 0; }
.qz__title {
    font-size: 20px; font-weight: 700; color: #1f2937;
    margin: 0 0 6px; line-height: 1.3;
}
.qz__text {
    font-size: 14px; color: #6b7280; line-height: 1.5;
    margin: 0 0 14px;
}

/* Stats */
.qz__stats { display: flex; flex-wrap: wrap; gap: 16px; }
.qz__stat {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: #4b5563;
}
.qz__stat i { color: #3378CA; font-size: 14px; }

/* Foot */
.qz__foot {
    padding: 16px 28px 24px;
    position: relative; z-index: 1;
}

/* Segmented progress */
.qz__segments {
    display: flex; gap: 4px; margin-bottom: 14px;
}
.qz__seg {
    flex: 1; height: 6px; border-radius: 3px;
    background: #e5e7eb; transition: background .3s;
}
.qz__seg--done {
    background: linear-gradient(90deg, #3378CA, #2165B1);
}

/* Foot row */
.qz__foot-row {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.qz__foot-row--center { justify-content: flex-start; }
.qz__remaining {
    font-size: 13px; color: #9ca3af; font-weight: 500;
    display: flex; align-items: center; gap: 6px;
}

/* CTA Button */
.qz__cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px;
    font-size: 14px; font-weight: 700;
    text-decoration: none; border: none; cursor: pointer;
    transition: all .3s;
}
.qz__cta--go {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16,185,129,.3);
}
.qz__cta--go:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16,185,129,.4);
    color: #fff; text-decoration: none;
}
.qz__cta--disabled {
    background: #e5e7eb; color: #9ca3af; cursor: not-allowed;
}

@media (max-width: 576px) {
    .qz__body { flex-direction: column; align-items: center; text-align: center; }
    .qz__stats { justify-content: center; }
    .qz__foot-row { justify-content: center; }
}
