/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Unbounded:wght@400;700;800;900&display=swap');

/* Global Variables / Colors */
:root {
    --bg-main: #0c0c0f;
    --bg-surface: #131317;
    --bg-card: #1b1b22;
    --bg-input: #21212a;
    --border-color: #2b2b35;
    --border-hover: #3c3c4a;
    
    --text-primary: #f1f1f5;
    --text-secondary: #9494ab;
    --text-muted: #5a5a6d;
    
    --accent-green: #00e676;
    --accent-green-bg: rgba(0, 230, 118, 0.1);
    --accent-red: #ff4757;
    
    --platform-wax: #34ace0;
    --platform-shadow: #9b59b6;
    --platform-steam: #f1f2f6;
    
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Unbounded', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font-family: inherit;
    outline: none;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(18, 18, 23, 0.4);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
}

.desktop-sidebar-toggle {
    background-color: var(--bg-input);
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: none;
}

@media (min-width: 1025px) {
    .desktop-sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

.desktop-sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    object-fit: contain;
}

/* Search Bar in Header */
.search-container {
    position: relative;
    width: 440px;
    max-width: 100%;
}

.search-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: none;
    color: var(--text-primary);
    padding: 0.7rem 1rem 0.7rem 2.7rem;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.05);
    outline: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.search-input:focus ~ .search-icon {
    color: var(--accent-green);
}

/* Search suggestions autocomplete dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: rgba(21, 21, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.4rem;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: none;
}

.search-suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 52px;
    padding: 0.45rem 0.6rem;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    text-align: left;
    color: var(--text-secondary);
    border: 0;
    border-radius: 6px;
    background: transparent;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.suggestion-item span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.suggestion-item:hover,
.suggestion-item:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
}

.suggestion-item:active {
    background: rgba(255, 255, 255, 0.1);
}

.suggestion-item:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.35);
    outline-offset: -1px;
}

/* Header Utilities */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex: 1;
}

.currency-toggle {
    display: flex;
    background-color: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 8px;
    padding: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.currency-toggle:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.currency-option {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
    user-select: none;
    color: var(--text-secondary);
}

.currency-option.active {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--accent-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cart-trigger-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: none;
    color: var(--text-primary);
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-trigger-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.06);
}

#cart-count {
    background-color: var(--accent-green);
    color: #000;
    padding: 0.1rem 0.4rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
}

