:root {
    /* Colorful & Playful Palette */
    --primary: #8B5CF6;
    /* Vibrant Purple */
    --primary-dark: #6D28D9;
    --primary-light: #F5F3FF;

    --secondary: #F59E0B;
    /* Amber/Yellow for action */
    --secondary-dark: #D97706;

    --accent: #EC4899;
    /* Pink */
    --success: #10B981;
    /* Green */
    --warning: #FBBF24;
    --danger: #EF4444;
    /* Red */

    --text-main: #1E293B;
    /* Slate 800 */
    --text-muted: #64748B;
    /* Slate 500 */
    --bg-light: #F1F5F9;
    /* Slate 100 */
    --bg-white: #FFFFFF;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.btn,
.badge,
.tag {
    font-family: 'Fredoka', sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-white {
    background-color: var(--bg-white);
}

.full-width {
    width: 100%;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: -1%;
    width: 102%;
    height: 0.35em;
    background: #FCE7F3;
    /* Pink highlight */
    z-index: -1;
    transform: rotate(-1.5deg);
    border-radius: 6px;
}

/* --- Top Bar --- */
.top-bar {
    background: #FFED4A;
    /* Bright yellow */
    color: #1F2937;
    text-align: center;
    padding: 0.75rem 0;
    font-weight: 800;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #F59E0B;
}

/* --- Hero Section --- */
.hero {
    padding: 2rem 0 4rem;
    background: radial-gradient(circle at top center, #F5F3FF 0%, #FFFFFF 100%);
    overflow: hidden;
    position: relative;
    text-align: center;
}

.hero-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero-text .badge {
    background-color: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin: 0 auto 2.5rem;
    max-width: 85%;
    line-height: 1.6;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50% 60% 50% 70% / 60% 50% 70% 60%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -50px;
    left: -150px;
    animation: flow 10s infinite ease-in-out;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    bottom: -50px;
    right: -100px;
    animation: flow 12s infinite ease-in-out reverse;
}

@keyframes flow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    text-align: center;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
}

.btn-lg {
    font-size: 1.25rem;
    padding: 1.5rem 3rem;
    border-radius: 3rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border-bottom: 4px solid #B45309;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(217, 119, 6, 0.4);
    border-bottom-width: 2px;
    margin-bottom: 2px;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--primary-dark);
    border: 2px solid #CBD5E1;
    border-bottom: 4px solid #CBD5E1;
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    border-bottom-width: 2px;
    margin-bottom: 2px;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* --- Feature Grid (Playful) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.playful-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.playful-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

.playful-card:nth-child(1):hover {
    border-color: #FEF3C7;
}

.playful-card:nth-child(2):hover {
    border-color: #E0E7FF;
}

.playful-card:nth-child(3):hover {
    border-color: #D1FAE5;
}

.playful-card:nth-child(4):hover {
    border-color: #FCE7F3;
}

.playful-card .icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transform: rotate(-5deg);
}

.playful-card h4 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* --- Bonuses (Playful) --- */
.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.playful-bonus {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px dashed #CBD5E1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    z-index: 2;
}

.playful-bonus:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    background: #FAFAF9;
}

.playful-bonus .bonus-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.playful-bonus h4 {
    font-size: 1.3rem;
    color: var(--text-main);
}

/* --- Pricing (Playful but conversion focused) --- */
.pricing-wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card.basic {
    border: 2px solid #E2E8F0;
}

.pricing-card.premium {
    border: 4px solid var(--primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    transform: scale(1.05);
    z-index: 2;
}

.best-seller-tag {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    white-space: nowrap;
}

.card-header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px dashed #E2E8F0;
}

.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.5rem;
}

.final-price {
    font-weight: 800;
    line-height: 1;
    font-family: 'Fredoka', sans-serif;
}

.check-list-price li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-main);
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.playful-faq {
    background: white;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 1.5rem 2rem;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
    background: #F8FAFC;
    padding: 0 2rem;
}

.playful-faq.active .faq-answer {
    max-height: 400px;
    padding: 1.5rem 2rem;
    border-top: 1px dashed #E2E8F0;
}

.playful-faq.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Guarantee --- */
.playful-guarantee {
    background: #F0FDF4;
    border: 3px dashed var(--success);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
}

/* --- Infinite Carousel --- */
.carousel-container-infinite {
    overflow: hidden;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.carousel-container-infinite::before,
.carousel-container-infinite::after {
    background: linear-gradient(to right, var(--bg-light) 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 60px;
    z-index: 2;
    top: 0;
}

.carousel-container-infinite::before {
    left: 0;
}

.carousel-container-infinite::after {
    right: 0;
    transform: rotateZ(180deg);
}

.carousel-track-infinite {
    display: flex;
    width: calc(250px * 16 + 32rem);
    /* width of one unit plus gap * number of items */
    gap: 2rem;
    animation: scroll-infinite 30s linear infinite;
}

.carousel-img-infinite {
    width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 4px solid white;
    transition: transform 0.3s ease;
}

.carousel-img-infinite:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: var(--shadow-lg);
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 8 - 16rem));
    }
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--primary);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.close-modal:hover {
    background: var(--danger);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-card.premium {
        transform: scale(1);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* --- Sales Notification --- */
.sales-toast {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: white;
    border-left: 5px solid var(--success);
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    opacity: 0;
    max-width: 350px;
}

.sales-toast.show {
    bottom: 20px;
    opacity: 1;
}

.toast-img {
    background: #DCFCE7;
    color: #15803D;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.3;
}

.toast-time {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin-top: 4px !important;
}

@media (max-width: 768px) {
    .sales-toast {
        right: 20px;
        left: auto;
        transform: translateY(0);
        width: calc(100% - 40px);
        max-width: 300px;
        bottom: -150px;
    }
    .sales-toast.show {
        bottom: 20px;
        transform: translateY(0);
    }
}