/* Base Styling & Variables */
:root {
    --primary-glow: rgba(221, 183, 255, 0.15);
    --secondary-glow: rgba(76, 215, 246, 0.15);
    --tertiary-glow: rgba(243, 174, 255, 0.15);
    --transition-speed: 0.3s;
}

/* Custom Scrollbar for Gaming Aesthetic */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0e0e10;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2c;
    border-radius: 4px;
    border: 1px solid rgba(221, 183, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: #ddb7ff;
    box-shadow: 0 0 10px rgba(221, 183, 255, 0.5);
}

/* Glassmorphism Styles */
.glass-card {
    background: rgba(25, 24, 28, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(221, 183, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: rotate(45deg);
    pointer-events: none;
    transition: transform 0.6s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    background: rgba(25, 24, 28, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(221, 183, 255, 0.05);
}

.glass-card:hover::before {
    transform: translate(25%, 25%) rotate(45deg);
}

.glass-modal {
    background: rgba(19, 19, 21, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(221, 183, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(221, 183, 255, 0.1);
}

/* Neon Glows */
.neon-glow-purple {
    box-shadow: 0 0 15px rgba(221, 183, 255, 0.25);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.neon-glow-purple:hover {
    box-shadow: 0 0 25px rgba(221, 183, 255, 0.45);
}

.neon-glow-blue {
    box-shadow: 0 0 15px rgba(76, 215, 246, 0.25);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.neon-glow-blue:hover {
    box-shadow: 0 0 25px rgba(76, 215, 246, 0.45);
}

/* Drawers & Slide-outs */
.drawer {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay {
    transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

.pulse-glow {
    animation: pulse-glow 3s infinite ease-in-out;
}

/* Tab Switching Fade Effects */
.tab-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Multi-step Progress Bar */
.step-dot.active {
    background-color: #ddb7ff;
    box-shadow: 0 0 10px #ddb7ff;
}

.step-dot.completed {
    background-color: #4cd7f6;
    box-shadow: 0 0 10px #4cd7f6;
}

/* Chat Message Styles */
.chat-bubble {
    max-width: 80%;
    word-wrap: break-word;
    border-radius: 16px;
}

/* Card Rarity Accents */
.border-mythic {
    border-color: rgba(221, 183, 255, 0.2);
}
.border-mythic:hover {
    border-color: rgba(221, 183, 255, 0.7);
    box-shadow: 0 0 20px rgba(221, 183, 255, 0.2);
}

.border-legendary {
    border-color: rgba(76, 215, 246, 0.2);
}
.border-legendary:hover {
    border-color: rgba(76, 215, 246, 0.7);
    box-shadow: 0 0 20px rgba(76, 215, 246, 0.2);
}

.border-epic {
    border-color: rgba(243, 174, 255, 0.2);
}
.border-epic:hover {
    border-color: rgba(243, 174, 255, 0.7);
    box-shadow: 0 0 20px rgba(243, 174, 255, 0.2);
}

/* Material Symbols font settings */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Range slider styling for filters */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ddb7ff;
    box-shadow: 0 0 8px rgba(221, 183, 255, 0.6);
    cursor: pointer;
    border: 2px solid #0e0e10;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ddb7ff;
    box-shadow: 0 0 8px rgba(221, 183, 255, 0.6);
    cursor: pointer;
    border: 2px solid #0e0e10;
}

/* Payment method active state */
.pay-method-active {
    border-color: #ddb7ff !important;
    background: rgba(221, 183, 255, 0.05);
}

/* Nav tab active underline */
.nav-tab-btn {
    position: relative;
    transition: color var(--transition-speed) ease;
}
.nav-tab-btn.active-tab::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddb7ff;
    box-shadow: 0 0 8px #ddb7ff;
    border-radius: 2px;
}

/* Empty scrollbar target for drawer items */
#cart-drawer-items::-webkit-scrollbar { width: 6px; }
