.nisarga-whatsapp-widget,
.nisarga-whatsapp-widget *,
.nisarga-donation-widget,
.nisarga-donation-widget * {
    box-sizing: border-box;
}

.nisarga-whatsapp-widget,
.nisarga-donation-widget {
    width: 100%;
    max-width: 100%;
    margin: 20px 0 0;
    padding: 4px;
    font-family: "Noto Sans Kannada", "Tunga", Arial, sans-serif;
}

.nisarga-whatsapp-card,
.nisarga-donation-card {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 27px 17px 22px;
    overflow: hidden;
    text-align: center;
    border-radius: 24px;
    box-shadow:
        0 18px 42px rgba(0, 78, 50, .14),
        0 5px 15px rgba(0, 0, 0, .05);
}

.nisarga-whatsapp-card {
    border: 1px solid rgba(16, 145, 79, .22);
    background:
        radial-gradient(circle at top right, rgba(255, 122, 24, .18), transparent 38%),
        linear-gradient(145deg, #fff 0%, #effff6 52%, #e4fff0 100%);
}

.nisarga-donation-card {
    border: 1px solid rgba(5, 95, 61, .18);
    background:
        radial-gradient(circle at top right, rgba(255, 119, 18, .15), transparent 38%),
        linear-gradient(150deg, #fff 0%, #f3fff8 55%, #edfff6 100%);
}

.nisarga-whatsapp-card::before,
.nisarga-donation-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    content: "";
}

.nisarga-whatsapp-card::before {
    background: linear-gradient(90deg, #075b3b, #25d366, #ff7417);
}

.nisarga-donation-card::before {
    background: linear-gradient(90deg, #075c3c 0%, #0b9763 55%, #ff7316 100%);
}

.nisarga-whatsapp-card::after,
.nisarga-donation-card::after {
    position: absolute;
    right: -50px;
    bottom: -65px;
    width: 145px;
    height: 145px;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.nisarga-whatsapp-card::after {
    background: rgba(37, 211, 102, .08);
}

.nisarga-donation-card::after {
    background: rgba(255, 119, 18, .07);
}

.nisarga-whatsapp-icons {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.nisarga-whatsapp-main-icon,
.nisarga-people-icon,
.nisarga-donation-heart {
    display: grid;
    place-items: center;
    color: #fff;
    border: 5px solid #fff;
    border-radius: 50%;
}

.nisarga-whatsapp-main-icon {
    position: relative;
    z-index: 3;
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #35df76, #119a4b);
    box-shadow:
        0 12px 26px rgba(20, 170, 82, .30),
        0 0 0 8px rgba(37, 211, 102, .11);
    animation: nisargaWhatsappPulse 2.3s infinite;
}

.nisarga-people-icon {
    width: 47px;
    height: 47px;
    margin-left: -11px;
    border-width: 4px;
    background: linear-gradient(145deg, #ff862c, #ef5e08);
    box-shadow: 0 9px 20px rgba(239, 94, 8, .25);
    animation: nisargaPeopleFloat 2.8s ease-in-out infinite;
}

.nisarga-donation-heart {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 62px;
    margin: 0 auto 13px;
    background: linear-gradient(145deg, #ff8a38, #ef5c08);
    box-shadow:
        0 12px 25px rgba(239, 93, 8, .25),
        0 0 0 8px rgba(255, 115, 22, .09);
    animation: nisargaDonationFloat 2.8s ease-in-out infinite;
}

.nisarga-whatsapp-main-icon .ns-svg-icon { width: 37px; height: 37px; }
.nisarga-people-icon .ns-svg-icon { width: 25px; height: 25px; }
.nisarga-donation-heart .ns-svg-icon { width: 29px; height: 29px; }

.nisarga-whatsapp-badge,
.nisarga-donation-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 11px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    border-radius: 50px;
}

.nisarga-whatsapp-badge {
    color: #08713d;
    border: 1px solid rgba(37, 211, 102, .25);
    background: rgba(37, 211, 102, .10);
}

.nisarga-donation-badge {
    color: #fff;
    background: linear-gradient(135deg, #08613f, #0b9160);
    box-shadow: 0 8px 18px rgba(5, 105, 68, .22);
}

.nisarga-whatsapp-title,
.nisarga-donation-title {
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
    color: #06412e;
    font-family: "Noto Serif Kannada", "Tunga", serif;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 900;
    line-height: 1.48;
    letter-spacing: 0;
    word-break: normal;
}

.nisarga-whatsapp-title span,
.nisarga-donation-title span {
    display: block;
    margin-top: 3px;
    color: #ef6810;
}

.nisarga-whatsapp-description,
.nisarga-donation-text {
    position: relative;
    z-index: 2;
    max-width: 275px;
    margin: 0 auto 18px;
    color: #53665f;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.78;
}

.nisarga-whatsapp-members {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.nisarga-member-circle {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: -7px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #087348;
    box-shadow: 0 5px 12px rgba(0, 80, 48, .14);
}

.nisarga-member-circle:first-child { margin-left: 0; background: #ff7417; }
.nisarga-member-circle:nth-child(2) { background: #0b9b60; }
.nisarga-member-circle:nth-child(3) { background: #075b3b; }

.nisarga-member-text {
    margin-left: 9px;
    color: #35584a;
    font-size: 10.8px;
    font-weight: 800;
}

.nisarga-whatsapp-button,
.nisarga-donation-button {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 11px 15px;
    gap: 9px;
    color: #fff !important;
    font-family: "Noto Sans Kannada", "Tunga", sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
    text-decoration: none !important;
    border: 0;
    border-radius: 50px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.nisarga-whatsapp-button {
    background: linear-gradient(135deg, #2bd56b 0%, #16ad55 55%, #087b3d 100%);
    box-shadow:
        0 13px 28px rgba(14, 160, 75, .29),
        inset 0 1px 0 rgba(255, 255, 255, .25);
    animation: nisargaButtonGlow 2.4s ease-in-out infinite;
}

.nisarga-donation-button {
    background: linear-gradient(135deg, #ff8129, #ef5d08);
    box-shadow: 0 12px 25px rgba(239, 93, 8, .26);
}

.nisarga-whatsapp-button .ns-svg-icon,
.nisarga-donation-button .ns-svg-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}

.nisarga-whatsapp-button:hover,
.nisarga-whatsapp-button:focus,
.nisarga-donation-button:hover,
.nisarga-donation-button:focus {
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-3px);
}

.nisarga-whatsapp-button:hover,
.nisarga-whatsapp-button:focus {
    box-shadow:
        0 18px 35px rgba(14, 160, 75, .38),
        0 0 0 6px rgba(37, 211, 102, .12);
}

.nisarga-donation-button:hover,
.nisarga-donation-button:focus {
    box-shadow: 0 16px 30px rgba(239, 93, 8, .34);
}

.nisarga-whatsapp-small,
.nisarga-donation-disclaimer {
    position: relative;
    z-index: 2;
    margin: 12px 0 0;
    color: #687970;
    font-size: 10.3px;
    font-weight: 600;
    line-height: 1.65;
}

.nisarga-scanner-area {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 14px 0 18px;
}

.nisarga-scanner-frame {
    position: relative;
    width: min(190px, 82%);
    aspect-ratio: 1 / 1;
    padding: 9px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 21px;
    background: #fff;
    box-shadow:
        0 0 0 3px #0a8055,
        0 0 0 7px rgba(255, 115, 22, .14),
        0 16px 32px rgba(0, 75, 49, .19);
}

.nisarga-scanner-crop {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 13px;
    background: #fff;
}

.nisarga-scanner-crop img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
    transform: translate(-50%, -50%);
    filter: contrast(1.04) saturate(1.02);
}

.nisarga-qr-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    color: #4e655b;
    background: repeating-linear-gradient(45deg, #f7fbf9, #f7fbf9 8px, #eef6f2 8px, #eef6f2 16px);
    text-align: center;
}

.nisarga-qr-fallback .ns-svg-icon {
    width: 34px;
    height: 34px;
    color: #0a8055;
}

.nisarga-qr-fallback strong { color: #184b38; font-size: 12px; }
.nisarga-qr-fallback small { font-size: 10px; line-height: 1.5; }

.nisarga-scanner-frame.has-error img,
.nisarga-scanner-frame.has-no-image img {
    display: none !important;
}

.nisarga-scanner-frame.has-error .nisarga-qr-fallback,
.nisarga-scanner-frame.has-no-image .nisarga-qr-fallback {
    display: flex;
}

.nisarga-corner {
    position: absolute;
    z-index: 4;
    width: 29px;
    height: 29px;
    pointer-events: none;
}

.nisarga-corner-one {
    top: 6px;
    left: 6px;
    border-top: 4px solid #ff7215;
    border-left: 4px solid #ff7215;
    border-radius: 7px 0 0;
}

.nisarga-corner-two {
    top: 6px;
    right: 6px;
    border-top: 4px solid #ff7215;
    border-right: 4px solid #ff7215;
    border-radius: 0 7px 0 0;
}

.nisarga-corner-three {
    bottom: 6px;
    left: 6px;
    border-bottom: 4px solid #ff7215;
    border-left: 4px solid #ff7215;
    border-radius: 0 0 0 7px;
}

.nisarga-corner-four {
    right: 6px;
    bottom: 6px;
    border-right: 4px solid #ff7215;
    border-bottom: 4px solid #ff7215;
    border-radius: 0 0 7px;
}

.nisarga-scan-note {
    position: relative;
    z-index: 2;
    max-width: 245px;
    margin: 0 auto 15px;
    color: #435850;
    font-size: 11.2px;
    font-weight: 600;
    line-height: 1.72;
}

.ns-floating-whatsapp {
    position: fixed;
    z-index: 999;
    right: 20px;
    bottom: 88px;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 9px 15px 9px 10px;
    color: #fff !important;
    border: 3px solid #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #26d466, #0c9247);
    box-shadow: 0 14px 32px rgba(7, 107, 53, .32);
    font-family: "Noto Sans Kannada", sans-serif;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease;
}

.ns-floating-whatsapp:hover,
.ns-floating-whatsapp:focus {
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(7, 107, 53, .4);
}

.ns-floating-whatsapp .ns-svg-icon {
    width: 30px;
    height: 30px;
}

.ns-svg-icon {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ns-icon-fill { fill: currentColor; stroke: none; }
.ns-icon-fill-light { fill: #fff; stroke: none; }

@keyframes nisargaWhatsappPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 12px 26px rgba(20, 170, 82, .30), 0 0 0 8px rgba(37, 211, 102, .10);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 15px 32px rgba(20, 170, 82, .38), 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

@keyframes nisargaPeopleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes nisargaDonationFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes nisargaButtonGlow {
    0%, 100% {
        box-shadow: 0 13px 28px rgba(14, 160, 75, .28), inset 0 1px 0 rgba(255,255,255,.25);
    }
    50% {
        box-shadow: 0 17px 34px rgba(14, 160, 75, .40), 0 0 0 5px rgba(37, 211, 102, .08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nisarga-whatsapp-main-icon,
    .nisarga-people-icon,
    .nisarga-donation-heart,
    .nisarga-whatsapp-button {
        animation: none !important;
    }
}

@media (max-width: 600px) {
    .nisarga-whatsapp-widget,
    .nisarga-donation-widget {
        padding: 5px 0;
    }

    .nisarga-whatsapp-card,
    .nisarga-donation-card {
        padding: 27px 17px 23px;
        border-radius: 21px;
    }

    .nisarga-whatsapp-title,
    .nisarga-donation-title {
        font-size: 22px;
    }

    .nisarga-scanner-frame {
        width: min(205px, 76vw);
    }

    .ns-floating-whatsapp {
        right: 14px;
        bottom: 75px;
        width: 56px;
        height: 56px;
        min-height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .ns-floating-whatsapp span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
