/* SteamID modal overlay and box */
.steamid-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(6px);
}

.steamid-modal {
    background: linear-gradient(135deg, rgba(41, 40, 40, 0.95), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(255, 120, 0, 0.3);
    border-radius: 12px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 120, 0, 0.1);
    animation: slideUp 0.4s ease;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.steamid-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 120, 0, 0.05), rgba(41, 40, 40, 0.05));
    transform: skewY(-2deg);
    z-index: -1;
}

.steamid-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 16px;
    border-bottom: 1px solid rgba(255, 120, 0, 0.2);
}

.steamid-modal-header h3 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color, #ff7800);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px var(--glow-color, rgba(255, 120, 0, 0.5));
}

.steamid-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.steamid-modal-close:hover {
    color: var(--primary-color, #ff7800);
    background: rgba(255, 120, 0, 0.1);
    text-shadow: 0 0 6px var(--glow-color, rgba(255, 120, 0, 0.6));
}

.steamid-modal-body {
    padding: 20px 28px;
}

.steamid-modal-body p {
    margin: 0 0 16px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.5;
}

.steamid-modal-body strong {
    color: var(--primary-color, #ff7800);
    font-weight: 600;
    text-shadow: 0 0 5px var(--glow-color, rgba(255, 120, 0, 0.4));
}

.steamid-modal-body .form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 120, 0, 0.25);
    background: rgba(255, 120, 0, 0.08);
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.steamid-modal-body .form-input:focus {
    outline: none;
    border-color: var(--primary-color, #ff7800);
    background: rgba(255, 120, 0, 0.12);
    box-shadow: 0 0 12px var(--glow-color, rgba(255, 120, 0, 0.4));
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.steamid-modal-body .form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.steamid-modal-body .help-text {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.4;
}

.steamid-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    padding: 16px 28px 24px;
}

.steamid-modal-cancel,
.steamid-modal-pay {
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.steamid-modal-cancel {
    background: linear-gradient(332deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.steamid-modal-cancel:hover {
    background: linear-gradient(332deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.steamid-modal-pay {
    background: linear-gradient(332deg, #ff780029 0%, #ff45003b 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 120, 0, 0.4);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.steamid-modal-pay:hover:not(:disabled) {
    background: linear-gradient(332deg, #ff880040 0%, #ff550050 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 120, 0, 0.4);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.steamid-modal-pay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    text-shadow: none;
}

.steamid-modal-pay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color, #ff7800);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    box-shadow: 0 0 8px var(--glow-color, rgba(255, 120, 0, 0.6));
}

.steamid-modal-pay:hover::after {
    transform: scaleX(1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
