/* ===== CURRENCY PANEL - Treasury Vault ===== */
#currency-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;
}

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

/* Scanline overlay */
#currency-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;
}

#currency-panel {
    width: 90%;
    max-width: 360px;
    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(--emerald);
    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(34, 197, 94, 0.1),
        inset 0 1px 0 var(--inner-light);
}

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

.currency-panel-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;
}

.currency-panel-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--emerald);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.currency-panel-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;
}

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

.currency-panel-body {
    padding: 16px;
}

.currency-card {
    background: var(--void);
    border: 1px solid var(--steel);
    border-left: 3px solid var(--steel);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

.currency-card:last-child {
    margin-bottom: 0;
}

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

.currency-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

.currency-card-icon.cash {
    background: linear-gradient(135deg, var(--emerald), #15803d);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.currency-card-icon.respect {
    background: linear-gradient(135deg, var(--violet), #7c3aed);
    color: white;
    box-shadow: 0 4px 12px var(--violet-glow);
}

.currency-card-icon.intel {
    background: linear-gradient(135deg, var(--azure), var(--azure-dim));
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.currency-card-icon.cigarettes {
    background: linear-gradient(135deg, var(--ember), #c44a15);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.currency-card-details {
    display: flex;
    flex-direction: column;
}

.currency-card-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.currency-card-amount {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
}

.currency-card-amount.cash { color: var(--emerald); text-shadow: 0 0 10px rgba(34, 197, 94, 0.3); }
.currency-card-amount.respect { color: var(--violet); text-shadow: 0 0 10px var(--violet-glow); }
.currency-card-amount.intel { color: var(--azure); text-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
.currency-card-amount.income { color: var(--emerald); text-shadow: 0 0 10px rgba(34, 197, 94, 0.3); }
.currency-card-amount.cigarettes { color: var(--ember); text-shadow: 0 0 10px rgba(249, 115, 22, 0.3); }

.currency-income-badge {
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 3px;
}

.income-rate {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--emerald);
}

.currency-income-badge.cigarettes {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.income-rate.cigarettes {
    color: var(--ember);
}

.currency-card-icon.income {
    background: linear-gradient(135deg, var(--emerald), #15803d);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.income-card {
    border-left-color: var(--emerald);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.05), var(--void));
}

.currency-progress-bar {
    height: 6px;
    background: var(--steel);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.currency-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.currency-progress-fill.cash {
    background: linear-gradient(90deg, #15803d, var(--emerald));
}

.currency-progress-fill.respect {
    background: linear-gradient(90deg, #7c3aed, var(--violet));
}

.currency-progress-fill.intel {
    background: linear-gradient(90deg, var(--azure-dim), var(--azure));
}

.currency-progress-fill.cigarettes {
    background: linear-gradient(90deg, #c44a15, var(--ember));
}

.currency-progress-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.currency-refill-btn {
    width: 100%;
    padding: 12px;
    background:
        linear-gradient(180deg,
            var(--graphite) 0%,
            var(--slate) 100%
        );
    border: 1px solid var(--steel);
    border-left: 3px solid var(--violet-dim);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.currency-refill-btn:hover {
    border-color: var(--violet-dim);
    border-left-color: var(--violet);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    color: var(--violet-bright);
}

.currency-refill-btn:active {
    transform: translateY(0);
}

.currency-refill-btn .ad-icon {
    font-size: 1rem;
}

.currency-refill-btn.cash:hover {
    border-left-color: var(--emerald);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
    color: var(--emerald);
}

.currency-refill-btn.respect:hover {
    border-left-color: var(--violet);
    box-shadow: 0 0 20px var(--violet-glow);
    color: var(--violet-bright);
}

.currency-refill-btn.intel:hover {
    border-left-color: var(--azure);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
    color: var(--azure);
}

.currency-refill-btn.cigarettes:hover {
    border-left-color: var(--ember);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
    color: var(--ember);
}

