/**
 * OphtalmoMarket - Main Stylesheet
 * 100% identical to React version with all animations
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Accent Colors */
    --accent-teal: #14b8a6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #06b6d4 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', sans-serif;

    /* Spacing */
    --header-height: 80px;
    --header-height-scrolled: 70px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* prevent horizontal scroll on Android/Brave */
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #06b6d4 50%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition-slow);
    background: transparent;
}

.navbar.scrolled {
    height: var(--header-height-scrolled);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.navbar.hidden {
    transform: translateY(-100%);
}

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

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

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-bounce);
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-5deg);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: white;
    transition: color var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--gray-900);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--gray-600);
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary-600);
    background: var(--primary-50);
}

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

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    transition: all var(--transition);
}

.navbar.scrolled .user-menu-trigger {
    background: var(--gray-100);
    color: var(--gray-700);
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar.scrolled .user-menu-trigger:hover {
    background: var(--gray-200);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.navbar.scrolled .user-avatar {
    border-color: var(--gray-200);
}

.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
}

.user-menu:hover .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 8px;
}

.dropdown-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 14px;
}

.dropdown-email {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 14px;
    transition: all var(--transition);
}

.dropdown-link:hover {
    background: var(--gray-50);
    color: var(--primary-600);
}

.dropdown-link i {
    width: 20px;
    text-align: center;
    color: var(--gray-400);
}

.dropdown-link:hover i {
    color: var(--primary-500);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 8px 0;
}

.dropdown-link.logout {
    color: var(--error);
}

.dropdown-link.logout:hover {
    background: #fef2f2;
}

.dropdown-link.logout i {
    color: var(--error);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.navbar.scrolled .mobile-menu-toggle {
    background: var(--gray-100);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar.scrolled .mobile-menu-toggle span {
    background: var(--gray-700);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--gray-500);
    transition: all var(--transition);
}

.mobile-menu-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.mobile-nav {
    padding: 16px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 500;
    transition: all var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-50);
    color: var(--primary-600);
}

.mobile-nav-link i {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.btn-white:hover:not(:disabled) {
    background: var(--gray-50);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

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

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

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

.btn-success:hover:not(:disabled) {
    background: #059669;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 44px;
}

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

.btn-full {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 40px) 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 60%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-badge i {
    color: var(--accent-emerald);
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
}

.section-alt {
    background: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.6;
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition-slow);
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    transition: transform var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-card:hover::before {
    opacity: 1;
}

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

.category-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    font-size: 24px;
    margin-bottom: 16px;
    transition: all var(--transition);
}

.category-card:hover .category-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    transition: color var(--transition);
}

.category-card:hover .category-name {
    color: white;
}

.category-count {
    font-size: 13px;
    color: var(--gray-500);
    transition: color var(--transition);
}

.category-card:hover .category-count {
    color: rgba(255, 255, 255, 0.8);
}

.category-arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--primary-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ============================================
   LISTINGS SECTION
   ============================================ */


/* Listing Detail Layout */
.listing-detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* Browse Page Layout */
.browse-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

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

.listing-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-slow);
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.listing-link {
    display: block;
}

.listing-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
}

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

.listing-card:hover .listing-image img {
    transform: scale(1.05);
}

.listing-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    color: var(--primary-400);
    font-size: 48px;
}

.listing-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.listing-verified {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
    font-size: 14px;
    box-shadow: var(--shadow-md);
}

.listing-content {
    padding: 20px;
}

.listing-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--primary-600);
    font-weight: 500;
    margin-bottom: 10px;
}

.listing-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-description {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.listing-price .price-free {
    color: var(--accent-emerald);
}

.listing-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-500);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.badge-excellent {
    background: #d1fae5;
    color: #065f46;
}

.badge-very_good {
    background: #dbeafe;
    color: #1e40af;
}

.badge-good {
    background: #fef3c7;
    color: #92400e;
}

.badge-normal {
    background: #f3f4f6;
    color: #4b5563;
}

.badge-working {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-non_working {
    background: #fee2e2;
    color: #991b1b;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-50);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-400);
    font-size: 32px;
    margin: 0 auto 24px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
}

.step-card {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    position: relative;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-100);
    line-height: 1;
    z-index: 0;
}

.step-icon {
    position: relative;
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-glow);
    z-index: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.step-description {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-200), var(--primary-400));
    margin-top: 60px;
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--primary-400);
    border-right: 2px solid var(--primary-400);
    transform: rotate(45deg);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: -1;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.trust-item i {
    color: var(--accent-emerald);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: white;
}

.footer-top {
    padding: 80px 0 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.footer-logo .logo-text {
    font-size: 20px;
    color: white;
}

.footer-description {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 16px;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 14px;
    transition: all var(--transition);
}

.footer-menu a:hover {
    color: white;
    padding-left: 4px;
}

.footer-menu a i {
    font-size: 10px;
    color: var(--primary-500);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--gray-400);
    font-size: 14px;
}

.contact-list i {
    color: var(--primary-500);
    width: 20px;
}

.footer-newsletter {
    margin-top: 24px;
}

.footer-newsletter h5 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form .form-control {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
}

.newsletter-form .form-control::placeholder {
    color: var(--gray-500);
}

.newsletter-form .btn {
    padding: 10px 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright {
    font-size: 13px;
    color: var(--gray-500);
}

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

.footer-legal a {
    font-size: 13px;
    color: var(--gray-500);
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--error);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--gray-900);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control.error {
    border-color: var(--error);
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

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

.form-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 6px;
}

.form-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
}

.input-group {
    display: flex;
}

.input-group .form-control {
    border-radius: var(--radius) 0 0 var(--radius);
}

.input-group .btn {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-600);
}

.form-check-label {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
    background: var(--gradient-hero);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.auth-header {
    padding: 40px 40px 0;
    text-align: center;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-logo .logo-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
}

.auth-logo .logo-text {
    font-size: 24px;
    color: var(--gray-900);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--gray-500);
}

.auth-body {
    padding: 32px 40px 40px;
}

.auth-footer {
    padding: 24px 40px;
    background: var(--gray-50);
    text-align: center;
}

.auth-footer p {
    font-size: 14px;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--primary-600);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-header {
    background: var(--gradient-hero);
    padding: 120px 0 80px;
    position: relative;
}

.profile-header-content {
    display: flex;
    align-items: flex-end;
    gap: 32px;
}

.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-2xl);
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-xl);
}

.profile-avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-2xl);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
    font-weight: 700;
    border: 4px solid white;
    box-shadow: var(--shadow-xl);
}

.profile-info {
    flex: 1;
    color: white;
}

