:root {
    --primary-color: #6f42c1; /* A modern, vibrant purple */
    --primary-hover: #5a359a;
    --dark-bg: #12121f; /* A deep, dark blue for backgrounds */
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333;
    --text-light: #f1f1f1;
    --border-color: #e9ecef;
    --bs-primary-rgb: 111, 66, 193; /* RGB for Bootstrap primary color */
    --bs-success-rgb: 111, 66, 193; /* RGB for Bootstrap success color */
    --bs-danger-rgb: 255, 193, 7; 
    --bs-btn-active-bg: #482c7a; 
    --bs-btn-active-border-color: #482c7a;
}

.btn-primary {
  --bs-btn-active-bg: #482c7a;
  --bs-btn-active-border-color: #482c7a;
}


body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(45deg, #12121f, #1e1e3f);
    color: var(--text-light);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-weight: 700;
}

.hero .lead {
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.5);
}

.btn-outline-primary {
     border-color: var(--primary-color);
     color: var(--primary-color);
     padding: 15px 35px;
     font-weight: 600;
     border-radius: 50px;
     transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-dark {
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
}


/* --- Section Styling --- */
section {
    padding: 80px 0;
}

.section-wave {
    position: relative;
    background-color: var(--light-bg);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px; /* Adjust height of the wave */
}

.wave-divider .shape-fill {
    fill: #12121f; /* Color of the wave, matches next section */
}


/* --- Card Styling --- */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    background-color: var(--card-bg);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Accordion for Day-by-Day --- */
#dayByDayAccordion .accordion-item {
    margin-bottom: 0.5rem;
    border-radius: 10px !important;
    border: 1px solid var(--border-color);
}
#dayByDayAccordion .accordion-button {
    font-weight: 600;
    border-radius: 10px !important;
}
#dayByDayAccordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #f5f1fd;
}

/* --- Lead Magnet Section --- */
#free-guide .card {
    border: 2px dashed var(--primary-color);
}

/* --- Testimonials --- */
.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
}

/* --- Guarantee Box --- */
.guarantee-box {
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    background-color: #f5f1fd;
}

/* --- Countdown Timer --- */
.countdown-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0;
}

#countdown {
    letter-spacing: 3px;
}

/* --- FAQ --- */
#faqAccordion .accordion-item {
    border-radius: 10px !important;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}
#faqAccordion .accordion-button {
    border-radius: 10px !important;
    font-weight: 600;
}
#faqAccordion .accordion-button:not(.collapsed) {
    color: white;
    background-color: var(--primary-color);
}
#faqAccordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.2);
}

/* --- Modal Styling --- */
body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: slide-down 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    padding: 40px;
}

.modal-body .left, .modal-body .right {
    width: 50%;
    padding: 20px;
}

.modal-body .left {
    border-right: 1px solid var(--border-color);
}

.pay-modal-head {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.pay-modal-head .highlight {
    color: var(--primary-color);
}

.pay-modal-list-item {
    margin-bottom: 10px;
    color: #555;
}

.author {
    display: flex;
    align-items: center;
    margin-top: 20px;
    color: #555;
    text-decoration: none;
}

.author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.disclaimer {
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.7;
    margin-top: 20px;
}

.pay-modal-subhead {
    margin-bottom: 20px;
    color: #555;
}

.pay-modal-upsell {
    position: relative;
    text-align: left;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 14px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.pay-modal-upsell:hover {
    border-color: var(--primary-color);
}

.pay-modal-upsell img {
    margin-right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 5px;
}

.pay-modal-upsell-right strong {
    font-size: 1rem;
    font-weight: 600;
}

.pay-modal-upsell-right p {
    color: #555;
    font-size: 0.8rem;
    margin: 0;
}

.pay-modal-upsell-add {
    margin-left: auto;
    padding: 5px 10px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
}

.pay-modal-upsell.active {
    border-color: #28a745;
    background: #e9f7ec;
}

.pay-modal-upsell.active .pay-modal-upsell-add {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.action-pay-modal-checkout {
    width: 100%;
    font-size: 1.2rem;
}

.stripe-security {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #777;
}


/* --- What You Get Section --- */
.what-you-get-box {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border-color);
}

.what-you-get-box .list-group-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.what-you-get-box .list-group-item:last-child {
    border-bottom: none;
}

.what-you-get-box .list-group-item i {
    font-size: 1.5rem;
    vertical-align: middle;
}

.pack-badge {
    display: inline-block;
    background-color: #f5f1fd;
    color: var(--primary-color);
    padding: 0.35em 1em;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Sticky CTA Bar --- */
.pay-cta {
    background: rgba(18, 18, 31, 0.9); /* 90% opaque dark background */
    color: var(--text-light);
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid #333;
    position: sticky;
    bottom: 0;
    z-index: 1040; /* Below the modal */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-in-out;
    transform: translateY(100%); /* Start hidden */
}

.pay-cta.visible {
    transform: translateY(0); /* Slide in */
}

.pay-cta .btn-primary {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1rem;
}

#sticky-countdown {
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        padding: 20px;
    }

    .modal-body .left, .modal-body .right {
        width: 100%;
        padding: 15px;
    }

    .modal-body .left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .pay-modal-head {
        font-size: 1.3rem;
    }
}


/* --- Backgrounds --- */
.bg-dark {
    background-color: var(--dark-bg) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}


/* --- Footer --- */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 40px 0;
}