/**
 * StopWallet BSoft
 * Premium Authentication UI
 *
 * Features:
 * - Premium Gradient
 * - Glassmorphism
 * - Responsive
 * - Forgot Password
 * - Reset Password
 * - Perfect Password Eye Toggle
 * - Dark Mode
 * - Smooth Animation
 *
 * @package StopWallet
 * @subpackage ForgotPassword
 * @since 3.4.0
 */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    --sw-primary: #2563eb;
    --sw-primary-dark: #1d4ed8;
    --sw-secondary: #7c3aed;
    --sw-accent: #06b6d4;

    --sw-success: #10b981;
    --sw-danger: #ef4444;
    --sw-warning: #f59e0b;

    --sw-text: #172033;
    --sw-text-soft: #64748b;
    --sw-placeholder: #94a3b8;

    --sw-white: #ffffff;

    --sw-glass:
        rgba(255,255,255,.72);

    --sw-glass-strong:
        rgba(255,255,255,.88);

    --sw-border:
        rgba(255,255,255,.55);

    --sw-radius: 24px;
    --sw-input-radius: 15px;

    --sw-shadow:
        0 30px 80px rgba(15,23,42,.18);

    --sw-shadow-soft:
        0 12px 35px rgba(15,23,42,.10);

    --sw-transition:
        .25s cubic-bezier(.4,0,.2,1);
}


/* =========================================================
   AUTH WRAPPER
========================================================= */

.sw-auth-wrapper {

    position: relative;

    width: 100%;
    min-height: 650px;

    padding: 70px 20px;

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

    overflow: hidden;

    box-sizing: border-box;

    background:

        radial-gradient(
            circle at 10% 10%,
            rgba(37,99,235,.28),
            transparent 34%
        ),

        radial-gradient(
            circle at 90% 20%,
            rgba(124,58,237,.24),
            transparent 34%
        ),

        radial-gradient(
            circle at 50% 100%,
            rgba(6,182,212,.20),
            transparent 40%
        ),

        linear-gradient(
            135deg,
            #eef2ff 0%,
            #f8fafc 48%,
            #ecfeff 100%
        );
}


/* =========================================================
   FLOATING GLOW
========================================================= */

.sw-auth-wrapper::before,
.sw-auth-wrapper::after {

    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    filter: blur(25px);

    pointer-events: none;

    animation:
        sw-floating-glow 9s ease-in-out infinite;
}


.sw-auth-wrapper::before {

    top: -100px;
    left: -80px;

    background:
        linear-gradient(
            135deg,
            rgba(37,99,235,.35),
            rgba(124,58,237,.14)
        );
}


.sw-auth-wrapper::after {

    right: -100px;
    bottom: -110px;

    background:
        linear-gradient(
            135deg,
            rgba(6,182,212,.30),
            rgba(37,99,235,.12)
        );

    animation-delay: -4s;
}


@keyframes sw-floating-glow {

    0%,
    100% {

        transform:
            translate3d(0,0,0)
            scale(1);
    }

    50% {

        transform:
            translate3d(18px,-18px,0)
            scale(1.08);
    }
}


/* =========================================================
   AUTH CARD
========================================================= */

.sw-auth-card {

    position: relative;

    z-index: 5;

    width: 100%;
    max-width: 480px;

    padding: 42px;

    border:
        1px solid
        var(--sw-border);

    border-radius:
        var(--sw-radius);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.82),
            rgba(255,255,255,.58)
        );

    backdrop-filter:
        blur(28px)
        saturate(160%);

    -webkit-backdrop-filter:
        blur(28px)
        saturate(160%);

    box-shadow:

        0 30px 80px
        rgba(15,23,42,.16),

        inset 0 1px 0
        rgba(255,255,255,.85);

    box-sizing: border-box;

    animation:
        sw-card-enter .65s ease both;
}


