/* 
 * DzShop Motors - Premium CSS System
 * Apple-inspired Design System
 */

/* =============================================
   CRYSTAL GLASS KEYFRAME ANIMATIONS
   ============================================= */
@keyframes crystalShimmer {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(50%); }
    100% { transform: translateX(0); }
}

@keyframes prismShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes crystalPulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}


:root {
    /* Colors - Pure Apple Palette */
    --primary: #0071e3;
    --primary-hover: #0077ed;
    --secondary: #1d1d1f;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --border-color: #d2d2d7;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shimmer: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --container-max: 1200px;
    --section-pad: 80px;

    /* Aliases used across views */
    --text-color: var(--text-main);
    --text-dark: var(--text-main);
    --bg-elevated: #f5f5f7;
}

[data-theme="dark"] {
    --bg-light: #000000;
    --bg-white: #1d1d1f;
    --bg-elevated: #2c2c2e;
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --text-color: var(--text-main);
    --text-dark: var(--text-main);
    --border-color: #424245;
    --glass-bg: rgba(29, 29, 31, 0.85);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shimmer: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0) 100%);
    color-scheme: dark;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.py-5 {
    padding: var(--section-pad) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    font-size: 14px;
    position: relative;
    top: 0;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 113, 227, 0.2);
}

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

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* Navbar - Crystal Glassmorphism */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Crystal glass base */
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    /* Prismatic shimmer border */
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    height: 64px;
    display: flex;
    align-items: center;
    /* Crystal depth shadows */
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 -1px 0 rgba(255, 255, 255, 0.2) inset,
        0 4px 24px rgba(0, 0, 0, 0.08);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.18) 45%,
        rgba(120, 180, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.18) 55%,
        transparent 65%
    );
    background-size: 200% 100%;
    animation: prismShift 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.navbar > * {
    position: relative;
    z-index: 1;
}

