/* ============================================================
   HUD Theme — skins.freaklabs.dev
   JARVIS-inspired interface matching freaklabs.dev design
   Dark navy, cyan accents, scan lines, Orbitron headings
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

/* --- CSS Custom Properties --- */
:root {
    /* Backgrounds */
    --jarvis-bg: #0a0e17;
    --jarvis-bg-light: #0d1117;

    /* Accent */
    --jarvis-blue: #00d4ff;
    --jarvis-blue-dim: #0ea5e9;

    /* Status */
    --jarvis-amber: #f59e0b;
    --jarvis-amber-light: #fbbf24;
    --jarvis-green: #22c55e;
    --jarvis-red: #ef4444;

    /* Text */
    --jarvis-text: #e2e8f0;
    --jarvis-text-dim: #94a3b8;

    /* Cards / Panels */
    --jarvis-card-bg: rgba(14, 165, 233, 0.06);
    --jarvis-card-border: rgba(14, 165, 233, 0.2);
    --jarvis-card-hover: rgba(14, 165, 233, 0.4);

    /* Game-specific */
    --rust-accent: #cd4420;
    --valorant-accent: #ff4655;

    /* Borders & Shadows */
    --border: rgba(14, 165, 233, 0.2);
    --border-light: rgba(14, 165, 233, 0.3);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius: 0.5rem;

    /* Glow */
    --glow-blue: 0 0 15px rgba(0, 212, 255, 0.15), 0 0 30px rgba(0, 212, 255, 0.05);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font: 'Rajdhani', sans-serif;
    --mono: 'Share Tech Mono', monospace;

    /* Compatibility aliases used by JS-generated markup */
    --accent: var(--jarvis-blue);
    --accent-hover: #33e0ff;
    --text-primary: var(--jarvis-text);
    --text-secondary: var(--jarvis-text-dim);
    --text-muted: #64748b;
    --green: var(--jarvis-green);
    --red: var(--jarvis-red);
    --amber: var(--jarvis-amber);
    --bg-primary: var(--jarvis-bg);
    --bg-secondary: var(--jarvis-bg-light);
    --bg-tertiary: var(--jarvis-card-bg);
    --dark: var(--jarvis-bg);
    --dark-secondary: var(--jarvis-bg-light);
    --dark-border: var(--border);
    --dark-text: var(--jarvis-text);
    --dark-text-secondary: var(--jarvis-text-dim);
    --dark-text-muted: #64748b;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--jarvis-text);
    background-color: var(--jarvis-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Scan lines overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.015) 2px,
        rgba(0, 212, 255, 0.015) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* Grid background */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: rgba(0, 212, 255, 0.25);
    color: var(--jarvis-text);
}

a {
    color: var(--jarvis-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #66e5ff;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Container --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
.nav-header {
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 56px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--jarvis-text);
}

.nav-brand-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--jarvis-text);
}

.nav-brand-accent {
    color: var(--jarvis-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--jarvis-text-dim);
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--jarvis-text);
}

.nav-links a.active {
    color: var(--jarvis-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--jarvis-text);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 4px 0;
    transition: transform 0.2s, opacity 0.2s;
}

/* --- HUD Labels --- */
.hud-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--jarvis-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.hud-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--jarvis-green);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* --- HUD Panels --- */
.hud-panel {
    background: var(--jarvis-card-bg);
    border: 1px solid var(--jarvis-card-border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hud-panel:hover {
    border-color: var(--jarvis-card-hover);
}

/* --- HUD Corners (bracket decoration) --- */
.hud-corners {
    position: relative;
}

.hud-corners::before,
.hud-corners::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.hud-corners::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--jarvis-blue);
    border-left: 2px solid var(--jarvis-blue);
}

.hud-corners::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--jarvis-blue);
    border-right: 2px solid var(--jarvis-blue);
}

/* --- Hero Section --- */
.hero {
    background: var(--jarvis-bg);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    color: var(--jarvis-text);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--jarvis-text-dim);
    margin-bottom: 32px;
    max-width: 520px;
}

/* --- HUD Stat Cards (Home) --- */
.hud-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.hud-stat {
    background: var(--jarvis-card-bg);
    border: 1px solid var(--jarvis-card-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.hud-stat:hover {
    border-color: var(--jarvis-card-hover);
    box-shadow: var(--glow-blue);
}

.hud-stat-number {
    font-family: var(--mono);
    font-size: 1.5rem;
    color: var(--jarvis-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    display: block;
    margin-bottom: 0.25rem;
}

.hud-stat-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--jarvis-text-dim);
}

/* --- Game Cards (Homepage) --- */
.game-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 40px 0;
}