@keyframes sw-card-enter {

    from {

        opacity: 0;

        transform:
            translateY(28px)
            scale(.97);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   CARD TOP GRADIENT
========================================================= */

.sw-auth-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 12%;

    width: 76%;
    height: 3px;

    border-radius: 999px;

    background:

        linear-gradient(
            90deg,
            transparent,
            var(--sw-primary),
            var(--sw-secondary),
            var(--sw-accent),
            transparent
        );
}


/* =========================================================
   HEADER
========================================================= */

.sw-auth-header {

    margin-bottom: 30px;

    text-align: center;
}


.sw-auth-title {

    margin: 0 0 12px;

    font-size: 30px;

    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -.6px;

    background:

        linear-gradient(
            135deg,
            var(--sw-primary),
            var(--sw-secondary),
            var(--sw-accent)
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


.sw-auth-description {

    max-width: 390px;

    margin: auto;

    color:
        var(--sw-text-soft);

    font-size: 15px;

    line-height: 1.75;
}


/* =========================================================
   ALERT
========================================================= */

.sw-alert {

    margin-bottom: 22px;

    padding: 14px 16px;

    border-radius: 14px;

    font-size: 14px;

    line-height: 1.6;

    backdrop-filter:
        blur(12px);
}


.sw-alert-success {

    color: #047857;

    border:
        1px solid
        rgba(16,185,129,.25);

    background:

        linear-gradient(
            135deg,
            rgba(16,185,129,.13),
            rgba(255,255,255,.55)
        );
}


.sw-alert-error {

    color: #b91c1c;

    border:
        1px solid
        rgba(239,68,68,.25);

    background:

        linear-gradient(
            135deg,
            rgba(239,68,68,.12),
            rgba(255,255,255,.55)
        );
}


/* =========================================================
   FORM GROUP
========================================================= */

.sw-form-group {

    margin-bottom: 22px;
}


.sw-form-group > label {

    display: block;

    margin-bottom: 9px;

    color:
        var(--sw-text);

    font-size: 14px;

    font-weight: 700;
}


/* =========================================================
   INPUT
========================================================= */

.sw-form-control {

    width: 100%;

    min-height: 54px;

    padding:
        14px 16px;

    border:
        1px solid
        rgba(148,163,184,.35);

    border-radius:
        var(--sw-input-radius);

    outline: none;

    color:
        var(--sw-text);

    font-size: 15px;

    background:
        rgba(255,255,255,.72);

    box-shadow:
        inset 0 1px 2px
        rgba(15,23,42,.03);

    transition:

        border-color var(--sw-transition),
        box-shadow var(--sw-transition),
        background var(--sw-transition),
        transform var(--sw-transition);

    box-sizing: border-box;
}


.sw-form-control::placeholder {

    color:
        var(--sw-placeholder);

    opacity: 1;
}


.sw-form-control:hover {

    background:
        rgba(255,255,255,.90);
}


.sw-form-control:focus {

    border-color:
        rgba(37,99,235,.65);

    background:
        rgba(255,255,255,.96);

    box-shadow:

        0 0 0 4px
        rgba(37,99,235,.10),

        0 10px 28px
        rgba(37,99,235,.08);

    transform:
        translateY(-1px);
}


/* =========================================================
   PASSWORD FIELD
========================================================= */

.sw-password-wrapper {
    position: relative;
    width: 100%;
}


/* =========================================================
   PASSWORD INPUT
========================================================= */

.sw-password-wrapper .sw-input,
.sw-password-wrapper .sw-form-control {
    width: 100%;
    padding-right: 54px;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.sw-password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    transform: translateY(-50%);

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

    border: 0;
    outline: none;

    background: transparent;

    color: #64748b;

    cursor: pointer;

    z-index: 5;

    border-radius: 10px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


/* Hover */

.sw-password-toggle:hover {
    color: #2563eb;

    background: rgba(37, 99, 235, 0.08);
}


/* Active */

.sw-password-toggle:active {
    transform:
        translateY(-50%)
        scale(0.94);
}


/* Focus */

.sw-password-toggle:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.35);

    outline-offset: 2px;
}


/* =========================================================
   EYE ICON
========================================================= */

.sw-eye-icon {
    width: 22px;
    height: 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    pointer-events: none;
}


.sw-eye-svg {
    width: 21px;
    height: 21px;

    display: block;

    color: currentColor;

    pointer-events: none;
}


/* Prevent emoji/image fallback */

.sw-password-toggle img,
.sw-password-toggle::before,
.sw-password-toggle::after {
    display: none !important;
}


/* =========================================================
   PASSWORD FIELD — RIGHT PADDING
========================================================= */

.sw-reset-password-form
.sw-password-wrapper
input[type="password"],

.sw-reset-password-form
.sw-password-wrapper
input[type="text"] {
    padding-right: 54px !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .sw-password-toggle {
        right: 8px;

        width: 36px;
        height: 36px;
    }

    .sw-eye-svg {
        width: 20px;
        height: 20px;
    }

}

/* =========================================================
   PASSWORD HINT
========================================================= */

.sw-password-hint {

    margin:
        -5px 0 24px;

    padding:
        14px 15px;

    border-radius: 14px;

    border:
        1px solid
        rgba(37,99,235,.12);

    background:

        linear-gradient(
            135deg,
            rgba(37,99,235,.07),
            rgba(124,58,237,.05)
        );

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.6);
}


.sw-password-hint p {

    margin: 0;

    color:
        var(--sw-text-soft);

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   FORM ACTION
========================================================= */

.sw-form-actions {

    margin-top: 27px;
}


/* =========================================================
   PREMIUM BUTTON
========================================================= */

.sw-button {

    position: relative;

    width: 100%;

    min-height: 55px;

    padding:
        14px 22px;

    border: 0;

    border-radius: 15px;

    color:
        #fff;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

    overflow: hidden;

    background:

        linear-gradient(
            135deg,
            #2563eb 0%,
            #6366f1 45%,
            #7c3aed 75%,
            #06b6d4 100%
        );

    box-shadow:

        0 14px 30px
        rgba(37,99,235,.28);

    transition:

        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}


.sw-button::before {

    content: "";

    position: absolute;

    top: 0;
    left: -130%;

    width: 80%;
    height: 100%;

    background:

        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.35),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left .7s ease;
}


.sw-button:hover {

    transform:
        translateY(-2px);

    box-shadow:

        0 18px 40px
        rgba(37,99,235,.34);

    filter:
        saturate(1.12);
}


.sw-button:hover::before {

    left: 135%;
}


.sw-button:active {

    transform:
        translateY(0);

    box-shadow:
        0 8px 18px
        rgba(37,99,235,.22);
}


.sw-button:disabled {

    opacity: .7;

    cursor:
        not-allowed;

    transform:
        none;
}


/* =========================================================
   FOOTER
========================================================= */

.sw-auth-footer {

    margin-top: 25px;

    padding-top: 22px;

    text-align: center;

    border-top:
        1px solid
        rgba(148,163,184,.20);
}


.sw-auth-link {

    position: relative;

    display: inline-block;

    color:
        var(--sw-primary);

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        color .25s ease;
}


.sw-auth-link:hover {

    color:
        var(--sw-primary-dark);
}


/* =========================================================
   VALIDATION
========================================================= */

.sw-form-control:invalid:not(:placeholder-shown) {

    border-color:
        rgba(239,68,68,.50);
}


.sw-form-control:valid:not(:placeholder-shown) {

    border-color:
        rgba(16,185,129,.40);
}


/* =========================================================
   FORGOT PASSWORD
========================================================= */

.sw-forgot-password-wrapper {

    min-height:
        580px;
}


.sw-forgot-password-wrapper
.sw-auth-card {

    max-width:
        460px;
}


/* =========================================================
   RESET PASSWORD
========================================================= */

.sw-reset-password-wrapper {

    min-height:
        650px;
}


.sw-reset-password-wrapper
.sw-auth-card {

    max-width:
        480px;
}


/* =========================================================
   RESET PASSWORD — EYE FIX
   Extra specificity prevents theme conflicts
========================================================= */

.sw-reset-password-wrapper
.sw-password-wrapper {

    position:
        relative !important;

    width:
        100% !important;

    min-height:
        54px !important;
}


.sw-reset-password-wrapper
.sw-password-wrapper
.sw-form-control {

    width:
        100% !important;

    padding-right:
        64px !important;

    box-sizing:
        border-box !important;
}


.sw-reset-password-wrapper
.sw-password-wrapper
.sw-password-toggle {

    position:
        absolute !important;

    top:
        50% !important;

    right:
        9px !important;

    bottom:
        auto !important;

    left:
        auto !important;

    width:
        42px !important;

    height:
        42px !important;

    transform:
        translateY(-50%) !important;

    margin:
        0 !important;

    padding:
        0 !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    z-index:
        50 !important;
}


.sw-reset-password-wrapper
.sw-password-wrapper
.sw-eye-icon {

    width:
        21px !important;

    height:
        21px !important;

    display:
        block !important;

    position:
        static !important;

    margin:
        0 !important;

    transform:
        none !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .sw-auth-wrapper {

        min-height:
            100vh;

        padding:
            35px 15px;
    }


    .sw-auth-card {

        padding:
            30px 22px;

        border-radius:
            20px;
    }


    .sw-auth-title {

        font-size:
            26px;
    }


    .sw-auth-description {

        font-size:
            14px;
    }


    .sw-form-control {

        min-height:
            52px;

        font-size:
            16px;
    }


    .sw-button {

        min-height:
            53px;
    }


    .sw-password-wrapper
    .sw-password-toggle {

        right:
            7px !important;

        width:
            40px !important;

        height:
            40px !important;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .sw-auth-wrapper {

        padding:
            20px 10px;
    }


    .sw-auth-card {

        padding:
            26px 18px;

        border-radius:
            18px;
    }


    .sw-auth-title {

        font-size:
            24px;
    }


    .sw-password-hint p {

        font-size:
            11.5px;
    }


    .sw-reset-password-wrapper
    .sw-password-wrapper
    .sw-password-toggle {

        right:
            6px !important;

        width:
            38px !important;

        height:
            38px !important;
    }


    .sw-reset-password-wrapper
    .sw-password-wrapper
    .sw-eye-icon {

        width:
            20px !important;

        height:
            20px !important;
    }
}


/* =========================================================
   DARK MODE
========================================================= */

@media (prefers-color-scheme: dark) {

    .sw-auth-wrapper {

        background:

            radial-gradient(
                circle at 10% 10%,
                rgba(37,99,235,.24),
                transparent 35%
            ),

            radial-gradient(
                circle at 90% 20%,
                rgba(124,58,237,.20),
                transparent 35%
            ),

            linear-gradient(
                135deg,
                #0f172a,
                #111827,
                #0f172a
            );
    }


    .sw-auth-card {

        background:

            linear-gradient(
                135deg,
                rgba(30,41,59,.82),
                rgba(15,23,42,.68)
            );

        border-color:
            rgba(255,255,255,.10);

        box-shadow:

            0 30px 80px
            rgba(0,0,0,.38),

            inset 0 1px 0
            rgba(255,255,255,.08);
    }


    .sw-form-group > label {

        color:
            #e2e8f0;
    }


    .sw-auth-description {

        color:
            #94a3b8;
    }


    .sw-form-control {

        color:
            #f8fafc;

        border-color:
            rgba(148,163,184,.20);

        background:
            rgba(15,23,42,.58);
    }


    .sw-form-control:hover,
    .sw-form-control:focus {

        background:
            rgba(15,23,42,.76);
    }


    .sw-form-control::placeholder {

        color:
            #64748b;
    }


    .sw-password-hint {

        border-color:
            rgba(99,102,241,.18);

        background:
            rgba(99,102,241,.08);
    }


    .sw-password-hint p {

        color:
            #94a3b8;
    }


    .sw-auth-footer {

        border-color:
            rgba(148,163,184,.12);
    }


    .sw-password-toggle {

        color:
            #94a3b8 !important;
    }


    .sw-password-toggle:hover {

        color:
            #a5b4fc !important;

        background:
            rgba(99,102,241,.13) !important;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sw-auth-card,
    .sw-auth-wrapper::before,
    .sw-auth-wrapper::after {

        animation:
            none !important;
    }

    .sw-button,
    .sw-form-control,
    .sw-auth-link,
    .sw-password-toggle {

        transition:
            none !important;
    }
}

/* ==========================================================================
   STOP_WALLET BSOFT — PREMIUM AUTHENTICATION 3.5.2
   Final visual layer for Forgot + Reset Password.
   ========================================================================== */

.sw-auth-wrapper {
    isolation: isolate;
    min-height: 680px;
    padding: clamp(38px, 6vw, 76px) 18px;
    background:
        radial-gradient(circle at 12% 14%, rgba(59,130,246,.25), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(139,92,246,.22), transparent 30%),
        radial-gradient(circle at 55% 105%, rgba(6,182,212,.18), transparent 34%),
        linear-gradient(135deg, #eef2ff 0%, #f8fafc 48%, #ecfeff 100%);
}

.sw-auth-wrapper::before,
.sw-auth-wrapper::after {
    z-index: -2;
}

.sw-auth-orb {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(2px);
    opacity: .8;
}

.sw-auth-orb-one {
    width: 150px;
    height: 150px;
    top: 8%;
    left: 7%;
    background: linear-gradient(135deg, rgba(99,102,241,.24), rgba(6,182,212,.12));
    animation: sw-orb-float 8s ease-in-out infinite;
}

.sw-auth-orb-two {
    width: 190px;
    height: 190px;
    right: 6%;
    bottom: 8%;
    background: linear-gradient(135deg, rgba(124,58,237,.20), rgba(37,99,235,.10));
    animation: sw-orb-float 10s ease-in-out infinite reverse;
}

@keyframes sw-orb-float {
    0%, 100% { transform: translate3d(0,0,0); }
    50% { transform: translate3d(12px,-14px,0); }
}

.sw-auth-card {
    max-width: 510px;
    padding: clamp(25px, 5vw, 42px);
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.91), rgba(255,255,255,.66));
    box-shadow:
        0 35px 90px rgba(15,23,42,.16),
        0 8px 28px rgba(79,70,229,.08),
        inset 0 1px 0 rgba(255,255,255,.95);
    backdrop-filter: blur(30px) saturate(170%);
    -webkit-backdrop-filter: blur(30px) saturate(170%);
}

.sw-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 23px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .2px;
}

.sw-auth-brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed 70%, #06b6d4);
    box-shadow: 0 12px 28px rgba(79,70,229,.25);
}

