/* ==========================================================================
   WALLIEZ — SPATIAL ATELIER FENG-SHUI DESIGN SYSTEM
   Typography: SF Pro Display (Custom Font Family)
   Architecture: Left Floating Spatial Sidebar • Dynamic Command Island •
   Inverted Vitrine Cards • Flipped Panoramic Showroom Inspector
   ========================================================================== */

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYULTRALIGHTITALIC.OTF') format('opentype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYTHINITALIC.OTF') format('opentype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYLIGHTITALIC.OTF') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYLIGHTITALIC.OTF') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYMEDIUM.OTF') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYSEMIBOLDITALIC.OTF') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYMEDIUM.OTF') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYSEMIBOLDITALIC.OTF') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYBOLD.OTF') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYHEAVYITALIC.OTF') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYBOLD.OTF') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYHEAVYITALIC.OTF') format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYBOLD.OTF') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../src/fonts/sfpro/SFPRODISPLAYBLACKITALIC.OTF') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg-obsidian: #030306;
    --bg-carbon: #07070c;
    --bg-card: linear-gradient(160deg, rgba(22, 22, 34, 0.95) 0%, rgba(12, 12, 20, 0.96) 55%, rgba(7, 7, 13, 0.98) 100%);
    --bg-card-hover: linear-gradient(160deg, rgba(32, 32, 48, 0.97) 0%, rgba(18, 18, 29, 0.98) 55%, rgba(11, 11, 19, 0.99) 100%);

    --border-hairline: rgba(255, 255, 255, 0.075);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-specular: rgba(255, 255, 255, 0.28);

    --platinum-100: #ffffff;
    --platinum-200: #f4f4f6;
    --platinum-300: #a1a1aa;
    --platinum-400: #71717a;
    --platinum-gradient: linear-gradient(135deg, #ffffff 0%, #f4f4f6 48%, #d4d4d8 100%);

    /* Tactical Side Accents */
    --ct-accent: #38bdf8;
    --ct-bg: rgba(56, 189, 248, 0.13);
    --ct-border: rgba(56, 189, 248, 0.38);
    --ct-glow: rgba(56, 189, 248, 0.28);

    --t-accent: #fbbf24;
    --t-bg: rgba(251, 191, 36, 0.13);
    --t-border: rgba(251, 191, 36, 0.38);
    --t-glow: rgba(251, 191, 36, 0.28);

    --stattrak-orange: #fb923c;
    --status-online: #10b981;
    --ambient-accent: rgba(255, 255, 255, 0.065);

    /* Wear Tier Colors */
    --wear-fn: #10b981;
    --wear-mw: #06b6d4;
    --wear-ft: #eab308;
    --wear-ww: #f97316;
    --wear-bs: #ef4444;

    --text-primary: #ffffff;
    --text-secondary: #a8a8b3;
    --text-muted: #6e6e7a;

    --shadow-card:
        0 16px 36px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    --shadow-card-hover:
        0 24px 48px -12px rgba(0, 0, 0, 0.9),
        0 0 28px -8px var(--card-glow-color, rgba(255, 255, 255, 0.14)),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
    --shadow-elevated:
        0 40px 90px -16px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(255, 255, 255, 0.09),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.24);

    --font-sans: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --spring-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    background-color: var(--bg-obsidian);
}

body {
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(4, 4, 7, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* ==========================================================================
   AMBIENT CAUSTIC & GLASS BACKGROUND (ZERO-BLUR GPU COMPOSITED LAYER)
   ========================================================================== */
.bg-ambient-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 8% 12%, rgba(56, 189, 248, 0.05) 0%, transparent 42%),
        radial-gradient(circle at 92% 8%, rgba(251, 191, 36, 0.04) 0%, transparent 42%),
        radial-gradient(circle at 60% 95%, rgba(136, 71, 255, 0.04) 0%, transparent 50%);
    transform: translateZ(0);
}

.ambient-orb-1 {
    position: absolute;
    top: -320px;
    left: 58%;
    transform: translateX(-50%);
    width: 1400px;
    height: 760px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.055) 0%,
        rgba(161, 161, 170, 0.018) 42%,
        transparent 70%
    );
}

.ambient-orb-2 {
    position: absolute;
    bottom: -340px;
    right: 2%;
    width: 960px;
    height: 960px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(56, 189, 248, 0.032) 0%,
        rgba(136, 71, 255, 0.012) 42%,
        transparent 68%
    );
}

.carbon-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 60% 28%, black 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 28%, black 15%, transparent 78%);
}

/* ==========================================================================
   NEW FENG-SHUI: SPATIAL WORKSPACE (LEFT SIDEBAR DOCK + RIGHT CANVAS)
   ========================================================================== */
.spatial-workspace {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 24px;
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px 26px 40px;
    min-height: 100vh;
    align-items: start;
}

