/* assets/css/style.css - Master Persian RTL Glassmorphism Design System */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #070913;
    --bg-darker: #04050b;
    --bg-card: rgba(16, 22, 45, 0.7);
    --bg-card-hover: rgba(24, 33, 66, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.4);

    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --primary-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.4) 100%);
    --secondary: #06b6d4;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    direction: rtl;
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    -webkit-text-size-adjust: 100%;
}

body {
    background: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
                var(--bg-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
    -webkit-touch-callout: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utility Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

.glass-panel-hover {
    transition: var(--transition);
}
.glass-panel-hover:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.text-gradient {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}
.btn svg,
.btn i,
.btn [data-lucide],
i[data-lucide] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    flex-shrink: 0;
    pointer-events: none;
    display: inline-block;
    vertical-align: middle;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.95rem 2.2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
}
.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-primary { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); }

/* Sticky Global Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 19, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
    width: 100%;
}
.site-header.scrolled {
    background: rgba(7, 9, 19, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 0.75rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    flex-shrink: 0;
}
.brand-logo svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: nowrap;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 0.4rem 0.2rem;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
    color: #ffffff;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .main-nav {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: inline-flex !important;
    }
}

/* Responsive Hero & Header Enhancements */
@media (max-width: 992px) {
    .header-inner {
        padding: 0.5rem 1rem !important;
    }
    .hero-banner-card {
        padding: 2.25rem 1.5rem !important;
        border-radius: 20px !important;
    }
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    .hero-title-main {
        font-size: 2rem !important;
    }
    .hero-subtitle-gradient {
        font-size: 1.6rem !important;
    }
    .hero-desc-text {
        font-size: 0.95rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-buttons {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .header-inner {
        padding: 0.4rem 0.75rem !important;
        border-radius: 24px !important;
    }
    .brand-logo span {
        font-size: 0.95rem !important;
    }
    .header-user-pill {
        padding: 0.45rem 1rem !important;
        font-size: 0.8rem !important;
    }
    .hero-banner-card {
        padding: 1.75rem 1.1rem !important;
    }
    .hero-title-main {
        font-size: 1.6rem !important;
    }
    .hero-subtitle-gradient {
        font-size: 1.3rem !important;
    }
    .hero-buttons a {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45) 0%, rgba(168, 85, 247, 0.45) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transition: all 0.25s ease;
    flex-shrink: 0;
    padding: 0;
}
.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: #ffffff !important;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}
.mobile-menu-toggle svg,
.mobile-menu-toggle i {
    color: #ffffff !important;
    stroke: #ffffff !important;
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    margin: auto !important;
    pointer-events: none !important;
}

/* AI Accounts & Image Background Removal Utilities */
.remove-img-bg,
.ai-card-img,
.ai-icon-box img {
    background-color: transparent !important;
    mix-blend-mode: lighten;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

.ai-icon-box {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 13, 24, 0.95);
    backdrop-filter: blur(25px);
    z-index: 2000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border-glass);
}
.mobile-drawer.open {
    right: 0;
}
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    padding: 2.2rem 0 0.5rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-mockup-wrapper {
    position: relative;
    text-align: center;
}
.hero-mockup-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}
.hero-mockup-img:hover {
    transform: scale(1.02);
}

/* Slider Controls */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}
.slider-dot.active {
    width: 32px;
    border-radius: 6px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Section Titles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin-top: 0.4rem;
}

/* Floating Responsive Card Slider (Prevents empty grid gaps) */
.card-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 1rem;
    overflow: visible !important;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

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

.card-slider-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.25rem !important;
    overflow-x: auto !important;
    padding: 0.75rem 0.25rem 1.25rem !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
    scrollbar-width: none; /* Firefox */
    width: 100%;
    box-sizing: border-box;
}

.card-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge */
}

/* Responsive Mobile & Desktop Layout */
.card-slider-item {
    flex: 0 0 calc(25% - 0.95rem) !important;
    width: calc(25% - 0.95rem) !important;
    min-width: calc(25% - 0.95rem) !important;
    scroll-snap-align: start;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    box-sizing: border-box;
    touch-action: pan-y !important;
}