.sw-auth-brand-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sw-auth-header {
    margin-bottom: 24px;
}

.sw-auth-heading-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    border: 1px solid rgba(99,102,241,.16);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(99,102,241,.12), rgba(6,182,212,.08));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.sw-auth-kicker {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.sw-auth-title {
    margin-bottom: 9px;
    font-size: clamp(25px, 4vw, 31px);
    letter-spacing: -.75px;
}

.sw-auth-description {
    max-width: 410px;
    font-size: 14px;
    line-height: 1.8;
}

.sw-auth-security-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    padding: 11px 13px;
    color: #475569;
    border: 1px solid rgba(99,102,241,.11);
    border-radius: 13px;
    background: rgba(248,250,252,.60);
    font-size: 12px;
    line-height: 1.5;
}

.sw-security-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 5px rgba(16,185,129,.10);
}

.sw-form-group {
    margin-bottom: 19px;
}

.sw-form-group > label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 800;
}

.sw-label-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    border-radius: 9px;
    background: rgba(99,102,241,.09);
}

.sw-input-shell {
    position: relative;
}

.sw-form-control {
    min-height: 56px;
    padding: 15px 16px;
    border-color: rgba(100,116,139,.23);
    border-radius: 16px;
    background: rgba(255,255,255,.74);
    box-shadow: 0 4px 14px rgba(15,23,42,.025);
}

.sw-form-control:hover {
    border-color: rgba(99,102,241,.30);
}

.sw-form-control:focus {
    border-color: rgba(79,70,229,.66);
    box-shadow:
        0 0 0 4px rgba(79,70,229,.09),
        0 12px 28px rgba(79,70,229,.08);
}

.sw-password-field {
    position: relative !important;
    width: 100%;
    min-height: 56px;
}

.sw-password-field .sw-form-control {
    width: 100%;
    padding-right: 66px !important;
}

.sw-password-field .sw-password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 30 !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(-50%) !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #64748b !important;
    line-height: 1 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
}

.sw-password-field .sw-password-toggle:hover {
    color: #4f46e5 !important;
    border-color: rgba(99,102,241,.10) !important;
    background: rgba(99,102,241,.08) !important;
    transform: translateY(-50%) scale(1.04) !important;
}

.sw-password-field .sw-password-toggle:active {
    transform: translateY(-50%) scale(.95) !important;
}

.sw-password-field .sw-password-toggle:focus-visible {
    outline: none !important;
    color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79,70,229,.13) !important;
}

.sw-eye-icon {
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    min-height: 21px !important;
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.sw-eye-open { display: block !important; }
.sw-eye-closed { display: none !important; }

.sw-password-toggle.is-visible .sw-eye-open {
    display: none !important;
}

.sw-password-toggle.is-visible .sw-eye-closed {
    display: block !important;
}

.sw-password-meter {
    display: flex;
    gap: 5px;
    height: 4px;
    margin: 7px 4px 0;
}

.sw-password-meter span {
    flex: 1;
    border-radius: 999px;
    background: #e2e8f0;
}

.sw-password-hint {
    display: flex;
    gap: 11px;
    margin: 4px 0 22px;
    padding: 13px 14px;
    border: 1px solid rgba(99,102,241,.12);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(99,102,241,.07), rgba(6,182,212,.045));
}

.sw-hint-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #047857;
    border-radius: 9px;
    background: rgba(16,185,129,.11);
    font-size: 13px;
    font-weight: 900;
}

.sw-password-hint strong {
    display: block;
    margin-bottom: 2px;
    color: #334155;
    font-size: 12px;
}

.sw-password-hint p {
    margin: 0;
    color: #64748b;
    font-size: 11.5px;
    line-height: 1.65;
}

.sw-button {
    min-height: 56px;
    border-radius: 16px;
    letter-spacing: .05px;
}

.sw-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 7px;
    font-size: 18px;
    transition: transform .2s ease;
}

.sw-button:hover .sw-button-icon {
    transform: translateX(3px);
}

.sw-auth-footer {
    margin-top: 21px;
    padding-top: 19px;
}

.sw-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sw-auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 17px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.sw-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 15px;
}

.sw-alert-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.sw-alert-success .sw-alert-icon {
    color: #047857;
    background: rgba(16,185,129,.12);
}

