/* Vexoria Redesign: Cyber Purple & Black */
:root {
    --primary-purple: #bc13fe;
    --deep-purple: #7b1fa2;
    --true-black: #050505;
    --midnight-black: #0a0a0f;
    --glass-bg: rgba(188, 19, 254, 0.05);
    --glass-border: rgba(188, 19, 254, 0.2);
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --royal-gold: #ffcc00;
    --pure-white: #ffffff;
    --glow-shadow: 0 0 20px rgba(188, 19, 254, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Scroll */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--true-black);
    color: var(--text-main);
    font-family: 'Cairo', 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--true-black);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 10px;
}

/* Glassmorphism Utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Header & Nav */
.navbar-redesigned-top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-smooth);
    background: #000000 !important; /* Force Solid Black Everywhere */
    background-image: none !important;
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo-middle, .nav-logo-middle a, .navbar-logo-img {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar-redesigned-top.scrolled {
    background: #000000 !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container-flex {
    display: flex !important;
    justify-content: space-between !important;
    flex-direction: row !important; /* Strictly horizontal */
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
    flex-wrap: nowrap !important; /* NO WRAPPING */
}

@media (max-width: 768px) {
    .nav-container-flex {
        padding: 0 12px;
        height: 60px; /* Fixed height for clean row */
    }
    
    .navbar-redesigned-top {
        padding: 0;
        background: rgba(5, 5, 5, 0.4); /* Subtle glass early on */
        height: 60px;
    }
}

/* Mobile Bottom Nav (App Feel) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0px;
    width: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 1001;
    padding: 12px 0;
    justify-content: space-around;
    align-items: center;
    border-radius: 25px 25px 0 0;
}

@media (max-width: 768px) {
    .navbar-redesigned {
        padding: 0.8rem 0; /* Compact padding for mobile */
    }
}

.nav-item {
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}

.nav-item i {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 4px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-purple);
    object-fit: cover;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .user-avatar {
        width: 35px !important;
        height: 35px !important;
        border-width: 1px !important;
    }
}

.user-dropdown.active {
    display: flex;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-bottom: 5px;
    text-align: center;
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-list li {
    margin-bottom: 5px;
}

.dropdown-list li a, .dropdown-list li.plan-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.dropdown-list li a:hover {
    background: rgba(188, 19, 254, 0.15);
    color: var(--primary-purple);
    transform: translateX(-5px);
}

.dropdown-list li i {
    color: var(--primary-purple);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.plan-info b {
    color: #ff9800; /* Gold/Orange for plan name */
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

/* Hero Section */
.hero-new {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-image: url('../assets/images/hero-home.jpg');
    background-size: cover;
    background-position: center top; /* Anchored to top to keep head visible on desktop */
    background-repeat: no-repeat;
}

.hero-video-new {
    position: absolute;
    top: 0; /* Anchored to top */
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%); /* Centered horizontally only */
    z-index: -1;
    filter: brightness(0.5) saturate(1.1);
}

.hero-overlay-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--true-black) 10%, transparent 100%);
    z-index: 0;
}

