:root {
    /* Pink Gradient Theme */
    --primary-color: #ff3366;
    /* Hot Pink */
    --primary-gradient: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
    --secondary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --header-bg: rgba(255, 255, 255, 0.9);

    --text-color: #333333;
    --accent-color: #ff3366;
    --bg-color: #fff0f5;
    /* Lavender Blush */

    --card-bg: #ffffff;
    --card-organic-bg: #fff;
    --card-meta-bg: #000000;

    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background: var(--bg-color);
    /* Fallback */
    background: linear-gradient(180deg, #fff0f5 0%, #ffe4e1 100%);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ========================
   INDEX PAGE
   ======================== */
.index-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
    background: var(--secondary-gradient);
}

.hero-container h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #d81b60;
    min-height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
}

.cursor {
    font-weight: bold;
    color: #d81b60;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.fade-in-text {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 30px;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: #ff3366;
    background: linear-gradient(45deg, #ff3366, #ff6b6b);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:active {
    transform: scale(0.98);
}

/* ========================
   BUILDER PAGE
   ======================== */
.builder-page {
    padding-top: 80px;
    padding-bottom: 100px;
    /* Space for fixed bottom CTA if needed */
    overflow-x: hidden;
    background-attachment: fixed;
}

/* STICKY HEADER */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 15px 20px;
    box-shadow: 0 2px 15px rgba(255, 51, 102, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.total-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #d81b60;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.savings-badge {
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(45deg, #43a047, #66bb6a);
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 5px;
    display: none;
    box-shadow: 0 2px 5px rgba(67, 160, 71, 0.3);
}

/* CARDS */
.cards-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px;
    scrollbar-width: none;
}

.cards-container::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
}

@media (min-width: 768px) {
    .cards-container {
        justify-content: center;
        overflow-x: visible;
        flex-wrap: wrap;
    }

    .card {
        flex: 0 0 320px;
    }
}

/* Organic Cards */
.card-organic {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-organic .card-header .title {
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ff6b6b;
    margin-bottom: 8px;
    font-weight: 700;
}

.card-organic .card-header .subtext {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* Meta Card */
.card-meta {
    background: #000;
    background: linear-gradient(160deg, #1a1a1a 0%, #000000 100%);
    color: #fff;
    border: 1px solid #333;
}

.card-meta .card-header .title {
    color: #888;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff0f5;
    /* Light pink tint */
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 20px;
}

.stepper-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #fff;
    border-radius: 12px;
    font-size: 1.4rem;
    cursor: pointer;
    color: #d81b60;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: background 0.2s;
}

.stepper-btn:hover {
    background: #ffeef2;
}

.stepper-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    width: 50px;
    text-align: center;
}

/* Pricing Info */
.price-info {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-info span {
    font-weight: 700;
    color: #d81b60;
}

.card-meta .price-info span {
    color: #fff;
}

.meta-price-display {
    text-align: center;
    margin: 20px 0;
}

.original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 1rem;
    display: block;
}

.final-price {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    background: -webkit-linear-gradient(45deg, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.meta-condition-text {
    font-size: 0.8rem;
    text-align: center;
    color: #888;
    margin-top: 5px;
}

/* Meta Toggle Switch */
.meta-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.toggle-btn {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    display: flex;
    align-items: center;
    gap: 8px;
    outline: none;
}

.toggle-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.toggle-btn.active {
    background: #4caf50;
    /* Green for selected */
    border-color: #4caf50;
    color: #fff;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    transform: scale(1.05);
}

.toggle-btn.active:hover {
    background: #43a047;
    transform: scale(1.05) translateY(-2px);
}


/* Features */
.features-list li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    opacity: 0.85;
}

.features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-size: 1.2rem;
    line-height: 1rem;
}

.card-meta .features-list li::before {
    color: #d81b60;
}

/* Badge */
.organic-badge {
    text-align: center;
    background: #ffeef2;
    color: #d81b60;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.organic-badge.visible {
    opacity: 1;
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    padding: 30px;
    position: relative;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.breakup-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.breakup-row.total {
    border-bottom: none;
    border-top: 2px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #d81b60;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border 0.2s;
}

.form-input:focus {
    border-color: #d81b60;
    outline: none;
}

.upi-box {
    background: #f0f0f0;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: #ccc;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.file-upload-box {
    border: 2px dashed #ff9a9e;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #fff0f5;
    cursor: pointer;
}

/* Toast */
.toast {
    /* Existing style override if needed */
    bottom: 30px;
    background: #333;
}