/* ==========================================================================
   LEFT FLOATING SPATIAL GLASS SIDEBAR RAIL
   ========================================================================== */
.spatial-sidebar {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 18px;
    background: linear-gradient(170deg, rgba(16, 16, 25, 0.92) 0%, rgba(8, 8, 13, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 26px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateZ(0);
    box-shadow:
        0 28px 64px -16px rgba(0, 0, 0, 0.88),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    overflow-y: auto;
    scrollbar-width: none;
}

.spatial-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-top-pod {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: inherit;
    padding: 4px 6px;
}

.brand-crest {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.26);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 20px -6px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transition: all 0.28s var(--spring-ease);
    flex-shrink: 0;
}

.brand-section:hover .brand-crest {
    transform: translateY(-1.5px) scale(1.04);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 26px -4px rgba(255, 255, 255, 0.2);
}

.brand-crest svg {
    width: 20px;
    height: 20px;
}

.brand-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.14em;
    background: linear-gradient(135deg, #ffffff 0%, #e4e4e7 60%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.05;
}

.brand-tag {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Server Telemetry Pod inside Sidebar */
.sidebar-server-pod {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 11px 13px;
    background: rgba(0, 0, 0, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 16px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.server-pod-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-online);
    box-shadow: 0 0 10px var(--status-online);
    animation: pulse-live 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.86); }
}

.server-label-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.server-ip-text {
    margin-left: auto;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    color: var(--platinum-200);
    font-size: 11.5px;
    font-weight: 600;
}

.server-pod-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.copy-badge-btn,
.connect-badge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: var(--platinum-200);
    border-radius: 9px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s var(--spring-ease);
}

.copy-badge-btn:hover,
.connect-badge-btn:hover {
    background: var(--platinum-gradient);
    border-color: #ffffff;
    color: #060609;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.22);
}

/* Sidebar Sections */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-arsenal-section {
    flex: 1;
}

.sidebar-section-label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    padding: 0 6px;
    text-transform: uppercase;
}

.sidebar-modes-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mode-pill-btn {
    width: 100%;
    justify-content: space-between !important;
    padding: 11px 14px !important;
    border-radius: 14px !important;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.095) !important;
}

.mode-pill-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.loadout-count-pill {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.cat-tab-btn.active .loadout-count-pill {
    background: #060609;
    color: #ffffff;
}

.mode-badge-gold {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(228, 174, 57, 0.18);
    border: 1px solid rgba(228, 174, 57, 0.45);
    color: #fcd34d;
}

.cat-tab-btn.active .mode-badge-gold {
    background: #060609;
    border-color: #060609;
    color: #fcd34d;
}

/* 2-Column Tactile Glass Keypad for Arsenal Categories */
.categories-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.cat-tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 13px;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.22s var(--spring-ease);
}

.cat-svg {
    width: 15px;
    height: 15px;
    opacity: 0.75;
    flex-shrink: 0;
    transition: transform 0.22s var(--spring-ease), opacity 0.22s ease;
}

.cat-tab-btn:hover {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.cat-tab-btn:hover .cat-svg {
    opacity: 1;
    transform: scale(1.08);
}

.cat-tab-btn.active {
    background: var(--platinum-gradient) !important;
    border-color: #ffffff !important;
    color: #060609 !important;
    font-weight: 800;
    box-shadow:
        0 8px 24px -4px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.cat-tab-btn.active .cat-svg {
    opacity: 1;
    stroke: #060609;
}

/* Sidebar Bottom User Profile Pod */
.sidebar-user-pod {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-card-pill {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.22s var(--spring-ease);
}

.user-card-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.22);
}

.user-avatar-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-badge {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
}

.signout-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.085);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.22s var(--spring-ease);
}

.signout-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    transform: translateY(-1px);
}

.signout-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   RIGHT SHOWROOM CANVAS & FLOATING DYNAMIC COMMAND ISLAND
   ========================================================================== */
.spatial-canvas-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.spatial-command-island {
    position: sticky;
    top: 20px;
    z-index: 95;
    padding: 12px 16px;
    background: linear-gradient(170deg, rgba(16, 16, 25, 0.92) 0%, rgba(9, 9, 15, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateZ(0);
    box-shadow:
        0 20px 44px -12px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.spatial-command-island:has(.filter-strip[style*="display: none"]) {
    display: none !important;
}

.filter-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}

.search-box:focus-within .search-icon {
    color: #ffffff;
}

.search-input {
    width: 100%;
    padding: 11px 74px 11px 44px;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 14px;
    color: #ffffff;
    font-size: 13.5px;
    outline: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
    transition: all 0.24s var(--spring-ease);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    background: rgba(14, 14, 22, 0.85);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.search-kbd {
    position: absolute;
    right: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 2px 8px;
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
}

.search-clear-btn:hover {
    background: #ffffff;
    color: #060609;
}

.toolbar-right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-pills-group {
    display: flex;
    align-items: center;
    padding: 4px;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 14px;
    gap: 3px;
}

.filter-chip {
    padding: 7px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--spring-ease);
}

.filter-chip:hover {
    color: #ffffff;
}

.filter-chip.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.filter-chip[data-team="ct"].active,
.filter-chip[data-filter="ct"].active {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0.08) 100%);
    border-color: var(--ct-border);
    color: var(--ct-accent);
}

