/* ========================================================================
   MODERN UI ENHANCEMENTS - RTP LIVE
   Version 2.0
   ======================================================================== */

/* ========== GOOGLE FONTS IMPORT ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ========== RESPONSIVE TYPOGRAPHY ========== */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Fluid typography using clamp() */
    --text-xs: clamp(0.625rem, 0.5rem + 0.5vw, 0.75rem);
    --text-sm: clamp(0.75rem, 0.625rem + 0.5vw, 0.875rem);
    --text-base: clamp(0.875rem, 0.75rem + 0.5vw, 1rem);
    --text-lg: clamp(1rem, 0.875rem + 0.5vw, 1.125rem);
    --text-xl: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --text-2xl: clamp(1.25rem, 1rem + 1vw, 1.5rem);
    --text-3xl: clamp(1.5rem, 1.25rem + 1.25vw, 1.875rem);
    --text-4xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.25rem);
    --text-5xl: clamp(2.25rem, 1.75rem + 2vw, 3rem);
}

body {
    font-family: var(--font-primary);
}

.font-display {
    font-family: var(--font-display);
}

/* ========== GLASSMORPHISM CARD EFFECT ========== */
.glass-card {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--bg-secondary) 40%, transparent),
        color-mix(in srgb, var(--bg-tertiary) 20%, transparent)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 25%, transparent);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 color-mix(in srgb, var(--accent-secondary) 20%, transparent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: color-mix(in srgb, var(--accent-primary) 50%, transparent);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

/* ========== NEUMORPHISM EFFECT ========== */
.neumorphic {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 16px;
    box-shadow:
        8px 8px 20px color-mix(in srgb, var(--bg-primary) 90%, #000),
        -8px -8px 20px color-mix(in srgb, var(--bg-tertiary) 70%, transparent);
    border: none;
    transition: all 0.3s ease;
}

/* ========== GRADIENT BORDER ANIMATION ========== */
.gradient-border {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 16px;
    z-index: 0;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    padding: 2px;
    border-radius: 18px;
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        var(--cta-primary),
        var(--accent-secondary),
        var(--cta-secondary),
        var(--accent-primary)
    );
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradient-border-flow 4s linear infinite;
    z-index: -1;
}

@keyframes gradient-border-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ========== LAYERED SHADOWS ========== */
.shadow-layered {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.07),
        0 2px 4px rgba(0, 0, 0, 0.07),
        0 4px 8px rgba(0, 0, 0, 0.07),
        0 8px 16px rgba(0, 0, 0, 0.07),
        0 16px 32px rgba(0, 0, 0, 0.07);
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-secondary), var(--cta-primary));
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-primary);
}

/* ========== 3D TILT EFFECT FOR CARDS ========== */
.card-tilt {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    will-change: transform;
}

.card-tilt:hover {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ========== RIPPLE EFFECT ON BUTTON ========== */
.btn-ripple {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: var(--ripple-y, 50%);
    left: var(--ripple-x, 50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.btn-ripple.ripple-active::before {
    animation: ripple-expand 0.6s ease-out forwards;
}

@keyframes ripple-expand {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 500px; height: 500px; opacity: 0; }
}

/* ========== STAGGERED ANIMATION FOR CARDS ========== */
.stagger-item {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-item:nth-child(2) { transition-delay: 0.1s; }
.stagger-item:nth-child(3) { transition-delay: 0.15s; }
.stagger-item:nth-child(4) { transition-delay: 0.2s; }
.stagger-item:nth-child(5) { transition-delay: 0.25s; }
.stagger-item:nth-child(6) { transition-delay: 0.3s; }
.stagger-item:nth-child(7) { transition-delay: 0.35s; }
.stagger-item:nth-child(8) { transition-delay: 0.4s; }

/* ========== HOVER GLOW EFFECT ========== */
.hover-glow {
    position: relative;
    transition: all 0.3s ease;
}

.hover-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-glow), var(--cta-primary));
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.4s ease;
}

.hover-glow:hover::after {
    opacity: 0.6;
}

.hover-glow:hover {
    transform: translateY(-2px);
}

