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

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===== پس زمینه RGB متحرک ===== */
.rgb-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, #ff0000, #00ff00, #0000ff, #ff00ff, #00ffff);
    background-size: 500% 500%;
    animation: rgbFlow 15s ease infinite;
    opacity: 0.15;
    z-index: -2;
}

@keyframes rgbFlow {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0px, transparent 2px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    animation: noiseMove 0.2s infinite;
}

@keyframes noiseMove {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(1%, 1%); }
    30% { transform: translate(-2%, 0); }
    40% { transform: translate(2%, 2%); }
    50% { transform: translate(-1%, 2%); }
    60% { transform: translate(1%, -1%); }
    70% { transform: translate(-2%, 1%); }
    80% { transform: translate(2%, -2%); }
    90% { transform: translate(-1%, -2%); }
    100% { transform: translate(0, 0); }
}

/* ===== کانتینر اصلی ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* ===== هدر نئون ===== */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.neon-wrapper {
    position: relative;
    display: inline-block;
}

.neon-title {
    font-size: 5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    position: relative;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff00ff,
        0 0 40px #0000ff,
        0 0 80px #00ff00;
    animation: neonPulse 2s infinite;
}

.neon-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    -webkit-text-stroke: 2px transparent;
    background: linear-gradient(45deg, #ff0000, #ff00ff, #0000ff, #00ff00);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0.5;
    filter: blur(8px);
    animation: rgbShift 3s infinite;
}

@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 10px #ff0000, 0 0 20px #ff00ff, 0 0 40px #0000ff; }
    33% { text-shadow: 0 0 10px #00ff00, 0 0 20px #ff0000, 0 0 40px #ff00ff; }
    66% { text-shadow: 0 0 10px #0000ff, 0 0 20px #00ff00, 0 0 40px #ff0000; }
}

@keyframes rgbShift {
    0% { filter: blur(8px) hue-rotate(0deg); }
    100% { filter: blur(8px) hue-rotate(360deg); }
}

.neon-sub {
    margin-top: 10px;
}

.rgb-text {
    font-size: 1.2rem;
    background: linear-gradient(45deg, #ff0000, #ff00ff, #0000ff, #00ff00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 3px;
    animation: rgbText 5s linear infinite;
}

@keyframes rgbText {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ===== گرید درس‌ها - مستطیلی ===== */
.courses-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 50px 0;
}

.course-row {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.course-row:hover {
    transform: translateX(20px) scale(1.02);
}

.course-box {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
}

/* border RGB متحرک */
.rgb-border {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    z-index: 1;
}

.rgb-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff00ff, #0000ff, #00ff00, #ffff00, #ff0000);
    background-size: 400% 400%;
    border-radius: 16px;
    z-index: -1;
    animation: rgbBorder 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.course-row:hover .rgb-border::before {
    opacity: 1;
}

@keyframes rgbBorder {
    0% { background-position: 0% 0%; }
    100% { background-position: 400% 0%; }
}

.course-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 20px currentColor);
    animation: iconRGB 3s infinite;
}

@keyframes iconRGB {
    0% { color: #ff0000; text-shadow: 0 0 30px #ff0000; }
    25% { color: #ff00ff; text-shadow: 0 0 30px #ff00ff; }
    50% { color: #0000ff; text-shadow: 0 0 30px #0000ff; }
    75% { color: #00ff00; text-shadow: 0 0 30px #00ff00; }
    100% { color: #ff0000; text-shadow: 0 0 30px #ff0000; }
}

.course-info {
    flex: 1;
}

.course-info h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.session-count {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.course-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.course-row:hover .course-glow {
    opacity: 1;
}

.row-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s;
}

.course-row:hover .row-shine {
    left: 150%;
}

/* ===== فوتر ===== */
.footer {
    text-align: center;
    margin-top: 80px;
    position: relative;
}

.rgb-bar {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff00ff, #0000ff, #00ff00, #ffff00);
    background-size: 500% 100%;
    animation: rgbBar 5s linear infinite;
    margin-bottom: 20px;
}

@keyframes rgbBar {
    0% { background-position: 0% 0%; }
    100% { background-position: 500% 0%; }
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== مودال ویدیو ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    border-color: #ff0000;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 30px #ff0000;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.rgb-gradient {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff0000, #ff00ff, #0000ff, #00ff00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rgbGradient 3s linear infinite;
}

@keyframes rgbGradient {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.session-indicator {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 0 10px #ff00ff;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    height: calc(100vh - 200px);
}

.video-wrapper {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    padding: 5px;
}

.video-player {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.sessions-panel {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.sessions-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff00ff, #0000ff, #00ff00);
    background-size: 400% 400%;
    border-radius: 21px;
    z-index: -1;
    animation: rgbBorder 3s linear infinite;
    opacity: 0.5;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: #fff;
}

.panel-header i {
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff;
}

.sessions-list {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100% - 70px);
}

.session-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-item:hover {
    background: rgba(255, 0, 255, 0.1);
    border-color: #ff00ff;
    transform: translateX(-5px);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

.session-item.active {
    background: rgba(255, 0, 255, 0.2);
    border-color: #ff00ff;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

/* ===== اسکرول بار ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff0000, #ff00ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff00ff, #0000ff);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .neon-title {
        font-size: 3rem;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .sessions-panel {
        max-height: 300px;
    }
    
    .course-info h2 {
        font-size: 1.5rem;
    }
    
    .course-icon {
        font-size: 2rem;
    }
}