.filter-chip[data-team="t"].active,
.filter-chip[data-filter="t"].active {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.22) 0%, rgba(251, 191, 36, 0.08) 100%);
    border-color: var(--t-border);
    color: var(--t-accent);
}

.studio-sort-select {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    color: var(--platinum-200);
    font-size: 12.5px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.studio-sort-select:hover,
.studio-sort-select:focus {
    border-color: rgba(255, 255, 255, 0.28);
}

.studio-sort-select option {
    background: #0d0d14;
    color: #ffffff;
}

/* ==========================================================================
   MAIN CONTENT & BREADCRUMB BAR
   ========================================================================== */
.studio-main-content {
    flex: 1;
    width: 100%;
    padding-bottom: 60px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 20px;
    background: linear-gradient(165deg, rgba(22, 22, 34, 0.94) 0%, rgba(12, 12, 20, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 20px;
    box-shadow:
        0 14px 34px -10px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.breadcrumb-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-to-weapons-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--platinum-gradient);
    border: 1px solid #ffffff;
    border-radius: 11px;
    color: #060609;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.22);
    transition: all 0.2s var(--spring-ease);
}

.back-to-weapons-btn svg {
    width: 14px;
    height: 14px;
    stroke: #060609;
    transition: transform 0.2s var(--spring-ease);
}

.back-to-weapons-btn:hover {
    transform: translateX(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.34);
}

.back-to-weapons-btn:hover svg {
    transform: translateX(-2px);
}

.breadcrumb-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb-title h1 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.breadcrumb-count {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 700;
    color: var(--platinum-200);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 11px;
    border-radius: 999px;
}

/* Rarity Quick-Filter Bar */
.rarity-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rarity-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--spring-ease);
}

.rarity-chip::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--r-dot, #ffffff);
    box-shadow: 0 0 8px var(--r-dot, transparent);
    display: inline-block;
}

.rarity-chip[data-rarity="all"]::before {
    display: none;
}

.rarity-chip:hover {
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.rarity-chip.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.36);
    color: #ffffff;
}

/* ==========================================================================
   LOADOUT OVERVIEW BANNER
   ========================================================================== */
.loadout-overview-banner {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 26px 30px;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.09) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(251, 191, 36, 0.09) 0%, transparent 50%),
        linear-gradient(165deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 16, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow:
        0 26px 64px -16px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 6px;
}

.loadout-banner-info h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 5px;
}

.loadout-banner-info p {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.loadout-stats-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.loadout-stat-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 20px;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    min-width: 124px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.loadout-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.loadout-stat-val {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

/* ==========================================================================
   NEW CARD FENG-SHUI: INVERTED VITRINE ARCHITECTURE
   Order 1 (Top): Title & Telemetry (.card-info-box)
   Order 2 (Center): Recessed Dark Glass Vitrine (.card-image-box)
   Order 3 (Bottom): Rarity LED & Team Badges Footer (.card-top-bar)
   ========================================================================== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
    gap: 18px;
}

.studio-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    min-height: 276px;
    cursor: pointer;
    overflow: hidden;
    contain: layout paint;
    box-shadow: var(--shadow-card);
    transition:
        transform 0.26s var(--spring-ease),
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.26s var(--spring-ease);
}

/* Cursor-Tracking Specular Glare */
.studio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        380px circle at var(--mx, 50%) var(--my, 0%),
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.025) 35%,
        transparent 70%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.22s ease;
}

.studio-card:hover::before {
    opacity: 1;
}

/* Bottom Rarity Laser Accent Line */
.studio-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-glow-color, rgba(255, 255, 255, 0.45)), transparent);
    opacity: 0.7;
    z-index: 3;
    transition: opacity 0.22s ease, left 0.26s var(--spring-ease), right 0.26s var(--spring-ease);
}

.studio-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: var(--shadow-card-hover);
}

.studio-card:hover::after {
    opacity: 1;
    left: 6%;
    right: 6%;
}

/* Pre-softened Radial Aura (Zero Gaussian Blur Pass!) */
.card-pedestal-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-glow-color, #ffffff) 0%, transparent 66%);
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.26s ease, transform 0.26s var(--spring-ease);
}

.studio-card:hover .card-pedestal-glow {
    opacity: 0.26;
    transform: translate(-50%, -50%) scale(1.16);
}