.steam-login-btn {
    background: linear-gradient(135deg, #1078af 0%, #0a4f75 100%);
    border: none;
    color: #ffffff;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 120, 175, 0.25);
}

.steam-login-btn:hover {
    background: linear-gradient(135deg, #1389c7 0%, #0d5f8c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 120, 175, 0.35);
}

.steam-account-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 180px;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: var(--bg-surface);
}

.steam-account-control:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.steam-account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

.steam-account-id {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.steam-logout-btn {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.steam-logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* App Layout */
.app-container {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 65px);
}

/* Sidebar Filters */
.sidebar {
    width: 280px;
    background-color: #0c0c10;
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    padding: 1.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    overflow-y: auto;
    transition: width 0.3s ease;
    scrollbar-width: none; /* Hide scrollbar for a cleaner look */
    position: sticky;
    top: 65px;
    font-family: var(--font-display);
    font-weight: 500;
    height: calc(100vh - 65px);
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar.hidden {
    display: none !important;
}

.sidebar > div {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar > div:last-child {
    border-bottom: none;
}

.filter-section-title {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    letter-spacing: 0.08em;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Checklist Filter Items */
.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
}

.filter-checkbox-label:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

.filter-checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-checkbox-label input[type="checkbox"]:checked {
    background-color: var(--accent-green);
}

.filter-checkbox-label input[type="checkbox"]:checked::after {
    content: "✓";
    font-size: 0.75rem;
    color: #000000;
    font-weight: 900;
}

.filter-checkbox-label input[type="checkbox"].parent-category-cb {
    appearance: none;
    width: 0;
    height: 16px;
    border: none;
    background-color: transparent !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.2s ease, margin-right 0.2s ease;
    overflow: hidden;
    margin: 0;
}

.filter-checkbox-label input[type="checkbox"].parent-category-cb:checked {
    width: 16px;
    opacity: 1;
    margin-right: 0.5rem;
    background-color: transparent !important;
}

.filter-checkbox-label input[type="checkbox"].parent-category-cb:checked::after {
    content: "✓";
    font-size: 1.1rem;
    color: var(--accent-green);
    font-weight: 900;
}

.category-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sub-toggle-btn {
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 0.25s ease, color 0.2s;
    padding: 0.4rem;
}

.sub-toggle-btn:hover {
    color: var(--text-primary);
}

.sub-toggle-btn.active {
    transform: rotate(180deg);
    color: var(--accent-green);
}

.sub-weapons-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-weapons-container.active {
    max-height: 250px;
    overflow-y: auto;
    margin-top: 0.3rem;
    padding-left: 0.6rem;
}

.sub-weapons-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.2rem;
}

.sub-weapon-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.sub-weapon-label:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.sub-weapon-label input[type="checkbox"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sub-weapon-label input[type="checkbox"]:checked {
    background-color: var(--accent-green);
}

.sub-weapon-label input[type="checkbox"]:checked::after {
    content: "✓";
    font-size: 0.65rem;
    color: #000000;
    font-weight: 900;
}

/* Numeric Filter Inputs */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.price-input {
    width: calc(50% - 4px);
    background-color: rgba(255, 255, 255, 0.03);
    border: none;
    color: var(--text-primary);
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.98rem;
    text-align: center;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

/* Hide number input spinners */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input[type="number"] {
    -moz-appearance: textfield;
}

.price-input:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-green);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
}

/* Sub-header inside main content */
.results-header {
    padding: 1.5rem 2rem 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.results-count span {
    color: var(--text-primary);
    font-weight: 600;
}

.sort-selector-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sort-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sort-menu-wrap {
    position: relative;
}

.sort-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    min-width: 145px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.sort-menu-button:hover,
.sort-menu-button[aria-expanded="true"] {
    border-color: var(--border-hover);
    background: var(--bg-surface-hover);
}

.sort-menu-button i {
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.15s ease;
}

.sort-menu-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    display: none;
    min-width: 100%;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: #17171c;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.sort-menu.active {
    display: grid;
    gap: 0.15rem;
}

.sort-menu [role="option"] {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.84rem;
    text-align: left;
    cursor: pointer;
}

.sort-menu [role="option"]:hover,
.sort-menu [role="option"][aria-selected="true"] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.sort-menu [role="option"][aria-selected="true"]::before {
    content: "✓";
    display: inline-block;
    width: 1rem;
    color: var(--accent-green);
}

/* Skins Grid */
.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    flex: 1;
}

.app-container.sidebar-hidden .skins-grid {
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
}

/* Skin Card Component */
.skin-card {
    background-color: var(--bg-card);
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    height: 315px;
    width: 100%;
}

.skin-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 12px rgba(var(--rarity-color-rgb), 0.15);
}

/* The card keeps its dimensions; the image area contracts to make room for actions. */
.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: padding-bottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skin-card:hover .card-body {
    padding-bottom: 46px;
}

/* Rarity stripe at the top */
.rarity-stripe {
    display: none;
}

/* Card Header: Wear & StatTrak badges */
.card-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.wear-badge {
    color: var(--text-secondary);
    background-color: var(--bg-surface);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: none;
}

.stattrak-badge {
    color: #ff4757;
    background-color: rgba(255, 71, 87, 0.08);
    border: none;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.souvenir-badge {
    color: #ffd200;
    background-color: rgba(255, 210, 0, 0.08);
    border: none;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Item Image Container */
.card-image-container {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.65rem 0;
    position: relative;
    flex-shrink: 0;
    transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), margin 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skin-card:hover .card-image-container {
    height: 110px;
    margin: 0.3rem 0;
}

.card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.3));
}