.profile-name {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-specialty {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.profile-meta-item i {
    color: var(--accent-cyan);
}

.profile-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--accent-emerald);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.profile-body {
    padding: 40px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.profile-section {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.profile-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.profile-sidebar .profile-section {
    margin-bottom: 24px;
}

/* ============================================
   MESSAGES PAGE
   ============================================ */
.messages-page {
    padding-top: var(--header-height);
    min-height: 100svh;
}

.messages-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    height: calc(100svh - var(--header-height));
}

.conversations-sidebar {
    background: white;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.conversations-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all var(--transition);
}

.conversation-item:hover {
    background: var(--gray-50);
}

.conversation-item.active {
    background: var(--primary-50);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.conversation-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-preview {
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-meta {
    text-align: right;
}

.conversation-time {
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.conversation-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary-600);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.chat-area {
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.chat-header-info {
    flex: 1;
}

.chat-header-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.chat-header-status {
    font-size: 13px;
    color: var(--gray-500);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.message.own {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.message-content {
    max-width: 70%;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
}

.message:not(.own) .message-bubble {
    background: white;
    color: var(--gray-800);
    border-bottom-left-radius: 4px;
}

.message.own .message-bubble {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
}

.message.own .message-time {
    text-align: right;
}

.chat-input-area {
    padding: 16px 24px;
    background: white;
    border-top: 1px solid var(--gray-200);
}

.chat-form {
    display: flex;
    gap: 12px;
}

.chat-form .form-control {
    flex: 1;
}

/* ============================================
   ADMIN PAGE
   ============================================ */
.admin-page {
    padding-top: var(--header-height);
}

.admin-header {
    background: var(--gradient-hero);
    padding: 60px 0 40px;
}

.admin-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: white;
}

.admin-header p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.admin-nav {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    background: white;
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

.admin-nav-link {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--primary-50);
    color: var(--primary-600);
}

.admin-section {
    padding: 40px 0;
}

.admin-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card-icon.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.stat-card-icon.green {
    background: #d1fae5;
    color: #059669;
}

.stat-card-icon.orange {
    background: #fef3c7;
    color: #d97706;
}

.stat-card-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-card-info {
    flex: 1;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.stat-card-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Data Table */
.data-table-wrapper {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.table-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.table-user-info {
    flex: 1;
}

.table-user-name {
    font-weight: 600;
    color: var(--gray-900);
}

.table-user-email {
    font-size: 12px;
    color: var(--gray-500);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
}

.status-verified {
    background: #d1fae5;
    color: #065f46;
}

.status-verified::before {
    background: #10b981;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-pending::before {
    background: #f59e0b;
}

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

.table-actions .btn {
    padding: 8px 14px;
    font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .desktop-nav,
    .auth-buttons,
    .user-menu,
    .desktop-only-icons {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
        position: relative;
        z-index: 1050;
        pointer-events: all !important;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        display: none;
    }
    
    .step-card {
        max-width: 100%;
        width: 100%;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
    }
    
    .conversations-sidebar {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    .features-grid,
    .categories-grid,
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .cta-trust {
        flex-direction: column;
        gap: 16px;
    }
    
    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table-wrapper {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 800px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .auth-header,
    .auth-body,
    .auth-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loading Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary-600);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    min-width: 280px;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--error);
}

.toast-error .toast-icon {
    color: var(--error);
}

.toast-info {
    border-left: 4px solid var(--info);
}

.toast-info .toast-icon {
    color: var(--info);
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition);
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--gray-600);
}

.toast span {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
}

/* ============================================
   FAVORITE BUTTONS
   ============================================ */
.btn-favorite {
    transition: all 0.2s ease;
}

.btn-favorite:hover {
    transform: scale(1.1);
}

.btn-favorite-active {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

/* ============================================
   PROFILE TABS
   ============================================ */
.profile-tab {
    transition: all 0.2s ease;
}

.profile-tab:hover {
    color: var(--primary-600);
}

/* ============================================
   MOBILE LAYOUT OVERRIDES - v3
   ============================================ */

/* Browse page: sidebar + content grid */
@media (max-width: 992px) {
    .browse-layout {
        grid-template-columns: 1fr;
    }
    .listings-grid {
        grid-template-columns: 1fr;
    }
    .listing-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Page headers: reduce padding and font size on mobile */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px !important;
    }
    .page-title {
        font-size: 26px !important;
        line-height: 1.2;
    }
    /* Contact, about, offers 2-col grids */
    .contact-layout,
    .about-layout {
        grid-template-columns: 1fr !important;
    }
    /* Navbar right side: only show hamburger */
    .navbar-inner > div:not(.logo) {
        gap: 8px;
    }
}

/* Inline grid overrides removed - fixed at source in PHP files */

/* Skip to content link (accessibility) */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-600);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 10000;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--primary-400);
    outline-offset: 2px;
}

/* ============================================
   UI/UX PRO MAX — UPGRADE LAYER
   Priority 1→10 improvements per design guidelines
   ============================================ */

/* ── 1. REDUCED MOTION ─────────────────────
   Respect prefers-reduced-motion for all users
   who set this OS/browser preference.          */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Keep functional spinner visible but instant */
    .spinner {
        animation: spin 1s linear infinite !important;
    }

    /* Reveal all scroll-animated elements immediately */
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Kill particle canvas — JS checks this flag too */
    #heroParticles canvas {
        display: none !important;
    }

    /* Kill scroll indicator bounce */
    .scroll-wheel {
        animation: none !important;
    }

    /* Kill skeleton shimmer — keep placeholder visible */
    .skeleton,
    .skeleton-image,
    .skeleton-line {
        animation: none !important;
        background: var(--gray-200) !important;
    }
}

/* ── 2. FOCUS RINGS ────────────────────────
   Keyboard-navigation focus must be clearly
   visible (2–4 px, WCAG 2.4.11).              */
:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Buttons: extra glow for high-contrast clarity */
.btn:focus-visible {
    outline: 2px solid var(--primary-400);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.nav-link:focus-visible,
.mobile-nav-link:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.navbar.scrolled .nav-link:focus-visible {
    outline-color: var(--primary-500);
}

.dropdown-link:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 1px;
    background: var(--primary-50);
}

.category-card:focus-visible,
.listing-card:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
}

.form-control:focus-visible {
    outline: none; /* box-shadow already applied */
}

.footer-legal a:focus-visible,
.footer-menu a:focus-visible {
    outline: 2px solid var(--primary-400);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── 3. TOUCH TARGETS ──────────────────────
   Every interactive element ≥ 44 × 44 px.    */
.btn,
.nav-link,
.mobile-nav-link,
.dropdown-link,
.social-link,
.mobile-menu-close,
.user-menu-trigger {
    touch-action: manipulation;
}

.mobile-menu-close {
    min-width: 44px;
    min-height: 44px;
}

/* Listing & category cards as tappable regions */
.listing-link,
.category-card {
    touch-action: manipulation;
}

/* Newsletter form input & button */
.newsletter-form .form-control {
    min-height: 44px;
}

.newsletter-form .btn {
    min-height: 44px;
    min-width: 44px;
}

/* Form controls site-wide */
.form-control {
    min-height: 44px;
}

/* ── 4. ACTIVE / PRESS STATES ──────────────
   Visual feedback within 100 ms of tap/click. */
.btn:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
    transition-duration: 80ms;
}

.btn-primary:active:not(:disabled) {
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.listing-card:active {
    transform: translateY(-4px) scale(0.99);
    transition-duration: 80ms;
}

.category-card:active {
    transform: translateY(-4px) scale(0.99);
    transition-duration: 80ms;
}

.feature-card:active {
    transform: translateY(-4px) scale(0.99);
    transition-duration: 80ms;
}

/* ── 5. CURSOR ─────────────────────────────
   pointer on all non-link clickable elements. */
.category-card,
.listing-card,
.conversation-item,
.admin-nav-link,
.profile-tab,
.social-link,
.dropdown-link,
.user-menu-trigger {
    cursor: pointer;
}

/* ── 6. WILL-CHANGE OPTIMISATION ───────────
   Apply only during hover to avoid wasting GPU
   memory on idle elements.                    */
.listing-card,
.feature-card,
.category-card,
.step-card {
    will-change: auto;
}

.listing-card:hover,
.feature-card:hover,
.category-card:hover {
    will-change: transform, box-shadow;
}

/* ── 7. SKELETON LOADING ───────────────────
   Shimmer placeholders for async listing cards */
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.skeleton-image {
    aspect-ratio: 4/3;
    background: linear-gradient(
        90deg,
        var(--gray-100) 25%,
        var(--gray-200) 50%,
        var(--gray-100) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(
        90deg,
        var(--gray-100) 25%,
        var(--gray-200) 50%,
        var(--gray-100) 75%
    );
    background-size: 200% 100%;
    border-radius: var(--radius);
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line.short  { width: 55%; }
.skeleton-line.medium { width: 78%; }
.skeleton-line.full   { width: 100%; }

/* ── 8. TOAST ACCESSIBILITY ────────────────
   aria-live is set in PHP; CSS ensures toasts
   never steal pointer focus from content.     */
.toast-container {
    pointer-events: none;
}

.toast {
    pointer-events: all;
}

/* ── 9. MOBILE FOOTER LEGAL ────────────────
   Prevent overflow wrapping on small screens. */
@media (max-width: 640px) {
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
    }

    .footer-bottom-content {
        gap: 12px;
    }
}

/* ── 10. HERO SUBTITLE LINE-LENGTH ─────────
   Cap line-length at 65 chars on wide screens */
.hero-subtitle {
    max-width: 640px;
}

/* ── 11. SMOOTH CARD ENTRY ANIMATION ───────
   Use CSS instead of JS-injected will-change  */
.listing-card,
.feature-card,
.category-card {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}

/* ── 12. FORM LABEL CONTRAST ───────────────
   Ensure labels are never lighter than gray-700 */
.form-label {
    color: var(--gray-700);
}

/* ── 13. IMAGE ASPECT-RATIO CLS FIX ────────
   Reserve space before image loads (CLS < 0.1) */
.listing-image {
    aspect-ratio: 4 / 3;
    background: var(--gray-100);
}

/* ── 14. BADGE MINIMUM CONTRAST ────────────
   All badge combos now use darker text tokens  */
.badge-good {
    background: #fef3c7;
    color: #78350f;
}

.badge-normal {
    background: #f3f4f6;
    color: #374151;
}

/* ── 15. CONVERSATION ITEM TOUCH ───────────
   Extend tap area in messages sidebar         */
.conversation-item {
    touch-action: manipulation;
    min-height: 44px;
}

/* ============================================
   VISUAL POLISH LAYER — stylish components
   ============================================ */

/* Alert entrance — subtle slide from above */
@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.alert {
    animation: alertSlideIn 0.2s ease-out;
}
@media (prefers-reduced-motion: reduce) {
    .alert { animation: none; }
}

/* Info card with left accent border */
.info-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 32px;
    border-left: 4px solid var(--primary-400);
    transition: box-shadow var(--transition), transform var(--transition-slow), border-color var(--transition);
}
.info-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-left-color: var(--primary-600);
    will-change: transform, box-shadow;
}
.info-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--primary-50);
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}
.info-card:hover .info-card-icon {
    background: var(--primary-100);
    color: var(--primary-700);
}