/* 1. TOP OF CARD: Title & Telemetry Header */
.card-info-box {
    order: 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 2px 2px 0;
    border-top: none;
}

.card-weapon-category-label {
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-weapon-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}

.card-subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-secondary);
}

.card-float-range {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.studio-card:hover .card-float-range {
    color: #ffffff;
}

/* 2. CENTER OF CARD: Recessed Dark Glass Vitrine Box */
.card-image-box {
    order: 2;
    position: relative;
    z-index: 2;
    height: 142px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(22, 22, 34, 0.85) 0%, rgba(4, 4, 8, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 15px;
    box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    transition: border-color 0.24s ease;
}

.studio-card:hover .card-image-box {
    border-color: rgba(255, 255, 255, 0.15);
}

.card-weapon-img {
    max-width: 88%;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.28s var(--spring-ease);
    position: relative;
    z-index: 2;
}

.studio-card:hover .card-weapon-img {
    transform: translateY(-4px) scale(1.07);
}

.card-mini-stickers {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: rgba(5, 5, 10, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    z-index: 3;
}

.card-mini-sticker-img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

/* 3. BOTTOM OF CARD: Rarity Pill & Team Badges Footer */
.card-top-bar {
    order: 3;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 2px;
}

.rarity-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--platinum-200);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rarity-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rarity-color, #a1a1aa);
    box-shadow: 0 0 8px var(--rarity-color, transparent);
}

.phase-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.equipped-indicators {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge-equipped {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-equipped.ct {
    background: var(--ct-bg);
    border: 1px solid var(--ct-border);
    color: var(--ct-accent);
    box-shadow: 0 0 12px -2px var(--ct-glow);
}

.badge-equipped.t {
    background: var(--t-bg);
    border: 1px solid var(--t-border);
    color: var(--t-accent);
    box-shadow: 0 0 12px -2px var(--t-glow);
}

.badge-equipped.st {
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.42);
    color: var(--stattrak-orange);
}

/* Empty State */
.empty-state-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 28px;
    background: linear-gradient(165deg, rgba(20, 20, 32, 0.92) 0%, rgba(10, 10, 18, 0.96) 100%);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 24px;
}

.empty-state-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.empty-state-box p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   NEW MODAL FENG-SHUI: FLIPPED ASYMMETRIC SHOWROOM INSPECTOR
   Left Column (Order 1): Precision Atelier Controls + Top Equip Dock
   Right Column (Order 2): Expansive Panoramic 2D/3D Showroom Stage
   ========================================================================== */
.studio-modal-backdrop,
.picker-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(2, 2, 5, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s var(--spring-ease);
}

.picker-modal-backdrop {
    z-index: 600;
}

.studio-modal-backdrop.open,
.picker-modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.studio-modal-card {
    position: relative;
    width: 100%;
    max-width: 1240px;
    max-height: 92vh;
    background: linear-gradient(165deg, rgba(16, 16, 25, 0.95) 0%, rgba(8, 8, 13, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    box-shadow: var(--shadow-elevated);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(18px) scale(0.975);
    transition: transform 0.34s var(--spring-ease);
}

.studio-modal-backdrop.open .studio-modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.085);
    gap: 14px;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-skin-name {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.modal-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-equipped-tags {
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--spring-ease);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Flipped Polarity: Controls on Left (520px), Panoramic Stage on Right (1fr) */
.modal-body-layout {
    display: grid;
    grid-template-columns: 520px 1fr;
    overflow-y: auto;
    max-height: calc(92vh - 75px);
}

.modal-controls-pane {
    order: 1;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.085);
}

.modal-visual-showcase {
    order: 2;
    position: relative;
    background:
        radial-gradient(circle at 50% 42%, rgba(28, 28, 44, 0.78) 0%, rgba(5, 5, 9, 0.96) 78%),
        #050509;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
    overflow: hidden;
}

.controls-bento-pair {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 10px;
}

.showcase-pedestal-halo {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--studio-rarity-glow, #ffffff) 0%, transparent 66%);
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.22;
    pointer-events: none;
}

.showcase-grid-floor {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 50% 48%, black 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 48%, black 25%, transparent 78%);
    pointer-events: none;
}

.stage-top-bar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.stage-preset-switcher,
.stage-view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(5, 5, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.stage-preset-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0 7px;
}

.stage-preset-btn,
.stage-view-btn {
    padding: 6px 13px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--spring-ease);
}

.stage-preset-btn:hover,
.stage-view-btn:hover {
    color: #ffffff;
}

.stage-preset-btn.active,
.stage-view-btn.active {
    background: var(--platinum-gradient);
    border-color: #ffffff;
    color: #060609;
    font-weight: 700;
}

