/* 
 * SpaceDisc - Custom Notification System (Cyberpunk Toasts)
 */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 450px;
    background: rgba(15, 15, 23, 0.95);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 12px;
    padding: 18px 22px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast.active {
    transform: translateX(0);
}

.toast::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 6px;
    background: var(--toast-color, #b026ff);
}

.toast-icon {
    font-size: 1.4rem;
    color: var(--toast-color, #b026ff);
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    color: var(--toast-color, #b026ff);
}

.toast-message {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.toast-close {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #fff;
}

/* Tipos de Toast Padrão */
.toast-success { --toast-color: #2ecc71; box-shadow: 0 0 20px rgba(46, 204, 113, 0.2); border-color: rgba(46, 204, 113, 0.3); }
.toast-error   { --toast-color: #ff3e3e; box-shadow: 0 0 20px rgba(255, 62, 62, 0.2); border-color: rgba(255, 62, 62, 0.3); }
.toast-info    { --toast-color: #b026ff; box-shadow: 0 0 20px rgba(176, 38, 255, 0.2); border-color: rgba(176, 38, 255, 0.3); }
.toast-warning { --toast-color: #f1c40f; box-shadow: 0 0 20px rgba(241, 196, 15, 0.2); border-color: rgba(241, 196, 15, 0.3); }

/* Tipos de Toast Temáticos (Polling DB) */
.toast-cyber-xp       { --toast-color: #00f0ff; box-shadow: 0 0 25px rgba(0, 240, 255, 0.3); border-color: rgba(0, 240, 255, 0.5); }
.toast-cyber-moeda    { --toast-color: #00ff66; box-shadow: 0 0 25px rgba(0, 255, 102, 0.3); border-color: rgba(0, 255, 102, 0.5); }
.toast-cyber-insignia { --toast-color: #ffd700; box-shadow: 0 0 25px rgba(255, 215, 0, 0.3); border-color: rgba(255, 215, 0, 0.5); }
.toast-cyber-item     { --toast-color: #ff00ff; box-shadow: 0 0 25px rgba(255, 0, 255, 0.3); border-color: rgba(255, 0, 255, 0.5); }
.toast-cyber-sistema  { --toast-color: #ff0055; box-shadow: 0 0 25px rgba(255, 0, 85, 0.3); border-color: rgba(255, 0, 85, 0.5); }

/* Barra de progresso interna */
.toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px; width: 100%;
    background: rgba(255, 255, 255, 0.1);
}
.toast-progress-fill { height: 100%; background: var(--toast-color, #b026ff); width: 0%; }

/* SISTEMA DE CONFIRMAÇÃO (MODAL) */
.sd-confirm-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.3s ease;
}

.sd-confirm-card {
    background: #0d0d12;
    border: 1px solid rgba(176, 38, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 450px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(176, 38, 255, 0.1);
    animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sd-confirm-icon {
    font-size: 3rem;
    color: #b026ff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(176, 38, 255, 0.5);
    display: flex; justify-content: center; align-items: center;
}

.sd-confirm-title {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.sd-confirm-message {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.sd-confirm-actions {
    display: flex;
    gap: 15px;
}

.sd-confirm-btn {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.sd-confirm-btn.sd-cancel {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.sd-confirm-btn.sd-cancel:hover { background: rgba(255, 255, 255, 0.1); }

.sd-confirm-btn.sd-confirm {
    background: #b026ff;
    color: #fff;
}
.sd-confirm-btn.sd-confirm:hover {
    background: #c359ff;
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.5);
    transform: translateY(-2px);
}

.sd-confirm-overlay .sd-prompt-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: #ffaa00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
    text-align: center;
    margin-bottom: 20px;
}

.sd-confirm-overlay .sd-prompt-input:focus {
    border-color: #ffaa00;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.2);
    background: rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