.sw-alert-error .sw-alert-icon {
    color: #b91c1c;
    background: rgba(239,68,68,.11);
}

.sw-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239,68,68,.08) !important;
}

.sw-field-error {
    display: block;
    margin: 7px 3px 0;
    color: #dc2626;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
}

.sw-button.is-loading {
    position: relative;
    opacity: .78;
    cursor: wait;
}

.sw-button.is-loading::after {
    content: "";
    width: 15px;
    height: 15px;
    margin-left: 9px;
    display: inline-block;
    vertical-align: -3px;
    border: 2px solid rgba(255,255,255,.9);
    border-right-color: transparent;
    border-radius: 50%;
    animation: sw-premium-spin .7s linear infinite;
}

@keyframes sw-premium-spin {
    to { transform: rotate(360deg); }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .sw-auth-wrapper {
        background:
            radial-gradient(circle at 12% 14%, rgba(59,130,246,.20), transparent 30%),
            radial-gradient(circle at 88% 18%, rgba(139,92,246,.18), transparent 30%),
            linear-gradient(135deg, #0f172a, #111827 55%, #0f172a);
    }

    .sw-auth-card {
        border-color: rgba(148,163,184,.14);
        background: linear-gradient(145deg, rgba(30,41,59,.92), rgba(15,23,42,.78));
        box-shadow: 0 35px 90px rgba(0,0,0,.35);
    }

    .sw-auth-brand,
    .sw-form-group > label,
    .sw-password-hint strong {
        color: #e2e8f0;
    }

    .sw-auth-description,
    .sw-auth-security-note,
    .sw-password-hint p {
        color: #94a3b8;
    }

    .sw-auth-security-note,
    .sw-password-hint {
        border-color: rgba(148,163,184,.12);
        background: rgba(15,23,42,.35);
    }

    .sw-form-control {
        color: #e2e8f0;
        border-color: rgba(148,163,184,.18);
        background: rgba(15,23,42,.45);
    }

    .sw-form-control:hover,
    .sw-form-control:focus {
        background: rgba(15,23,42,.62);
    }

    .sw-form-control::placeholder {
        color: #64748b;
    }

    .sw-auth-footer {
        border-color: rgba(148,163,184,.12);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .sw-auth-wrapper {
        min-height: 100dvh;
        padding: 22px 12px;
        align-items: center;
    }

    .sw-auth-card {
        max-width: 100%;
        padding: 23px 18px 19px;
        border-radius: 24px;
    }

    .sw-auth-brand {
        margin-bottom: 18px;
    }

    .sw-auth-heading-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 11px;
        border-radius: 16px;
    }

    .sw-auth-title {
        font-size: 24px;
    }

    .sw-auth-description {
        font-size: 13px;
        line-height: 1.7;
    }

    .sw-auth-security-note {
        font-size: 11.5px;
    }

    .sw-form-control {
        min-height: 54px;
    }

    .sw-password-field {
        min-height: 54px;
    }

    .sw-password-field .sw-password-toggle {
        width: 42px !important;
        height: 42px !important;
        right: 7px !important;
    }

    .sw-password-field .sw-form-control {
        padding-right: 60px !important;
    }

    .sw-auth-orb-one {
        left: -55px;
    }

    .sw-auth-orb-two {
        right: -75px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sw-auth-card,
    .sw-auth-orb-one,
    .sw-auth-orb-two,
    .sw-button,
    .sw-password-toggle {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   RESET PASSWORD — FINAL EYE TOGGLE POSITION FIX
========================================================= */

/*
 * Password wrapper must be the positioning reference.
 */
.sw-reset-password-wrapper
.sw-password-wrapper {

    position: relative !important;

    display: block !important;

    width: 100% !important;

    height: 54px !important;

    min-height: 54px !important;

    margin: 0 !important;

    padding: 0 !important;

}


/*
 * Password input keeps fixed height.
 * Focus will NOT change the wrapper geometry.
 */
.sw-reset-password-wrapper
.sw-password-wrapper
.sw-input,
.sw-reset-password-wrapper
.sw-password-wrapper
.sw-form-control {

    width: 100% !important;

    height: 54px !important;

    min-height: 54px !important;

    max-height: 54px !important;

    box-sizing: border-box !important;

    padding-top: 0 !important;

    padding-bottom: 0 !important;

    padding-right: 58px !important;

    line-height: 54px !important;

}


/*
 * IMPORTANT:
 * Eye button is absolutely centered against
 * the fixed-height wrapper.
 */
.sw-reset-password-wrapper
.sw-password-wrapper
.sw-password-toggle {

    position: absolute !important;

    top: 50% !important;

    right: 7px !important;

    left: auto !important;

    bottom: auto !important;

    transform: translateY(-50%) !important;

    width: 40px !important;

    height: 40px !important;

    min-width: 40px !important;

    max-width: 40px !important;

    min-height: 40px !important;

    max-height: 40px !important;

    margin: 0 !important;

    padding: 0 !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    border: 0 !important;

    border-radius: 10px !important;

    background: transparent !important;

    box-sizing: border-box !important;

    line-height: 0 !important;

    vertical-align: middle !important;

    z-index: 20 !important;

}


/*
 * Focus must NOT move the button.
 */
.sw-reset-password-wrapper
.sw-password-wrapper:focus-within
.sw-password-toggle {

    top: 50% !important;

    right: 7px !important;

    bottom: auto !important;

    transform: translateY(-50%) !important;

}


/*
 * SVG / eye icon itself.
 */
.sw-reset-password-wrapper
.sw-password-toggle
.sw-eye-icon {

    width: 20px !important;

    height: 20px !important;

    min-width: 20px !important;

    min-height: 20px !important;

    max-width: 20px !important;

    max-height: 20px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    position: relative !important;

    top: auto !important;

    right: auto !important;

    bottom: auto !important;

    left: auto !important;

    margin: 0 !important;

    padding: 0 !important;

    transform: none !important;

    line-height: 0 !important;

}


/*
 * SVG must stay perfectly centered.
 */
.sw-reset-password-wrapper
.sw-password-toggle
.sw-eye-svg {

    display: block !important;

    width: 20px !important;

    height: 20px !important;

    min-width: 20px !important;

    min-height: 20px !important;

    max-width: 20px !important;

    max-height: 20px !important;

    margin: 0 !important;

    padding: 0 !important;

    position: static !important;

    transform: none !important;

    vertical-align: middle !important;

}


/*
 * Prevent browser focus styles from changing geometry.
 */
.sw-reset-password-wrapper
.sw-password-wrapper
.sw-password-toggle:focus {

    outline: none !important;

    top: 50% !important;

    transform: translateY(-50%) !important;

}


/*
 * Keyboard accessibility.
 */
.sw-reset-password-wrapper
.sw-password-toggle:focus-visible {

    outline: 2px solid
        rgba(37, 99, 235, .25) !important;

    outline-offset: 2px !important;

}


/*
 * Hover.
 */
.sw-reset-password-wrapper
.sw-password-toggle:hover {

    color: #2563eb !important;

    background:
        rgba(37, 99, 235, .08) !important;

}


/*
 * Active/click must NOT change vertical position.
 */
.sw-reset-password-wrapper
.sw-password-toggle:active {

    top: 50% !important;

    transform:
        translateY(-50%)
        scale(.94) !important;

}


/*
 * Password input focus must not alter its height.
 */
.sw-reset-password-wrapper
.sw-password-wrapper
.sw-input:focus,
.sw-reset-password-wrapper
.sw-password-wrapper
.sw-form-control:focus {

    height: 54px !important;

    min-height: 54px !important;

    max-height: 54px !important;

    box-sizing: border-box !important;

}


/*
 * Mobile
 */
@media (max-width: 600px) {

    .sw-reset-password-wrapper
    .sw-password-wrapper {

        height: 52px !important;

        min-height: 52px !important;

    }

    .sw-reset-password-wrapper
    .sw-password-wrapper
    .sw-input,
    .sw-reset-password-wrapper
    .sw-password-wrapper
    .sw-form-control {

        height: 52px !important;

        min-height: 52px !important;

        max-height: 52px !important;

        line-height: 52px !important;

    }

    .sw-reset-password-wrapper
    .sw-password-wrapper
    .sw-password-toggle {

        top: 50% !important;

        right: 6px !important;

        width: 38px !important;

        height: 38px !important;

        min-width: 38px !important;

        min-height: 38px !important;

        transform:
            translateY(-50%) !important;

    }

}


/* ============================================================
   STOP_WALLET BSOFT — GLOBAL PREMIUM UI OVERRIDE
   VISUAL ONLY / NO FUNCTION OR LOGIC CHANGE
   ============================================================ */

:root{
    --sw-premium-primary:#087f5b;
    --sw-premium-primary-dark:#064d3a;
    --sw-premium-secondary:#12a978;
    --sw-premium-gold:#c9a43a;
    --sw-premium-ink:#17232c;
    --sw-premium-muted:#71808b;
    --sw-premium-line:#e1ebe7;
    --sw-premium-soft:#f3f9f6;
    --sw-premium-white:#fff;
    --sw-premium-shadow:0 14px 42px rgba(18,42,52,.075);
}

/* ---------- Centered application canvas ---------- */

#sw-dashboard .sw-dashboard,
#sw-dashboard .sw-main,
#sw-dashboard .sw-content{
    box-sizing:border-box;
}

#sw-dashboard .sw-content{
    width:100%;
}

/* ---------- Typography / first-letter capitalization ---------- */

#sw-dashboard h1,
#sw-dashboard h2,
#sw-dashboard h3,
#sw-dashboard h4,
#sw-dashboard h5,
#sw-dashboard button,
#sw-dashboard label,
#sw-dashboard th,
#sw-dashboard .sw-status,
.sw-donation-wrap h1,
.sw-donation-wrap h2,
.sw-donation-wrap h3,
.sw-donation-wrap h4,
.sw-donation-wrap button,
.sw-donation-wrap label,
.sw-campaign-builder h1,
.sw-campaign-builder h2,
.sw-campaign-builder h3,
.sw-campaign-builder h4,
.sw-campaign-builder button,
.sw-campaign-builder label,
.sw-approved-campaigns h1,
.sw-approved-campaigns h2,
.sw-approved-campaigns h3,
.sw-approved-campaigns h4,
.sw-approved-campaigns button,
.sw-approved-campaigns label{
    text-transform:capitalize;
}

/* ---------- Universal premium controls ---------- */

#sw-dashboard input,
#sw-dashboard select,
#sw-dashboard textarea,
.sw-donation-wrap input,
.sw-donation-wrap select,
.sw-donation-wrap textarea,
.sw-campaign-builder input,
.sw-campaign-builder select,
.sw-campaign-builder textarea{
    border-radius:11px;
    transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}

#sw-dashboard input:focus,
#sw-dashboard select:focus,
#sw-dashboard textarea:focus,
.sw-donation-wrap input:focus,
.sw-donation-wrap select:focus,
.sw-donation-wrap textarea:focus,
.sw-campaign-builder input:focus,
.sw-campaign-builder select:focus,
.sw-campaign-builder textarea:focus{
    border-color:var(--sw-premium-primary) !important;
    box-shadow:0 0 0 4px rgba(8,127,91,.075) !important;
    outline:none;
}

#sw-dashboard button,
.sw-donation-wrap button,
.sw-campaign-builder button{
    border-radius:10px;
}

/* ============================================================
   BASIC DASHBOARD
   ============================================================ */

#sw-dashboard .sw-dashboard{
    --sw-dashboard-primary:var(--sw-premium-primary);
    --sw-dashboard-dark:var(--sw-premium-primary-dark);
}

#sw-dashboard .sw-main{
    min-width:0;
}

