:root {
    --esquio-primary: #3498db;
    --esquio-secondary: #2ecc71;
    --esquio-glass-bg: rgba(255, 255, 255, 0.7);
    --esquio-glass-border: rgba(255, 255, 255, 0.5);
    --esquio-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Floating Widget */
.esquio-floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.esquio-floating-widget:hover {
    transform: scale(1.1);
}

.esquio-progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.esquio-progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.esquio-level-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #333;
    font-size: 18px;
}

/* Tooltip */
.esquio-widget-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 200px;
    background: var(--esquio-glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--esquio-glass-border);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--esquio-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.esquio-floating-widget:hover .esquio-widget-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-header {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--esquio-primary);
}

.tooltip-xp,
.tooltip-coins {
    font-size: 14px;
    color: #555;
}

/* Toastify Custom Styles */
.esquio-toast {
    background: var(--esquio-glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--esquio-glass-border) !important;
    border-radius: 10px !important;
    box-shadow: var(--esquio-shadow) !important;
    color: #333 !important;
    font-weight: 600 !important;
    padding: 15px 20px !important;
}

.esquio-toast.success {
    border-left: 5px solid var(--esquio-secondary) !important;
}

.esquio-toast.info {
    border-left: 5px solid var(--esquio-primary) !important;
}

/* Golden Ticket Modal */
.esquio-golden-ticket {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 50px rgba(241, 196, 15, 0.5);
    border: 2px solid #fff;
    position: relative;
    overflow: hidden;
}

.esquio-golden-ticket::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    animation: shine 5s infinite linear;
}

@keyframes shine {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ticket-header h2 {
    font-family: 'Times New Roman', serif;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ticket-body p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.coupon-code-container {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 15px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border: 2px dashed #333;
    margin-bottom: 20px;
}

#couponCode {
    font-family: monospace;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 2px;
}

.ticket-footer button {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    transition: all 0.3s;
}

.ticket-footer button:hover {
    background: #fff;
    color: #f39c12;
}