.skin-card:hover .card-image {
    transform: scale(0.98);
}

/* Card Rarity Label */
.card-rarity {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--rarity-color, var(--text-secondary));
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

/* Card Name */
.card-weapon {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    transition: font-size 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skin-card:hover .card-weapon {
    font-size: 0.85rem;
}

.card-pattern {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: margin-bottom 0.3s ease;
}

.skin-card:hover .card-pattern {
    margin-bottom: 0.1rem;
}

/* Pricing block */
.card-pricing {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: padding-top 0.3s ease;
}

.skin-card:hover .card-pricing {
    padding-top: 0.2rem;
}

.our-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.our-price-label {
    font-size: 0.75rem;
    color: var(--text-primary);
    transition: font-size 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.our-price-val {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-green);
    transition: font-size 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.steam-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 1.1rem;
    font-size: 0.8rem;
    transition: font-size 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    gap: 0.2rem;
}

.steam-price-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    transition: font-size 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    text-overflow: ellipsis;
}

.steam-price-val {
    color: var(--text-secondary);
    text-decoration: none; /* No strike-through */
    font-weight: 600;
}

.skin-card:hover .our-price-label {
    font-size: 0.68rem;
}

.skin-card:hover .our-price-val {
    font-size: 0.95rem;
}

.skin-card:hover .steam-price-row {
    font-size: 0.75rem;
}

.skin-card:hover .steam-price-label {
    font-size: 0.68rem;
}

.card-top-right {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    z-index: 5;
}

.savings-badge {
    background-color: var(--accent-green-bg);
    color: var(--accent-green);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
}

.negative-savings-badge {
    background-color: rgba(255, 71, 87, 0.1);
    color: var(--accent-red);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
}

/* Card Buttons */
.card-actions {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    right: 0.8rem;
    display: flex;
    gap: 0.35rem;
    min-height: 32px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.skin-card:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-buy, .btn-quick-buy {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-buy {
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-primary);
    flex: 1;
    backdrop-filter: blur(4px);
}

.btn-buy:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.btn-quick-buy {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.12) 0%, rgba(0, 230, 118, 0.04) 100%);
    border: none;
    color: var(--accent-green);
    flex: 1.3;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 2px 8px rgba(0, 230, 118, 0.05);
}

.btn-quick-buy:hover {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.2) 0%, rgba(0, 230, 118, 0.1) 100%);
    color: #ffffff;
    border-color: rgba(0, 230, 118, 0.5);
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.15);
    transform: translateY(-1px);
}

.btn-quick-cart, .btn-details-cart {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.025);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.btn-quick-cart:hover, .btn-details-cart:hover {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--accent-green);
    border-color: rgba(0, 230, 118, 0.35);
}

.btn-quick-cart.in-cart, .btn-details-cart.in-cart {
    background-color: rgba(0, 230, 118, 0.08);
    color: var(--accent-green);
    border-color: rgba(0, 230, 118, 0.25);
}

.btn-quick-cart.in-cart:hover, .btn-details-cart.in-cart:hover {
    background-color: var(--accent-red);
    color: #ffffff;
    border-color: var(--accent-red);
}

.btn-details-cart {
    width: 52px;
    height: 46px;
    border-radius: 10px;
    font-size: 1rem;
    align-self: stretch;
}

/* Source tag (cheaper market) */
.market-source-tag {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.market-source-tag.waxpeer {
    background-color: rgba(52, 172, 224, 0.1);
    color: var(--platform-wax);
    border: none;
}

.market-source-tag.shadowpay {
    background-color: rgba(155, 89, 182, 0.1);
    color: var(--platform-shadow);
    border: none;
}

/* Pagination Control */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    background-color: #0c0c10;
}

.pagination-btn {
    background-color: var(--bg-card);
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--border-hover);
    background-color: var(--bg-input);
}

