/* ==========================================================================
   SteamPulse - CS2 Crosshairs & Crosshair Generator Stylesheet
   ========================================================================== */

.crosshairs-module-wrapper {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 16px 48px 16px;
}

/* Header & Sub-Navigation Tabs */
.crosshairs-header {
    text-align: center;
    margin-bottom: 28px;
}

.crosshairs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(163, 230, 53, 0.15);
    color: var(--brand-lime, #a3e635);
    border: 1px solid rgba(163, 230, 53, 0.35);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.crosshairs-title {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.crosshairs-subtitle {
    font-size: 14.5px;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 20px auto;
    line-height: 1.5;
}

.crosshairs-nav-tabs {
    display: inline-flex;
    gap: 6px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.crosshairs-nav-tab {
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.crosshairs-nav-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.crosshairs-nav-tab.active {
    background: var(--brand-lime, #a3e635);
    color: #0f172a;
    box-shadow: 0 0 16px rgba(163, 230, 53, 0.3);
}

/* ==========================================================================
   DATABASE MODE: Filter Toolbar & Pro Player Cards
   ========================================================================== */

.crosshairs-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.crosshairs-search-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.crosshairs-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.crosshairs-search-input:focus {
    border-color: var(--brand-lime, #a3e635);
}

.crosshairs-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
}

.crosshairs-filters-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.crosshairs-select {
    padding: 9px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.crosshairs-select:focus {
    border-color: var(--brand-lime, #a3e635);
}

/* Real-Time Results Counter Bar */
.crosshairs-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 4px;
    flex-wrap: wrap;
    gap: 10px;
}

.crosshairs-results-counter {
    font-size: 13.5px;
    font-weight: 700;
    color: #94a3b8;
}

.crosshairs-results-counter strong {
    color: #fff;
}

.crosshairs-results-counter .text-lime {
    color: var(--brand-lime, #a3e635);
}

.crosshairs-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.crosshairs-meta-badge i {
    color: #38bdf8;
}

/* Pro Player Grid */
.crosshairs-pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.crosshairs-pro-grid.is-loading {
    opacity: 0.45;
    filter: blur(1px);
    pointer-events: none;
}

.crosshairs-player-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.crosshairs-player-card:hover {
    transform: translateY(-4px);
    border-color: rgba(163, 230, 53, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(163, 230, 53, 0.1);
}

.crosshairs-player-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.crosshairs-player-avatar {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 25%, #334155, #0f172a);
    border: 2px solid rgba(255, 255, 255, 0.12);
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.crosshairs-player-card:hover .crosshairs-player-avatar {
    transform: scale(1.05);
    border-color: var(--brand-lime, #a3e635);
}

.crosshairs-player-info {
    flex: 1;
    min-width: 0;
}

.crosshairs-player-name {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crosshairs-player-realname {
    font-size: 11.5px;
    color: #94a3b8;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crosshairs-player-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.crosshairs-tag-team {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.crosshairs-tag-role {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Crosshair Preview Canvas in Card (CS2 In-Game Map Backdrop) */
.crosshairs-card-viewport {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.35) 0%, rgba(9, 13, 22, 0.82) 100%),
                url('/assets/img/maps/cs2/de_dust2.jpg') center/cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.8);
}

.crosshairs-card-grid-lines {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.crosshairs-svg-preview {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.crosshairs-card-crosshair-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 128px;
    height: 128px;
    max-width: 128px;
    max-height: 128px;
    object-fit: contain;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
    z-index: 2;
    transition: transform 0.25s ease;
}

.crosshairs-player-card:hover .crosshairs-card-crosshair-img {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Card Code Box & Buttons */
.crosshairs-code-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--font-mono, monospace);
    font-size: 11.5px;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.crosshairs-code-box:hover {
    border-color: rgba(163, 230, 53, 0.5);
    background: rgba(0, 0, 0, 0.6);
}

.crosshairs-code-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

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

.crosshairs-btn-copy {
    flex: 1;
    background: var(--brand-lime, #a3e635);
    color: #0f172a;
    border: none;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.crosshairs-btn-copy:hover {
    box-shadow: 0 0 15px rgba(163, 230, 53, 0.4);
    transform: translateY(-1px);
}

.crosshairs-btn-cvars {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.crosshairs-btn-cvars:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.crosshairs-btn-custom {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.crosshairs-btn-custom:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #fff;
}

/* ==========================================================================
   AJAX PAGINATION CONTROLS & EMPTY STATES
   ========================================================================== */

.crosshairs-pagination-wrap {
    margin-top: 36px;
}

.crosshairs-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.crosshairs-pagination-info {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

.crosshairs-pagination-info strong {
    color: #fff;
}

.crosshairs-pagination-info .text-lime {
    color: var(--brand-lime, #a3e635);
}

.crosshairs-pagination-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.crosshairs-page-btn,
.crosshairs-page-nav {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
}

.crosshairs-page-btn:hover:not(.disabled):not(:disabled),
.crosshairs-page-nav:hover:not(.disabled):not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
}

.crosshairs-page-btn.active {
    background: var(--brand-lime, #a3e635);
    border-color: var(--brand-lime, #a3e635);
    color: #0f172a;
    font-weight: 900;
    box-shadow: 0 0 16px rgba(163, 230, 53, 0.35);
}

.crosshairs-page-nav.disabled,
.crosshairs-page-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.crosshairs-page-ellipsis {
    color: #64748b;
    padding: 0 6px;
    font-weight: 800;
    font-size: 14px;
    user-select: none;
}

/* Empty State */
.crosshairs-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.crosshairs-empty-state i {
    font-size: 42px;
    color: #475569;
    margin-bottom: 14px;
    display: block;
}

.crosshairs-empty-state h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
}

.crosshairs-empty-state p {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
}

@media (max-width: 768px) {
    .crosshairs-pagination-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .crosshairs-pagination-buttons {
        justify-content: center;
    }
}

/* ==========================================================================
   GENERATOR MODE: Interactive Studio Canvas & Controls
   ========================================================================== */

.crosshairs-gen-grid {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 24px;
    align-items: start;
}

/* Left: Big Viewport Canvas */
.crosshairs-gen-viewport-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.crosshairs-gen-canvas-box {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 0.3s ease;
}

/* Target center lines */
.crosshairs-center-cross {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Recoil / Fire Animation Overlay */
.crosshairs-firing-flash {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.08s ease;
}

.crosshairs-firing-flash.active {
    opacity: 1;
}

/* Map selector toolbar */
.crosshairs-map-selector-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.crosshairs-map-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crosshairs-map-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.crosshairs-map-btn.active {
    background: var(--brand-lime, #a3e635);
    color: #0f172a;
    border-color: var(--brand-lime, #a3e635);
}

/* Recoil Fire Simulator Button */
.crosshairs-fire-test-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.crosshairs-fire-test-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}

/* Export & Import Row */
.crosshairs-gen-export-card {
    margin-top: 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.crosshairs-export-field-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.crosshairs-export-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-mono, monospace);
    font-size: 13px;
    outline: none;
}

.crosshairs-export-input:focus {
    border-color: var(--brand-lime, #a3e635);
}

.crosshairs-export-field-row .crosshairs-btn-copy {
    min-width: 120px;
    padding: 10px 18px;
    font-size: 13px;
    flex-shrink: 0;
}

/* Right: CVAR Controls & Sliders Panel */
.crosshairs-controls-panel {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.crosshairs-controls-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Preset Quick Loader Buttons */
.crosshairs-presets-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crosshairs-preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crosshairs-preset-btn:hover {
    background: var(--brand-lime, #a3e635);
    color: #0f172a;
    border-color: var(--brand-lime, #a3e635);
}

/* Slider Input Row */
.crosshairs-control-row {
    margin-bottom: 16px;
}

.crosshairs-control-label-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.crosshairs-control-label {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}

.crosshairs-control-val {
    font-size: 12px;
    font-weight: 800;
    color: var(--brand-lime, #a3e635);
    font-family: var(--font-mono, monospace);
}

.crosshairs-range-input {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.crosshairs-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-lime, #a3e635);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(163, 230, 53, 0.5);
    transition: transform 0.1s ease;
}

.crosshairs-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Switch & Checkbox Controls */
.crosshairs-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.crosshairs-toggle-label {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}

/* Color Presets Swatches */
.crosshairs-color-swatches {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.crosshairs-swatch {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

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

.crosshairs-swatch.active {
    border-color: #fff;
    transform: scale(1.15);
}

/* Modals & Toasts */
.crosshairs-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #fff;
    border: 1px solid var(--brand-lime, #a3e635);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(163, 230, 53, 0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.crosshairs-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .crosshairs-gen-grid {
        grid-template-columns: 1fr;
    }
    .crosshairs-gen-canvas-box {
        height: 380px;
    }
}

/* ==========================================================================
   PRO PLAYER PROFILE & SETTINGS.GG STYLE VIEW
   ========================================================================== */

.crosshairs-player-profile-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 16px 60px 16px;
}

/* Breadcrumbs */
.crosshairs-player-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 22px;
}

.crosshairs-back-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.crosshairs-back-link:hover {
    color: var(--brand-lime, #a3e635);
}

.crosshairs-crumb-sep {
    color: #475569;
}

.crosshairs-crumb-current {
    color: #cbd5e1;
    font-weight: 600;
}

/* Hero Profile Card */
.crosshairs-hero-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.crosshairs-hero-left {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.crosshairs-hero-avatar {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
    object-position: top center;
    background: radial-gradient(circle at 50% 25%, #334155, #0f172a);
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.crosshairs-hero-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crosshairs-hero-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.crosshairs-hero-nick {
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.crosshairs-hero-realname {
    font-size: 15px;
    color: #94a3b8;
    font-weight: 600;
}

.crosshairs-hero-role {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Profile Grid */
.crosshairs-profile-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.crosshairs-profile-col-left,
.crosshairs-profile-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Profile Cards & Viewport */
.crosshairs-profile-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.crosshairs-profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.crosshairs-profile-card-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crosshairs-card-header-link,
.crosshairs-card-header-btn {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-lime, #a3e635);
    background: rgba(163, 230, 53, 0.1);
    border: 1px solid rgba(163, 230, 53, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crosshairs-card-header-link:hover,
.crosshairs-card-header-btn:hover {
    background: var(--brand-lime, #a3e635);
    color: #0f172a;
}

.crosshairs-player-viewport {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 250px;
    margin-bottom: 14px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.85);
    transition: background-image 0.3s ease;
}

.crosshairs-player-crosshair-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 128px;
    height: 128px;
    max-width: 128px;
    max-height: 128px;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.95));
    z-index: 2;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.crosshairs-map-mini-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.crosshairs-mini-map-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crosshairs-mini-map-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.crosshairs-mini-map-btn.active {
    background: var(--brand-lime, #a3e635);
    color: #0f172a;
    border-color: var(--brand-lime, #a3e635);
    font-weight: 800;
}

.crosshairs-cmd-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    color: #cbd5e1;
    word-break: break-all;
    line-height: 1.5;
    user-select: all;
}

/* Settings Tables */
.crosshairs-table-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.crosshairs-table-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crosshairs-settings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.crosshairs-settings-table tr {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.08);
}

.crosshairs-settings-table tr:last-child {
    border-bottom: none;
}

.crosshairs-setting-name {
    padding: 9px 0;
    color: #94a3b8;
    font-weight: 600;
    width: 55%;
}

.crosshairs-setting-val {
    padding: 9px 0;
    color: #e2e8f0;
    font-weight: 700;
    text-align: right;
}

/* Card Button & Viewport Link Helpers */
.crosshairs-player-header-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.crosshairs-card-viewport {
    text-decoration: none;
    cursor: pointer;
}

.crosshairs-viewport-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    z-index: 3;
}

.crosshairs-card-viewport:hover .crosshairs-viewport-hint {
    opacity: 1;
    transform: translateY(0);
}

.crosshairs-btn-settings {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.crosshairs-btn-settings:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #fff;
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.crosshairs-gen-pro-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    pointer-events: none;
    z-index: 4;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.95));
}

.crosshairs-gen-pro-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(163, 230, 53, 0.35);
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--brand-lime, #a3e635);
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.crosshairs-gen-profile-btn {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    padding: 3px 8px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.crosshairs-gen-profile-btn:hover {
    background: rgba(56, 189, 248, 0.3);
    color: #fff;
}

@media (max-width: 992px) {
    .crosshairs-profile-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 20px !important;
        box-sizing: border-box !important;
    }
    .crosshairs-profile-col-left,
    .crosshairs-profile-col-right {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        gap: 16px !important;
    }
    .crosshairs-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   CSREP.GG STYLE: STUDIO TOOLBAR, COMMUNITY CROSSHAIRS & MODALS
   ========================================================================== */

/* Studio Top Action Bar */
.crosshairs-studio-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.studio-status-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-engine-badge {
    font-size: 11.5px;
    font-weight: 800;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.studio-engine-badge i {
    color: var(--brand-lime, #a3e635);
    font-size: 8px;
}

.studio-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-studio-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-studio-action:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
}

.btn-studio-share {
    background: rgba(163, 230, 53, 0.15);
    border-color: rgba(163, 230, 53, 0.35);
    color: var(--brand-lime, #a3e635);
}

.btn-studio-share:hover {
    background: var(--brand-lime, #a3e635);
    color: #0f172a;
    border-color: var(--brand-lime, #a3e635);
    box-shadow: 0 0 16px rgba(163, 230, 53, 0.4);
}

/* Community Crosshairs Section */
.community-crosshairs-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.community-header-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.community-title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin: 6px 0 6px 0;
    letter-spacing: -0.5px;
}

.community-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}

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

.community-tabs-switch {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.comm-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comm-tab-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.comm-tab-btn:hover:not(.active) {
    color: #e2e8f0;
}

.comm-share-cta-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12.5px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.comm-share-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    filter: brightness(1.1);
}

/* Community Cards Grid */
.community-crosshairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.community-crosshair-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(10px);
}

.community-crosshair-card:hover {
    transform: translateY(-4px);
    border-color: rgba(163, 230, 53, 0.35);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(163, 230, 53, 0.12);
}

.comm-card-preview {
    position: relative;
    height: 160px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.comm-card-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
}

.community-crosshair-svg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.95));
    pointer-events: none;
}

.comm-card-top-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none;
}

.comm-map-tag,
.comm-time-tag {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.comm-quick-inspect-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.2s ease;
    cursor: pointer;
}

.comm-card-preview:hover .comm-quick-inspect-btn {
    opacity: 1;
    transform: scale(1);
}

.comm-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

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

.comm-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comm-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.comm-author-initial {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comm-author-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    font-size: 11.5px;
}

.comm-author-name {
    color: #cbd5e1;
    font-weight: 600;
}

.comm-copies-counter {
    color: #64748b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comm-code-row {
    display: flex;
    width: 100%;
}

.comm-code-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #94a3b8;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 11px;
    padding: 6px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    outline: none;
    cursor: default;
}

.comm-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-comm-copy {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-comm-copy:hover {
    background: var(--brand-lime, #a3e635);
    color: #0f172a;
    border-color: var(--brand-lime, #a3e635);
}

.btn-comm-remix {
    flex: 1;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-comm-remix:hover {
    background: rgba(56, 189, 248, 0.3);
    color: #fff;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   MODALS: CSREP.GG STYLE INTERACTIVE MODALS
   ========================================================================== */

.crosshairs-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    padding: 20px;
}

.crosshairs-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.crosshairs-modal-dialog {
    background: linear-gradient(160deg, #131d33 0%, #0b1120 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.crosshairs-modal-backdrop.is-open .crosshairs-modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-dialog-lg {
    max-width: 860px;
}

.crosshairs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crosshairs-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.crosshairs-modal-subtitle {
    font-size: 12.5px;
    color: #94a3b8;
}

.crosshairs-modal-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.crosshairs-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.crosshairs-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.crosshairs-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0 0 20px 20px;
}

.crosshairs-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crosshairs-modal-label {
    font-size: 11.5px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crosshairs-modal-input-wrap {
    display: flex;
    gap: 8px;
    width: 100%;
}

.crosshairs-modal-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    padding: 10px 14px;
    outline: none;
    font-family: 'JetBrains Mono', Consolas, monospace;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.crosshairs-modal-input:focus {
    border-color: var(--brand-lime, #a3e635);
    box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.15);
}

.crosshairs-modal-paste-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 0 14px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.crosshairs-modal-paste-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
}

.crosshairs-modal-select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 13.5px;
    padding: 10px 14px;
    outline: none;
}

.crosshairs-modal-status {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.crosshairs-modal-status.is-valid {
    color: var(--brand-lime, #a3e635);
}

.crosshairs-modal-status.is-invalid {
    color: #f87171;
}

/* Import Modal Live Preview */
.import-preview-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
}

.import-preview-map-box {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.import-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.import-preview-svg-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.import-map-tags {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 3;
}

.import-map-pill {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.import-map-pill.active,
.import-map-pill:hover {
    color: #fff;
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
}

.import-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.import-spec-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.import-spec-key {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.import-spec-val {
    font-size: 12px;
    font-weight: 800;
    color: #e2e8f0;
}

/* Share Modal Mini Preview */
.share-mini-preview-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
}

.share-mini-preview-box {
    position: relative;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    flex-shrink: 0;
}

.share-mini-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.share-mini-svg-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.share-mini-code-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.share-mini-code-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
}

.share-mini-code-info code {
    font-family: monospace;
    font-size: 12px;
    color: var(--brand-lime, #a3e635);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Details Modal Grid */
.detail-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-viewport-box {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-viewport-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.detail-viewport-svg-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.detail-map-pills {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 4px;
    z-index: 3;
}

.detail-map-btn {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.detail-map-btn.active,
.detail-map-btn:hover {
    color: #fff;
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.detail-info-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-detail-remix-cta {
    margin-top: auto;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    font-size: 13.5px;
    font-weight: 800;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-detail-remix-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

/* Modal Action Buttons */
.crosshairs-btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.crosshairs-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.crosshairs-btn-action-primary {
    background: var(--brand-lime, #a3e635);
    border: none;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
    box-shadow: 0 0 16px rgba(163, 230, 53, 0.3);
}

.crosshairs-btn-action-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(163, 230, 53, 0.5);
    filter: brightness(1.05);
}

.crosshairs-btn-action-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==========================================================================
   CSREP.GG EXACT LANDSCAPE CARDS (Modern Valve CS2 Share Codes)
   ========================================================================== */
.community-crosshair-card.csrep-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b0f19;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.community-crosshair-card.csrep-card:hover {
    transform: translateY(-4px);
    border-color: rgba(163, 230, 53, 0.4);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(163, 230, 53, 0.15);
}

.community-crosshair-card.csrep-card .comm-card-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comm-badge-modern {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: rgba(11, 15, 25, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
    pointer-events: none;
    letter-spacing: 0.2px;
}

.comm-crosshair-center-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.comm-crosshair-center-wrap svg {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.95));
}

.comm-card-footer-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}

.comm-used-crosshair-text {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.comm-owner-name-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
}

.comm-author-avatar-mini {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
}

.comm-author-initial.comm-author-avatar-mini {
    background: rgba(56, 189, 248, 0.25) !important;
    color: #38bdf8 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
}

.comm-card-hover-actions {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(4px);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.community-crosshair-card.csrep-card:hover .comm-card-hover-actions {
    opacity: 1;
    pointer-events: auto;
}

.btn-comm-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-comm-action:hover {
    transform: translateY(-2px);
    background: var(--brand-lime, #a3e635);
    color: #0f172a;
    border-color: var(--brand-lime, #a3e635);
}

.btn-comm-remix:hover {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS (<= 992px, <= 768px, <= 480px)
   For Pro Crosshair Player Profiles (/crosshairs/player/*) & Generator Studio
   ========================================================================== */
@media (max-width: 992px) {
    .crosshairs-profile-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 20px !important;
        box-sizing: border-box !important;
    }
    .crosshairs-profile-col-left,
    .crosshairs-profile-col-right {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        gap: 16px !important;
    }
    .crosshairs-gen-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .crosshairs-hero-card {
        padding: 22px;
    }
    .community-crosshairs-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .crosshairs-module-wrapper,
    .crosshairs-player-profile-wrapper {
        padding: 14px 10px 40px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .crosshairs-profile-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 16px !important;
        box-sizing: border-box !important;
    }

    .crosshairs-profile-col-left,
    .crosshairs-profile-col-right {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        gap: 14px !important;
    }

    /* Player Profile Hero Card Mobile Stacking */
    .crosshairs-player-breadcrumbs {
        flex-wrap: wrap;
        font-size: 12px;
        gap: 6px;
        margin-bottom: 14px;
    }

    .crosshairs-hero-card {
        padding: 18px 14px !important;
        border-radius: 16px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center;
        gap: 16px !important;
    }

    .crosshairs-hero-left {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 12px !important;
        width: 100% !important;
    }

    .crosshairs-hero-avatar {
        width: 80px !important;
        height: 80px !important;
        border-radius: 16px !important;
        margin: 0 auto;
    }

    .crosshairs-hero-info {
        align-items: center !important;
        text-align: center;
        width: 100%;
    }

    .crosshairs-hero-badge-row {
        justify-content: center !important;
        gap: 6px;
    }

    .crosshairs-hero-nick {
        font-size: 26px !important;
        text-align: center;
        letter-spacing: -0.3px;
    }

    .crosshairs-hero-realname {
        font-size: 13.5px;
    }

    .crosshairs-hero-role {
        font-size: 12px;
    }

    .crosshairs-hero-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-top: 4px;
    }

    .crosshairs-hero-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    /* Player Crosshair Viewport */
    .crosshairs-player-viewport {
        height: 220px !important;
        border-radius: 14px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .csstats-viewport-topbar {
        top: 8px !important;
        left: 8px !important;
        right: 8px !important;
        gap: 6px !important;
    }

    .csstats-pro-badge {
        padding: 4px 8px !important;
        font-size: 11px !important;
        gap: 6px !important;
        max-width: 58% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .csstats-zoom-toolbar {
        padding: 2px 4px !important;
        gap: 2px !important;
        flex-shrink: 0 !important;
    }

    .csstats-zoom-label {
        display: none !important;
    }

    .csstats-zoom-btn {
        padding: 2px 7px !important;
        font-size: 10.5px !important;
    }

    .crosshairs-map-mini-bar {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 4px 2px 10px 2px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .crosshairs-map-mini-bar::-webkit-scrollbar {
        display: none;
    }

    .crosshairs-mini-map-btn {
        flex-shrink: 0 !important;
        padding: 5px 12px !important;
        font-size: 11px !important;
    }

    /* Export Fields on Mobile */
    .crosshairs-export-field-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .crosshairs-export-input {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 11.5px !important;
        padding: 9px 12px !important;
    }

    .crosshairs-export-field-row .crosshairs-btn-copy,
    .crosshairs-export-field-row .crosshairs-btn-cvars,
    .crosshairs-export-field-row .btn {
        width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        padding: 10px !important;
        font-size: 12px !important;
        justify-content: center !important;
    }

    /* Card Header and Header Action Buttons on Mobile (Prevent Stretching) */
    .crosshairs-profile-card-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        margin-bottom: 12px !important;
    }

    .crosshairs-profile-card-title {
        font-size: 12.5px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    .crosshairs-profile-card-header .crosshairs-card-header-btn,
    .crosshairs-profile-card-header .crosshairs-btn-copy,
    .crosshairs-profile-card-header .crosshairs-card-header-link {
        width: auto !important;
        min-width: unset !important;
        max-width: fit-content !important;
        padding: 4px 10px !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        background: rgba(163, 230, 53, 0.12) !important;
        color: var(--brand-lime, #a3e635) !important;
        border: 1px solid rgba(163, 230, 53, 0.28) !important;
        border-radius: 6px !important;
    }

    /* Settings Tables & Command Boxes on Mobile */
    .crosshairs-table-card,
    .crosshairs-profile-card {
        padding: 16px 14px !important;
        border-radius: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .crosshairs-cmd-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        font-size: 11px !important;
        padding: 10px 12px !important;
    }

    .crosshairs-settings-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        font-size: 11.5px !important;
    }

    .crosshairs-settings-table td {
        padding: 8px 6px !important;
        word-break: break-word !important;
    }

    .crosshairs-setting-name {
        width: 50% !important;
    }

    .crosshairs-setting-val {
        width: 50% !important;
        text-align: right !important;
    }

    .crosshairs-gear-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Generator Studio Mobile Layout */
    .crosshairs-header {
        margin-bottom: 20px;
    }

    .crosshairs-title {
        font-size: 24px !important;
    }

    .crosshairs-subtitle {
        font-size: 13px !important;
    }

    .crosshairs-nav-tabs {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .crosshairs-nav-tab {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 12px;
    }

    .crosshairs-gen-viewport-card {
        padding: 14px !important;
    }

    .crosshairs-studio-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 10px !important;
    }

    .studio-actions-group {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .btn-studio-action {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 4px !important;
        font-size: 11px !important;
        text-align: center;
        gap: 4px;
    }

    .btn-studio-action span {
        white-space: nowrap;
    }

    .crosshairs-gen-canvas-box {
        height: 270px !important;
        min-height: 240px !important;
        max-height: 300px !important;
    }

    .crosshairs-map-selector-bar {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 8px 0 !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .crosshairs-map-selector-bar::-webkit-scrollbar {
        display: none;
    }

    .crosshairs-map-btn {
        flex-shrink: 0 !important;
        padding: 5px 11px !important;
        font-size: 11px !important;
    }

    .crosshairs-fire-test-btn {
        flex-shrink: 0 !important;
        margin-left: 0 !important;
        padding: 5px 12px !important;
        font-size: 11px !important;
    }

    .crosshairs-presets-row {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 4px 0 10px 0 !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .crosshairs-presets-row::-webkit-scrollbar {
        display: none;
    }

    .crosshairs-preset-btn {
        flex-shrink: 0 !important;
        padding: 5px 11px !important;
        font-size: 11.5px !important;
    }

    .crosshairs-controls-panel {
        padding: 16px 14px !important;
    }

    /* Community Feed on Mobile */
    .community-header-wrap {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
    }

    .community-header-actions {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .community-tabs-switch {
        width: 100%;
        display: flex;
    }

    .comm-tab-btn {
        flex: 1;
        justify-content: center;
    }

    .comm-share-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    .community-crosshairs-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Modals on Mobile */
    .crosshairs-modal-dialog {
        max-width: 95% !important;
        padding: 0 !important;
        max-height: 92vh !important;
        border-radius: 16px !important;
    }

    .crosshairs-modal-header {
        padding: 16px 18px !important;
    }

    .crosshairs-modal-body {
        padding: 16px 18px !important;
    }

    .crosshairs-modal-footer {
        padding: 14px 18px !important;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .crosshairs-modal-footer .crosshairs-btn-cancel,
    .crosshairs-modal-footer .crosshairs-btn-action-primary {
        width: 100%;
        justify-content: center;
    }

    .import-preview-map-box {
        height: 180px !important;
    }

    .import-specs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==========================================================================
   CSREP.GG REPLICA: COMMUNITY CROSSHAIRS, DETAIL MODAL & EDITOR MODAL
   ========================================================================== */

.csrep-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px 60px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.csrep-page-header {
    margin-bottom: 24px;
}

.csrep-breadcrumbs {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}

.csrep-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.csrep-header-text {
    max-width: 650px;
}

.csrep-main-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.csrep-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* CSrep Toolbar (Latest, Trending, Top + New Crosshair) */
.csrep-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    padding-bottom: 0;
}

.csrep-tabs {
    display: flex;
    gap: 8px;
}

.csrep-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.csrep-tab-btn:hover {
    color: #ffffff;
}

.csrep-tab-btn.active {
    color: #ffffff;
    font-weight: 700;
    border-bottom: 2px solid #00df82;
}

.csrep-btn-new-crosshair {
    background: #00df82;
    color: #000000;
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 16px rgba(0, 223, 130, 0.35);
    transition: all 0.2s ease;
}

.csrep-btn-new-crosshair:hover {
    background: #00fa92;
    box-shadow: 0 0 24px rgba(0, 223, 130, 0.55);
    transform: translateY(-1px);
}

/* 4-Column 16:9 Cards Grid */
.csrep-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.csrep-crosshair-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #0c1017;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.22s ease;
}

.csrep-crosshair-card:hover {
    border-color: rgba(0, 223, 130, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
}

.csrep-card-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csrep-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 16, 23, 0.15) 0%, rgba(12, 16, 23, 0.35) 45%, rgba(12, 16, 23, 0.95) 100%);
    pointer-events: none;
}

.csrep-badge-modern {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: rgba(12, 16, 23, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.csrep-card-crosshair-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.csrep-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.csrep-card-info-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 58%;
    overflow: hidden;
}

.csrep-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csrep-card-meta {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.csrep-card-author-right {
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 42%;
    overflow: hidden;
}

.csrep-card-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.csrep-card-initial {
    background: #1e293b;
    color: #00df82;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csrep-card-author-name {
    font-size: 11.5px;
    color: #cbd5e1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   MODAL DIALOGS (CSrep Architecture)
   ========================================================================== */

.csrep-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.csrep-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Detail Modal */
.csrep-detail-dialog {
    background: #0c1017;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    width: 960px;
    max-width: 95vw;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
}

.csrep-detail-canvas-col {
    position: relative;
    width: 100%;
    background: #070a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.csrep-detail-canvas-box {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.csrep-detail-canvas-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.9);
    transition: filter 0.3s ease;
    transform: scale(1.05);
}

.csrep-detail-canvas-bg.no-blur {
    filter: blur(0px) brightness(1);
}

.csrep-detail-top-controls {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.csrep-blur-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(12, 16, 23, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
}

.csrep-toggle-input {
    display: none;
}

.csrep-toggle-slider {
    position: relative;
    width: 28px;
    height: 16px;
    background: #334155;
    border-radius: 20px;
    transition: background 0.2s ease;
}

.csrep-toggle-slider::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    left: 2px;
    top: 2px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.csrep-toggle-input:checked + .csrep-toggle-slider {
    background: #00df82;
}

.csrep-toggle-input:checked + .csrep-toggle-slider::before {
    transform: translateX(12px);
}

.csrep-map-select {
    background: rgba(12, 16, 23, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    outline: none;
    cursor: pointer;
    text-transform: uppercase;
}

.csrep-detail-crosshair-wrap {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.csrep-detail-info-col {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #0c1017;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;
}

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

.csrep-detail-views {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.csrep-modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    transition: color 0.2s ease;
}

.csrep-modal-close-btn:hover {
    color: #ffffff;
}

.csrep-detail-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.csrep-detail-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.csrep-detail-author-meta {
    display: flex;
    flex-direction: column;
}

.csrep-detail-author-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.csrep-detail-time {
    font-size: 11px;
    color: #64748b;
}

.csrep-detail-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.csrep-detail-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.csrep-detail-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
}

.csrep-detail-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.csrep-detail-input {
    width: 100%;
    background: #070a0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 9px 38px 9px 12px;
    color: #cbd5e1;
    font-family: monospace;
    font-size: 12px;
    outline: none;
}

.csrep-detail-textarea {
    width: 100%;
    background: #070a0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 38px 10px 12px;
    color: #cbd5e1;
    font-family: monospace;
    font-size: 11px;
    outline: none;
    resize: none;
    height: 115px;
    line-height: 1.45;
}

.csrep-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.csrep-icon-btn-textarea {
    top: 18px;
    transform: none;
}

.csrep-icon-btn:hover {
    color: #00df82;
}

.csrep-btn-remix {
    width: 100%;
    background: #00df82;
    color: #000000;
    font-weight: 800;
    font-size: 13.5px;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    box-shadow: 0 0 16px rgba(0, 223, 130, 0.35);
    transition: all 0.2s ease;
}

.csrep-btn-remix:hover {
    background: #00fa92;
    box-shadow: 0 0 24px rgba(0, 223, 130, 0.55);
}

/* ==========================================================================
   EDITOR MODAL (CSrep Style)
   ========================================================================== */

.csrep-editor-dialog {
    background: #0c1017;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    width: 720px;
    max-width: 95vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
}

.csrep-editor-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.csrep-editor-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.csrep-editor-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 223, 130, 0.12);
    border: 1px solid rgba(0, 223, 130, 0.3);
    color: #00df82;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.csrep-editor-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #ffffff;
}

.csrep-editor-subtitle {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.csrep-editor-body {
    padding: 20px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.csrep-editor-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.csrep-editor-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.csrep-editor-input {
    background: #070a0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
}

.csrep-editor-input:focus {
    border-color: #00df82;
}

.csrep-editor-select {
    background: #070a0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.csrep-editor-preview-banner {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #070a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.csrep-editor-preview-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.9);
    transition: filter 0.3s ease;
    transform: scale(1.05);
}

.csrep-editor-preview-bg.no-blur {
    filter: blur(0px) brightness(1);
}

.csrep-editor-preview-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.csrep-editor-crosshair-wrap {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.csrep-editor-controls-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.csrep-ctrl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #070a0f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.csrep-ctrl-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
}

.csrep-editor-ctrl-select {
    background: #0c1017;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    padding: 5px 10px;
    outline: none;
    cursor: pointer;
    min-width: 130px;
}

.csrep-ctrl-color-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 55%;
}

.csrep-color-picker-input {
    width: 28px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.csrep-slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 55%;
}

.csrep-range-slider {
    flex: 1;
    accent-color: #00df82;
    cursor: pointer;
    height: 4px;
}

.csrep-val-pill {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    min-width: 32px;
    text-align: right;
}

.csrep-editor-footer {
    padding: 14px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #090d14;
}

.csrep-editor-footer-left {
    display: flex;
    gap: 8px;
}

.csrep-editor-footer-right {
    display: flex;
    gap: 8px;
}

.csrep-btn-secondary {
    background: #131924;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.csrep-btn-secondary:hover {
    background: #1a2332;
    color: #ffffff;
}

.csrep-btn-cancel {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.csrep-btn-cancel:hover {
    color: #ffffff;
}

.csrep-btn-save {
    background: #00df82;
    color: #000000;
    font-size: 12.5px;
    font-weight: 800;
    padding: 8px 22px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(0, 223, 130, 0.35);
    transition: all 0.2s ease;
}

.csrep-btn-save:hover {
    background: #00fa92;
    box-shadow: 0 0 20px rgba(0, 223, 130, 0.55);
}

.csrep-btn-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Sub-Modals (Import & Export) */
.csrep-import-dialog {
    background: #0c1017;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    width: 560px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
}

.csrep-modal-status {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 4px;
}

.csrep-modal-status.is-valid {
    color: #00df82;
}

.csrep-modal-status.is-invalid {
    color: #ef4444;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .csrep-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .csrep-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .csrep-detail-dialog {
        grid-template-columns: 1fr;
        max-height: 94vh;
    }
    .csrep-detail-canvas-box {
        min-height: 260px;
    }
    .csrep-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .csrep-cards-grid {
        grid-template-columns: 1fr;
    }
    .csrep-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .csrep-btn-new-crosshair {
        justify-content: center;
    }
    .csrep-editor-footer {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .csrep-editor-footer-left,
    .csrep-editor-footer-right {
        width: 100%;
        justify-content: stretch;
    }
    .csrep-editor-footer-left button,
    .csrep-editor-footer-right button {
        flex: 1;
        justify-content: center;
    }
}

/* =========================================================================
   CSSTATS.GG-STYLE CS2 CROSSHAIR GENERATOR WORKBENCH & 1X SCALING
   ========================================================================= */

.csstats-workbench-wrapper {
    margin-bottom: 40px;
}

/* Panoramic Map Viewport */
.csstats-workbench-viewport {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), inset 0 0 50px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 0.3s ease, background-color 0.3s ease;
}

@media (max-width: 768px) {
    .csstats-workbench-viewport {
        height: 280px;
    }
}

/* Top Viewport Control Bar */
.csstats-viewport-topbar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 10;
    pointer-events: none;
}

.csstats-viewport-topbar > * {
    pointer-events: auto;
}

.csstats-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(163, 230, 53, 0.35);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-lime, #a3e635);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.csstats-zoom-toolbar {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 3px 6px;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.csstats-zoom-label {
    font-size: 10.5px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
    padding-left: 6px;
    padding-right: 2px;
}

.csstats-zoom-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.csstats-zoom-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.csstats-zoom-btn.active {
    background: var(--brand-lime, #a3e635);
    color: #0f172a;
    box-shadow: 0 0 10px rgba(163, 230, 53, 0.4);
}

.csstats-fire-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.85) 0%, rgba(220, 38, 38, 0.95) 100%);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
    transition: all 0.2s ease;
}

.csstats-fire-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.95) 0%, rgba(239, 68, 68, 1) 100%);
}

.csstats-fire-btn:active {
    transform: translateY(1px);
}

/* Center Canvas */
.csstats-canvas-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.csstats-pro-crosshair-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 128px;
    height: 128px;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.95));
}

#crosshairFiringFlash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 240, 138, 0.95) 0%, rgba(249, 115, 22, 0.7) 45%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.05s ease, transform 0.05s ease;
    z-index: 3;
}

#crosshairFiringFlash.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.8);
}

/* Bottom Map Selector Bar */
.csstats-map-bar {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 10;
}

.crosshairs-map-btn {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crosshairs-map-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.crosshairs-map-btn.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Share Code Strip */
.csstats-sharecode-bar {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr;
    gap: 16px;
    margin-top: 18px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
}

@media (max-width: 900px) {
    .csstats-sharecode-bar {
        grid-template-columns: 1fr;
    }
}

.csstats-sharecode-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.csstats-bar-label {
    font-size: 11.5px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.csstats-bar-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.csstats-bar-input:focus {
    border-color: #38bdf8;
}

/* Studio Controls Grid */
.csstats-studio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.csstats-control-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.csstats-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.csstats-ctrl-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csstats-ctrl-label {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}

.csstats-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.csstats-val-pill {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand-lime, #a3e635);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.csstats-range-slider {
    width: 100%;
    accent-color: var(--brand-lime, #a3e635);
    cursor: pointer;
}

/* Style Pills */
.csstats-style-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.crosshairs-style-btn {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.crosshairs-style-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.crosshairs-style-btn.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
}

/* Toggles Grid */
.csstats-toggles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.csstats-toggle-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease;
}

.csstats-toggle-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.csstats-toggle-box input[type="checkbox"] {
    accent-color: var(--brand-lime, #a3e635);
    cursor: pointer;
}

.csstats-toggle-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #cbd5e1;
}

/* Swatches Grid */
.csstats-swatches-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.crosshairs-swatch {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.crosshairs-swatch.active {
    border-color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.csstats-color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.csstats-color-picker-input {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.csstats-color-hex-label {
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    font-weight: 800;
    color: var(--brand-lime, #a3e635);
}

/* Pro Presets Grid */
.csstats-presets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

@media (max-width: 480px) {
    .csstats-presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.crosshairs-preset-btn {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.crosshairs-preset-btn:hover {
    background: rgba(163, 230, 53, 0.15);
    border-color: var(--brand-lime, #a3e635);
    color: var(--brand-lime, #a3e635);
}

/* Community Publish Box */
.csstats-publish-box {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.csstats-publish-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Community Section below Workbench */
.csstats-community-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}