.hero-content-new {
    position: absolute;
    bottom: 210px; /* Above the Google Play button */
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.hero-main-title {
    font-size: clamp(2.2rem, 7vw, 4rem); /* Slightly smaller for bottom tight layout */
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Static professional shadow */
    font-family: 'Cairo', sans-serif;
}

@keyframes neonGlow {
    0% { text-shadow: 0 0 10px rgba(188, 19, 254, 0.8), 0 0 20px var(--primary-purple); color: #fff; }
    50% { text-shadow: 0 0 20px var(--royal-gold), 0 0 40px var(--royal-gold), 0 0 60px rgba(255, 204, 0, 0.4); color: #fff; }
    100% { text-shadow: 0 0 15px var(--primary-purple), 0 0 30px var(--deep-purple); color: #fff; }
}

.hero-main-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* App Store Buttons (CSS Replicas) - Repositioned to Bottom */
.hero-app-links {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    z-index: 10;
    width: 100%;
    text-align: center;
}

.btn-google-register-cyber {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-purple), var(--deep-purple));
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 10px 28px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 25px rgba(188, 19, 254, 0.4);
    min-width: 250px; /* Increased slightly for spacing */
    text-align: right;
    font-family: 'Cairo', sans-serif;
    gap: 20px; /* Modern spacing */
    justify-content: center;
}

.btn-google-register-cyber i {
    font-size: 2.2rem;
    color: white;
}

.btn-google-register-cyber .btn-text {
    display: flex;
    flex-direction: column;
}

.btn-google-register-cyber .small-text {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.9;
}

.btn-google-register-cyber .large-text {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.btn-google-register-cyber:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 45px var(--royal-gold);
    border-color: var(--royal-gold);
    background: linear-gradient(135deg, var(--deep-purple), #000);
}

.store-btn {
    display: flex;
    align-items: center;
    background: #000;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    padding: 8px 22px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 170px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.store-btn i {
    font-size: 1.8rem;
    margin-right: 12px;
}

.store-btn .store-text {
    display: flex;
    flex-direction: column;
}

.store-btn .small {
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
}

.store-btn .large {
    font-size: 1.1rem;
    font-weight: 600;
}

.store-btn:hover {
    background: #111;
    border-color: var(--primary-purple);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(188, 19, 254, 0.3);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: fadeInUp 1s ease 2s both;
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background: var(--royal-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    20% { opacity: 1; }
    80% { opacity: 0; transform: translateX(-50%) translateY(15px); }
    100% { opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 0.7; transform: translate(-50%, 0); }
}

.hero-logo-new {
    width: 250px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px var(--primary-purple));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-title-new {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, #fff, var(--primary-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .hero-logo-new {
        width: 120px !important; /* Force smaller logo on all phones */
        margin-bottom: 1rem;
    }
    .hero-title-new {
        font-size: 1.6rem !important; /* Prevents text overflow disaster */
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    .hero-subtitle-new {
        font-size: 0.8rem !important;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }
    .user-name-nav {
        display: none !important; /* HIDE NAME */
    }
}

.hero-subtitle-new {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.more-btn-custom.minimalist {
    width: 45px; /* Slightly more compact */
    height: 45px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(188, 19, 254, 0.15); /* More visible */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(188, 19, 254, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1002; /* ALWAYS ON TOP */
    transition: var(--transition-smooth);
    animation: orbPulse 3s infinite ease-in-out;
}

@keyframes orbPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(188, 19, 254, 0.2); border-color: rgba(188, 19, 254, 0.4); }
    50% { box-shadow: 0 0 20px rgba(188, 19, 254, 0.5); border-color: rgba(188, 19, 254, 0.8); }
}

.more-btn-custom.minimalist span {
    font-size: 1.4rem;
    color: var(--primary-purple);
    text-shadow: 0 0 15px var(--primary-purple);
    transition: var(--transition-smooth);
}

.more-btn-custom.minimalist:hover {
    transform: scale(1.15) rotate(90deg);
    border-color: var(--primary-purple);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.7);
    background: rgba(188, 19, 254, 0.25);
    animation: none; /* Stop pulse on hover */
}

.more-btn-custom.minimalist:hover span {
    transform: rotate(-90deg); /* Counter-rotate icon for cool effect */
    color: white;
}

.btn-outline-cyber {
    background: transparent;
    border: 1px solid var(--primary-purple);
    color: white;
}

.btn-outline-cyber:hover {
    background: var(--primary-purple);
    color: white;
}

/* Section Styling */
.section-new {
    padding: 100px 0;
    position: relative;
}

.container-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-head {
    margin-bottom: 60px;
    text-align: center;
}

.section-tag {
    color: var(--primary-purple);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
}

.section-title-new {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Features Grid */
.features-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .section-new {
        padding: 60px 0;
    }
    .section-title-new {
        font-size: 1.8rem;
    }
    .features-grid-new {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.feature-card-new {
    padding: 40px;
    border-radius: 24px;
    background: rgba(188, 19, 254, 0.03);
    border: 1px solid rgba(188, 19, 254, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.feature-card-new:hover {
    background: rgba(188, 19, 254, 0.07);
    border-color: var(--primary-purple);
    transform: translateY(-10px);
}

.feature-card-new:hover::before {
    transform: translateX(100%);
}

.feature-card-new i {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    display: block;
}

/* Gallery Glass */
.gallery-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item-new {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 350px;
    cursor: pointer;
}

.gallery-item-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item-new:hover img {
    transform: scale(1.1);
}

.gallery-overlay-new {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item-new:hover .gallery-overlay-new {
    opacity: 1;
}

/* Footer (Studio Look) */
.footer-new {
    padding: 80px 0 40px;
    background: #08080d;
    border-top: 1px solid rgba(188, 19, 254, 0.1);
}

.footer-content-new {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column h4 {
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: white;
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    color: #444;
    font-size: 0.8rem;
}

/* Sidebar / Drawer Redesign (Professional Animation) */
.sidebar-redesigned {
    position: fixed;
    top: 0;
    left: -100%; /* Hidden on left */
    width: 300px;
    max-width: 85%; /* Responsive width for mobile */
    height: 100vh;
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(25px) saturate(1.5);
    -webkit-backdrop-filter: blur(25px) saturate(1.5);
    z-index: 2000;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* Professional smooth easing */
    border-right: 1px solid var(--glass-border);
    padding: 80px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center links vertically */
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.8);
    transform: translateX(-100%);
    left: 0; /* Align to zero, use transform for movement */
}

.sidebar-redesigned.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
    opacity: 0;
    backdrop-filter: blur(0px);
    transition: all 0.5s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
    backdrop-filter: blur(8px);
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.sidebar-close {
    font-size: 2rem;
    color: var(--primary-purple);
    cursor: pointer;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.sidebar-redesigned.open .sidebar-links li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Delay for Links - Tightened for snappier feel */
.sidebar-redesigned.open .sidebar-links li:nth-child(1) { transition-delay: 0.10s; }
.sidebar-redesigned.open .sidebar-links li:nth-child(2) { transition-delay: 0.15s; }
.sidebar-redesigned.open .sidebar-links li:nth-child(3) { transition-delay: 0.20s; }
.sidebar-redesigned.open .sidebar-links li:nth-child(4) { transition-delay: 0.25s; }
.sidebar-redesigned.open .sidebar-links li:nth-child(5) { transition-delay: 0.30s; }
.sidebar-redesigned.open .sidebar-links li:nth-child(6) { transition-delay: 0.35s; }

.sidebar-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar-links li a .nav-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(188, 19, 254, 0.4));
    transition: all 0.3s ease;
}

.sidebar-links li a:hover {
    background: rgba(188, 19, 254, 0.1);
    border-color: rgba(188, 19, 254, 0.2);
    transform: translateX(-5px);
}

.sidebar-links li a:hover .nav-icon-img {
    filter: drop-shadow(0 0 10px var(--primary-purple));
    transform: scale(1.1);
}

/* User Dropdown Icons */
.drop-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 8px; /* For RTL */
    filter: drop-shadow(0 0 5px rgba(188, 19, 254, 0.3));
}

[dir="ltr"] .sidebar-links li a:hover {
    transform: translateX(5px);
}

/* RTL Support for Arabic */
[dir="rtl"] .btn-cyber i {
    transform: scaleX(-1);
}

[dir="rtl"] .section-tag {
    letter-spacing: 0;
}

/* --- Subscription Plans Modal (Cinematic Upgrade) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.plans-modal {
    width: 100%;
    max-width: 1300px;
    max-height: 90vh;
    padding: 50px 20px;
    border-radius: 30px;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--glass-border);
    animation: modalSlideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(10, 10, 15, 0.8);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    padding: 10px;
}

@media (max-width: 600px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.plan-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Tier Glows (Ambient) */
.tier-starter { --tier-color: #cd7f32; }
.tier-persevering { --tier-color: #5d9cec; }
.tier-gold { --tier-color: #ffd700; }
.tier-legendary { --tier-color: #bc13fe; }

.plan-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--tier-color), transparent 70%);
    opacity: 0.05;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.plan-card:hover::before {
    opacity: 0.15;
}

.plan-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--tier-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--tier-color), 0.2);
}

.plan-card img {
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plan-card:hover img {
    transform: scale(1.1) rotate(3deg);
}

.plan-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
    z-index: 1;
}

.plan-price {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--tier-color);
    margin-bottom: 5px;
    z-index: 1;
    letter-spacing: -1px;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    z-index: 1;
}

/* Cyber Button Upgrade */
.btn-subscribe {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid var(--tier-color);
    background: transparent;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.btn-subscribe:hover {
    background: var(--tier-color);
    color: var(--true-black);
    box-shadow: 0 0 20px var(--tier-color);
    transform: translateY(-2px);
}

/* Legendary Pulse */
.tier-legendary.featured {
    border-width: 2px;
    animation: legendaryGlow 3s infinite alternate;
}

@keyframes legendaryGlow {
    from { box-shadow: 0 0 10px rgba(188, 19, 254, 0.1); }
    to { box-shadow: 0 0 35px rgba(188, 19, 254, 0.4); }
}

/* Weekly Payout Badge (Ultra Small) */
.weekly-payout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 5px; /* Reduced to fit gifts */
    border: 1px solid rgba(var(--tier-color), 0.08);
    z-index: 1;
}

/* Exclusive Gift Badge */
.plan-gift {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(var(--tier-color), 0.1);
    padding: 6px 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--tier-color), 0.3);
    z-index: 1;
    transition: var(--transition-smooth);
    width: 90%;
}

.plan-gift i {
    color: #ff9800; /* Gold gift icon */
    font-size: 0.8rem;
    filter: drop-shadow(0 0 5px rgba(255, 152, 0, 0.5));
}

.plan-gift span {
    font-size: 0.75rem;
    color: var(--text-main);
    text-align: center;
}

.plan-card:hover .plan-gift {
    transform: scale(1.05);
    background: rgba(var(--tier-color), 0.2);
    border-color: var(--tier-color);
}

/* Info Badge (Rewards/Payouts) */
.info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    padding: 2px 10px;
    border-radius: 8px;
    margin-bottom: 5px; /* Reduced for multiple items */
    border: 1px solid rgba(var(--tier-color), 0.1);
    z-index: 1;
    transition: var(--transition-smooth);
}

.plan-card:hover .info-badge {
    background: rgba(var(--tier-color), 0.08);
    border-color: var(--tier-color);
}

.badge-icon {
    width: 16px !important;
    height: 16px !important;
    object-fit: contain;
    margin: 0;
    margin-top: 10px; /* Aligned as per user preference */
}

.info-badge span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.info-badge b {
    color: var(--tier-color);
    font-weight: 800;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--tier-color);
    color: var(--true-black);
    padding: 6px 45px;
    font-size: 0.8rem;
    font-weight: 900;
    transform: rotate(45deg);
    z-index: 2;
}

