:root {
    --primary-color: #D4AF37;
    /* Gold */
    --primary-hover: #C5A028;
    --secondary-color: #1A1C20;
    /* Deep Dark Blue/Black */
    --accent-color: #2C3E50;
    --text-light: #F8F9FA;
    --text-muted: #B0B3B8;
    --background-dark: #121212;
    --surface-dark: #1E1E1E;
    --glass-bg: rgba(30, 30, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Tajawal', sans-serif;
    --transition-speed: 0.3s;
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

/* Utilities */
.app-container {
    max-width: 100%;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) ease;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    color: var(--secondary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-size: 1.1rem;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.4s ease;
}

.glass-header.scrolled {
    background: rgba(26, 28, 32, 0.95);
    padding: 15px 5%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.lang-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.lang-btn i {
    font-size: 1.2rem;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5% 50px;
    background: radial-gradient(circle at top left, #1f2329 0%, #121212 60%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: pulseGlow 10s infinite alternate;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 15s infinite reverse;
    z-index: 1;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2) translate(-20px, 20px);
        opacity: 0.8;
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.luxury-card {
    width: 300px;
    background: var(--surface-dark);
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    animation: float 6s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 10;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.card-image-placeholder {
    width: 100%;
    height: 200px;
    background: #2a2d33;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.card-info h3 {
    margin-bottom: 4px;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Services */
.services-section {
    padding: 80px 5%;
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--surface-dark);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

/* Properties */
.properties-section {
    padding: 80px 5%;
    background: #151618;
}

.properties-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
}

.view-all {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--surface-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-speed);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.property-img {
    height: 220px;
    background: #1a1c20;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-img img {
    transition: transform 0.5s ease;
}

.property-card:hover .property-img img {
    transform: scale(1.1);
}

.property-content {
    padding: 20px;
}

.property-price {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: block;
}

.property-details {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CTA */
.cta-section {
    padding: 80px 5%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMmMyZTMzIi8+Cjwvc3ZnPg==');
    text-align: center;
    border-top: 2px solid var(--primary-color);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: white;
}

/* Footer */
footer {
    padding: 50px 5% 20px;
    background: #0f0f10;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    margin-right: 20px;
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        min-height: auto;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .modal-content {
        padding: 15px;
        border-radius: 0;
        height: 100%;
        max-height: 100vh;
        overflow-y: auto;
    }

    .modal-overlay {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .properties-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .glass-header {
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* Lotissement Section */
.lotissement-section {
    padding: 80px 5%;
    background: #0d0e10;
}

.item-phase-timeline {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
    padding-top: 20px;
}

.item-phase-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.phase-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.phase-dot {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 2px solid #555;
    transition: var(--transition-speed);
}

.phase-step.completed .phase-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.phase-step span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.phase-step.completed span {
    color: var(--text-light);
}

.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* AI Chatbot */
.ai-assistant-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Left for RTL layout */
    z-index: 9999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: transform var(--transition-speed);
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: #FF4D4D;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse 2s infinite;
}

.chat-window {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 350px;
    height: 500px;
    background: var(--surface-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.chat-window.active {
    display: flex;
}

/* Verified Badge */
.badge-verified {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.badge-verified::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Premium Card Hover */
.property-card {
    background: var(--surface-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
}

.property-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.property-card:hover .property-img {
    transform: scale(1.02);
}

.property-img {
    height: 250px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.6s ease;
}

.chat-header {
    padding: 15px;
    background: linear-gradient(45deg, var(--surface-dark), #252830);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-agent-info i {
    font-size: 2rem;
    color: var(--primary-color);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-message {
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-light);
    border-bottom-right-radius: 2px;
    align-self: flex-start;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.user-message {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-bottom-left-radius: 2px;
    align-self: flex-end;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 8px;
    color: white;
    outline: none;
}

.chat-input-area button {
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

@media (max-width: 480px) {
    .chat-window {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 10001;
    }

    .chat-toggle.active-chat {
        display: none;
    }
}

/* Property Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #1a1c20;
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    /* RTL switch */
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--primary-color);
    color: black;
}

.modal-gallery {
    height: 400px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
    background: #000;
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-gallery img:hover {
    opacity: 0.9;
}

.modal-gallery .main-img {
    grid-row: span 2;
}

.modal-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.modal-info p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    white-space: pre-line;
    /* Respects line breaks */
    font-size: 1rem;
}

.modal-price {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-section h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-tag::before {
    content: '•';
    color: var(--primary-color);
}

.modal-sidebar {
    position: sticky;
    top: 0;
}

.agent-card {
    background: var(--surface-dark);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    text-align: center;
}

.agent-avatar {
    width: 80px;
    height: 80px;
    background: #333;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .modal-gallery {
        height: 250px;
        grid-template-columns: 1fr;
    }

    .modal-gallery img:not(.main-img) {
        display: none;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }
}

/* News Cards */
.news-card {
    background: var(--surface-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-speed);
    text-align: right;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.news-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-content h4 {
    margin: 8px 0;
    color: var(--text-light);
}

.news-title {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Media Modal */
.media-content {
    max-width: 900px;
    height: auto;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.media-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.media-header h3 {
    color: var(--primary-color);
}

.media-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #000;
    overflow: hidden;
}

.media-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.media-body iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Opposite to chatbot */
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform var(--transition-speed);
    animation: waPulse 3s infinite;
}

.floating-whatsapp i {
    font-size: 2rem;
    color: white;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-whatsapp i {
        font-size: 1.5rem;
    }
}

.scroll-hidden {
    opacity: 0;
}

/* Animations Utility */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f10;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: black;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(26, 28, 32, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Splash Screen */
#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0f10;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

.splash-content {
    text-align: center;
    animation: fadeUp 1s ease-out;
}

.splash-logo {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

.splash-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 2px;
}

.loader-line {
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: var(--primary-color);
    animation: loading 1.5s infinite ease-in-out;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes loading {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flash Sale Banner */
.flash-sale-banner {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #ff4d4d, #d4af37, #ff4d4d);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-weight: 800;
    z-index: 999;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s;
}

.flash-sale-banner:hover {
    transform: scale(1.02);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.timer-part {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    min-width: 60px;
    border: 1px solid var(--primary-color);
}

.timer-part .number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.timer-part .label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.claim-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.claim-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem !important;
    padding: 15px !important;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.claim-r2 {
    background: linear-gradient(45deg, #ff4d4d, #d44242);
    color: white;
}

.claim-r3 {
    background: linear-gradient(45deg, #d4af37, #c5a028);
    color: #1a1c20;
}

.claim-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.promo-code {
    background: rgba(212, 175, 55, 0.1);
    border: 1px dashed var(--primary-color);
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    color: var(--primary-color);
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Professional News Modal Styles */
.news-detail-modal {
    max-width: 800px;
    padding: 0;
    overflow: hidden;
    background: var(--surface-dark);
}

.news-detail-header {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
}

.news-detail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(15, 15, 16, 0.95));
}

.news-detail-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.news-detail-body {
    padding: 40px;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: right;
}

.news-detail-body h2 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 2rem;
}

.news-share-bar {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    transition: 0.3s;
}

.share-btn:hover {
    background: var(--primary-color);
    color: black;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .news-detail-header {
        height: 200px;
    }

    .news-detail-overlay {
        padding: 20px;
    }

    .news-detail-body {
        padding: 20px;
    }
}