/* ===== CSS VARIABLES ===== */
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --dark: #0a0a1a;
    --dark-2: #12122a;
    --dark-3: #1a1a3e;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #e2e2f0;
    --text-muted: #8888aa;
    --glow-purple: 0 0 30px rgba(108, 92, 231, 0.3);
    --glow-cyan: 0 0 30px rgba(0, 206, 201, 0.3);
    --glow-pink: 0 0 30px rgba(253, 121, 168, 0.3);
    --radius: 20px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== LIGHT THEME ===== */
html[data-theme="light"] {
    --dark: #f6f7fb;
    --dark-2: #ffffff;
    --dark-3: #eef0f6;
    --glass: rgba(0, 0, 0, 0.04);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text: #141428;
    --text-muted: #5f627a;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--dark);
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--accent));
    border-radius: 10px;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Theme toggle button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 42px;
        height: 42px;
    }
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-animation .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb:nth-child(1) {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb:nth-child(3) {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -80px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 60px) scale(0.9);
    }

    75% {
        transform: translate(70px, 30px) scale(1.05);
    }
}

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== SNOW ===== */
.snow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    animation-name: snowFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes snowFall {
    0% { transform: translateY(-10px); }
    100% { transform: translateY(110vh); }
}

html[data-theme="light"] .snowflake {
    background: rgba(90, 130, 255, 0.95);
    box-shadow: 0 0 12px rgba(60, 100, 220, 0.35);
    border: 1px solid rgba(40, 70, 180, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    .snow { display: none; }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.nav-logo .logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: white;
    box-shadow: var(--glow-purple);
    position: relative;
    overflow: hidden;
}

.nav-logo .logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.nav-logo span {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--glass);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: white !important;
    padding: 10px 25px !important;
    box-shadow: var(--glow-purple);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4) !important;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 10px;
    transition: var(--transition);
}

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

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

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

/* ===== HERO SECTION ===== */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 100px 40px 60px;
}

.hero-content {
    text-align: center;
    max-width: 850px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero h1 {
    font-size: clamp(32px, 5.5vw, 60px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.7s ease;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero p {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.7s ease;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease;
}

.btn {
    padding: 12px 30px;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: var(--glow-purple);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--glass);
    transform: translateY(-3px);
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: 0.6s;
}

.btn:hover::after {
    transform: translateX(100%);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    animation: fadeInUp 0.7s ease;
}

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

.stat-number {
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== FLOATING SHAPES ===== */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    animation: floatShape 15s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 10%;
    border-radius: 15px;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 15%;
    border-color: rgba(108, 92, 231, 0.2);
    animation-delay: -3s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.6;
    }
}

/* ===== SECTION STYLES ===== */
section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.section-header h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

/* ===== SLIDER SECTION ===== */
#products {
    padding-left: 0;
    padding-right: 0;
}

#products .section-header {
    padding: 0 40px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 10px 0 10px 40px;
}

.slide-item {
    min-width: 340px;
    flex-shrink: 0;
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.slide-item:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--glow-purple);
}

.slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.slide-item:hover::before {
    opacity: 1;
}

.slide-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--dark-3);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.slide-item:hover .slide-image img {
    transform: scale(1.06);
}

.slide-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--dark-2), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.slide-item:hover .slide-image .overlay {
    opacity: 1;
}

.overlay-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.badge-new {
    background: rgba(0, 206, 201, 0.2);
    color: var(--secondary);
    border: 1px solid rgba(0, 206, 201, 0.3);
}

.badge-hot {
    background: rgba(253, 121, 168, 0.2);
    color: var(--accent);
    border: 1px solid rgba(253, 121, 168, 0.3);
}

