[v-cloak] {
    display: none !important;
}

/* ZonePulse Auction Tracker - Senior Modern Redesign */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Main Background & Surfaces */
    --color-bg: #0f1418;
    --color-surface: #161d24;
    --color-surface-panel: #161d24;
    --color-surface-raised: #1d2630;
    --color-surface-muted: #232f3c;
    --color-surface-hover: #263342;
    
    /* Borders */
    --color-border: #2a3340;
    --color-border-subtle: #1f2832;
    --color-border-hover: #3b4759;
    
    /* Text Hierarchy (WCAG AA Compliant) */
    --color-text: #e4ecf2;
    --color-text-muted: #94a3b3;
    --color-text-dim: #94a3b3;
    --color-text-disabled: #64748b;
    
    /* Accents: One primary accent (Blue) */
    --color-accent: #5b8ae6;
    --color-accent-hover: #4878d6;
    --color-accent-border: #5b8ae6;
    
    /* Gold is strictly reserved for ZonePulse Logo & Premium badge */
    --color-gold: #d4a24c;
    --color-gold-hover: #e5b35c;
    --color-accent-2: #d4a24c;
    
    /* Profit & Cost: Green and Red ONLY */
    --color-profit: #3ad07a;
    --color-profit-bg: rgba(58, 208, 122, 0.12);
    --color-profit-border: rgba(58, 208, 122, 0.3);
    
    --color-cost: #ff6361;
    --color-cost-bg: rgba(255, 99, 97, 0.12);
    --color-cost-border: rgba(255, 99, 97, 0.3);
    
    --color-warning: #d4a24c;
    --color-success: #3ad07a;

    /* Stalcraft Canonical Rarity Colors */
    --rarity-common: #e6e9ec;
    --rarity-uncommon: #3ad07a;
    --rarity-special: #4ab8e6;
    --rarity-rare: #e64ac9;
    --rarity-exceptional: #ff7b6b;
    --rarity-legendary: #f0c84a;
    --rarity-unique: #f576de;

    /* Radii */
    --radius-lg: 8px;
    --radius-md: 6px;
    --radius-sm: 4px;

    /* Density Default (Large) */
    --row-py: 13px;
    --card-p: 14px 16px;
    --fs-base: 15px;
    --card-gap: 16px;
}

/* Density Levels */
html[data-density="compact"] {
    --row-py: 3px;
    --card-p: 8px 10px;
    --fs-base: 12px;
    --card-gap: 8px;
}

html[data-density="normal"] {
    --row-py: 8px;
    --card-p: 12px 14px;
    --fs-base: 13px;
    --card-gap: 12px;
}

html, html[data-density="large"] {
    --row-py: 13px;
    --card-p: 14px 16px;
    --fs-base: 15px;
    --card-gap: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", Arial, sans-serif;
    font-size: var(--fs-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mono-num {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* ================= SIDEBAR NAVIGATION ================= */
.sz-sidebar {
    width: 56px;
    transition: width 150ms ease-in-out, box-shadow 150ms ease;
}

.sz-sidebar:hover,
.sz-sidebar:focus-within {
    width: 220px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
}

.sz-sidebar .nav-label {
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
    white-space: nowrap;
}

.sz-sidebar:hover .nav-label,
.sz-sidebar:focus-within .nav-label {
    opacity: 1;
    pointer-events: auto;
}


.sz-logo-collapsed {
    transition: opacity 120ms ease;
}
.sz-logo-collapsed img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.sz-logo-expanded {
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
}
.sz-logo-expanded img {
    height: 48px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}

.sz-sidebar:hover .sz-logo-collapsed,
.sz-sidebar:focus-within .sz-logo-collapsed {
    opacity: 0;
}

.sz-sidebar:hover .sz-logo-expanded,
.sz-sidebar:focus-within .sz-logo-expanded {
    opacity: 1;
    pointer-events: auto;
}

.sz-sidebar-item {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    color: var(--color-text-muted);
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.sz-sidebar-item:hover {
    color: var(--color-text);
    background-color: var(--color-surface-hover);
}

.sz-sidebar-item.active {
    color: var(--color-accent);
    background-color: rgba(91, 138, 230, 0.12);
    border-left-color: var(--color-accent);
    font-weight: 600;
}

/* ================= CARDS & GRIDS ================= */
.sz-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
    position: relative;
    overflow: hidden;
    padding: var(--card-p);
}

.sz-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 24px rgba(0, 0, 0, 0.45);
}

.sz-card:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-accent) !important;
}

