:root {
    --cream: #FFFDF9;
    --blush: #FFB7C5;
    --sage: #E8F1E6;
    --pink: #FF69B4;
    --white: #FFFFFF;
    --text-dark: #2D2D2D;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Repeating Icon Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.08;
    background-image: 
        url('/images/bg-tag.png'),
        url('/images/bg-checklist.png'),
        url('/images/bg-bag.png');
    background-size: 120px 120px, 120px 120px, 120px 120px;
    background-position: 0 0, 40px 60px, 80px 30px;
    background-repeat: repeat;
    pointer-events: none;
}

/* Liquid Gradient Background */
/* Liquid Gradient Background */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    
    /* CURRENT: Animated gradient */
    background: linear-gradient(45deg, var(--cream), var(--blush), var(--sage), var(--cream));
    background-size: 400% 400%;
    animation: liquidFlow 15s ease infinite;
    
    /* TO USE CUSTOM IMAGE: 
       1. Upload image to /images/background.jpg (recommended: 1920x1080px or larger)
       2. Uncomment lines below
       3. Comment out the gradient lines above
    */
    /* 
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: none;
    opacity: 0.3;
    */
}

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

/* Particle Container - DISABLED */
#particle-container {
    display: none;
    /* Ready for custom background image */
}

/* Top Ticker */
.ticker-wrap {
    background: linear-gradient(135deg, #FF1493, #FF69B4, #FFB7C5);
    padding: 16px 0;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 20, 147, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.ticker {
    display: flex;
    animation: tickerScroll 25s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 0 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 105, 180, 0.6),
        0 0 30px rgba(255, 20, 147, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 105, 180, 0.6),
            0 0 30px rgba(255, 20, 147, 0.4),
            2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 105, 180, 0.8),
            0 0 40px rgba(255, 20, 147, 0.6),
            2px 2px 4px rgba(0, 0, 0, 0.3);
    }
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.main-header {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.mascot-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mascot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--blush);
    background: var(--white);
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

.verified-badge span {
    color: #1DA1F2;
    font-weight: 600;
    font-size: 14px;
}

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

.main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--blush));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 30px;
}

/* Girl Logic Section */
.girl-logic-section {
    padding: 0 0 10px;
    position: relative;
    z-index: 10;
    background: transparent;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.logic-switch-placeholder {
    height: 0;
    transition: height 0.3s ease;
}

/* Floating Girl Logic Switch (when scrolled) */
.girl-logic-section.floating {
    position: fixed;
    bottom: 30px;
    left: 30px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.4);
    z-index: 9999;
    width: auto;
    margin: 0;
    animation: floatBounce 2s ease-in-out infinite;
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 30px rgba(255, 105, 180, 0.4);
    }
    50% {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(255, 105, 180, 0.6);
    }
}

.girl-logic-section.floating .logic-switch-container {
    padding: 12px 16px;
    gap: 12px;
    max-width: none;
}

.girl-logic-section.floating .logic-switch {
    width: 70px;
    height: 40px;
}

.girl-logic-section.floating .slider:before {
    height: 32px;
    width: 32px;
}

.girl-logic-section.floating input:checked + .slider:before {
    transform: translateX(30px);
}

.girl-logic-section.floating .switch-label {
    font-size: 0.95rem;
}

.girl-logic-section.floating .switch-description {
    display: block;
    font-size: 0.85rem;
    line-height: 1.2;
}

.girl-logic-section.floating .switch-text {
    max-width: 220px;
}

/* Girl Logic Switch */
.logic-switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 25px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid var(--glass-border);
    border-radius: 60px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.logic-switch-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(255, 105, 180, 0.4);
}

.logic-switch-container.activated {
    animation: pulseGlow 1s ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(255, 105, 180, 0.3);
    }
    50% {
        box-shadow: 0 15px 60px rgba(255, 105, 180, 0.8);
    }
}

.logic-switch {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 56px;
    flex-shrink: 0;
}

.logic-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 56px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 46px;
    width: 46px;
    left: 5px;
    bottom: 5px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--pink), var(--blush));
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.3), 0 4px 20px rgba(255, 105, 180, 0.6);
}

input:checked + .slider:before {
    transform: translateX(44px);
}