.showcase-2d-stage {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.showcase-2d-stage::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 72%;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, var(--studio-rarity-glow, rgba(255, 255, 255, 0.25)) 0%, transparent 72%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    pointer-events: none;
}

.showcase-weapon-img {
    max-width: 92%;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.85));
    position: relative;
    z-index: 2;
}

.showcase-3d-stage {
    position: relative;
    z-index: 3;
    flex: 1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.three-canvas-wrap {
    width: 100%;
    height: 310px;
    cursor: grab;
}

.three-canvas-wrap:active {
    cursor: grabbing;
}

.three-status-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(5, 5, 9, 0.74);
    backdrop-filter: blur(10px);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    pointer-events: none;
}

.spinner-mini {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

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

.three-hint-pill {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--platinum-300);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    pointer-events: none;
}

.stage-telemetry-Readout {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 32px;
    margin-bottom: 8px;
}

.stattrak-led-badge {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.42);
    border-radius: 9px;
}

.stattrak-led-badge.visible {
    display: inline-flex;
}

.stattrak-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--stattrak-orange);
    box-shadow: 0 0 8px var(--stattrak-orange);
}

.stattrak-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--stattrak-orange);
    text-transform: uppercase;
}

.stattrak-digits {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 700;
    color: #fdba74;
    letter-spacing: 0.08em;
}

.nametag-brass-plaque {
    display: none;
    padding: 6px 13px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 9px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.nametag-brass-plaque.visible {
    display: inline-flex;
}

.stage-craft-strip {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.stage-craft-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    color: var(--platinum-200);
}

.stage-craft-badge img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.stage-spectrum-box {
    position: relative;
    z-index: 4;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 12px 14px;
}

.spectrum-labels-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.spectrum-caption {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.spectrum-range-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--platinum-300);
}

.spectrum-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    display: flex;
    overflow: visible;
    background: #14141d;
}

.spectrum-seg {
    height: 100%;
    opacity: 0.85;
}
.spectrum-seg.fn { background: var(--wear-fn); border-radius: 999px 0 0 999px; }
.spectrum-seg.mw { background: var(--wear-mw); }
.spectrum-seg.ft { background: var(--wear-ft); }
.spectrum-seg.ww { background: var(--wear-ww); }
.spectrum-seg.bs { background: var(--wear-bs); border-radius: 0 999px 999px 0; }

.spectrum-marker {
    position: absolute;
    top: -4px;
    width: 5px;
    height: 16px;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 0 12px #ffffff, 0 0 0 2px #060609;
    transform: translateX(-50%);
    transition: left 0.08s ease;
}

.control-section {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 100%);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.control-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--platinum-200);
}

.control-hint-mono {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.wear-pill-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid var(--wear-color, var(--border-medium));
    color: var(--wear-color, #ffffff);
}

.wear-slider-track-wrap {
    width: 100%;
    padding: 3px 0;
}

.wear-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

.wear-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #060609;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.wear-controls-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.wear-presets-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.wear-preset-btn {
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s var(--spring-ease);
}

.wear-preset-btn:hover {
    background: var(--platinum-gradient);
    border-color: #ffffff;
    color: #060609;
}

.custom-float-input,
.seed-number-input,
.nametag-input-field {
    background: rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    padding: 7px 11px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    outline: none;
}

.custom-float-input {
    width: 102px;
    text-align: right;
}

.seed-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.seed-number-input {
    flex: 1;
    min-width: 0;
}

.seed-random-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    color: var(--platinum-200);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.seed-random-btn svg {
    width: 13px;
    height: 13px;
}

.seed-random-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.toggle-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.switch-label-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.switch-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--platinum-200);
}

.switch-desc {
    font-size: 10.5px;
    color: var(--text-muted);
}

.switch-control {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 23px;
    flex-shrink: 0;
}

.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-switch {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    transition: 0.22s;
}

.slider-switch::before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 2px;
    bottom: 2px;
    background-color: var(--platinum-300);
    border-radius: 50%;
    transition: 0.22s;
}

.switch-control input:checked + .slider-switch {
    background: var(--platinum-gradient);
    border-color: #ffffff;
}

.switch-control input:checked + .slider-switch::before {
    transform: translateX(19px);
    background-color: #060609;
}

.nametag-input-wrap {
    display: none;
    position: relative;
    align-items: center;
}

.nametag-input-wrap.visible {
    display: flex;
}

.nametag-input-field {
    width: 100%;
    padding-right: 48px;
}

.nametag-char-count {
    position: absolute;
    right: 11px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
}

.text-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.text-action-btn:hover {
    color: #ffffff;
}

.stickers-rack {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.sticker-slot-btn {
    position: relative;
    height: 68px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.2s var(--spring-ease);
}

.sticker-slot-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
}