[data-theme='dark'] .navbar {
    background: rgba(18, 18, 20, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 4px 24px rgba(0, 0, 0, 0.35);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.logo-emblem {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.logo-emblem svg {
    width: 100%;
    height: 100%;
}

.logo:hover .logo-emblem {
    transform: rotate(5deg) scale(1.08);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
}

.logo-text span {
    color: var(--primary);
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-main);
    font-size: 14px;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    color: white;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, #fff 0%, #0071e3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3D Modern Cards */
.listing-card,
.category-card,
.pricing-card,
.filter-card,
.glass-card {
    background: var(--bg-white);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

.listing-card:not(.ui-3d):hover,
.category-card:not(.ui-3d):hover,
.pricing-card:not(.ui-3d):hover,
.glass-card:not(.ui-3d):hover {
    transform: translateY(-12px) rotateX(2deg) rotateY(1deg);
    box-shadow: var(--shadow-3d);
}

.listing-card::before,
.glass-card::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: var(--glass-shimmer);
    transform: rotate(45deg);
    transition: all 0.8s ease;
    pointer-events: none;
    z-index: 0;
}

/* Ensure all content inside glass-card sits above the shimmer overlay */
.glass-card > *,
.listing-card > * {
    position: relative;
    z-index: 1;
}

.listing-card:hover::before,
.glass-card:hover::before {
    top: 150%;
    left: 150%;
}

/* Animations */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.logo-icon i,
.badge,
.status-badge {
    animation: floating 3s ease-in-out infinite;
}

/* Typography Modernization */
.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Marketplace Styles */
.main-search-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

select {
    appearance: none;
    -webkit-appearance: none;
    color: var(--text-main);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px !important;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

[data-theme='dark'] select {
    color: var(--text-main);
    background-color: var(--bg-elevated);
    border-color: var(--border-color);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

[data-theme='dark'] select option {
    background-color: var(--bg-white);
    color: var(--text-main);
}

/* Optgroup separator styling - Cars vs Motorcycles */
select optgroup {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background-color: var(--bg-light);
    padding: 4px 0;
}

select optgroup option {
    font-weight: 500;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    padding-left: 12px;
    color: var(--text-main);
    background-color: var(--bg-white);
}

[data-theme='dark'] select optgroup {
    color: #60a5fa;
    background-color: var(--bg-elevated);
}

[data-theme='dark'] select optgroup option {
    background-color: var(--bg-white);
    color: var(--text-main);
}

[data-theme='dark'] input,
[data-theme='dark'] textarea {
    color: var(--text-main);
}

[data-theme='dark'] input::placeholder,
[data-theme='dark'] textarea::placeholder {
    color: var(--text-muted);
}

[data-theme='dark'] .search-input-wrapper input {
    background: var(--bg-elevated) !important;
    color: var(--text-main) !important;
}

[data-theme='dark'] .search-input-wrapper input:focus {
    background: var(--bg-white) !important;
}

[data-theme='dark'] .price-inputs input {
    background: var(--bg-elevated) !important;
    color: var(--text-main) !important;
}

[data-theme='dark'] .price-inputs input:focus {
    background: var(--bg-white) !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.25);
}

[data-theme='dark'] .premium-form input,
[data-theme='dark'] .premium-form textarea,
[data-theme='dark'] .premium-form select,
[data-theme='dark'] .auth-form input {
    background: var(--bg-elevated);
    color: var(--text-main);
}

[data-theme='dark'] .premium-form input:focus,
[data-theme='dark'] .premium-form textarea:focus,
[data-theme='dark'] .premium-form select:focus,
[data-theme='dark'] .auth-form input:focus {
    background: var(--bg-white);
}

[data-theme='dark'] .auth-form input:focus,
[data-theme='dark'] .premium-form input:focus {
    background: var(--bg-white);
}

/* User Dashboard & Details Styles */
.dashboard-layout,
.details-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.details-grid {
    grid-template-columns: 1fr 380px;
    min-width: 0;
}

/* Prevent grid children from overflowing their columns (grid blowout fix) */
.details-main,
.details-sidebar {
    min-width: 0;
    overflow: hidden;
}

/* Gallery container should be strictly contained */
.gallery-container {
    width: 100%;
    overflow: hidden;
}

.gallery-container .swiper {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 992px) {

    .dashboard-layout,
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Final Polish */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary);
    backdrop-filter: blur(10px);
    border-radius: 980px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 113, 227, 0.2);
}

.status-badge.active {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

/* Auth Card Modernization */
.auth-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    padding: 48px;
    border-radius: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-3d), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Re-integrating essential components */

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 140px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
    z-index: 1000;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.lang-dropdown a:hover {
    background: var(--primary);
    color: white;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

/* Listing Card Details */
.card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

/* ── DzCars Watermark ──────────────────────────────────────────── */

/* Bottom gradient scrim — makes watermark text always readable */
.card-img::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 3;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    pointer-events: none;
}

.card-img::after {
    content: '\1F697  DZ Cars';
    position: absolute;
    bottom: 10px;
    right: 12px;
    z-index: 4;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
        0 1px 4px rgba(0,0,0,0.8),
        0 0 12px rgba(0,0,0,0.4);
    background: linear-gradient(135deg,
        rgba(255,165,0,0.18) 0%,
        rgba(0,0,0,0.30) 100%);
    padding: 4px 9px;
    border-radius: 7px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,200,80,0.30);
    pointer-events: none;
    user-select: none;
}

/* Gallery watermark for show/detail page */
.gallery-watermark {
    position: relative;
    overflow: hidden;
}



/* Diagonal repeated watermark for the full-size main slider */
.gallery-watermark-tiled::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 60px,
        rgba(255,255,255,0.04) 60px,
        rgba(255,255,255,0.04) 61px
    );
}
/* ────────────────────────────────────────────────────────────────── */

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.listing-card:not(.ui-3d):hover .card-img img {
    transform: scale(1.1);
}

.ui-3d .card-img {
    overflow: hidden;
}

.ui-3d .card-img img,
.ui-3d .category-img img {
    transition: transform 0.12s ease-out;
    will-change: transform;
}

.card-content {
    padding: 20px;
}

.card-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-meta .year,
.card-meta .brand {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: var(--bg-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.listing-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.wishlist-btn:hover {
    transform: scale(1.08);
    color: #ff3b30;
}

[data-theme='dark'] .wishlist-btn {
    background: rgba(29, 29, 31, 0.92);
    color: #f5f5f7;
    border: 1px solid var(--border-color);
}

/* Car brand logo strip (homepage / filters) */
.brand-logos img,
.brand-logo,
img.brand-logo {
    max-height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: var(--transition-fast);
}

.brand-logos a:hover img,
.brand-logos button:hover img {
    opacity: 1;
    transform: scale(1.05);
}

[data-theme='dark'] .brand-logos img,
[data-theme='dark'] .brand-logo,
[data-theme='dark'] img.brand-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

/* Grid Systems */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.category-card {
    height: 400px;
}

.category-img {
    height: 100%;
}

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

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

/* Footer - Crystal Glassmorphism */
.main-footer {
    position: relative;
    /* Crystal frosted glass */
    background: rgba(248, 249, 255, 0.88);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    /* Prismatic top border */
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    padding: 80px 0 40px;
    /* Crystal depth */
    box-shadow:
        0 -1px 0 rgba(255, 255, 255, 1) inset,
        0 -8px 32px rgba(99, 102, 241, 0.06);
    overflow: hidden;
}

/* Prismatic gradient overlay */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        #a78bfa, #60a5fa, #38bdf8, #34d399,
        #60a5fa, #a78bfa, #f472b6, #60a5fa
    );
    background-size: 300% 100%;
    animation: prismShift 8s linear infinite;
    opacity: 0.7;
    z-index: 1;
}

