* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Убираем белый фон при выделении текста */
::selection {
    background: rgba(0, 255, 157, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(0, 255, 157, 0.3);
    color: #ffffff;
}

/* Убираем белый фон при выделении элементов */
*::selection {
    background: rgba(0, 255, 157, 0.3);
    color: #ffffff;
}

*::-moz-selection {
    background: rgba(0, 255, 157, 0.3);
    color: #ffffff;
}

/* Убираем подчеркивание при наведении на все элементы */
*:hover {
    text-decoration: none !important;
}

a, button, .nav-link, .btn-primary, .btn-filter, .order-card, .stat-card,
.order-type, .order-status, .order-info-value, .order-info-label {
    text-decoration: none !important;
    border-bottom: none !important;
}

a:hover, button:hover, .nav-link:hover, .btn-primary:hover, .btn-filter:hover, 
.order-card:hover, .stat-card:hover, .order-type:hover, .order-status:hover,
a:focus, button:focus, .nav-link:focus, .btn-primary:focus, .btn-filter:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
}

/* Убираем подчеркивание у всех ссылок и псевдоэлементов */
a::before, a::after,
.nav-link::before, .nav-link::after,
button::before, button::after {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Стили для всех select элементов */
select {
    background-color: var(--dark-bg) !important;
    color: var(--text-white) !important;
    text-decoration: none !important;
}

select:hover {
    text-decoration: none !important;
}

select option {
    background-color: var(--dark-bg) !important;
    color: var(--text-white) !important;
    text-decoration: none !important;
}

select option:checked,
select option:focus {
    background-color: var(--accent) !important;
    color: var(--dark-bg) !important;
    text-decoration: none !important;
}

/* Для выпадающего списка в Chrome/Safari */
select:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    text-decoration: none !important;
}

/* Убираем белый фон при клике/тапе на мобильных */
* {
    -webkit-tap-highlight-color: rgba(0, 255, 157, 0.2);
    -moz-tap-highlight-color: rgba(0, 255, 157, 0.2);
    tap-highlight-color: rgba(0, 255, 157, 0.2);
}

/* Убираем стандартные стили выделения */
button, a, .nav-link, .btn-primary, .btn-filter {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-decoration: none !important;
}

a:hover, button:hover, .nav-link:hover, .btn-primary:hover, .btn-filter:hover {
    text-decoration: none !important;
}

/* Разрешаем выделение текста в контенте */
.stat-value, .stat-label, .hero-title, .hero-subtitle, .hero-description, 
.order-info-value, .order-info-label, .order-date, .order-reputation {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

:root {
    --primary-green: #00ff9d;
    --accent: #00ff9d;
    --dark-bg: #0b0f14;
    --card-bg: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.06);
    --text-white: #ffffff;
    --text-gray: #b5b5b5;
    --border-color: rgba(255, 255, 255, 0.12);
}