/* Value prop 3-column grid */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .value-grid { grid-template-columns: 1fr; }
}

/* Stylized check list */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 15px;
}
.check-list li::before {
    content: '';
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--primary-100)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563eb'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E")
        no-repeat center / 12px;
    flex-shrink: 0;
}

/* Numbered step card */
.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 22px 26px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition-slow);
    will-change: auto;
}
.step-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    will-change: transform, box-shadow;
}
.step-num {
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* How-it-works two-column grid, collapses on mobile */
.hiw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 40px;
    align-items: start;
}

/* Verification checklist rows */
.verif-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 15px;
}
.verif-check:last-child { border-bottom: none; }
.verif-check-icon {
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}
@media (max-width: 768px) {
    .verif-grid { grid-template-columns: 1fr !important; }
}

/* Gradient 404 number */
.page-404 {
    min-height: calc(100svh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}
.page-404-number {
    font-size: clamp(96px, 20vw, 180px);
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

/* Invite link styled input */
.invite-link-input {
    flex: 1;
    padding: 13px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 13px;
    background: var(--gray-50);
    color: var(--gray-700);
    font-family: ui-monospace, 'SFMono-Regular', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 44px;
    transition: border-color var(--transition);
}
.invite-link-input:focus {
    outline: none;
    border-color: var(--primary-400);
    background: white;
}
.invite-link-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Section header badge refinement */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Page header subtitle max-width */
.page-header .page-subtitle {
    max-width: 600px;
}

/* ============================================
   COSMETIC & CODE QUALITY UPGRADE
   Extracted inline styles + visual polish
   ============================================ */

/* ── EXTRACTED: Navbar right side ─────────── */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.desktop-only-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── EXTRACTED: Nav icon links + badges ───── */
.nav-link--icon {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    pointer-events: none;
    animation: badgePop 0.3s ease-out;
}

.nav-badge--danger {
    background: var(--error);
}

.nav-badge--primary {
    background: var(--primary-600);
}

@keyframes badgePop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ── EXTRACTED: User menu trigger ────────── */
.user-menu-name {
    font-size: 14px;
    font-weight: 500;
}

.user-menu-chevron {
    font-size: 12px;
    transition: transform var(--transition);
}

.user-menu:hover .user-menu-chevron {
    transform: rotate(180deg);
}

/* ── EXTRACTED: Dropdown badge ───────────── */
.dropdown-badge {
    margin-left: auto;
    background: var(--primary-600);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* ── EXTRACTED: Dropdown invite link ─────── */
.dropdown-link--invite {
    color: var(--accent-emerald);
}

.dropdown-link--invite:hover {
    color: #059669;
    background: #ecfdf5;
}

/* ── EXTRACTED: Auth outline button in nav ── */
.btn-outline--nav {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar.scrolled .btn-outline--nav {
    color: var(--gray-700);
    border-color: var(--gray-300);
}

/* ── EXTRACTED: Mobile nav special links ──── */
.mobile-nav-link--invite {
    color: var(--accent-emerald);
}

.mobile-nav-link--invite:hover {
    color: #059669;
    background: #ecfdf5;
}

.mobile-nav-link--logout {
    color: var(--error);
}

.mobile-nav-link--logout:hover {
    background: #fef2f2;
}

/* ── EXTRACTED: Hero auth status pills ───── */
.hero-auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    max-width: calc(100vw - 48px);
    flex-wrap: wrap;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--transition), border-color var(--transition);
}

.hero-auth-verified {
    background: rgba(16, 185, 129, 0.18);
    color: #ecfdf5;
    border: 1.5px solid rgba(16, 185, 129, 0.5);
}

.hero-auth-pending {
    background: rgba(245, 158, 11, 0.18);
    color: #fffbeb;
    border: 1.5px solid rgba(245, 158, 11, 0.5);
}

.hero-auth-guest {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.auth-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.auth-dot--verified {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.auth-dot--pending {
    background: #f59e0b;
}

.auth-dot--guest {
    background: rgba(255, 255, 255, 0.4);
}

.hero-auth-link {
    margin-left: 8px;
    opacity: 0.7;
    font-size: 12px;
    font-weight: 400;
    text-decoration: underline;
    color: inherit;
    transition: opacity var(--transition);
}

.hero-auth-link:hover {
    opacity: 1;
}

.hero-auth-link--bold {
    font-weight: 700;
    opacity: 1;
}

/* ── COSMETIC: Custom scrollbar ──────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) var(--gray-100);
}

/* ── COSMETIC: Text selection ────────────── */
::selection {
    background: rgba(37, 99, 235, 0.2);
    color: var(--gray-900);
}

/* ── COSMETIC: Smooth image loading ──────── */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
    opacity: 1;
}

/* ── COSMETIC: Hero gradient shimmer ─────── */
.hero-badge {
    position: relative;
    overflow: hidden;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: heroBadgeShimmer 3s ease-in-out infinite;
}

@keyframes heroBadgeShimmer {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* ── COSMETIC: Listing card image overlay ── */
.listing-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.04) 100%);
    pointer-events: none;
    transition: opacity var(--transition);
}

.listing-card:hover .listing-image::after {
    opacity: 0;
}

/* ── COSMETIC: Feature icon gradient ring ── */
.feature-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition), inset var(--transition);
    border-radius: calc(var(--radius-lg) + 3px);
}

.feature-icon {
    position: relative;
}

.feature-card:hover .feature-icon::before {
    opacity: 0.2;
    inset: -6px;
}

/* ── COSMETIC: Section divider ───────────── */
.section + .section-alt::before,
.section-alt + .section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
    margin: 0 auto;
    max-width: 600px;
}

/* ── COSMETIC: Step card number glow ─────── */
.step-card:hover .step-number {
    color: var(--primary-200);
    transition: color var(--transition);
}

.step-card:hover .step-icon {
    transform: scale(1.08);
    transition: transform var(--transition-bounce);
}