/* ============================================= */
/*  NUCLEAR MOBILE OVERRIDE - KILLS ALL LEGACY   */
/*  This block MUST stay at the bottom of this   */
/*  file to override styles.css completely.      */
/* ============================================= */

/* 1. KILL HORIZONTAL SCROLL */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* 2. KILL ALL LEGACY NAVBAR STYLES on our new nav */
nav.navbar-redesigned-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    display: block !important;
    padding: 8px 0 !important;
    background: linear-gradient(to left, 
        rgba(255, 255, 255, 0.1) 45%, 
        var(--royal-gold) 45%, 
        var(--royal-gold) 45.2%, 
        var(--primary-purple) 54.8%, 
        var(--primary-purple) 55%, 
        rgba(5, 5, 5, 0.8) 55%
    ) !important; /* Sharp thematic split */
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

nav.navbar-redesigned-top.scrolled {
    background: rgba(5, 5, 5, 0.92) !important;
    padding: 5px 0 !important;
}

/* 3. FORCE NAVBAR ROW LAYOUT */
nav.navbar-redesigned-top .nav-container-flex {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    margin: 0 !important;
    height: 50px !important;
}

/* 4. AUTH WRAPPER: STICK TO RIGHT (first child in RTL) */
nav.navbar-redesigned-top .nav-auth-wrapper {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

nav.navbar-redesigned-top .nav-auth-wrapper .auth-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* 5. LOGIN BUTTON: Compact on mobile */
nav.navbar-redesigned-top .google-btn {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    border-radius: 50px !important;
    gap: 6px !important;
}

nav.navbar-redesigned-top .google-btn img {
    width: 16px !important;
    height: 16px !important;
}

/* 6. AVATAR: Small and aligned */
nav.navbar-redesigned-top .user-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 2px solid var(--primary-purple) !important;
    object-fit: cover !important;
    display: block !important;
    background: #000 !important;
}

