/* =========================================================
   STOP WALLET — CASH IN
   Premium Slim Compact Red + Green UI
   DESIGN + COLOR ONLY — PHP/JS/AJAX LOGIC UNCHANGED
   ========================================================= */

.sw-wallet-page.sw-theme-cashin{
    --cashin-red:#e31837;
    --cashin-green:#0b9f68;
    --cashin-dark:#17251f;
    --cashin-muted:#738078;
    --cashin-soft:#f3fbf7;

    max-width:900px;
    margin:18px auto;
    padding:0 12px 20px;
    box-sizing:border-box;
    color:var(--cashin-dark);
}

.sw-theme-cashin .sw-wallet-heading{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:11px;
    margin:0 auto 14px;
    padding:2px 4px 6px!important;
    text-align:left;
}

.sw-theme-cashin .sw-brand-icon{
    width:46px;
    height:46px;
    min-width:46px;
    display:grid;
    place-items:center;
    border-radius:14px;
    color:#fff;
    font-size:20px;
    font-weight:900;
    background:linear-gradient(135deg,#e31837 0%,#e31837 40%,#8c554f 55%,#0b9f68 100%);
    box-shadow:0 8px 20px rgba(227,24,55,.16),0 5px 16px rgba(11,159,104,.12);
}

.sw-theme-cashin .sw-wallet-heading>div:last-child{padding:0!important;}

.sw-theme-cashin .sw-wallet-heading h2{
    margin:0;
    padding:0!important;
    font-size:23px;
    line-height:1.15;
    font-weight:900;
    background:linear-gradient(90deg,#e31837,#c91d35 45%,#0b9f68);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.sw-theme-cashin .sw-wallet-heading p{
    margin:3px 0 0;
    padding:0!important;
    color:#78837e;
    font-size:11px;
    line-height:1.45;
}

.sw-theme-cashin .sw-wallet-card{
    position:relative;
    overflow:hidden;
    max-width:620px;
    margin:0 auto;
    padding:18px;
    border:1px solid rgba(40,80,65,.10);
    border-radius:22px;
    background:rgba(255,255,255,.98);
    box-shadow:0 15px 45px rgba(35,50,43,.10),0 3px 12px rgba(227,24,55,.04);
    backdrop-filter:blur(12px);
    box-sizing:border-box;
}

.sw-theme-cashin .sw-wallet-card:before{
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:3px;
    background:linear-gradient(90deg,#e31837 0%,#e31837 42%,#8c554f 55%,#0b9f68 100%);
}

.sw-theme-cashin .sw-balance-card{
    min-height:54px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px!important;
    margin:0 0 10px;
    border-radius:15px;
    background:linear-gradient(105deg,#fff5f6,#fffafa 46%,#f1fbf6);
    border:1px solid rgba(11,159,104,.12);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.95);
    box-sizing:border-box;
}

.sw-theme-cashin .sw-balance-card:last-of-type{margin-bottom:15px;}

.sw-theme-cashin .sw-balance-icon{
    width:38px;
    height:38px;
    min-width:38px;
    display:grid;
    place-items:center;
    border-radius:11px;
    color:#fff;
    font-size:15px;
    font-weight:900;
    background:linear-gradient(135deg,#e31837,#b9233d 45%,#0b9f68);
    box-shadow:0 6px 14px rgba(227,24,55,.14);
}

.sw-theme-cashin .sw-balance-card div:nth-child(2){flex:1;min-width:0;}

.sw-theme-cashin .sw-balance-card span{
    display:block;
    font-size:10px;
    line-height:1.25;
    font-weight:800;
    color:#77827d;
}

.sw-theme-cashin .sw-balance-card strong{
    display:block;
    margin-top:1px;
    font-size:20px;
    line-height:1.15;
    color:#182720;
}

.sw-theme-cashin .sw-balance-card small{
    display:block!important;
    margin-top:3px!important;
    font-size:9px!important;
    line-height:1.35;
}

.sw-theme-cashin .sw-field{margin:0 0 15px;}

.sw-theme-cashin .sw-field label{
    display:block;
    margin:0 0 6px;
    color:#26372f;
    font-size:12px;
    line-height:1.3;
    font-weight:850;
}

.sw-theme-cashin .sw-field label i{color:#e31837;margin-right:5px;}

.sw-theme-cashin .sw-field>input,
.sw-theme-cashin .sw-input-wrap input{
    width:100%;
    height:44px;
    padding:0 12px!important;
    box-sizing:border-box;
    border:1px solid #dfe6e2!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#182720!important;
    outline:none;
    font-size:13px!important;
    transition:border-color .2s ease,box-shadow .2s ease;
}

.sw-theme-cashin .sw-field>input:focus,
.sw-theme-cashin .sw-input-wrap input:focus{
    border-color:#0b9f68!important;
    box-shadow:0 0 0 3px rgba(11,159,104,.09)!important;
}

.sw-theme-cashin .sw-field>input::placeholder,
.sw-theme-cashin .sw-input-wrap input::placeholder{
    color:#9aa59f;
    opacity:1;
}

.sw-theme-cashin .sw-qr-context-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:30px;
    margin-top:7px!important;
    padding:5px 9px;
    border:1px solid rgba(227,24,55,.15);
    border-radius:9px;
    background:linear-gradient(105deg,#fff5f6,#f3fbf7);
    color:#d71938;
    font-size:10px;
    font-weight:800;
    cursor:pointer;
    transition:.2s ease;
}

.sw-theme-cashin .sw-qr-context-btn:hover{
    border-color:#0b9f68;
    color:#07895a;
    transform:translateY(-1px);
}

.sw-theme-cashin #sw-cashin-customer-result{
    margin-top:6px;
}

.sw-theme-cashin #sw-cashin-customer-result .sw-user,
.sw-theme-cashin #sw-cashin-customer-result .sw-agent{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 10px;
    border-radius:11px;
    background:linear-gradient(105deg,#fff5f6,#f1fbf6);
    border:1px solid rgba(11,159,104,.11);
    font-size:11px;
    color:#26372f;
}

.sw-theme-cashin #sw-cashin-customer-result img{
    width:34px;
    height:34px;
    min-width:34px;
    border-radius:50%;
    object-fit:cover;
}

.sw-theme-cashin .sw-currency{color:#0b9f68;}

.sw-theme-cashin .sw-cashin-summary{
    margin-top:8px!important;
    padding:10px 12px!important;
    border-radius:13px!important;
    background:linear-gradient(105deg,#fff7f8,#f7fcfa)!important;
    border:1px solid rgba(11,159,104,.10);
    display:flex;
    flex-direction:column;
    gap:3px;
    box-sizing:border-box;
}

.sw-theme-cashin .sw-cashin-summary span{
    color:#718078;
    font-size:10px;
    line-height:1.4;
}

.sw-theme-cashin .sw-cashin-summary strong{
    color:#e31837;
    font-size:18px;
    line-height:1.25;
    font-weight:900;
}

.sw-theme-cashin .sw-cashin-summary small{
    color:#89938f;
    font-size:9px;
    line-height:1.4;
}

/* Final scoped button fix — prevents old global .sw-primary-btn rules from hiding text. */
#sw-cash-in-form>button.sw-primary-btn{
    width:100%!important;
    min-height:47px!important;
    height:47px!important;
    padding:9px 16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    box-sizing:border-box!important;
    border:0!important;
    border-radius:13px!important;
    background-color:transparent!important;
    background-image:linear-gradient(100deg,#e31837 0%,#d31e3b 34%,#8c554f 54%,#0b9f68 100%)!important;
    background-clip:border-box!important;
    -webkit-background-clip:border-box!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-family:inherit!important;
    font-size:14px!important;
    font-weight:850!important;
    line-height:1.25!important;
    letter-spacing:0!important;
    text-decoration:none!important;
    text-shadow:none!important;
    visibility:visible!important;
    opacity:1!important;
    cursor:pointer!important;
    box-shadow:0 9px 22px rgba(227,24,55,.15),0 5px 15px rgba(11,159,104,.13)!important;
    transition:transform .2s ease,box-shadow .2s ease,filter .2s ease!important;
}

#sw-cash-in-form>button.sw-primary-btn>span,
#sw-cash-in-form>button.sw-primary-btn>i{
    display:inline-block!important;
    width:auto!important;
    height:auto!important;
    background:transparent!important;
    background-image:none!important;
    background-color:transparent!important;
    background-clip:border-box!important;
    -webkit-background-clip:border-box!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    fill:#fff!important;
    stroke:#fff!important;
    text-shadow:none!important;
    visibility:visible!important;
    opacity:1!important;
    filter:none!important;
    mix-blend-mode:normal!important;
}

#sw-cash-in-form>button.sw-primary-btn:hover{
    transform:translateY(-1px)!important;
    filter:saturate(1.08);
    box-shadow:0 13px 27px rgba(227,24,55,.20),0 8px 18px rgba(11,159,104,.15)!important;
}

#sw-cash-in-form>button.sw-primary-btn:active{transform:translateY(0)!important;}

/* Optional quick buttons — styled if present without requiring markup changes. */
.sw-theme-cashin .sw-quick-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:6px;
    margin-top:7px;
}

.sw-theme-cashin .sw-quick-grid button{
    height:34px;
    border:1px solid rgba(11,159,104,.13);
    border-radius:9px;
    background:linear-gradient(135deg,#fff5f6,#f3fbf7);
    color:#0b8d60;
    font-size:11px;
    font-weight:850;
    cursor:pointer;
    transition:.2s ease;
}

.sw-theme-cashin .sw-quick-grid button:hover{
    transform:translateY(-1px);
    border-color:#e31837;
    color:#e31837;
}

/* Mobile */
@media(max-width:720px){
    .sw-wallet-page.sw-theme-cashin{
        margin-top:10px;
        padding:0 8px 16px;
    }

    .sw-theme-cashin .sw-wallet-heading{
        justify-content:flex-start;
        margin-bottom:10px;
    }

    .sw-theme-cashin .sw-brand-icon{
        width:42px;
        height:42px;
        min-width:42px;
        border-radius:12px;
        font-size:17px;
    }

    .sw-theme-cashin .sw-wallet-heading h2{font-size:20px;}
    .sw-theme-cashin .sw-wallet-heading p{font-size:9px;}

    .sw-theme-cashin .sw-wallet-card{
        padding:13px;
        border-radius:18px;
    }

    .sw-theme-cashin .sw-balance-card{
        min-height:51px;
        padding:9px 10px!important;
        margin-bottom:8px;
    }

    .sw-theme-cashin .sw-balance-icon{
        width:35px;
        height:35px;
        min-width:35px;
        border-radius:10px;
    }

    .sw-theme-cashin .sw-balance-card strong{font-size:18px;}
    .sw-theme-cashin .sw-balance-card small{font-size:8.5px!important;}

    .sw-theme-cashin .sw-field{margin-bottom:13px;}
    .sw-theme-cashin .sw-field label{font-size:11px;}

    .sw-theme-cashin .sw-field>input,
    .sw-theme-cashin .sw-input-wrap input{
        height:43px!important;
        font-size:12px!important;
    }

    .sw-theme-cashin .sw-cashin-summary{padding:9px 10px!important;}
    .sw-theme-cashin .sw-cashin-summary strong{font-size:17px;}

    #sw-cash-in-form>button.sw-primary-btn{
        height:45px!important;
        min-height:45px!important;
        border-radius:12px!important;
        font-size:13px!important;
    }

    .sw-theme-cashin .sw-quick-grid{gap:5px;}
    .sw-theme-cashin .sw-quick-grid button{
        height:32px;
        font-size:10px;
    }
}


@media(max-width:390px){
    .sw-theme-cashin .sw-wallet-card{padding:11px;}
    .sw-theme-cashin .sw-wallet-heading h2{font-size:19px;}
    .sw-theme-cashin .sw-wallet-heading p{font-size:8.5px;}
    .sw-theme-cashin .sw-qr-context-btn{width:100%;}
}

/* ============================================================
   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;
    }
}


/* Unified centered Transaction PIN modal */
.sw-pin-modal-wrap{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:20px!important;box-sizing:border-box!important;background:rgba(8,18,32,.46)!important;backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important;margin:0!important;left:0!important;top:0!important;right:0!important;bottom:0!important}
.sw-pin-modal-wrap .sw-pin-modal{position:relative!important;display:block!important;width:min(440px,calc(100vw - 40px))!important;max-width:440px!important;max-height:min(88vh,680px)!important;overflow:auto!important;margin:0 auto!important;padding:24px!important;box-sizing:border-box!important;border:1px solid rgba(255,255,255,.75)!important;border-radius:26px!important;background:linear-gradient(145deg,#fff 0%,#f7fbff 100%)!important;color:#142235!important;box-shadow:0 32px 100px rgba(8,18,32,.30),0 8px 30px rgba(18,55,90,.12)!important;transform:none!important;float:none!important;inset:auto!important}
.sw-pin-modal-wrap .sw-pin-modal .sw-confirm{padding:20px!important;margin:0 0 14px!important;border:1px solid #e3eaf2!important;border-radius:19px!important;background:#fff!important;box-sizing:border-box!important}
.sw-pin-modal-wrap .sw-pin-modal .sw-confirm h4{text-align:center!important;margin:0 0 16px!important;font-size:19px!important;font-weight:900!important;color:#123c2c!important}
.sw-pin-modal-wrap .sw-pin-modal .sw-confirm-row{display:flex!important;justify-content:space-between!important;gap:14px!important;padding:11px 0!important;border-bottom:1px solid #edf1f5!important}
.sw-pin-modal-wrap .sw-pin-modal .sw-confirm-row span{color:#667085!important;font-size:12px!important;font-weight:700!important}.sw-pin-modal-wrap .sw-pin-modal .sw-confirm-row strong{color:#123c2c!important;font-size:14px!important;font-weight:900!important;text-align:right!important;word-break:break-word!important}
.sw-pin-modal-wrap .sw-pin-modal label{display:block!important;margin:14px 0 7px!important;color:#294258!important;font-size:12px!important;font-weight:850!important}.sw-pin-modal-wrap .sw-pin-modal .sw-pin{width:100%!important;height:56px!important;box-sizing:border-box!important;border:1px solid #d7e3ec!important;border-radius:15px!important;background:#fff!important;text-align:center!important;letter-spacing:8px!important;font-size:22px!important;font-weight:900!important;outline:none!important}.sw-pin-modal-wrap .sw-pin-modal .sw-pin:focus{border-color:#10a879!important;box-shadow:0 0 0 4px rgba(16,168,121,.11)!important}.sw-pin-modal-wrap .sw-pin-modal .sw-primary-btn{width:100%!important;min-height:54px!important;margin-top:13px!important;border:0!important;border-radius:15px!important;background:linear-gradient(135deg,#087f5b,#10b981)!important;color:#fff!important;font-weight:900!important;box-shadow:0 12px 26px rgba(8,127,91,.20)!important}@media(max-width:600px){.sw-pin-modal-wrap{padding:12px!important}.sw-pin-modal-wrap .sw-pin-modal{width:calc(100vw - 24px)!important;padding:18px!important;border-radius:22px!important}}