/* ── COSMETIC: CTA section floating dots ─── */
.cta-bg::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.cta-bg::before {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

/* ── COSMETIC: Footer social hover colors ── */
.social-link:nth-child(1):hover { background: #1877f2; }
.social-link:nth-child(2):hover { background: #1da1f2; }
.social-link:nth-child(3):hover { background: #0a66c2; }
.social-link:nth-child(4):hover { background: #e4405f; }

/* ── COSMETIC: Smooth link underline ─────── */
.auth-footer a,
.footer-menu a {
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-600);
    transition: width var(--transition);
}

.auth-footer a:hover::after {
    width: 100%;
}

/* ── COSMETIC: Verified badge pulse ──────── */
.listing-verified {
    animation: verifiedPulse 2s ease-in-out infinite;
}

@keyframes verifiedPulse {
    0%, 100% { box-shadow: var(--shadow-md); }
    50% { box-shadow: var(--shadow-md), 0 0 0 4px rgba(16, 185, 129, 0.15); }
}

/* ── COSMETIC: Price highlight ───────────── */
.listing-price .price {
    position: relative;
}

.listing-price .price-free {
    padding: 2px 8px;
    background: #ecfdf5;
    border-radius: var(--radius-sm);
}

/* ── COSMETIC: Empty state glow ──────────── */
.empty-icon {
    position: relative;
}

.empty-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: var(--primary-50);
    z-index: -1;
    opacity: 0.5;
}

/* ── COSMETIC: Auth card entrance ────────── */
.auth-card {
    animation: authCardIn 0.4s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
    .auth-card { animation: none; }
    .hero-badge::after { animation: none; }
    .listing-verified { animation: none; }
    .nav-badge { animation: none; }
}

/* ── MOVED FROM JS: Ripple effect ────────── */
@keyframes rippleEffect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* ── MOVED FROM JS: Shake effect ─────────── */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ── MOVED FROM JS: Initial animation states */
[data-animate="slide-up"] {
    opacity: 0;
    transform: translateY(30px);
}

[data-animate="scale-in"] {
    opacity: 0;
    transform: scale(0.9);
}

[data-animate="fade-in"] {
    opacity: 0;
}

/* ── COSMETIC: Listing grid 2-col on tablet  */
@media (min-width: 769px) and (max-width: 1200px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── COSMETIC: Card hover border glow ─────── */
.listing-card:hover {
    border-color: var(--primary-100);
}

.category-card:hover {
    border-color: transparent;
}

/* ── COSMETIC: Conversation item hover ────── */
.conversation-item:hover {
    background: var(--gray-50);
    border-left: 3px solid var(--primary-400);
    padding-left: 17px;
}

.conversation-item.active {
    border-left: 3px solid var(--primary-600);
    padding-left: 17px;
}

/* ── COSMETIC: Chat own message hover ─────── */
.message.own .message-bubble {
    position: relative;
    overflow: hidden;
}

/* ── COSMETIC: Table row stripe ──────────── */
.data-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.data-table tbody tr:nth-child(even):hover {
    background: var(--primary-50);
}

.data-table tbody tr:hover {
    background: var(--primary-50);
}

/* ── COSMETIC: Stat card hover ───────────── */
.stat-card {
    transition: all var(--transition-slow);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ── COSMETIC: Status badge improvements ─── */
.status-badge {
    transition: all var(--transition);
}

.status-verified:hover {
    background: #a7f3d0;
}

.status-pending:hover {
    background: #fde68a;
}

/* ╔══════════════════════════════════════════════╗
   ║  FABULOUS & GLORIOUS UPGRADE LAYER v2.0     ║
   ║  Premium visual effects, glassmorphism,      ║
   ║  animated gradients, 3D cards, glow FX       ║
   ╚══════════════════════════════════════════════╝ */

/* ── ANIMATED GRADIENT MESH BACKGROUND ─────────── */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(59, 130, 246, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 20%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 50% 80% at 50% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    animation: meshShift 12s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes meshShift {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    33% { transform: scale(1.05) translate(-2%, 3%); opacity: 1; }
    66% { transform: scale(0.98) translate(3%, -2%); opacity: 0.9; }
    100% { transform: scale(1.03) translate(-1%, 1%); opacity: 1; }
}

/* ── FLOATING ORBS ─────────────────────────────── */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    mix-blend-mode: screen;
}

.hero-orb--1 {
    width: 400px; height: 400px;
    background: rgba(99, 102, 241, 0.15);
    top: -10%; left: -5%;
    animation: orbFloat1 18s ease-in-out infinite;
}

.hero-orb--2 {
    width: 300px; height: 300px;
    background: rgba(6, 182, 212, 0.12);
    top: 50%; right: -8%;
    animation: orbFloat2 22s ease-in-out infinite;
}

.hero-orb--3 {
    width: 250px; height: 250px;
    background: rgba(139, 92, 246, 0.1);
    bottom: -5%; left: 30%;
    animation: orbFloat3 15s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, 30px) scale(1.1); }
    50% { transform: translate(-20px, 60px) scale(0.95); }
    75% { transform: translate(30px, -20px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 40px) scale(1.15); }
    66% { transform: translate(30px, -30px) scale(0.9); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.1); }
}

/* ── SCROLL PROGRESS INDICATOR ─────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-cyan), var(--primary-400));
    z-index: 10001;
    transition: width 50ms linear;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ── PREMIUM GLASSMORPHISM NAVBAR ──────────────── */
.navbar {
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(24px) saturate(2);
    -webkit-backdrop-filter: blur(24px) saturate(2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

/* ── 3D TILT LISTING CARDS ─────────────────────── */
.listing-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.listing-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        0 0 60px rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15) !important;
}

/* ── CARD SHINE EFFECT ─────────────────────────── */
.listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transform: skewX(-15deg);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

.listing-card:hover::before {
    left: 125%;
}

/* ── PREMIUM LISTING IMAGE OVERLAY ─────────────── */
.listing-card .listing-image {
    overflow: hidden;
    position: relative;
}

.listing-card:hover .listing-image img,
.listing-card:hover .listing-no-image {
    transform: scale(1.05);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.listing-image img,
.listing-no-image {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── ANIMATED GRADIENT BORDER ON FEATURE CARDS ─── */
.feature-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent 30%, var(--primary-300) 50%, transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 16px 48px rgba(59, 130, 246, 0.08),
        0 0 0 1px rgba(59, 130, 246, 0.06);
}

/* ── FEATURE ICON ANIMATION ────────────────────── */
.feature-card:hover .feature-icon i {
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconBounce {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.3) rotate(-5deg); }
    60% { transform: scale(0.95) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ── CATEGORY CARDS WITH GRADIENT HOVER ────────── */
.category-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    pointer-events: none;
}

.category-card:hover::after {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.1);
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover .category-arrow {
    transform: translateX(4px);
    color: var(--primary-500);
}

.category-arrow {
    transition: all 0.3s ease;
}

/* ── STEP CARDS — NUMBERED GLOW ────────────────── */
.step-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.08);
}

.step-card:hover .step-number {
    background: linear-gradient(135deg, var(--primary-400), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── ANIMATED STEP CONNECTOR ───────────────────── */
.step-connector {
    position: relative;
    overflow: hidden;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-300), var(--accent-cyan), var(--primary-300));
    background-size: 200% 100%;
    animation: connectorFlow 3s linear infinite;
}

@keyframes connectorFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── CTA SECTION PREMIUM UPGRADE ───────────────── */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 50%);
    animation: ctaMesh 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ctaMesh {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* ── PREMIUM BUTTON EFFECTS ────────────────────── */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(37, 99, 235, 0.35),
        0 0 0 1px rgba(37, 99, 235, 0.1);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* ── OUTLINE BUTTON GLOW ──────────────────────── */
.btn-outline:hover,
.btn-outline-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ── GLASSMORPHISM HERO STATS ──────────────────── */
.hero-stats {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-item {
    position: relative;
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.stat-number {
    transition: all 0.3s ease;
}

/* ── SECTION BADGE UPGRADE ─────────────────────── */
.section-badge {
    position: relative;
    overflow: hidden;
}

.section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: badgeShimmer 4s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* ── PREMIUM FOOTER ────────────────────────────── */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(59, 130, 246, 0.3),
        rgba(6, 182, 212, 0.3),
        rgba(139, 92, 246, 0.3),
        transparent
    );
    animation: footerBorderGlow 6s linear infinite;
    background-size: 200% 100%;
}

@keyframes footerBorderGlow {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.footer-top {
    position: relative;
}

.footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* ── PREMIUM NEWSLETTER INPUT ──────────────────── */
.newsletter-form .form-control {
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.08);
}

/* ── CURSOR GLOW EFFECT ────────────────────────── */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* ── PREMIUM TOAST NOTIFICATIONS ───────────────── */
.toast {
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ── TEXT GRADIENT EFFECT (hero title) ─────────── */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #06b6d4 40%, #a78bfa 80%, #60a5fa 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 8s ease-in-out infinite;
}

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

/* ── HERO CTA BUTTON GLOW PULSE ────────────────── */
.hero-cta .btn-primary {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    animation: ctaGlow 3s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.5), 0 0 80px rgba(37, 99, 235, 0.15); }
}