/* Floating crystal shimmer sweep */
.main-footer::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    width: 200%;
    background: linear-gradient(
        110deg,
        transparent 40%,
        rgba(255, 255, 255, 0.12) 48%,
        rgba(147, 197, 253, 0.08) 52%,
        rgba(255, 255, 255, 0.12) 56%,
        transparent 64%
    );
    animation: crystalShimmer 9s ease-in-out 2s infinite;
    pointer-events: none;
    z-index: 0;
}

.main-footer > * {
    position: relative;
    z-index: 1;
}

[data-theme='dark'] .main-footer {
    background: rgba(10, 10, 14, 0.88);
    backdrop-filter: blur(30px) saturate(140%);
    -webkit-backdrop-filter: blur(30px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.05) inset,
        0 -8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .main-footer::before {
    opacity: 0.4;
}

[data-theme='dark'] .main-footer::after {
    background: linear-gradient(
        110deg,
        transparent 40%,
        rgba(255, 255, 255, 0.04) 48%,
        rgba(96, 165, 250, 0.04) 52%,
        rgba(255, 255, 255, 0.04) 56%,
        transparent 64%
    );
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-info p {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-info .logo {
        justify-content: center;
    }
    .footer-info .social-links {
        justify-content: center;
    }
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

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

.footer-legal a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
    }
}

/* Forms */
.auth-form .form-group,
.premium-form .form-group {
    margin-bottom: 24px;
}

.auth-form label,
.premium-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.auth-form input,
.premium-form input,
.premium-form textarea {
    width: 100%;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.auth-form input:focus,
.premium-form input:focus {
    border-color: var(--primary);
    outline: none;
    background: white;
}

/* Dashboard Nav */
.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* 3D Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.pricing-card {
    padding: 48px;
    display: flex;
    flex-direction: column;
}

.pricing-card.premium {
    border: 2px solid var(--primary);
}


/* Sort Options Horizontal Alignment */
.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    white-space: nowrap;
}

.sort-options label {
    font-weight: 600;
    color: var(--text-muted);
}

.sort-options select {
    min-width: 160px;
}

/* Navbar Actions Alignment */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions .btn {
    padding: 8px 20px;
    font-size: 13px;
}

.theme-toggle {
    margin-left: 10px;
}

[dir='rtl'] .theme-toggle {
    margin-left: 0;
    margin-right: 10px;
}

/* Auth Container Alignment */
.auth-container {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(0, 113, 227, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(0, 113, 227, 0.05), transparent);
    padding: 60px 20px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Enhanced Footer Branding & Socials */
.footer-info .logo {
    margin-bottom: 24px;
    display: inline-flex;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: var(--bg-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 18px;
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-8px) rotate(8deg);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.25);
    border-color: var(--primary);
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}


/* Theme Toggle Visibility Fix */
.theme-toggle i {
    color: var(--text-main);
    font-size: 18px;
    transition: var(--transition-fast);
}

[data-theme='dark'] .theme-toggle i {
    color: #ff9f0a;
    /* Sun icon color in dark mode */
}

.theme-toggle:hover i {
    transform: rotate(20deg) scale(1.2);
}


/* Filter Sidebar Modernization */
.filters-sidebar {
    position: sticky;
    top: 100px;
}

.filter-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.price-inputs {
    display: flex;
    gap: 12px;
}

.price-inputs input {
    width: 100%;
    padding: 10px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.price-inputs input:focus {
    border-color: var(--primary);
    background: white;
}

/* Custom Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0;
    transition: var(--transition-fast);
}

.checkbox-group input[type='checkbox'] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.checkbox-group input[type='checkbox']:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-group input[type='checkbox']:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



/* Professional Filter Card Redesign */
.filter-card {
    padding: 40px !important;
}

.filter-group {
    margin-bottom: 32px;
}

.filter-group label {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.price-inputs input {
    height: 48px;
    border-radius: 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0 16px;
    font-size: 14px;
    transition: var(--transition-base);
}

.price-inputs input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.checkbox-group label:hover {
    color: var(--primary);
}

.checkbox-group input[type='checkbox'] {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--bg-light);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.btn-apply {
    height: 52px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 16px;
}

.btn-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-clear:hover {
    color: var(--primary);
}


/* Marketplace Layout Grid Fix */
.marketplace-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
}

.filters-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 1024px) {
    .marketplace-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 40px;
    }
}