.pagination-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pagination-info span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Modal Window for Sync Logs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--bg-surface);
    border: none;
    border-radius: 16px;
    width: 600px;
    max-width: 90%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Progress bar style */
.progress-bar-container {
    height: 10px;
    width: 100%;
    background-color: var(--bg-input);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: none;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--accent-green);
    border-radius: 5px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.progress-text-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Logs Box style */
.logs-box {
    background-color: var(--bg-main);
    border: none;
    border-radius: 8px;
    height: 220px;
    padding: 1rem;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.8rem;
    color: #00e676;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.log-entry {
    line-height: 1.4;
    white-space: pre-wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 2px;
}

.log-entry.info { color: #a4b0be; }
.log-entry.success { color: #00e676; }
.log-entry.error { color: #ff4757; }

/* Empty state / Loading screen */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    color: var(--text-secondary);
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-desc {
    font-size: 0.9rem;
    max-width: 300px;
}

/* Hide market source tags so user doesn't know where it came from */
.market-source-tag {
    display: none !important;
}

/* Skin Details Modal styling */
.skin-details-modal {
    width: 880px;
    max-width: 95%;
    background-color: #121217;
    border: none;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
    padding: 2.2rem;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 2.2rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.details-image-card {
    background-color: rgba(255, 255, 255, 0.015);
    border: none;
    border-radius: 14px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.details-image-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(var(--rarity-color-rgb), 0.4) 0%, rgba(var(--rarity-color-rgb), 0) 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

@keyframes floatAnimation {
    0% { transform: translate3d(0, 0px, 0) rotate(0deg); }
    50% { transform: translate3d(0, -3px, 0) rotate(1deg); }
    100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
}

.details-image {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
    will-change: transform;
    animation: floatAnimation 4.8s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.details-image-card:hover .details-image {
    animation-play-state: paused;
}

.details-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.details-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.details-badge {
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.03);
    border: none;
    color: var(--text-secondary);
}

.details-badge.rarity-badge {
    color: var(--rarity-color);
    background-color: rgba(var(--rarity-color-rgb), 0.05);
    border-color: rgba(var(--rarity-color-rgb), 0.15);
}

.details-badge.stattrak-badge {
    color: #ff9f43;
    background-color: rgba(255, 159, 67, 0.08);
    border-color: rgba(255, 159, 67, 0.2);
}

.details-badge.souvenir-badge {
    color: #ffd2af;
    background-color: rgba(255, 210, 175, 0.08);
    border-color: rgba(255, 210, 175, 0.2);
}

.details-price-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: none;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.details-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-price-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.details-price-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.details-steam-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.details-specs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.details-spec-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.4rem;
}

.details-spec-val {
    color: var(--text-primary);
    font-weight: 600;
}

.details-actions {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
    margin-top: auto;
}

.btn-details-buy {
    flex: 1;
    background-color: var(--accent-green);
    color: #000000;
    border: none;
    height: 46px;
    padding: 0 1rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.25);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-details-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 230, 118, 0.4);
}

/* Listings Table Section in Modal */
.details-listings-section {
    margin-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

.details-listings-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    flex-shrink: 0;
}

.listings-table-container {
    border: none;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    overflow-x: auto;
    /* No overflow-y: auto here, so the whole modal scrolls */
}

.listings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.listings-table th {
    background-color: #17171d;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: left;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.listings-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.listings-table tr:last-child td {
    border-bottom: none;
}

.listings-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.015);
}

/* Float bar visualizer */
.listing-float-cell {
    min-width: 140px;
}

.listing-float-value {
    font-family: monospace;
    font-size: 0.82rem;
    color: var(--text-primary);
}

.listing-float-bar-container {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    width: 100%;
    margin-top: 4px;
    overflow: hidden;
    position: relative;
}

.listing-float-bar-fill {
    height: 100%;
    border-radius: 2px;
}

/* Stickers list */
.listing-stickers {
    display: flex;
    gap: 6px;
}