#sw-dashboard .sw-content{
    padding:24px;
}

#sw-dashboard .sw-header{
    border-radius:18px;
    box-shadow:0 8px 28px rgba(18,42,52,.055);
}

#sw-dashboard .sw-card,
#sw-dashboard .sw-panel,
#sw-dashboard .sw-section,
#sw-dashboard .sw-overview-card,
#sw-dashboard .sw-wallet-card,
#sw-dashboard .sw-transaction-card,
#sw-dashboard .sw-service-card{
    border-radius:17px;
    box-shadow:var(--sw-premium-shadow);
}

#sw-dashboard .sw-menu a{
    border-radius:11px;
    transition:.2s ease;
}

#sw-dashboard .sw-menu a:hover,
#sw-dashboard .sw-menu li.active a{
    transform:translateX(2px);
}

/* Dashboard headings */
#sw-dashboard .sw-page-title,
#sw-dashboard .sw-content h1,
#sw-dashboard .sw-content h2{
    font-weight:900;
}

/* Dashboard buttons */
#sw-dashboard .sw-btn,
#sw-dashboard .sw-button,
#sw-dashboard button[type="submit"]{
    border:0;
    background:linear-gradient(135deg,var(--sw-premium-primary),var(--sw-premium-primary-dark));
    color:#fff;
    font-weight:850;
    box-shadow:0 8px 18px rgba(8,127,91,.14);
}

#sw-dashboard .sw-btn:hover,
#sw-dashboard .sw-button:hover,
#sw-dashboard button[type="submit"]:hover{
    transform:translateY(-1px);
    filter:brightness(1.04);
}

/* ============================================================
   PREMIUM ACCOUNT
   ============================================================ */

.account-grid,
.active-accounts{
    width:min(1100px,100%);
    margin-left:auto !important;
    margin-right:auto !important;
}

.account-grid{
    gap:16px;
}