/* ========== RTP CIRCULAR GAUGE ========== */
.rtp-gauge {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.rtp-gauge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        var(--gauge-color, var(--rtp-high)) 0deg,
        var(--gauge-color, var(--rtp-high)) calc(var(--gauge-value, 0) * 3.6deg),
        transparent calc(var(--gauge-value, 0) * 3.6deg),
        transparent 360deg
    );
    mask: radial-gradient(transparent 55%, black 56%);
    -webkit-mask: radial-gradient(transparent 55%, black 56%);
}

.rtp-gauge-inner {
    position: relative;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
}

.rtp-gauge-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.rtp-gauge.rtp-high { --gauge-color: var(--rtp-high); }
.rtp-gauge.rtp-medium { --gauge-color: var(--rtp-medium); }
.rtp-gauge.rtp-low { --gauge-color: var(--rtp-low); }

/* ========== ANIMATED RTP BAR ========== */
.rtp-bar-animated {
    position: relative;
    width: 100%;
    height: 6px;
    background: color-mix(in srgb, var(--accent-primary) 15%, var(--bg-primary));
    border-radius: 3px;
    overflow: hidden;
}

.rtp-bar-animated-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.rtp-bar-animated-fill.rtp-high {
    background: linear-gradient(90deg, var(--rtp-high), #4ade80);
    box-shadow: 0 0 10px color-mix(in srgb, var(--rtp-high) 50%, transparent);
}

.rtp-bar-animated-fill.rtp-medium {
    background: linear-gradient(90deg, var(--rtp-medium), #facc15);
    box-shadow: 0 0 10px color-mix(in srgb, var(--rtp-medium) 40%, transparent);
}

.rtp-bar-animated-fill.rtp-low {
    background: linear-gradient(90deg, #f97316, var(--rtp-low));
    box-shadow: 0 0 10px color-mix(in srgb, var(--rtp-low) 40%, transparent);
}

/* ========== RTP HOT PULSE EFFECT ========== */
.rtp-hot {
    position: relative;
    animation: rtpHotPulse 2s ease-in-out infinite;
}

@keyframes rtpHotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px color-mix(in srgb, var(--rtp-high) 40%, transparent); }
    50% { transform: scale(1.02); box-shadow: 0 0 25px color-mix(in srgb, var(--rtp-high) 60%, transparent); }
}

/* ========== TREND INDICATORS ========== */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.trend-up {
    color: var(--rtp-high);
    background: color-mix(in srgb, var(--rtp-high) 15%, transparent);
}

.trend-up::before {
    content: '';
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 6px solid var(--rtp-high);
}

.trend-down {
    color: var(--rtp-low);
    background: color-mix(in srgb, var(--rtp-low) 15%, transparent);
}

.trend-down::before {
    content: '';
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--rtp-low);
}

/* ========== SKELETON LOADING ========== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--accent-primary) 15%, transparent) 50%, transparent 100%);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    transform: translateX(-100%);
}

@keyframes skeleton-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-card {
    background: linear-gradient(to bottom right, color-mix(in srgb, var(--accent-primary) 10%, var(--bg-secondary)), var(--bg-primary));
    border: 1px solid color-mix(in srgb, var(--accent-primary) 20%, transparent);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-text {
    height: 14px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.skeleton-text::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--accent-primary) 20%, transparent) 50%, transparent 100%);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    transform: translateX(-100%);
}

.skeleton-text-short { width: 60%; }
.skeleton-text-medium { width: 80%; }

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.skeleton-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--accent-primary) 20%, transparent) 50%, transparent 100%);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    transform: translateX(-100%);
}

/* ========== TOAST NOTIFICATION ========== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-success {
    border-color: color-mix(in srgb, var(--rtp-high) 50%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--rtp-high) 15%, var(--bg-secondary)), var(--bg-secondary));
}

.toast-success .toast-icon {
    background: color-mix(in srgb, var(--rtp-high) 25%, transparent);
    color: var(--rtp-high);
}

.toast-error {
    border-color: color-mix(in srgb, var(--rtp-low) 50%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--rtp-low) 15%, var(--bg-secondary)), var(--bg-secondary));
}

.toast-error .toast-icon {
    background: color-mix(in srgb, var(--rtp-low) 25%, transparent);
    color: var(--rtp-low);
}

.toast-info {
    border-color: color-mix(in srgb, var(--accent-primary) 50%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-primary) 15%, var(--bg-secondary)), var(--bg-secondary));
}

.toast-info .toast-icon {
    background: color-mix(in srgb, var(--accent-primary) 25%, transparent);
    color: var(--accent-primary);
}

.toast-close {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: color-mix(in srgb, var(--accent-primary) 20%, transparent);
    color: var(--text-primary);
}

/* ========== FAVORITES BUTTON ========== */
.btn-favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: color-mix(in srgb, var(--bg-primary) 80%, transparent);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.btn-favorite svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.btn-favorite:hover {
    background: color-mix(in srgb, var(--rtp-low) 20%, var(--bg-primary));
    transform: scale(1.1);
}