@media (min-width: 1200px) {
    .card-slider-item {
        flex: 0 0 calc(25% - 0.95rem) !important;
        width: calc(25% - 0.95rem) !important;
        min-width: calc(25% - 0.95rem) !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .card-slider-item {
        flex: 0 0 calc(33.333% - 0.85rem) !important;
        width: calc(33.333% - 0.85rem) !important;
        min-width: calc(33.333% - 0.85rem) !important;
    }
}

/* Mobile & Tablet Responsive: Stacked vertically 4 items under each other */
@media (max-width: 991px) {
    .slider-side-btn {
        display: none !important;
    }
    .card-slider-wrapper {
        padding: 0 !important;
        overflow: visible !important;
    }
    .card-slider-track {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        gap: 1.5rem !important;
        padding: 0.5rem 0 !important;
        touch-action: pan-y !important;
        scroll-snap-type: none !important;
        -webkit-overflow-scrolling: auto !important;
    }
    .card-slider-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        scroll-snap-align: none !important;
        touch-action: pan-y !important;
    }
    /* Display 4 items stacked under each other per section on mobile */
    .card-slider-item:nth-child(n+5) {
        display: none !important;
    }
    /* Prevent image stretching & enhance mobile image size and clarity */
    .luxury-card {
        padding: 1.25rem !important;
        border-radius: 22px !important;
    }
    .luxury-card-img-box {
        width: 100% !important;
        height: 215px !important;
        aspect-ratio: 16/9 !important;
        border-radius: 18px !important;
        margin-bottom: 1.1rem !important;
        background: rgba(15, 23, 42, 0.6) !important;
        overflow: hidden !important;
        position: relative !important;
    }
    .luxury-card-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }
    .luxury-card-title {
        font-size: 1.2rem !important;
        white-space: normal !important;
        margin-bottom: 0.5rem !important;
    }
    .luxury-card-desc {
        font-size: 0.88rem !important;
        height: auto !important;
        -webkit-line-clamp: 3 !important;
        line-height: 1.6 !important;
    }
}

.card-slider-item > .template-card,
.card-slider-item > .glass-panel,
.card-slider-item > .luxury-card {
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Luxury Card Styling (Matching user photo mockup - Larger & Clearer) */
.luxury-card {
    background: linear-gradient(180deg, rgba(23, 32, 54, 0.8) 0%, rgba(15, 23, 42, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    touch-action: pan-y !important;
}

.luxury-card a {
    touch-action: pan-y !important;
    -webkit-user-drag: none;
    user-drag: none;
}

.luxury-card:hover {
    border-color: rgba(6, 182, 212, 0.7);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.3);
}

.luxury-card-img-box {
    width: 100%;
    height: 185px;
    aspect-ratio: 16/10;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.1rem;
    position: relative;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y !important;
}

.luxury-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.luxury-card:hover .luxury-card-img {
    transform: scale(1.08);
}

.luxury-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.luxury-card-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.luxury-card-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
    line-height: 1.6;
    text-align: center;
}

.luxury-card-price-pill {
    background: rgba(6, 182, 212, 0.14);
    border: 1.5px solid #22d3ee;
    color: #fff;
    border-radius: 30px;
    padding: 0.55rem 1.2rem;
    font-weight: 800;
    font-size: 1.02rem;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.4);
    margin-bottom: 0.85rem;
    text-align: center;
    display: block;
    width: 100%;
}

.luxury-card-btn {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    border-radius: 14px;
    padding: 0.6rem 1rem;
    font-weight: 800;
    font-size: 0.92rem;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.luxury-card-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #8b5cf6;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Slider Header Controls */
.slider-nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slider-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Side Floating Overlay Arrows (Matching user photo) */
.slider-side-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    border: 2px solid #06b6d4;
    color: #22d3ee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.6);
}

.slider-side-btn:hover {
    background: #06b6d4;
    color: #fff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.9);
}

.slider-side-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-side-prev {
    right: -16px;
}

.slider-side-next {
    left: -16px;
}

@media (max-width: 768px) {
    .slider-side-prev {
        right: 0px;
    }
    .slider-side-next {
        left: 0px;
    }
}

