/* ═══════════════════════════════════════════════════════════════════════════════
   PRIME ROYALE - MARKETPLACE TACTICAL UI v7.2
   Complete CSS: JS class names + Document 3 tactical UI styles
   ═══════════════════════════════════════════════════════════════════════════════ */

/* --- PROFESSIONAL TACTICAL THEME (Consistent) --- */
:root {
    --bg-dark: #050814;
    --bg-panel: rgba(10, 20, 40, 0.7);
    --accent-blue: #00aaff;
    --accent-gold: #E5B80B;
    --text-primary: #ffffff;
    --text-secondary: #8aa4d4;
    --gold-gradient: linear-gradient(to bottom, #f7e379, #E5B80B, #b48811);
}

button {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Audiowide', sans-serif;
}

input, select {
    font-family: 'Roboto Mono', monospace;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION 1: MARKET SCREEN (Firebase Enhanced JS Classes)
   ═══════════════════════════════════════════════════════════════════════════════ */

.market-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-dark);
    font-family: 'Roboto Mono', monospace;
}

/* Background Effects */
.network-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3CradialGradient id='grad1' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' style='stop-color:%2300aaff;stop-opacity:0.15' /%3E%3Cstop offset='100%25' style='stop-opacity:0' /%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grad1)'/%3E%3Cg stroke='%2300aaff' stroke-width='0.5' fill='none' opacity='0.1'%3E%3Cpath d='M100 0 L100 200 M0 100 L200 100'/%3E%3Ccircle cx='100' cy='100' r='50'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 300px 300px;
    z-index: 1;
    animation: bg-pan 30s linear infinite;
    pointer-events: none;
}

@keyframes bg-pan {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.3) 0px, rgba(0,0,0,0.3) 1px, transparent 1px, transparent 4px);
    pointer-events: none;
    z-index: 3;
    opacity: 0.5;
}

/* --- HEADER --- */
.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 4px solid var(--accent-gold);
    position: relative;
    z-index: 2;
}

