.market-section {
    padding: 0;
    min-height: auto;
    background: transparent;
}

/* Market page background (remove "flat ugly black") */
body[data-page="market"] {
    background:
        radial-gradient(900px 500px at 18% 8%, rgba(139, 92, 246, 0.16), transparent 60%),
        radial-gradient(800px 520px at 82% 12%, rgba(249, 115, 22, 0.10), transparent 58%),
        radial-gradient(700px 520px at 70% 85%, rgba(34, 197, 94, 0.06), transparent 55%),
        linear-gradient(180deg, #05070d 0%, #070a12 45%, #05070d 100%);
}

/* prevent double-dark backgrounds from theme layer */
body[data-page="market"] .csmoney-main {
    background: transparent !important;
}

/* Stretch market content to the right edge (no empty space on wide screens) */
body[data-page="market"] .market-content-main {
    max-width: none;
    margin-right: 0;
}

.market-section {
    padding: 0;
    min-height: auto;
    background: transparent;
}

.market-header {
    margin-bottom: 0;
    padding: 0;
}

.market-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.market-subtitle {
    font-size: 1.2rem;
    color: #a0aec0;
    margin: 0;
}

.market-filters-bar {
    background: var(--csmoney-bg-card);
    border: 1px solid var(--csmoney-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filters-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-input,
.filter-select,
.search-input {
    padding: 0.5rem 0.75rem;
    background: var(--csmoney-bg-input);
    border: 1px solid var(--csmoney-border);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.filter-select option {
    background: var(--csmoney-bg-input);
    color: #fff;
    padding: 0.5rem;
}

.filter-input:focus,
.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: var(--csmoney-primary);
}

.market-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--csmoney-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

.market-status-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.market-panel {
    background: var(--csmoney-bg-card);
    border: 1px solid var(--csmoney-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.listing-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 960px) {
    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

.market-grid > * {
    height: 100%;
}

.market-card {
    background: var(--csmoney-bg-card);
    border: 1px solid var(--csmoney-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.market-card-thumb {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.market-card-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.market-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 180px;
}

.market-card-body .btn-primary {
    margin-top: auto;
    width: 100%;
    align-self: center;
}

.item-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--csmoney-bg-card);
    border: 1px solid var(--csmoney-border);
    cursor: pointer;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-color: var(--csmoney-orange);
}

.item-card.selected {
    border-color: var(--csmoney-orange) !important;
    border-width: 2px !important;
    background: rgba(255, 107, 0, 0.1) !important;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3) !important;
}

.item-card.item-unavailable {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.item-card.item-unavailable:hover {
    transform: none;
    border-color: var(--csmoney-border);
}

.market-card.item-unavailable {
    opacity: 0.6;
    cursor: not-allowed;
}

.market-card.item-unavailable:hover {
    transform: none;
    box-shadow: none;
}

.market-card.item-unavailable .btn-primary {
    cursor: not-allowed;
}

.unavailable-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

#sellInventory .item-card {
    pointer-events: auto !important;
    user-select: none;
    position: relative;
    z-index: 10;
}

.inventory-grid,
.inventory-grid-unified {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

@media (max-width: 1200px) {
    .inventory-grid,
    .inventory-grid-unified {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.875rem;
    }
}

@media (max-width: 960px) {
    .inventory-grid,
    .inventory-grid-unified {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
}

.inventory-grid .item-card,
.inventory-grid-unified .item-card {
    max-width: 100%;
}

.inventory-grid .item-thumb,
.inventory-grid-unified .item-thumb {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.inventory-grid .item-thumb img,
.inventory-grid-unified .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.inventory-grid .item-meta,
.inventory-grid-unified .item-meta {
    padding: 0.5rem 0;
}

.inventory-grid .item-name,
.inventory-grid-unified .item-name {
    font-size: 0.85rem;
    min-height: auto;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.inventory-grid .item-price,
.inventory-grid-unified .item-price {
    font-size: 0.8rem;
    color: var(--csmoney-success);
    font-weight: 700;
}

.item-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 1rem;
}

.item-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 200px;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-info .item-buy-btn {
    margin-top: auto;
    width: 100%;
    align-self: center;
}

.market-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.market-card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.badge {
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.market-card-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: auto;
}

.price-main {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--csmoney-primary);
}

.price-sub {
    font-size: 0.85rem;
    color: #94a3b8;
}

.btn-primary {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 
        0 4px 14px rgba(249, 115, 22, 0.4),
        0 2px 4px rgba(249, 115, 22, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 24px rgba(249, 115, 22, 0.5),
        0 4px 8px rgba(249, 115, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(249, 115, 22, 0.4),
        0 2px 4px rgba(249, 115, 22, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.item-buy-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 
        0 4px 14px rgba(249, 115, 22, 0.4),
        0 2px 4px rgba(249, 115, 22, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.item-buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.item-buy-btn:hover::before {
    left: 100%;
}

.item-buy-btn:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 24px rgba(249, 115, 22, 0.5),
        0 4px 8px rgba(249, 115, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.item-buy-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(249, 115, 22, 0.4),
        0 2px 4px rgba(249, 115, 22, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--csmoney-border);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

.loader {
    text-align: center;
    padding: 1rem;
    color: #94a3b8;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--csmoney-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.error-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #ef4444;
}

.error-message-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.recent-sales {
    width: 100%;
    margin: 0 0 0.25rem 0;
}

.recent-sales-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 150px;
    gap: 2px;
    overflow-x: hidden;
    padding: 0.2rem 0;
    scrollbar-width: none;
}

.recent-sales-track::-webkit-scrollbar { display: none; }

.recent-sales-track.compact {
    grid-auto-columns: 140px;
    gap: 2px;
    padding: 0.2rem 0;
}

.recent-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    width: 150px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    min-height: 200px;
    overflow: hidden;
    margin: 0;
}

.recent-card:hover {
    transform: translateY(-2px);
}

.recent-card .top {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.recent-card .image {
    width: 100%;
    height: 90px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

/* Цветные границы и фон изображений при наведении на карточку - как в Steam */
.recent-card[data-rarity="Consumer"]:hover .image,
.recent-card[data-rarity="consumer"]:hover .image {
    border-color: #b0c3d9;
    box-shadow: 0 0 12px rgba(176, 195, 217, 0.4);
}

.recent-card[data-rarity="Industrial"]:hover .image,
.recent-card[data-rarity="industrial"]:hover .image {
    border-color: #5e98d9;
    box-shadow: 0 0 12px rgba(94, 152, 217, 0.4);
}

.recent-card[data-rarity="Mil-Spec"]:hover .image,
.recent-card[data-rarity="mil-spec"]:hover .image {
    border-color: #4b69ff;
    box-shadow: 0 0 12px rgba(75, 105, 255, 0.4);
}

.recent-card[data-rarity="Restricted"]:hover .image,
.recent-card[data-rarity="restricted"]:hover .image {
    border-color: #8847ff;
    box-shadow: 0 0 12px rgba(136, 71, 255, 0.4);
}

.recent-card[data-rarity="Classified"]:hover .image,
.recent-card[data-rarity="classified"]:hover .image {
    border-color: #d32ce6;
    box-shadow: 0 0 12px rgba(211, 44, 230, 0.4);
}

.recent-card[data-rarity="Covert"]:hover .image,
.recent-card[data-rarity="covert"]:hover .image {
    border-color: #eb4b4b;
    box-shadow: 0 0 12px rgba(235, 75, 75, 0.4);
}

.recent-card[data-rarity="Contraband"]:hover .image,
.recent-card[data-rarity="contraband"]:hover .image {
    border-color: #e4ae39;
    box-shadow: 0 0 12px rgba(228, 174, 57, 0.4);
}

.recent-card[data-rarity="Unknown"]:hover .image,
.recent-card[data-rarity="unknown"]:hover .image,
.recent-card:not([data-rarity]):hover .image {
    border-color: #8b5cf6;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.recent-card-time {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-align: left;
}

.recent-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 90px;
}

.recent-card-wear {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.recent-card .name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    line-height: 1.25;
    word-break: break-word;
    margin-top: 0.25rem;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-card .price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    color: #10b981;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.recent-card .price-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
}

.recent-card .price-value {
    color: #10b981;
}

.recent-card .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 0.85rem;
}

.no-data {
    text-align: center;
    padding: 1rem;
    color: #94a3b8;
}

.error {
    text-align: center;
    padding: 1rem;
    color: #ef4444;
}

/* Новые фильтры */
.market-filters-sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 240px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 50;
    padding: 0.75rem;
    background: transparent;
    border-right: none;
    box-shadow: none;
    transition: top 0.1s ease-out, left 0.3s ease;
}

.market-block-bg {
    background: #15161b;
    border-radius: 20px;
    padding: 28px;
    /* make blocks feel like one rounded surface (no square inner edges) */
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.28);
    margin-bottom: 24px;
}

.market-filters-block {
    padding: 16px !important;
}

.market-header-block {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.market-my-skins-block {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    padding: 0.75rem !important;
}

.market-catalog-block {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.market-filters-block {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.market-filters-modern {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    height: fit-content;
    box-shadow: none;
}

.market-content-main {
    max-width: 1400px;
    margin: 0 auto;
    margin-left: 240px;
    width: calc(100% - 240px);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    padding: 0 2rem;
}

.btn-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #fb923c, #f97316);
}

.btn-load-more:active {
    transform: translateY(0);
}

.btn-load-more svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-load-more:hover svg {
    transform: translateX(4px);
}

.btn-sell-skin {
    padding: 14px 24px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    gap: 10px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
}

.btn-sell-skin svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-sell-skin:hover {
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4) !important;
    transform: translateY(-2px) !important;
}

.filters-top-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-search-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.filter-icon-search {
    position: absolute;
    left: 12px;
    color: #64748b;
    pointer-events: none;
    z-index: 1;
}

.filter-search {
    width: 100%;
    padding: 0.6rem 0.85rem 0.6rem 2.5rem;
    background: #151921 !important;
    border: 1px solid var(--csmoney-border) !important;
    border-radius: 8px;
    color: #fff !important;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-search::placeholder {
    color: #64748b !important;
}

.filter-search:focus {
    outline: none;
    border-color: var(--csmoney-primary) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background: #151921 !important;
}

.btn-filter-reset {
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--csmoney-border);
    border-radius: 8px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-filter-reset svg {
    flex-shrink: 0;
}

.btn-filter-reset:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: var(--csmoney-primary);
}

.filters-bottom-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.filter-label {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label svg {
    flex-shrink: 0;
    color: #725DF8;
    opacity: 0.8;
}

.filter-price-range {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-price-input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    background: #151921 !important;
    border: 1px solid var(--csmoney-border) !important;
    border-radius: 8px;
    color: #fff !important;
    font-size: 0.85rem;
}

.filter-price-input::placeholder {
    color: #64748b !important;
}

.filter-price-input:focus {
    outline: none;
    border-color: var(--csmoney-primary) !important;
    background: #151921 !important;
}

.filter-separator {
    display: none;
    color: #64748b;
    font-weight: 600;
}

.filter-select-modern {
    padding: 0.65rem 0.75rem;
    background: #151921 !important;
    border: 1px solid var(--csmoney-border) !important;
    border-radius: 8px;
    color: #fff !important;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    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='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.filter-select-modern:focus {
    outline: none;
    border-color: var(--csmoney-primary) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background: #151921 !important;
    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='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E"), #151921 !important;
    background-repeat: no-repeat, no-repeat;
    background-position: right 0.75rem center, 0 0;
}

.filter-select-modern option {
    background: #151921 !important;
    color: #fff !important;
    padding: 0.5rem;
}

.sell-modal-content {
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Лента на всю ширину */
.recent-sales-fullwidth {
    width: 100%;
    margin: 0 0 0.25rem 0;
    padding: 0.25rem 0 0.5rem;
    overflow: hidden;
}

.recent-sales-fullwidth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.5rem;
    margin-bottom: 0.5rem;
}

.recent-sales-fullwidth-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-sales-fullwidth-header h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.recent-sales-track-fullwidth {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 150px;
    gap: 12px;
    overflow-x: auto;
    padding: 0.2rem 1rem 0.4rem 0;
    scrollbar-width: none;
}

.recent-sales-track-fullwidth.compact {
    grid-auto-columns: 140px;
    gap: 12px;
    padding: 0.2rem 1rem 0.4rem 0;
}

.recent-sales-track-fullwidth::-webkit-scrollbar {
    display: none;
}

/* Корзина */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: linear-gradient(180deg, #0f1419 0%, #151921 100%);
    border-left: 1px solid var(--csmoney-border);
    box-shadow: -12px 0 40px rgba(0,0,0,0.5);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--csmoney-border);
    background: rgba(255, 107, 0, 0.05);
}

.cart-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
}

.cart-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.cart-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #94a3b8;
    margin: auto 0;
}

.cart-empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
    filter: grayscale(1);
}

.cart-empty p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--csmoney-border);
    border-radius: 12px;
    transition: all 0.2s;
    position: relative;
}

.cart-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    color: var(--csmoney-orange);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.cart-item-remove {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #ef4444;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
    align-self: center;
}

.cart-item-remove:hover {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.4);
    transform: scale(1.1);
}

.cart-footer {
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--csmoney-border);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.cart-total {
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.cart-total span:last-child {
    color: var(--csmoney-orange);
    font-size: 1.5rem;
}

.cart-checkout {
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(135deg, #ff6b00 0%, #ff4500 50%, #ff3300 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-checkout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: all 0.4s ease;
}

.cart-checkout:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff4500 0%, #ff3300 50%, #ff6b00 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.cart-checkout:hover:not(:disabled)::before {
    left: 100%;
}

.cart-checkout:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.cart-checkout:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: none;
}

.market-badge {
    display: none;
}

.cart-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--csmoney-bg-card);
    border: 1px solid var(--csmoney-border);
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
    z-index: 100;
    visibility: visible !important;
    opacity: 1 !important;
}

