html,
body {
    min-width: 100%;
    min-height: 100vh;
}

body {
    flex: unset;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =============================
   LAYOUT
============================= */
.mv-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* 🔥 change */
    align-items: center;
    width: 100%;
}

.fixed_bg__layer {
    z-index: -1;
}


.mv-container {
    display: flex;
    gap: 30px;
    /* flex-wrap: wrap; */
    width: min(90%, 1200px);
    justify-content: center;
}

/* =============================
   POCKET MONEY DISPLAY (TOP)
============================= */
.mv-pocket-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--background);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(255, 170, 0, 0.4);
    margin-bottom: 25px;
    animation: mv-bounceIn 0.8s ease-out;
    border: 1px solid #ffffff54;
    padding: 10px 20px;
}

.mv-pocket-icon {
    font-size: 32px;
    color: #fff;
    animation: mv-shake 2s infinite;
}

.mv-pocket-info {
    text-align: left;
}

.mv-pocket-label {
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mv-pocket-amount {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* =============================
   CARDS
============================= */
.mv-form-card {
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    flex: 1;
    /* min-width: 320px; */
    animation: mv-slide-left 0.6s ease-out;
    border: 1px solid #ffffff61;
    backdrop-filter: blur(1px);
    background: #ffffff12;
}

.mv-score-card {
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    flex: 1;
    min-width: 280px;
    color: #1e3a8a;

    /* 🔥 MOVING RADIAL */
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.08) 11%,
            transparent 22%),
        #1e3a8a;
    background-size: 200% 200%;
    animation:
        mv-slide-right 0.6s ease-out,
        mv-light 12s linear infinite;
    border: 1px solid #ffffff61;
}

/* =============================
   TEXT
============================= */
.mv-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.mv-score-card .mv-title {
    color: #fff;
}

/* =============================
   INPUTS
============================= */
.mv-input-group {
    margin-bottom: 24px;
    position: relative;
    /* padding: 20px; */
    /* border-bottom: 2px dashed white; */
}

.mv-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.mv-input-group label i {
    margin-right: 6px;
    font-size: 16px;
}

.mv-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mv-currency {
    position: absolute;
    left: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    z-index: 2;
}

.mv-input-group input {
    width: 100%;
    padding: 14px 14px 14px 38px;
    border-radius: 14px;
    /* border: 2px solid #e0e0e0; */
    outline: none;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    box-sizing: border-box;
    background: #fafafa;
    border: none;
}

.mv-input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: #fff;
}

.mv-input-group input::placeholder {
    color: #bbb;
    font-weight: 400;
}

/* ✔ CHECKMARK */
.mv-checkmark {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: 22px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: unset;
}

span.mv-checkmark {}

.mv-checkmark.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* ❌ ERROR */
.mv-error {
    font-size: 12px;
    color: #f44336;
    margin-top: 6px;
    display: none;
    font-weight: 600;
    padding-left: 4px;
}

.mv-error.show {
    display: block;
    animation: mv-shake 0.4s ease;
}