/* Rarity Bars on Top of Cards */
.rarity-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 5;
}
.rarity-bar-COMMON { background-color: var(--rarity-common); }
.rarity-bar-UNCOMMON { background-color: var(--rarity-uncommon); }
.rarity-bar-SPECIAL { background-color: var(--rarity-special); }
.rarity-bar-RARE { background-color: var(--rarity-rare); }
.rarity-bar-EXCLUSIVE { background-color: var(--rarity-exceptional); }
.rarity-bar-LEGENDARY { background-color: var(--rarity-legendary); }
.rarity-bar-UNIQUE { background-color: var(--rarity-unique); }

/* Rarity Icon Frame */
.rarity-border-COMMON { border-color: var(--rarity-common); }
.rarity-border-UNCOMMON { border-color: var(--rarity-uncommon); }
.rarity-border-SPECIAL { border-color: var(--rarity-special); }
.rarity-border-RARE { border-color: var(--rarity-rare); }
.rarity-border-EXCLUSIVE { border-color: var(--rarity-exceptional); }
.rarity-border-LEGENDARY { border-color: var(--rarity-legendary); }
.rarity-border-UNIQUE { border-color: var(--rarity-unique); }

/* Profit / Loss Badges */
.badge-profit {
    background-color: var(--color-profit-bg);
    color: var(--color-profit);
    border: 1px solid var(--color-profit-border);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-loss {
    background-color: var(--color-cost-bg);
    color: var(--color-cost);
    border: 1px solid var(--color-cost-border);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Custom inputs */
.sz-input {
    background-color: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-md);
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.sz-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
}

.sz-input::placeholder {
    color: var(--color-text-disabled);
}

.sz-select {
    background-color: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-md);
    height: 36px;
    padding: 0 32px 0 12px;
    font-size: 13px;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.sz-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Buttons */
.btn-accent {
    background: var(--color-accent);
    color: #ffffff;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-md);
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 150ms, border-color 150ms;
}

.btn-accent:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.btn-outline {
    background: var(--color-surface-raised);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: border-color 150ms, background-color 150ms, color 150ms;
}

.btn-outline:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
    color: #ffffff;
}

/* Card Container for Row View */
.sz-card-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: var(--card-gap);
    padding-bottom: 12px;
    scrollbar-color: var(--color-surface-muted) var(--color-surface);
    scrollbar-width: thin;
}

.sz-card-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.sz-card-container::-webkit-scrollbar-track {
    background: var(--color-surface-raised);
    border-radius: 4px;
}

.sz-card-container::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.sz-card-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-surface-muted);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-border);
}

/* ================= LEAFLET DARK MAP STYLES ================= */
.leaflet-popup-content-wrapper {
    background: var(--color-surface) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6) !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.leaflet-popup-content {
    margin: 0 !important;
    line-height: 1.4 !important;
}
.leaflet-popup-tip {
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
}
.leaflet-container {
    background: var(--color-bg) !important;
    font-family: inherit !important;
}
.leaflet-control-zoom a {
    background-color: var(--color-surface-raised) !important;
    color: #cbd5e1 !important;
    border-color: var(--color-border) !important;
}
.leaflet-control-zoom a:hover {
    background-color: var(--color-surface-hover) !important;
    color: #ffffff !important;
}
.leaflet-control-attribution {
    background: rgba(15, 20, 24, 0.8) !important;
    color: #64748b !important;
    font-size: 10px !important;
}
.leaflet-control-attribution a {
    color: #94a3b8 !important;
}

#modalUserMap .leaflet-tile {
    filter: brightness(0.7) invert(100%) contrast(250%) hue-rotate(200deg) saturate(0.3) brightness(80%);
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Horizontal scroll with wheel and drag */
.sz-row-scroll {
    scroll-behavior: auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    cursor: grab;
}

.sz-row-scroll:active {
    cursor: grabbing;
}

/* Live Streaming Lots Animation */
.lot-stream-enter-active {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lot-stream-leave-active {
    transition: all 0.25s ease-in;
}
.lot-stream-enter-from {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
}
.lot-stream-leave-to {
    opacity: 0;
    transform: translateY(14px);
}