/* ── PREMIUM SCROLL INDICATOR ──────────────────── */
.scroll-mouse {
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.scroll-wheel {
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* ── TRUST ITEMS GLOW ──────────────────────────── */
.trust-item {
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* ── AUTH PAGE PREMIUM BACKGROUND ──────────────── */
.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 30%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ── FORM INPUT PREMIUM FOCUS ──────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-400) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 20px rgba(59, 130, 246, 0.05) !important;
    transition: all 0.3s ease;
}

/* ── LISTING PRICE — PREMIUM GRADIENT ──────────── */
.listing-price .price {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ── COOKIE BANNER GLASSMORPHISM ───────────────── */
.cookie-banner,
.cookie-consent {
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

/* ── BROWSE PAGE FILTER PANEL ──────────────────── */
.filter-panel,
.filters-card {
    transition: all 0.3s ease;
}

.filter-panel:hover,
.filters-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* ── PAGE ENTER ANIMATION ──────────────────────── */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main > section:first-child:not(.hero) {
    animation: pageEnter 0.5s ease-out;
}

/* ── MISSING KEYFRAMES (button ripple + form shake) ── */
@keyframes rippleEffect {
    from { transform: scale(0); opacity: 1; }
    to { transform: scale(4); opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ── NAV LINK HOVER UNDERLINE ──────────────────── */
.desktop-nav .nav-link {
    position: relative;
}

.desktop-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-400), var(--accent-cyan));
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.desktop-nav .nav-link:hover::after,
.desktop-nav .nav-link.active::after {
    width: 70%;
}

/* ── LISTING NO-IMAGE PREMIUM PLACEHOLDER ──────── */
.listing-no-image {
    background: linear-gradient(135deg, var(--primary-50) 0%, #e0e7ff 50%, var(--primary-100) 100%);
    position: relative;
    overflow: hidden;
}

.listing-no-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    animation: placeholderPulse 4s ease-in-out infinite;
}

@keyframes placeholderPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.listing-no-image i {
    position: relative;
    z-index: 1;
    color: var(--primary-300);
    font-size: 2.5rem;
    opacity: 0.6;
}

/* ── MOBILE MENU PREMIUM ───────────────────────── */
.mobile-menu {
    backdrop-filter: blur(24px) saturate(2);
    -webkit-backdrop-filter: blur(24px) saturate(2);
}

/* ── LOGO ICON GLOW ────────────────────────────── */
.logo-icon {
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary-400), var(--accent-cyan));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.logo:hover .logo-icon::after {
    opacity: 0.4;
}

/* ── HERO BADGE PREMIUM ────────────────────────── */
.hero-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ── SEARCH INPUT GLOW ON BROWSE PAGE ──────────── */
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 30px rgba(59, 130, 246, 0.08);
}

/* ── SMOOTH NUMBER MORPH TRANSITION ────────────── */
.stat-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* ── USER AVATAR RING ON HOVER ─────────────────── */
.user-avatar,
.user-avatar-placeholder {
    transition: all 0.3s ease;
}

.user-menu-trigger:hover .user-avatar,
.user-menu-trigger:hover .user-avatar-placeholder {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ── DROPDOWN PREMIUM ──────────────────────────── */
.user-menu-dropdown {
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

/* ── EMPTY STATE ILLUSTRATION ──────────────────── */
.empty-state {
    position: relative;
}

.empty-state .empty-icon i {
    background: linear-gradient(135deg, var(--primary-400), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── BADGE CONDITION — SUBTLE GLOW ─────────────── */
.badge-excellent { box-shadow: 0 0 8px rgba(16, 185, 129, 0.2); }
.badge-very_good { box-shadow: 0 0 8px rgba(59, 130, 246, 0.2); }
.badge-good { box-shadow: 0 0 8px rgba(139, 92, 246, 0.15); }

/* ── SUBTLE NOISE TEXTURE ON HERO ──────────────── */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ── MOTION: Respect user preferences ──────────── */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero-orb,
    .step-connector::after,
    .footer::before,
    .cta-section::before,
    .listing-no-image::before,
    .text-gradient,
    .section-badge::before,
    .listing-card::before,
    .hero-cta .btn-primary { animation: none !important; }

    .listing-card:hover,
    .feature-card:hover,
    .category-card:hover,
    .step-card:hover {
        transform: none !important;
    }
}

/* ── DARK HERO PARTICLE LAYER FIX ──────────────── */
.hero-particles {
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-scroll {
    position: relative;
    z-index: 2;
}

/* ============================================
   FRONTEND DESIGN UPGRADE — DISTINCTIVE TYPOGRAPHY & VISUALS v3.0
   Plus Jakarta Sans (headings) + Outfit (body accents)
   ============================================ */

/* ── Typography System ──────────────────────────────────── */
:root {
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-accent: 'Outfit', 'Inter', system-ui, sans-serif;
}

/* Hero headline — distinctive display font */
.hero-section h1,
.hero h1,
.hero-content h1 {
    font-family: var(--font-display) !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

/* Section headings — refined display font */
.section-title,
.section h2,
h2.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Feature card titles, step titles */
.feature-card h3,
.step h3,
.category-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Stats, badges, accent text */
.hero-stat-value,
.stat-number,
.listing-price,
.price {
    font-family: var(--font-accent);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Page header titles (browse, profile, etc.) */
.page-title {
    font-family: var(--font-display) !important;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Nav brand */
.navbar-brand span,
.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ── Frosted Glass Depth Layer ──────────────────────────── */
/* Premium card glass border refinement */
.feature-card,
.listing-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Listing Card Premium Overhaul ──────────────────────── */
.listing-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.listing-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 20px 40px rgba(26, 86, 219, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Card image zoom on hover */
.listing-card img {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.listing-card:hover img {
    transform: scale(1.06);
}

/* Subtle gradient border on hover */
.listing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(20, 184, 166, 0.3), rgba(99, 102, 241, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.listing-card:hover::after {
    opacity: 1;
}

/* ── Category Card Refinement ───────────────────────────── */
.category-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(26, 86, 219, 0.1);
}

/* Icon pulse on hover */
.category-card:hover .category-icon,
.category-card:hover i:first-child {
    animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25) rotate(-5deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

/* ── Feature Card Glow Ring ─────────────────────────────── */
.feature-card {
    position: relative;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.1),
        0 16px 32px rgba(26, 86, 219, 0.08);
}

/* Feature icon background glow */
.feature-card:hover .feature-icon {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* ── CTA Section Premium Gradient ───────────────────────── */
.cta-section,
section:last-of-type .container > div[style*="gradient"] {
    position: relative;
    overflow: hidden;
}

/* ── Premium Button Micro-interactions ──────────────────── */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Radial highlight on hover */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* ── Staggered Text Reveal for Hero ─────────────────────── */
.hero-content h1 .line-reveal {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: lineReveal 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-content h1 .line-reveal:nth-child(2) { animation-delay: 0.12s; }
.hero-content h1 .line-reveal:nth-child(3) { animation-delay: 0.24s; }

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

/* ── Listing Detail Page Typography ─────────────────────── */
.listing-detail-layout h1 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* ── Footer Typography Enhancement ──────────────────────── */
.footer-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ── Auth Pages Typography ──────────────────────────────── */
.auth-container h1,
.auth-container h2 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ── Smooth Skeleton Loading for Images ─────────────────── */
.listing-card .no-image-placeholder {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50), var(--gray-100));
    background-size: 200% 200%;
    animation: skeletonShimmer 2s ease-in-out infinite;
}

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

/* ── Badge Typography ───────────────────────────────────── */
.badge,
.condition-badge {
    font-family: var(--font-accent);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── Scroll-Linked Fade for Page Headers ────────────────── */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(249, 250, 251, 0.8));
    pointer-events: none;
}

/* ── Motion Preferences Guard ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .listing-card,
    .listing-card img,
    .category-card,
    .feature-card,
    .btn-primary {
        transition: none !important;
    }

    .listing-card:hover,
    .category-card:hover,
    .feature-card:hover {
        transform: none !important;
    }

    .listing-card:hover img {
        transform: none !important;
    }

    .hero-content h1 .line-reveal {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .no-image-placeholder {
        animation: none !important;
    }

    .category-card:hover .category-icon,
    .category-card:hover i:first-child {
        animation: none !important;
    }
}

/* ============================================
   DARK FUTURISTIC THEME — COSMIC NEON v1.0
   Inspired by neural-network / AI SaaS dark aesthetics
   Deep space backgrounds, neon cyan/magenta/violet glows,
   glass-morphic dark cards, dramatic gradients
   ============================================ */

/* ── Override CSS Variables ─────────────────────────────── */
:root {
    /* Dark Palette */
    --dark-void: #050510;
    --dark-deep: #0a0a1a;
    --dark-surface: #0f0f23;
    --dark-card: #12122a;
    --dark-elevated: #1a1a3e;
    --dark-border: rgba(255, 255, 255, 0.06);
    --dark-border-glow: rgba(139, 92, 246, 0.15);

    /* Neon Accents */
    --neon-cyan: #22d3ee;
    --neon-magenta: #e879f9;
    --neon-violet: #a78bfa;
    --neon-blue: #60a5fa;
    --neon-orange: #fb923c;
    --neon-pink: #f472b6;

    /* Override gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #050510 0%, #0a0a2e 30%, #12062e 60%, #050510 100%);
    --gradient-card: linear-gradient(145deg, rgba(18, 18, 42, 0.8) 0%, rgba(10, 10, 26, 0.9) 100%);
    --gradient-neon: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet), var(--neon-magenta));
    --gradient-warm: linear-gradient(135deg, var(--neon-orange), var(--neon-pink), var(--neon-magenta));

    /* Override shadows for dark theme */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-neon-cyan: 0 0 20px rgba(34, 211, 238, 0.3), 0 0 60px rgba(34, 211, 238, 0.1);
    --shadow-neon-magenta: 0 0 20px rgba(232, 121, 249, 0.3), 0 0 60px rgba(232, 121, 249, 0.1);
    --shadow-neon-violet: 0 0 20px rgba(167, 139, 250, 0.3), 0 0 60px rgba(167, 139, 250, 0.1);

    /* Override grays for dark mode text */
    --gray-50: #0f0f23;
    --gray-100: #1a1a3e;
    --gray-200: rgba(255, 255, 255, 0.08);
    --gray-300: rgba(255, 255, 255, 0.12);
    --gray-400: rgba(255, 255, 255, 0.3);
    --gray-500: rgba(255, 255, 255, 0.5);
    --gray-600: rgba(255, 255, 255, 0.6);
    --gray-700: rgba(255, 255, 255, 0.75);
    --gray-800: rgba(255, 255, 255, 0.9);
    --gray-900: #f0f0ff;

    /* Override font */
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* ── Base Overrides ─────────────────────────────────────── */
body {
    background-color: var(--dark-void) !important;
    color: rgba(255, 255, 255, 0.85);
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(34, 211, 238, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
}

/* ── Navbar Dark Overhaul ───────────────────────────────── */
.navbar {
    background: rgba(5, 5, 16, 0.6) !important;
    backdrop-filter: blur(24px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.navbar.scrolled {
    background: rgba(5, 5, 16, 0.85) !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.05) !important;
}

.logo-text {
    color: #f0f0ff !important;
}

.logo-icon {
    background: var(--gradient-neon) !important;
    box-shadow: var(--shadow-neon-violet) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan) !important;
}

.nav-link::after {
    background: var(--gradient-neon) !important;
}

.navbar.scrolled .logo-text {
    color: #f0f0ff !important;
}

.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--neon-cyan) !important;
}

/* Mobile menu dark */
.mobile-menu {
    background: rgba(10, 10, 26, 0.98) !important;
    backdrop-filter: blur(20px) saturate(2) !important;
    -webkit-backdrop-filter: blur(20px) saturate(2) !important;
    border-left: 1px solid rgba(139, 92, 246, 0.15) !important;
}

.mobile-menu-header {
    border-bottom-color: rgba(139, 92, 246, 0.12) !important;
}

.mobile-menu-close {
    color: rgba(255, 255, 255, 0.6) !important;
}

.mobile-menu-close:hover {
    background: rgba(139, 92, 246, 0.12) !important;
    color: var(--neon-cyan) !important;
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
}

.mobile-nav-link i {
    color: rgba(167, 139, 250, 0.7) !important;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--neon-cyan) !important;
    background: rgba(139, 92, 246, 0.1) !important;
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
    color: var(--neon-cyan) !important;
}

.mobile-nav-link--invite {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15)) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    color: var(--neon-violet) !important;
}

.mobile-nav-link--invite:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25)) !important;
    color: #fff !important;
}

.mobile-nav-link--logout {
    color: rgba(248, 113, 113, 0.8) !important;
}

.mobile-nav-link--logout:hover {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.mobile-menu-overlay {
    background: rgba(5, 5, 16, 0.7) !important;
}

.mobile-menu-toggle span {
    background: rgba(255, 255, 255, 0.8) !important;
}

/* User menu dark */
.user-menu-trigger {
    color: rgba(255, 255, 255, 0.7) !important;
}

.user-menu-dropdown {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-border-glow) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.05) !important;
}

.user-menu-dropdown a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.user-menu-dropdown a:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--neon-cyan) !important;
}