.slider-nav-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Floating Overlay Navigation Arrows (Side controls) */
.slider-arrow-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-glow);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.slider-arrow-side:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.slider-arrow-prev-side {
    right: -15px;
}

.slider-arrow-next-side {
    left: -15px;
}

/* Cards Grid */
.grid-cards-5 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.grid-cards-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.grid-cards-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}

/* Template Card */
.template-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}
.template-card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.template-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.template-card:hover .template-card-img {
    transform: scale(1.08);
}
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
}
.template-card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.template-category {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.template-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}
.template-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.template-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.template-card-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-shrink: 0;
}
.template-card-actions .btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    white-space: nowrap;
    gap: 0.3rem;
}
.price-container {
    display: flex;
    flex-direction: column;
}
.original-price {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: line-through;
}
.final-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

/* Portfolio Card */
.portfolio-card {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
}
.portfolio-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img {
    transform: scale(1.06);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 9, 19, 0.95), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0.9;
    transition: var(--transition);
}

/* Order Capacity Section */
.capacity-box {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    padding: 2.5rem;
    align-items: center;
}
.capacity-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.capacity-svg {
    width: 160px;
    height: 160px;
    transform: rotate(-90deg);
}
.capacity-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 12;
}
.capacity-progress {
    fill: none;
    stroke: url(#primaryGrad);
    stroke-width: 12;
    stroke-dasharray: 440;
    stroke-dashoffset: 110;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.promo-card {
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.promo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    margin-top: auto;
    background: rgba(4, 5, 11, 0.95);
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.4rem;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}
.footer-links li {
    margin-bottom: 0.6rem;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--primary);
    padding-right: 4px;
}
.trust-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}
.trust-badge-img {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    object-fit: contain;
}
.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Order Website Calculator Page */
.order-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
}
.order-tab-btn {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}
.order-tab-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.order-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.service-checkbox-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    margin-bottom: 0.8rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition);
}
.service-checkbox-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}
.service-checkbox-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.12);
}
.checkbox-custom {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 1rem;
    flex-shrink: 0;
}
.service-checkbox-card.selected .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.summary-sidebar {
    position: sticky;
    top: 100px;
    padding: 1.75rem;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.summary-total {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}
.modal-box {
    width: 100%;
    max-width: 600px;
    background: #0f1429;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 2.2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}
.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

/* Admin Panel Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #050711;
}

.admin-sidebar {
    width: 270px;
    background: rgba(10, 13, 27, 0.95);
    border-left: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 100;
    overflow-y: auto;
}

.admin-content {
    flex-grow: 1;
    margin-right: 270px;
    padding: 2rem;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    margin: 0.2rem 0.8rem;
    transition: var(--transition);
}
.admin-menu-link:hover, .admin-menu-link.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.custom-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
    text-align: right;
}
.custom-table th {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-glass);
}
.custom-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.9rem;
    vertical-align: middle;
}
.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-grid-2-1,
.admin-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.form-grid-1-2,
.admin-grid-1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: start;
}
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.admin-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.admin-grid-4-btn,
.capacity-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 180px;
    gap: 1rem;
    align-items: end;
}

@media (max-width: 992px) {
    .capacity-form-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 576px) {
    .capacity-form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
    .capacity-form-grid .btn-submit-capacity {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Step Progress Indicator */
.steps-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}
.step-item.active .step-number {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 0 15px var(--primary);
}
.step-item.active {
    color: #fff;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.toast-msg {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: #121833;
    border: 1px solid var(--primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Select Dropdown options force color */
.form-control option {
    background: #0f1429 !important;
    color: #fff !important;
}

/* Collapsable Admin Sidebar */
.admin-sidebar {
    transition: var(--transition);
}
.admin-sidebar.collapsed {
    width: 80px;
}
.admin-sidebar.collapsed .menu-text {
    display: none;
}
.admin-sidebar.collapsed .badge {
    display: none;
}
.admin-sidebar.collapsed .admin-menu-link {
    justify-content: center;
    padding: 0.85rem;
}

.admin-content {
    transition: var(--transition);
}
.admin-content.collapsed-content {
    margin-right: 80px;
}

/* Admin Mobile Toggle Button (hamburger) */
.admin-mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Admin Sidebar Close Button (visible only on mobile) */
.admin-sidebar-close {
    display: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 0.35rem;
    align-items: center;
    justify-content: center;
}

/* Admin Sidebar Overlay (mobile) */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.admin-sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .grid-cards-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-cards-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .order-calculator-grid { grid-template-columns: 1fr; }
    
    /* Admin: Collapse sidebar on tablet */
    .admin-sidebar { width: 80px; }
    .admin-sidebar .menu-text { display: none; }
    .admin-sidebar .badge { display: none; }
    .admin-sidebar .admin-menu-link { justify-content: center; padding: 0.85rem; }
    .admin-content { margin-right: 80px; }
}

@media (max-width: 768px) {
    /* ─── Public Site Mobile ─── */
    .main-nav { display: none; }
    .mobile-menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 2.1rem; }
    .hero-buttons { justify-content: center; }
    .grid-cards-5, .grid-cards-3, .grid-cards-4 { grid-template-columns: 1fr; }
    .capacity-box { grid-template-columns: 1fr; text-align: center; }
    .promo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    /* ─── Admin Panel Mobile ─── */
    .admin-mobile-toggle {
        display: flex;
    }
    .admin-sidebar-close {
        display: flex;
    }
    .admin-sidebar-overlay {
        display: block;
    }
    .admin-sidebar {
        right: -280px;
        width: 270px;
        transition: right 0.35s ease;
        z-index: 200;
    }
    .admin-sidebar.open {
        right: 0;
    }
    .admin-sidebar .menu-text { display: inline; }
    .admin-sidebar .badge { display: inline-flex; }
    .admin-sidebar .admin-menu-link { justify-content: flex-start; padding: 0.85rem 1.25rem; }
    
    .admin-content {
        margin-right: 0;
        padding: 1rem;
    }
    .admin-content.collapsed-content {
        margin-right: 0;
    }

    /* Admin Header Responsive */
    .admin-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .admin-header h1 {
        font-size: 1.3rem !important;
    }

    /* Admin KPI Cards & Grids → Collapse cleanly */
    .admin-content div[style*="grid-template-columns: repeat(4"],
    .admin-content div[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* Admin Charts, Form splits & 2-column layouts → stack on mobile */
    .admin-grid-1-2,
    .admin-grid-2-1,
    .admin-grid-2,
    .admin-grid-3,
    .admin-grid-4,
    .admin-grid-4-btn,
    .form-grid-1-2,
    .form-grid-2-1,
    .form-grid-2,
    .admin-content div[style*="grid-template-columns"],
    .admin-content form[style*="grid-template-columns"],
    .admin-content section[style*="grid-template-columns"],
    div[style*="grid-template-columns"],
    form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Action bars and flex search toolbars → wrap */
    .admin-content div[style*="display: flex"][style*="justify-content: space-between"] {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Tables scroll horizontally */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }
    .custom-table {
        min-width: 600px;
    }
    .custom-table th,
    .custom-table td {
        padding: 0.7rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Modal fix for mobile */
    .modal-box {
        max-width: 95vw;
        padding: 1.25rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-box div[style*="grid-template-columns"],
    .modal-box div[style*="display: grid"],
    .modal-box div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Form grids inside admin → stack */
    div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"],
    div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    /* Extra small phones */
    .admin-content {
        padding: 0.75rem;
    }
    .admin-content div[style*="grid-template-columns: repeat(4"],
    .admin-content div[style*="grid-template-columns:repeat(4"],
    .admin-content div[style*="grid-template-columns: repeat(2"],
    .admin-content div[style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-header > div {
        width: 100%;
    }
    .order-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    .steps-progress {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-desc {
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   Admin Panel Layout & Responsive Mobile Styles
   ========================================================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg-dark);
    position: relative;
}

.admin-sidebar {
    width: 270px;
    min-width: 270px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-glass);
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-sidebar-overlay.open {
    display: block;
    opacity: 1;
}

.admin-sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    margin: 0.25rem 0.75rem;
    transition: var(--transition-fast);
}

.admin-menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.admin-menu-link.active {
    background: rgba(99, 102, 241, 0.18);
    color: #ffffff;
    font-weight: 700;
    border-right: 3px solid var(--primary);
}

.admin-content {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-x: hidden;
    min-width: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    padding: 0.55rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

@media (max-width: 992px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(100%);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-sidebar-close {
        display: block;
    }
    .admin-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .admin-content {
        padding: 1.5rem 1rem;
    }
    .admin-content div[style*="grid-template-columns: repeat(4, 1fr)"],
    .admin-content div[style*="grid-template-columns: repeat(4,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .admin-content div[style*="grid-template-columns: 2fr 1fr"],
    .admin-content div[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 576px) {
    .admin-content div[style*="grid-template-columns: repeat(4, 1fr)"],
    .admin-content div[style*="grid-template-columns: repeat(2, 1fr)"],
    .admin-content div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Global Glassmorphism Modal System
   ========================================================================== */
/* ==========================================================================
   Global Glassmorphism Modal System & Responsive Helpers
   ========================================================================== */
.modal-overlay,
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.open,
.modal-overlay.active,
.modal-backdrop.open,
.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content,
.modal-box {
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    transform: scale(0.94);
    transition: transform 0.3s ease;
    color: #ffffff;
    box-sizing: border-box;
    margin: auto;
    position: relative;
}

.modal-overlay.open .modal-content,
.modal-overlay.open .modal-box,
.modal-overlay.active .modal-content,
.modal-overlay.active .modal-box,
.modal-backdrop.open .modal-content,
.modal-backdrop.open .modal-box,
.modal-backdrop.active .modal-content,
.modal-backdrop.active .modal-box {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1.25rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.4rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.step-line {
    width: 50px;
    height: 2px;
    background: var(--border-glass);
    flex-shrink: 0;
    transition: var(--transition);
}
.step-line.active {
    background: var(--primary);
}

/* Header & Modal Mobile Adjustments */
@media (max-width: 768px) {
    .header-actions {
        gap: 0.4rem;
    }
    .header-actions .btn-sm {
        padding: 0.4rem 0.65rem;
        font-size: 0.82rem;
    }
    .header-btn-login .btn-text,
    .header-btn-user .btn-text {
        display: none;
    }
    .modal-overlay,
    .modal-backdrop {
        padding: 0.75rem;
    }
    .modal-box,
    .modal-content {
        max-width: 95vw !important;
        padding: 1.35rem 1.1rem !important;
        border-radius: var(--radius-lg) !important;
    }
    .modal-form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .modal-actions {
        flex-direction: column-reverse !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    .modal-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .site-header {
        position: sticky;
        top: 0;
    }
    .header-inner {
        height: 68px;
    }
    .brand-logo {
        font-size: 0.95rem;
        gap: 0.4rem;
    }
    .brand-logo svg {
        width: 26px;
        height: 26px;
    }
    .header-actions {
        gap: 0.35rem;
    }
    .header-actions .btn-sm {
        padding: 0.4rem 0.55rem;
        font-size: 0.78rem;
    }
    .steps-progress {
        flex-direction: column;
        gap: 0.75rem;
    }
    .step-line {
        width: 2px;
        height: 20px;
    }
}

@media (max-width: 440px) {
    .header-btn-cta .btn-text {
        display: none;
    }
    .header-btn-cta {
        padding: 0.45rem 0.65rem !important;
    }
}

/* ==========================================================================
   Admin Panel Layout & Responsive Dashboard System
   ========================================================================== */
.admin-wrapper {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-dark);
    position: relative;
    box-sizing: border-box;
}

.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-sidebar-overlay.open {
    display: block;
    opacity: 1;
}

.admin-sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    margin: 0.25rem 0.75rem;
    transition: var(--transition-fast);
}

.admin-menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.admin-menu-link.active {
    background: rgba(99, 102, 241, 0.18);
    color: #ffffff;
    font-weight: 700;
    border-right: 3px solid var(--primary);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Desktop Screens (> 1024px) */
@media (min-width: 1025px) {
    .admin-wrapper {
        display: flex;
    }
    .admin-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 270px;
        background: #0f172a;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-glass);
        height: 100vh;
        display: flex;
        flex-direction: column;
        z-index: 2000;
    }
    .admin-content {
        margin-right: 270px;
        width: calc(100% - 270px);
        padding: 2rem 2.5rem;
        min-height: 100vh;
        overflow-x: hidden;
        box-sizing: border-box;
    }
}

/* Tablet Screens (1025px to 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .admin-content {
        padding: 1.5rem 1.5rem;
    }
    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile & Small Tablets (<= 1024px) */
@media (max-width: 1024px) {
    .admin-wrapper {
        display: block;
        width: 100%;
    }
    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: -320px !important;
        left: auto !important;
        width: 280px !important;
        max-width: 85vw !important;
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-glass);
        height: 100vh;
        display: flex;
        flex-direction: column;
        z-index: 2000 !important;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.7);
    }
    .admin-sidebar.open {
        right: 0 !important;
    }
    .admin-sidebar-close {
        display: block !important;
    }
    .admin-mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    .admin-content {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1.25rem 1rem !important;
        box-sizing: border-box;
    }
}

/* Mobile Screens & Small Displays (<= 768px) */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 1rem !important;
    }
    .admin-header h1 {
        font-size: 1.35rem !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }
    .admin-header p {
        font-size: 0.82rem !important;
    }
    .admin-header .btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        margin-bottom: 1rem !important;
    }
    .table th, .table td,
    .custom-table th, .custom-table td {
        padding: 0.75rem 0.6rem !important;
        font-size: 0.82rem !important;
    }
    .table td strong,
    .custom-table td strong {
        font-size: 0.85rem !important;
        word-break: break-word !important;
    }
    .form-grid-2,
    .form-grid-2-1 {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
    .modal > div, .modal .glass-panel, .modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
        padding: 1.25rem 0.9rem !important;
        margin: 1rem auto !important;
    }
}

/* Fix Chart.js & Grid canvas overflow on Desktop & Mobile */
.admin-charts-grid,
.admin-tables-grid,
.admin-kpi-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-charts-grid > div,
.admin-tables-grid > div,
.admin-kpi-grid > div {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile & Tablet Specific Overrides (<= 1024px) */
@media (max-width: 1024px) {
    .admin-charts-grid,
    .admin-tables-grid,
    .admin-content div[style*="grid-template-columns"],
    .admin-content div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    .admin-kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Modal System Standard Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 5, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay.open,
.modal-overlay.active {
    display: flex !important;
}

.modal-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 520px;
    padding: 1.75rem;
    position: relative;
    animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Bright Glassmorphism Product Banner Slider (Exact Match to User Reference Screenshot) */
.luxury-banner-slider {
    position: relative;
    border-radius: 24px;
    padding: 3rem 4.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(30, 41, 69, 0.65) 35%, rgba(15, 23, 42, 0.85) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.4), 0 25px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

/* Warm Golden/Bright Light Highlight Reflection (Top-Right in RTL / Top-Left in LTR) */
.luxury-banner-slider::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -40px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 235, 180, 0.28) 0%, rgba(255, 255, 255, 0.12) 40%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

/* Additional Cyan Soft Glow Highlight on the Left */
.luxury-banner-slider::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

.luxury-slider-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.luxury-slider-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.85rem;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.luxury-slider-desc {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 1.85rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 3 Side-by-Side Products Showcase (Matching Reference Image) */
.luxury-showcase-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.luxury-product-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.luxury-product-item:hover {
    transform: translateY(-8px) scale(1.03);
}

.neon-badge {
    position: absolute;
    top: -26px;
    background: rgba(14, 165, 233, 0.18);
    border: 1.8px solid #38bdf8;
    color: #38bdf8;
    font-size: 0.76rem;
    font-weight: 900;
    padding: 0.22rem 0.7rem;
    border-radius: 20px;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
    white-space: nowrap;
    z-index: 5;
}

.luxury-product-img {
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 18px rgba(56, 189, 248, 0.35));
    max-height: 220px;
    object-fit: contain;
}

/* Highly Visible & Sleek Navigation Arrow Buttons */
.slider-arrow-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 999 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.3) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    opacity: 0.92 !important;
    visibility: visible !important;
    outline: none !important;
}
.slider-arrow-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: #ffffff !important;
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.85), 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}
.slider-arrow-prev { right: 1.25rem !important; left: auto !important; }
.slider-arrow-next { left: 1.25rem !important; right: auto !important; }

