/* --- GLOBAL ANIMATIONS STYLES --- */

/* Cursor Styles */
#cursor-dot, #cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #b100cd !important;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483647 !important;
    transition: width 0.3s, height 0.3s, background 0.3s, opacity 0.3s;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

#cursor-ring {
    width: 40px;
    height: 40px;
    background: transparent !important;
    border: 1.5px solid rgba(177, 0, 205, 0.8) !important;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

/* Hide native cursor when custom cursor is active */
body.custom-cursor-active,
body.custom-cursor-active *,
body.custom-cursor-active iframe {
    cursor: none !important;
}

/* Hover State */
body.hovering #cursor-ring {
    width: 60px;
    height: 60px;
    background: rgba(177, 0, 205, 0.1);
    border-color: rgba(177, 0, 205, 0.8);
}

body.hovering #cursor-dot {
    width: 4px;
    height: 4px;
    opacity: 0.5;
}

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    display: block;
}

/* Mobile & Tablet - Hide Cursor */
@media (max-width: 768px) {
    #cursor-dot, #cursor-ring {
        display: none !important;
    }
}

/* --- GLOBAL MARKETING POPUPS --- */

@keyframes popupSlideIn {
    0% { transform: translateX(120%) scale(0.9); opacity: 0; }
    70% { transform: translateX(-10%) scale(1.02); opacity: 1; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes popupSlideOut {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    100% { transform: translateX(120%) scale(0.9); opacity: 0; }
}

@keyframes pulseGold {
    0% { box-shadow: 0 0 0 0 rgba(177, 0, 205, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(177, 0, 205, 0); }
    100% { box-shadow: 0 0 0 0 rgba(177, 0, 205, 0); }
}

.sv-marketing-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background: rgba(10, 10, 12, 0.85);
    border: 1px solid rgba(177, 0, 205, 0.3);
    border-radius: 20px;
    padding: 0;
    z-index: 100000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 20px rgba(177, 0, 205, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    overflow: hidden;
    color: white;
    font-family: 'Inter', sans-serif;
}

.sv-marketing-popup.active {
    display: block;
    animation: popupSlideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.sv-marketing-popup.hiding {
    animation: popupSlideOut 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.sv-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(177, 0, 205, 0.1);
    border-bottom: 1px solid rgba(177, 0, 205, 0.1);
}

.sv-popup-header span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
}

.sv-popup-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.sv-popup-close:hover {
    color: white;
}

.sv-popup-body {
    padding: 20px;
}

.sv-popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    display: flex;
    align-items: center;
}

.sv-popup-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.sv-popup-text b {
    color: var(--gold);
    font-weight: 600;
}

.sv-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #b100cd, #800080);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    gap: 10px;
}

.sv-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(177, 0, 205, 0.4);
    filter: brightness(1.1);
}

.sv-popup-btn.gold-btn {
    background: linear-gradient(135deg, var(--gold), #800080);
    color: black;
}

.sv-popup-btn.bot-btn {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
}

.sv-popup-btn.ig-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sv-popup-btn.yt-btn {
    background: #ff0000;
}

.sv-popup-btn.tg-btn {
    background: #0088cc;
}

@media (max-width: 480px) {
    .sv-marketing-popup {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}