/* ── Hero Section — Cosmic Gradient ─────────────────────── */
.hero-section,
.hero,
[class*="hero"] {
    background: var(--gradient-hero) !important;
    position: relative;
}

.hero-section::before,
.hero::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        radial-gradient(ellipse 40% 40% at 15% 30%, rgba(232, 121, 249, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 35% 35% at 75% 25%, rgba(34, 211, 238, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 50% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 30% 25% at 85% 80%, rgba(251, 146, 60, 0.06) 0%, transparent 70%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Animated mesh orbs in hero */
.hero-orb--1 {
    background: radial-gradient(circle, rgba(232, 121, 249, 0.25) 0%, transparent 70%) !important;
    width: 500px !important; height: 500px !important;
}
.hero-orb--2 {
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%) !important;
    width: 400px !important; height: 400px !important;
}
.hero-orb--3 {
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%) !important;
    width: 350px !important; height: 350px !important;
}

/* Hero text */
.hero-content h1,
.hero-section h1,
.hero h1 {
    color: #f0f0ff !important;
    text-shadow: 0 0 80px rgba(139, 92, 246, 0.3) !important;
}

.hero-content h1 br + span,
.hero-content h1 span,
.hero h1 br + * {
    background: var(--gradient-neon) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hero-content p,
.hero p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Hero stats bar */
.hero-stats,
.hero [class*="stats"] {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ── Page Headers ───────────────────────────────────────── */
.page-header {
    background: var(--gradient-hero) !important;
}

.page-header::after {
    background: linear-gradient(to bottom, transparent, var(--dark-void)) !important;
}

.page-title {
    color: #f0f0ff !important;
}

/* ── Section Overrides ──────────────────────────────────── */
.section {
    background: transparent !important;
}

.section-alt {
    background: rgba(10, 10, 26, 0.5) !important;
}

.section-badge {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--neon-violet) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

.section-title {
    color: #f0f0ff !important;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ── Feature Cards — Dark Glass ─────────────────────────── */
.feature-card {
    background: rgba(18, 18, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.2) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.08) !important;
}

.feature-icon {
    background: var(--gradient-neon) !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25) !important;
}

.feature-title {
    color: #f0f0ff !important;
}

.feature-description {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ── Category Cards — Neon Glass ────────────────────────── */
.category-card {
    background: rgba(18, 18, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

.category-card::before {
    background: var(--gradient-neon) !important;
}

.category-card:hover {
    border-color: rgba(34, 211, 238, 0.2) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), var(--shadow-neon-cyan) !important;
}

.category-card:hover .category-name,
.category-card:hover h3 {
    color: white !important;
}

.category-icon {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--neon-violet) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
}

.category-name,
.category-card h3 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.category-count {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ── Listing Cards — Dark Depth ─────────────────────────── */
.listing-card {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(8px) !important;
}

.listing-card:hover {
    border-color: rgba(139, 92, 246, 0.15) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.06) !important;
}

.listing-card::after {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(139, 92, 246, 0.3), rgba(232, 121, 249, 0.2)) !important;
}

.listing-image {
    background: var(--dark-deep) !important;
}

.listing-no-image {
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-elevated) 100%) !important;
    color: var(--neon-violet) !important;
}