.badge-sale {
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.slide-info {
    padding: 18px;
}

.slide-category {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.slide-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: var(--transition);
}

.slide-item:hover .slide-info h3 {
    color: var(--primary-light);
}

.slide-info p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tech-tag {
    padding: 3px 10px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.slide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

.slide-price {
    display: flex;
    flex-direction: column;
}

.price-current {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-old {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-view {
    padding: 8px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-view:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-purple);
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 0 40px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--glow-purple);
}

.slider-dots {
    display: flex;
    gap: 6px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    box-shadow: var(--glow-purple);
    transform: scale(1.3);
}

/* ===== EDGE-TO-EDGE SECTIONS ===== */
section.edge-to-edge {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

section.edge-to-edge .section-header {
    padding-left: 40px;
    padding-right: 40px;
}

/* ===== FEATURES BENTO GRID (Edge-to-Edge) ===== */
.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    padding: 0 5%;
    margin: 0 auto;
}

.bento-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bento-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--x, 0) var(--y, 0), rgba(108, 92, 231, 0.08), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bento-card:hover .bento-glow {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.15);
}

.bento-card.purple:hover {
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.12);
}

.bento-card.cyan:hover {
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 206, 201, 0.12);
}

.bento-card.pink:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(253, 121, 168, 0.12);
}

.bento-card.span-2 {
    grid-column: span 2;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-icon.purple {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
}

.feature-icon.cyan {
    background: rgba(0, 206, 201, 0.15);
    color: var(--secondary);
}

.feature-icon.pink {
    background: rgba(253, 121, 168, 0.15);
    color: var(--accent);
}

.bento-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
    transition: var(--transition);
}

.bento-card:hover h3 {
    background: linear-gradient(135deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== TESTIMONIALS INFINITE MARQUEE ===== */
.testimonials-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
}

.testimonials-marquee-wrapper::before,
.testimonials-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.testimonials-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--dark), transparent);
}

.testimonials-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--dark), transparent);
}

.testimonials-marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 10px 0;
    animation: marqueeScroll 40s linear infinite;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Since standard direction is RTL, we will translate appropriately */
        transform: translateX(calc(50%));
    }
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonials-track .testimonial-card {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    min-width: 440px;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(15px);
    transition: var(--transition);
    position: relative;
    text-align: right; /* RTL text align */
}

.testimonials-track .testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--secondary);
    box-shadow: 0 15px 35px rgba(0, 206, 201, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.testimonials-track .testimonial-card .stars {
    display: flex;
    gap: 4px;
    color: #f1c40f;
    font-size: 13px;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.2);
}

.testimonials-track .testimonial-card .testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 24px;
    font-style: italic;
    font-weight: 500;
}

.testimonials-track .testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    text-align: right;
}

.testimonials-track .testimonial-card .testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
}

.testimonials-track .testimonial-card .testimonial-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.testimonials-track .testimonial-card .testimonial-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== CONTACT SECTION ===== */
.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

a.contact-item-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-item .icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item .icon.purple {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
}

.contact-item .icon.cyan {
    background: rgba(0, 206, 201, 0.15);
    color: var(--secondary);
}

.contact-item .icon.pink {
    background: rgba(253, 121, 168, 0.15);
    color: var(--accent);
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-item span {
    font-size: 12px;
    color: var(--text-muted);
}

.contact-form {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
}

/* ===== FOOTER ===== */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding: 48px 40px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 15px;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom .heart {
    color: var(--accent);
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-purple);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
}

/* Floating WhatsApp button */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.25);
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(37, 211, 102, 0.35);
}

.floating-whatsapp i {
    font-size: 24px;
}

@media (max-width: 480px) {
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        border-radius: 14px;
    }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TYPING EFFECT ===== */
.typing-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    border-left: 3px solid var(--primary-light);
    padding-right: 5px;
    padding-left: 3px;
    animation: gradientShift 5s ease infinite, blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* ===== FEATURE CARD ICON HOVER ===== */
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    transition: var(--transition);
}