.sticker-slot-btn.filled {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.sticker-slot-btn img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.sticker-slot-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.keychain-slot-btn {
    position: relative;
    min-height: 52px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--spring-ease);
}

.keychain-slot-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
}

.keychain-slot-btn.filled {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.28);
    justify-content: flex-start;
}

.keychain-slot-btn img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.slot-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fca5a5;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.slot-remove-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Equip Action Dock */
.equip-actions-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    flex-wrap: wrap;
}

.btn-equip {
    flex: 1;
    min-width: 105px;
    padding: 11px 12px;
    border-radius: 11px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.22s var(--spring-ease);
}

.equip-side-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.equip-side-dot.ct { background: var(--ct-accent); box-shadow: 0 0 8px var(--ct-accent); }
.equip-side-dot.t { background: var(--t-accent); box-shadow: 0 0 8px var(--t-accent); }

.btn-equip.ct {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--ct-border);
    color: #e0f2fe;
}

.btn-equip.ct:hover {
    background: rgba(56, 189, 248, 0.22);
    transform: translateY(-1px);
}

.btn-equip.t {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid var(--t-border);
    color: #fef3c7;
}

.btn-equip.t:hover {
    background: rgba(251, 191, 36, 0.22);
    transform: translateY(-1px);
}

.btn-equip.both {
    background: var(--platinum-gradient);
    border: 1px solid #ffffff;
    color: #060609;
    box-shadow: 0 8px 22px -4px rgba(255, 255, 255, 0.25);
}

.btn-equip.both {
    transform: translateZ(0);
    will-change: transform, filter;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}
.btn-equip.both:hover {
    transform: translateY(-1px) translateZ(0);
    filter: brightness(1.08);
}

.btn-unequip {
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-unequip:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.42);
    color: #fca5a5;
}

/* ==========================================================================
   STICKER & CHARM PICKER MODAL
   ========================================================================== */
.picker-modal-card {
    width: 100%;
    max-width: 880px;
    max-height: 86vh;
    background: linear-gradient(165deg, rgba(18, 18, 27, 0.95) 0%, rgba(9, 9, 14, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    box-shadow: var(--shadow-elevated);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.picker-search-bar {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.picker-search-inner .search-input {
    padding-right: 16px;
}

.picker-items-grid {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 12px;
    overflow-y: auto;
    max-height: calc(86vh - 140px);
}

.picker-item-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s var(--spring-ease);
}

.picker-item-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-3px);
}

.picker-item-img {
    width: 74px;
    height: 74px;
    object-fit: contain;
}

.picker-item-title {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--platinum-200);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.luxury-toast {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 20px;
    background: rgba(14, 14, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    animation: toast-in 0.24s var(--spring-ease) forwards;
}

.luxury-toast.error {
    border-color: rgba(239, 68, 68, 0.5);
}

.toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.luxury-toast.error .toast-dot {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(14px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(8px) scale(0.95); }
}

/* ==========================================================================
   FULL ARSENAL SLOT MACHINE (MONTE CARLO GLASS EDITION)
   ========================================================================== */
.slot-machine-deck {
    grid-column: 1 / -1;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 85% 100%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
        linear-gradient(165deg, rgba(20, 20, 31, 0.95) 0%, rgba(9, 9, 15, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    padding: 28px 30px;
    box-shadow:
        0 28px 64px -16px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.24);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 10px;
}

.slot-deck-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.slot-deck-titles {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 640px;
}

.slot-deck-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--platinum-300);
    text-transform: uppercase;
}

.slot-deck-eyebrow span.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff;
}

.slot-deck-titles h2 {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.slot-deck-titles p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.slot-deck-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-slot-spin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--platinum-gradient);
    border: 1px solid #ffffff;
    border-radius: 14px;
    color: #060609;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 14px 36px -6px rgba(255, 255, 255, 0.32);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, box-shadow, filter;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.btn-slot-spin svg {
    width: 18px;
    height: 18px;
    stroke: #060609;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-slot-spin:hover:not(:disabled) {
    transform: translateY(-2px) translateZ(0);
    -webkit-transform: translateY(-2px) translateZ(0);
    filter: brightness(1.08);
    box-shadow: 0 20px 44px -6px rgba(255, 255, 255, 0.45);
}

.btn-slot-spin:active:not(:disabled) {
    transform: translateY(0) translateZ(0);
    -webkit-transform: translateY(0) translateZ(0);
    filter: brightness(0.96);
}

.btn-slot-spin:hover:not(:disabled) svg {
    transform: rotate(180deg);
}

.btn-slot-spin:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-slot-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s var(--spring-ease);
}

.btn-slot-apply svg {
    width: 16px;
    height: 16px;
}

.btn-slot-apply:hover:not(:disabled),
.btn-slot-apply.applied {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
}

.slot-params-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.085);
}