.back-btn {
    background: transparent;
    color: var(--accent-blue);
    font-family: 'Audiowide', sans-serif;
    font-size: 14px;
    padding: 10px 20px;
    border: 2px solid var(--accent-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.back-btn:hover {
    background: rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

.market-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 28px;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

.market-trend-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.prime-display-market {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-gold);
    padding: 10px 25px;
    font-weight: bold;
    font-size: 18px;
    color: var(--accent-gold);
    border-radius: 8px;
}

/* --- NAVIGATION --- */
.market-nav {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.market-nav-btn {
    background: transparent;
    color: var(--accent-blue);
    padding: 15px 25px;
    font-size: 14px;
    font-family: 'Audiowide', sans-serif;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-nav-btn:hover,
.market-nav-btn.active {
    color: white;
    background: rgba(0, 170, 255, 0.1);
    border-bottom-color: var(--accent-blue);
    text-shadow: 0 0 5px var(--accent-blue);
}

.nav-badge {
    background: var(--accent-gold);
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.refresh-btn-market {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
    font-size: 12px;
    transition: all 0.3s ease;
}

.refresh-btn-market:hover {
    background: rgba(0, 170, 255, 0.2);
}

/* --- FILTERS --- */
.market-filters {
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
    position: relative;
    z-index: 2;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
}

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

.filter-group-market {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label-market {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: bold;
    min-width: 60px;
}

.filter-btn-market {
    background: rgba(0, 0, 0, 0.5);
    color: var(--accent-blue);
    padding: 8px 14px;
    font-size: 11px;
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Roboto Mono', monospace;
}

.filter-btn-market:hover,
.filter-btn-market.active {
    background: rgba(0, 170, 255, 0.2);
    border-color: var(--accent-blue);
    color: white;
}

/* Rarity Color Variants */
.filter-btn-market.legendary.active {
    background: rgba(0, 170, 255, 0.3);
    border-color: #00aaff;
    color: #00aaff;
}

.filter-btn-market.gold.active {
    background: rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
    color: #ffd700;
}

.filter-btn-market.silver.active {
    background: rgba(192, 192, 192, 0.3);
    border-color: #c0c0c0;
    color: #c0c0c0;
}

.filter-btn-market.bronze.active {
    background: rgba(205, 127, 50, 0.3);
    border-color: #cd7f32;
    color: #cd7f32;
}

.search-input-market {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-blue);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    min-width: 200px;
}

.search-input-market::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.compare-btn-market {
    background: rgba(229, 184, 11, 0.2);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.compare-btn-market:hover {
    background: rgba(229, 184, 11, 0.4);
}

/* --- STATS BAR --- */
.market-stats-bar {
    display: flex;
    gap: 25px;
    padding: 10px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(0, 170, 255, 0.15);
}

.stat-item-market {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-item-market span:last-child {
    color: var(--text-primary);
    font-weight: bold;
}

/* --- CONTENT AREA --- */
.market-content {
    flex: 1;
    padding: 20px 25px;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

/* --- CARD GRID --- */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* --- LISTING CARD --- */
.market-listing-card {
    background: linear-gradient(145deg, rgba(30, 40, 80, 0.9), rgba(15, 25, 50, 0.95));
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(100, 150, 255, 0.2);
    cursor: pointer;
}

.market-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 100, 200, 0.3);
}

/* Rarity Border Colors */
.market-listing-card.legendary {
    border-color: #00aaff;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.3);
}

.market-listing-card.gold {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.market-listing-card.silver {
    border-color: #c0c0c0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.2);
}

.market-listing-card.bronze {
    border-color: #cd7f32;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.2);
}

.listing-card-visual {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(100, 150, 200, 0.1) 0%, transparent 100%);
    min-height: 150px;
}

.listing-card-visual img {
    max-width: 120px;
    max-height: 160px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.listing-price-info {
    padding: 15px 20px;
    background: rgba(20, 30, 60, 0.8);
    border-top: 1px solid rgba(100, 150, 255, 0.15);
}

.suggested-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

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

.price-value {
    font-weight: bold;
    color: var(--text-primary);
}

.price-value.bid {
    color: var(--accent-blue);
}

.price-value.bin {
    color: var(--accent-gold);
}

/* Value Badge */
.value-badge-market {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.value-badge-market.good {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.value-badge-market.fair {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.value-badge-market.bad {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Sold Badge */
.sold-badge {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Audiowide', sans-serif;
}

/* --- ACTION BUTTONS --- */
.listing-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn-market {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Audiowide', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.action-btn-market.list {
    background: var(--gold-gradient);
    color: #000;
    font-weight: bold;
}

.action-btn-market.list:hover {
    box-shadow: 0 4px 15px rgba(229, 184, 11, 0.5);
}

.action-btn-market.buy {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-weight: bold;
}

.action-btn-market.buy:hover {
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.5);
}

.action-btn-market.cancel {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.action-btn-market.cancel:hover {
    background: rgba(239, 68, 68, 0.4);
}

.action-btn-market.claim {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-weight: bold;
}

.action-btn-market.claim:hover {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

/* --- EMPTY STATE --- */
.empty-market {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* --- MODALS --- */
.market-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.market-modal > div {
    background: linear-gradient(145deg, rgba(30, 40, 80, 0.98), rgba(15, 25, 50, 0.99));
    border: 2px solid var(--accent-blue);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-card-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-card-preview img {
    max-width: 150px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.input-group-market {
    margin-bottom: 15px;
}

.input-group-market label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 8px;
}

.price-input-market {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-blue);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto Mono', monospace;
    box-sizing: border-box;
}

.price-input-market:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(229, 184, 11, 0.3);
}

.duration-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.duration-buttons button {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Audiowide', sans-serif;
    font-size: 12px;
    transition: all 0.3s ease;
}

.duration-buttons button:hover,
.duration-buttons button.active {
    background: rgba(0, 170, 255, 0.2);
    color: white;
}

.modal-confirm-btn {
    width: 100%;
    padding: 15px;
    background: var(--gold-gradient);
    color: #000;
    border: none;
    border-radius: 10px;
    font-family: 'Audiowide', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.modal-confirm-btn:hover {
    box-shadow: 0 6px 25px rgba(229, 184, 11, 0.5);
}

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

.modal-close-btn,
.modal-clear-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    font-family: 'Audiowide', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover,
.modal-clear-btn:hover {
    background: rgba(0, 170, 255, 0.2);
}

/* --- COMPARE MODAL --- */
.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.compare-card-item {
    background: rgba(30, 40, 80, 0.9);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    position: relative;
}

.compare-card-item img {
    max-width: 100px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.remove-compare-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

.compare-stats {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.bid-card-name {
    font-family: 'Audiowide', sans-serif;
    font-size: 14px;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

/* --- TOAST NOTIFICATION --- */
.market-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-family: 'Audiowide', sans-serif;
    font-size: 14px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: toastSlide 0.3s ease-out;
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION 2: TACTICAL UI COMPONENTS (Document 3 Styles)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* --- LAYOUT & ATMOSPHERE (Consistent) --- */
.main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.header, .content-wrapper, .footer-nav {
    position: relative;
    z-index: 2;
}

/* --- HEADER (Consistent) --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    background: #010101;
}

.logo-container { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.logo-text {
    font-family: 'Audiowide', sans-serif;
    font-size: 28px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.return-btn {
    background: transparent;
    color: var(--accent-blue);
    font-family: 'Audiowide', sans-serif;
    font-size: 18px;
    padding: 12px 30px;
    border: 2px solid var(--accent-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

.return-btn:hover {
    background: rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

/* --- CONTENT WRAPPER --- */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- STATS BAR (Consistent) --- */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 4px solid var(--accent-gold);
}

.marketplace-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 28px;
    color: var(--text-primary);
}

/* Stat Item (Glassmorphism) */
.stats-container { 
    display: flex; 
    gap: 20px; 
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 20px;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border: 1px solid;
    font-weight: bold;
    font-size: 16px;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
}

.stat-item.gold { 
    border-color: var(--accent-gold); 
    color: var(--accent-gold); 
}

.stat-item.blue { 
    border-color: var(--accent-blue); 
    color: var(--accent-blue); 
}

/* --- SUB NAVIGATION TABS --- */
.sub-nav-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
}

.tabs-left {
    display: flex;
}

/* Tab Button Style */
.cyber-tab-btn {
    background: transparent;
    color: var(--accent-blue);
    padding: 15px 30px;
    font-size: 16px;
    border-bottom: 3px solid transparent;
}

.cyber-tab-btn.active, .cyber-tab-btn:hover {
    color: white;
    background: rgba(0, 170, 255, 0.1);
    border-bottom-color: var(--accent-blue);
    text-shadow: 0 0 5px var(--accent-blue);
}

/* --- MAIN CONTENT AREA (Filters + Grid) --- */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Glass Panel Base Style */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 170, 255, 0.3);
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 20px;
    color: var(--accent-blue);
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
}

.panel-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* Left Panel: Filters */
.panel-filters {
    flex: 0 0 280px;
}

/* Right Panel: Listings */
.panel-listings {
    flex: 1;
}

/* --- FILTERS (Left) --- */
.filter-group-title {
    color: var(--accent-gold);
    margin-bottom: 10px;
    margin-top: 20px;
    font-weight: bold;
}

/* Cyber Toggle Button Style (for Filters) */
.cyber-toggle-btn {
    background: rgba(0, 0, 0, 0.5);
    color: var(--accent-blue);
    padding: 10px 15px 10px 45px;
    font-size: 16px;
    position: relative;
    border: 1px solid var(--accent-blue);
    text-align: left;
    width: 100%;
    margin-bottom: 10px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.cyber-toggle-btn::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #333;
    border: 1px solid var(--accent-blue);
}

.cyber-toggle-btn.active {
    background: rgba(0, 170, 255, 0.2);
    color: white;
}

.cyber-toggle-btn.active::before {
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Duration Buttons (for listing form) */
.duration-btn {
    background: rgba(0, 170, 255, 0.1);
    color: var(--accent-blue);
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Audiowide', sans-serif;
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    flex: 1;
}

.duration-btn:hover {
    background: rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

.duration-btn.active {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #000;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* Cyber Input Style */
.cyber-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-blue);
    color: white;
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* --- LISTINGS (Right) --- */
.search-sort-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.search-input {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--accent-blue);
    color: white;
    padding: 12px;
    flex: 1;
}

.sort-select {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 12px;
    font-family: 'Audiowide', sans-serif;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* --- LISTING CARD COMPONENT --- */
.listing-card {
    background: linear-gradient(145deg, rgba(30, 40, 80, 0.9), rgba(15, 25, 50, 0.95));
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(100, 150, 255, 0.2);
    position: relative;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 100, 200, 0.3);
}

.listing-card-preview {
    padding: 20px;
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, rgba(100, 150, 200, 0.1) 0%, transparent 100%);
}

.mini-card {
    width: 120px;
    height: 160px;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.mini-card-level {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent-gold);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
}

.mini-card-art {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.mini-card-info {
    background: rgba(0, 0, 0, 0.85);
    padding: 8px 6px;
    text-align: center;
}

.mini-card-name {
    font-family: 'Audiowide', sans-serif;
    font-size: 9px;
    color: var(--accent-blue);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-card-rarity {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Listing Details Section */
.listing-details {
    padding: 15px 20px;
    background: rgba(20, 30, 60, 0.8);
    border-top: 1px solid rgba(100, 150, 255, 0.15);
}

.listing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

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

.listing-value {
    font-weight: bold;
    color: var(--text-primary);
}

.listing-value.gold {
    color: var(--accent-gold);
}

.listing-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-time::before {
    content: '⏱️';
    font-size: 12px;
}

/* Fair Price Indicator */
.fair-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.fair-indicator.fair {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.fair-indicator.fair::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #22c55e;
    color: #000;
    border-radius: 4px;
    font-size: 11px;
}

.fair-indicator.unfair {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.fair-indicator.unfair::before {
    content: '✗';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
}

/* Action Buttons (Document 3 Style) */
.action-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    flex-shrink: 0;
}

.action-btn-icon:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

.action-btn-bid {
    flex: 1;
    height: 44px;
    border-radius: 10px;
    background: rgba(30, 40, 70, 0.8);
    color: white;
    font-family: 'Audiowide', sans-serif;
    font-size: 13px;
    border: 1px solid rgba(100, 150, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn-bid:hover {
    background: rgba(50, 70, 120, 0.9);
    border-color: var(--accent-blue);
}

.action-btn-buy {
    flex: 1;
    height: 44px;
    border-radius: 10px;
    background: var(--gold-gradient);
    color: #000;
    font-family: 'Audiowide', sans-serif;
    font-size: 13px;
    font-weight: bold;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(229, 184, 11, 0.4);
}

.action-btn-buy:hover {
    box-shadow: 0 6px 25px rgba(229, 184, 11, 0.7);
}

.action-btn-buy::before {
    content: '⬇';
    font-size: 12px;
}

/* --- FOOTER NAVIGATION (Consistent) --- */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.7);
    border-top: 2px solid var(--accent-blue);
}

/* Cyber Button Style (Consistent) */
.cyber-btn {
    background: transparent;
    color: var(--accent-blue);
    padding: 12px 30px;
    font-size: 18px;
    position: relative;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    border-top: 2px solid var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    border-right: 2px solid var(--accent-blue);
    min-width: 150px;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    border-left: 2px solid var(--accent-blue);
}

.cyber-btn:hover, .cyber-btn.active {
    background: rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION 3: WATCHLIST STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

.watchlist-container {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.watchlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.watchlist-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 24px;
    color: var(--accent-blue);
}

.watchlist-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.watchlist-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(30, 40, 80, 0.9), rgba(15, 25, 50, 0.95));
    border-radius: 12px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.watchlist-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 5px 20px rgba(0, 100, 200, 0.3);
}

.watchlist-card-mini {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid;
    flex-shrink: 0;
}

.watchlist-card-art {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.watchlist-card-name {
    background: rgba(0, 0, 0, 0.85);
    padding: 4px;
    text-align: center;
    font-size: 8px;
    font-family: 'Audiowide', sans-serif;
    color: var(--accent-blue);
}

.watchlist-info {
    flex: 1;
}

.watchlist-info-name {
    font-family: 'Audiowide', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.watchlist-info-rarity {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.watchlist-info-row {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

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

.watchlist-info-value {
    color: var(--accent-gold);
    font-weight: bold;
}

.watchlist-price-change {
    text-align: right;
    min-width: 120px;
}

.watchlist-current-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.price-change {
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.price-change.up {
    color: #22c55e;
}

.price-change.down {
    color: #ef4444;
}

.watchlist-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.watchlist-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Audiowide', sans-serif;
    font-size: 12px;
    min-width: 100px;
}

.watchlist-btn.buy {
    background: var(--gold-gradient);
    color: #000;
    font-weight: bold;
}

.watchlist-btn.remove {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION 4: NOTIFICATIONS STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

.notifications-container {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.notifications-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 24px;
    color: var(--accent-blue);
}

.mark-all-read {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
}

.mark-all-read:hover {
    background: rgba(0, 170, 255, 0.2);
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(30, 40, 80, 0.9), rgba(15, 25, 50, 0.95));
    border-radius: 12px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.notification-item.unread {
    border-left: 4px solid var(--accent-blue);
    background: linear-gradient(145deg, rgba(40, 50, 100, 0.9), rgba(20, 30, 60, 0.95));
}

.notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.notification-icon.win {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(22, 163, 74, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.notification-icon.outbid {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.2));
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.notification-icon.price-drop {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.notification-icon.sold {
    background: linear-gradient(135deg, rgba(229, 184, 11, 0.3), rgba(180, 136, 17, 0.2));
    border: 1px solid rgba(229, 184, 11, 0.5);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.notification-time {
    font-size: 11px;
    color: rgba(138, 164, 212, 0.6);
}

.notification-action {
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Audiowide', sans-serif;
    font-size: 11px;
    background: rgba(0, 170, 255, 0.2);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.notification-action:hover {
    background: rgba(0, 170, 255, 0.4);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-state-subtext {
    font-size: 14px;
    opacity: 0.7;
}

.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-family: 'Roboto Mono', monospace;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION 5: MY COLLECTION STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

.collection-container {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.collection-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 24px;
    color: var(--accent-blue);
}

.collection-stats {
    display: flex;
    gap: 30px;
}

.collection-stat {
    text-align: center;
}

.collection-stat-value {
    font-family: 'Audiowide', sans-serif;
    font-size: 20px;
    color: var(--accent-gold);
}

.collection-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.collection-card {
    background: linear-gradient(145deg, rgba(30, 40, 80, 0.9), rgba(15, 25, 50, 0.95));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(100, 150, 255, 0.2);
    transition: all 0.3s ease;
}

.collection-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 100, 200, 0.3);
}

.collection-card.listed {
    border-color: var(--accent-gold);
}

.collection-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
}

.collection-card-mini {
    width: 70px;
    height: 90px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid;
    flex-shrink: 0;
}

.collection-card-art {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.collection-card-label {
    background: rgba(0, 0, 0, 0.85);
    padding: 5px;
    text-align: center;
    font-size: 8px;
    font-family: 'Audiowide', sans-serif;
    color: var(--accent-blue);
}

.collection-card-info {
    flex: 1;
}

.collection-card-name {
    font-family: 'Audiowide', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.collection-card-rarity {
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.collection-card-level {
    font-size: 12px;
    color: var(--text-secondary);
}

.listed-badge {
    background: var(--accent-gold);
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    font-family: 'Audiowide', sans-serif;
}

.collection-card-body {
    padding: 15px;
}

.collection-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

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

.collection-price-value {
    font-weight: bold;
}

.collection-price-value.profit {
    color: #22c55e;
}

.collection-price-value.loss {
    color: #ef4444;
}

.collection-listed-info {
    background: rgba(229, 184, 11, 0.1);
    border: 1px solid rgba(229, 184, 11, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.collection-listed-price {
    font-family: 'Audiowide', sans-serif;
    font-size: 16px;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.collection-listed-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.collection-actions {
    display: flex;
    gap: 10px;
}

.collection-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Audiowide', sans-serif;
    font-size: 12px;
    text-align: center;
}

.collection-btn.sell {
    background: var(--gold-gradient);
    color: #000;
    font-weight: bold;
}

.collection-btn.sell:hover {
    box-shadow: 0 4px 15px rgba(229, 184, 11, 0.5);
}

.collection-btn.edit {
    background: rgba(0, 170, 255, 0.2);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.collection-btn.cancel {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION 6: SCROLLBAR & ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Scrollbar */
.market-content::-webkit-scrollbar,
.panel-content::-webkit-scrollbar,
.watchlist-container::-webkit-scrollbar,
.notifications-container::-webkit-scrollbar,
.collection-container::-webkit-scrollbar {
    width: 8px;
}

.market-content::-webkit-scrollbar-track,
.panel-content::-webkit-scrollbar-track,
.watchlist-container::-webkit-scrollbar-track,
.notifications-container::-webkit-scrollbar-track,
.collection-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.market-content::-webkit-scrollbar-thumb,
.panel-content::-webkit-scrollbar-thumb,
.watchlist-container::-webkit-scrollbar-thumb,
.notifications-container::-webkit-scrollbar-thumb,
.collection-container::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

.market-content::-webkit-scrollbar-thumb:hover,
.panel-content::-webkit-scrollbar-thumb:hover,
.watchlist-container::-webkit-scrollbar-thumb:hover,
.notifications-container::-webkit-scrollbar-thumb:hover,
.collection-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.market-listing-card,
.listing-card,
.watchlist-item,
.notification-item,
.collection-card {
    animation: fadeIn 0.4s ease-out forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION 7: RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .market-header,
    .stats-bar {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group-market {
        width: 100%;
    }
    
    .market-stats-bar {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .market-header,
    .stats-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .market-title,
    .marketplace-title {
        font-size: 22px;
    }
    
    .market-nav,
    .tabs-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .market-nav-btn,
    .cyber-tab-btn {
        padding: 10px 15px;
        font-size: 11px;
    }
    
    .market-grid,
    .card-grid,
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input-market,
    .search-input {
        width: 100%;
        min-width: auto;
    }
    
    .market-filters {
        padding: 10px 15px;
    }
    
    .filter-btn-market {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cyber-btn {
        padding: 8px 15px;
        font-size: 14px;
        min-width: 100px;
    }
    
    .watchlist-item {
        flex-direction: column;
        text-align: center;
    }
    
    .watchlist-price-change {
        text-align: center;
    }
    
    .watchlist-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .collection-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .collection-stats {
        justify-content: center;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .panel-filters {
        flex: none;
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .market-header {
        padding: 10px 15px;
    }
    
    .market-title {
        font-size: 18px;
    }
    
    .prime-display-market {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .market-content {
        padding: 15px;
    }
    
    .listing-card-visual {
        padding: 15px;
        min-height: 120px;
    }
    
    .listing-card-visual img {
        max-width: 100px;
    }
    
    .watchlist-container,
    .notifications-container,
    .collection-container {
        padding: 15px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TACTICAL UI ALIASES (for market-screen-tactical class names)
   ═══════════════════════════════════════════════════════════════════════════════ */

.market-screen-tactical {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-dark);
    font-family: "Roboto Mono", monospace;
}

.market-network-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3CradialGradient id='grad1' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' style='stop-color:%2300aaff;stop-opacity:0.15' /%3E%3Cstop offset='100%25' style='stop-opacity:0' /%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grad1)'/%3E%3Cg stroke='%2300aaff' stroke-width='0.5' fill='none' opacity='0.1'%3E%3Cpath d='M100 0 L100 200 M0 100 L200 100'/%3E%3Ccircle cx='100' cy='100' r='50'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 300px 300px;
    z-index: 0;
    animation: bg-pan 30s linear infinite;
    pointer-events: none;
}

.market-scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.3) 0px, rgba(0,0,0,0.3) 1px, transparent 1px, transparent 4px);
    pointer-events: none;
    z-index: 5;
    opacity: 0.5;
}

.market-header-tactical {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #010101;
    border-bottom: 4px solid var(--accent-gold);
    position: relative;
    z-index: 10;
}

.market-back-btn-tactical {
    background: transparent !important;
    color: var(--accent-blue) !important;
    font-family: "Audiowide", sans-serif !important;
    font-size: 14px !important;
    padding: 12px 25px !important;
    border: 2px solid var(--accent-blue) !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.market-back-btn-tactical:hover {
    background: rgba(0, 170, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

.market-title-tactical {
    font-family: "Audiowide", sans-serif;
    font-size: 32px;
    margin: 0;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

.market-trend-tactical {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Audiowide", sans-serif;
    font-size: 13px;
}

.prime-display-tactical {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--bg-panel);
    border: 2px solid var(--accent-gold);
    font-family: "Audiowide", sans-serif;
    font-size: 18px;
    color: var(--accent-gold);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
}

.market-tabs-tactical {
    display: flex;
    gap: 0;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
}

.market-tab-tactical {
    padding: 14px 35px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: "Audiowide", sans-serif;
    border: 1px solid rgba(100, 130, 180, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.market-tab-tactical:first-child {
    border-radius: 8px 0 0 8px;
}

.market-tab-tactical:nth-child(3) {
    border-radius: 0 8px 8px 0;
}

.market-tab-tactical:hover {
    background: rgba(0, 170, 255, 0.1);
    color: var(--accent-blue);
}

.market-tab-tactical.active {
    background: linear-gradient(180deg, rgba(0, 170, 255, 0.3) 0%, rgba(0, 100, 180, 0.4) 100%);
    color: white;
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.refresh-btn-tactical {
    padding: 14px 20px;
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    margin-left: auto;
    cursor: pointer;
    transition: all 0.3s;
}

.refresh-btn-tactical:hover {
    background: rgba(0, 170, 255, 0.2);
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   TACTICAL UI v7.5 ADDITIONS
   Activity Panel + Notification Dropdown + Card Detail Modal
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Activity Panel */
.panel-activity {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
}

/* Notification Dropdown Styles */
.notification-wrapper {
    position: relative;
}

.notification-btn {
    transition: all 0.3s;
}

.notification-btn:hover {
    background: rgba(0, 170, 255, 0.2);
}

/* Responsive: Hide activity panel on tablets */
@media (max-width: 1200px) {
    .panel-activity {
        display: none !important;
    }
}

/* Responsive: Stack layout on mobile */
@media (max-width: 768px) {
    .market-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .market-tabs {
        flex-wrap: wrap;
    }
    
    .panel-filters {
        width: 100% !important;
        max-height: 200px;
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 170, 255, 0.2);
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr !important;
    }
    
    .panel-filters {
        display: none;
    }
    
    .market-title {
        font-size: 18px !important;
    }
}