/* ===== SMOOTH CARD ENTRANCE ===== */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.05s; }
.feature-card:nth-child(3) { transition-delay: 0.1s; }
.feature-card:nth-child(4) { transition-delay: 0.15s; }
.feature-card:nth-child(5) { transition-delay: 0.2s; }
.feature-card:nth-child(6) { transition-delay: 0.25s; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-page {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
    padding: 0 40px 40px;
}

.product-main-card {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.product-hero {
    height: 320px;
    background: var(--dark-3);
}

.product-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-main-body {
    padding: 20px 22px 22px;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 14px;
}

.product-gallery,
.product-features {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 18px 22px 22px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-grid a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--dark-3);
}

.gallery-grid img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-grid a:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .product-page {
        padding: 0 16px 30px;
    }
    .product-hero {
        height: 220px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid img {
        height: 120px;
    }
}
.modal-overlay.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent);
    color: white;
}

.modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.modal-body {
    padding: 24px;
}

.modal-body h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-body .category {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-body .description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.modal-body .features-list {
    list-style: none;
    margin-bottom: 20px;
}

.modal-body .features-list li {
    padding: 6px 0;
    color: var(--text);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body .features-list li i {
    color: var(--secondary);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    section {
        padding: 60px 28px;
    }

    .features-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 48px 16px;
    }

    #products {
        padding-left: 0;
        padding-right: 0;
    }

    #products .section-header {
        padding: 0 16px;
    }

    .slider-container {
        padding-left: 16px;
    }

    .slider-controls {
        padding: 0 16px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .navbar {
        padding: 12px 16px;
    }

    .navbar.scrolled {
        padding: 8px 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--dark-2);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: var(--transition);
        backdrop-filter: blur(20px);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
    }

    .hero {
        min-height: 85vh;
        padding: 80px 16px 40px;
    }

    .hero-stats {
        gap: 24px;
        margin-top: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .slide-item {
        min-width: 260px;
    }

    .slide-image {
        height: 150px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Responsive Bento Grid */
    .features-bento {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-card.span-2 {
        grid-column: span 1;
    }

    .bento-card {
        padding: 24px;
        border-radius: 20px;
    }

    /* Responsive Testimonials Track */
    .testimonials-track .testimonial-card {
        min-width: 320px;
        max-width: 320px;
        padding: 24px;
        border-radius: 20px;
    }

    .testimonials-track .testimonial-card .testimonial-text {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 12px;
    }

    #products {
        padding-left: 0;
        padding-right: 0;
    }

    #products .section-header {
        padding: 0 12px;
    }

    .slider-container {
        padding-left: 12px;
    }

    .slider-controls {
        padding: 0 12px;
    }

    .hero {
        min-height: 80vh;
        padding: 70px 12px 32px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-number {
        font-size: 26px;
    }

    .slide-item {
        min-width: 230px;
    }

    .slide-image {
        height: 130px;
    }

    .slide-info {
        padding: 14px;
    }

    .slide-info h3 {
        font-size: 15px;
    }

    .modal {
        max-width: 100%;
    }

    .modal-body {
        padding: 18px;
    }
}

/* =========================== */
/* ===== ADMIN PAGE STYLES === */
/* =========================== */

.admin-body {
    background: var(--dark);
    min-height: 100vh;
}

.admin-nav {
    background: var(--dark-2);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.admin-nav h2 {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-nav .back-link {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.admin-nav .back-link:hover {
    color: var(--text);
    border-color: var(--primary);
}

.admin-nav .logout-link {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.admin-nav .logout-link:hover {
    color: white;
    border-color: var(--accent);
    background: rgba(253, 121, 168, 0.18);
}

.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h3 {
    font-size: 28px;
    font-weight: 800;
}

.btn-add {
    padding: 12px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

/* Admin Table */
.admin-table-wrapper {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--dark-3);
}

.admin-table th {
    padding: 16px 20px;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table td {
    padding: 16px 20px;
    border-top: 1px solid var(--glass-border);
    font-size: 14px;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: var(--glass);
}

.table-image {
    width: 60px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
}

.table-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.table-badge.new {
    background: rgba(0, 206, 201, 0.2);
    color: var(--secondary);
}

.table-badge.hot {
    background: rgba(253, 121, 168, 0.2);
    color: var(--accent);
}

.table-badge.sale {
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary-light);
}

.table-actions {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.btn-edit:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-delete:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Admin Form Modal */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal-overlay.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.admin-modal {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
}

.admin-modal h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.admin-form .form-group {
    margin-bottom: 18px;
}

.admin-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.admin-form textarea {
    height: 100px;
    resize: vertical;
}

.admin-form select {
    cursor: pointer;
}

.admin-form select option {
    background: var(--dark-2);
}

/* Image upload */
.image-upload-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.image-preview {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    border: 2px dashed var(--glass-border);
    background: var(--dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.image-preview-placeholder i {
    font-size: 36px;
    opacity: 0.4;
}

.btn-upload-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-upload-image:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.upload-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.upload-hint-warn {
    color: #f0b429;
}

.upload-hint i {
    margin-left: 4px;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.admin-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--dark-3);
}

.admin-gallery-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.admin-gallery-item button {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.45);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.admin-gallery-item button:hover {
    background: rgba(253, 121, 168, 0.35);
    border-color: rgba(253, 121, 168, 0.55);
}

@media (max-width: 768px) {
    .admin-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-gallery-item img {
        height: 110px;
    }
}

.image-mode-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.image-mode-btn {
    flex: 1;
    min-width: 140px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--dark);
    color: var(--text-muted);
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.image-mode-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.image-mode-btn.active {
    background: rgba(108, 92, 231, 0.2);
    border-color: var(--primary);
    color: var(--primary-light);
}

.image-mode-panel input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.image-mode-panel input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.admin-form-actions .btn-save {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.admin-form-actions .btn-save:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

.admin-form-actions .btn-cancel {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.admin-form-actions .btn-cancel:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Confirm Delete Modal */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-overlay.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.confirm-box {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 35px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.confirm-box .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(253, 121, 168, 0.15);
    color: var(--accent);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirm-box h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.confirm-box p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-actions .btn-confirm-del {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e74c3c, var(--accent));
    color: white;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.confirm-actions .btn-confirm-cancel {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text);
}

@media (max-width: 768px) {
    .admin-table-wrapper {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 700px;
    }

    .admin-form .form-row {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        padding: 15px 20px;
    }
}

/* ===== SEARCH & FILTER CONTROLS ===== */
.filter-container {
    max-width: 900px;
    margin: 0 auto 35px;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.search-row {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: center;
}

@media (max-width: 576px) {
    .search-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.search-wrapper {
    position: relative;
    flex: 1;
}

.search-wrapper i.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
    transition: var(--transition);
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: var(--glow-purple);
}

.search-input:focus ~ i.search-icon {
    color: var(--primary-light);
}

.btn-clear-search {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    padding: 5px;
    display: none; /* JS will show/hide */
}

.btn-clear-search:hover {
    color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.view-toggle-wrapper {
    display: flex;
    gap: 6px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 4px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    justify-content: center;
}

.view-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.view-toggle-btn:hover {
    color: var(--text);
}

.view-toggle-btn.active {
    background: var(--dark-3);
    color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .view-toggle-btn.active {
    background: var(--dark-3);
    color: var(--primary);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.filter-tab:hover {
    color: var(--text);
    border-color: var(--primary-light);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    box-shadow: var(--glow-purple);
}

/* Products Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px 5%;
    width: 100%;
}

.products-grid .slide-item {
    min-width: 0;
    flex-shrink: 1;
    width: 100%;
}

/* Empty State / No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    min-height: 250px;
}

.no-results i {
    font-size: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.no-results h4 {
    font-size: 20px;
    color: var(--text);
    font-weight: 700;
}

.no-results p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 400px;
}

.btn-reset {
    margin-top: 10px;
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-purple);
}

/* ===== THEME V5 — MAIN SITE ===== */
/* ===== V5 — LUXURY GOLD (نهاري فقط) ===== */
html:has(body.theme-v5),
body.theme-v5 {
    --primary: #b8962e;
    --primary-light: #d4af37;
    --secondary: #9a7b1a;
    --accent: #c9a227;
    --dark: #faf8f4;
    --dark-2: #ffffff;
    --dark-3: #f3efe6;
    --glass: rgba(212, 175, 55, 0.08);
    --glass-border: rgba(184, 150, 46, 0.22);
    --text: #1c1810;
    --text-muted: #6b6354;
    --glow-purple: 0 0 30px rgba(212, 175, 55, 0.25);
    --glow-cyan: 0 0 30px rgba(201, 162, 39, 0.2);
    --glow-pink: 0 0 30px rgba(212, 175, 55, 0.2);
}

body.theme-v5 { background: var(--dark); color: var(--text); }

.theme-v5 .theme-toggle { display: none !important; }

.theme-v5 .theme-layer { position: fixed; pointer-events: none; z-index: 0; }
.theme-v5 .gold-line {
    top: 0; right: 12%; width: 1px; height: 100%;
    background: linear-gradient(180deg, transparent, #d4af37, transparent);
    animation: v5LineGrow 2s ease-out;
}
@keyframes v5LineGrow { from { height: 0; } to { height: 100%; } }
.theme-v5 .gold-grain {
    inset: 0; opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.theme-v5 .bg-animation .orb:nth-child(1) { background: #f5e6a3; opacity: 0.35; }
.theme-v5 .bg-animation .orb:nth-child(2) { background: #d4af37; opacity: 0.2; }
.theme-v5 .bg-animation .orb:nth-child(3) { background: #e8d5a3; opacity: 0.25; }
.theme-v5 .bg-animation .orb { filter: blur(100px); }

.theme-v5 .snowflake {
    background: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(184, 150, 46, 0.2);
}
.theme-v5 .particle { background: #d4af37; }

.theme-v5 .nav-logo span,
.theme-v5 .section-header h2,
.theme-v5 .hero h1 {
    font-family: 'Cormorant Garamond', 'Tajawal', serif;
    letter-spacing: 1px;
    color: var(--text);
}
.theme-v5 .hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 600; }
.theme-v5 .gradient-text {
    background: linear-gradient(135deg, #9a7b1a, #d4af37, #b8962e);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: v5GoldShine 4s linear infinite;
}
@keyframes v5GoldShine { to { background-position: 200% center; } }
.theme-v5 .hero-badge {
    letter-spacing: 3px; font-size: 12px; text-transform: uppercase;
    border-color: rgba(184, 150, 46, 0.35);
    background: rgba(212, 175, 55, 0.1);
    color: #7a6520;
}
.theme-v5 .btn-primary {
    background: linear-gradient(135deg, #d4af37, #f5e6a3, #d4af37);
    background-size: 200% auto;
    color: #1c1810;
    border-radius: 0;
    letter-spacing: 2px;
    animation: v5GoldShine 4s linear infinite;
}
.theme-v5 .btn-outline {
    border-color: #b8962e;
    color: #9a7b1a;
    border-radius: 0;
    background: transparent;
}
.theme-v5 .btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #7a6520;
}
.theme-v5 .navbar {
    border-bottom: 1px solid rgba(184, 150, 46, 0.2);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
}
.theme-v5 .navbar.scrolled { background: rgba(255, 255, 255, 0.95); }
.theme-v5 .logo-icon {
    background: linear-gradient(135deg, #d4af37, #f5e6a3);
    color: #1c1810;
    border-radius: 0;
}
.theme-v5 .nav-links a { color: var(--text-muted); }
.theme-v5 .nav-links a:hover,
.theme-v5 .nav-links a.active { color: #9a7b1a; }
.theme-v5 .nav-cta {
    background: linear-gradient(135deg, #d4af37, #c9a227) !important;
    color: #1c1810 !important;
}

/* ===== FEATURES BENTO MOSAIC (v5) ===== */
.theme-v5 .features-lux {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-flow: dense;
    gap: 22px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5% 32px;
}

.theme-v5 .lux-bento-label {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0 4px;
    padding: 0 4px;
}

.theme-v5 .lux-bento-label span {
    font-family: 'Cormorant Garamond', 'Tajawal', serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9a7b1a;
    white-space: nowrap;
}

.theme-v5 .lux-bento-label::before,
.theme-v5 .lux-bento-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 150, 46, 0.45), transparent);
}

.theme-v5 .lux-s-2 { grid-column: span 2; }
.theme-v5 .lux-s-3 { grid-column: span 3; }
.theme-v5 .lux-s-4 { grid-column: span 4; }
.theme-v5 .lux-tall { grid-row: span 2; }
.theme-v5 .lux-centered { grid-column: 2 / span 4; }

.theme-v5 .lux-feature-card {
    position: relative;
    padding: 30px 28px 28px;
    background: #ffffff;
    border: 1px solid rgba(184, 150, 46, 0.18);
    border-radius: 28px 8px 28px 8px;
    box-shadow: 0 12px 40px rgba(28, 24, 16, 0.06);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
    min-height: 0;
}

.theme-v5 .lux-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f5e6a3, #d4af37);
    background-size: 200% auto;
    animation: v5GoldShine 5s linear infinite;
}

.theme-v5 .lux-feature-card.lux-featured {
    background: linear-gradient(145deg, #fffdf8 0%, #ffffff 50%, #faf6ec 100%);
    border-color: rgba(184, 150, 46, 0.35);
    box-shadow: 0 16px 48px rgba(184, 150, 46, 0.14);
}

.theme-v5 .lux-feature-card.lux-featured::before { height: 5px; }

.theme-v5 .lux-feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 55, 0.14), transparent 58%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.theme-v5 .lux-feature-card:hover::after { opacity: 1; }

.theme-v5 .lux-feature-card:hover {
    transform: translateY(-8px) rotate(-0.25deg);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 24px 56px rgba(184, 150, 46, 0.18);
}

/* بطاقة أفقية — أيقونة يمين والنص يسار */
.theme-v5 .lux-feature-card.lux-h {
    display: grid;
    grid-template-columns: 76px 1fr;
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 22px;
    row-gap: 0;
    align-content: start;
    padding: 28px 30px;
}

.theme-v5 .lux-h .lux-icon-wrap {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: start;
    margin: 0;
    width: 76px;
    height: 76px;
    border-radius: 20px 6px 20px 6px;
}

.theme-v5 .lux-h .lux-chip { grid-column: 2; grid-row: 1; margin-bottom: 10px; }
.theme-v5 .lux-h h3 { grid-column: 2; grid-row: 2; margin-bottom: 10px; }
.theme-v5 .lux-h .lux-divider { grid-column: 2; grid-row: 3; margin-bottom: 12px; }
.theme-v5 .lux-h p { grid-column: 1 / -1; grid-row: 4; margin-top: 4px; }
.theme-v5 .lux-h .lux-card-link { grid-column: 1 / -1; grid-row: 5; }

.theme-v5 .lux-num {
    position: absolute;
    bottom: 12px;
    left: 18px;
    top: auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(184, 150, 46, 0.08);
    pointer-events: none;
    transition: color 0.45s ease;
}

.theme-v5 .lux-feature-card:hover .lux-num { color: rgba(184, 150, 46, 0.16); }

.theme-v5 .lux-shine {
    position: absolute;
    top: 0;
    right: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-16deg);
    transition: right 0.65s ease;
    pointer-events: none;
}

.theme-v5 .lux-feature-card:hover .lux-shine { right: 130%; }

.theme-v5 .lux-icon-wrap {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: linear-gradient(145deg, #f5e6a3, #d4af37);
    color: #1c1810;
    font-size: 22px;
    border-radius: 16px 6px 16px 6px;
    box-shadow: 0 6px 20px rgba(184, 150, 46, 0.28);
    position: relative;
    z-index: 2;
}

.theme-v5 .lux-chip {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9a7b1a;
    border-radius: 20px;
    border: 1px solid rgba(184, 150, 46, 0.3);
    background: rgba(212, 175, 55, 0.08);
    position: relative;
    z-index: 2;
}

.theme-v5 .lux-feature-card h3 {
    font-family: 'Cormorant Garamond', 'Tajawal', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1c1810;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.theme-v5 .lux-feature-card:hover h3 { color: #7a6520; }

.theme-v5 .lux-divider {
    width: 40px;
    height: 2px;
    margin-bottom: 14px;
    background: linear-gradient(90deg, #d4af37, #f5e6a3);
    border-radius: 2px;
    position: relative;
    z-index: 2;
    transition: width 0.4s ease;
}

.theme-v5 .lux-feature-card:hover .lux-divider { width: 64px; }

.theme-v5 .lux-feature-card p {
    color: #6b6354;
    font-size: 15px;
    line-height: 1.9;
    position: relative;
    z-index: 2;
}

.theme-v5 .lux-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #9a7b1a;
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease, gap 0.3s ease;
}

.theme-v5 .lux-card-link:hover { color: #7a6520; gap: 12px; }

.theme-v5 .features-lux > .reveal:nth-child(1) { transition-delay: 0.02s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(2) { transition-delay: 0.06s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(3) { transition-delay: 0.1s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(4) { transition-delay: 0.14s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(5) { transition-delay: 0.18s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(6) { transition-delay: 0.22s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(7) { transition-delay: 0.26s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(8) { transition-delay: 0.3s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(9) { transition-delay: 0.34s; }
.theme-v5 .features-lux > .reveal:nth-child(10) { transition-delay: 0.38s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(11) { transition-delay: 0.42s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(12) { transition-delay: 0.46s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(13) { transition-delay: 0.5s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(14) { transition-delay: 0.54s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(15) { transition-delay: 0.58s; }
.theme-v5 .features-lux .lux-feature-card.reveal:nth-child(16) { transition-delay: 0.62s; }

@media (max-width: 1024px) {
    .theme-v5 .features-lux { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .theme-v5 .lux-s-2 { grid-column: span 2; }
    .theme-v5 .lux-s-3 { grid-column: span 2; }
    .theme-v5 .lux-s-4 { grid-column: span 4; }
    .theme-v5 .lux-centered { grid-column: 1 / -1; }
    .theme-v5 .lux-tall { grid-row: span 1; }
}

@media (max-width: 640px) {
    .theme-v5 .features-lux { grid-template-columns: 1fr; gap: 16px; }
    .theme-v5 .lux-s-2,
    .theme-v5 .lux-s-3,
    .theme-v5 .lux-s-4,
    .theme-v5 .lux-centered { grid-column: 1 / -1; }
    .theme-v5 .lux-feature-card.lux-h {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .theme-v5 .lux-h .lux-icon-wrap { grid-row: auto; margin-bottom: 16px; }
    .theme-v5 .lux-h .lux-chip,
    .theme-v5 .lux-h h3,
    .theme-v5 .lux-h .lux-divider,
    .theme-v5 .lux-h p,
    .theme-v5 .lux-h .lux-card-link { grid-column: 1; }
    .theme-v5 .lux-feature-card { border-radius: 20px 6px 20px 6px; padding: 22px 20px; }
}

.theme-v5 .slide-item {
    border-radius: 0;
    background: #ffffff;
    border: 1px solid rgba(184, 150, 46, 0.12);
}
.theme-v5 .contact-form,
.theme-v5 .contact-item,
.theme-v5 .filter-container {
    background: #ffffff;
    border-color: rgba(184, 150, 46, 0.15);
}
.theme-v5 footer {
    background: #f3efe6;
    border-top: 1px solid rgba(184, 150, 46, 0.15);
}
.theme-v5 .scroll-progress { background: linear-gradient(90deg, #b8962e, #d4af37, #f5e6a3); height: 3px; }
.theme-v5 .stat-number { color: #9a7b1a; }
.theme-v5 .section-tag { color: #9a7b1a; border-color: rgba(184, 150, 46, 0.3); }
.theme-v5 .hero-content > * { opacity: 0; animation: v5Reveal 1s ease forwards; }
.theme-v5 .hero-badge { animation-delay: 0.2s; }
.theme-v5 .hero h1 { animation-delay: 0.4s; }
.theme-v5 .hero p { animation-delay: 0.6s; color: var(--text-muted); }
.theme-v5 .hero-buttons { animation-delay: 0.8s; }
.theme-v5 .hero-stats { animation-delay: 1s; }
@keyframes v5Reveal { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }
