/* CS2 Market - Main Styles */
:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #0f3460;
    --text-primary: #eaeaea;
    --text-secondary: #a0a0a0;
    --accent: #e94560;
    --accent-hover: #ff6b6b;

    /* Rarity colors from CS2 - indexed to match ItemRarity enum (starts at 1) */
    --rarity-1: #b0c3d9; /* Consumer Grade - White */
    --rarity-2: #5e98d9; /* Industrial Grade - Light Blue */
    --rarity-3: #4b69ff; /* Mil-Spec - Blue */
    --rarity-4: #8847ff; /* Restricted - Purple */
    --rarity-5: #d32ce6; /* Classified - Pink */
    --rarity-6: #eb4b4b; /* Covert - Red */
    --rarity-7: #e4ae39; /* Contraband - Gold */
    --rarity-8: #e4ae39; /* Extraordinary - Gold (Knives/Gloves) */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(22, 33, 62, 0.95) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.875rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b6b 100%);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.3);
}

.logo-text {
    color: var(--text-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    min-width: 160px;
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding-top: 0.75rem;
}

/* Invisible bridge to prevent hover gap when moving to dropdown */
.nav-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0.5rem 0;
}

/* Main content */
.main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #0f1829 100%);
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

/* Filters Section */
.filters-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(22, 33, 62, 0.9) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.search-box input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.search-box input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-btn {
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, var(--accent) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 140px;
}

.filter-group label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.1);
}

.filter-group select {
    cursor: pointer;
    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='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.sort-toggle,
.clear-btn {
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.875rem;
}

.sort-toggle:hover,
.clear-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.clear-btn {
    color: var(--text-secondary);
}

.clear-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.item-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease;
    border: 2px solid transparent;
}

.item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 4px 12px rgba(233, 69, 96, 0.1);
}

.item-card:active {
    transform: translateY(-2px);
}

/* Rarity borders */
.item-card.rarity-1 { border-color: var(--rarity-1); }
.item-card.rarity-2 { border-color: var(--rarity-2); }
.item-card.rarity-3 { border-color: var(--rarity-3); }
.item-card.rarity-4 { border-color: var(--rarity-4); }
.item-card.rarity-5 { border-color: var(--rarity-5); }
.item-card.rarity-6 { border-color: var(--rarity-6); }
.item-card.rarity-7 { border-color: var(--rarity-7); }
.item-card.rarity-8 { border-color: var(--rarity-8); }

.item-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
}

.item-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.item-info {
    padding: 1rem;
}

.item-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.weapon-type {
    color: var(--text-secondary);
}

.rarity {
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Rarity badges */
.rarity-badge-1 { background: var(--rarity-1); color: #1a1a2e; }
.rarity-badge-2 { background: var(--rarity-2); color: white; }
.rarity-badge-3 { background: var(--rarity-3); color: white; }
.rarity-badge-4 { background: var(--rarity-4); color: white; }
.rarity-badge-5 { background: var(--rarity-5); color: white; }
.rarity-badge-6 { background: var(--rarity-6); color: #1a1a2e; }
.rarity-badge-7 { background: var(--rarity-7); color: #1a1a2e; }
.rarity-badge-8 { background: var(--rarity-8); color: #1a1a2e; }

/* Sticker type badges (matching tournament stickers pattern) */
.sticker-type {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}
.type-0 { background: #b0c3d9; color: #000; } /* Paper */
.type-1 { background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff, #ffff00, #00ffff); background-size: 200% 200%; color: #000; text-shadow: 0 0 2px rgba(255,255,255,0.5); } /* Holo - rainbow holographic */
.type-2 { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; } /* Foil */
.type-3 { background: linear-gradient(135deg, #ffd700, #ffed4a); color: #000; } /* Gold */
.type-4 { background: linear-gradient(135deg, #ff69b4, #9400d3); color: #fff; } /* Glitter */
.type-5 { background: linear-gradient(135deg, #ff0000, #0000ff); color: #fff; } /* Lenticular */

/* Sticker card borders (matching tournament stickers pattern) */
.sticker-border-0 { border-color: #b0c3d9 !important; }
.sticker-border-1 { border-image: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff, #ffff00, #00ffff) 1 !important; } /* Holo - rainbow holographic */
.sticker-border-2 { border-color: #ffd700 !important; }
.sticker-border-3 { border-color: #ffed4a !important; }
.sticker-border-4 { border-color: #ff69b4 !important; }
.sticker-border-5 { border-color: #ff0000 !important; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: var(--bg-card);
    border-color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}

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

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin-bottom: 1rem;
}

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

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

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

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Skeleton loading effect */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* No Results */
.no-results,
.not-found {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.not-found h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.not-found a,
.no-results a {
    color: var(--accent);
}

/* Details Page */
.details-page {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-hover);
}

.item-details {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.item-header {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: rgba(0,0,0,0.2);
}

.item-image-large {
    width: 300px;
    height: 225px;
    object-fit: contain;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1rem;
}

.item-image-large.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.item-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-title-section h1 {
    font-size: 1.75rem;
    line-height: 1.3;
}

.weapon-type-large {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.rarity-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    width: fit-content;
}

/* Rarity backgrounds */
.rarity-bg-1 { border-top: 3px solid var(--rarity-1); }
.rarity-bg-2 { border-top: 3px solid var(--rarity-2); }
.rarity-bg-3 { border-top: 3px solid var(--rarity-3); }
.rarity-bg-4 { border-top: 3px solid var(--rarity-4); }
.rarity-bg-5 { border-top: 3px solid var(--rarity-5); }
.rarity-bg-6 { border-top: 3px solid var(--rarity-6); }
.rarity-bg-7 { border-top: 3px solid var(--rarity-7); }
.rarity-bg-8 { border-top: 3px solid var(--rarity-8); }

.item-properties,
.market-section {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.item-properties h2,
.market-section h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.property {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.property-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.property-value {
    font-size: 1rem;
}

.property-value.yes {
    color: #4ade80;
}

.property-value.no {
    color: var(--text-secondary);
}

.market-hash {
    display: block;
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    word-break: break-all;
}

.steam-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #1b2838;
    color: #66c0f4;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.steam-link:hover {
    background: #2a475e;
}

.meta-section {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
}

/* Price Section */
.price-section {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.price-section h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.price-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.price-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.price-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.current-price,
.median-price,
.volume {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 8px;
}

.current-price .price-label,
.median-price .price-label,
.volume .price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.current-price .price-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4ade80;
}

.median-price .price-value,
.volume .price-value {
    font-size: 1.125rem;
    font-weight: 500;
}

.price-meta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.stale-badge {
    color: #fbbf24;
    margin-left: 0.5rem;
}

.refresh-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.refresh-btn:hover:not(:disabled) {
    background: var(--accent);
    color: white;
}

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

.no-price {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
}

.no-price p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Breadcrumbs */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Weapons Page */
.weapons-page h1 {
    margin-bottom: 1.5rem;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.weapon-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 3px solid var(--accent);
    overflow: hidden;
    min-height: 140px;
}

.weapon-bg {
    position: absolute;
    top: 0;
    right: -20px;
    width: 180px;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    opacity: 0.4;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.weapon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--bg-card) 40%, transparent 100%);
    pointer-events: none;
}

.weapon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.weapon-card:hover .weapon-bg {
    opacity: 0.7;
    transform: scale(1.05);
}

/* Category border colors */
.weapon-card.category-0 { border-left-color: #ff6b6b; } /* Rifle */
.weapon-card.category-1 { border-left-color: #4ecdc4; } /* Pistol */
.weapon-card.category-2 { border-left-color: #45b7d1; } /* SMG */
.weapon-card.category-3 { border-left-color: #96ceb4; } /* Shotgun */
.weapon-card.category-4 { border-left-color: #ffeaa7; } /* Machine Gun */
.weapon-card.category-5 { border-left-color: #e4ae39; } /* Knife */
.weapon-card.category-6 { border-left-color: #d32ce6; } /* Glove */
.weapon-card.category-7 { border-left-color: #a0a0a0; } /* Equipment */

.weapon-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.weapon-info {
    position: relative;
    z-index: 1;
}

.weapon-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.weapon-info .category-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.weapon-info .skin-count {
    font-size: 0.75rem;
    color: var(--accent);
}

/* Weapon Detail Page */
.weapon-detail-page .weapon-header {
    margin-bottom: 1.5rem;
}

.weapon-detail-page .weapon-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.weapon-detail-page .weapon-header .category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-card);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-right: 0.75rem;
}

.weapon-detail-page .weapon-header .skin-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .logo {
        order: 1;
    }

    .user-section {
        order: 2;
        margin-left: auto;
    }

    .mobile-menu-btn {
        display: flex;
        order: 3;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 100;
        overflow-y: auto;
        flex: none;
    }

    .nav.mobile-open {
        display: flex;
    }

    .nav .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.1rem;
    }

    .nav .nav-dropdown {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav .nav-dropdown .dropdown-toggle {
        padding: 1rem 0;
        display: block;
    }

    .nav .nav-dropdown .dropdown-menu {
        position: static;
        display: block;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0.5rem 1rem;
    }

    .nav .nav-dropdown .dropdown-menu::before {
        display: none;
    }

    .nav .nav-dropdown .dropdown-item {
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }

    .steam-login-btn img {
        height: 28px;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .item-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .item-image-large {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .items-grid {
        grid-template-columns: 1fr;
    }

    .logo-text {
        display: none;
    }
}

/* Skins Grid (Grouped Skins) */
.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.skin-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.skin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Rarity borders for skin cards */
.skin-card.rarity-1 { border-color: var(--rarity-1); }
.skin-card.rarity-2 { border-color: var(--rarity-2); }
.skin-card.rarity-3 { border-color: var(--rarity-3); }
.skin-card.rarity-4 { border-color: var(--rarity-4); }
.skin-card.rarity-5 { border-color: var(--rarity-5); }
.skin-card.rarity-6 { border-color: var(--rarity-6); }
.skin-card.rarity-7 { border-color: var(--rarity-7); }
.skin-card.rarity-8 { border-color: var(--rarity-8); }

.skin-image {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
}

.skin-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.skin-info {
    padding: 1rem;
}

.skin-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.skin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.variant-count {
    color: var(--text-secondary);
}

.skin-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
}

.badge.stattrak {
    background: #cf6a32;
    color: white;
}

.badge.souvenir {
    background: #ffb800;
    color: #1a1a2e;
}

/* Skin Detail Page */
.skin-detail-page {
    max-width: 1000px;
    margin: 0 auto;
}

.skin-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
}

.skin-image-container {
    flex-shrink: 0;
}

.skin-main-image {
    width: 300px;
    height: 225px;
    object-fit: contain;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1rem;
}

.skin-main-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-align: center;
}

.skin-info-panel {
    flex: 1;
}

.skin-info-panel h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.collection-info {
    margin: 1rem 0;
}

.collection-info .label {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.collection-link {
    color: var(--accent);
    text-decoration: none;
}

.collection-link:hover {
    text-decoration: underline;
}

/* Float Range Visualizer */
.float-range {
    margin: 1.5rem 0;
}

.float-range .label {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.float-bar {
    height: 8px;
    background: linear-gradient(to right,
        #4ade80 0%,
        #4ade80 7%,
        #22c55e 7%,
        #22c55e 15%,
        #fbbf24 15%,
        #fbbf24 38%,
        #f97316 38%,
        #f97316 45%,
        #ef4444 45%,
        #ef4444 100%
    );
    border-radius: 4px;
    position: relative;
}

.float-indicator {
    position: absolute;
    top: -2px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border: 2px solid white;
    border-radius: 4px;
}

.float-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.variant-summary {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Sources Section */
.sources-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sources-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.source-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.source-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.source-image {
    width: 100px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.source-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    font-size: 2rem;
}

.source-info {
    text-align: center;
}

.source-name {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.source-type {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Variants Table */
.variants-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.variants-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.variants-table th,
.variants-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.variants-table th {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.variants-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

.variants-table .stattrak-row {
    background: rgba(207, 106, 50, 0.1);
}

.variants-table .souvenir-row {
    background: rgba(255, 184, 0, 0.1);
}

.variants-table td:first-child,
.variants-table th:first-child,
.variants-table td:nth-child(2),
.variants-table th:nth-child(2) {
    text-align: center;
    width: 5rem;
}

.wear-badge {
    display: inline-block;
    min-width: 2.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.wear-0 { background: #4ade80; color: #1a1a2e; } /* FN */
.wear-1 { background: #22c55e; color: #1a1a2e; } /* MW */
.wear-2 { background: #fbbf24; color: #1a1a2e; } /* FT */
.wear-3 { background: #f97316; color: white; }   /* WW */
.wear-4 { background: #ef4444; color: white; }   /* BS */

.type-badge {
    display: inline-block;
    min-width: 4rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.type-badge.stattrak {
    background: #cf6a32;
    color: white;
}

.type-badge.souvenir {
    background: #ffb800;
    color: #1a1a2e;
}

.type-badge.normal {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.variant-link {
    color: var(--text-primary);
    text-decoration: none;
}

.variant-link:hover {
    color: var(--accent);
}

/* Price column in variants table */
.price-col {
    text-align: right;
    width: 120px;
}

.variant-price {
    color: #4ade80;
    font-weight: 600;
    font-size: 0.95rem;
}

.price-loading-inline {
    color: var(--text-secondary);
    animation: pulse 1s infinite;
}

.variants-table .no-price {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Responsive for skin detail */
@media (max-width: 768px) {
    .skin-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .skin-main-image {
        width: 100%;
        max-width: 300px;
    }

    .variants-table {
        font-size: 0.875rem;
    }

    .variants-table th,
    .variants-table td {
        padding: 0.5rem;
    }
}

/* Containers Page */
.containers-page h1 {
    margin-bottom: 1.5rem;
}

.containers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.container-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.container-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Rarity borders for container cards */
.container-card.rarity-1 { border-color: var(--rarity-1); }
.container-card.rarity-2 { border-color: var(--rarity-2); }
.container-card.rarity-3 { border-color: var(--rarity-3); }
.container-card.rarity-4 { border-color: var(--rarity-4); }
.container-card.rarity-5 { border-color: var(--rarity-5); }
.container-card.rarity-6 { border-color: var(--rarity-6); }

.container-image {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
}

.container-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.container-image .icon-placeholder {
    font-size: 3rem;
}

.container-info {
    padding: 1rem;
}

.container-info h3 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.container-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.container-info .type-badge {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.container-info .key-required {
    color: #fbbf24;
    font-size: 0.75rem;
}

.container-info .release-date,
.container-info .item-count {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Container Detail Page */
.container-detail-page {
    max-width: 1000px;
    margin: 0 auto;
}

.container-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
}

.container-image-container {
    flex-shrink: 0;
}

.container-main-image {
    width: 250px;
    height: 250px;
    object-fit: contain;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1rem;
}

.container-main-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 4rem;
}

.container-info-panel {
    flex: 1;
}

.container-info-panel h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.container-info-panel .type-badge {
    display: inline-block;
    background: var(--bg-card);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.release-info,
.key-info,
.tournament-info {
    margin: 0.75rem 0;
    font-size: 0.875rem;
}

.release-info .label,
.key-info .label,
.tournament-info .label {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.key-name {
    color: #fbbf24;
}

.contents-summary {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contents-summary span {
    display: block;
}

/* Drop Table Section */
.drop-table-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.drop-table-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.rarity-section {
    margin-bottom: 2rem;
}

.rarity-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.rarity-section.rare h3 {
    color: #e4ae39;
}

.drop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.drop-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.drop-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Rarity borders for drop items */
.drop-item.rarity-1 { border-color: var(--rarity-1); }
.drop-item.rarity-2 { border-color: var(--rarity-2); }
.drop-item.rarity-3 { border-color: var(--rarity-3); }
.drop-item.rarity-4 { border-color: var(--rarity-4); }
.drop-item.rarity-5 { border-color: var(--rarity-5); }
.drop-item.rarity-6 { border-color: var(--rarity-6); }
.drop-item.rarity-7 { border-color: var(--rarity-7); }
.drop-item.rarity-8 { border-color: var(--rarity-8); }

.drop-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.drop-item .placeholder-image {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.drop-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drop-item .item-name {
    font-size: 0.75rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.drop-item .item-rarity {
    font-size: 0.625rem;
}

.drop-item .item-phase {
    font-size: 0.625rem;
    color: var(--text-secondary);
}

/* Responsive for containers */
@media (max-width: 768px) {
    .container-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .container-main-image {
        width: 200px;
        height: 200px;
    }

    .drop-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ======================================
   COLLECTIONS PAGES
   ====================================== */

.collections-page {
    max-width: 1200px;
    margin: 0 auto;
}

.collections-page h1 {
    margin-bottom: 1.5rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.collection-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.collection-card .collection-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
}

.collection-card .collection-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.collection-card .collection-info {
    padding: 1rem;
}

.collection-card h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.collection-card .item-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Collection Detail Page */
.collection-detail-page {
    max-width: 1200px;
    margin: 0 auto;
}

.collection-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.collection-main-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 1rem;
}

.collection-info-panel h1 {
    margin: 0 0 1rem 0;
}

.collection-info-panel .description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.collection-info-panel .stats {
    color: var(--accent);
    font-weight: 500;
}

/* Collection Items by Rarity */
.collection-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rarity-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
}

.rarity-header {
    margin: 0 0 1rem 0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.item-card {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    border-left: 3px solid transparent;
}

.item-card:hover {
    transform: translateY(-2px);
    background: rgba(0,0,0,0.3);
}

.item-card.rarity-1 { border-left-color: #b0c3d9; }
.item-card.rarity-2 { border-left-color: #5e98d9; }
.item-card.rarity-3 { border-left-color: #4b69ff; }
.item-card.rarity-4 { border-left-color: #8847ff; }
.item-card.rarity-5 { border-left-color: #d32ce6; }
.item-card.rarity-6 { border-left-color: #eb4b4b; }
.item-card.rarity-7 { border-left-color: #e4ae39; }
.item-card.rarity-8 { border-left-color: #ffd700; }

.item-card .item-image {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.item-card .item-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.item-card .item-info {
    text-align: center;
}

.item-card .item-name {
    color: var(--text-primary);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.25rem;
}

.item-card .item-badges {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.item-card .badge {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-weight: 600;
}

.item-card .badge.stattrak {
    background: rgba(207, 106, 50, 0.3);
    color: #cf6a32;
}

.item-card .badge.souvenir {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.item-card .variant-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Responsive for collections */
@media (max-width: 768px) {
    .collection-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ======================================
   PRICE COMPARISON TABLE
   ====================================== */

.price-comparison {
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
}

.best-price-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.1));
    border-bottom: 1px solid rgba(74, 222, 128, 0.3);
}

.best-price-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #4ade80;
    padding: 0.25rem 0.5rem;
    background: rgba(74, 222, 128, 0.2);
    border-radius: 4px;
}

.best-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ade80;
}

.best-price-source {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.price-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.price-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-table tbody tr {
    transition: background 0.2s;
}

.price-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.price-table .best-row {
    background: rgba(74, 222, 128, 0.08);
}

.price-table .best-row:hover {
    background: rgba(74, 222, 128, 0.12);
}

.marketplace-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.marketplace-name {
    font-weight: 500;
}

.best-badge {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.125rem 0.375rem;
    background: #4ade80;
    color: #1a1a2e;
    border-radius: 3px;
}

.price-cell {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.mp-price {
    font-weight: 600;
    font-size: 1rem;
}

.mp-median {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.listings-cell .na {
    color: var(--text-secondary);
    opacity: 0.5;
}

.buy-btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.2s;
}

.buy-btn:hover {
    background: var(--accent-hover);
}

/* Responsive for price comparison */
@media (max-width: 768px) {
    .best-price-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .price-table th,
    .price-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .mp-price {
        font-size: 0.875rem;
    }
}

/* Price History Section */
.price-history-section {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.price-history-section h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.time-range-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.time-range-selector button {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-range-selector button:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.time-range-selector button.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.history-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.history-stats .stat {
    display: flex;
    flex-direction: column;
}

.history-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.history-stats .stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-container {
    background: var(--bg-secondary);
    border-radius: 4px;
    padding: 1rem;
    min-height: 320px;
}

.price-history-section {
    scroll-margin-top: 1rem;
    overflow-anchor: none;
}

.history-stats {
    min-height: 60px;
}

.no-history {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.no-history small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* Pattern Pricing Section */
.pattern-pricing-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid #FF5722;
}

.pattern-pricing-section h2 {
    margin-bottom: 0.5rem;
    color: #FF5722;
}

.pattern-info {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pattern-chart-container {
    background: var(--bg-primary);
    border-radius: 4px;
    padding: 1rem;
    min-height: 350px;
}

.pattern-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 4px;
}

.pattern-legend-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pattern-name {
    font-weight: 600;
    color: var(--text-primary);
}

.pattern-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.no-pattern-data {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border-radius: 4px;
}

.no-pattern-data small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.pattern-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pattern-toggle {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.pattern-toggle:hover {
    border-color: #FF5722;
    color: var(--text-primary);
}

.pattern-toggle.active {
    background: #FF5722;
    border-color: #FF5722;
    color: white;
}

.pattern-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.pattern-stat-card {
    background: var(--bg-primary);
    border-radius: 4px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pattern-stat-card .pattern-name {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.pattern-stat-card .pattern-range {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ======================================
   INVENTORY PAGE
   ====================================== */

.inventory-page {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.inventory-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.inventory-page .page-header h1 {
    margin: 0;
    color: #fff;
}

.inventory-page .import-btn {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: #c7d5e0;
    padding: 0.75rem 1.5rem;
    border: 1px solid #4b6a82;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.inventory-page .import-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2a475e 0%, #3d6a8c 100%);
    color: #fff;
    transform: translateY(-1px);
}

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

.inventory-page .login-prompt,
.inventory-page .empty-state {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    color: #888;
}

.inventory-page .login-prompt a,
.inventory-page .empty-state a {
    color: #4b69ff;
    text-decoration: none;
}

.inventory-page .login-prompt a:hover,
.inventory-page .empty-state a:hover {
    text-decoration: underline;
}

.inventory-page .inventory-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #888;
    flex-wrap: wrap;
}

.inventory-page .import-result {
    color: #5cb85c;
}

.inventory-page .valuation-summary {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.inventory-page .valuation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.inventory-page .valuation-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
}

.inventory-page .export-btn {
    background: linear-gradient(135deg, #2a475e 0%, #3d6a8c 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border: 1px solid #4b6a82;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.inventory-page .export-btn:hover {
    background: linear-gradient(135deg, #3d6a8c 0%, #4b8ab8 100%);
    transform: translateY(-1px);
}

.inventory-page .marketplace-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.inventory-page .marketplace-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.inventory-page .marketplace-card:hover {
    transform: translateY(-2px);
}

.inventory-page .marketplace-card.steam {
    border-color: rgba(27, 40, 56, 0.8);
}

.inventory-page .marketplace-card.skinport {
    border-color: rgba(255, 107, 53, 0.5);
}

.inventory-page .marketplace-card.best {
    border-color: #5cb85c;
    box-shadow: 0 0 20px rgba(92, 184, 92, 0.2);
}

.inventory-page .marketplace-name {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.inventory-page .marketplace-value {
    color: #fff;
    font-size: 1.75rem;
    font-weight: bold;
}

.inventory-page .marketplace-items {
    color: #666;
    font-size: 0.8rem;
}

.inventory-page .best-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.inventory-page .inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.inventory-page .inventory-item {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.inventory-page .inventory-item:hover {
    transform: translateY(-3px);
    border-color: #4b69ff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.inventory-page .inventory-item.not-tradable {
    opacity: 0.7;
}

.inventory-page .item-icon {
    width: 120px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.inventory-page .item-info {
    text-align: center;
    width: 100%;
}

.inventory-page .item-name {
    display: block;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-page .item-amount {
    color: #ffd700;
    font-size: 0.8rem;
}

.inventory-page .item-price {
    display: block;
    color: #5cb85c;
    font-size: 0.95rem;
    font-weight: bold;
    margin-top: 0.25rem;
}

.inventory-page .item-price.no-price {
    color: #666;
    font-weight: normal;
    font-size: 0.75rem;
}

.inventory-page .best-at {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 0.3rem;
}

.inventory-page .best-at.steam {
    background: rgba(27, 40, 56, 0.8);
    color: #66c0f4;
    border: 1px solid rgba(27, 40, 56, 0.9);
}

.inventory-page .best-at.skinport {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.4);
}

.inventory-page .item-badges {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.inventory-page .badge.trade-locked {
    background: rgba(235, 75, 75, 0.2);
    color: #eb4b4b;
}

.inventory-page .badge.matched {
    background: rgba(75, 105, 255, 0.2);
    color: #4b69ff;
}

.inventory-page .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.inventory-page .pagination button {
    background: #2a2a3e;
    color: #fff;
    border: 1px solid #444;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.inventory-page .pagination button:hover:not(:disabled) {
    background: var(--bg-card);
    border-color: var(--accent);
}

.inventory-page .pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.inventory-page .loading,
.inventory-page .error-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #888;
}

.inventory-page .error-message {
    color: #eb4b4b;
    background: rgba(235, 75, 75, 0.1);
    border-radius: 8px;
}

/* Inventory responsive */
@media (max-width: 768px) {
    .inventory-page .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inventory-page .marketplace-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .inventory-page .inventory-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================================
   PORTFOLIO PAGE
   ====================================== */

.portfolio-page {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.portfolio-page .page-header h1 {
    margin: 0;
}

.portfolio-page .login-prompt {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.portfolio-page .login-prompt a {
    color: var(--accent);
    text-decoration: none;
}

.portfolio-page .login-prompt a:hover {
    text-decoration: underline;
}

.portfolio-page .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-secondary);
}

.portfolio-page .empty-state a {
    color: var(--accent);
    text-decoration: none;
}

/* Portfolio Summary */
.portfolio-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.total-value-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 4px solid var(--accent);
}

.total-value-card .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.total-value-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.total-value-card .meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.change-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.change-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.change-card .period {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.change-card .change-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.change-card .change-percent {
    font-size: 0.875rem;
}

.change-card.positive .change-value,
.change-card.positive .change-percent {
    color: #4ade80;
}

.change-card.negative .change-value,
.change-card.negative .change-percent {
    color: #ef4444;
}

.change-card .no-data {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

/* Chart Section */
.chart-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-section h2 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
}

.chart-section .chart-container {
    min-height: 300px;
}

.portfolio-page .no-history {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.portfolio-page .no-history h2 {
    margin: 0 0 0.5rem 0;
}

.portfolio-page .no-history p {
    color: var(--text-secondary);
    margin: 0;
}

/* Widgets Row */
.widgets-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Movers Section */
.movers-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.movers-widget {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.25rem;
}

.movers-widget h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.movers-widget.gainers h3 {
    color: #4ade80;
}

.movers-widget.losers h3 {
    color: #ef4444;
}

.movers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mover-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.mover-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(0,0,0,0.3);
}

.mover-name {
    flex: 1;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mover-change {
    font-weight: 600;
    font-size: 0.875rem;
}

.mover-change.positive {
    color: #4ade80;
}

.mover-change.negative {
    color: #ef4444;
}

.no-movers {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

/* Allocation Section */
.allocation-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.25rem;
}

.allocation-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.allocation-chart-container {
    min-height: 250px;
}

.allocation-legend {
    list-style: none;
    margin: 1rem 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.allocation-legend li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    font-size: 0.875rem;
}

.alloc-name {
    color: var(--text-primary);
}

.alloc-value {
    color: var(--text-secondary);
}

.no-allocation {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    padding: 2rem;
}

/* Responsive for portfolio */
@media (max-width: 992px) {
    .portfolio-summary {
        grid-template-columns: 1fr;
    }

    .widgets-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portfolio-page .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .change-cards {
        grid-template-columns: 1fr;
    }

    .total-value-card .value {
        font-size: 2rem;
    }
}

/* Infinite Scroll */
.scroll-sentinel {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-more {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    padding: 1rem;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ======================================
   TRADE-UP CALCULATOR PAGE
   ====================================== */

.tradeup-page {
    max-width: 1400px;
    margin: 0 auto;
}

/* DEV TEST PANEL - Remove after Slice 2 */
.dev-test-panel {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    border: 1px dashed #ffc107;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.dev-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #ffc107;
    font-size: 0.85rem;
}

.dev-header:hover {
    background: rgba(255, 193, 7, 0.1);
}

.dev-toggle {
    font-size: 0.7rem;
}

.dev-content {
    padding: 1rem;
    border-top: 1px dashed rgba(255, 193, 7, 0.3);
}

.dev-hint {
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.dev-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dev-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dev-btn.mil-spec {
    background: rgba(75, 105, 255, 0.2);
    color: #4b69ff;
    border: 1px solid #4b69ff;
}
.dev-btn.mil-spec:hover {
    background: rgba(75, 105, 255, 0.4);
}

.dev-btn.classified {
    background: rgba(211, 44, 230, 0.2);
    color: #d32ce6;
    border: 1px solid #d32ce6;
}
.dev-btn.classified:hover {
    background: rgba(211, 44, 230, 0.4);
}

.dev-btn.covert {
    background: rgba(235, 75, 75, 0.2);
    color: #eb4b4b;
    border: 1px solid #eb4b4b;
}
.dev-btn.covert:hover {
    background: rgba(235, 75, 75, 0.4);
}

.dev-btn.clear {
    background: rgba(150, 150, 150, 0.2);
    color: #999;
    border: 1px solid #666;
}
.dev-btn.clear:hover {
    background: rgba(150, 150, 150, 0.4);
    color: #fff;
}

.dev-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.tradeup-page .page-header {
    margin-bottom: 2rem;
}

.tradeup-page .page-header h1 {
    margin: 0 0 0.5rem 0;
}

.tradeup-page .page-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

.tradeup-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Inputs Section */
.inputs-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.inputs-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.inputs-section .section-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

/* Mode Indicator (auto-detected) */
.mode-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-indicator .mode-hint {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
}

.mode-indicator .mode-badge {
    padding: 0.375rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.mode-indicator.knife-glove .mode-badge {
    background: linear-gradient(135deg, rgba(228, 174, 57, 0.2), rgba(228, 174, 57, 0.1));
    border-color: #e4ae39;
    color: #e4ae39;
}

.mode-indicator.standard .mode-badge {
    background: rgba(75, 105, 255, 0.15);
    border-color: var(--rarity-3);
    color: var(--rarity-3);
}

/* Outcome type badge */
.outcome-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.outcome-type-badge.gold {
    background: linear-gradient(135deg, rgba(228, 174, 57, 0.2), rgba(228, 174, 57, 0.1));
    color: #e4ae39;
    border: 1px solid rgba(228, 174, 57, 0.3);
}

/* Gold text color */
.gold {
    color: #e4ae39 !important;
}

/* Knife/glove notice in summary */
.knife-glove-notice {
    border-left: 2px solid #e4ae39;
    padding-left: 0.75rem;
}

/* Slots Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.input-slot {
    aspect-ratio: 1;
    background: var(--bg-primary);
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.input-slot:hover {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

.input-slot.filled {
    border-style: solid;
    border-color: var(--rarity-3);
}

.input-slot.filled:hover {
    border-color: var(--accent);
}

/* Slot Placeholder */
.slot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.5rem;
}

.slot-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.2);
}

.slot-hint {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 0 0.5rem;
}

/* Slot Content (filled) */
.slot-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.5rem;
}

.slot-image {
    width: 100%;
    flex: 1;
    object-fit: contain;
    min-height: 0;
}

.slot-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-top: 0.25rem;
}

.slot-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-float {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.clear-slot-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.input-slot:hover .clear-slot-btn {
    opacity: 1;
}

.clear-slot-btn:hover {
    background: var(--accent);
}

/* Inputs Summary */
.inputs-summary {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.summary-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Outcomes Section */
.outcomes-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.outcomes-section .section-header {
    margin-bottom: 1.5rem;
}

.outcomes-section .section-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

/* Outcomes Placeholder */
.outcomes-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 2px dashed rgba(255,255,255,0.1);
}

.placeholder-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}

.outcomes-placeholder p {
    margin: 0 0 0.5rem 0;
}

.placeholder-hint {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Outcomes Grid */
.outcomes-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.outcome-card {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.outcome-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.outcome-card.placeholder {
    border: 2px dashed rgba(255,255,255,0.1);
}

.outcome-image {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.outcome-image-placeholder {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.outcome-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.outcome-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.outcome-probability {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
}

.outcome-float {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.outcome-price {
    font-size: 0.8rem;
    color: #4ade80;
    font-weight: 600;
}

/* Financial Summary */
.financial-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-top: auto;
}

.financial-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.financial-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.financial-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.financial-item.profit {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.financial-item.profit .financial-label {
    font-weight: 600;
    color: var(--text-primary);
}

.financial-value.positive {
    color: #4ade80;
}

.financial-value.negative {
    color: #ef4444;
}

.financial-value.neutral {
    color: var(--text-secondary);
}

/* Responsive for Trade-Up Calculator */
@media (max-width: 1024px) {
    .tradeup-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .slots-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }

    .inputs-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .inputs-summary {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .slot-hint {
        display: none;
    }
}

/* ======================================
   SKIN SELECTION MODAL
   ====================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-container {
    background: #1a1a2e;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #4b69ff;
    border-bottom-color: #4b69ff;
    background: rgba(75, 105, 255, 0.1);
}

.trade-lock-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.7rem;
    background: rgba(255, 100, 100, 0.9);
    padding: 2px 4px;
    border-radius: 3px;
    z-index: 2;
}

.skin-card.not-tradable {
    opacity: 0.7;
    border: 1px dashed rgba(255, 100, 100, 0.5);
}

.skin-card.not-tradable:hover {
    opacity: 0.85;
}

.skin-float.actual {
    color: #4ade80;
    font-weight: 600;
    font-size: 0.7rem;
}

.modal-filters {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.filter-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-search {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.9rem;
}

.filter-search:focus {
    outline: none;
    border-color: #4b69ff;
}

.filter-search::placeholder {
    color: #666;
}

.filter-select {
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.9rem;
    min-width: 150px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #4b69ff;
}

.rarity-lock-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #aaa;
    padding: 0.5rem 0;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.loading-state,
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #888;
    font-size: 1rem;
}

.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.skin-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skin-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skin-card.rarity-1 { border-left: 3px solid #b0c3d9; }
.skin-card.rarity-2 { border-left: 3px solid #5e98d9; }
.skin-card.rarity-3 { border-left: 3px solid #4b69ff; }
.skin-card.rarity-4 { border-left: 3px solid #8847ff; }
.skin-card.rarity-5 { border-left: 3px solid #d32ce6; }
.skin-card.rarity-6 { border-left: 3px solid #eb4b4b; }

.skin-image {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.skin-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    width: 100%;
}

.skin-weapon {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.skin-name {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.skin-wear {
    font-size: 0.7rem;
    color: #aaa;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

.skin-stattrak {
    font-size: 0.65rem;
    color: #cf6a32;
    font-weight: 600;
}

.skin-price {
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.page-info {
    color: #888;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .modal-container {
        max-height: 95vh;
    }

    .skins-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }
}

/* ======================================
   ENHANCED SKIN SELECTION MODAL
   ====================================== */

.skin-selection-modal {
    max-width: 1100px;
    width: 95vw;
}

.skins-grid.enhanced {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.skin-card.enhanced {
    padding: 0;
    overflow: hidden;
    background: #1a1a2e;
}

.skin-card.enhanced .skin-image-container {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
}

.skin-card.enhanced .skin-image {
    height: 90px;
    margin-bottom: 0;
}

.skin-card.enhanced .stattrak-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #cf6a32;
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
}

.skin-card.enhanced .skin-info {
    padding: 0.6rem;
    align-items: flex-start;
    text-align: left;
    gap: 0.25rem;
}

.skin-card.enhanced .skin-weapon {
    font-size: 0.65rem;
}

.skin-card.enhanced .skin-name {
    font-size: 0.75rem;
    line-height: 1.2;
}

.skin-card.enhanced .skin-meta {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.2rem;
}

.skin-card.enhanced .skin-wear {
    font-size: 0.65rem;
    padding: 1px 4px;
}

.skin-card.enhanced .skin-wear.wear-0 { background: #4ade80; color: #000; }
.skin-card.enhanced .skin-wear.wear-1 { background: #60a5fa; color: #000; }
.skin-card.enhanced .skin-wear.wear-2 { background: #fbbf24; color: #000; }
.skin-card.enhanced .skin-wear.wear-3 { background: #fb923c; color: #000; }
.skin-card.enhanced .skin-wear.wear-4 { background: #f87171; color: #000; }

.skin-card.enhanced .skin-float {
    font-size: 0.6rem;
    color: #888;
    font-family: monospace;
}

.skin-card.enhanced .skin-collection {
    font-size: 0.6rem;
    color: #8b8bab;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.skin-card.enhanced .skin-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.2rem;
}

.skin-card.enhanced .source-badge {
    font-size: 0.55rem;
    background: rgba(75, 105, 255, 0.2);
    color: #4b69ff;
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
}

.skin-card.enhanced .source-more {
    font-size: 0.55rem;
    color: #666;
}

.skin-card.enhanced .skin-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
    width: 100%;
}

.skin-card.enhanced .market-price {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
}

.skin-card.enhanced .market-price .market-icon {
    font-weight: 700;
    font-size: 0.55rem;
    opacity: 0.7;
}

.skin-card.enhanced .market-price.market-1 { color: #66c0f4; } /* Steam */
.skin-card.enhanced .market-price.market-2 { color: #ff7043; } /* CSFloat */
.skin-card.enhanced .market-price.market-3 { color: #4ade80; } /* Skinport */
.skin-card.enhanced .market-price.market-4 { color: #a78bfa; } /* DMarket */
.skin-card.enhanced .market-price.market-5 { color: #fbbf24; } /* Buff163 */

.skin-card.enhanced .no-price {
    font-size: 0.6rem;
    color: #555;
    font-style: italic;
}

/* ======================================
   MARKET LISTINGS TAB STYLES
   ====================================== */

.skins-grid.market-listings {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.skin-card.market-listing {
    background: rgba(20, 20, 30, 0.9);
    position: relative;
}

.skin-card.market-listing .marketplace-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.7);
}

.skin-card.market-listing .marketplace-badge.market-1 { color: #66c0f4; }
.skin-card.market-listing .marketplace-badge.market-2 { color: #ff7043; }
.skin-card.market-listing .marketplace-badge.market-3 { color: #4ade80; }
.skin-card.market-listing .marketplace-badge.market-4 { color: #a78bfa; }
.skin-card.market-listing .marketplace-badge.market-5 { color: #fbbf24; }

.skin-card.market-listing .skin-float.actual {
    color: #4ade80;
    font-weight: 600;
    font-size: 0.65rem;
    font-family: monospace;
}

.skin-card.market-listing .skin-seed {
    font-size: 0.55rem;
    color: #888;
}

.skin-card.market-listing .listing-stickers {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.skin-card.market-listing .sticker-item {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.skin-card.market-listing .sticker-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skin-card.market-listing .sticker-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.5rem;
    color: #666;
}

.skin-card.market-listing .sticker-value {
    font-size: 0.55rem;
    color: #4ade80;
    font-weight: 600;
}

.skin-card.market-listing .listing-price {
    margin-top: 0.4rem;
}

.skin-card.market-listing .price-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4ade80;
}

/* Market filters row */
.filter-row.market-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.float-range-filter,
.price-filter {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.float-range-filter label,
.price-filter label {
    font-size: 0.75rem;
    color: #888;
}

.filter-input-small {
    width: 60px;
    padding: 0.3rem 0.4rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    color: #e5e5e5;
    font-size: 0.75rem;
}

.filter-input-small:focus {
    outline: none;
    border-color: #4b69ff;
}

.checkbox-filter {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #888;
    cursor: pointer;
}

.checkbox-filter input[type="checkbox"] {
    cursor: pointer;
}

.empty-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

/* ======================================
   FLOAT INPUT & NORMALIZATION (Slice 4)
   ====================================== */

.float-input-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.float-input {
    width: 70px;
    padding: 0.2rem 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
}

.float-input:focus {
    outline: none;
    border-color: #4b69ff;
}

.float-input::-webkit-inner-spin-button,
.float-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.float-range {
    font-size: 0.6rem;
    color: #666;
}

.adjusted-float-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.15rem;
}

.adjusted-label {
    font-size: 0.65rem;
    color: #888;
}

.adjusted-value {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.float-green {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
}

.float-yellow {
    color: #facc15;
    background: rgba(250, 204, 21, 0.15);
}

.float-orange {
    color: #fb923c;
    background: rgba(251, 146, 60, 0.15);
}

.float-red {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

/* Update slot content layout for float input */
.input-slot.filled .slot-content {
    cursor: default;
}

.input-slot.filled .slot-image,
.input-slot.filled .slot-name {
    cursor: pointer;
}

.input-slot.filled .slot-image:hover {
    opacity: 0.8;
}

/* ======================================
   OUTCOME PREDICTION (Slice 5)
   ====================================== */

.outcomes-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.outcomes-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.outcomes-empty p {
    margin-bottom: 0.5rem;
}

.outcomes-hint {
    font-size: 0.85rem;
    color: #666;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.outcome-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.outcome-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Rarity borders for outcome cards */
.outcome-card.rarity-1 { border-color: var(--rarity-1); }
.outcome-card.rarity-2 { border-color: var(--rarity-2); }
.outcome-card.rarity-3 { border-color: var(--rarity-3); }
.outcome-card.rarity-4 { border-color: var(--rarity-4); }
.outcome-card.rarity-5 { border-color: var(--rarity-5); }
.outcome-card.rarity-6 { border-color: var(--rarity-6); }
.outcome-card.rarity-7 { border-color: var(--rarity-7); }
.outcome-card.rarity-8 { border-color: var(--rarity-8); }

.outcome-image {
    width: 100%;
    height: 80px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.outcome-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.outcome-weapon {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.outcome-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.outcome-wear {
    font-size: 0.65rem;
    color: #888;
}

.outcome-stattrak {
    font-size: 0.6rem;
    color: #cf6a32;
    text-transform: uppercase;
    font-weight: 600;
}

.outcome-collection {
    font-size: 0.6rem;
    color: #666;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.outcome-price {
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 600;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .outcomes-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

/* ======================================
   PROBABILITY DISPLAY (Slice 6)
   ====================================== */

.outcome-card {
    position: relative;
}

.outcome-probability-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.8);
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    z-index: 1;
}

/* ======================================
   OUTPUT FLOAT PREDICTION (Slice 7)
   ====================================== */

.outcome-predicted {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.25rem 0;
}

.predicted-wear {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
}

.predicted-float {
    font-size: 0.65rem;
    color: #888;
    font-family: monospace;
}

/* Wear condition colors */
.wear-fn {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.wear-mw {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
}

.wear-ft {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.wear-ww {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.wear-bs {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

/* ======================================
   PRICE & PROFIT DISPLAY (Slice 8)
   ====================================== */

.financial-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    margin-top: auto;
}

.financial-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
}

.financial-item.profit {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 600;
}

.financial-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.financial-value {
    font-size: 0.9rem;
    font-weight: 500;
}

.financial-value.positive {
    color: #4ade80;
}

.financial-value.negative {
    color: #f87171;
}

.financial-value.neutral {
    color: var(--text-secondary);
}

/* ======================================
   MODE TOGGLE (Calculator vs Reverse)
   ====================================== */

.calculator-mode-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mode-toggle-container {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.mode-toggle-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mode-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.mode-toggle-btn.active {
    background: var(--accent);
    color: white;
}

/* ======================================
   REVERSE CALCULATOR (Slice 12)
   ====================================== */

.reverse-calculator {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reverse-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.reverse-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.target-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.target-skin-selector {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
}

.select-target-btn {
    width: 100%;
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: transparent;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.select-target-btn:hover {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.1);
}

.select-target-btn .btn-icon {
    font-size: 2rem;
}

.selected-target {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.target-image {
    width: 100px;
    height: 75px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
}

.target-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.target-weapon {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.target-name {
    font-size: 1rem;
    font-weight: 600;
}

.target-rarity {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
}

.target-float-range {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.change-target-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.change-target-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.desired-float-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.desired-float-input label {
    font-weight: 500;
    white-space: nowrap;
}

.desired-float-input .float-input {
    width: 120px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: monospace;
}

.wear-preview {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.calculate-btn {
    padding: 0.6rem 1.5rem;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: auto;
}

.calculate-btn:hover:not(:disabled) {
    background: var(--accent-hover);
}

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

/* Reverse Results */
.reverse-results {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.results-header h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

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

.summary-item strong {
    color: var(--text-primary);
}

.recommended-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.input-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.input-image {
    width: 100%;
    height: 70px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.input-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
}

.input-weapon {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.input-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.input-wear {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.input-float-recommendation {
    margin-top: 0.5rem;
    padding: 0.4rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.rec-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.rec-value {
    font-size: 0.85rem;
    font-family: monospace;
    font-weight: 600;
}

.rec-value.float-green { color: #4ade80; }
.rec-value.float-yellow { color: #facc15; }
.rec-value.float-orange { color: #fb923c; }
.rec-value.float-red { color: #f87171; }

.input-price {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4ade80;
}

.no-inputs-found {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.no-inputs-found .hint {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Target Skin Selector Modal */
.target-skin-selector .modal-container {
    max-width: 900px;
}

.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.skin-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skin-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.1);
}

.skin-image {
    width: 100%;
    height: 60px;
    object-fit: contain;
}

.skin-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-align: center;
    margin-top: 0.3rem;
}

.skin-weapon {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.skin-name {
    font-size: 0.75rem;
    font-weight: 500;
}

.skin-wear {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.skin-stattrak {
    font-size: 0.6rem;
    color: #cf6a32;
    text-transform: uppercase;
}

.skin-price {
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 500;
}

/* ======================================
   TRADE-UP ACTIONS (Slice 13)
   ====================================== */

.tradeup-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.save-btn:hover:not(:disabled) {
    background: var(--accent-hover);
}

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

.history-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.history-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.save-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    margin: 0.5rem 1rem 1rem;
}

.save-message.success {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.save-message.error {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

/* ======================================
   TRADE-UP HISTORY PAGE (Slice 13)
   ====================================== */

.tradeup-history-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tradeup-history-page .page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

.loading-state,
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-hint {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.empty-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.empty-cta:hover {
    background: var(--accent-hover);
}

.saved-tradeups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.saved-tradeup-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.saved-tradeup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.saved-tradeup-card .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.preview-image {
    width: 60px;
    height: 45px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.preview-placeholder {
    width: 60px;
    height: 45px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.card-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tradeup-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.tradeup-rarity {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    width: fit-content;
}

.stattrak-badge {
    font-size: 0.7rem;
    color: #cf6a32;
    text-transform: uppercase;
}

.card-body {
    padding: 1rem;
}

.card-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.85rem;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

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

.load-btn:hover {
    background: var(--accent-hover);
}

.delete-btn {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.delete-btn:hover {
    background: rgba(248, 113, 113, 0.3);
}