body {
    font-family: 'Manrope', 'Outfit', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background: var(--dark-bg);
    font-feature-settings: 'liga' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background - Ночной Санкт-Петербург */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    
    /* Сначала показываем градиент, затем загружаем изображение */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
        linear-gradient(135deg, #0a0f14 0%, #1a1f2e 50%, #0a0f14 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: brightness(0.85) contrast(1.1) saturate(1.1);
    animation: ambient_radial_glow 8s ease-in-out infinite alternate;
    
    /* Lazy loading для фонового изображения */
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Загружаем фоновое изображение после загрузки страницы */
.background-overlay.loaded {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
        url('/images/background.jpg');
}

/* Оптимизация фона для мобильных устройств */
@media (max-width: 768px) {
    .background-overlay {
        background-attachment: scroll; /* fixed не работает на мобильных */
        filter: brightness(0.9) contrast(1.15) saturate(1.2);
        background-size: cover;
        background-position: center center;
    }
    
    /* Уменьшаем blur для карточек на мобильных, чтобы фон был лучше виден */
    .order-card,
    .stat-card,
    .support-content {
        backdrop-filter: blur(10px) saturate(150%);
        -webkit-backdrop-filter: blur(10px) saturate(150%);
        background: rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 480px) {
    .background-overlay {
        filter: brightness(0.95) contrast(1.2) saturate(1.25);
    }
    
    .order-card,
    .stat-card,
    .support-content {
        backdrop-filter: blur(8px) saturate(140%);
        -webkit-backdrop-filter: blur(8px) saturate(140%);
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Если локальное изображение не найдено, используем красивый градиент ночного города */
.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Небо - темно-синее с градиентом */
        linear-gradient(to bottom, 
            #0a0f1a 0%, 
            #1a1f2e 20%, 
            #2a2f3e 40%, 
            #1a2a3e 60%, 
            #0a1a2e 80%, 
            #0a0f1a 100%),
        /* Река Нева внизу - темно-синяя с отражениями */
        linear-gradient(to top, 
            rgba(0, 30, 60, 0.6) 0%, 
            rgba(0, 50, 100, 0.4) 20%, 
            transparent 50%),
        /* Огни города слева - желто-оранжевые */
        radial-gradient(ellipse at 20% 60%, 
            rgba(255, 200, 100, 0.3) 0%, 
            rgba(255, 150, 50, 0.2) 20%, 
            transparent 50%),
        /* Огни города справа - бело-голубые */
        radial-gradient(ellipse at 80% 70%, 
            rgba(200, 220, 255, 0.25) 0%, 
            rgba(150, 200, 255, 0.15) 25%, 
            transparent 50%),
        /* Центральные огни - зеленоватые (акцент) */
        radial-gradient(ellipse at 50% 40%, 
            rgba(0, 255, 157, 0.15) 0%, 
            rgba(0, 200, 120, 0.1) 30%, 
            transparent 60%),
        /* Отражения в воде */
        radial-gradient(ellipse at 30% 85%, 
            rgba(0, 100, 200, 0.2) 0%, 
            transparent 40%),
        radial-gradient(ellipse at 70% 90%, 
            rgba(0, 150, 255, 0.15) 0%, 
            transparent 40%),
        /* Общее свечение города */
        radial-gradient(circle at 50% 50%, 
            rgba(0, 50, 100, 0.3) 0%, 
            transparent 70%);
    z-index: -1;
    opacity: 1; /* Показываем градиент по умолчанию */
    transition: opacity 1s ease;
}

/* Скрываем градиент, если изображение загрузилось */
.background-overlay:not([data-fallback="true"])::after {
    opacity: 0;
}

/* Альтернатива: если хотите использовать онлайн изображение, раскомментируйте */
/*
.background-overlay {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1920&q=80&auto=format&fit=crop');
}
*/

/* Ambient radial glow animation */
@keyframes ambient_radial_glow {
    0% {
        filter: brightness(0.85) contrast(1.1) saturate(1.1);
    }
    100% {
        filter: brightness(0.9) contrast(1.15) saturate(1.15);
    }
}

/* Fallback градиент, имитирующий ночной Санкт-Петербург */
.background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Небо */
        linear-gradient(to bottom, #0b0f14 0%, #1a1f2e 30%, #2a2f3e 60%, #1a1f2e 100%),
        /* Река внизу */
        linear-gradient(to top, rgba(0, 50, 100, 0.4) 0%, transparent 40%),
        /* Огни города */
        radial-gradient(ellipse at 30% 60%, rgba(0, 255, 157, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 200, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 30%, rgba(0, 255, 157, 0.1) 0%, transparent 40%);
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Показываем градиент, если изображение не загрузилось */
.background-overlay[data-fallback="true"]::before {
    opacity: 1;
}

/* Дополнительные эффекты свечения (ambient glow) */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 255, 157, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 200, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 157, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: soft_glow_loop 6s ease-in-out infinite alternate;
}

@keyframes soft_glow_loop {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo h1 {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 60px;
}

.hero-title {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
    animation: soft_glow_loop 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-family: 'Manrope', 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-description {
    font-family: 'Manrope', 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark-bg);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 0 20px rgba(0, 255, 157, 0.4),
        0 4px 15px rgba(0, 255, 157, 0.2);
    animation: neon_pulse 2s ease-in-out infinite;
}

.btn-primary:hover {
    background: #00ff9d;
    transform: translateY(-2px);
    box-shadow: 
        0 0 30px rgba(0, 255, 157, 0.6),
        0 6px 20px rgba(0, 255, 157, 0.4);
    animation: none;
}

.btn-primary:active {
    background: #00cc7a;
    transform: translateY(0);
}

@keyframes neon_pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 255, 157, 0.4),
            0 4px 15px rgba(0, 255, 157, 0.2);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 255, 157, 0.6),
            0 6px 20px rgba(0, 255, 157, 0.4);
    }
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--glass);
    border-radius: 12px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
    border-bottom: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    background: transparent;
}

.nav-link:active {
    background: transparent;
}

.nav-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.nav-link:hover::after {
    display: none;
}

.nav-link.active {
    color: var(--accent);
    border-bottom: none !important;
    border-bottom-color: transparent !important;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.nav-link.active::after {
    display: none !important;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--glass);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 157, 0.2);
    background: rgba(255, 255, 255, 0.08);
    animation: shimmer_on_hover 2s ease-in-out infinite;
}

@keyframes shimmer_on_hover {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(0, 255, 157, 0.2);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(0, 255, 157, 0.4);
    }
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.stat-value.online {
    color: var(--accent);
    animation: glow_flicker 2s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

@keyframes glow_flicker {
    0% {
        text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 255, 157, 0.8), 0 0 30px rgba(0, 255, 157, 0.4);
    }
}

.stat-value.rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stars {
    display: flex;
    gap: 5px;
}

.star {
    width: 20px;
    height: 20px;
    background: gold;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star.half {
    background: linear-gradient(90deg, gold 50%, rgba(255, 255, 255, 0.2) 50%);
}

.star.empty {
    background: rgba(255, 255, 255, 0.2);
}

.data-period {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Marketplace */
.marketplace-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 150px;
    padding: 12px 40px 12px 15px;
    background: var(--glass);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    -webkit-appearance: none;
    -moz-appearance: none;
    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='%2300ff9d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    text-decoration: none !important;
}

.filter-select:hover {
    text-decoration: none !important;
    border-color: var(--accent);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
    text-decoration: none !important;
}

/* Стили для option в выпадающем списке */
.filter-select option {
    background: var(--dark-bg) !important;
    color: var(--text-white) !important;
    padding: 10px;
}

.filter-select option:checked,
.filter-select option:focus,
.filter-select option:hover {
    background: var(--accent) !important;
    color: var(--dark-bg) !important;
}

.btn-filter {
    padding: 12px 30px;
    background: var(--accent);
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.btn-filter:hover {
    background: #00ff9d;
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.5);
}

.btn-filter:active {
    background: #00cc7a;
    transform: scale(0.98);
}

.btn-relocation {
    background: rgba(0, 255, 157, 0.1) !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2) !important;
}

.btn-relocation:hover {
    background: rgba(0, 255, 157, 0.2) !important;
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.4) !important;
}

/* Orders List */
.orders-list {
    display: grid;
    gap: 20px;
}

.order-card {
    background: var(--glass);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.order-card:hover {
    border-color: var(--accent);
    transform: translateX(5px) translateY(-2px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 157, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-type {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-type.buy {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-green);
}

.order-type.sell {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
}

.order-type.relocation {
    background: rgba(0, 150, 255, 0.2);
    color: #0096ff;
}

.order-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.order-info-item {
    display: flex;
    flex-direction: column;
}

.order-info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.order-info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.order-reputation {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Support */
.support-content {
    background: var(--glass);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.support-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.support-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--glass);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.modal-body {
    padding: 30px;
}

.modal-filters {
    display: grid;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

.btn-secondary {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 15px 0;
        margin-bottom: 30px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 40px 15px;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .navigation {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .marketplace-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-select {
        width: 100%;
        min-width: auto;
    }
    
    .btn-filter {
        width: 100%;
    }
    
    .orders-list {
        gap: 12px;
    }
    
    .order-card {
        padding: 15px;
        border-radius: 10px;
    }
    
    .order-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        gap: 8px;
    }
    
    .order-type {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
    
    .order-status {
        font-size: 0.75rem;
    }
    
    .order-info {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .order-info-item {
        padding: 8px 0;
    }
    
    .order-info-label {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .order-info-value {
        font-size: 0.95rem;
    }
    
    .order-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
        padding-top: 12px;
        gap: 8px;
    }
    
    .order-reputation {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .order-date {
        font-size: 0.75rem;
    }
    
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .support-content {
        padding: 30px 20px;
    }
    
    .support-content h3 {
        font-size: 1.5rem;
    }
}

/* Мобильные устройства (маленькие экраны) */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .hero {
        padding: 30px 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .orders-list {
        gap: 10px;
    }
    
    .order-card {
        padding: 12px;
        border-radius: 8px;
    }
    
    .order-header {
        margin-bottom: 10px;
    }
    
    .order-type {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .order-status {
        font-size: 0.7rem;
    }
    
    .order-info {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .order-info-item {
        padding: 6px 0;
    }
    
    .order-info-value {
        font-size: 0.9rem;
    }
    
    .order-info-label {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    .order-footer {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .order-reputation {
        font-size: 0.75rem;
    }
    
    .order-date {
        font-size: 0.7rem;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.3rem;
    }
    
    .order-card {
        padding: 12px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