.cart-btn:hover {
    background: rgba(255, 107, 0, 0.1);
    border-color: var(--csmoney-orange);
    transform: translateY(-1px);
}

.cart-icon {
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--csmoney-orange, #ff6b00);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    border: 2px solid #0f141c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: var(--csmoney-orange);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

#itemModal .modal-overlay {
    backdrop-filter: none !important;
}

.modal-overlay {
    backdrop-filter: none !important;
}

.modal {
    display: none;
}

.modal[style*="display: flex"] {
    display: flex !important;
}

.confirm-content {
    padding: 2rem;
    text-align: center;
}

.confirm-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 0, 0.3));
}

.confirm-content h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    letter-spacing: 0.3px;
}

.confirm-content p {
    color: #b8bcc8;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.confirm-content p span {
    color: var(--csmoney-orange);
    font-weight: 700;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-actions .btn-secondary {
    padding: 0.875rem 2rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

.confirm-purchase-btn {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #ff6b00 0%, #ff4500 50%, #ff3300 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.confirm-purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: all 0.4s ease;
}

.confirm-purchase-btn:hover::before {
    left: 100%;
}

.confirm-purchase-btn:hover {
    background: linear-gradient(135deg, #ff4500 0%, #ff3300 50%, #ff6b00 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 107, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.confirm-purchase-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.success-content,
.error-content {
    padding: 2rem;
    text-align: center;
}

.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.3));
}

.error-icon {
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.3));
}