.slot-param-group {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.slot-param-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.slot-Seg-pills {
    display: inline-flex;
    padding: 4px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 11px;
    gap: 3px;
}

.slot-seg-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.slot-seg-btn.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.slot-auto-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    cursor: pointer;
}

.slot-auto-toggle span {
    font-size: 12px;
    font-weight: 600;
    color: var(--platinum-200);
}

.slot-section-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 6px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.085);
    margin-top: 8px;
}

.slot-section-divider h3 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--platinum-200);
}

.slot-section-divider span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.slot-reel-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    overflow: hidden;
    contain: layout paint;
    box-shadow: var(--shadow-card);
    transition: transform 0.24s var(--spring-ease), border-color 0.22s ease, box-shadow 0.24s var(--spring-ease);
}

.slot-reel-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: var(--shadow-card-hover);
}

.slot-reel-card.flash-lock {
    animation: slot-lock-pulse 0.5s var(--spring-ease);
}

@keyframes slot-lock-pulse {
    0% {
        border-color: #ffffff;
        transform: scale(1.018);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.15);
        transform: scale(1);
    }
}

.slot-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.slot-weapon-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.slot-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slot-respin-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.slot-respin-btn svg {
    width: 13px;
    height: 13px;
    transition: transform 0.4s var(--spring-ease);
}

.slot-respin-btn:hover {
    background: var(--platinum-gradient);
    color: #060609;
}

.slot-respin-btn:hover svg {
    transform: rotate(180deg);
}

.slot-viewport {
    position: relative;
    height: 132px;
    background: radial-gradient(circle at 50% 50%, #161622 0%, #050509 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 6px 20px rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.slot-viewport::before,
.slot-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42px;
    z-index: 4;
    pointer-events: none;
}

.slot-viewport::before {
    left: 0;
    background: linear-gradient(90deg, rgba(5, 5, 9, 0.95) 0%, transparent 100%);
}

.slot-viewport::after {
    right: 0;
    background: linear-gradient(270deg, rgba(5, 5, 9, 0.95) 0%, transparent 100%);
}

.slot-center-laser {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1.5px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.9) 100%);
    z-index: 5;
    pointer-events: none;
    opacity: 0.45;
}

.slot-strip {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    display: flex;
    align-items: center;
    will-change: transform;
}

.slot-strip-item {
    width: 140px;
    height: 118px;
    flex-shrink: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slot-strip-item-glow {
    position: absolute;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--item-glow, #ffffff) 0%, transparent 66%);
    opacity: 0.22;
}

.slot-strip-item img {
    max-width: 118px;
    max-height: 90px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.slot-strip-rarity-bar {
    position: absolute;
    bottom: 4px;
    left: 22px;
    right: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--item-glow, #a1a1aa);
}

.slot-result-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
    cursor: pointer;
}

.slot-finish-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.slot-finish-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
}

.slot-float-mono {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE ADAPTATION (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1120px) {
    .spatial-workspace {
        grid-template-columns: 1fr;
        padding: 14px 16px 40px;
        gap: 16px;
    }

    .spatial-sidebar {
        position: relative;
        top: 0;
        height: auto;
        padding: 16px;
        border-radius: 22px;
        gap: 14px;
    }

    .sidebar-top-pod {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .sidebar-modes-stack {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .categories-bar {
        display: flex;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .categories-bar::-webkit-scrollbar {
        display: none;
    }

    .spatial-command-island {
        position: relative;
        top: 0;
    }

    .modal-body-layout {
        grid-template-columns: 1fr;
    }

    .modal-visual-showcase {
        order: 1;
        min-height: 330px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.085);
    }

    .modal-controls-pane {
        order: 2;
        border-right: none;
    }
}

@media (max-width: 640px) {
    .sidebar-modes-stack {
        grid-template-columns: 1fr;
    }

    .controls-bento-pair {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(162px, 1fr));
        gap: 12px;
    }

    .studio-card {
        padding: 12px;
        min-height: 232px;
        border-radius: 18px;
    }

    .card-image-box {
        height: 112px;
    }

    .card-weapon-img {
        max-height: 96px;
    }

    .stickers-rack {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   LOADOUT PRESETS ATELIER & PRESET CARDS
   ========================================================================== */
.sidebar-modes-stack .presets-tab-btn:hover {
    border-color: rgba(0, 242, 254, 0.45);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.16);
}

.sidebar-modes-stack .presets-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.16) 0%, rgba(79, 70, 229, 0.12) 100%);
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 0 24px rgba(0, 242, 254, 0.22);
}

.loadout-count-pill.preset-pill {
    background: rgba(0, 242, 254, 0.14);
    border-color: rgba(0, 242, 254, 0.35);
    color: #38bdf8;
}

