:root {
    --primary: #E50914;
    --primary-dark: #B20710;
    --secondary: #564D4D;
    --background: #0F0F0F;
    --surface-light: #2e0000;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --text-muted: #666666;
    --gradient-primary: linear-gradient(135deg, #E50914 0%, #B20710 100%);
    --gradient-dark: linear-gradient(180deg, rgba(15,15,15,0) 0%, rgba(15,15,15,1) 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.lang-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lang-modal {
    background: linear-gradient(145deg, #1a0a0a 0%, #0f0f0f 100%);
    padding: 48px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(229, 9, 20, 0.15);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 100px rgba(229, 9, 20, 0.1);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-overlay.active .lang-modal {
    transform: scale(1) translateY(0);
}


.lang-modal::before:hover {
    background: rgba(229, 9, 20, 0.1);
    color: var(--primary);
    transform: rotate(90deg);
}

.lang-modal h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #b3b3b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lang-modal .subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
}

.lang-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
}

.lang-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(229, 9, 20, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lang-btn:hover::before {
    opacity: 1;
}

.lang-btn:active {
    transform: translateY(0);
}

.lang-btn.active {
    background: rgba(229, 9, 20, 0.12);
    border-color: var(--primary);
    box-shadow: 
        0 0 0 1px var(--primary),
        0 8px 32px rgba(229, 9, 20, 0.25);
}

.lang-btn.active::after {
    content: 'âœ“';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.5);
}

.lang-btn .flag {
    font-size: 1.4rem;
    line-height: 1;
    filter: saturate(1.1);
    transition: transform 0.3s ease;
}

.lang-btn:hover .flag {
    transform: scale(1.1);
}

.lang-btn span:last-child {
    flex: 1;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.lang-btn[data-lang="he"],
.lang-btn[data-lang="ar"] {
    direction: rtl;
    text-align: right;
}

.lang-modal::-webkit-scrollbar {
    width: 6px;
}

.lang-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.lang-modal::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.3);
    border-radius: 3px;
}

.lang-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 9, 20, 0.5);
}

body.lang-modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}


@media (max-width: 768px) {
    .lang-modal {
        padding: 40px 28px;
        max-width: 500px;
    }
    
    .lang-modal h3 {
        font-size: 1.6rem;
    }
    
    .lang-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .lang-btn {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .lang-overlay {
        align-items: flex-end;
    }
    
    .lang-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 32px 24px;
        max-height: 85vh;
        transform: translateY(100%);
    }
    
    .lang-overlay.active .lang-modal {
        transform: translateY(0);
    }
    
    
    
    .lang-modal h3 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .lang-modal .subtitle {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }
    
    .lang-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .lang-btn {
        padding: 14px 18px;
        border-radius: 12px;
    }
    
    .lang-btn .flag {
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .lang-modal {
        padding: 28px 20px;
    }
    
    .lang-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-overlay.active .lang-btn {
    animation: slideIn 0.4s ease forwards;
}

.lang-overlay.active .lang-btn:nth-child(1) { animation-delay: 0.05s; }
.lang-overlay.active .lang-btn:nth-child(2) { animation-delay: 0.1s; }
.lang-overlay.active .lang-btn:nth-child(3) { animation-delay: 0.15s; }
.lang-overlay.active .lang-btn:nth-child(4) { animation-delay: 0.2s; }
.lang-overlay.active .lang-btn:nth-child(5) { animation-delay: 0.25s; }
.lang-overlay.active .lang-btn:nth-child(6) { animation-delay: 0.3s; }
.lang-overlay.active .lang-btn:nth-child(7) { animation-delay: 0.35s; }
.lang-overlay.active .lang-btn:nth-child(8) { animation-delay: 0.4s; }
.lang-overlay.active .lang-btn:nth-child(9) { animation-delay: 0.45s; }
.lang-overlay.active .lang-btn:nth-child(10) { animation-delay: 0.5s; }

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(180deg, rgba(15,15,15,0.95) 0%, rgba(15,15,15,0.8) 50%, transparent 100%);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15,15,15,0.98);
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 20px rgba(229,9,20,0.5));
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-box input {
    width: 240px;
    padding: 12px 16px 12px 44px;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    width: 300px;
    border-color: var(--primary);
    background: var(--surface-light);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: none;
    border-radius: 50px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.85rem;
}

.lang-toggle:hover {
    background: var(--primary);
}

.nav-icon {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.nav-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.user-menu {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.user-menu i {
    font-size: 1.2rem;
}

.user-menu:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(229,9,20,0.4);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    touch-action: none;
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}


.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(229, 9, 20, 0.2);
    touch-action: auto;
    pointer-events: all;
}