.switch-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.switch-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch-description {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Section Titles */
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin: 40px 0 30px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Glass Portals Carousel */
.glass-portals {
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.portal-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 1300px;
    margin: 0 auto;
}

@media (max-width: 1300px) {
    .portal-carousel {
        justify-content: flex-start;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .portal-carousel {
        gap: 15px;
        padding: 20px 15px;
    }
}

.portal-carousel::-webkit-scrollbar {
    display: none;
}

.portal-card {
    flex: 0 0 auto;
    width: 200px;
    height: 240px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    scroll-snap-align: center;
    animation: bobbing 3s ease-in-out infinite;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portal-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.portal-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.portal-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.portal-card p {
    font-size: 0.85rem;
    line-height: 1.3;
    opacity: 0.8;
    color: var(--text-dark);
}

.portal-card.active {
    background: linear-gradient(135deg, var(--blush), var(--sage));
    border-color: var(--pink);
}

/* VIP Flip Card */
.vip-card {
    perspective: 1000px;
    cursor: pointer;
    animation: none;
}

.vip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

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

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

.vip-card-front {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.3),
        rgba(255, 105, 180, 0.3),
        rgba(138, 43, 226, 0.3));
    border: 2px solid rgba(255, 215, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.vip-glow {
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: holographicShine 3s linear infinite;
}

@keyframes holographicShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.vip-card-front h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    z-index: 1;
}

.vip-card-front p {
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1;
}

.vip-card-back {
    background: linear-gradient(135deg, var(--pink), var(--blush));
    transform: rotateY(180deg);
    gap: 6px;
}

.vip-card-back h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: white;
    margin-bottom: 10px;
}

.vip-email-input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    outline: none;
}

.vip-join-btn {
    width: 100%;
    padding: 10px;
    background: white;
    color: var(--pink);
    border: none;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vip-join-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.vip-card.welcome .vip-card-front {
    background: linear-gradient(135deg, var(--sage), var(--blush));
    border-color: var(--pink);
}

.vip-card.welcome .vip-card-front h3 {
    font-size: 1.1rem;
}

.vip-card.welcome .vip-card-front p {
    font-size: 0.85rem;
}

/* Unique Stack Section */
.unique-stack-section {
    padding: 40px 20px 60px;
    position: relative;
    z-index: 10;
}

.swipe-hint {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.6;
    margin-bottom: 20px;
}

.card-stack {
    position: relative;
    height: 360px;
    margin: 0 auto 30px;
    max-width: 300px;
}

.stack-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    cursor: grab;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

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

.stack-card.removing {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.stack-card-image {
    width: 100%;
    height: 175px;
    object-fit: contain;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 10px;
}

.stack-card-content {
    padding: 14px;
}

.stack-logic-note {
    background: linear-gradient(135deg, rgba(255, 183, 197, 0.2), rgba(232, 241, 230, 0.2));
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 12px;
    border: 2px dashed var(--blush);
    animation: notePulse 2s ease-in-out infinite;
}

@keyframes notePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.stack-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.stack-card-pricing {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.stack-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stack-price-regular {
    text-decoration: line-through;
    color: #999;
    font-size: 0.95rem;
}

.stack-price-sale {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pink);
}

.stack-girl-logic-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pink);
    font-style: italic;
    margin-left: 8px;
}

.stack-price-logic {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pink);
    display: none;
}

.stack-discount-badge {
    background: linear-gradient(135deg, var(--pink), var(--blush));
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.stack-coupon-code {
    background: var(--sage);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    display: none;
}

.stack-coupon-code.visible {
    display: block;
}

.stack-card-btn {
    width: 100%;
    padding: 10px;
    background: var(--pink);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stack-card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.stack-controls {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 16px;
}

.stack-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nope-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.like-btn {
    background: linear-gradient(135deg, var(--pink), var(--blush));
}

.stack-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.stack-btn:active {
    transform: scale(1.05);
}

/* Coupon Feed */
.coupon-feed {
    padding: 40px 20px 80px;
    position: relative;
    z-index: 10;
}

.deal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.deal-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.deal-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: var(--white);
}

.deal-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: var(--white);
    border-radius: 15px;
    padding: 10px;
}

.scratch-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: opacity 0.5s ease;
    touch-action: none;
}

.coupon-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pink);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.scratch-canvas.revealing {
    animation: scratchReveal 0.8s ease-out forwards;
}

@keyframes scratchReveal {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.coupon-reveal.visible {
    opacity: 1;
    pointer-events: all;
}

.coupon-reveal.revealing {
    animation: codeReveal 0.6s ease-out forwards;
}

@keyframes codeReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.stack-card-pricing.revealing {
    animation: priceReveal 0.6s ease-out;
}

@keyframes priceReveal {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.coupon-reveal:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.coupon-code {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 5px;
}

.copy-hint {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
}

.scratch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pink), var(--blush));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scratch-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.scratch-text {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.deal-content {
    padding: 20px;
}

/* Auto-Generated Smart Badges */
.deal-badges,
.stack-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.deal-badge,
.stack-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    white-space: nowrap;
}

.badge-epic {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    color: white;
    animation: badgePulse 2s ease-in-out infinite;
}

.badge-cheap {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
}

.badge-discount {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
}

.badge-prime {
    background: linear-gradient(135deg, #00A8E1, #00C9FF);
    color: white;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
    }
}

.deal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
}

.deal-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.price-regular {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
}

.price-sale {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pink);
}

.price-logic {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pink);
}

.price-regular.hidden,
.price-sale.hidden,
.price-logic.hidden {
    display: none;
}

.deal-btn {
    width: 100%;
    padding: 15px;
    background: var(--pink);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.deal-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 9999;
}

.loading-spinner.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--sage);
    border-top: 5px solid var(--pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .deal-grid {
        grid-template-columns: 1fr;
    }
    
    .portal-card {
        width: 130px;
        height: 160px;
    }
    
    .card-stack {
        height: 360px;
    }
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.legal-page {
    padding: 40px 20px 80px;
    position: relative;
    z-index: 10;
}

.legal-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    border: 2px solid rgba(168, 85, 247, 0.15);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.2);
}

.legal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--pink), #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-subtitle {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.legal-card p {
    line-height: 1.6;
    margin-bottom: 12px;
    color: rgba(45, 45, 45, 0.9);
}

.legal-card ul {
    padding-left: 20px;
    margin-bottom: 12px;
    color: rgba(45, 45, 45, 0.9);
}

.site-footer {
    display: none;
    padding: 24px 20px 32px;
    background: linear-gradient(135deg, rgba(255, 183, 197, 0.25), rgba(232, 241, 230, 0.5));
    border-top: 2px solid rgba(168, 85, 247, 0.1);
    text-align: center;
    color: rgba(45, 45, 45, 0.7);
}

.site-footer.visible {
    display: block;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(45, 45, 45, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--pink);
}

#cookieBanner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #EC4899 0%, #A855F7 100%);
    color: white;
    padding: 16px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(236, 72, 153, 0.3);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}

.cookie-banner-title {
    margin: 0;
    font-weight: 600;
}

.cookie-banner-subtitle {
    margin: 8px 0 0 0;
    font-size: 12px;
    opacity: 0.95;
}

.cookie-banner-link {
    margin: 8px 0 0 0;
    font-size: 12px;
}

.cookie-banner-link a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

#acceptCookies,
#rejectCookies {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#acceptCookies {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

#acceptCookies:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

#rejectCookies {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#rejectCookies:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Lazy Loading */
.deal-image[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.deal-image.loaded {
    opacity: 1;
}

/* ============================================ */
/* FAVORITES SIDEBAR */
/* ============================================ */

.favorites-sidebar {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.favorites-sidebar.open {
    right: 0;
}

.favorites-header {
    background: linear-gradient(135deg, var(--pink), var(--blush));
    color: white;
    padding: 18px 16px;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.favorites-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorites-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.favorites-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.favorite-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--glass-bg);
    border-radius: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.favorite-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.favorite-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    flex-shrink: 0;
}

.favorite-details {
    flex: 1;
    min-width: 0;
}

.favorite-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.favorite-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pink);
}

.remove-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.remove-favorite:hover {
    background: #ff4444;
    transform: scale(1.1);
}

.favorites-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.favorites-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.favorites-empty-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.favorites-email-form {
    padding: 20px;
    background: linear-gradient(180deg, transparent, rgba(255, 183, 197, 0.1));
    border-top: 2px solid var(--glass-border);
}

.favorites-email-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-dark);
}

.favorites-email-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.3s ease;
}

.favorites-email-input:focus {
    border-color: var(--pink);
}

.favorites-email-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--pink), var(--blush));
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorites-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.4);
}

.favorites-email-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .favorites-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .favorites-sidebar.open {
        right: 0;
    }
}
