/* AVITA - Modern Classifieds Marketplace */
/* Custom Design System */

:root {
    /* Brand Colors */
    --primary: #00aaff;
    --primary-dark: #0088cc;
    --secondary: #7c3aed;
    --accent-orange: #ff6b35;
    --accent-green: #00d084;
    --accent-cyan: #00c4cc;
    
    /* Neutrals */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
}

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

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

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

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

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-icon.small {
    width: 30px;
    height: 30px;
}

.logo-petal {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 8px 8px 8px 2px;
}

.logo-icon.small .logo-petal {
    width: 15px;
    height: 15px;
    border-radius: 6px 6px 6px 2px;
}

.logo-petal.purple {
    background: var(--secondary);
    top: 0;
    left: 8px;
    transform: rotate(-45deg);
}

.logo-petal.cyan {
    background: var(--accent-cyan);
    top: 12px;
    left: 0;
    transform: rotate(45deg);
}

.logo-petal.orange {
    background: var(--accent-orange);
    top: 8px;
    right: 0;
    transform: rotate(-135deg);
}

.logo-petal.green {
    background: var(--accent-green);
    bottom: 0;
    left: 12px;
    transform: rotate(135deg);
}

.logo-center {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--text-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-icon.small .logo-center {
    width: 7px;
    height: 7px;
}

.logo-text {
    background: linear-gradient(135deg, var(--text-primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Form */
.search-form {
    flex: 1;
    max-width: 500px;
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.search-form:focus-within {
    border-color: var(--primary);
}

.search-form input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: none;
    background: none;
    outline: none;
}

.search-form button {
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: white;
    transition: background var(--transition-fast);
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-tertiary);
}

.nav-link i {
    font-size: 1.1rem;
}

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

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.user-menu-btn:hover {
    background: var(--bg-tertiary);
}

.user-menu-btn img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 100;
}

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

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.user-dropdown a:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.user-dropdown a:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--space-xs) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(0, 170, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.4);
}

.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    background: var(--bg-secondary);
}

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

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

.btn-danger:hover {
    background: #dc2626;
}

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

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

.btn-white:hover {
    background: var(--bg-tertiary);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    padding: var(--space-sm);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.mobile-menu {
    display: none;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    min-width: 300px;
}

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

.flash-message.error {
    border-left: 4px solid var(--danger);
}

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

.close-flash {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.close-flash:hover {
    color: var(--text-primary);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #e0f2fe 50%, #f0fdf4 100%);
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.hero-search {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-search input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: none;
    outline: none;
    font-size: 1rem;
}

.hero-search select {
    padding: var(--space-md);
    border: none;
    border-left: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    outline: none;
    cursor: pointer;
}

.hero-search button {
    padding: var(--space-md) var(--space-xl);
    background: var(--primary);
    color: white;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.hero-search button:hover {
    background: var(--primary-dark);
}

.hero-decoration {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
}

.floating-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2), rgba(124, 58, 237, 0.2));
    right: 10%;
    top: 20%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.2), rgba(0, 196, 204, 0.2));
    right: 30%;
    bottom: 10%;
    animation-delay: -2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(245, 158, 11, 0.2));
    right: 5%;
    bottom: 30%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Section Styles */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.view-all {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-weight: 600;
}

.view-all:hover {
    gap: var(--space-sm);
}

/* Categories Section */
.categories-section {
    padding: var(--space-xl) var(--space-md);
    background: #f5f5f5;
}

.categories-grid-exact {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
    max-width: 100%;
}

.category-card-exact {
    position: relative;
    aspect-ratio: 1.2;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: all var(--transition-normal);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.category-card-exact:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-label-top {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    z-index: 2;
    max-width: calc(100% - 24px);
    word-wrap: break-word;
}

.category-icon-exact {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--space-xs);
    pointer-events: none;
    overflow: visible;
}

.category-image {
    width: auto;
    height: auto;
    max-width: 140%;
    max-height: 140%;
    min-width: 90px;
    min-height: 90px;
    object-fit: contain;
    object-position: bottom right;
}

.category-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
}