.listing-content {
    background: transparent !important;
}

.listing-category {
    color: var(--neon-cyan) !important;
}

.listing-title {
    color: #f0f0ff !important;
}

.listing-description {
    color: rgba(255, 255, 255, 0.45) !important;
}

.listing-price {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.3) !important;
}

.listing-location {
    color: rgba(255, 255, 255, 0.4) !important;
}

.listing-verified {
    background: var(--dark-card) !important;
    color: var(--neon-cyan) !important;
    border: 1px solid rgba(34, 211, 238, 0.2) !important;
}

/* Condition badges dark */
.badge,
.condition-badge,
[class*="badge"] {
    background: rgba(139, 92, 246, 0.15) !important;
    color: var(--neon-violet) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

.badge-success,
[class*="badge"][style*="background: #d1fae5"],
[class*="badge"][style*="background: #dcfce7"] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

/* ── Buttons — Neon Glow ────────────────────────────────── */
.btn-primary {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4) !important;
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.15) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
    color: #f0f0ff !important;
}

/* Hero CTA buttons */
.hero-cta .btn-primary,
.hero .btn-primary {
    background: var(--gradient-neon) !important;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3), 0 0 60px rgba(34, 211, 238, 0.1) !important;
    color: #050510 !important;
    font-weight: 700 !important;
}

.hero-cta .btn-secondary,
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px) !important;
}

.hero-cta .btn-secondary:hover,
.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(34, 211, 238, 0.3) !important;
    color: var(--neon-cyan) !important;
}

