/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #302305;
    --bg-card: rgba(28, 28, 28, 0.6);
    --gold: #d4af37;
    --gold-light: #F1DE65;
    --gold-dark: #9F7312;
    --text-primary: #ffffff;
    --text-secondary: #000000;
    --border-radius: 20px;
    --border-radius-lg: 30px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgba(245, 240, 225, 0.055);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

[dir="rtl"] .nav-content {
    flex-direction: row-reverse;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #000;
    letter-spacing: 0.5px;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--gold-glow);
    border: 1px solid var(--gold);
    overflow: hidden;
}

.logo-circle img {
    width: 80%;
    height: auto;
}

.nav-menu {
    display: flex;
    border: 2px solid rgba(212, 175, 55, 1);
    align-items: center;
    gap: 40px;
    background: rgba(0, 0, 0, 0.979);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.nav-menu a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 0px 20px;
    border-radius: 25px;
    transition: var(--transition);
    font-size: 15px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
    border-radius: 25px;
}


.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}


.nav-menu a:hover::before,
.nav-menu a.active::before {
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row-reverse;
}

/* أزرار الإجراءات */
button {
    font-family: inherit;
    outline: none;
}

.btn-login {
    padding: 10px 15px;
    background: rgb(0, 0, 0);
    border: 2px solid rgba(212, 175, 55, 1);
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.btn-lang {
    padding: 10px 15px;
    background: rgb(0, 0, 0);
    border: 2px solid rgba(212, 175, 55, 1);
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.btn-login:hover,
.btn-lang:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

.lang-active {
    font-weight: 800;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    padding: 150px 0 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #9f7312 0%, #f1de65 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: #1c1b1b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==================== SERVICES GRID ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, 2fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== SERVICE CARD ==================== */
.service-card {
    background: rgb(249 247 247 / 80%);
    border: 3px solid #d4af37;
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.card-icon svg {
    color: #000;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.card-title {
    font-size: 30px;
    font-weight: 700;
    color: #a77c17;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

[dir="rtl"] .card-title {
    text-align: right;
}

.card-description {
    font-size: 15px;
    color: #000000;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

[dir="rtl"] .card-description {
    text-align: right;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    position: relative;
    z-index: 1;
}

.card-features li {
    font-size: 14px;
    color: #020202;
    padding: 8px 0;
    padding-right: 25px;
    position: relative;
    transition: var(--transition);
}

[dir="rtl"] .card-features li {
    padding-right: 0;
    padding-left: 25px;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 16px;
}

[dir="rtl"] .card-features li::before {
    right: auto;
    left: 0;
}

.service-card:hover .card-features li {
    color: #ddd;
    padding-right: 30px;
}

[dir="rtl"] .service-card:hover .card-features li {
    padding-right: 0;
    padding-left: 30px;
}

.card-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE - SERVICES ==================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .service-card {
        padding: 30px 25px;
    }

    .card-icon {
        width: 70px;
        height: 70px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon svg {
        width: 30px;
        height: 30px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-features li {
        font-size: 13px;
    }

    .card-button {
        padding: 10px 25px;
        font-size: 13px;
    }
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: #000000;
    padding: 80px 0 0;
    margin-top: 100px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer-contact {
    border-left: 2px solid var(--gold);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    text-align: left;
}

[dir="rtl"] .footer-contact {
    border-left: none;
    padding-left: 0;
    padding-right: 40px;
    text-align: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-value {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
}

.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.footer-text {
    color: #aaa;
    font-size: 15px;
    line-height: 1.8;
    max-width: 450px;
}

.footer-cta-title {
    font-size: 32px;
    background: linear-gradient(135deg, var(--gold) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.btn-book {
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.btn-book:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.5);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
    font-size: 16px;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #000;
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #222;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

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

.copyright {
    font-size: 12px;
    color: #444;
}
/* ==================== DECORATIVE ELEMENTS ==================== */
.decorative-circle {
    position: fixed;
    bottom: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

[dir="rtl"] .decorative-circle {
    right: auto;
    left: -200px;
}

.decorative-circle-2 {
    position: fixed;
    top: 100px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

[dir="rtl"] .decorative-circle-2 {
    left: auto;
    right: -150px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.7) translateY(10px);
        opacity: 0;
    }
    60% {
        transform: scale(1.05) translateY(-6px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.show {
    opacity: 1 !important;
}

/* ==================== RESPONSIVE DESIGN ==================== */
/* Tablets */
@media (max-width: 1024px) {
   .nav-menu {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        flex-direction: column;
        width: 90%;
        background: rgba(0, 0, 0, 0.95);
        padding: 30px;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        border: 1px solid var(--gold);
    }

    .nav-menu.open {
        opacity: 1;
        pointer-events: all;
        transform: translateX(-50%) translateY(0);
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: #000000;
        border-radius: 2px;
        transition: var(--transition);
    }


    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-actions {
        margin-left: auto;
    }

    .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-info {
        align-items: center;
    }

    .profile-header-top {
        justify-content: center;
    }

    .stat-item {
        align-items: center;
    }

    .profile-actions {
        justify-content: center;
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-contact {
        border-left: none;
        border-right: none;
        border-top: 2px solid rgba(212,175,55,0.2);
        padding: 25px 0 0 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .profile-header {
        padding: 100px 0 20px; /* تقليل المسافة العلوية */
    }

    /* تحويل الحاوية الرئيسية إلى شبكة (Grid) لسهولة الترتيب */
    .profile-content {
        display: grid;
        grid-template-columns: auto 1fr; /* عمود للصورة وعمود للباقي */
        gap: 15px 20px; /* مسافات بين العناصر */
        padding: 20px;
        max-width: 100%;
        border: none; /* إزالة الحدود لجعلها أنظف */
        border-radius: 0 0 25px 25px; /* تدوير الحواف من الأسفل فقط */
        align-items: start;
        margin-top: -20px;
    }

    /* خدعة سحرية: إلغاء صندوق "profile-info" 
       لجعل عناصره (الاسم، الاحصائيات، البايو) جزءاً من الشبكة الرئيسية
    */
    .profile-info {
        display: contents; 
    }

    /* 1. صورة البروفايل (أعلى اليسار/اليمين) */
    .profile-avatar-wrapper {
        grid-column: 1;
        grid-row: 1;
        width: 85px; /* حجم أصغر مناسب للجوال */
        height: 85px;
        margin: 0;
    }

    .profile-avatar {
        width: 85px;
        height: 85px;
        border-width: 2px; /* تخفيف سماكة الإطار */
    }

    .profile-gradient-ring {
        top: -4px; left: -4px; right: -4px; bottom: -4px;
        padding: 2px;
    }

    /* 2. الإحصائيات (بجانب الصورة) */
    .profile-stats {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: space-around; /* توزيع متساوي مثل انستغرام */
        align-items: center;
        height: 85px; /* نفس ارتفاع الصورة */
        width: 100%;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .stat-item {
        align-items: center !important; /* توسيط الرقم والكلمة */
        flex-direction: column;
        justify-content: center;
    }

    .stat-number {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
    }

    .stat-label {
        font-size: 13px;
        color: var(--text-secondary); /* أو اجعلها #aaa للوضوح */
    }
    
    /* في حالة اللغة العربية/الانجليزية تأكد من المحاذاة */
    [dir="rtl"] .stat-item { align-items: center; }

    /* 3. الاسم والتوثيق (سطر جديد تحت الصورة) */
    .profile-header-top {
        grid-column: 1 / -1; /* يأخذ العرض كامل */
        grid-row: 2;
        display: flex;
        flex-direction: column; /* الاسم فوق الزر الحصري */
        align-items: flex-start;
        gap: 5px;
        margin-top: 5px;
        width: 100%;
    }

    [dir="rtl"] .profile-header-top {
        align-items: flex-start; /* محاذاة لليمين في العربية */
    }

    .profile-username {
        margin-bottom: 2px;
    }

    .profile-username h1 {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
    }
    
    /* زر Exclusive يتم تصغيره ووضعه بجانب الاسم أو تحته */
    .btn-exclusive {
        padding: 4px 12px;
        font-size: 11px;
        margin-top: 2px;
    }

    /* 4. البايو/الوصف (تحت الاسم) */
    .profile-bio {
        grid-column: 1 / -1;
        grid-row: 3;
        font-size: 14px;
        line-height: 1.4;
        color: #ddd;
        max-width: 100%;
        text-align: left; /* محاذاة لليسار */
        margin-bottom: 15px;
    }

    [dir="rtl"] .profile-bio {
        text-align: right; /* محاذاة لليمين */
    }

    /* 5. الأزرار (أزرار الإجراءات في الأسفل) */
    .profile-actions {
        grid-column: 1 / -1;
        grid-row: 4;
        display: flex;
        width: 100%;
        gap: 8px;
        margin-top: 5px;
    }

    .btn-action-primary,
    .btn-action-secondary {
        flex: 1; /* الأزرار تأخذ عرض متساوي وتملأ الشاشة */
        text-align: center;
        justify-content: center;
        padding: 8px 0;
        font-size: 14px;
        border-radius: 8px; /* زوايا أقل انحناءً مثل التطبيق */
    }

    /* تعديلات إضافية لباقي العناصر في الموبايل */
    .navbar { width: 95%; }
    .mobile-menu-toggle { display: flex; }
    
    /* شبكة الكورسات */
    .courses-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودين للكورسات */
        gap: 10px;
        padding: 0 10px;
    }
    
    .course-image { height: 160px; }
    .section-title { font-size: 24px; }

    .footer-container {
        padding: 0 20px;
    }

    .footer-info {
        align-items: center;
        text-align: center;
    }

    .btn-book {
        align-self: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nav-content {
        gap: 30px;
    }

    .logo span {
        font-size: 18px;
    }


    .profile-username h1 {
        font-size: 20px;
    }

    .btn-action-primary,
    .btn-action-secondary {
        padding: 8px 18px;
        font-size: 13px;
    }

    .section-title {
        font-size: 22px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .course-image {
        height: 180px;
    }

    .course-title {
        font-size: 13px;
        min-height: auto;
    }

    .course-badge {
        font-size: 10px;
        padding: 4px 10px;
        top: 10px;
    }

    [dir="rtl"] .course-badge {
        right: 10px;
    }

    .course-price {
        font-size: 12px;
        padding: 5px 12px;
    }

    .play-button {
        width: 35px;
        height: 35px;
        bottom: 10px;
        right: 10px;
    }

    .play-button svg {
        width: 20px;
        height: 20px;
    }

    [dir="rtl"] .play-button {
        right: auto;
        left: 10px;
    }
}
@media (max-width: 380px) {
    .profile-avatar-wrapper, .profile-avatar { width: 75px; height: 75px; }
    .profile-stats { height: 75px; }
    .stat-number { font-size: 16px; }
    .stat-label { font-size: 11px; }
}
button {
    -webkit-tap-highlight-color: transparent;
}
/* ==================== VIDEO STYLES ==================== */
/* Course Video */
.course-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    border-radius: 0;
}

.course-thumbnail {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.course-thumbnail:hover {
    transform: scale(1.02);
}

/* Expand Video Button */
.expand-video-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.95);
    border: none;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 15;
}

[dir="rtl"] .expand-video-btn {
    right: auto;
    left: 15px;
}

.expand-video-btn:hover {
    transform: scale(1.1);
    background: var(--gold-light);
    box-shadow: 0 5px 20px rgba(212,175,55,0.5);
}

/* Video Popup Modal */
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.video-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.video-popup-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--gold);
    z-index: 10000;
    animation: slideUp 0.4s ease;
}

#popupVideo {
    width: 100%;
    height: auto;
    display: block;
}

.close-popup-btn {
    position: absolute;
    top: -50px;
    right: 0;
    width: 45px;
    height: 45px;
    background: var(--gold);
    border: none;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

[dir="rtl"] .close-popup-btn {
    right: auto;
    left: 0;
}

.close-popup-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--gold-light);
    box-shadow: 0 5px 20px rgba(212,175,55,0.6);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Video Styles */
@media (max-width: 768px) {
    .video-popup-content {
        width: 95%;
        border-radius: 15px;
    }

    .close-popup-btn {
        top: -45px;
        width: 40px;
        height: 40px;
    }

    .expand-video-btn {
        width: 35px;
        height: 35px;
    }

    .expand-video-btn svg {
        width: 18px;
        height: 18px;
    }
}