html{
    height: 100%;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;     /* Hide scrollbar for Firefox */
    overflow-y: scroll;        /* Still allow scrolling */
}

html::-webkit-scrollbar {
    display: none;             /* Hide scrollbar for WebKit browsers */
}

body {
    padding-top: 2rem;
    margin: 0;
    font-family: "Sour Gummy", serif;
    background-color: #ffe6f2;
    background-image: url('resources/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.main-wrapper {
    flex: 1;  /* Pushes content down */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5rem 0;
    box-sizing: border-box;
}

.container {
    margin-top: auto;
    max-width: 30rem;
    width: 90%;
    background: linear-gradient(135deg, #ffffff 0%, #fff9fc 100%);
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(213, 148, 178, 0.15), 0 0 40px rgba(213, 148, 178, 0.08);
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(213, 148, 178, 0.1);
    animation: containerEntrance 0.6s ease-out forwards;
}

@keyframes containerEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-img {
    margin-bottom: 20px;
    width: 100%;
}

h1 {
    color: #d594b2;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(213, 148, 178, 0.2);
    font-weight: bold;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 25px;
    animation: linksEntrance 0.8s ease-out 0.2s both;
}

@keyframes linksEntrance {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-link-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.product-showcase {
    height: 140px;
    opacity: 1;
    margin-top: 0;
    padding: 10px 0;
}

.product-carousel {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 245, 249, 0.8) 100%);
    border-radius: 16px;
    margin: 0 -5px;
    position: relative;
}

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

.product-item {
    min-width: 100px;
    width: 100px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

.product-item:hover {
    transform: translateY(-4px) scale(1.05);
}

.product-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.product-item:hover .product-image {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.product-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}


.link {
    border-radius: 100px;
    padding: 16px 32px;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(213, 148, 178, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-color: #ffffff;
    border: 1px solid rgba(213, 148, 178, 0.15);
    font-weight: 500;
}

.shop-link-wrapper .link {
    margin-bottom: 0;
}

.link:hover {
    background: linear-gradient(135deg, #eac8d8 0%, #f5d1e8 100%);
    color: #333;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(213, 148, 178, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(213, 148, 178, 0.3);
}

.link:active {
    transform: translateY(0) scale(1);
}

/* Pronounced sparkle particles */
.sparkle-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0.2) 70%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: sparkleFloat 2s ease-out forwards;
    box-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.6);
    filter: blur(0.5px);
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--sparkle-x), var(--sparkle-y)) scale(1.5);
    }
}

.btn-img {
    margin-right: 0.5rem;
    height: 20px;
}

/* Footer that sticks to the bottom but is not fixed */
.copy {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    width: 100%;
    font-size: 0.7em;
    color: #999;
    opacity: 0.6;
    padding: 1.5rem 0;
    margin-top: auto;  /* Pushes footer to the bottom */
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.copy:hover {
    opacity: 1;
    color: #d594b2;
    transform: translateY(-2px);
}

/* Discount Modal Styles */
.discount-modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(213, 148, 178, 0.4), 0 0 40px rgba(213, 148, 178, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #fff5f9 100%);
    animation: modalEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalEntrance {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.discount-modal-header {
    background: linear-gradient(135deg, #d594b2 0%, #e8b8d8 100%);
    padding: 30px 25px 20px;
    text-align: center;
    position: relative;
    border: none;
}

.discount-emoji {
    font-size: 4rem;
    animation: bounce 1s ease-in-out infinite;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

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

.discount-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: "Sour Gummy", serif;
}

.discount-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    opacity: 0.9;
    transition: all 0.3s ease;
    padding: 0;
    border: none;
    z-index: 10;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
}

.discount-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.5) !important;
    transform: rotate(90deg);
}

.discount-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.discount-modal-body {
    padding: 35px 30px;
    text-align: center;
}

.discount-message {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 500;
}

.discount-percent {
    color: #d594b2;
    font-weight: bold;
    font-size: 1.5em;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

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

.discount-code-wrapper {
    background: linear-gradient(135deg, #ffe6f2 0%, #f5d1e8 100%);
    border: 2px dashed #d594b2;
    border-radius: 16px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.discount-code-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.discount-code {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d594b2;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(213, 148, 178, 0.2);
    user-select: all;
}

.discount-copy-btn {
    background: #d594b2;
    color: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.discount-copy-btn:hover {
    background: #c084a3;
    transform: scale(1.1);
}

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

.discount-cta-btn {
    background: linear-gradient(135deg, #d594b2 0%, #e8b8d8 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 6px 20px rgba(213, 148, 178, 0.4);
    transition: all 0.3s ease;
    font-family: "Sour Gummy", serif;
}

.discount-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(213, 148, 178, 0.5);
    color: white;
}

.discount-cta-btn:active {
    transform: translateY(-1px);
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(213, 148, 178, 0.5);
    backdrop-filter: blur(4px);
}

@media (max-width: 576px) {
    .container {
        padding: 20px;
        max-width: 90%;
    }

    .link {
        padding: 10px 20px;
        font-size: 1em;
    }
    
    .discount-title {
        font-size: 1.5rem;
    }
    
    .discount-emoji {
        font-size: 3rem;
    }
    
    .discount-code {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .discount-code-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .discount-modal-body {
        padding: 25px 20px;
    }
}

