body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}
.card-game {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 45px; /* Space for fixed nav */
}

.gradient-0 {
    background: linear-gradient(145deg, #e94560, #0f3460);
}
.gradient-1 {
    background: linear-gradient(145deg, #34495e, #000);
}
.gradient-2 {
    background: linear-gradient(145deg, #8e44ad, #9b59b6);
}

/* Fixed Top Nav */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 5px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.fixed-nav .tab-btn {
    padding: 4px 8px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s;
}
.fixed-nav .tab-btn.active {
    background: #e94560;
    color: #fff;
}
.nav-title {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
/* Tinder-style Card Stack */
.card-stack {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 380px;
    margin: 0 auto;
}

.card-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.card-display {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(233, 69, 96, 0.4);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.card-display:active {
    cursor: grabbing;
}

.card-display.swiping {
    transition: none;
}

.card-display.swiping-right {
    box-shadow:
        0 0 0 4px #4ade80,
        0 10px 40px rgba(74, 222, 128, 0.4);
}

.card-display.swiping-left {
    box-shadow:
        0 0 0 4px #f87171,
        0 10px 40px rgba(248, 113, 113, 0.4);
}

/* Like/Nope overlays */
.swipe-overlay {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.swipe-overlay.like {
    left: 20px;
    color: #4ade80;
    border: 3px solid #4ade80;
    transform: rotate(-15deg);
}

.swipe-overlay.nope {
    right: 20px;
    color: #f87171;
    border: 3px solid #f87171;
    transform: rotate(15deg);
}

.card-display.swiping-right .swipe-overlay.like {
    opacity: 1;
}

.card-display.swiping-left .swipe-overlay.nope {
    opacity: 1;
}

/* Card behind effect */
.card-wrapper:nth-child(2) .card-display {
    transform: scale(0.95) translateY(10px);
    opacity: 0.7;
}

.card-wrapper:nth-child(3) .card-display {
    transform: scale(0.9) translateY(20px);
    opacity: 0.4;
}

/* Flip Card Styles */
.card-flip-container {
    perspective: 1000px;
    width: 100%;
    height: 100%;
}

.card-display {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(233, 69, 96, 0.4);
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-display.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    top: 0;
    left: 0;
}

.card-front {
    z-index: 1;
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(233, 69, 96, 0.5);
    z-index: 0;
}

.flip-btn {
    position: absolute;
    bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition:
        transform 0.2s,
        background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 10;
}

.flip-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.flip-btn:active {
    transform: scale(0.95);
}

.card-back .intensity-label {
    font-size: 1rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.card-back input[type="range"] {
    width: 80%;
    margin: 10px 0;
}

.card-back .slider-instruction {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 8px;
}
.card-icon {
    font-size: 3.5rem;
}
.card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 15px 0;
}
.card-desc {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}
.card-meta {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 10px;
}
.nav-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-arrow:hover {
    background: #e94560;
    transform: scale(1.1);
}
.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.intensity-display {
    display: flex;
    justify-content: center;
    gap: 5px;
}
.intensity-icon {
    transition: all 0.3s ease;
    display: inline-block;
}
.slider-thumb {
    width: 24px;
    height: 24px;
    background: #e94560 !important;
    border: 3px solid #fff !important;
}
.slider-thumb:focus,
.slider-thumb:active {
    width: 48px !important;
    height: 48px !important;
}
.energy-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Enhanced mobile support for range sliders */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 3px;
    border: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
    transition: box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.5);
}

input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.5);
}

input[type="range"]::-moz-range-track {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 3px;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
    transition: box-shadow 0.2s ease;
}

input[type="range"]:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.5);
}

.vibe-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.9rem;
}
.vibe-btn:hover,
.vibe-btn.active {
    background: #e94560;
    border-color: #e94560;
}
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-content: center;
}
.category-btn {
    width: 100%;
    height: 60px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.category-btn:hover,
.category-btn.active {
    background: linear-gradient(145deg, #e94560, #c73e54);
    border-color: #e94560;
    transform: translateY(-1px);
}
@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 700px;
        margin: 0 auto;
        gap: 10px;
    }
    .category-btn {
        height: 70px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}
.draw-btn {
    background: linear-gradient(145deg, #e94560, #c73e54);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}
.draw-btn:hover {
    transform: scale(1.05);
}
.draw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 10px 40px rgba(233, 69, 96, 0.4);
    }
    50% {
        box-shadow: 0 10px 60px rgba(233, 69, 96, 0.7);
    }
}
.partner-btn {
    background: linear-gradient(145deg, #6c5ce7, #a855f7);
    border: none;
    padding: 8px 10px;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    transition: opacity 0.3s;
}
.partner-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.room-code {
    font-size: 2rem;
    letter-spacing: 0.3rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
}
.heart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0 2px;
}
.heart-btn:hover {
    transform: scale(1.2);
}
.fav-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #e94560;
}
.fav-card .rating {
    font-size: 0.85rem;
}
.tab-btn {
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    margin-right: 8px;
}
.tab-btn.active {
    background: #e94560;
}
.fav-empty {
    text-align: center;
    padding: 30px;
    opacity: 0.6;
}
.avg-rating {
    background: linear-gradient(145deg, #6c5ce7, #a855f7);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}
.slide-up-enter-active,
.slide-up-leave-active {
    transition: all 0.5s ease;
}
.slide-up-enter-from {
    transform: translateY(-100%);
    opacity: 0;
}
.slide-up-leave-to {
    transform: translateY(-100%);
    opacity: 0;
}

/* Fire Slider with 🔥 thumb */
.intensity-slider-container {
    text-align: center;
    padding: 0 20px;
}

.slider-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.fire-slider-wrapper {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
}

.fire-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        rgba(255, 107, 107, 0.3) 0%,
        rgba(255, 165, 2, 0.5) 50%,
        rgba(255, 69, 0, 0.8) 100%
    );
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Hide default thumb */
.fire-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    opacity: 0;
}

.fire-slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    border: none;
    opacity: 0;
}

/* Custom fire thumb */
.fire-thumb {
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    pointer-events: none;
    z-index: 2;
    transition: left 0.1s ease;
    filter: drop-shadow(0 0 8px rgba(255, 100, 0, 0.6));
}

.fire-thumb span {
    display: inline-block;
    transition: transform 0.1s ease;
}

.fire-slider::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 10px;
}

.fire-slider::-moz-range-track {
    height: 12px;
    border-radius: 10px;
}

/* Show Slider Button */
.show-slider-btn {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-slider-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Add to Wishlist Button */
.add-wishlist-btn {
    margin-top: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: pulse 0.3s ease;
}

.add-wishlist-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Small inline loader */
.inline-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Button loading state */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(233, 69, 96, 0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 9999;
    animation: slideUp 0.3s ease;
    backdrop-filter: blur(10px);
}

.toast-notification.success {
    background: rgba(74, 222, 128, 0.9);
}

.toast-notification.error {
    background: rgba(248, 113, 113, 0.9);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}
