* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    z-index: 1000;
    transition: transform 0.4s ease, background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
}

.navbar.hide {
    transform: translateY(-100%);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 3.5%;
    max-width: 1920px;
    margin: 0 auto;
}

.navbar-brand .logo {
    height: 36px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e50914;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #e50914;
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #fff;
    font-weight: 600;
}

.nav-link.premium-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #000;
    padding: 7px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.88rem;
}

.nav-link.premium-link::after {
    display: none;
}

.nav-link.premium-link:hover {
    background: linear-gradient(135deg, #ffb800, #ffd700);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255,215,0,0.4);
}

.navbar-actions {
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 6px 14px;
    transition: all 0.3s ease;
    min-width: 180px;
    border: 1px solid rgba(255,255,255,0.1);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.85rem;
    width: 100%;
    padding: 0 8px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.15);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 550px;
    display: flex;
    align-items: flex-end;
    padding: 0 4%;
    padding-bottom: 80px;
    overflow: hidden;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    z-index: 0;
    transition: opacity 1s ease;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, #0a0a0a 0%, rgba(10,10,10,0.7) 50%, transparent 100%);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 45%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 580px;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #e50914;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.9);
}

.hero-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #e5e5e5;
    max-width: 520px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    font-size: 0.9rem;
    color: #ddd;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-rating .fas {
    color: #ffd700;
}

.hero-buttons {
    display: flex;
    gap: 14px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #e50914, #c20812);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c20812, #e50914);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(229,9,20,0.5);
}

.btn-secondary {
    background: rgba(42, 42, 42, 0.85);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover {
    background: rgba(42, 42, 42, 0.95);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot:hover {
    background: rgba(255,255,255,0.7);
}

.hero-dot.active {
    background: #e50914;
    width: 28px;
    border-radius: 4px;
}

/* ===== Content Grid ===== */
.home-content {
    position: relative;
    z-index: 2;
    padding: 0 4%;
    margin-top: -70px;
    padding-top: 100px;
    padding-bottom: 50px;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

.content-row {
    margin-bottom: 45px;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.row-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

/* ===== Slider Container ===== */
.slider-container {
    position: relative;
}

.slider-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
}

/* ===== Content Cards ===== */
.content-card {
    position: relative;
    width: 100%;
    min-width: 165px;
    max-width: 165px;
    height: 248px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1a1a1a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.content-card:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(0,0,0,0.7);
    z-index: 10;
}

.card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.card-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(229, 9, 20, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.content-card:hover .card-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 700;
    border-radius: 3px;
    z-index: 2;
    pointer-events: none;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #ccc;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-rating .fas {
    color: #ffd700;
    font-size: 0.68rem;
}

/* ===== Loading ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,10,10,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Pagination ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 50px 4% 60px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 42px;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background: rgba(255,255,255,0.1);
    border-color: #e50914;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #e50914, #c20812);
    border-color: #e50914;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 8px;
    color: #666;
    font-weight: 600;
}

/* ===== Footer ===== */
.footer {
    background: #0a0a0a;
    padding: 35px 0 25px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 4%;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.35s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.social-icon.facebook:hover {
    background: #1877f2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.5);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.5);
}

.social-icon.tiktok:hover {
    background: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.social-icon.telegram:hover {
    background: #0088cc;
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.5);
}

.social-icon.telegram-group:hover {
    background: #229ED9;
    box-shadow: 0 8px 20px rgba(34, 158, 217, 0.5);
}

.social-icon.youtube:hover {
    background: #ff0000;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.5);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: #e50914;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
}

.footer-links .download-link i {
    font-size: 1.1rem;
}

.footer-bottom {
    margin-top: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.6;
}

.footer-bottom span {
    color: #e50914;
    font-weight: 600;
}

.footer-bottom .team {
    color: #e50914;
    font-weight: 700;
}

/* ✅✅✅ ===== COUPON MODAL CSS - مصحح 100% ===== ✅✅✅ */
/* ===== Modal Overlay Container (الحاوية الخارجية) ===== */
.modal-overlay {
    display: none; /* مخفي افتراضياً */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

/* ===== عند فتح Modal ===== */
.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== الخلفية السوداء مع Blur (::before) ===== */
.modal-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1;
}

/* ===== Coupon Modal Content (المحتوى) ===== */
.coupon-modal {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: rgba(20, 20, 20, 0.98);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    z-index: 2; /* فوق الخلفية */
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Modal Header ===== */
.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e50914, #b20710);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    margin-bottom: 15px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

.modal-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ===== Close Button (زر X) ===== */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3; /* فوق كل شيء */
}

.modal-close:hover {
    background: rgba(229, 9, 20, 0.8);
    transform: rotate(90deg);
}

/* ===== Modal Body (Form) ===== */
.coupon-form {
    padding: 30px 25px;
}

.form-group {
    margin-bottom: 20px;
}

.coupon-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.coupon-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-transform: none;
}

.coupon-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #e50914;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1);
}

/* ===== Submit Button ===== */
.btn-activate {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e50914, #b20710);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-activate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

.btn-activate:active {
    transform: translateY(0);
}

/* ✅ ===== RESPONSIVE COUPON MODAL ===== */
@media (max-width: 768px) {
    .coupon-modal {
        width: 95%;
        max-width: 450px;
    }
    
    .modal-header {
        padding: 25px 20px;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        margin-bottom: 12px;
    }
    
    .modal-header h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .modal-header p {
        font-size: 13px;
    }
    
    .coupon-form {
        padding: 25px 20px;
    }
    
    .coupon-input {
        padding: 12px 14px;
        font-size: 14px;
        letter-spacing: 1.5px;
    }
    
    .btn-activate {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .coupon-modal {
        width: 98%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 15px;
    }
    
    .modal-icon {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-header p {
        font-size: 12px;
    }
    
    .coupon-form {
        padding: 20px 15px;
    }
}

/* ===== Responsive Main ===== */
@media (max-width: 1024px) {
    .navbar-menu { gap: 20px; }
    .nav-link { font-size: 0.85rem; }
    .slider-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    }
    .content-card { 
        min-width: 145px; 
        max-width: 145px; 
        height: 218px; 
    }
    .hero-title { font-size: 2.5rem; }
    .hero-section { height: 75vh; min-height: 500px; }
}

@media (max-width: 768px) {
    .navbar-menu { gap: 12px; }
    .nav-link { font-size: 0.75rem; }
    .nav-link.premium-link { padding: 5px 11px; font-size: 0.75rem; }
    .search-box { min-width: 140px; padding: 5px 11px; }
    .search-input { font-size: 0.78rem; }
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 0.88rem; }
    .slider-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    }
    .content-card { 
        min-width: 125px; 
        max-width: 125px; 
        height: 188px; 
    }
    .card-play-icon { width: 50px; height: 50px; font-size: 20px; }
    .hero-section { height: 70vh; min-height: 450px; padding-bottom: 60px; }
    .home-content { margin-top: -55px; padding-top: 80px; }
    
    .pagination-container {
        gap: 6px;
        padding: 40px 4% 50px;
    }
    
    .pagination-btn {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-links .separator {
        display: none;
    }
}