.game-card {
    display: flex;
    overflow: hidden;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--jarvis-text);
    cursor: pointer;
}

.game-card-accent {
    width: 4px;
    flex-shrink: 0;
}

.game-card--rust .game-card-accent {
    background: var(--rust-accent);
}

.game-card--valorant .game-card-accent {
    background: var(--valorant-accent);
}

/* HUD panel game cards — vertical layout with icon */
.game-card.hud-panel {
    flex-direction: column;
}

.game-card.hud-panel .game-card-accent {
    display: none;
}

.game-card-icon {
    padding: 1.5rem 1.5rem 0;
    color: var(--jarvis-blue);
    opacity: 0.6;
}

.game-card--rust .game-card-icon {
    color: var(--rust-accent);
}

.game-card--valorant .game-card-icon {
    color: var(--valorant-accent);
}

.game-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
}

.game-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.game-card-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--jarvis-text);
}

.game-card-count {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--jarvis-text-dim);
}

.game-card-desc {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--jarvis-text-dim);
    margin-bottom: 12px;
}

.game-card-cta {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.game-card--rust .game-card-cta {
    color: var(--rust-accent);
}

.game-card--valorant .game-card-cta {
    color: var(--valorant-accent);
}

.game-card-cta svg {
    transition: transform 0.2s;
}

.game-card:hover .game-card-cta svg {
    transform: translateX(3px);
}

.game-card:hover {
    box-shadow: var(--glow-blue);
}

/* --- Page Header --- */
.page-header {
    background: var(--jarvis-bg);
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.page-header-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--jarvis-text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-header-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--jarvis-text-dim);
    margin-top: 4px;
}

/* --- Content Area --- */
.content {
    padding: 1.5rem 0 3rem;
    flex: 1;
    position: relative;
}

/* --- Filter Bar --- */
.filter-bar {
    background: var(--jarvis-card-bg);
    border: 1px solid var(--jarvis-card-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    position: sticky;
    top: 56px;
    z-index: 100;
}

.filter-bar-toggle {
    display: none;
    width: 100%;
    background: none;
    border: none;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--jarvis-text);
    cursor: pointer;
    padding: 0.25rem 0;
    text-align: left;
}

.filter-bar-content {
    display: contents;
}

/* Source pills */
.source-pills {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.source-pill {
    padding: 0.4rem 0.85rem;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: transparent;
    color: var(--jarvis-text-dim);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid var(--border);
}

.source-pill:last-child {
    border-right: none;
}

.source-pill.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--jarvis-blue);
}

.source-pill:hover:not(.active) {
    background: rgba(0, 212, 255, 0.06);
    color: var(--jarvis-text);
}

/* Search input */
.search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-wrap::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-size: contain;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--jarvis-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

/* Select dropdowns */
.filter-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--jarvis-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.filter-select option {
    background: var(--jarvis-bg);
    color: var(--jarvis-text);
}

/* Results count */
.results-count {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--jarvis-text-dim);
    margin-left: auto;
    white-space: nowrap;
}

/* --- Skin Grid --- */
.skin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* --- Skin Card --- */
.skin-card {
    background: var(--jarvis-card-bg);
    border: 1px solid var(--jarvis-card-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.skin-card:hover {
    border-color: var(--jarvis-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow-blue);
}

.skin-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: var(--jarvis-bg-light);
    overflow: hidden;
}

.skin-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skin-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.skin-card:hover .skin-card-play {
    opacity: 1;
}

.skin-card-play svg {
    fill: white;
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.skin-card-body {
    padding: 0.75rem 1rem;
}

.skin-card-name {
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--jarvis-text);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skin-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.skin-card-type {
    font-family: var(--mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jarvis-text-dim);
}

.skin-card-date {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.skin-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skin-card-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.skin-card-links {
    display: flex;
    gap: 0.25rem;
}

.skin-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius);
    color: var(--jarvis-text-dim);
    transition: color 0.2s, background 0.2s;
}

.skin-card-link:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--jarvis-blue);
}

