/* ===== UNLOCKS PANEL - Street Cred Progression ===== */
#unlocks-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#unlocks-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Scanline overlay */
#unlocks-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(168, 85, 247, 0.02) 2px,
        rgba(168, 85, 247, 0.02) 4px
    );
    pointer-events: none;
}

#unlocks-panel {
    width: 90%;
    max-width: 360px;
    max-height: 80vh;
    background:
        linear-gradient(180deg,
            rgba(24, 24, 42, 0.98) 0%,
            rgba(16, 16, 24, 0.98) 100%
        );
    border: 1px solid var(--steel);
    border-top: 2px solid var(--violet);
    border-radius: 4px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(168, 85, 247, 0.15),
        inset 0 1px 0 var(--inner-light);
    display: flex;
    flex-direction: column;
}

#unlocks-overlay.visible #unlocks-panel {
    transform: scale(1) translateY(0);
}

.unlocks-header {
    padding: 14px 18px;
    background:
        linear-gradient(180deg,
            var(--graphite) 0%,
            var(--slate) 100%
        );
    border-bottom: 1px solid var(--steel);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.unlocks-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.unlocks-level-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(180deg, var(--graphite), var(--void));
    border: 2px solid var(--violet);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px var(--violet-glow);
}

.unlocks-level-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.45rem;
    font-weight: 600;
    color: var(--violet);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.unlocks-level-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1;
    text-shadow: 0 0 10px var(--violet-glow);
}

.unlocks-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--violet);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.unlocks-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.unlocks-close {
    width: 26px;
    height: 26px;
    background: var(--steel);
    border: 1px solid var(--iron);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.unlocks-close:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    color: white;
}

.unlocks-body {
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1;
}

.unlock-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--void);
    border: 1px solid var(--steel);
    border-left: 3px solid var(--steel);
    border-radius: 4px;
    transition: all 0.15s ease;
}

.unlock-item:last-child {
    margin-bottom: 0;
}

.unlock-item.unlocked {
    border-left-color: var(--emerald);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.05), transparent);
}

.unlock-item.current {
    border-left-color: var(--violet);
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.08), transparent);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.unlock-item.locked {
    opacity: 0.5;
}

.unlock-level {
    width: 32px;
    height: 32px;
    background: var(--slate);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    border: 1px solid var(--steel);
}

.unlock-item.unlocked .unlock-level {
    background: var(--emerald);
    color: white;
    border-color: var(--emerald);
}

.unlock-item.current .unlock-level {
    background: var(--violet);
    color: white;
    border-color: var(--violet);
    box-shadow: 0 0 12px var(--violet-glow);
}

.unlock-content {
    flex: 1;
    min-width: 0;
}

.unlock-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.unlock-item.locked .unlock-name {
    color: var(--text-muted);
}

.unlock-description {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.unlock-status {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 3px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.unlock-item.unlocked .unlock-status {
    background: rgba(34, 197, 94, 0.15);
    color: var(--emerald);
}

.unlock-item.current .unlock-status {
    background: rgba(168, 85, 247, 0.15);
    color: var(--violet);
}

.unlock-item.locked .unlock-status {
    background: var(--steel);
    color: var(--text-dim);
}

.unlock-claim-btn {
    padding: 8px 16px;
    background: linear-gradient(180deg, var(--violet-dim), var(--violet));
    border: none;
    border-radius: 4px;
    color: white;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.unlock-claim-btn:hover {
    background: linear-gradient(180deg, var(--violet), var(--violet-bright));
    box-shadow: 0 4px 16px var(--violet-glow);
}

.unlock-claim-btn:active {
    transform: scale(0.98);
}

.unlock-claim-btn:disabled {
    background: var(--steel);
    color: var(--text-dim);
    cursor: not-allowed;
}

.unlock-claim-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Respect badge clickable */
#respect-badge {
    cursor: pointer;
}

#respect-badge:hover .respect-inner {
    border-color: var(--violet);
}

#respect-badge:active {
    transform: scale(0.95);
}

/* Currency slot clickable */
.currency-slot {
    cursor: pointer;
}

.currency-slot:active {
    transform: scale(0.98);
}