/* Realistic Icons - Exact Match */
.icon-auto-exact {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-auto-exact::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 32px;
    background: #4ade80;
    border-radius: 10px 10px 6px 6px;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.icon-auto-exact::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 22px;
    background: #ffffff;
    border-radius: 6px;
    bottom: 24px;
    right: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.icon-house-exact {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-house-exact::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-bottom: 30px solid #3b82f6;
    bottom: 30px;
    right: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.icon-house-exact::after {
    content: '';
    position: absolute;
    width: 38px;
    height: 28px;
    background: #60a5fa;
    border-radius: 3px;
    bottom: 20px;
    right: 15px;
    box-shadow: inset 0 0 0 2px #1e40af, 0 2px 4px rgba(0, 0, 0, 0.15);
}

.icon-briefcase-exact {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-briefcase-exact::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 36px;
    background: #d97706;
    border-radius: 5px;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.icon-briefcase-exact::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 5px;
    background: #92400e;
    border-radius: 2px;
    bottom: 38px;
    right: 22px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.icon-clothing {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-clothing::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 44px;
    background: #3b82f6;
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.icon-clothing::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 8px;
    background: #1e40af;
    border-radius: 2px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.icon-services {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-services::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.icon-services::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 4px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.icon-phone {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-phone::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 52px;
    background: #a855f7;
    border-radius: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.icon-phone::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 20px;
    background: #c4b5fd;
    border-radius: 4px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 0 0 1px #7c3aed;
}

.icon-sofa {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-sofa::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 28px;
    background: #94a3b8;
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.icon-sofa::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 2px;
    top: 12px;
    left: 12px;
}

.icon-wheel {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-wheel::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #1f2937;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.icon-wheel::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    background: #9ca3af;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 0 2px #374151;
}

.icon-baby {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-baby::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 40px;
    background: #4ade80;
    border-radius: 8px 8px 4px 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.icon-baby::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 20px;
    background: #22c55e;
    border-radius: 4px;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.icon-paw {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-paw::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background: #f59e0b;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.icon-business {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-business::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 32px;
    background: #6366f1;
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.icon-business::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 4px;
    background: #4f46e5;
    border-radius: 2px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.icon-beauty {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-beauty::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background: #ec4899;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.icon-beauty::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #f9a8d4;
    border-radius: 50%;
    top: 8px;
    left: 8px;
}

/* New Exact Match Icons */
.icon-clothing-exact {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-clothing-exact::before {
    content: '';
    position: absolute;
    width: 42px;
    height: 50px;
    background: #87ceeb;
    border-radius: 5px;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transform: rotate(-5deg);
}

.icon-skates-exact {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-skates-exact::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 24px;
    background: #ffffff;
    border-radius: 12px;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.icon-skates-exact::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #a855f7;
    border-radius: 50%;
    bottom: 12px;
    right: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.icon-cat-exact {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-cat-exact::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #9ca3af;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.icon-cat-exact::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #4b5563;
    border-radius: 50%;
    bottom: 32px;
    right: 28px;
    box-shadow: 0 0 0 2px #6b7280;
}

.icon-roller-exact {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-roller-exact::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.icon-roller-exact::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    border-radius: 5px;
    bottom: 24px;
    right: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.icon-phone-exact {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-phone-exact::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 58px;
    background: #a855f7;
    border-radius: 9px;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.icon-phone-exact::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 24px;
    background: #c4b5fd;
    border-radius: 5px;
    bottom: 32px;
    right: 24px;
    box-shadow: inset 0 0 0 2px #7c3aed;
}

.icon-chair-exact {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-chair-exact::before {
    content: '';
    position: absolute;
    width: 38px;
    height: 32px;
    background: #94a3b8;
    border-radius: 5px;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.icon-chair-exact::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 20px;
    background: #cbd5e1;
    border-radius: 3px;
    bottom: 28px;
    right: 27px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.icon-wheel-exact {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-wheel-exact::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    background: #1f2937;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.icon-wheel-exact::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background: #9ca3af;
    border-radius: 50%;
    bottom: 26px;
    right: 26px;
    box-shadow: inset 0 0 0 3px #374151;
}

.icon-stroller-exact {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-stroller-exact::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 44px;
    background: #4ade80;
    border-radius: 9px 9px 5px 5px;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.icon-stroller-exact::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 24px;
    background: #22c55e;
    border-radius: 4px;
    bottom: 16px;
    right: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.icon-suitcase-exact {
    width: 100%;
    height: 100%;
    position: relative;
}

.icon-suitcase-exact::before {
    content: '';
    position: absolute;
    width: 42px;
    height: 32px;
    background: #9ca3af;
    border-radius: 5px;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.icon-suitcase-exact::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #f3f4f6;
    border-radius: 50%;
    bottom: 32px;
    right: 29px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Ads Grid */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.ads-grid.small {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.ad-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

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

.ad-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

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

.premium-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: linear-gradient(135deg, var(--warning), var(--accent-orange));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.ad-info {
    padding: var(--space-md);
}

.ad-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.negotiable {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--success);
    margin-left: var(--space-xs);
}

.ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ad-meta i {
    margin-right: var(--space-xs);
}

/* Featured Section */
.featured-section {
    padding: var(--space-2xl) var(--space-md);
}

/* Promo Section */
.promo-section {
    padding: var(--space-2xl) var(--space-md);
    background: var(--bg-secondary);
}

.promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.promo-card {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    color: white;
    text-align: center;
}

.promo-card.sell {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.promo-card.work {
    background: linear-gradient(135deg, var(--secondary), #5b21b6);
}

.promo-card.services {
    background: linear-gradient(135deg, var(--accent-green), #059669);
}

.promo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.promo-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.promo-card p {
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

/* How It Works */
.how-it-works {
    padding: var(--space-2xl) var(--space-md);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.step h3 {
    margin-bottom: var(--space-sm);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--space-2xl) var(--space-md) var(--space-lg);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-section h4 {
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

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

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-md);
    background: linear-gradient(135deg, var(--bg-primary), #e0f2fe);
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: var(--space-md);
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    padding: var(--space-sm) var(--space-md) var(--space-sm) 44px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast);
}

.input-wrapper input:focus {
    border-color: var(--primary);
}

.toggle-password {
    position: absolute;
    right: var(--space-md);
    color: var(--text-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
}

.forgot-link {
    color: var(--primary);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-md) 0;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-auth {
    display: flex;
    gap: var(--space-md);
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.social-btn.vk {
    color: #0077ff;
}

.social-btn.google {
    color: #ea4335;
}

.social-btn:hover {
    background: var(--bg-tertiary);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--text-secondary);
}

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

/* Role Selector */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.role-option input {
    display: none;
}

.role-card {
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.role-card i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    display: block;
}

.role-card span {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.role-card small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.role-option input:checked + .role-card {
    border-color: var(--primary);
    background: rgba(0, 170, 255, 0.05);
}

.role-option input:checked + .role-card i {
    color: var(--primary);
}

/* Decoration circles */
.auth-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.decoration-circle.c1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), transparent);
    top: -100px;
    right: -100px;
}

.decoration-circle.c2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary), transparent);
    bottom: -75px;
    left: -75px;
}

.decoration-circle.c3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-green), transparent);
    top: 50%;
    left: -50px;
}

/* Category Page */
.category-page {
    padding: var(--space-xl) 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.breadcrumb i {
    font-size: 0.7rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.category-header h1 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.ads-count {
    color: var(--text-muted);
    font-size: 1rem;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.subcategory-chip {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.subcategory-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.filter-card h3 {
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.filter-group {
    margin-bottom: var(--space-md);
}

.filter-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary);
}

.price-range {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.price-range input {
    flex: 1;
}

/* Ads Section */
.ads-section {
    min-height: 400px;
}

.ads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sort-options select {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
}

.view-toggle {
    display: flex;
    gap: var(--space-xs);
}

.view-btn {
    padding: var(--space-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}

.empty-state.full-width {
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: var(--space-lg);
}

/* Ad Detail Page */
.ad-detail-page {
    padding: var(--space-xl) 0;
}

.ad-detail-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-xl);
}

.ad-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Gallery */
.ad-gallery {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery-main {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--bg-tertiary);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev { left: var(--space-md); }
.gallery-nav.next { right: var(--space-md); }

.gallery-thumbs {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    overflow-x: auto;
}

.gallery-thumbs .thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover {
    opacity: 1;
}

/* Ad Info Block */
.ad-info-block {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.ad-header h1 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.ad-actions {
    display: flex;
    gap: var(--space-sm);
}

.action-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

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

.action-btn.active,
.action-btn.favorite.active {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.ad-price-block {
    margin-bottom: var(--space-md);
}

.ad-price-block .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.negotiable-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-left: var(--space-sm);
}

.ad-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ad-meta-info i {
    margin-right: var(--space-xs);
}

.ad-description h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.description-text {
    white-space: pre-wrap;
    line-height: 1.7;
    color: var(--text-secondary);
}

.report-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.report-btn {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.report-btn:hover {
    color: var(--danger);
}

/* Sidebar */
.ad-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.seller-card,
.location-card,
.safety-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.seller-header {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.seller-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-info {
    display: flex;
    flex-direction: column;
}

.seller-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.seller-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.seller-status .verified {
    color: var(--success);
}

.master-badge {
    background: var(--secondary);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.member-since {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.show-phone {
    margin-bottom: var(--space-sm);
}

.location-card h3,
.safety-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.map-placeholder {
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.map-bg {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.map-bg i {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.safety-card ul {
    list-style: none;
}

.safety-card li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.safety-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

.owner-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Similar Ads */
.similar-ads {
    margin-top: var(--space-2xl);
}

.similar-ads h2 {
    margin-bottom: var(--space-lg);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 90%;
    max-width: 500px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.modal-header h3 {
    font-size: 1.25rem;
}

.close-modal {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.close-modal:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* New Ad Page */
.new-ad-page,
.edit-ad-page,
.new-vacancy-page,
.edit-profile-page {
    padding: var(--space-xl) 0;
}

.page-header {
    margin-bottom: var(--space-xl);
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.page-header p {
    color: var(--text-secondary);
}

.ad-form,
.vacancy-form,
.profile-form {
    max-width: 800px;
}

.form-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.form-section .form-group input,
.form-section .form-group select,
.form-section .form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-section .form-group input:focus,
.form-section .form-group select:focus,
.form-section .form-group textarea:focus {
    border-color: var(--primary);
}

.form-section .form-group small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

/* Image Upload */
.image-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(0, 170, 255, 0.05);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--primary);
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.preview-item .main-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

/* Profile Page */
.profile-page {
    padding: var(--space-xl) 0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    position: relative;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.edit-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.profile-badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.buyer {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.badge.master {
    background: rgba(124, 58, 237, 0.1);
    color: var(--secondary);
}

.badge.admin {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge.verified {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.profile-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--space-sm);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

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

.tab-btn.active {
    color: var(--primary);
    background: rgba(0, 170, 255, 0.1);
}

.tab-btn .count {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Ad List Item */
.ads-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.ad-list-item {
    display: flex;
    gap: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.ad-list-image {
    width: 150px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.ad-list-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
    display: block;
}

.ad-list-title:hover {
    color: var(--primary);
}

.ad-list-price {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.ad-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.status-active { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-rejected { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.status-sold { background: var(--bg-tertiary); color: var(--text-muted); }

.ad-list-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* Messages Page */
.messages-page {
    padding: var(--space-xl) 0;
}

.chats-list {
    max-width: 800px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    transition: all var(--transition-fast);
}

.chat-item:hover {
    box-shadow: var(--shadow-md);
}

.chat-avatar {
    position: relative;
    flex-shrink: 0;
}

.chat-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.master-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--secondary);
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
}

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

.chat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
}

.chat-name {
    font-weight: 600;
}

.chat-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chat-ad {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.chat-preview {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-preview.empty {
    font-style: italic;
    color: var(--text-muted);
}

.unread-count {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Chat Page */
.chat-page {
    padding: var(--space-xl) 0;
}

.chat-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 500px;
}

.chat-header-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.chat-user-info img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    display: block;
}

.user-role {
    font-size: 0.8rem;
    color: var(--secondary);
}

.chat-ad-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chat-ad-link strong {
    color: var(--text-primary);
}

.messages-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.empty-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.empty-chat i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.message {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    line-height: 1.4;
}

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

.message.received .message-content {
    background: var(--bg-tertiary);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.message-input-area {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.message-form {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    padding: var(--space-xs);
}

.attach-btn,
.send-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

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

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

.send-btn:hover {
    background: var(--primary-dark);
}

.message-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: var(--space-sm);
    background: none;
}

/* Vacancies Page */
.vacancies-page {
    padding: var(--space-xl) 0;
}

.vacancies-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
}

.vacancies-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.vacancy-card {
    display: block;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.vacancy-card:hover {
    box-shadow: var(--shadow-lg);
}

.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.vacancy-header h2 {
    font-size: 1.25rem;
}

.vacancy-salary {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
    white-space: nowrap;
}

.vacancy-company {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.vacancy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.vacancy-preview {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.vacancy-footer {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Vacancy Detail */
.vacancy-detail-page {
    padding: var(--space-xl) 0;
}

.vacancy-detail-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-xl);
}

.vacancy-main {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.vacancy-header-block {
    margin-bottom: var(--space-lg);
}

.vacancy-header-block h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.vacancy-salary-block {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.vacancy-company-block {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.vacancy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.vacancy-description h2 {
    margin-bottom: var(--space-md);
}

.vacancy-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.employer-card,
.vacancy-meta-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.employer-card h3 {
    margin-bottom: var(--space-md);
}

.employer-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.employer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.employer-name {
    font-weight: 600;
    display: block;
}

.employer-role {
    font-size: 0.85rem;
    color: var(--secondary);
}

/* User Profile Page */
.user-profile-page {
    padding: var(--space-xl) 0;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.user-avatar-large img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

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

.user-info-block h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.user-badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.user-location {
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.user-since {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.user-about {
    color: var(--text-secondary);
}

.user-ads-section h2 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.user-ads-section .count {
    background: var(--bg-tertiary);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Edit Profile */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.avatar-upload img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-actions input {
    display: none;
}

/* Current Images */
.current-images {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.current-image {
    width: 100px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

/* Admin Page */
.admin-page {
    padding: var(--space-xl) 0;
}

.admin-header {
    margin-bottom: var(--space-lg);
}

.admin-header h1 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 2rem;
}

.admin-nav {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--space-sm);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.admin-nav-item:hover {
    color: var(--text-primary);
}

.admin-nav-item.active {
    color: var(--primary);
    background: rgba(0, 170, 255, 0.1);
}

.admin-nav-item .badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.users { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.stat-icon.ads { background: linear-gradient(135deg, var(--secondary), #5b21b6); }
.stat-icon.pending { background: linear-gradient(135deg, var(--warning), #d97706); }
.stat-icon.vacancies { background: linear-gradient(135deg, var(--accent-green), #059669); }
.stat-icon.reports { background: linear-gradient(135deg, var(--danger), #dc2626); }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.quick-action {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.quick-action:hover {
    background: var(--bg-tertiary);
}

.quick-action i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--primary);
}

/* Admin Table */
.admin-table-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.admin-table th,
.admin-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-table tr:hover {
    background: var(--bg-primary);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.user-cell img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.table-thumb {
    width: 50px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.table-thumb.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.role-select,
.status-select {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
}

.status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.banned {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.admin-filters {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.filter-btn {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.empty-table {
    text-align: center;
    padding: var(--space-2xl) !important;
    color: var(--text-muted);
}

/* Reports */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.report-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.report-reason {
    font-weight: 600;
    color: var(--danger);
}

.report-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.report-content {
    margin-bottom: var(--space-md);
}

.report-content p {
    margin-bottom: var(--space-xs);
}

.report-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Search Page */
.search-page {
    padding: var(--space-xl) 0;
}

.search-header {
    margin-bottom: var(--space-xl);
}

.search-header h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.results-count {
    color: var(--text-muted);
}

.search-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
}

.search-results {
    min-height: 400px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .categories-grid-exact {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-content,
    .search-content,
    .vacancies-content {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .ad-detail-content,
    .vacancy-detail-content {
        grid-template-columns: 1fr;
    }
    
    .ad-sidebar,
    .vacancy-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .search-form {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-content {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        background: var(--bg-secondary);
        padding: var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-normal);
    }
    
    .mobile-menu.active .mobile-menu-content {
        transform: translateX(0);
    }
    
    .mobile-user-info {
        display: flex;
        align-items: center;
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-lg);
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-user-info img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .mobile-menu-content a {
        display: flex;
        align-items: center;
        gap: var(--space-md);
        padding: var(--space-md) 0;
        font-weight: 500;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-search {
        flex-direction: column;
    }
    
    .hero-search select {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .hero-decoration {
        display: none;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .ads-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-md);
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .user-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .chat-container {
        height: calc(100vh - 150px);
        border-radius: 0;
    }
    
    .message {
        max-width: 85%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .admin-nav {
        overflow-x: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ads-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid-exact {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
    
    .category-card-exact {
        aspect-ratio: 1.1;
    }
    
    .category-label-top {
        font-size: 0.85rem;
        top: 8px;
        left: 8px;
    }
    
    .promo-cards {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .social-auth {
        flex-direction: column;
    }
    
    .role-selector {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