.mobile-menu.active {
    display: flex;
    transform: translateX(0);
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.mobile-search-box {
    position: relative;
    margin-bottom: 16px;
    order: -1;
}

.mobile-search-box input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.mobile-search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.mobile-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
    transform: translateX(8px);
}

.mobile-menu a:hover::before,
.mobile-menu a:active::before {
    transform: scaleY(1);
}

.mobile-menu a i {
    font-size: 1.3rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.mobile-menu a:hover i {
    transform: scale(1.1);
}

[dir="rtl"] .mobile-menu {
    transform: translateX(100%);
}

[dir="rtl"] .mobile-menu.active {
    transform: translateX(0);
}

[dir="rtl"] .mobile-menu a:hover,
[dir="rtl"] .mobile-menu a:active {
    transform: translateX(-8px);
}

[dir="rtl"] .mobile-menu a::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .mobile-search-box i {
    left: auto;
    right: 16px;
}

[dir="rtl"] .mobile-search-box input {
    padding: 16px 48px 16px 16px;
}

@media (max-width: 480px) {
    .mobile-menu {
        padding: 20px;
    }
    
    .mobile-menu a {
        padding: 16px 18px;
        font-size: 1rem;
    }
}

.mobile-menu-btn,
.mobile-menu,
.menu-overlay {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 8px;
    }
    
    .mobile-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(15, 15, 15, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
        padding: 24px;
        flex-direction: column;
        gap: 8px;
        z-index: 999;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid rgba(229, 9, 20, 0.2);
    }
    
    .mobile-menu.active {
        display: flex !important;
        transform: translateX(0);
    }
    
    .menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
        z-index: 998;
    }
    
    .menu-overlay.active {
        display: block !important;
    }
    
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
        touch-action: none;
    }
    
    .mobile-menu a {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 18px 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        color: var(--text-primary);
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 600;
        font-family: 'Outfit', sans-serif;
        transition: all 0.3s ease;
    }
    
    .mobile-menu a i {
        font-size: 1.3rem;
        color: var(--primary);
    }
    
    .mobile-menu a:hover {
        background: rgba(229, 9, 20, 0.1);
        border-color: rgba(229, 9, 20, 0.3);
        transform: translateX(8px);
    }

    .mobile-search-box {
        display: block;
        position: relative;
        margin-bottom: 16px;
    }
    
    .mobile-search-box input {
        width: 100%;
        padding: 16px 16px 16px 48px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: var(--text-primary);
        font-size: 1rem;
    }
    
    .mobile-search-box i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 1.1rem;
    }
}

.mobile-menu a:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.4);
}

.mobile-menu a i {
    color: var(--primary);
    font-size: 1.2rem;
}


.mobile-search-box input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(46, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.mobile-search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(46, 0, 0, 0.6);
}

.mobile-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 0 4% 120px;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--text-primary);
    color: var(--background);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 3;
}



.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-slider {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        transparent 0%, 
        transparent 50%, 
        rgba(15, 15, 15, 0.7) 80%,
        var(--background) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 140px;
    left: 4%;
    max-width: 600px;
    z-index: 3;
}



.hero-controls {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.hero-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.hero-btn:active {
    transform: scale(0.95);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-dot:not(.active) {
    width: 8px;
}

.hero-dot.active {
    width: 32px;
    background: var(--primary);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
}

.hero-dot.active::before {
    opacity: 1;
}

.hero-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}



.quick-categories {
    position: relative;
    padding: 20px 4% 40px;
    margin-top: -100px;
    z-index: 20;
    background: transparent; 
    border-top: none;
    overflow: hidden;
}

.category-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 4px 10px;
    margin-right: -4%;
    padding-right: 4%;
    mask-image: linear-gradient(
        to right, 
        transparent, 
        black 20px, 
        black calc(100% - 40px), 
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right, 
        transparent, 
        black 20px, 
        black calc(100% - 40px), 
        transparent
    );
}

[dir="rtl"] .category-nav {
    margin-right: 0;
    margin-left: -4%;
    padding-right: 4px;
    padding-left: 4%;
    mask-image: linear-gradient(
        to left, 
        transparent, 
        black 20px, 
        black calc(100% - 40px), 
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to left, 
        transparent, 
        black 20px, 
        black calc(100% - 40px), 
        transparent
    );
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(
        135deg, 
        rgba(229, 9, 20, 0.15) 0%, 
        rgba(229, 9, 20, 0.05) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(229, 9, 20, 0.25);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cat-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(229, 9, 20, 0.3) 0%, 
        rgba(229, 9, 20, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cat-pill i {
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--primary);
}

.cat-pill:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 9, 20, 0.6);
    box-shadow: 
        0 12px 40px rgba(229, 9, 20, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cat-pill:hover::before {
    opacity: 1;
}

.cat-pill:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(229, 9, 20, 0.8));
}