/* =============================
   SCORE
============================= */
.mv-total-score {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.mv-score-number {
    font-size: 56px;
    font-weight: 800;
    color: white;
    animation: mv-pulse 2s infinite;
    display: inline-block;
}

.mv-score-label {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* BREAKDOWN */
.mv-points-breakdown {
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mv-point-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease;
}

.mv-point-item:hover {
    transform: translateX(4px);
}

.mv-point-item:last-child {
    border-bottom: none;
}

.mv-point-name {
    font-size: 14px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mv-point-name i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.mv-point-value {
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Color accents for each category */
.mv-point-spend .mv-point-name i {
    color: #ff6b6b;
}

.mv-point-share .mv-point-name i {
    color: #feca57;
}

.mv-point-save .mv-point-name i {
    color: #1dd1a1;
}

/* =============================
   BUTTON
============================= */
.mv-proceed-btn {
    margin-top: 30px;
    padding: 16px 50px;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: mv-slide-up 0.6s ease-out 0.3s both;
    border: 1px solid white;
    background-color: var(--background);
}

.mv-proceed-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.mv-proceed-btn:active {
    transform: translateY(-1px);
}

.mv-proceed-btn i {
    transition: transform 0.3s ease;
}

.mv-proceed-btn:hover i {
    transform: translateX(4px);
}

/* =============================
   MODAL / POPUP
============================= */
.mv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mv-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mv-modal-content {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid #ffd700;
}

.mv-modal-overlay.show .mv-modal-content {
    transform: scale(1) translateY(0);
}

.mv-modal-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: mv-bounce 1s infinite;
}

.mv-modal-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.mv-modal-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.mv-modal-amount {
    font-size: 48px;
    font-weight: 800;
    color: #27ae60;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(39, 174, 96, 0.2);
}

.mv-modal-close {
    padding: 14px;
    border: none;
    /* border-radius: 50px; */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
}

.mv-modal-btn {
    padding: 14px;
    border: none;
    /* border-radius: 50px; */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: capitalize;

}

.mv-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* =============================
   ANIMATIONS
============================= */
@keyframes mv-slide-left {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes mv-light {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 0%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes mv-slide-right {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes mv-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes mv-bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes mv-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes mv-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes mv-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 768px) {

    .mv-page-wrapper {
        width: 100%;
        max-width: 1200px;
    }

    .mv-container {
        flex-direction: column;
        gap: 20px;
        /* 30 → 20 */
    }

    .mv-form-card,
    .mv-score-card {
        padding: 22px;
    }




    .mv-container {
        flex-direction: column;
    }

    .mv-pocket-display {
        padding: 12px 25px;
    }

    .mv-pocket-amount {
        font-size: 24px;
    }

    .mv-score-number {
        font-size: 42px;
    }

    .mv-modal-content {
        padding: 35px 25px;
    }

    .mv-modal-amount {
        font-size: 36px;
    }
}


/* =============================
   BASE
============================= */
html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;
}

/* =============================
   LAYOUT
============================= */
.mv-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;

    /* 🔥 important fix */
    justify-content: center;
    width: 100%;
    padding: 20px 16px 40px;
    /* bottom space for button */
    box-sizing: border-box;
}

/* 🔥 background fix */
.fixed_bg__layer {
    position: fixed;
    inset: 0;
    z-index: -1;
}

/* =============================
   CONTAINER
============================= */
.mv-container {
    display: flex;
    gap: 30px;
    width: min(100%, 1200px);
    justify-content: center;
}

/* =============================
   CARDS
============================= */
.mv-form-card,
.mv-score-card {
    flex: 1;
    min-width: 300px;
}

/* =============================
   BUTTON (IMPORTANT FIX)
============================= */
.mv-proceed-btn {
    margin-top: 30px;
    padding: 16px 40px;
    border-radius: 50px;

    /* 🔥 always visible feel */
    align-self: center;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 768px) {

    .mv-container {
        flex-direction: column;
        gap: 20px;
    }

    .mv-form-card,
    .mv-score-card {
        width: 100%;
        min-width: unset;
        padding: 20px;
    }

    /*
    🔥 BEST FIX FOR BUTTON VISIBILITY
    .mv-proceed-btn {
        position: sticky;
        bottom: 10px;
        width: 100%;
        justify-content: center;
    }*/
}



.pm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.pm-modal {
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    width: min(600px, 90vw);
    border: 3px solid #ffd700;
}

.pm-icon {
    font-size: 52px;
    margin-bottom: 10px;
}

.pm-modal h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 8px;
}

.pm-modal p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}

.pm-input-wrap {
    position: relative;
    margin-bottom: 6px;
}

.pm-rupee {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.pm-input-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 14px 14px 38px;
    border-radius: 14px;
    border: 2px solid #e0e0e0;
    font-size: 22px;
    font-weight: 600;
    outline: none;
}

.pm-hint {
    font-size: 12px;
    color: #aaa;
    margin: 4px 0 12px;
}

.pm-err.pm-err.pm-err {
    font-size: 13px;
    color: red;
    min-height: 18px;
    margin-bottom: 12px;
}

.pm-btn {
    width: 100%;
    padding: 14px;
    /*! border-radius: 50px; */
    background: linear-gradient(135deg, #0027d6, #764ba2);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

/* =========================================
   REUSABLE RANGE STYLING
========================================= */

.mv-range-wrap {
    margin-top: 10px;
}

/* RANGE INPUT */

.mv-range-wrap input[type="range"] {

    width: 100%;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    cursor: pointer;
    padding-left: 0;
}

/* =========================================
   TRACK
========================================= */

.mv-range-wrap input[type="range"]::-webkit-slider-runnable-track {

    height: 10px;
    border-radius: 999px;

    background:
        linear-gradient(90deg,
            #0e4c825b 0%,
            #062c2e62 100%);

    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.25),
        0 1px 1px rgba(255, 255, 255, 0.15);
}

.mv-range-wrap input[type="range"]::-moz-range-track {

    height: 10px;
    border-radius: 999px;

    background:
        linear-gradient(90deg,
            #113657 0%,
            #0d3e40 100%);
}

/* =========================================
   THUMB
========================================= */

.mv-range-wrap input[type="range"]::-webkit-slider-thumb {

    appearance: none;
    -webkit-appearance: none;

    width: 34px;
    height: 34px;

    margin-top: -11px;

    border-radius: 10%;
    border: 2px solid rgba(255, 255, 255, 0.25);

    background:
        url('../../assets/rangeBarIcon.png') center center / cover no-repeat,
        #1e3a8a;

    box-shadow:
        0 4px 14px rgba(37, 99, 235, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.25);

    cursor: pointer;

    transition: 0.25s ease;
}

.mv-range-wrap input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.08);
}

.mv-range-wrap input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

/* FIREFOX */

.mv-range-wrap input[type="range"]::-moz-range-thumb {

    width: 34px;
    height: 34px;

    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10%;

    background:
        url('../../assets/rangeBarIcon.png') center center / cover no-repeat,
        #1e3a8a;

    box-shadow:
        0 4px 14px rgba(37, 99, 235, 0.45);

    cursor: pointer;
}

/* =========================================
   RANGE VALUES
========================================= */

.mv-range-values {

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 12px;

    color: white;
    font-size: 15px;
    font-weight: 700;
}

/* CURRENT VALUE */

#mv-inflation-value,
#mv-college-inflation-value {

    padding: 6px 14px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15);
}


.responsible-parent {
    display: flex;
    justify-content: space-between;
}

.hidden {
    display: none;
}