/* ── Steps Section ──────────────────────────────────────── */
.step-number {
    background: var(--gradient-neon) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.step h3 {
    color: #f0f0ff !important;
}

.step p {
    color: rgba(255, 255, 255, 0.5) !important;
}

.step-connector {
    border-color: rgba(139, 92, 246, 0.2) !important;
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section,
section [style*="gradient-primary"],
section [style*="gradient-hero"] {
    background: var(--gradient-hero) !important;
}

/* ── Forms — Neon Focus ─────────────────────────────────── */
input, select, textarea {
    background: rgba(18, 18, 42, 0.6) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

input:focus, select:focus, textarea:focus {
    border-color: rgba(139, 92, 246, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1), 0 0 20px rgba(139, 92, 246, 0.08) !important;
    outline: none !important;
}

/* ── Footer — Deep Space ────────────────────────────────── */
footer,
.footer,
.site-footer {
    background: var(--dark-deep) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border-top: 1px solid rgba(139, 92, 246, 0.1) !important;
}

.footer-title {
    color: #f0f0ff !important;
}

footer a,
.footer a {
    color: rgba(255, 255, 255, 0.5) !important;
}

footer a:hover,
.footer a:hover {
    color: var(--neon-cyan) !important;
}

/* Footer newsletter input */
footer input[type="email"] {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Footer gradient top border — now neon */
footer::before,
.site-footer::before {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet), var(--neon-magenta), var(--neon-cyan)) !important;
}

/* ── Auth Pages ─────────────────────────────────────────── */
.auth-container,
.auth-card,
[class*="auth"] form,
body > div > div[style*="background: white"],
.login-card,
.register-card {
    background: rgba(18, 18, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
}

.auth-container h1,
.auth-container h2 {
    color: #f0f0ff !important;
}

.auth-container label {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ── Scroll Progress Bar — Neon ─────────────────────────── */
.scroll-progress {
    background: var(--gradient-neon) !important;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.4), 0 0 30px rgba(139, 92, 246, 0.2) !important;
}

/* ── Cursor Glow — Violet ───────────────────────────────── */
.cursor-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%) !important;
}

/* ── Cookie Banner ──────────────────────────────────────── */
.cookie-banner,
[class*="cookie"] {
    background: rgba(10, 10, 26, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(139, 92, 246, 0.1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ── Inline Styles Override ─────────────────────────────── */
/* Override common inline background: white */
[style*="background: white"],
[style*="background:white"],
[style*="background-color: white"],
[style*="background: #fff"],
[style*="background-color: #fff"],
[style*="background: rgb(255"] {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Override inline color: var(--gray-900) and similar dark text */
[style*="color: var(--gray-900)"],
[style*="color: #111827"],
[style*="color: #1f2937"],
[style*="color: #374151"] {
    color: #f0f0ff !important;
}

/* Override inline color for subtitles */
[style*="color: var(--gray-500)"],
[style*="color: var(--gray-600)"],
[style*="color: #6b7280"],
[style*="color: #4b5563"] {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Override inline borders */
[style*="border: 1px solid var(--gray-200)"],
[style*="border: 1px solid var(--gray-100)"],
[style*="border-bottom: 1px solid var(--gray-100)"],
[style*="border-bottom: 1px solid var(--gray-200)"] {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* ── Alert overrides ────────────────────────────────────── */
.alert-error,
[class*="alert"][style*="background: #fee2e2"] {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
    border-left-color: #ef4444 !important;
}

.alert-success,
[class*="alert"][style*="background: #d1fae5"] {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #6ee7b7 !important;
    border-left-color: #10b981 !important;
}

/* ── Animated Neon Grid Background ──────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 80%);
}

/* ── Floating Neon Particles (CSS-only) ─────────────────── */
body::after {
    content: '';
    position: fixed;
    top: 15%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 121, 249, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.9); }
}

/* ── Listing Detail Page Overrides ──────────────────────── */
.listing-detail-layout [style*="background: white"] {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.listing-detail-layout h1,
.listing-detail-layout h2,
.listing-detail-layout h3 {
    color: #f0f0ff !important;
}

.listing-detail-layout p,
.listing-detail-layout span {
    color: rgba(255, 255, 255, 0.6);
}

/* Breadcrumb dark */
.breadcrumb a {
    color: rgba(255, 255, 255, 0.4) !important;
}

.breadcrumb a:hover {
    color: var(--neon-cyan) !important;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ── Browse Page Filters ────────────────────────────────── */
[class*="filter"],
.filters-panel {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ── Profile Page ───────────────────────────────────────── */
.profile-header,
[style*="background: var(--gradient-primary)"] {
    background: var(--gradient-hero) !important;
}

/* ── Tables (Admin) ─────────────────────────────────────── */
table {
    background: rgba(18, 18, 42, 0.6);
    color: rgba(255, 255, 255, 0.8);
}

table th {
    background: rgba(139, 92, 246, 0.08) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

table tr:hover td {
    background: rgba(139, 92, 246, 0.04) !important;
}

/* ── Selection Color ────────────────────────────────────── */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #f0f0ff;
}

/* ============================================
   DARK THEME v2.0 — COMPREHENSIVE OVERRIDES
   Covers ALL inline background:white elements,
   step cards, empty states, messages, profile,
   admin, browse, sell, notifications, etc.
   ============================================ */

/* ── Universal White Background Override ──────────────── */
/* Catch all inline white variants (with/without spaces) */
[style*="background:white"],
[style*="background: white"],
[style*="background:#fff"],
[style*="background: #fff"],
[style*="background-color:white"],
[style*="background-color: white"],
[style*="background-color:#fff"],
[style*="background-color: #fff"],
[style*="background: rgb(255, 255, 255)"],
[style*="background-color: rgb(255"] {
    background: rgba(18, 18, 42, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Fix nested text inside dark-overridden white cards */
[style*="background: white"] h3,
[style*="background: white"] h4,
[style*="background:white"] h3,
[style*="background:white"] h4,
[style*="background: white"] p,
[style*="background:white"] p,
[style*="background: white"] li,
[style*="background:white"] li,
[style*="background: white"] span,
[style*="background:white"] span {
    color: rgba(255, 255, 255, 0.75) !important;
}

[style*="background: white"] a,
[style*="background:white"] a {
    color: var(--neon-cyan) !important;
}

[style*="background: white"] label,
[style*="background:white"] label,
[style*="background: white"] .form-label,
[style*="background:white"] .form-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

[style*="background: white"] .form-hint,
[style*="background:white"] .form-hint {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ── Step Cards (How it works section) ────────────────── */
.step-card {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

.step-title {
    color: #f0f0ff !important;
}

.step-description {
    color: rgba(255, 255, 255, 0.5) !important;
}

.step-icon {
    background: var(--gradient-neon) !important;
    color: #050510 !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25) !important;
}

.step-icon i {
    color: #050510 !important;
}

/* ── Empty State ──────────────────────────────────────── */
.empty-state {
    background: rgba(18, 18, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--radius-xl) !important;
    padding: 48px 32px !important;
}

.empty-state h3 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ── Messages Page ────────────────────────────────────── */
.messages-page,
.messages-container {
    background: transparent !important;
}

.conversations-sidebar {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.conversations-header {
    background: rgba(10, 10, 26, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #f0f0ff !important;
}

.conversations-header h2,
.conversations-header h3 {
    color: var(--neon-cyan) !important;
}

.conversations-list {
    background: transparent !important;
}

.conversation-item {
    color: rgba(255, 255, 255, 0.75) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.conversation-item:hover,
.conversation-item.active {
    background: rgba(139, 92, 246, 0.08) !important;
}

.conversation-item .conversation-name,
.conversation-item .name {
    color: #f0f0ff !important;
}

.conversation-item .conversation-preview,
.conversation-item .preview,
.conversation-item .last-message {
    color: rgba(255, 255, 255, 0.4) !important;
}

.conversation-item .conversation-time,
.conversation-item .time {
    color: rgba(255, 255, 255, 0.3) !important;
}

.chat-area {
    background: rgba(15, 15, 35, 0.5) !important;
}

.chat-header {
    background: rgba(10, 10, 26, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.chat-header-name {
    color: #f0f0ff !important;
}

.chat-header-status {
    color: rgba(255, 255, 255, 0.4) !important;
}

.chat-messages {
    background: rgba(10, 10, 26, 0.3) !important;
}

.message-bubble {
    background: rgba(18, 18, 42, 0.8) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.message.own .message-bubble {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
}

.message-time {
    color: rgba(255, 255, 255, 0.3) !important;
}

.chat-input-area {
    background: rgba(10, 10, 26, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ── Browse Page ──────────────────────────────────────── */
.filters-card,
.filter-panel,
.browse-filters {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.sort-bar {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.filter-section-title,
.filter-label {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Alert targeted subscription box */
.alert-box,
[class*="alert-box"],
.favorites-alert {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ── Profile Page ─────────────────────────────────────── */
.profile-card,
.profile-section,
.profile-info-card {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.profile-stats {
    background: rgba(18, 18, 42, 0.5) !important;
}

.profile-name,
.profile-title {
    color: #f0f0ff !important;
}

.profile-email,
.profile-subtitle {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ── Admin Page ───────────────────────────────────────── */
.admin-nav {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.admin-nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: var(--neon-cyan) !important;
    background: rgba(139, 92, 246, 0.1) !important;
}

.admin-section-title {
    color: #f0f0ff !important;
}

.admin-stat-card,
.stat-card {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.admin-stat-card h3,
.stat-card h3 {
    color: #f0f0ff !important;
}

.admin-stat-card p,
.stat-card p {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Admin table override */
.admin-table {
    background: rgba(18, 18, 42, 0.6) !important;
}

/* ── Notifications Page ───────────────────────────────── */
.notification-card,
.notification-item {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ── Sell Page ─────────────────────────────────────────── */
.sell-step,
.form-card {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ── Invite Page ──────────────────────────────────────── */
.invite-card {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ── Inline gradient backgrounds that should be dark ──── */
[style*="background: linear-gradient(135deg, #eff6ff"],
[style*="background: linear-gradient(135deg, #e0f2fe"],
[style*="background: linear-gradient(135deg, #d1fae5"],
[style*="background: linear-gradient(135deg, #fef3c7"] {
    background: rgba(139, 92, 246, 0.08) !important;
    border-color: rgba(139, 92, 246, 0.15) !important;
}

[style*="background: linear-gradient(135deg, #eff6ff"] h4,
[style*="background: linear-gradient(135deg, #e0f2fe"] h4 {
    color: var(--neon-cyan) !important;
}

[style*="background: linear-gradient(135deg, #eff6ff"] p,
[style*="background: linear-gradient(135deg, #e0f2fe"] p {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ── Inline blue/green colored text overrides ─────────── */
[style*="color: #1e40af"],
[style*="color: #0284c7"],
[style*="color: #059669"],
[style*="color: #92400e"] {
    color: var(--neon-cyan) !important;
}

[style*="color: #3b82f6"] {
    color: rgba(167, 139, 250, 0.8) !important;
}

/* ── Inline icon circles with white bg ────────────────── */
[style*="background: white"][style*="border-radius: 50%"],
[style*="background:white"][style*="border-radius: 50%"] {
    background: rgba(139, 92, 246, 0.15) !important;
}

/* ── Ping box / SEO tools gradient override ───────────── */
[style*="background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%)"] {
    background: rgba(34, 211, 238, 0.06) !important;
    border-color: rgba(34, 211, 238, 0.15) !important;
}

/* ── Inline gray backgrounds ──────────────────────────── */
[style*="background: var(--gray-50)"] {
    background: rgba(18, 18, 42, 0.5) !important;
}

/* ── Sell page step indicators ────────────────────────── */
.step-indicator .step-dot,
.progress-step {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.step-indicator .step-dot.active,
.progress-step.active {
    background: var(--gradient-neon) !important;
}

/* ── Listing detail page ──────────────────────────────── */
.listing-detail-layout .listing-gallery {
    background: rgba(18, 18, 42, 0.7) !important;
}

/* ── Contact page ─────────────────────────────────────── */
.contact-form,
.contact-card {
    background: rgba(18, 18, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ── Alert banner dark overrides ──────────────────────── */
[style*="border-left: 4px solid #2563eb"] {
    border-left-color: var(--neon-cyan) !important;
}

[style*="border-left: 4px solid #d1d5db"] {
    border-left-color: rgba(255, 255, 255, 0.1) !important;
}

/* ── User dropdown dark ───────────────────────────────── */
.user-dropdown,
.dropdown-menu {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-border-glow) !important;
}

/* ── Reduced Motion Guard ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    body::after { animation: none !important; }
}