.listing-sticker-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 2px;
    border: none;
    transition: transform 0.2s ease, z-index 0.2s;
    position: relative;
    z-index: 1;
}

.listing-sticker-img:hover {
    transform: scale(4);
}

.btn-listing-action {
    background-color: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.btn-listing-action:hover {
    background-color: var(--accent-green);
    color: #000;
}

.btn-listing-action.in-cart {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-listing-action.in-cart:hover {
    background-color: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.btn-inspect-ingame {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: none;
    padding: 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.btn-inspect-ingame:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Autocomplete icon */
.suggestion-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    padding: 2px;
    flex-shrink: 0;
}

.suggestion-item:hover .suggestion-icon,
.suggestion-item:focus-visible .suggestion-icon {
    background: rgba(255, 255, 255, 0.08);
}

/* -------------------------------------------------------------
   SIDEBAR ACCORDION & WEAPON FILTERS
   ------------------------------------------------------------- */
.category-filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.8rem;
}

.category-filter-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Sidebar icon labels */
.filter-label-content {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    overflow: hidden;
}

.filter-icon-wrap {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    content-visibility: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.filter-icon-fallback {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sub-weapon-label .filter-icon-fallback {
    font-size: 0.75rem;
}

.category-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-toggle-btn {
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s;
    padding: 6px;
    border-radius: 4px;
}

.sub-toggle-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.sub-toggle-btn.active {
    transform: rotate(180deg);
}

.sub-weapons-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 0.8rem;
}

.sub-weapons-container.active {
    max-height: 200px;
    overflow-y: auto;
}

.sub-weapons-grid {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.5rem 0;
}

.sub-weapon-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}

.sub-weapon-label:hover {
    color: var(--text-primary);
}

.sub-weapon-label input[type="checkbox"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.01);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.sub-weapon-label input[type="checkbox"]:checked {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

.sub-weapon-label input[type="checkbox"]:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.6rem;
    color: #000;
}

/* Contextual sidebar icon sizing */
.filter-checkbox-label .filter-icon-wrap {
    width: 28px;
    height: 28px;
}

.filter-checkbox-label .filter-icon-img {
    width: 28px;
    height: 28px;
}

.filter-checkbox-label .filter-icon-fallback {
    width: 24px;
    height: 24px;
    font-size: 0.95rem;
}

.sub-weapon-label .filter-icon-wrap {
    width: 19px;
    height: 19px;
}

.sub-weapon-label .filter-icon-img {
    width: 19px;
    height: 19px;
}

.sub-weapon-label .filter-icon-fallback {
    width: 19px;
    height: 19px;
    font-size: 0.75rem;
}

/* -------------------------------------------------------------
   MOBILE RESPONSIVENESS
   ------------------------------------------------------------- */
.sidebar-overlay {
    display: none;
}

.sidebar-close-btn {
    display: none;
}

.mobile-filter-toggle {
    display: none;
}

.results-count-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

@media (max-width: 992px) {
    header {
        padding: 0.8rem 1.2rem;
        flex-wrap: wrap;
        gap: 0.8rem;
        height: auto;
    }

    .logo-container {
        order: 1;
    }

    .header-actions {
        order: 2;
    }

    .search-container {
        order: 3;
        width: 100%;
        margin-top: 0.3rem;
    }

    /* Hide desktop sidebar toggle on mobile */
    .desktop-sidebar-toggle {
        display: none !important;
    }

    .app-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 120px);
    }

    /* Transform sidebar to slide-out drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        z-index: 1001;
        background-color: #0d0d11;
        box-shadow: none;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 4rem; /* Spacing for close button */
        overflow-y: auto;
    }

    /* Ensure hidden sidebar stays hidden on mobile too */
    .sidebar.hidden {
        display: flex !important;
        left: -100% !important;
    }

    .sidebar.active {
        left: 0 !important;
    }

    /* Sidebar Close Button */
    .sidebar-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        border-radius: 8px;
        color: var(--text-primary);
        font-size: 1.1rem;
        width: 36px;
        height: 36px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        z-index: 2;
    }

    .sidebar-close-btn:hover {
        background-color: rgba(255, 255, 255, 0.08);
        color: var(--accent-red);
    }

    /* Sidebar Mobile Overlay */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .main-content {
        padding: 0.5rem 1rem 1rem 1rem;
        overflow-y: auto;
        flex: 1;
        width: 100%;
    }

    /* Card actions always visible on mobile */
    .skin-card {
        padding-bottom: 0.8rem;
        height: auto !important;
    }

    .card-actions {
        position: static;
        transform: none;
        opacity: 1;
        margin-top: 0.6rem;
        pointer-events: auto;
    }

    .skin-card:hover .card-body {
        transform: none;
        padding-bottom: 0 !important;
    }

    .mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background-color: var(--bg-input);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-filter-toggle:hover {
        background-color: rgba(255, 255, 255, 0.06);
        border-color: var(--border-hover);
    }

    
    .results-count {
        display: none !important;
    }
    
    .results-header {
        padding: 0 0.8rem 0.2rem 0.8rem !important;
    }

    .skins-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
        gap: 0.8rem;
        padding: 0.8rem 0;
    }

    .skin-card {
        padding: 0.8rem;
        height: auto !important;
    }

    .card-image-container {
        height: 110px;
    }
    
    .skin-card:hover .card-image-container {
        height: 110px !important;
    }

    .card-weapon {
        font-size: 0.82rem;
    }

    .card-pattern {
        font-size: 0.72rem;
    }

    .btn-buy, .btn-quick-buy {
        height: 28px;
        font-size: 0.68rem;
        padding: 0.35rem 0.5rem;
    }

    /* Results bar adjustments */
    .results-bar {
        flex-wrap: wrap;
        gap: 0.6rem;
        padding: 0.6rem 0;
    }

    .sort-selector-container {
        width: 100%;
    }

    .sort-menu-wrap,
    .sort-menu-button {
        width: 100%;
    }

    /* Details Modal Mobile Responsiveness */
    .skin-details-modal {
        padding: 1.2rem !important;
        max-height: 90vh !important;
    }
    
    .listings-table-container {
        background-color: transparent !important;
        overflow-x: visible !important;
    }
    
    .listings-table, 
    .listings-table thead, 
    .listings-table tbody, 
    .listings-table th, 
    .listings-table td, 
    .listings-table tr {
        display: block !important;
        width: 100% !important;
    }
    
    .listings-table thead {
        display: none !important;
    }
    
    .listings-table tr {
        background-color: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 8px !important;
        margin-bottom: 0.8rem !important;
        padding: 0.8rem !important;
    }
    
    .listings-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
        text-align: left !important;
    }
    
    .listings-table td:last-child {
        border-bottom: none !important;
        padding-top: 0.8rem !important;
        justify-content: center !important;
    }
    
    .listings-table td::before {
        content: attr(data-label) !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
        font-size: 0.75rem !important;
        text-transform: uppercase !important;
    }
    
    .listings-table td:last-child::before {
        content: none !important;
    }
    
    .btn-listing-action {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .listing-float-cell {
        min-width: 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    
    .listing-float-cell::before {
        margin-bottom: 2px !important;
    }
    
    .listing-float-bar-container {
        width: 100% !important;
    }
}

/* Footer Styling */
.app-footer {
    background: linear-gradient(to bottom, #0c0c10 0%, #08080a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding: 3rem clamp(1.25rem, 4vw, 5rem) 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
    position: relative;
    overflow: visible;
}

body:has(.sidebar.hidden) .footer-container {
    max-width: none;
}

.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 230, 118, 0.2) 50%, transparent 100%);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-brand {
    order: 1;
}

