body.light {
    background-image: url("./assets/01.png");
    background-repeat: repeat;
    background-size: cover;
    background-position: center;
}

body.dark {
    background-image: url("./assets/03.png");
    background-repeat: repeat;
    background-size: cover;
    background-position: center;
}

#coinsContainer {
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.coin {
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    transition: transform 0.3s;
    /* Only up-down float animation */
    animation: float 3s ease-in-out infinite;
    color: white;
}

.coin:hover {
    transform: scale(1.2);
    opacity: 1;
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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



.form-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 48%;
    min-width: 350px;
    flex: 1;
    animation: slideInLeft 0.6s ease-out;
}

.score-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 48%;
    min-width: 350px;
    flex: 1;
    color: white;
    animation: slideInRight 0.6s ease-out;
}

h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 28px;
    text-align: center;
}

.score-card h2 {
    color: white;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

input.valid {
    border-color: #4caf50;
    background: #f1f8f4;
}

input.invalid {
    border-color: #f44336;
    background: #ffebee;
}

.checkmark {
    position: absolute;
    right: 15px;
    top: 43px;
    color: #4caf50;
    font-size: 24px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.checkmark.show {
    opacity: 1;
    transform: scale(1);
    animation: bounce 0.5s ease;
}

.error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.error-message.show {
    display: block;
}

.total-score {
    text-align: center;
    margin-top: 20px;
}

.score-number {
    font-size: 80px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.score-label {
    font-size: 20px;
    margin-top: 10px;
    opacity: 0.9;
}

.points-breakdown {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

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

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

.point-name {
    font-size: 16px;
}

.point-value {
    font-size: 20px;
    font-weight: bold;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
    transition: all 0.3s ease;
}

.point-value.updated {
    animation: pointPop 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes bounce {

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

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

@keyframes pulse {

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

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

@keyframes pointPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
        background: rgba(255, 255, 255, 0.6);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        align-items: center;
        margin-top: 100px;
    }

    .form-card,
    .score-card {
        width: 100%;
        max-width: 500px;
    }

    #coinsContainer {
        height: 150px;
    }

    .coin {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

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

    .score-number {
        font-size: 60px;
    }

    #coinsContainer {
        height: 120px;
    }
}

.footer-bar-design {
    width: -webkit-fill-available;
    height: 125px;
    overflow: hidden;
    background: linear-gradient(326deg, #a4508b 0%, #FFD700 15%, #6824d6 30%, #FFA500 45%, #fe3258 60%, #FF69B4 75%, #87CEEB 85%, #98FB98 100%);
    filter: opacity(0.6);
    bottom: 0;
    position: absolute;
}



.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 180px;
    background: url(https://1.bp.blogspot.com/-NYl6L8pz8B4/XoIVXwfhlNI/AAAAAAAAU3k/nxJKiLT706Mb7jUFiM5vdCsOSNnFAh0yQCLcBGAsYHQ/s1600/hero-wave.png) repeat-x;
    animation: wave 10s linear infinite;
    transform: scaleY(-1);
    z-index: 1;
}

.listar-map-button {
    position: relative;
    z-index: 2;
}


@keyframes wave {
    0% {
        background-position: 0;
    }

    100% {
        background-position: 1440px;
    }
}

.theme-btn {
    z-index: 1000;
    width: 60px;
    height: 60px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    margin: 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}


.theme-btn.light {
    background-color: white;
    color: #222;
    box-shadow: 0 8px 20px rgba(255, 167, 81, 0.5);
}

.theme-btn.dark {
    background: linear-gradient(135deg, #4b1cb8, #1b0a3d);
    color: #fff;
    box-shadow: 0 8px 20px rgba(104, 36, 214, 0.6);
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn:active {
    transform: scale(0.95);
}

.proceedBtn {
    opacity: 1 !important;
    filter: none !important;
    z-index: 999;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(326deg, #a4508b 50%, #FF69B4 50%);
    padding: 18px 60px;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.5),
        0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 150;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
}


.proceedBtn:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(326deg, #FF69B4 50%, #a4508b 50%);
}


#coinsContainer {
    position: relative;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

body {
    overflow-x: hidden;
}




.page-wrapper {
    min-height: 100vh;
    position: relative;
    /* 🔥 reference */
    display: flex;
    flex-direction: column;
}


.footer-bar-design {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 125px;
    overflow: hidden;
    z-index: 1;
}



.footer-bar-design::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(326deg,
            #a4508b 0%,
            #FFD700 15%,
            #6824d6 30%,
            #FFA500 45%,
            #fe3258 60%,
            #FF69B4 75%,
            #87CEEB 85%,
            #98FB98 100%);
    opacity: 0.6;
    z-index: 0;
}

/* Real content upar rahe */
.footer-bar-design>* {
    position: relative;
    z-index: 2;
}

@media(max-width:768px) {

    .footer-bar-design {
        position: static;
    }

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::selection {
    background-color: #2bed73;
    color: white;
}

body {
    font-family: "Noto Sans", sans-serif;
    position: relative;
    overflow-x: hidden;
}

body.light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

body.dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-attachment: fixed;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px;
    padding-bottom: 200px;
}

#coinsContainer {
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.coin {
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    transition: transform 0.3s;
    animation: float 3s ease-in-out infinite;
    color: white;
}

.coin:hover {
    transform: scale(1.2);
    opacity: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    margin-top: 100px;
    z-index: 1000;
}

.form-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 48%;
    min-width: 350px;
    flex: 1;
    animation: slideInLeft 0.6s ease-out;
}

.score-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 48%;
    min-width: 350px;
    flex: 1;
    color: white;
    animation: slideInRight 0.6s ease-out;
}

h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 28px;
    text-align: center;
}

.score-card h2 {
    color: white;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

input.valid {
    border-color: #4caf50;
    background: #f1f8f4;
}

input.invalid {
    border-color: #f44336;
    background: #ffebee;
}

.checkmark {
    position: absolute;
    right: 15px;
    top: 36px;
    color: #4caf50;
    font-size: 24px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.checkmark.show {
    opacity: 1;
    transform: scale(1);
    animation: bounce 0.5s ease;
}

.error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.error-message.show {
    display: block;
}

.total-score {
    text-align: center;
    margin-top: 20px;
}

.score-number {
    font-size: 80px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.score-label {
    font-size: 20px;
    margin-top: 10px;
    opacity: 0.9;
}

.points-breakdown {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

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

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

.point-name {
    font-size: 16px;
}

.point-value {
    font-size: 20px;
    font-weight: bold;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
    transition: all 0.3s ease;
}

.point-value.updated {
    animation: pointPop 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes bounce {

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

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

@keyframes pulse {

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

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

@keyframes pointPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
        background: rgba(255, 255, 255, 0.6);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

.footer-bar-design {
    width: 100%;
    height: 125px;
    overflow: visible;
    background: linear-gradient(326deg, #a4508b 0%, #FFD700 15%, #6824d6 30%, #FFA500 45%, #fe3258 60%, #FF69B4 75%, #87CEEB 85%, #98FB98 100%);
    filter: opacity(0.6);
    bottom: 0;
    position: fixed;
    left: 0;
    z-index: 1;
}

.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 180px;
    background: url(https://1.bp.blogspot.com/-NYl6L8pz8B4/XoIVXwfhlNI/AAAAAAAAU3k/nxJKiLT706Mb7jUFiM5vdCsOSNnFAh0yQCLcBGAsYHQ/s1600/hero-wave.png) repeat-x;
    animation: wave 10s linear infinite;
    transform: scaleY(-1);
    z-index: 1;
}

@keyframes wave {
    0% {
        background-position: 0;
    }

    100% {
        background-position: 1440px;
    }
}

.theme-btn {
    width: 60px;
    height: 60px;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.theme-btn.light {
    background-color: white;
    color: #222;
    box-shadow: 0 8px 20px rgba(255, 167, 81, 0.5);
}

.theme-btn.dark {
    background: linear-gradient(135deg, #4b1cb8, #1b0a3d);
    color: #fff;
    box-shadow: 0 8px 20px rgba(104, 36, 214, 0.6);
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn:active {
    transform: scale(0.95);
}



/* Mobile Responsive */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        align-items: center;
        margin-top: 80px;
        gap: 20px;
    }

    .form-card,
    .score-card {
        width: 100%;
        max-width: 500px;
        min-width: unset;
    }

    #coinsContainer {
        height: 150px;
    }

    .coin {
        font-size: 14px;
    }

    .page-wrapper {
        padding-bottom: 220px;
    }
}

@media (max-width: 480px) {

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

    .score-number {
        font-size: 60px;
    }

    #coinsContainer {
        height: 120px;
    }

    .proceedBtn {
        padding: 15px 40px;
        font-size: 16px;
        bottom: 30px;
    }

    h2 {
        font-size: 24px;
    }

    .page-wrapper {
        padding: 15px;
        padding-bottom: 200px;
    }
}