/* Checkbox alignment fix */
.checkbox-group input[type='checkbox'] {
    flex-shrink: 0;
    margin: 0;
}


/* Listings Toolbar Alignment Fix */
.listings-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.results-count {
    font-size: 15px;
    color: var(--text-muted);
}

.results-count span {
    font-weight: 700;
    color: var(--text-main);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-options label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    margin-bottom: 0;
}

.sort-options select {
    min-width: 180px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .listings-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sort-options {
        width: 100%;
    }

    .sort-options select {
        width: 100%;
    }
}

/* Premium Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: #000;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 10s linear;
}

.swiper-slide-active .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #fff;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 122, 255, 0.2);
    color: #007aff;
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 122, 255, 0.3);
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    font-family: 'Outfit', sans-serif;
}

.text-gradient {
    background: linear-gradient(135deg, #007aff 0%, #00c6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(0, 122, 255, 0.6);
    transform: translateY(-2px);
}

/* Swiper Nav Customization */
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
    color: #fff;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-section .swiper-button-next:after,
.hero-section .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.hero-section .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    margin: 0 8px !important;
}

.hero-section .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 30px;
    border-radius: 980px;
}

@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
    }

    .hero-section {
        height: 80vh;
    }
}


/* 3D Pricing Modernization */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding: 40px 0;
    perspective: 1000px;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    padding: 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-base);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pricing-card.premium {
    border: 2px solid var(--primary);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 113, 227, 0.15);
}

.pricing-card.premium:not(.ui-3d) {
    transform: scale(1.05);
}

.pricing-card:not(.ui-3d):hover {
    transform: translateY(-20px) rotateX(4deg) rotateY(2deg);
    box-shadow: var(--shadow-3d);
}

.pricing-card.premium:not(.ui-3d):hover {
    transform: translateY(-20px) scale(1.05) rotateX(4deg) rotateY(2deg);
}

.pricing-card.premium.ui-3d {
    z-index: 10;
    --tilt-s: 1.05;
}

.card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.pricing-card .card-header h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.pricing-card .card-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.pricing-card .price {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-card .price span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-card .features li {
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-main);
}

.pricing-card .features li i {
    color: #34c759;
    font-size: 16px;
}

.pricing-card .features li.disabled {
    opacity: 0.4;
    text-decoration: line-through;
}

.pricing-card .features li.disabled i {
    color: var(--text-muted);
}

.pricing-card .btn {
    height: 52px;
    border-radius: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.pricing-card .btn-glass:hover {
    background: rgba(0, 113, 227, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Shimmer Animation for Premium Card */
.pricing-card.premium::after {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    transition: 0.8s;
    pointer-events: none;
}

.pricing-card.premium:hover::after {
    top: 150%;
    left: 150%;
}


/* Utility Classes for Home Page */
.mt-5 {
    margin-top: 48px !important;
}

.mb-5 {
    margin-bottom: 48px !important;
}

.text-center {
    text-align: center !important;
}

.section-footer {
    display: flex;
    justify-content: center;
    width: 100%;
}


/* 3D Finance Calculator */
.finance-calculator {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 48px;
    max-width: 900px;
    margin: 60px auto;
    box-shadow: var(--shadow-3d);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.range-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
}

.range-group input[type='range'] {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 10px;
    appearance: none;
    outline: none;
}

.range-group input[type='range']::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 113, 227, 0.4);
}

.calc-result {
    text-align: center;
    padding: 40px;
    background: rgba(0, 113, 227, 0.05);
    border-radius: 24px;
    border: 1px dashed var(--primary);
}

.result-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 10px;
}


/* Fix spacing for Section Headers */
.section-header {
    margin-bottom: 48px;
}

.category-grid {
    margin-top: 24px;
}

.section-header h2 {
    margin-bottom: 12px;
}


/* UI UX Special Headers */
.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
    line-height: 1.2;
}