.account-card{
    border:1px solid var(--sw-premium-line) !important;
    border-radius:18px !important;
    background:linear-gradient(180deg,#fff,#f9fcfb) !important;
    box-shadow:var(--sw-premium-shadow) !important;
    overflow:hidden;
}

.account-card:before{
    content:"";
    display:block;
    height:3px;
    background:linear-gradient(90deg,var(--sw-premium-primary),var(--sw-premium-gold));
}

.account-card .upgrade-btn{
    border-radius:10px !important;
    background:linear-gradient(135deg,var(--sw-premium-primary),var(--sw-premium-primary-dark)) !important;
    color:#fff !important;
    box-shadow:0 8px 18px rgba(8,127,91,.14);
}

/* ============================================================
   WALLET
   ============================================================ */

.sw-wallet-card,
.sw-wallet-form,
.sw-wallet-panel{
    border-radius:21px !important;
}

.sw-wallet-header{
    border-radius:20px !important;
    background:linear-gradient(135deg,var(--sw-premium-primary-dark),var(--sw-premium-primary),var(--sw-premium-secondary)) !important;
    box-shadow:0 18px 45px rgba(8,127,91,.16);
}

.sw-wallet-logo,
.sw-wallet-form-icon{
    border-radius:14px !important;
}

.sw-wallet-balance{
    border-radius:16px !important;
}

.sw-wallet-card button,
.sw-wallet-form button,
.sw-wallet-panel button{
    border-radius:10px !important;
}

/* ============================================================
   CHECKOUT
   ============================================================ */

.sw-checkout{
    width:min(1080px,100%);
    margin-left:auto !important;
    margin-right:auto !important;
    border-radius:23px !important;
}

.sw-checkout-head{
    border-radius:20px !important;
    background:linear-gradient(135deg,var(--sw-premium-primary-dark),var(--sw-premium-primary),var(--sw-premium-secondary)) !important;
    box-shadow:0 18px 45px rgba(8,127,91,.15);
}

.sw-checkout-section,
.sw-checkout-grid > *,
.sw-checkout-card{
    border-radius:15px !important;
}

.sw-step{
    border-radius:11px !important;
}

/* ============================================================
   PAYMENT METHOD
   ============================================================ */

.sw-pm,
.sw-pm-settings{
    width:min(1120px,100%);
    margin-left:auto !important;
    margin-right:auto !important;
}

.sw-pm-settings-hero,
.sw-pm-hero-main{
    border-radius:21px !important;
    background:linear-gradient(135deg,var(--sw-premium-primary-dark),var(--sw-premium-primary),var(--sw-premium-secondary)) !important;
    box-shadow:0 18px 45px rgba(8,127,91,.15);
}

.sw-pm-settings-form,
.sw-pm-card,
.sw-pm-section{
    border-radius:17px !important;
}

/* ============================================================
   PROFILE
   ============================================================ */

.sw-profile-container,
.sw-profile-wrapper{
    width:min(1120px,100%);
    margin-left:auto !important;
    margin-right:auto !important;
}

.sw-profile-header{
    border-radius:23px !important;
    background:linear-gradient(135deg,var(--sw-premium-primary-dark),var(--sw-premium-primary),var(--sw-premium-secondary)) !important;
    box-shadow:0 18px 48px rgba(8,127,91,.15);
}

.sw-profile-card,
.sw-profile-section,
.sw-profile-form-card{
    border-radius:17px !important;
    box-shadow:var(--sw-premium-shadow);
}

/* ============================================================
   AUTH — LOGIN / REGISTER / FORGOT
   ============================================================ */

.sw-login-wrapper,
.sw-register-wrapper,
.sw-auth-wrapper{
    width:100%;
}

.sw-login-card,
.sw-register-card,
.sw-auth-card{
    border-radius:24px !important;
    box-shadow:0 25px 70px rgba(18,42,52,.12) !important;
}

.sw-login-icon,
.sw-register-icon{
    border-radius:15px !important;
}

.sw-login-card button,
.sw-register-card button,
.sw-auth-card button,
.sw-auth-wrapper button{
    border-radius:11px !important;
    background:linear-gradient(135deg,var(--sw-premium-primary),var(--sw-premium-primary-dark)) !important;
    color:#fff !important;
    border:0 !important;
    box-shadow:0 9px 20px rgba(8,127,91,.15);
}

.sw-login-card input,
.sw-register-card input,
.sw-auth-card input{
    border-radius:11px !important;
}

/* ============================================================
   LEDGER
   ============================================================ */

.sw-ledger-wrapper{
    width:min(1120px,100%);
    margin-left:auto !important;
    margin-right:auto !important;
}

.sw-ledger-card{
    border-radius:21px !important;
    border:1px solid var(--sw-premium-line) !important;
    box-shadow:var(--sw-premium-shadow) !important;
}

.sw-ledger-header{
    border-radius:20px !important;
    background:linear-gradient(135deg,var(--sw-premium-primary-dark),var(--sw-premium-primary),var(--sw-premium-secondary)) !important;
}

.sw-ledger-icon{
    border-radius:13px !important;
}

/* ============================================================
   DONATION — ALL PAGES
   ============================================================ */

.sw-donation-wrap{
    width:min(1240px,100%);
    margin-left:auto !important;
    margin-right:auto !important;
}

.sw-donation-hero{
    border-radius:25px !important;
    background:
        radial-gradient(circle at 90% 15%,rgba(255,255,255,.14),transparent 27%),
        linear-gradient(135deg,var(--sw-premium-primary-dark),var(--sw-premium-primary),var(--sw-premium-secondary)) !important;
}

.sw-donation-stats{
    width:100%;
}

.sw-donation-stats > div,
.sw-donation-panel,
.sw-dashboard-campaign{
    border-radius:17px !important;
}

.sw-donation-panel{
    box-shadow:var(--sw-premium-shadow) !important;
}

.sw-dashboard-campaign{
    overflow:hidden;
}

.sw-dashboard-actions .sw-donation-btn,
.sw-donation-btn{
    border-radius:10px !important;
}

.sw-donation-table{
    border-radius:13px;
    overflow:hidden;
}

/* ============================================================
   APPROVED CAMPAIGNS
   ============================================================ */

.sw-approved-campaigns{
    width:min(1240px,100%);
    margin-left:auto !important;
    margin-right:auto !important;
}

.sw-approved-campaigns__header{
    border-radius:24px !important;
    background:
        radial-gradient(circle at 92% 12%,rgba(255,255,255,.14),transparent 24%),
        linear-gradient(135deg,var(--sw-premium-primary-dark),var(--sw-premium-primary),var(--sw-premium-secondary)) !important;
}

.sw-approved-campaign-card{
    border-radius:20px !important;
}

.sw-approved-campaign-view{
    border-radius:10px !important;
}

/* ============================================================
   CAMPAIGN BUILDER
   ============================================================ */

.sw-campaign-builder{
    width:min(1080px,100%);
    margin-left:auto !important;
    margin-right:auto !important;
}

.sw-campaign-builder__header{
    border-radius:24px !important;
    background:
        radial-gradient(circle at 90% 15%,rgba(255,255,255,.14),transparent 27%),
        linear-gradient(135deg,var(--sw-premium-primary-dark),var(--sw-premium-primary),var(--sw-premium-secondary)) !important;
}

.sw-campaign-form,
.sw-builder-field,
.sw-builder-section__header,
.sw-donation-verification-builder{
    border-radius:17px !important;
}

.sw-campaign-form__footer .sw-donation-submit{
    border-radius:13px !important;
    background:linear-gradient(135deg,var(--sw-premium-primary),var(--sw-premium-primary-dark)) !important;
}

/* ============================================================
   ADMIN
   ============================================================ */

.sw-dashboard,
.stop_wallet-admin-box,
.sw-dashboard-box,
.stop_wallet-module-card,
.sw-dashboard-card{
    border-radius:18px !important;
}

.sw-dashboard-card,
.stop_wallet-module-card{
    box-shadow:var(--sw-premium-shadow) !important;
}

.sw-dashboard h1,
.stop_wallet-admin-box h2,
.sw-dashboard-box h2{
    text-transform:capitalize;
}

.sw-dashboard .button,
.stop_wallet-admin-box .button,
.sw-dashboard-box .button{
    border-radius:10px !important;
}

/* ============================================================
   DEBUG
   ============================================================ */

.sw-debug-header,
.sw-debug-card,
.sw-debug-panel{
    border-radius:18px !important;
}

.sw-debug-button{
    border-radius:10px !important;
}

/* ============================================================
   RESPONSIVE CENTERING
   ============================================================ */

@media(max-width:900px){
    #sw-dashboard .sw-content{
        padding:17px;
    }

    .sw-dashboard-campaign-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:680px){
    #sw-dashboard .sw-content{
        padding:11px;
    }

    .sw-dashboard-campaign-grid{
        grid-template-columns:1fr;
    }

    .sw-donation-wrap,
    .sw-approved-campaigns,
    .sw-campaign-builder,
    .sw-checkout,
    .sw-pm,
    .sw-pm-settings,
    .sw-profile-container,
    .sw-profile-wrapper,
    .sw-ledger-wrapper,
    .account-grid,
    .active-accounts{
        padding-left:6px;
        padding-right:6px;
    }

    .sw-donation-stats{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:430px){
    .sw-donation-stats{
        grid-template-columns:1fr;
    }

    .sw-panel-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .sw-edit-grid{
        grid-template-columns:1fr;
    }
}