/* 7. HIDE USERNAME ON MOBILE */
@media (max-width: 900px) {
    nav.navbar-redesigned-top .user-name-nav,
    nav.navbar-redesigned-top #user-name-display {
        display: none !important;
    }
}

/* 8. MENU BUTTON: ALWAYS VISIBLE */
nav.navbar-redesigned-top .nav-menu-wrapper {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

nav.navbar-redesigned-top .nav-menu-wrapper .more-btn-custom {
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 100000 !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
}

nav.navbar-redesigned-top .nav-menu-wrapper .more-btn-custom:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

nav.navbar-redesigned-top .nav-menu-wrapper .more-btn-custom span {
    font-size: 1.5rem !important;
    color: var(--primary-purple) !important;
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.4) !important;
}

/* 9. USER DROPDOWN - Position correctly */
nav.navbar-redesigned-top .user-dropdown {
    position: absolute !important;
    top: 50px !important;
    right: 0 !important;
    left: auto !important;
    width: 240px !important;
    padding: 15px !important;
    border-radius: 18px !important;
    z-index: 100001 !important;
    display: none;
    flex-direction: column !important;
    gap: 10px !important;
    background: rgba(10, 10, 15, 0.97) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid var(--primary-purple) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
}

nav.navbar-redesigned-top .user-dropdown.active {
    display: flex !important;
}