.slider-arrow-prev:hover {
    transform: translateY(-50%) scale(1.12) translateX(2px) !important;
}
.slider-arrow-next:hover {
    transform: translateY(-50%) scale(1.12) translateX(-2px) !important;
}
.slider-arrow-btn:active {
    transform: translateY(-50%) scale(0.94) !important;
}

.slider-arrow-btn svg,
.slider-arrow-btn i {
    width: 24px !important;
    height: 24px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
    stroke-width: 2.8 !important;
    pointer-events: none !important;
    transition: transform 0.25s ease !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

@media (max-width: 992px) {
    .luxury-banner-slider {
        padding: 0 !important;
    }
    .slide-content-overlay {
        padding: 0 2.25rem !important;
        text-align: center !important;
        justify-content: center !important;
    }
    .slide-content-overlay .hero-buttons {
        justify-content: center !important;
    }
    .luxury-slider-title {
        font-size: 1.85rem !important;
    }
}

@media (max-width: 576px) {
    .luxury-banner-slider {
        border-radius: 18px !important;
    }
    .slide-content-overlay {
        padding: 0 1.1rem !important;
    }
    .luxury-slider-title {
        font-size: 1.4rem !important;
    }
    .luxury-slider-desc {
        font-size: 0.85rem !important;
        margin-bottom: 1.25rem !important;
    }
    .slider-arrow-btn {
        width: 38px !important;
        height: 38px !important;
    }
    .slider-arrow-btn svg,
    .slider-arrow-btn i {
        width: 18px !important;
        height: 18px !important;
    }
    .slider-arrow-prev { right: 0.5rem !important; }
    .slider-arrow-next { left: 0.5rem !important; }
}

/* ─── Premium Footer Social Media Buttons ─── */
.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}
.social-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    stroke-width: 2.2 !important;
    transition: transform 0.3s ease !important;
    pointer-events: none !important;
    display: block !important;
}
.social-btn svg.fill-icon,
.social-btn.has-fill-icon svg,
.social-btn svg.fill-icon path {
    stroke: none !important;
    stroke-width: 0 !important;
    fill: #ffffff !important;
}
.social-btn img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    pointer-events: none !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}
.social-btn:hover {
    transform: translateY(-4px) scale(1.08) !important;
}
.social-btn:hover svg,
.social-btn:hover img {
    transform: scale(1.15) !important;
}