@media(prefers-reduced-motion:reduce){
    #sw-dashboard *,
    .sw-donation-wrap *,
    .sw-campaign-builder *,
    .sw-approved-campaigns *{
        transition-duration:.01ms !important;
        animation-duration:.01ms !important;
    }
}

/* ============================================================
   STOP WALLET — FINAL PREMIUM VISUAL SYSTEM
   RED + GREEN / CENTERED / BORDER / RADIUS / PADDING
   DESIGN + COLOR ONLY
   ============================================================ */

:root{
    --sw-premium-red:#e31837;
    --sw-premium-red-dark:#c8102e;
    --sw-premium-green:#079b63;
    --sw-premium-green-dark:#057a4f;

    --sw-premium-text:#172033;
    --sw-premium-soft:#526078;
    --sw-premium-muted:#718096;
    --sw-premium-border:#dce3ea;
    --sw-premium-border-strong:#c7d1db;

    --sw-premium-bg:#f6fbf9;
    --sw-premium-white:#fff;

    --sw-premium-shadow:
        0 16px 42px rgba(23,32,51,.075);
    --sw-premium-shadow-soft:
        0 8px 24px rgba(23,32,51,.05);
}

/* -----------------------------
   Centered page canvases
   ----------------------------- */

.sw-wallet-page,
.sw-family-page,
.sw-notification-page,
.sw-myqr-page,
.sw-checkout,
.sw-pm,
.sw-pm-settings,
.sw-payment-method,
.sw-transaction-history,
.sw-sb,
.sw-module-card,
.sw-auth-wrapper,
.sw-login-wrapper,
.sw-register-wrapper,
.sw-profile-wrapper{
    box-sizing:border-box;
}

/* -----------------------------
   Generic premium module card
   ----------------------------- */

.sw-module-card{
    position:relative;

    width:calc(100% - 20px);
    max-width:720px;

    margin:16px auto !important;
    padding:18px !important;

    border:1px solid var(--sw-premium-border) !important;
    border-radius:18px !important;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fffafb 48%,
            #f3fbf7 100%
        ) !important;

    box-shadow:var(--sw-premium-shadow) !important;

    color:var(--sw-premium-text);

    overflow:hidden;
}

.sw-module-card::before{
    content:"";

    position:absolute;
    top:0;
    left:0;
    right:0;

    height:3px;

    background:
        linear-gradient(
            90deg,
            var(--sw-premium-red),
            #c94b58 50%,
            var(--sw-premium-green)
        );
}

.sw-module-icon{
    border-radius:12px !important;

    color:#fff !important;
    -webkit-text-fill-color:#fff !important;

    background:
        linear-gradient(
            135deg,
            var(--sw-premium-red),
            #c84b58 48%,
            var(--sw-premium-green)
        ) !important;

    box-shadow:
        0 8px 18px rgba(227,24,55,.13);
}

.sw-module-card h2{
    color:var(--sw-premium-text) !important;
    -webkit-text-fill-color:var(--sw-premium-text) !important;
}

.sw-module-card p{
    color:var(--sw-premium-soft) !important;
    -webkit-text-fill-color:var(--sw-premium-soft) !important;
}

/* -----------------------------
   Shared module buttons
   ----------------------------- */

.sw-module-action,
.sw-primary-btn,
.sw-sb button.primary,
.sw-sb button.dark{
    border:0 !important;
    border-radius:11px !important;

    color:#fff !important;
    -webkit-text-fill-color:#fff !important;

    background:
        linear-gradient(
            105deg,
            var(--sw-premium-red) 0%,
            #df2a48 34%,
            #b64d58 50%,
            var(--sw-premium-green) 73%,
            var(--sw-premium-green-dark) 100%
        ) !important;

    box-shadow:
        0 9px 21px rgba(7,155,99,.13),
        0 5px 13px rgba(227,24,55,.08) !important;

    font:inherit;
    font-weight:850;

    cursor:pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.sw-module-action:hover,
.sw-primary-btn:hover,
.sw-sb button.primary:hover,
.sw-sb button.dark:hover{
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;

    transform:translateY(-1px);

    box-shadow:
        0 13px 27px rgba(7,155,99,.17) !important;

    filter:brightness(1.02);
}

/* -----------------------------
   Shared fields
   ----------------------------- */

.sw-wallet-page input,
.sw-wallet-page select,
.sw-wallet-page textarea,
.sw-family-page input,
.sw-family-page select,
.sw-family-page textarea,
.sw-sb input,
.sw-sb select,
.sw-sb textarea,
.sw-module-card input,
.sw-module-card select,
.sw-module-card textarea,
.sw-myqr-page input,
.sw-myqr-page select,
.sw-myqr-page textarea{
    border:1px solid var(--sw-premium-border-strong) !important;
    border-radius:11px !important;

    background:#fff !important;

    color:var(--sw-premium-text) !important;
    -webkit-text-fill-color:var(--sw-premium-text) !important;

    outline:0 !important;

    box-shadow:
        inset 0 1px 2px rgba(23,32,51,.018) !important;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.sw-wallet-page input:hover,
.sw-wallet-page select:hover,
.sw-wallet-page textarea:hover,
.sw-family-page input:hover,
.sw-family-page select:hover,
.sw-family-page textarea:hover,
.sw-sb input:hover,
.sw-sb select:hover,
.sw-sb textarea:hover,
.sw-module-card input:hover,
.sw-module-card select:hover,
.sw-module-card textarea:hover{
    border-color:#aebbc7 !important;
}

.sw-wallet-page input:focus,
.sw-wallet-page select:focus,
.sw-wallet-page textarea:focus,
.sw-family-page input:focus,
.sw-family-page select:focus,
.sw-family-page textarea:focus,
.sw-sb input:focus,
.sw-sb select:focus,
.sw-sb textarea:focus,
.sw-module-card input:focus,
.sw-module-card select:focus,
.sw-module-card textarea:focus{
    border-color:var(--sw-premium-green) !important;

    box-shadow:
        0 0 0 3px rgba(7,155,99,.09),
        0 7px 18px rgba(7,155,99,.04) !important;
}

.sw-wallet-page input::placeholder,
.sw-family-page input::placeholder,
.sw-sb input::placeholder,
.sw-module-card input::placeholder{
    color:#98a4b1 !important;
    -webkit-text-fill-color:#98a4b1 !important;
    opacity:1;
}

/* -----------------------------
   Savings / Qorjian / Welfare /
   Donation shared card
   ----------------------------- */

.sw-sb{
    width:calc(100% - 20px) !important;
    max-width:900px !important;

    margin:16px auto !important;
    padding:0 0 24px !important;

    box-sizing:border-box;

    color:var(--sw-premium-text);
}

.sw-sb-head{
    padding:17px 18px !important;

    margin-bottom:12px !important;

    border:1px solid var(--sw-premium-border) !important;
    border-radius:16px !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fff9fa 52%,
            #f2fbf7
        ) !important;

    box-shadow:var(--sw-premium-shadow-soft) !important;
}

.sw-sb-head h2{
    margin:0 0 4px !important;

    color:var(--sw-premium-text) !important;
    -webkit-text-fill-color:var(--sw-premium-text) !important;

    font-size:22px !important;
    font-weight:900 !important;
}

.sw-sb-head p{
    margin:0 !important;

    color:var(--sw-premium-soft) !important;
    -webkit-text-fill-color:var(--sw-premium-soft) !important;

    font-size:11px !important;
    line-height:1.55 !important;
}

.sw-sb-card{
    position:relative !important;

    padding:18px !important;

    border:1px solid var(--sw-premium-border) !important;
    border-radius:18px !important;

    background:#fff !important;

    box-shadow:var(--sw-premium-shadow) !important;

    overflow:hidden;
}

.sw-sb-card::before{
    content:"";

    position:absolute;

    top:0;
    left:0;
    right:0;

    height:3px;

    background:
        linear-gradient(
            90deg,
            var(--sw-premium-red),
            var(--sw-premium-green)
        );
}

.sw-sb-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:9px !important;

    margin-bottom:14px !important;
}