.success-content h3,
.error-content h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    letter-spacing: 0.3px;
}

.success-content p,
.error-content p {
    color: #b8bcc8;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.error-balance {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0 2rem 0;
    text-align: left;
}

.error-balance div {
    color: #b8bcc8;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.error-balance div:last-child {
    margin-bottom: 0;
}

.error-balance span {
    color: var(--csmoney-orange);
    font-weight: 700;
}

.success-actions,
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.success-actions .btn-primary,
.error-actions .btn-primary {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #ff6b00 0%, #ff4500 50%, #ff3300 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.success-actions .btn-primary::before,
.error-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: all 0.4s ease;
}

.success-actions .btn-primary:hover::before,
.error-actions .btn-primary:hover::before {
    left: 100%;
}

.success-actions .btn-primary:hover,
.error-actions .btn-primary:hover {
    background: linear-gradient(135deg, #ff4500 0%, #ff3300 50%, #ff6b00 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 107, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.success-actions .btn-primary:active,
.error-actions .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .market-filters-sidebar:not(.open) {
        left: -240px !important;
    }
    main {
        padding: 1rem !important;
    }
    
    .market-section {
        padding: 0 !important;
        width: 100%;
    }
    
    .csmoney-container {
        padding: 0 1rem !important;
    }
    
    .market-header {
        padding: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .market-header > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .market-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .market-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .market-header .btn-csmoney {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .market-filters-sidebar {
        position: fixed !important;
        left: -240px !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 240px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        background: var(--bg-primary, #0f172a) !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3) !important;
        transition: left 0.3s ease !important;
        margin-left: 0 !important;
        overflow-y: auto !important;
        padding: 1rem !important;
    }
    
    .market-filters-sidebar.open {
        left: 0 !important;
    }
    
    .market-filters-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .market-filters-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .btn-filter-mobile-toggle {
        display: none;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--bg-secondary, #1e293b);
        border: 1px solid var(--csmoney-border, rgba(255,255,255,0.1));
        border-radius: 10px;
        color: var(--text-primary, #e2e8f0);
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .btn-filter-mobile-toggle:hover {
        background: var(--bg-tertiary, #334155);
        border-color: var(--csmoney-primary, #f97316);
    }
    
    @media (max-width: 767px) {
        .btn-filter-mobile-toggle {
            display: flex !important;
        }
    }
    
    .market-layout-with-sidebar {
        grid-template-columns: 1fr !important;
    }
    
    .market-content-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 0 !important;
    }
    
    .market-filters-modern {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .filters-top-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .filter-search-wrapper {
        width: 100% !important;
    }
    
    .filter-search {
        width: 100% !important;
    }
    
    .btn-filter-reset {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .filters-bottom-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .filter-item {
        width: 100% !important;
    }
    
    .filter-price-range {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .filter-price-input {
        width: 100% !important;
    }
    
    .filter-select-modern {
        width: 100% !important;
    }
    
    .market-filters-bar {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .filter-group label {
        margin-bottom: 0.5rem;
    }
    
    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    #myListingsGrid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    .item-card {
        min-height: auto;
        width: 100%;
    }
    
    .item-image {
        height: 120px !important;
    }
    
    .my-listings-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    .my-listings-bar button {
        width: 100% !important;
        justify-content: center !important;
    }
    
    #activeListingBlock {
        padding: 1rem !important;
    }
    
    #activeListingBlock > div {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .recent-sales-fullwidth {
        padding: 1rem 0 !important;
        margin: 0 1rem 1rem 1rem !important;
    }
    
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 1.5rem !important;
    }
    
    .sell-modal-content {
        padding: 1.5rem !important;
        max-height: 90vh !important;
    }
    
    .market-badge {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

.snowflake,
#snowflake-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 11s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 13s; animation-delay: 0.5s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 10s; animation-delay: 1.5s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 12s; animation-delay: 2.5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 11s; animation-delay: 0.8s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 13s; animation-delay: 1.2s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 10s; animation-delay: 2.2s; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 12s; animation-delay: 0.3s; }
.snowflake:nth-child(11) { left: 25%; animation-duration: 11s; animation-delay: 1.8s; }
.snowflake:nth-child(12) { left: 35%; animation-duration: 13s; animation-delay: 0.7s; }
.snowflake:nth-child(13) { left: 45%; animation-duration: 10s; animation-delay: 2.8s; }
.snowflake:nth-child(14) { left: 55%; animation-duration: 12s; animation-delay: 1.4s; }
.snowflake:nth-child(15) { left: 65%; animation-duration: 11s; animation-delay: 0.6s; }
.snowflake:nth-child(16) { left: 75%; animation-duration: 13s; animation-delay: 2.1s; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 10s; animation-delay: 1.7s; }
.snowflake:nth-child(18) { left: 95%; animation-duration: 12s; animation-delay: 0.9s; }
.snowflake:nth-child(19) { left: 5%; animation-duration: 11s; animation-delay: 2.3s; }
.snowflake:nth-child(20) { left: 50%; animation-duration: 13s; animation-delay: 1.6s; }