.cd-hero {
    background: #253044;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.cd-category-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(67, 94, 190, 0.2);
    color: #93b4ff;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.cd-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ECEFF1;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.cd-description {
    color: rgba(203, 213, 225, 0.8);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.cd-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(203, 213, 225, 0.8);
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 0.78rem;
    margin: 0.2rem;
}

.cd-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.cd-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(203, 213, 225, 0.75);
    font-size: 0.875rem;
}

.cd-meta-item i {
    color: #93b4ff;
    font-size: 1rem;
}

.cd-thumbnail {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    object-fit: cover;
    aspect-ratio: 16/9;
}

.cd-price-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    margin-top: 1rem;
}

.cd-price-value {
    font-size: 2rem;
    font-weight: 800;
    color: #4ade80;
    margin-bottom: 0.25rem;
}

.cd-enrolled-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-enroll-hero {
    background: linear-gradient(135deg, #435ebe 0%, #2d47a0 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 28px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.22s ease;
    box-shadow: 0 4px 18px rgba(67, 94, 190, 0.4);
}

.btn-enroll-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(67, 94, 190, 0.55);
    color: #fff;
}

.btn-start-hero {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 28px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.22s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 18px rgba(22, 163, 74, 0.4);
}

.btn-start-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.55);
    color: #fff;
}

.btn-start-hero .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 12px;
}

.btn-wishlist {
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    padding: 10px 20px;
    color: #fca5a5;
    background: transparent;
    font-weight: 600;
    transition: all 0.22s ease;
}

.btn-wishlist:hover, .btn-wishlist.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fca5a5;
}

.cd-panel {
    background: #253044;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
    margin-bottom: 1.5rem;
}

.cd-panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cd-panel-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ECEFF1;
}

.cd-panel-body {
    padding: 1.25rem;
}

.cd-tabs .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 1.25rem;
    background: #253044;
}

.cd-tabs .nav-link {
    color: rgba(203, 213, 225, 0.65);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    transition: color 0.18s, border-color 0.18s;
}

.cd-tabs .nav-link:hover {
    color: #ECEFF1;
    border-bottom-color: rgba(67, 94, 190, 0.4);
}

.cd-tabs .nav-link.active {
    color: #93b4ff;
    border-bottom-color: #435ebe;
    background: transparent;
}

.cd-tab-content {
    padding: 1.5rem 1.25rem;
    color: rgba(203, 213, 225, 0.85);
}

.cd-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ECEFF1;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cd-learn-list, .cd-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cd-learn-list li, .cd-req-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.cd-learn-list li:last-child, .cd-req-list li:last-child {
    border-bottom: none;
}

.cd-learn-list li i { color: #4ade80; flex-shrink: 0; margin-top: 2px; }
.cd-req-list li i { color: #fbbf24; flex-shrink: 0; margin-top: 2px; }

.cd-lesson-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

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

.cd-lesson-row:hover:not(.is-locked) {
    background: rgba(67, 94, 190, 0.1);
}

.cd-lesson-row.is-locked {
    cursor: not-allowed;
    opacity: 0.6;
}

.cd-lesson-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cd-lesson-icon.done { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.cd-lesson-icon.locked { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }
.cd-lesson-icon.play { background: rgba(67, 94, 190, 0.2); color: #93b4ff; }

.cd-lesson-info { flex: 1; min-width: 0; }

.cd-lesson-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ECEFF1;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cd-lesson-desc {
    font-size: 0.78rem;
    color: rgba(203, 213, 225, 0.55);
}

.cd-lesson-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 0.35rem;
    overflow: hidden;
}

.cd-lesson-progress-bar {
    height: 100%;
    background: #4ade80;
    border-radius: 4px;
}

.cd-lesson-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.cd-duration-badge {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(203, 213, 225, 0.65);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.cd-progress-card {
    background: #253044;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.cd-progress-label {
    font-size: 0.82rem;
    color: rgba(203, 213, 225, 0.65);
    margin-bottom: 0.3rem;
}

.cd-progress-bar-wrap {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.cd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #435ebe, #4ade80);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.cd-progress-text {
    font-size: 0.8rem;
    color: rgba(203, 213, 225, 0.55);
    text-align: center;
}

.cd-quiz-alert {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.cd-quiz-alert h6 {
    color: #4ade80;
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}

.cd-quiz-alert p {
    color: rgba(203, 213, 225, 0.8);
    font-size: 0.82rem;
    margin: 0;
}

.cd-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cd-stat-cell {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.cd-stat-cell-icon {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.cd-stat-cell-icon.purple { color: #c084fc; }
.cd-stat-cell-icon.green { color: #4ade80; }
.cd-stat-cell-icon.blue { color: #93b4ff; }
.cd-stat-cell-icon.red { color: #fca5a5; }

.cd-stat-cell-value {
    font-size: 1rem;
    font-weight: 700;
    color: #ECEFF1;
    line-height: 1.2;
}

.cd-stat-cell-label {
    font-size: 0.75rem;
    color: rgba(203, 213, 225, 0.55);
}

.cd-related-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.cd-related-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cd-related-title {
    font-size: 0.83rem;
    font-weight: 600;
    color: #ECEFF1;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 0.2rem;
}

.cd-related-title:hover { color: #93b4ff; }

.cd-related-instructor {
    font-size: 0.75rem;
    color: rgba(203, 213, 225, 0.55);
}

.cd-related-price {
    font-size: 0.78rem;
    color: #4ade80;
    font-weight: 600;
}

.cd-manage-btn {
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    transition: all 0.18s ease;
}

.cd-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: rgba(203, 213, 225, 0.5);
}

.cd-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.cd-empty h6 { color: rgba(203, 213, 225, 0.7); }

.modal-content {
    background: #253044;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ECEFF1;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .cd-hero {
        padding: 1.25rem;
    }

    .cd-title {
        font-size: 1.25rem;
    }

    .cd-meta-row {
        gap: 0.75rem;
    }
}
