/* Premium UI Styles - Glassmorphism & Animations */

:root {
    --premium-blue: #38bdf8;
    --premium-blue-dark: #0284c7;
    --premium-purple: #a855f7;
    --premium-purple-dark: #7e22ce;
    --premium-emerald: #10b981;
    --premium-emerald-dark: #059669;
    --premium-red: #ef4444;
    --premium-red-dark: #b91c1c;
    --premium-glass-bg: rgba(26, 11, 46, 0.85);
    --premium-glass-border: rgba(168, 85, 247, 0.3);
}

/* Modal Backdrop */
.premium-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.premium-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content */
.premium-modal-card {
    background: var(--premium-glass-bg);
    border: 1px solid var(--premium-glass-border);
    border-radius: 24px;
    width: 90%;
    max-width: 320px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-modal-overlay.active .premium-modal-card {
    transform: scale(1);
}

.premium-modal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.premium-modal-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--premium-glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.premium-modal-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, var(--premium-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.premium-modal-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 20px;
}

.premium-modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    color: white;
    font-size: 14px;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s;
}

.premium-modal-input:focus {
    border-color: var(--premium-blue);
}

.premium-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.premium-btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.premium-btn-primary {
    background: var(--premium-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.premium-btn-primary:hover {
    background: var(--premium-blue-dark);
    transform: translateY(-2px);
}

.premium-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast System */
.premium-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-toast {
    background: rgba(26, 11, 46, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--premium-glass-border);
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    min-width: 250px;
    font-size: 13px;
}

@keyframes toastIn {
    from { transform: translateX(100%) scale(0.8); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

.premium-toast.fade-out {
    animation: toastOut 0.4s ease forwards;
}

@keyframes toastOut {
    to { transform: translateX(100%) scale(0.8); opacity: 0; }
}

.premium-toast-icon {
    font-size: 20px;
}

.premium-toast-success .premium-toast-icon { color: var(--premium-emerald); }
.premium-toast-error .premium-toast-icon { color: var(--premium-red); }
.premium-toast-info .premium-toast-icon { color: var(--premium-blue); }