.skin-card-link svg {
    width: 14px;
    height: 14px;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-family: var(--font-display);
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.badge-market {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--jarvis-green);
}

.badge-workshop {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
}

.badge-price {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--jarvis-green);
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

/* Valorant rarity badges */
.badge-select {
    background: rgba(90, 140, 200, 0.15);
    border: 1px solid rgba(90, 140, 200, 0.3);
    color: #7ab0e8;
}

.badge-deluxe {
    background: rgba(0, 200, 170, 0.15);
    border: 1px solid rgba(0, 200, 170, 0.3);
    color: #00c8aa;
}

.badge-premium {
    background: rgba(210, 100, 165, 0.15);
    border: 1px solid rgba(210, 100, 165, 0.3);
    color: #e87fc0;
}

.badge-ultra {
    background: rgba(239, 184, 56, 0.15);
    border: 1px solid rgba(239, 184, 56, 0.3);
    color: #ffc842;
}

.badge-exclusive {
    background: rgba(239, 135, 54, 0.15);
    border: 1px solid rgba(239, 135, 54, 0.3);
    color: #ff9d4a;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: var(--radius);
    font-family: var(--mono);
    font-size: 0.85rem;
    border: 1px solid var(--border);
    background: var(--jarvis-card-bg);
    color: var(--jarvis-text-dim);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--border-light);
    color: var(--jarvis-text);
}

.pagination-item.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--jarvis-blue);
    color: var(--jarvis-blue);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.pagination-item.disabled {
    color: var(--text-muted);
    opacity: 0.3;
    pointer-events: none;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--jarvis-bg-light);
    border: 1px solid var(--jarvis-card-border);
    border-radius: var(--radius);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(10px);
    transition: transform 0.2s;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), var(--glow-blue);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--jarvis-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s;
}

.modal-close:hover {
    background: rgba(10, 14, 23, 0.9);
    border-color: var(--border-light);
}

.modal-image {
    position: relative;
    width: 100%;
    background: var(--jarvis-bg);
}

.modal-image img,
.modal-image video {
    width: 100%;
    display: block;
}

.modal-body {
    padding: 1.5rem;
}

.modal-title {
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--jarvis-text);
    margin-bottom: 0.5rem;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--jarvis-text-dim);
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.modal-meta-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* Image Gallery (modal) */
.modal-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.modal-gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.modal-gallery-thumb.active {
    border-color: var(--jarvis-blue);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.modal-gallery-thumb:hover {
    border-color: var(--jarvis-blue);
}

.modal-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Chroma swatches (Valorant) */
.chroma-swatches {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.chroma-swatch {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
    background: var(--jarvis-bg);
    cursor: pointer;
    transition: border-color 0.2s;
}

.chroma-swatch:hover {
    border-color: var(--jarvis-text-dim);
}

.chroma-swatch.active {
    border-color: var(--jarvis-blue);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

/* Level progression (Valorant) */
.level-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--jarvis-card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.level-item:hover {
    background: rgba(0, 212, 255, 0.06);
    border-color: var(--border-light);
}

.level-item.active {
    border-left: 3px solid var(--jarvis-blue);
}

.level-number {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 20px;
}

.level-name {
    font-size: 0.85rem;
    color: var(--jarvis-text);
    flex: 1;
}

.level-type {
    font-family: var(--mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.level-item.has-video {
    cursor: pointer;
}

.level-play {
    width: 16px;
    height: 16px;
    color: var(--jarvis-blue);
    opacity: 0.4;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.level-play svg {
    width: 16px;
    height: 16px;
}

.level-item:hover .level-play {
    opacity: 1;
}

/* Modal section headers */
.modal-section-title {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Vote bar */
.vote-bar {
    height: 6px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
    margin: 0.5rem 0;
}

.vote-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--jarvis-blue), var(--jarvis-green));
    transition: width 0.6s ease;
}

.vote-info {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--jarvis-text-dim);
    margin-bottom: 1rem;
}

/* Modal action buttons */
.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--jarvis-blue);
}

.btn-primary:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    color: var(--jarvis-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--jarvis-card-bg);
    color: var(--jarvis-text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.06);
    border-color: var(--border-light);
}

.btn-market {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--jarvis-green);
}

.btn-market:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: var(--jarvis-green);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
}

.btn-workshop {
    background: var(--jarvis-card-bg);
    color: var(--jarvis-text);
    border-color: var(--border);
}