.footer-links {
    order: 2;
    text-align: right;
}

.logo-img-footer {
    height: 40px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.05));
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 350px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-family: var(--font-sans);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 1400px;
    margin: 0 auto 0.5rem auto;
}

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    .footer-brand {
        order: 1;
    }
    .footer-links {
        order: 2;
        text-align: center;
    }
    .footer-desc {
        margin: 0 auto;
    }
}

/* Cart Sidebar Styling */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 100vw;
    height: 100vh;
    background-color: #0c0c10;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #131317 0%, #171720 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cart-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-header h2::before {
    content: '\f07a';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-green);
    font-size: 1.1rem;
}

.cart-close-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cart-close-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--accent-red);
    border-color: rgba(255, 71, 87, 0.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 5px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.cart-item-price {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: var(--accent-red);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.btn-checkout {
    width: 100%;
    background-color: var(--accent-green);
    color: #000;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.3);
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    gap: 1rem;
}

.cart-empty-state i {
    font-size: 3rem;
    opacity: 0.5;
}


/* Account page */
.account-page { min-height: 100vh; background: var(--bg-primary); }
.account-header { position: static; display: flex; justify-content: space-between; padding: 1rem clamp(1.25rem, 5vw, 5rem); }
.account-back-link { color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }
.account-back-link:hover { color: var(--text-primary); }
.account-main { width: min(860px, calc(100% - 2rem)); margin: 3rem auto; }
.account-status { text-align: center; color: var(--text-secondary); }
.account-panel { padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; background: var(--bg-card); }
.account-panel[hidden] { display: none; }
.account-guest { text-align: center; }
.account-guest-icon { font-size: 3rem; color: var(--text-secondary); margin-bottom: 1rem; }
.account-guest h1 { margin-bottom: 0.6rem; }
.account-guest p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.account-guest .steam-login-btn { display: inline-flex; }
.account-profile { display: flex; align-items: center; gap: 1.25rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.account-avatar { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.account-profile-info { min-width: 0; }
.account-kicker { color: var(--accent-green); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.account-profile h1 { margin: 0.35rem 0; overflow-wrap: anywhere; }
.account-steam-id { display: block; color: var(--text-muted); font-size: 0.82rem; margin-bottom: 0.7rem; }
.account-profile-link { color: var(--text-secondary); font-size: 0.85rem; }
.account-profile-link:hover { color: var(--accent-green); }
.account-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0; }
.account-meta-grid div { padding: 1rem; border-radius: 8px; background: var(--bg-surface); }
.account-meta-grid span { display: block; color: var(--text-muted); font-size: 0.75rem; margin-bottom: 0.4rem; }
.account-meta-grid strong { color: var(--text-primary); font-size: 0.9rem; }
.account-form { padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.account-form label { color: var(--text-primary); font-weight: 700; }
.account-form p { color: var(--text-muted); font-size: 0.82rem; margin: 0.35rem 0 0.8rem; }
.account-input-row { display: flex; gap: 0.6rem; }
.account-input-row input { min-width: 0; flex: 1; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 7px; background: var(--bg-surface); color: var(--text-primary); }
.account-input-row input:focus { outline: 1px solid var(--accent-green); border-color: var(--accent-green); }
.account-save-btn, .account-logout-btn { border: 0; border-radius: 7px; padding: 0.75rem 1rem; font: inherit; font-weight: 700; cursor: pointer; }
.account-save-btn { background: var(--accent-green); color: #07110b; }
.account-logout-btn { margin-top: 2rem; background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.account-logout-btn:hover { color: #ff6b75; }
.account-message { min-height: 1.2rem; margin-top: 0.7rem; font-size: 0.82rem; }
.account-message.success { color: var(--accent-green); }
.account-message.error { color: #ff6b75; }
@media (max-width: 600px) {
    .account-main { margin: 1.5rem auto; }
    .account-profile { align-items: flex-start; }
    .account-avatar { width: 72px; height: 72px; }
    .account-meta-grid { grid-template-columns: 1fr; }
    .account-input-row { flex-direction: column; }
    .steam-account-id { display: none; }
}