.section-header h2 span {
    background: linear-gradient(180deg, #0071e3 0%, #42a5f5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 10px;
    letter-spacing: 0.2px;
}

.section-header.text-center {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Subtle accent line under headers */
.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 24px;
}

.section-header.text-center::after {
    margin-left: auto;
    margin-right: auto;
}


/* Marketplace Header Modernization */
.marketplace-header {
    background: radial-gradient(circle at top right, rgba(0, 113, 227, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(0, 113, 227, 0.02), transparent);
    border-bottom: 1px solid var(--border-color);
}

.marketplace-header .section-header {
    margin-bottom: 0;
}

.marketplace-header h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 12px;
}

.marketplace-header h1 span {
    background: linear-gradient(180deg, #0071e3 0%, #42a5f5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Marketplace Header with Split Images */
.marketplace-header {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    padding: 100px 0 !important;
}

.marketplace-header .container {
    position: relative;
    z-index: 5;
}

.marketplace-header .bg-img-left,
.marketplace-header .bg-img-right {
    position: absolute;
    top: 0;
    width: 45%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    transition: var(--transition-base);
}

.marketplace-header .bg-img-left {
    left: 0;
    background: url('https://images.unsplash.com/photo-1558981403-c5f91cbba527?auto=format&fit=crop&q=80&w=1200') center/cover no-repeat;
    mask-image: linear-gradient(to right, black 20%, transparent);
    -webkit-mask-image: linear-gradient(to right, black 20%, transparent);
}

.marketplace-header .bg-img-right {
    right: 0;
    background: url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&q=80&w=1200') center/cover no-repeat;
    mask-image: linear-gradient(to left, black 20%, transparent);
    -webkit-mask-image: linear-gradient(to left, black 20%, transparent);
}

.marketplace-header:hover .bg-img-left,
.marketplace-header:hover .bg-img-right {
    opacity: 0.25;
    transform: scale(1.05);
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dashboard-nav a:hover {
    background: rgba(0, 113, 227, 0.05);
    color: var(--primary);
    transform: translateX(5px);
}

.dashboard-nav a.active {
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.dashboard-nav a.text-danger:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.user-card {
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

/* Responsive Dashboard */
@media (max-width: 991px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* Add/Edit Listing Form */
.form-container-lg {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-section {
    margin-bottom: 30px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-section h3 {
    margin-bottom: 25px;
    font-size: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 113, 227, 0.02);
}

.image-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(0, 113, 227, 0.05);
}

.image-upload-zone i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.image-upload-zone p span {
    color: var(--primary);
    font-weight: 600;
}

.image-preview {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .form-container-lg {
        padding: 20px;
    }

    .form-section {
        padding: 20px;
    }
}

/* Form Inputs Styling */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--text-color);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
    background: var(--bg-white);
}

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

.price-input-wrapper {
    position: relative;
}

.price-input-wrapper::before {
    content: "$";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
    z-index: 2;
}

.price-input-wrapper input {
    padding-left: 35px !important;
}

/* Auth forms specific */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-glass-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 50px;
    width: 100%;
    max-width: 480px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
}

.error-text {
    color: #ff3b30;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.is-invalid {
    border-color: #ff3b30 !important;
    background: rgba(255, 59, 48, 0.05) !important;
}

/* Search & Filter Enhancements - Premium Redesign */
.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 16px;
    z-index: 5;
    transition: var(--transition-fast);
}

.search-input-wrapper input {
    padding-left: 50px !important;
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid transparent !important;
    height: 54px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 980px !important;
    transition: var(--transition-base) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper input:focus {
    background: var(--bg-white) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15), var(--shadow-md);
    transform: translateY(-1px);
}

.search-input-wrapper input:focus+i {
    transform: translateY(-50%) scale(1.1);
}

/* Modern Select & Number Inputs */
select,
.price-inputs input {
    border-radius: 14px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-light) !important;
    transition: var(--transition-fast);
}

select:focus,
.price-inputs input:focus {
    border-color: var(--primary) !important;
    background: var(--bg-white) !important;
    outline: none;
}

.filter-group label {
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-card {
    padding: 32px !important;
}

.filter-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* RTL Adjustments for Search Icon */
[dir='rtl'] .search-input-wrapper i {
    left: auto;
    right: 20px;
}

[dir='rtl'] .search-input-wrapper input {
    padding-left: 20px !important;
    padding-right: 50px !important;
}

/* Global RTL select dropdown adjustments to prevent text-arrow overlap */
[dir='rtl'] select {
    background-position: left 12px center !important;
    padding-right: 16px !important;
    padding-left: 36px !important;
}

[dir='rtl'] select optgroup option {
    padding-left: 0 !important;
    padding-right: 12px !important;
}

/* RTL Hero Search Bar select adjustments */
[dir='rtl'] .input-content select {
    background-position: left 0px center !important;
    padding-right: 0 !important;
    padding-left: 20px !important;
}

.btn-primary.w-100 {
    border-radius: 980px;
    height: 54px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* -------------------------------------------------------------------------- */
/* PREMIER 3D & GLASSMORPHISM SYSTEM                                          */
/* -------------------------------------------------------------------------- */

/* Premium Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: #000;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-bottom: 130px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 10s linear;
}

.swiper-slide-active .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 40%, rgba(0, 0, 0, 0.65) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

[dir='rtl'] .hero-overlay {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 40%, rgba(0, 0, 0, 0.65) 100%),
        linear-gradient(270deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-slide > .container {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    color: #fff;
    padding: 0 20px;
    text-align: start;
}

[dir='rtl'] .hero-content {
    text-align: right;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.hero-title span {
    background: linear-gradient(135deg, #93c5fd 0%, #38bdf8 45%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.55));
}

.text-gradient {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 36px;
    line-height: 1.65;
    max-width: 560px;
    font-weight: 400;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-section .btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-section .btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

/* 3D Search Bar Modernization */
.search-overlay {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    margin-top: 0;
    z-index: 20;
    padding: 0 24px;
}

.search-wrapper {
    max-width: var(--container-max);
    margin: 0 auto;
}

.glass-card-3d {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 8px 8px 8px 4px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

[data-theme='dark'] .glass-card-3d {
    background: rgba(29, 29, 31, 0.82);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Hero search bar: fully opaque white in light mode (backdrop-filter was making it gray) */
.hero-section .glass-card-3d {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow:
        0 20px 60px -10px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(255, 255, 255, 1) inset !important;
}

[data-theme='dark'] .hero-section .glass-card-3d {
    background: rgba(36, 36, 42, 0.96) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow:
        0 20px 60px -10px rgba(0, 0, 0, 0.7),
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset !important;
}

.hero-section .glass-card-3d:not(.ui-3d):hover {
    transform: translateY(-3px);
    box-shadow:
        0 32px 56px -14px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.98) inset;
}

[data-theme='dark'] .hero-section .glass-card-3d:not(.ui-3d):hover {
    transform: translateY(-3px);
    box-shadow:
        0 32px 56px -14px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Light mode: label fully readable */
.hero-section .input-content label {
    color: #6e6e73;
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 700;
}

[data-theme='dark'] .hero-section .input-content label {
    color: #a1a1a6;
}

/* Light mode: select & input text dark and readable */
.hero-section .input-content select,
.hero-section .input-content input {
    color: #1d1d1f !important;
}

[data-theme='dark'] .hero-section .input-content select,
[data-theme='dark'] .hero-section .input-content input {
    color: #f5f5f7 !important;
}

.hero-section .input-content input::placeholder {
    color: #86868b;
    font-weight: 400;
}

[data-theme='dark'] .hero-section .input-content input::placeholder {
    color: #6e6e73;
}

/* Light mode divider subtle, dark mode brighter */
.hero-section .search-divider {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] .search-divider {
    background: rgba(255, 255, 255, 0.14);
}

/* Icon color in light mode */
.hero-section .input-group-3d i {
    color: var(--primary);
    background: rgba(0, 113, 227, 0.12);
}

[data-theme='dark'] .input-content select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1a6' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

[data-theme='dark'] .mobile-nav-content {
    background: rgba(16, 16, 22, 0.92);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    color: var(--text-main);
}

[data-theme='dark'] .mobile-links a {
    color: var(--text-main);
}

[data-theme='dark'] .mobile-close {
    background: var(--bg-elevated);
    color: var(--text-main);
}

[data-theme='dark'] .bottom-nav {
    background: rgba(20, 20, 24, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.glass-card-3d:not(.ui-3d):hover {
    transform: translateY(-4px);
    box-shadow: 0 36px 64px -18px rgba(0, 0, 0, 0.28);
}

.premium-search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 72px;
}

.search-column {
    flex: 1;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    min-width: 0;
}

.input-group-3d {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.input-group-3d i {
    font-size: 18px;
    color: var(--primary);
    background: rgba(0, 113, 227, 0.1);
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: background 0.25s ease, color 0.25s ease;
}

.input-group-3d:hover i {
    background: rgba(0, 113, 227, 0.16);
    color: var(--primary);
}

.input-content {
    min-width: 0;
    flex: 1;
}

.input-content label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.input-content select,
.input-content input {
    border: none !important;
    background: transparent !important;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    padding: 0;
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.input-content select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2386868b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0px center;
    padding-right: 20px;
}

.search-divider {
    width: 1px;
    align-self: center;
    height: 40px;
    background: rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.search-action {
    flex-shrink: 0;
    padding: 6px;
    display: flex;
    align-items: center;
}

.btn-search-3d {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 32px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 20px -4px rgba(0, 113, 227, 0.45);
}

.btn-search-3d:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -4px rgba(0, 113, 227, 0.55);
}

.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
    opacity: 0.85;
}

.hero-section .swiper-button-next {
    right: 20px;
}

.hero-section .swiper-button-prev {
    left: 20px;
}

/* Mobile Navigation Styles */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
}

/* Mobile Nav - Crystal Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    transition: right 0s 0.4s, opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
}

.mobile-nav.active {
    right: 0;
    opacity: 1;
    transition: right 0s, opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Mobile Nav Panel - Crystal Glass */
.mobile-nav-content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    /* Crystal glass panel */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        -20px 0 60px rgba(0, 0, 0, 0.1),
        inset 1px 0 0 rgba(255, 255, 255, 0.9);
    padding: 30px;
    overflow-y: auto;
    overflow: hidden;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Shimmer on the panel */
.mobile-nav-content::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    width: 200%;
    background: linear-gradient(
        110deg,
        transparent 38%,
        rgba(255, 255, 255, 0.22) 46%,
        rgba(147, 197, 253, 0.12) 50%,
        rgba(255, 255, 255, 0.22) 54%,
        transparent 62%
    );
    animation: crystalShimmer 8s ease-in-out 3s infinite;
    pointer-events: none;
}

.mobile-nav-content > * {
    position: relative;
    z-index: 1;
}

.mobile-nav.active .mobile-nav-content {
    right: 0;
}

[data-theme='dark'] .mobile-nav {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .mobile-nav-content {
    background: rgba(16, 16, 22, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.mobile-links {
    list-style: none;
    padding: 0;
}

.mobile-links li {
    margin-bottom: 20px;
}

.mobile-links a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 12px;
    transition: 0.3s;
}

.mobile-links a i {
    width: 20px;
    color: var(--primary);
}

.mobile-links a:hover {
    background: rgba(0, 122, 255, 0.05);
    color: var(--primary);
}

.mobile-links hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {

    .nav-links,
    .dashboard-btn-desktop,
    .logout-btn-desktop,
    .login-link-desktop,
    .join-btn-desktop {
        display: none !important;
    }

    .mobile-toggle {
        display: block;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@media (max-width: 1100px) {
    .glass-card-3d {
        border-radius: 18px;
    }

    .search-column {
        padding: 12px 16px;
    }

    .btn-search-3d {
        padding: 0 24px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .hero-swiper {
        height: 65vh;
        min-height: 450px;
    }

    .hero-slide {
        padding-bottom: 0;
    }

    .search-overlay {
        position: relative;
        bottom: auto;
        margin-top: -48px;
        margin-bottom: 32px;
        padding: 0 16px;
        z-index: 99;
    }

    .premium-search-form {
        flex-direction: column;
        padding: 12px;
        min-height: auto;
    }

    .search-divider {
        display: none;
    }

    .search-column {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 14px 12px;
    }

    /* Dark mode mobile column border */
    [data-theme='dark'] .search-column {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .search-column:last-of-type {
        border-bottom: none;
    }

    /* Mobile: keep full opacity white - no blur effect */
    .hero-section .glass-card-3d {
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    [data-theme='dark'] .hero-section .glass-card-3d {
        background: rgba(20, 20, 22, 0.94) !important;
    }

    .search-action {
        width: 100%;
        padding: 8px 4px 4px;
    }

    .btn-search-3d {
        width: 100%;
        height: 52px;
        border-radius: 12px;
    }
}

/* Premium Bottom Navigation (App Style) - Crystal Glass */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 70px;
    /* Crystal glass */
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-radius: 24px;
    display: none;
    /* Desktop hidden */
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

/* Crystal shimmer on bottom-nav */
.bottom-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.22) 45%,
        rgba(147, 197, 253, 0.12) 50%,
        rgba(255, 255, 255, 0.22) 55%,
        transparent 65%
    );
    background-size: 200% 100%;
    animation: prismShift 7s linear infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: 24px;
}

.bottom-nav > * {
    position: relative;
    z-index: 1;
}

[data-theme='dark'] .bottom-nav {
    background: rgba(20, 20, 24, 0.82);
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #86868b;
    gap: 4px;
    flex: 1;
    transition: all 0.3s;
}

.bottom-nav-link i {
    font-size: 20px;
}

.bottom-nav-link span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-nav-link.active {
    color: var(--primary);
}

.bottom-nav-link.active i {
    transform: translateY(-2px);
}

/* Floating Center Sell Button */
.bottom-nav-link-center {
    position: relative;
    top: -25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    flex: 1;
}

.plus-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #00c6ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.4);
    border: 5px solid #fff;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-link-center:hover .plus-icon {
    transform: scale(1.1) rotate(90deg);
}

.bottom-nav-link-center span {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .bottom-nav {
        display: flex;
    }

    .main-footer {
        padding-bottom: 120px;
        /* Space for bottom nav */
    }

    /* Mobile Hero Slider Optimization */
    .hero-section {
        height: 75vh;
        min-height: 500px;
    }

    .hero-content {
        text-align: center;
        padding: 0 15px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 45px);
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 8px 16px;
        margin-bottom: 20px;
    }
}

/* Global Mobile Grid System */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .category-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .listings-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .section-header h2 {
        font-size: 28px !important;
    }

    .py-5 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* Fixed Top Navbar on Mobile */
    .navbar {
        height: 60px !important;
    }

    .logo-text {
        font-size: 18px !important;
    }
}

/* Ensure Grids use display: grid */
.category-grid,
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 480px) {

    .category-grid,
    .listings-grid {
        grid-template-columns: 1fr;
    }
}

/* Landing page: spacing after hero */
.landing-page .categories {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   UI 3D SYSTEM — interactive depth (pointer tilt + shine + parallax)
   ========================================================================== */

.ui-3d {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --tilt-s: 1;
    --tilt-lift: 0px;
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1200px)
        translateY(calc(var(--tilt-lift) * -1))
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y))
        scale3d(var(--tilt-s), var(--tilt-s), 1);
    transition:
        transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.45s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.ui-3d.is-active {
    transition:
        transform 0.1s ease-out,
        box-shadow 0.35s ease;
    box-shadow: var(--shadow-3d);
}

.ui-3d-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(
        circle at var(--shine-x, 50%) var(--shine-y, 50%),
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.08) 28%,
        transparent 62%
    );
    mix-blend-mode: soft-light;
}

.ui-3d.is-active .ui-3d-shine {
    opacity: 1;
}

[data-theme='dark'] .ui-3d-shine {
    background: radial-gradient(
        circle at var(--shine-x, 50%) var(--shine-y, 50%),
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.04) 30%,
        transparent 65%
    );
    mix-blend-mode: overlay;
}

.category-card.ui-3d .category-img,
.listing-card.ui-3d .card-img {
    transform: translateZ(24px);
}

.pricing-card.ui-3d.is-active {
    border-color: rgba(0, 113, 227, 0.45);
}

.hero-section .glass-card-3d.ui-3d {
    transform-origin: center bottom;
}

.pricing-grid {
    perspective: 1400px;
}

.category-grid {
    perspective: 1200px;
}

.listings-grid {
    perspective: 1100px;
}

@media (prefers-reduced-motion: reduce) {
    .ui-3d,
    .ui-3d.is-active {
        transform: none !important;
        transition: box-shadow 0.2s ease !important;
    }

    .ui-3d-shine {
        display: none;
    }
}

/* Scroll reveal (used by main.js) */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.reveal.ui-3d.reveal-active {
    transform: perspective(1200px) translateY(0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale3d(var(--tilt-s), var(--tilt-s), 1);
}

.reveal.ui-3d.is-active.reveal-active {
    transform: perspective(1200px)
        translateY(calc(var(--tilt-lift) * -1))
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y))
        scale3d(var(--tilt-s), var(--tilt-s), 1);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =============================================
   CRYSTAL GLASS - PRISMATIC NAVBAR BOTTOM LINE
   ============================================= */

/* Animated prismatic line under navbar */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #a78bfa 15%,
        #60a5fa 30%,
        #38bdf8 45%,
        #34d399 55%,
        #a78bfa 70%,
        #f472b6 85%,
        transparent
    );
    background-size: 300% 100%;
    animation: prismShift 10s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

/* Show prismatic line on scroll (JS adds .scrolled class) */
.navbar.scrolled::after {
    opacity: 0.55;
}

[data-theme='dark'] .navbar::after {
    opacity: 0;
}

[data-theme='dark'] .navbar.scrolled::after {
    opacity: 0.3;
}

/* Performance: GPU layer hints for animated elements */
.navbar,
.main-footer,
.bottom-nav {
    will-change: backdrop-filter;
    transform: translateZ(0);
}

.navbar::before,
.navbar::after,
.main-footer::before,
.main-footer::after,
.bottom-nav::before,
.mobile-nav-content::before {
    will-change: transform, background-position;
}