/* ==========================================================================
   CS2 Weapon Paints & Gloves - Modern Esports UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Backgrounds */
    --bg-base: #080a0f;
    --bg-surface: #0e121a;
    --bg-card: #121722;
    --bg-card-hover: #171e2c;
    --bg-input: #0a0d14;
    --bg-modal: #0f141d;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-default: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.25);

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Team Accents */
    --team-t-primary: #f97316;
    --team-t-secondary: #ea580c;
    --team-t-glow: rgba(249, 115, 22, 0.35);

    --team-ct-primary: #06b6d4;
    --team-ct-secondary: #0284c7;
    --team-ct-glow: rgba(6, 182, 212, 0.35);

    --team-both-primary: #8b5cf6;
    --team-both-secondary: #6366f1;
    --team-both-glow: rgba(139, 92, 246, 0.35);

    /* Default Accent */
    --accent-primary: #6366f1;
    --accent-secondary: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.35);
    --accent-light: #a5b4fc;

    /* CS2 Rarity / Quality Colors */
    --gold-special: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --wear-fn: #10b981;
    --wear-mw: #3b82f6;
    --wear-ft: #eab308;
    --wear-ww: #f97316;
    --wear-bs: #ef4444;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* Dynamic Team Palette */
body[data-team="t"] {
    --accent-primary: var(--team-t-primary);
    --accent-secondary: var(--team-t-secondary);
    --accent-glow: var(--team-t-glow);
    --accent-light: #fdba74;
}

body[data-team="ct"] {
    --accent-primary: var(--team-ct-primary);
    --accent-secondary: var(--team-ct-secondary);
    --accent-glow: var(--team-ct-glow);
    --accent-light: #67e8f9;
}