.presets-overview-banner {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 26px 30px;
    background:
        radial-gradient(circle at 0% 0%, rgba(0, 242, 254, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        linear-gradient(165deg, rgba(20, 20, 32, 0.95) 0%, rgba(10, 10, 18, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow:
        0 26px 64px -16px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 6px;
}

.presets-banner-info h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.presets-banner-info p {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.presets-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.presets-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s var(--ease-out-expo);
    border: 1px solid transparent;
}

.presets-action-btn.primary {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #050b14;
    box-shadow: 0 4px 18px rgba(0, 242, 254, 0.35);
}

.presets-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0, 242, 254, 0.55);
}

.presets-action-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.presets-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.presets-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
    gap: 20px;
}

.preset-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 24px;
    background: linear-gradient(145deg, rgba(22, 22, 34, 0.8) 0%, rgba(14, 14, 22, 0.88) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    transition: all 0.28s var(--ease-out-expo);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.preset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--preset-accent, #00f2fe);
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.preset-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px var(--preset-glow, rgba(0, 242, 254, 0.15));
}

.preset-card.is-active {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 32px rgba(16, 185, 129, 0.18), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}

.preset-card.is-active::before {
    background: #10b981;
    opacity: 1;
}

.preset-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.preset-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-theme-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--preset-accent, #00f2fe);
    box-shadow: 0 0 12px var(--preset-accent, #00f2fe);
    flex-shrink: 0;
}

.preset-card-title {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.015em;
}

.preset-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.preset-card-actions-quick {
    display: flex;
    align-items: center;
    gap: 6px;
}

.preset-quick-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
}

.preset-quick-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: scale(1.06);
}

.preset-quick-icon-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.preset-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 16px;
    min-height: 19px;
}

.preset-preview-rack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin-bottom: 18px;
}

.preset-preview-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    min-height: 80px;
    transition: all 0.2s ease;
}

.preset-preview-slot:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.preset-slot-thumb {
    max-width: 64px;
    max-height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    margin-bottom: 4px;
}

.preset-slot-label {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

.preset-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.preset-apply-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.22s var(--ease-out-expo);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.preset-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.55);
    border-color: rgba(52, 211, 153, 0.8);
}

.preset-apply-btn.applying {
    opacity: 0.85;
    pointer-events: none;
    background: #064e3b;
}

.preset-apply-btn.applied {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
    box-shadow: none;
}

.preset-customize-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-customize-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

/* ==========================================================================
   PRESET CUSTOMIZER MODAL
   ========================================================================== */
.preset-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(5, 5, 10, 0.82);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.preset-modal-card {
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(155deg, rgba(24, 24, 36, 0.96) 0%, rgba(12, 12, 20, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.preset-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preset-badge-count {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.preset-meta-bar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    flex-wrap: wrap;
}

.preset-meta-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.preset-meta-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.preset-text-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    font-size: 13.5px;
    outline: none;
    transition: all 0.18s ease;
}

.preset-text-input:focus {
    border-color: #00f2fe;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.25);
    background: rgba(255, 255, 255, 0.09);
}

.preset-color-swatches {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
}

.preset-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.18s ease;
}

.preset-color-swatch:hover {
    transform: scale(1.15);
}

.preset-color-swatch.active {
    border-color: #ffffff;
    box-shadow: 0 0 10px currentColor;
    transform: scale(1.2);
}

.preset-modal-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.preset-tool-btn:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.preset-tool-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.preset-items-search-wrap {
    width: 100%;
}

.preset-search-input {
    width: 100%;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
}

.preset-search-input:focus {
    border-color: rgba(255, 255, 255, 0.24);
}

.preset-items-rack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.preset-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    position: relative;
    transition: all 0.18s ease;
}

.preset-item-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}

.preset-item-thumb {
    width: 60px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.preset-item-details {
    flex: 1;
    min-width: 0;
}

.preset-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.preset-item-sub {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.preset-item-badge {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.preset-item-badge.team-ct {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.preset-item-badge.team-t {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.preset-item-badge.team-both {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.preset-item-badge.st {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.preset-item-remove-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.18s ease;
}

.preset-item-remove-btn:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
}

.preset-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: rgba(10, 10, 16, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.preset-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.preset-footer-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

.preset-footer-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.preset-footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preset-footer-btn.apply-direct {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.preset-footer-btn.apply-direct:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
}

.preset-footer-btn.primary {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #050b14;
    box-shadow: 0 4px 16px rgba(0, 242, 254, 0.35);
}

.preset-footer-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 242, 254, 0.55);
}

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

    .preset-card {
        padding: 16px;
    }

    .preset-meta-bar {
        flex-direction: column;
    }

    .preset-meta-group {
        width: 100%;
    }

    .preset-modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .preset-footer-right {
        width: 100%;
        flex-direction: column;
    }

    .preset-footer-btn {
        width: 100%;
        justify-content: center;
    }
}