.social-btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    box-shadow: 0 4px 18px rgba(220, 39, 67, 0.45) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
}
.social-btn-instagram:hover {
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.social-btn-telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%) !important;
    box-shadow: 0 4px 18px rgba(42, 171, 238, 0.45) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
}
.social-btn-telegram:hover {
    box-shadow: 0 8px 25px rgba(42, 171, 238, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.social-btn-rubika {
    background: linear-gradient(135deg, #7928CA 0%, #4C1D95 100%) !important;
    box-shadow: 0 4px 18px rgba(121, 40, 202, 0.45) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
}
.social-btn-rubika:hover {
    box-shadow: 0 8px 25px rgba(121, 40, 202, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.social-btn-eitaa {
    background: linear-gradient(135deg, #FF7900 0%, #D84315 100%) !important;
    box-shadow: 0 4px 18px rgba(243, 112, 35, 0.45) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
}
.social-btn-eitaa:hover {
    box-shadow: 0 8px 25px rgba(243, 112, 35, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.social-btn-bale {
    background: linear-gradient(135deg, #00B894 0%, #008f72 100%) !important;
    box-shadow: 0 4px 18px rgba(0, 184, 148, 0.45) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
}
.social-btn-bale:hover {
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.social-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
}
.social-btn-whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

/* ─── Ultra-Smooth Mobile Touch Scroll & Performance Optimization ─── */
@media (max-width: 768px) {
    html {
        overflow: visible !important;
        scroll-behavior: auto !important;
        height: auto !important;
    }

    body {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        scroll-behavior: auto !important;
        touch-action: auto !important;
        height: auto !important;
        position: relative !important;
        width: 100% !important;
    }

    /* Prevent mobile GPU lag caused by heavy backdrop blur shaders during scroll */
    .glass-panel,
    .luxury-card,
    .card-slider-item,
    .card-slider-wrapper {
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        transform: translateZ(0);
    }

    /* Ensure card slider and all nested interactive containers never block vertical touch gestures */
    .card-slider-wrapper,
    .card-slider-container,
    .card-slider-track,
    .card-slider-item,
    .luxury-card,
    .luxury-card a,
    .luxury-card-img-box {
        touch-action: pan-y !important;
    }

    .card-slider-wrapper,
    .card-slider-container,
    .card-slider-track {
        overflow: visible !important;
    }

    .luxury-card-img-box {
        overflow: hidden !important;
    }
}

/* ─── Responsive Collapsible Portfolio Category Tabs ─── */
.portfolio-category-nav-wrapper {
    width: 100%;
}

.portfolio-cat-mobile-trigger {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: rgba(18, 25, 50, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

.portfolio-cat-mobile-trigger:active {
    transform: scale(0.98);
}

.portfolio-cat-mobile-trigger .cat-chevron {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--secondary);
}

.portfolio-cat-mobile-trigger .cat-chevron.rotated {
    transform: rotate(180deg);
}

.portfolio-cat-tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.portfolio-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.48rem 1.15rem;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-sizing: border-box;
    cursor: pointer;
    border: 1px solid transparent;
    outline: none;
    font-family: inherit;
}

.cat-count-badge {
    font-size: 0.72rem;
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 0.25rem;
    transition: var(--transition);
}

@media (min-width: 769px) {
    .portfolio-cat-link {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-glass);
        color: var(--text-muted);
    }
    .portfolio-cat-link:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.25);
    }
    .portfolio-cat-link.active {
        background: var(--primary-gradient);
        border-color: transparent;
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }
    .portfolio-cat-link.active .cat-count-badge {
        background: rgba(255, 255, 255, 0.25);
        color: #ffffff;
    }
}

@media (max-width: 768px) {
    .portfolio-cat-mobile-trigger {
        display: flex !important;
    }

    .portfolio-cat-tabs-list {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        background: #0f172a !important;
        border: 1.5px solid rgba(99, 102, 241, 0.4) !important;
        border-radius: 16px !important;
        padding: 0.6rem !important;
        gap: 0.4rem !important;
        box-sizing: border-box !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7) !important;
        margin-top: 0.6rem !important;
    }

    .portfolio-cat-tabs-list.open {
        display: flex !important;
    }

    .portfolio-cat-tabs-list .portfolio-cat-link {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.85rem 1.15rem !important;
        border-radius: 12px !important;
        font-size: 0.92rem !important;
        font-weight: 600 !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        color: #cbd5e1 !important;
        box-sizing: border-box !important;
    }

    .portfolio-cat-tabs-list .portfolio-cat-link.active {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.35) 100%) !important;
        border: 1.5px solid #6366f1 !important;
        color: #ffffff !important;
        font-weight: 800 !important;
    }

    .portfolio-cat-tabs-list .portfolio-cat-link.active .cat-count-badge {
        background: #6366f1 !important;
        color: #ffffff !important;
    }

    /* Disable expensive blur filters on mobile to eliminate page hang */
    .glass-panel,
    .template-card,
    .portfolio-cat-mobile-trigger,
    .portfolio-cat-tabs-list {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .template-card {
        background: #111827 !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
        contain: content;
    }

    /* Hide awkward floating slider arrow buttons on mobile */
    .slider-nav-controls {
        display: none !important;
    }

    .card-slider-item {
        display: flex;
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    .card-slider-item.is-hidden,
    .portfolio-card-item.is-hidden,
    .home-template-card-item.is-hidden,
    .store-template-card-item.is-hidden {
        display: none !important;
    }
}