body[data-team="both"] {
    --accent-primary: var(--team-both-primary);
    --accent-secondary: var(--team-both-secondary);
    --accent-glow: var(--team-both-glow);
    --accent-light: #c4b5fd;
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.05), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.05), transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #080a0f;
}
::-webkit-scrollbar-thumb {
    background: #1e2638;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2b364e;
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */

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

.app-header {
    background: rgba(14, 18, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--accent-glow);
    font-size: 22px;
    color: white;
    transition: transform 0.3s;
}

.header-brand:hover .brand-icon {
    transform: scale(1.08) rotate(4deg);
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-title .badge-cs2 {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    background: linear-gradient(90deg, #f97316, #ef4444);
    border-radius: var(--radius-full);
    color: white;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Team Segmented Control */
.team-selector {
    display: flex;
    align-items: center;
    background: #0b0e14;
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
    gap: 4px;
}

.team-btn {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
}

.team-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.team-btn.active.team-t {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.team-btn.active.team-ct {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.team-btn.active.team-both {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

/* User Profile */
.user-profile-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 12px 4px 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-primary);
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Team Indicator Bar */
.team-indicator {
    background: rgba(14, 18, 26, 0.5);
    border-bottom: 1px solid var(--border-subtle);
    padding: 9px 0;
}

.indicator-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 10px;
}

.indicator-team-label {
    display: flex;
    align-items: center;
    gap: 9px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.indicator-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.indicator-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   CATEGORY NAVIGATION & SEARCH
   ========================================================================== */

.category-nav {
    background: rgba(10, 13, 20, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
    position: sticky;
    top: 73px;
    z-index: 900;
}

.nav-tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    border: none;
    flex-wrap: nowrap;
    scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: var(--border-default);
    transform: translateY(-1px);
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-tab.tab-gloves {
    position: relative;
}

.nav-tab.tab-gloves .tab-badge-new {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #ec4899, #f43f5e);
    color: white;
    letter-spacing: 0.5px;
}

/* Category Search Input */
.search-container {
    position: relative;
    min-width: 240px;
    max-width: 280px;
}

.search-input {
    width: 100%;
    padding: 9px 16px 9px 38px !important;
    background: #0f141d !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-full) !important;
    color: #fff !important;
    font-size: 13px;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    background: #141b27 !important;
}

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

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

/* ==========================================================================
   CARDS GRID (WEAPONS, KNIVES, GLOVES)
   ========================================================================== */

.app-main {
    flex: 1;
    padding: 28px 0 60px;
}

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

.weapon-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.3s;
}

.weapon-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    background: var(--bg-card-hover);
}

.weapon-card.selected,
.weapon-card.equipped {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary), 0 8px 24px var(--accent-glow);
}

.weapon-card.selected::before,
.weapon-card.equipped::before {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
}

/* Badges on Top of Card */
.card-top-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.badge-equipped {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.badge-wear-float {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.badge-wear-fn { color: var(--wear-fn); border-color: rgba(16, 185, 129, 0.4); }
.badge-wear-mw { color: var(--wear-mw); border-color: rgba(59, 130, 246, 0.4); }
.badge-wear-ft { color: var(--wear-ft); border-color: rgba(234, 179, 8, 0.4); }
.badge-wear-ww { color: var(--wear-ww); border-color: rgba(249, 115, 22, 0.4); }
.badge-wear-bs { color: var(--wear-bs); border-color: rgba(239, 68, 68, 0.4); }

.badge-team-exclusive {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}
.badge-team-t {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.4);
}
.badge-team-ct {
    background: rgba(6, 182, 212, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(6, 182, 212, 0.4);
}
.badge-team-both {
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

/* Card Image Area */
.card-image {
    height: 155px;
    background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.04) 0%, rgba(10, 13, 20, 0.6) 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.weapon-card:hover .card-image img {
    transform: scale(1.08) translateY(-3px);
}

/* Card Content */
.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.card-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.card-skin-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-skin-name.default-skin {
    color: var(--text-muted);
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 8px;
}

/* Action Buttons */
.btn-primary {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: var(--font-main) !important;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--accent-glow) !important;
    filter: brightness(1.1);
}

.btn-secondary {
    width: 100%;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-md) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: var(--font-main) !important;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent-primary) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   MODAL DIALOG & CUSTOMIZER (CLEAN DARK THEME)
   ========================================================================== */

.modal-backdrop.show {
    opacity: 0.8;
    backdrop-filter: blur(12px);
}

.modal-content {
    background: var(--bg-modal) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden;
}

.modal-header {
    background: #0a0d14 !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    padding: 18px 24px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.modal-weapon-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 20px;
}

.modal-title {
    color: white !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.modal-title-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Sleek Circular Close Button */
.btn-close-modal {
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-default) !important;
    color: var(--text-secondary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    line-height: 1;
}

.btn-close-modal:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.modal-body {
    padding: 24px !important;
    max-height: 75vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Wear & Seed Customizer Card */
.customizer-box {
    background: #080c13 !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.customizer-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.customizer-box-title i {
    color: var(--accent-primary);
}

.condition-pill {
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
    border: 1px solid;
}

/* Wear Condition Buttons */
.wear-presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.wear-preset-btn {
    padding: 8px 10px !important;
    background: #111722 !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-secondary) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    outline: none !important;
}

.wear-preset-btn:hover {
    background: #192233 !important;
    color: #fff !important;
    border-color: var(--border-hover) !important;
}

.wear-preset-btn.active {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px var(--accent-glow);
}

/* Float Slider */
.slider-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.float-value-display {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #fff;
}

.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 20%, #eab308 50%, #f97316 75%, #ef4444 100%) !important;
    outline: none !important;
    cursor: pointer;
    border: none !important;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Seed Input */
.seed-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seed-label {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 90px;
    font-weight: 600;
}

.seed-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.seed-input {
    width: 120px !important;
    padding: 7px 12px !important;
    background: #111722 !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-sm) !important;
    color: #fff !important;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.seed-input:focus {
    outline: none !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 2px var(--accent-glow) !important;
}

.btn-random-seed {
    padding: 7px 14px !important;
    background: #111722 !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-secondary) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-random-seed:hover {
    background: #192233 !important;
    color: #fff !important;
    border-color: var(--border-hover) !important;
}

/* Modal Search */
.modal-search-wrap {
    position: relative;
}

.modal-search-input {
    width: 100% !important;
    padding: 10px 16px 10px 40px !important;
    background: #080c13 !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-md) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-family: var(--font-main) !important;
    transition: all 0.2s;
}

.modal-search-input:focus {
    outline: none !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    background: #0d131e !important;
}

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

.modal-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

/* Skins Grid Inside Modal */
.skin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.skin-card {
    background: #080c13 !important;
    border: 1.5px solid var(--border-subtle) !important;
    border-radius: var(--radius-md);
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.skin-card:hover {
    border-color: var(--accent-primary) !important;
    background: #111722 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.skin-card.selected {
    border-color: var(--accent-primary) !important;
    background: rgba(99, 102, 241, 0.12) !important;
    box-shadow: 0 0 0 1px var(--accent-primary), 0 8px 20px var(--accent-glow);
}

.skin-card.selected::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skin-card img {
    width: 100%;
    height: 75px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s;
}

.skin-card:hover img {
    transform: scale(1.08);
}

.skin-name {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container-custom {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.custom-toast {
    background: rgba(14, 18, 26, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    color: white;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 420px;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.toast-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.app-footer {
    background: #0a0d14;
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-content a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-content a:hover {
    color: white;
    text-decoration: underline;
}

/* ==========================================================================
   LOGIN PAGE
   ========================================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: rgba(18, 23, 34, 0.9);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-full);
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.login-logo {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
    font-size: 32px;
    color: white;
}

.login-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.feature-item i {
    color: var(--accent-primary);
    font-size: 18px;
}

.feature-item span {
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 500;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
    .nav-tabs-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .search-container {
        max-width: 100%;
        width: 100%;
    }
    .wear-presets {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .team-selector {
        width: 100%;
        justify-content: center;
    }
    .weapons-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    .card-image {
        height: 125px;
        padding: 14px;
    }
    .skin-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    .wear-presets {
        grid-template-columns: repeat(2, 1fr);
    }
    .customizer-box {
        padding: 14px;
    }
}