.btn-favorite:hover svg {
    color: var(--rtp-low);
}

.btn-favorite.active {
    background: color-mix(in srgb, var(--rtp-low) 25%, var(--bg-primary));
}

.btn-favorite.active svg {
    color: var(--rtp-low);
    fill: var(--rtp-low);
}

@keyframes heart-beat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
}

.btn-favorite.animate svg {
    animation: heart-beat 0.6s ease-in-out;
}

/* ========== SEARCH MODERN ========== */
.search-modern {
    position: relative;
    width: 100%;
}

.search-modern input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-modern input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-modern input::placeholder {
    color: var(--text-muted);
}

.search-modern svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.search-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-suggestion-item:hover {
    background: var(--bg-tertiary);
}

.search-suggestion-item img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

/* ========== FILTER CHIPS ========== */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover {
    background: color-mix(in srgb, var(--accent-primary) 15%, var(--bg-tertiary));
    border-color: var(--accent-primary);
}

.filter-chip.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* ========== VIEW TOGGLE ========== */
.view-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 4px;
}

.view-toggle button {
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button:hover {
    color: var(--text-primary);
}

.view-toggle button.active {
    background: var(--accent-primary);
    color: white;
}

.view-toggle button svg {
    width: 18px;
    height: 18px;
}

/* ========== VISUAL POLISH ========== */

/* Noise Overlay - DISABLED by default, enable in HTML if needed */
.noise-overlay {
    display: none; /* Disabled to avoid conflict with backgroundEffect */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
}

.noise-overlay.enabled {
    display: block;
}

/* Gradient Text Animated */
.gradient-text-animated {
    background: linear-gradient(90deg, var(--accent-primary), var(--cta-primary), var(--accent-secondary), var(--cta-secondary), var(--accent-primary));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientTextFlow 4s ease-in-out infinite;
}

@keyframes gradientTextFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Text Glow */
.text-glow {
    color: var(--accent-primary);
    text-shadow: 0 0 5px var(--accent-glow), 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
}

/* Card Shine */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg);
    transition: left 0s;
    pointer-events: none;
    z-index: 10;
}

.card-shine:hover::before {
    left: 150%;
    transition: left 0.6s ease-in-out;
}

/* Scale Hover */
.scale-hover {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.03);
}

/* Float Animation */
.float-animation {
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Badge Pulse */
.badge-pulse {
    position: relative;
}

.badge-pulse::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: var(--cta-primary);
    animation: badgePulseRing 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: -1;
}

@keyframes badgePulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Page Transition - DISABLED to prevent hiding fixed elements */
/* .page-transition animation removed as it was causing popup/floating menu to be hidden */

/* Fixed elements should always be visible regardless of body opacity */
.fab-wrapper,
.cc-livechat-wrapper,
.toast-container {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Popup overlay should only be visible when .show class is added */
.xmas-popup-overlay {
    pointer-events: none;
}
.xmas-popup-overlay.show {
    pointer-events: auto;
}

/* Customer care dialog - ensure pointer-events work correctly */
.cc-livechat-dialog.cc-show {
    pointer-events: auto !important;
}

/* ========== FLOATING ACTION BUTTON ========== */
.fab-scroll-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--accent-glow);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.fab-scroll-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-scroll-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.fab-scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    .stagger-item,
    .skeleton::after,
    .skeleton-text::after,
    .skeleton-image::after,
    .card-shine::before,
    .gradient-text-animated,
    .float-animation,
    .rtp-hot,
    .badge-pulse::before,
    .page-transition {
        animation: none !important;
        transition: none !important;
    }

    .stagger-item {
        opacity: 1;
        transform: none;
    }
}
