/* ===== DESIGN SYSTEM ===== */
:root {
    --bg: #fef9f2;
    --card-bg: #ffffff;
    --text-dark: #1a1a2e;
    --text-mid: #555570;
    --text-light: #8888a0;

    --accent-pink: #ff6b9d;
    --accent-orange: #ff9a56;
    --accent-purple: #a855f7;
    --accent-green: #34d399;
    --accent-blue: #60a5fa;

    --gradient-hot: linear-gradient(135deg, #ff6b9d, #ff9a56);
    --gradient-cool: linear-gradient(135deg, #a855f7, #60a5fa);
    --gradient-green: linear-gradient(135deg, #34d399, #06b6d4);

    --radius: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

    --font-display: 'Lilita One', cursive;
    --font-body: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== CONFETTI ===== */
.confetti-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.confetti-dot {
    position: absolute;
    border-radius: 50%;
    animation: float-up linear infinite;
    opacity: 0.3;
}

@keyframes float-up {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== NAV ===== */
.top-bar {
    background: #fff;
    border-bottom: 2px solid #f0ebe3;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--accent-pink);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-mid);
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--accent-pink);
}

/* ===== HERO ===== */
.vault-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
    position: relative;
    z-index: 1;
}

.hero-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-hot);
    color: #fff;
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-header h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-header h1 span {
    color: var(--accent-pink);
}

.hero-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ===== CALCULATOR CARD ===== */
.calc-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 2px solid #f0ebe3;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e8e0d8;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg);
    outline: none;
    transition: 0.2s;
}

.input-group input:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}

/* Toggle Group */
.toggle-group {
    display: flex;
    gap: 0.5rem;
}

.toggle {
    flex: 1;
    padding: 0.7rem;
    border: 2px solid #e8e0d8;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    color: var(--text-mid);
    font-family: var(--font-body);
}

.toggle:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.toggle.active {
    background: var(--gradient-hot);
    color: #fff;
    border-color: transparent;
}

.hidden {
    display: none !important;
}

/* BOGO Row */
.bogo-row {
    display: flex;
    gap: 1rem;
}

.bogo-row>div {
    flex: 1;
}

.bogo-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.bogo-row input {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #e8e0d8;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg);
    outline: none;
}

/* Calc Button */
.calc-btn {
    width: 100%;
    padding: 1.1rem;
    background: var(--gradient-hot);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.25s;
    font-family: var(--font-body);
    margin-top: 0.5rem;
}

.calc-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== RESULTS PANEL ===== */
.calc-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.results-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.ph-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.results-live {
    animation: fadeSlideUp 0.4s ease-out;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Result Items */
.result-hero {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid #bbf7d0;
}

.rh-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.rh-value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: #059669;
    line-height: 1.2;
}

.rh-sub {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin-top: 0.3rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid #f0ebe3;
}

.rr-label {
    font-weight: 500;
    color: var(--text-mid);
    font-size: 0.95rem;
}

.rr-value {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.rr-value.savings {
    color: #059669;
}

.rr-value.strikethrough {
    text-decoration: line-through;
    color: var(--text-light);
}

.savings-bar-container {
    margin-top: 1.5rem;
}

.sb-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.savings-bar {
    height: 12px;
    background: #f0ebe3;
    border-radius: 10px;
    overflow: hidden;
}

.savings-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--gradient-green);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TIPS ===== */
.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tip-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 2px solid #f0ebe3;
    padding: 2rem;
    transition: 0.3s;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-pink);
}

.tip-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: var(--gradient-hot);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
}

.tip-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.tip-card p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== ADS ===== */
.sponsor-slot {
    border: 2px dashed #e0d8d0;
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius);
    background: #fff;
    margin-bottom: 3rem;
}

.sponsor-slot.horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.ad-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.sponsor-slot img {
    max-width: 100%;
    max-height: 90px;
    border-radius: 8px;
}

.ad-name {
    font-weight: 700;
    font-size: 1rem;
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.ad-link {
    color: var(--accent-pink);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #fff;
    border-top: 2px solid #f0ebe3;
    padding: 2rem;
}

.f-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.f-links a {
    margin-left: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
}

.f-links a:hover {
    color: var(--accent-pink);
}

/* ===== SEO PAGES ===== */
.seo-box {
    max-width: 750px;
    margin: 3rem auto;
    padding: 3rem;
    background: #fff;
    border-radius: var(--radius);
    border: 2px solid #f0ebe3;
    box-shadow: var(--shadow-sm);
}

.seo-box h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.seo-box h1 span {
    color: var(--accent-pink);
}

.seo-box h2 {
    font-size: 1.1rem;
    margin: 1.8rem 0 0.8rem;
    color: var(--accent-purple);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.seo-box p {
    margin-bottom: 1.2rem;
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.7;
}

.seo-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.seo-form input,
.seo-form textarea {
    padding: 1rem;
    border: 2px solid #e8e0d8;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg);
    outline: none;
    transition: 0.2s;
}

.seo-form input:focus,
.seo-form textarea:focus {
    border-color: var(--accent-pink);
}

.seo-form button {
    padding: 1rem;
    background: var(--gradient-hot);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: var(--font-body);
}

.seo-form button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-header h1 {
        font-size: 2.5rem;
    }

    .calc-card {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .f-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .toggle-group {
        flex-direction: column;
    }
}