:root {
    --primary: #6A0DAD;
    --primary-light: #8A4FFF;
    --secondary: #FFEB3B;
    --secondary-dark: #FFD600;
    --success: #4CAF50;
    --info: #2196F3;
}
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #2c3e50;
    line-height: 1.6;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.header-title {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.3);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.category-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.category-info .price {
    font-size: 1.25rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
}
.category-info .registered-count {
    font-size: 1rem;
    color: #e0e7ff;
}
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.accordion-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.accordion-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.3s ease;
}
.accordion-header:hover {
    background: #f8f9fa;
}
.accordion-header i {
    color: var(--primary);
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}
.accordion-header.active i {
    transform: rotate(90deg);
}
.accordion-header h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    flex: 1;
}
.accordion-header .lock-icon {
    color: #e74c3c;
    font-size: 1.4rem;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}
.accordion-content.open {
    max-height: 2000px;
}
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}
.course-row {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 15px;
    transition: all 0.3s ease;
}
.course-row:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.course-content {
    flex: 1;
    padding: 0 15px;
}
.course-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}
.course-title .lock-icon {
    color: #e74c3c;
    font-size: 1.2rem;
}
.course-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}
.course-meta span {
    display: flex;
    align-items: center;
}
.course-meta i {
    margin-left: 5px;
    color: var(--primary);
}
.course-desc {
    color: #5a6c7d;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}
.course-actions {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.btn {
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    min-height: 50px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}
.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-light) 0%, #A68FFF 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(106, 13, 173, 0.3);
}
.btn-yellow {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: #343a40;
}
.btn-yellow:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #FFC107 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 214, 0, 0.3);
}
.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, #42A5F5 100%);
    color: white;
}
.btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, #42A5F5 0%, #64B5F6 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.3);
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    overflow: hidden;
    position: relative;
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 1.5rem;
    color: #2c3e50;
}
.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s;
}
.close-modal:hover {
    color: var(--primary);
}
.modal-body {
    padding: 0;
}
.modal-video {
    width: 100%;
    height: 500px;
    background: #000;
}
.registration-status {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #4CAF50;
    margin-bottom: 1rem;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
}
.cart-success-message, .cart-error-message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 10000;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    animation: slideIn 0.5s ease-out;
    min-width: 300px;
}
.cart-success-message {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}
.cart-error-message {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}
.cart-success-message .success-content,
.cart-error-message .success-content {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.cart-animation {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.4);
    border: 3px solid white;
    animation: flyToCart 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes flyToCart {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    30% { transform: translate(calc(var(--target-x) * 0.3), calc(var(--target-y) * 0.3 - 80px)) scale(0.9) rotate(90deg); opacity: 1; }
    70% { transform: translate(calc(var(--target-x) * 0.7), calc(var(--target-y) * 0.7 - 40px)) scale(0.6) rotate(270deg); opacity: 0.7; }
    100% { transform: translate(var(--target-x), var(--target-y)) scale(0.1) rotate(360deg); opacity: 0; }
}
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3) rotate(-5deg); }
    30% { transform: scale(0.9) rotate(5deg); }
    45% { transform: scale(1.2) rotate(-3deg); }
    60% { transform: scale(0.95) rotate(3deg); }
    75% { transform: scale(1.1) rotate(-2deg); }
}
.cart-icon.bounce {
    animation: cartBounce 0.8s ease;
}
@keyframes cartPulse {
    0% { box-shadow: 0 0 0 0 rgba(138, 79, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(138, 79, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(138, 79, 255, 0); }
}
.cart-icon.pulse {
    animation: cartPulse 0.6s ease;
}
@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(400px); opacity: 0; }
}
@media (max-width: 768px) {
    .course-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }
    .course-content {
        padding: 0;
    }
    .course-meta {
        flex-direction: column;
        gap: 8px;
    }
    .header-title {
        padding: 2rem 1rem;
        font-size: 2rem;
    }
    .modal-video {
        height: 300px;
    }
    .btn {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .btn i {
        font-size: 1rem;
    }
}
.no-courses {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 1.2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.no-courses i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}
.locked-message {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}
.locked-message i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}