.cat-pill:active {
    transform: translateY(-1px);
}

.cat-pill#israeliCatPill {
    background: linear-gradient(
        135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(59, 130, 246, 0.05) 100%
    );
    border-color: rgba(59, 130, 246, 0.3);
}

.cat-pill#israeliCatPill i {
    color: #60a5fa;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

.cat-pill#israeliCatPill:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
}



@media (max-width: 768px) {
    .hero {
        height: 75vh;
        min-height: 550px;
    }
    
    .hero-content {
        position: absolute;
        bottom: 140px;
        left: 4%;
        right: 4%;
        max-width: 100%;
        text-align: center; 
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem !important; 
        line-height: 1.2;
        margin-bottom: 12px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    }
    
    .hero-desc {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        max-width: 100%;
        margin-bottom: 20px;
        color: rgba(255,255,255,0.9);
    }
    
    .hero-buttons {
        flex-direction: row; 
        gap: 10px;
        justify-content: center;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
        flex: 1; 
        max-width: 140px;
    }
    
    .hero-controls {
        bottom: 80px;
        padding: 10px 20px;
        gap: 15px;
    }
    
    .hero-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .hero-dot {
        height: 6px;
    }
    
    .hero-dot.active {
        width: 24px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content {
        bottom: 160px;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .hero-desc {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
        max-width: 120px;
    }
    
    .hero-buttons {
        gap: 8px;
    }

    .cat-pill {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .cat-pill i {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .hero-content {
        left: 4%;
        right: 4%;
        text-align: center;
    }
}

.cat-pill:nth-child(1) { animation-delay: 0.1s; }
.cat-pill:nth-child(2) { animation-delay: 0.15s; }
.cat-pill:nth-child(3) { animation-delay: 0.2s; }
.cat-pill:nth-child(4) { animation-delay: 0.25s; }
.cat-pill:nth-child(5) { animation-delay: 0.3s; }
.cat-pill:nth-child(6) { animation-delay: 0.35s; }
.cat-pill:nth-child(7) { animation-delay: 0.4s; }

.category-nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition);
}

.cat-pill i {
    color: var(--primary);
    font-size: 1rem;
}

.cat-pill:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.content-wrapper {
    padding: 40px 4% 80px;
}

.content-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.see-all:hover {
    gap: 12px;
    color: var(--text-primary);
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.content-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    opacity: 0;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.carousel-btn.prev {
    left: -24px;
}

.carousel-btn.next {
    right: -24px;
}

.content-card {
    position: relative;
    flex: 0 0 auto;
    width: 200px;
    aspect-ratio: 2/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    scroll-snap-align: start;
}

.content-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.content-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: var(--shadow-lg);
    z-index: 5;
}

.content-card:hover::before {
    opacity: 1;
}

.content-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.content-card:hover img {
    transform: scale(1.1);
}

.card-rating {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.card-rating i {
    color: #FFD700;
    font-size: 0.75rem;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    transform: translateY(100%);
    transition: var(--transition);
}

.content-card:hover .card-info {
    transform: translateY(0);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(229,9,20,0.5);
}

.content-card:hover .card-play {
    transform: translate(-50%, -50%) scale(1);
}


.shimmer-card {
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.shimmer-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.footer {
    padding: 40px 4%;
    border-top: 1px solid var(--surface-light);
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-brand i {
    color: var(--primary);
}


@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .search-box input {
        width: 180px;
    }
    
    .search-box input:focus {
        width: 220px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 4%;
    }
    
    .search-box {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .mobile-search-box {
        display: block;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .content-wrapper {
        padding: 30px 4% 60px;
    }
    
    .content-card {
        width: 160px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 1.4rem;
    }
    
    .lang-toggle span {
        display: none;
    }
    
    .cat-pill {
        padding: 12px 18px;
        font-size: 0.85rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .content-card {
        width: 140px;
    }
}




[dir="rtl"] body {
    font-family: 'Heebo', sans-serif;
}

[dir="rtl"] .navbar {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-brand {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .section-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .see-all {
    flex-direction: row-reverse;
}

[dir="rtl"] .see-all i {
    transform: rotate(180deg);
}

[dir="rtl"] .category-nav {
    direction: rtl;
}

[dir="rtl"] .content-card {
    direction: rtl;
}

[dir="rtl"] .card-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}


.continue-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.continue-content {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 450px;
    border: 1px solid var(--surface-light);
}

.continue-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.continue-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.continue-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-continue {
    padding: 14px 28px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-continue:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-start-over {
    padding: 14px 28px;
    background: transparent;
    border: 2px solid var(--surface-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-start-over:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.episode-btn.watched {
    border-color: var(--success, #22c55e);
    opacity: 0.7;
}

.episode-btn.watched .episode-number {
    color: var(--success, #22c55e);
}

.episode-btn.current {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(229,9,20,0.3);
}

.watched-icon, .current-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7rem;
    color: var(--success);
}

[dir="rtl"] .watched-icon, [dir="rtl"] .current-icon {
    right: auto;
    left: 5px;
}

@media (max-width: 768px) {
    [dir="rtl"] .navbar {
        flex-direction: row;
    }
    
    [dir="rtl"] .hero-content {
        text-align: center;
    }
}

#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at bottom, #1a0000 0%, #000000 100%);
}

.star-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

@media (min-width: 769px) {
    .carousel-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        width: 44px;
        height: 44px;
        background: rgba(15, 15, 15, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 10;
        top: 50%;
        transform: translateY(-50%);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
    }
    
    .carousel-btn:hover {
        background: var(--primary);
        border-color: var(--primary);
        transform: translateY(-50%) scale(1.1);
    }
    
    .carousel-btn:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .carousel-btn.prev {
        left: 0;
    }
    
    .carousel-btn.next {
        right: 0;
    }
    
    .carousel-btn i {
        font-size: 1rem;
        color: white;
        transition: transform 0.2s ease;
    }
    
    .carousel-btn:hover i {
        transform: scale(1.2);
    }
}


@media (max-width: 768px) {
    .carousel-btn {
        display: none !important;
    }
}


* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

.close-modal::before, 
.close-modal::after {
    content: none !important;
}


.lang-modal {
    position: relative;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #a3a3a3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    font-size: 1.2rem;
    line-height: 1;
}

.close-modal:hover {
    background: #E50914;
    color: white;
    transform: rotate(90deg);
    border-color: #E50914;
}

[dir="rtl"] .close-modal {
    right: auto;
    left: 16px;
}








.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    touch-action: none; 
}

.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #E50914;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    -webkit-tap-highlight-color: transparent; 
}

.chat-toggle:active {
    transform: scale(0.95);
}

.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #fff;
    color: #E50914;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
}


.chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background: #141414;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.chat-container.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.chat-header {
    background: #E50914;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-title i {
    font-size: 1.2rem;
    color: white;
}

.chat-title-text h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.chat-title-text span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.9);
}

.chat-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0f0f0f;
    -webkit-overflow-scrolling: touch; 
}

.message {
    display: flex;
    gap: 8px;
    max-width: 90%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E50914;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: #E50914;
    color: white;
}

.message-content {
    background: rgba(255,255,255,0.1);
    padding: 10px 14px;
    border-radius: 18px;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.user .message-content {
    background: #E50914;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot .message-content {
    background: rgba(255,255,255,0.08);
    border-bottom-left-radius: 4px;
}

.loading-dots {
    display: flex;
    gap: 4px;
    padding: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: #E50914;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-input-area {
    padding: 12px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.quick-chips {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-chips::-webkit-scrollbar {
    display: none;
}

.quick-chips button {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

#chatInput {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 10px 16px;
    color: #fff;
    font-size: 16px; 
    outline: none;
    -webkit-appearance: none;
}

#chatInput:focus {
    border-color: #E50914;
}

#sendBtn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E50914;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


@media (max-width: 768px) {
    .chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .chat-container {
        position: fixed;
        bottom: 80px;
        right: 10px;
        left: 10px;
        width: auto; 
        max-width: 100%;
        height: 60vh;
        max-height: 500px;
    }
    
    .chat-messages {
        padding: 12px;
    }
    
    .message-content {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .chat-container {
        height: 65vh;
        bottom: 70px;
    }
    
    .quick-chips button {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

[dir="rtl"] .chat-widget {
    right: auto;
    left: 20px;
}

[dir="rtl"] .chat-container {
    right: auto;
    left: 0;
}

@media (max-width: 768px) {
    [dir="rtl"] .chat-widget {
        left: 15px;
        right: auto;
    }
    
    [dir="rtl"] .chat-container {
        left: 10px;
        right: 10px;
    }
}