/* 10. MOBILE HERO SCALING */
@media (max-width: 768px) {
    .hero-logo-new {
        width: 120px !important;
        margin-bottom: 1rem !important;
    }
    .hero-title-new {
        font-size: 1.5rem !important;
        line-height: 1.15 !important;
        margin-bottom: 0.8rem !important;
    }
    .hero-subtitle-new {
        font-size: 0.8rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 10px !important;
    }
    .btn-cyber {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }
    .section-new {
        padding: 50px 0 !important;
    }
    .section-title-new {
        font-size: 1.6rem !important;
    }
    .features-grid-new {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .feature-card-new {
        padding: 25px !important;
    }
    .gallery-grid-new {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .gallery-item-new {
        height: 200px !important;
    }
    .footer-content-new {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .about-container {
        flex-direction: column !important;
    }
}

/* 11. MOBILE SUBSCRIPTION PLANS */
@media (max-width: 600px) {
    .plans-modal {
        padding: 50px 10px 20px !important;
        border-radius: 15px !important;
    }
    .plans-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .plan-card img {
        width: 80px !important;
        height: 80px !important;
    }
}

@media (min-width: 450px) and (max-width: 600px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* --- Subscription Plans Modal (Restored) --- */
.modal-overlay-custom {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-overlay-custom.active {
    display: flex;
}

.plans-modal-content {
    background: rgba(15, 15, 20, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 1100px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.close-plans {
    position: absolute;
    top: 25px; right: 25px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-plans:hover { color: #fff; }

.plans-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 40px;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.plan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 30px 40px;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.badge-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.plan-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-purple);
    background: rgba(188, 19, 254, 0.05);
}

.plan-card.featured {
    border-color: var(--royal-gold);
    background: rgba(255, 204, 0, 0.03);
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.1);
    transform: scale(1.02);
}

.plan-card.gold-premium {
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.03);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
    transform: scale(1.05);
    animation: goldGlow 3s infinite alternate;
}

@keyframes goldGlow {
    from { box-shadow: 0 0 20px rgba(0, 229, 255, 0.1); }
    to { box-shadow: 0 0 50px rgba(0, 229, 255, 0.3); }
}

.plan-card.featured:hover { transform: scale(1.02) translateY(-15px); }
.plan-card.gold-premium:hover { transform: scale(1.05) translateY(-15px); }

.plan-card img {
    width: 100px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.plan-card h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 10px;
    font-family: 'Cairo', sans-serif;
}

.plan-card .price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--royal-gold);
    margin-bottom: 25px;
}

.plan-card .price span {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 400;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    width: 100%;
    text-align: right;
}

.features-list li {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: var(--royal-gold);
    font-size: 0.8rem;
}

.plan-card.gold-premium .features-list li i {
    color: #00e5ff;
}

.btn-buy {
    background: linear-gradient(45deg, var(--primary-purple), var(--deep-purple));
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    color: white;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    width: 100%;
    margin-top: auto;
}

.plan-card.featured .btn-buy {
    background: linear-gradient(45deg, #ffcc00, #ff9900);
    color: #000;
}

.plan-card.gold-premium .btn-buy {
    background: linear-gradient(45deg, #00e5ff, #0099ff);
    color: #000;
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

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

@media (max-width: 1100px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .plans-modal-content {
        max-width: 700px;
    }
}

@media (max-width: 600px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .plans-modal-content {
        padding: 40px 20px;
        margin: 20px;
        border-radius: 20px;
    }
    .plans-title { font-size: 1.8rem; }
    .plan-card { padding: 40px 20px; }
}

/* Hero Stepped Selection Carousel - CENTERED */
.hero-scroller {
    width: 100%;
    overflow: hidden;
    padding: 100px 0;
    background: transparent;
    position: relative;
    direction: ltr;
    /* Center the first item initially */
    padding-left: calc(50% - 160px); 
}

.hero-scroller::before,
.hero-scroller::after {
    content: "";
    position: absolute;
    top: 0;
    width: 30%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.hero-scroller::before {
    left: 0;
    background: linear-gradient(to right, #08080d 40%, transparent);
}

.hero-scroller::after {
    right: 0;
    background: linear-gradient(to left, #09090b 40%, transparent);
}

.hero-scroller-track {
    display: flex;
    width: max-content;
    gap: 80px; 
    /* Stepped Animation: Sync with item focus */
    animation: selectionSwitchCentered 18s cubic-bezier(0.85, 0, 0.15, 1) infinite;
}

/* Hero Stepped Selection Carousel - SEQUENTIAL LOGIC */
.hero-scroller {
    width: 100%;
    overflow: hidden;
    padding: 100px 0;
    background: transparent;
    position: relative;
    direction: ltr;
    padding-left: calc(50% - 160px); 
}

.hero-scroller::before,
.hero-scroller::after {
    content: "";
    position: absolute;
    top: 0;
    width: 30%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.hero-scroller::before {
    left: 0;
    background: linear-gradient(to right, #08080d 40%, transparent);
}

.hero-scroller::after {
    right: 0;
    background: linear-gradient(to left, #09090b 40%, transparent);
}

.hero-scroller-track {
    display: flex;
    width: max-content;
    gap: 80px; 
    /* Move ONLY at the end of each 3s cycle (between 13.8% and 16.6%) */
    animation: selectionSwitchCentered 18s linear infinite;
}

.hero-scroller-item {
    flex-shrink: 0;
    width: 320px;
    height: 500px;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroFocus 18s linear infinite;
}

.hero-scroller-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: heroImgFocus 18s linear infinite;
}

/* Individual Hero Colors & Focus Delays */
.hero-scroller-item:nth-child(1), .hero-scroller-item:nth-child(7) { --hero-glow: rgba(188, 19, 254, 0.8); animation-delay: 0s; }
.hero-scroller-item:nth-child(2), .hero-scroller-item:nth-child(8) { --hero-glow: rgba(255, 204, 0, 0.8); animation-delay: 3s; }
.hero-scroller-item:nth-child(3), .hero-scroller-item:nth-child(9) { --hero-glow: rgba(0, 191, 255, 0.8); animation-delay: 6s; }
.hero-scroller-item:nth-child(4), .hero-scroller-item:nth-child(10) { --hero-glow: rgba(255, 255, 255, 0.8); animation-delay: 9s; }
.hero-scroller-item:nth-child(5), .hero-scroller-item:nth-child(11) { --hero-glow: rgba(255, 0, 0, 0.8); animation-delay: 12s; }
.hero-scroller-item:nth-child(6), .hero-scroller-item:nth-child(12) { --hero-glow: rgba(191, 255, 0, 0.8); animation-delay: 15s; }

/* Apply delay to images too */
.hero-scroller-item:nth-child(1) img, .hero-scroller-item:nth-child(7) img { animation-delay: 0s; }
.hero-scroller-item:nth-child(2) img, .hero-scroller-item:nth-child(8) img { animation-delay: 3s; }
.hero-scroller-item:nth-child(3) img, .hero-scroller-item:nth-child(9) img { animation-delay: 6s; }
.hero-scroller-item:nth-child(4) img, .hero-scroller-item:nth-child(10) img { animation-delay: 9s; }
.hero-scroller-item:nth-child(5) img, .hero-scroller-item:nth-child(11) img { animation-delay: 12s; }
.hero-scroller-item:nth-child(6) img, .hero-scroller-item:nth-child(12) img { animation-delay: 15s; }

@keyframes heroFocus {
    0%, 2.7% { transform: scale(1); z-index: 1; }
    5.5%, 11.1% { transform: scale(1.3); z-index: 50; }
    13.8%, 100% { transform: scale(1); z-index: 1; }
}

@keyframes heroImgFocus {
    0%, 2.7% { filter: brightness(1) grayscale(0); } 
    5.5%, 11.1% { filter: brightness(1.3) grayscale(0) drop-shadow(0 0 45px var(--hero-glow)); } 
    13.8%, 100% { filter: brightness(1) grayscale(0); }
}

@keyframes selectionSwitchCentered {
    0%, 13.8% { transform: translateX(0); }
    16.66%, 30.46% { transform: translateX(-400px); }
    33.33%, 47.13% { transform: translateX(-800px); }
    50%, 63.8% { transform: translateX(-1200px); }
    66.66%, 80.46% { transform: translateX(-1600px); }
    83.33%, 97.13% { transform: translateX(-2000px); }
    100% { transform: translateX(-2400px); }
}

@media (max-width: 768px) {
    .hero-scroller { padding-left: calc(50% - 120px); }
    .hero-scroller-item { width: 240px; height: 360px; }
    .hero-scroller-track { gap: 40px; }
    @keyframes selectionSwitchCentered {
        0%, 12% { transform: translateX(0); }
        16.6%, 28.6% { transform: translateX(-280px); }
        33.3%, 45.3% { transform: translateX(-560px); }
        50%, 62% { transform: translateX(-840px); }
        66.6%, 78.6% { transform: translateX(-1120px); }
        83.3%, 95.3% { transform: translateX(-1400px); }
        100% { transform: translateX(-1680px); }
    }
}

/* Discover More Heroes CTA - Minimalist */
.discover-more-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px; /* Closer to the scroller */
    padding: 10px 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.discover-more-cta p {
    font-family: 'Cairo', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.btn-discover-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(188, 19, 254, 0.1);
    color: var(--primary-purple);
    text-decoration: none;
    border-radius: 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-purple);
}

.btn-discover-more i {
    font-size: 0.75rem;
}

.btn-discover-more:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(188, 19, 254, 0.4);
}

@media (max-width: 768px) {
    .discover-more-cta {
        flex-direction: row; /* Keep row on mobile since it's small */
        gap: 12px;
    }
    .discover-more-cta p {
        font-size: 0.85rem;
    }
    .btn-discover-more {
        padding: 5px 14px;
        font-size: 0.75rem;
    }
}