.sw-sb-stat{
    padding:11px 12px !important;

    border:1px solid #e2e9ed !important;
    border-radius:12px !important;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f5faf8
        ) !important;
}

.sw-sb-stat small{
    display:block !important;

    color:var(--sw-muted) !important;
    font-size:9px !important;
}

.sw-sb-stat strong{
    display:block !important;

    margin-top:3px !important;

    color:var(--sw-premium-text) !important;
    -webkit-text-fill-color:var(--sw-premium-text) !important;

    font-size:14px !important;
}

.sw-sb-card > label,
.sw-sb-pin label{
    display:block !important;

    margin:0 0 6px !important;

    color:var(--sw-premium-text) !important;
    -webkit-text-fill-color:var(--sw-premium-text) !important;

    font-size:11px !important;
    font-weight:850 !important;
}

.sw-sb-actions{
    gap:8px !important;
}

.sw-sb-msg{
    margin-top:12px !important;

    padding:10px 11px !important;

    border:1px solid #dce9e2 !important;
    border-radius:10px !important;

    background:#f5fbf8 !important;

    color:var(--sw-premium-soft) !important;
}

.sw-sb-pin{
    margin-top:12px !important;
    padding:12px !important;

    border:1px dashed #c9ded5 !important;
    border-radius:12px !important;

    background:#f8fcfa !important;
}

/* -----------------------------
   Notification
   ----------------------------- */

.sw-notification-page{
    width:calc(100% - 20px) !important;
    max-width:980px !important;

    margin:16px auto !important;
}

.sw-notification-head,
.sw-notification-item,
.sw-notification-toolbar,
.sw-notification-empty{
    border-color:var(--sw-premium-border) !important;
}

.sw-notification-head{
    border-radius:16px !important;

    background:
        linear-gradient(
            145deg,
            #fff,
            #fff9fa 50%,
            #f3fbf7
        ) !important;

    box-shadow:var(--sw-premium-shadow-soft) !important;
}

.sw-notification-head h2,
.sw-notification-title-row strong{
    color:var(--sw-premium-text) !important;
}

.sw-notification-head p,
.sw-notification-toolbar,
.sw-notification-body p,
.sw-notification-body time{
    color:var(--sw-premium-soft) !important;
}

.sw-notification-readall{
    color:#fff !important;

    background:
        linear-gradient(
            135deg,
            var(--sw-premium-red),
            var(--sw-premium-green)
        ) !important;
}

/* -----------------------------
   Payment Method
   ----------------------------- */

.sw-pm-settings{
    width:calc(100% - 20px) !important;
    max-width:1080px !important;
    margin:16px auto !important;
}

.sw-pm-settings-hero{
    border:1px solid #dce8e2 !important;
    border-radius:17px !important;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #fff9fa 48%,
            #eefaf5
        ) !important;

    color:var(--sw-premium-text) !important;
    box-shadow:var(--sw-premium-shadow-soft) !important;
}

.sw-pm-settings h2,
.sw-pm-settings h3{
    color:var(--sw-premium-text) !important;
}

.sw-pm-kicker,
.sw-pm-section-kicker{
    color:var(--sw-premium-green-dark) !important;
}

.sw-pm-card{
    border:1px solid var(--sw-premium-border) !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:var(--sw-premium-shadow-soft) !important;
}

.sw-pm-field input,
.sw-pm-field textarea,
.sw-pm-field select,
.sw-pm-grid input,
.sw-pm-grid textarea,
.sw-pm-grid select,
.sw-pm-bank-row input,
.sw-pm-bank-row textarea{
    border:1px solid var(--sw-premium-border-strong) !important;
}

.sw-pm-field input:focus,
.sw-pm-field textarea:focus,
.sw-pm-field select:focus,
.sw-pm-bank-row input:focus,
.sw-pm-bank-row textarea:focus{
    border-color:var(--sw-premium-green) !important;
    box-shadow:0 0 0 3px rgba(7,155,99,.09) !important;
}

.sw-pm-status.on{
    color:var(--sw-premium-green-dark) !important;
    background:#eaf9f3 !important;
}

/* -----------------------------
   Transaction history
   ----------------------------- */

.sw-transaction-history{
    width:calc(100% - 20px) !important;
    max-width:1000px !important;

    margin:16px auto !important;
    padding:18px !important;

    border:1px solid var(--sw-premium-border) !important;
    border-radius:17px !important;

    background:#fff !important;
    box-shadow:var(--sw-premium-shadow) !important;
}

.sw-payment-balance{
    border:1px solid #dce9e2 !important;
    background:
        linear-gradient(
            105deg,
            #f2fbf6,
            #fffafa
        ) !important;
}

.sw-payment-table-wrap{
    border-color:#dfe7eb !important;
    border-radius:12px !important;
}

.sw-payment-table th{
    background:#f4faf7 !important;
    color:#526078 !important;
}

.sw-payment-table td{
    color:#405267 !important;
}

/* -----------------------------
   My QR
   ----------------------------- */

.sw-myqr-page{
    width:calc(100% - 20px) !important;
    max-width:900px !important;
    margin:16px auto !important;
}

/* -----------------------------
   Shared status colors
   ----------------------------- */

.sw-status,
.sw-payment-status,
.sw-status-pill{
    opacity:1 !important;
}

.sw-status.sw-verified,
.sw-status-pill.is-success,
.sw-payment-status{
    color:var(--sw-premium-green-dark) !important;
    background:#eaf9f3 !important;
}

.sw-status.sw-pending,
.sw-status-pill.is-pending{
    color:#a16207 !important;
    background:#fff7df !important;
}

.sw-status.sw-rejected{
    color:var(--sw-premium-red-dark) !important;
    background:#fff0f3 !important;
}

/* -----------------------------
   Mobile
   ----------------------------- */

@media(max-width:680px){
    .sw-module-card,
    .sw-wallet-page,
    .sw-family-page,
    .sw-notification-page,
    .sw-checkout,
    .sw-pm-settings,
    .sw-transaction-history,
    .sw-myqr-page,
    .sw-sb{
        width:calc(100% - 10px) !important;
    }

    .sw-sb-grid{
        grid-template-columns:1fr !important;
    }

    .sw-sb-actions{
        display:flex !important;
        flex-direction:column !important;
    }

    .sw-sb-actions button{
        width:100% !important;
    }
}

@media(max-width:390px){
    .sw-module-card,
    .sw-wallet-page,
    .sw-family-page,
    .sw-notification-page,
    .sw-checkout,
    .sw-pm-settings,
    .sw-transaction-history,
    .sw-myqr-page,
    .sw-sb{
        width:calc(100% - 6px) !important;
    }
}