.btn-workshop:hover {
    background: rgba(0, 212, 255, 0.06);
    border-color: var(--border-light);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

/* --- Loading Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, var(--jarvis-bg-light) 25%, rgba(14, 165, 233, 0.08) 50%, var(--jarvis-bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius);
}

.skeleton-card {
    background: var(--jarvis-card-bg);
    border: 1px solid var(--jarvis-card-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    padding-top: 75%;
}

.skeleton-text {
    height: 14px;
    margin: 0.5rem 1rem;
}

.skeleton-text-sm {
    height: 10px;
    width: 60%;
    margin: 0.5rem 1rem;
}

.skeleton-badge {
    height: 18px;
    width: 60px;
    margin: 0.5rem 1rem;
}

/* --- Loading Spinner --- */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--jarvis-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

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

.empty-state-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--jarvis-text-dim);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* --- Footer --- */
.footer {
    background: var(--jarvis-bg);
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    margin-top: auto;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--jarvis-blue), transparent);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-hud {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--jarvis-text-dim);
}

.footer-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-node {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--jarvis-green);
    font-weight: 600;
}

.footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.footer-dot--live {
    background: var(--jarvis-green);
    box-shadow: 0 0 6px var(--jarvis-green);
    animation: footerPulse 2s ease-in-out infinite;
}

@keyframes footerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.footer-sep {
    color: rgba(14, 165, 233, 0.3);
    user-select: none;
}

.footer-datum {
    color: var(--jarvis-text-dim);
    text-transform: uppercase;
}

.footer-val {
    color: var(--jarvis-blue);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0.75rem auto;
    max-width: 400px;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-sig {
    color: var(--jarvis-text-dim);
}

.footer-link {
    color: var(--jarvis-blue);
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

.footer-link:hover {
    color: #33e0ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.footer-uptime {
    color: var(--jarvis-amber);
    font-variant-numeric: tabular-nums;
}

.footer-sync-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-sync-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--jarvis-text-dim);
}

.footer-val--dim {
    color: var(--jarvis-text-dim);
    opacity: 0.6;
}

.footer-dot--ok {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
    background: var(--jarvis-green);
    box-shadow: 0 0 4px var(--jarvis-green);
}

.footer-dot--err {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
    background: var(--jarvis-red);
    box-shadow: 0 0 4px var(--jarvis-red);
}

.footer-legal {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--jarvis-text-dim);
    opacity: 0.5;
    text-align: center;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* --- 404 Page --- */
.hud-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.hud-404 .hud-panel {
    text-align: center;
    padding: 3rem 3rem;
    max-width: 480px;
    width: 100%;
}

.hud-404-code {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--jarvis-blue);
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
    line-height: 1;
}

.hud-404-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--jarvis-text);
    margin: 1rem 0 0.5rem;
}

.hud-404-text {
    font-size: 0.9rem;
    color: var(--jarvis-text-dim);
    margin-bottom: 1.5rem;
}

/* --- Price display --- */
.price {
    font-family: var(--mono);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--jarvis-green);
}

.price-updated {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--jarvis-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* --- Focus States --- */
:focus-visible {
    outline: 2px solid var(--jarvis-blue);
    outline-offset: 2px;
}

/* --- Animations --- */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

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

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

@keyframes hud-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (min-width: 640px) {
    .container {
        padding: 0 32px;
    }

    .nav-container {
        padding: 0 32px;
    }

    .hero {
        padding: 72px 0;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hud-stat-number {
        font-size: 1.75rem;
    }

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

@media (min-width: 768px) {
    .skin-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 960px) {
    .hero {
        padding: 96px 0;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .skin-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .nav-container {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 3.25rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 23, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 0.5rem 0;
    }

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

    .nav-links a {
        padding: 0.75rem 20px;
    }

    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hud-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .filter-bar {
        position: relative;
        top: auto;
    }

    .filter-bar-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .filter-bar-toggle svg {
        color: var(--text-muted);
    }

    .filter-bar-content {
        display: none;
        width: 100%;
    }

    .filter-bar.open .filter-bar-content {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding-top: 0.75rem;
    }

    .search-wrap {
        min-width: 100%;
    }

    .filter-select {
        flex: 1;
        min-width: calc(50% - 0.375rem);
    }

    .results-count {
        margin-left: 0;
        width: 100%;
    }

    .modal {
        max-height: 95vh;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
