*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f5f8fd;color:#15213d}a{text-decoration:none;color:inherit}.app{min-height:100vh;display:grid;grid-template-columns:242px 1fr}.sidebar{background:#fff;border-right:1px solid #e4eaf3;padding:20px 14px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 18px}.logo{width:36px;height:36px;border-radius:8px;background:linear-gradient(135deg,#2874ff,#1156e9);color:#fff;display:grid;place-items:center;font-weight:800}.brand b{font-size:18px}.brand span{display:block;font-size:11px;color:#69748a;margin-top:4px}.sidebar nav{display:grid;gap:5px}.sidebar nav small{font-size:10px;color:#7f8aa0;margin:14px 9px 6px;font-weight:700}.sidebar nav a{padding:11px 12px;border-radius:8px;display:flex;gap:10px;align-items:center;font-size:13px}.sidebar nav a.active{background:#2671f5;color:#fff}.sidebar nav a em{font-style:normal;font-size:9px;background:#e7f0ff;color:#2163df;padding:3px 6px;border-radius:6px;margin-left:auto}.premium-box{margin-top:20px;border:1px solid #dfe7f3;border-radius:12px;padding:15px;background:#f8fbff;font-size:12px}.premium-box .crown{font-size:22px;color:#f2a000}.premium-box p{color:#5e6b82;line-height:1.55}.premium-box ul{padding-left:18px;line-height:1.8;color:#526078}.btn,.upgrade{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:#2671f5;color:#fff;padding:10px 15px;font-weight:700;cursor:pointer;font-family:inherit;font-size:12px}.btn.secondary{background:#edf3ff;color:#1d5fd8}.btn.danger-btn{background:#ef4d62}.btn.block{width:100%}.premium-box .btn{width:100%;margin-top:8px}main{min-width:0}header{height:66px;background:#fff;border-bottom:1px solid #e4eaf3;display:flex;justify-content:space-between;align-items:center;padding:0 24px;position:sticky;top:0;z-index:10}.menu{border:0;background:transparent;font-size:22px;color:#42506b;cursor:pointer}.head-actions{margin-left:auto;display:flex;gap:12px;align-items:center;font-size:12px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#2671f5;color:#fff;font-weight:800}.logout{color:#6f7b90}.content{padding:18px}.alert{padding:12px 14px;border-radius:8px;margin-bottom:14px;font-size:13px}.alert.success{background:#ebfbf2;color:#147a43}.alert.error{background:#fff0f1;color:#c72e45}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat,.card{background:#fff;border:1px solid #e0e7f1;border-radius:12px;padding:18px}.stat{display:flex;gap:14px;align-items:center}.stat .ico{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-weight:800}.blue{background:#e7f0ff;color:#2671f5}.greenbg{background:#e9f9ee;color:#17a154}.orange{background:#fff1e2;color:#ee8200}.purple{background:#f5eafe;color:#984ce6}.stat span{font-size:11px;color:#627089}.stat strong{display:block;font-size:20px;margin:5px 0}.stat small{font-size:10px;color:#768298}.grid{display:grid;gap:12px;margin-top:12px}.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}.card h2,.card h3{margin:0 0 14px}.card h2{font-size:18px}.card h3{font-size:14px}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.card-head h3{margin:0}.muted{color:#718098}.chart-wrap{height:260px;display:flex;gap:20px}.chart-box{height:290px}.legend{flex:1;overflow:auto}.legend div{display:grid;grid-template-columns:1fr auto auto;gap:14px;padding:7px 0;font-size:11px}.legend small{color:#788499}.bar-row,.budget-row{margin:15px 0}.bar-row>div:first-child,.budget-row>div:first-child{display:flex;justify-content:space-between;font-size:11px;margin-bottom:6px}.bar{height:7px;border-radius:9px;background:#edf1f7;overflow:hidden}.bar i{display:block;height:100%;background:#2671f5;border-radius:9px}.bar-row small,.budget-row small{font-size:9px;color:#728096}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px}th{text-align:left;color:#647089;border-bottom:1px solid #e6ebf2;padding:9px 7px}td{padding:10px 7px;border-bottom:1px solid #eef1f5;vertical-align:top}td small{display:block;color:#8a95a7;margin-top:3px}.tag{display:inline-block;padding:3px 6px;border-radius:5px;background:#eef4ff;color:#245fc6;font-size:9px}.redtag{background:#ffeded;color:#d7384f}.red{color:#df3e52}.green{color:#149d51}.danger{background:#fffafa;border-color:#ffd8dc}.upload-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.drop{border:1.5px dashed #b8c8df;border-radius:11px;padding:24px;text-align:center;background:#fbfdff}.drop input[type=file]{display:block;width:100%;margin:14px 0}.summary p{display:flex;justify-content:space-between;font-size:11px;border-bottom:1px solid #eff2f6;padding:8px 0}.uploaded{font-size:11px;background:#f8fafc;border:1px solid #e8edf4;border-radius:8px;padding:10px;margin-top:8px}.uploaded span{float:right;color:#7a8799}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.field{display:grid;gap:6px;font-size:11px}.field.full{grid-column:1/-1}input,select,textarea{border:1px solid #d9e1ec;border-radius:8px;padding:10px 11px;font:inherit;background:#fff;color:#15213d}textarea{min-height:90px}.actions{display:flex;gap:8px;align-items:center;margin-top:12px}.page-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.page-title h1{font-size:22px;margin:0}.page-title p{font-size:12px;color:#748095;margin:5px 0 0}.metric{font-size:28px;font-weight:800}.metric-label{font-size:11px;color:#718099}.progress{height:9px;background:#edf1f7;border-radius:20px;overflow:hidden}.progress span{height:100%;display:block;background:#2671f5}.locked{display:inline-block;background:#fff5df;color:#aa7300;border-radius:7px;padding:6px 8px;font-size:10px}.premium-feature p{font-size:12px;color:#6f7c91;line-height:1.6}.empty{padding:25px;text-align:center;color:#7d899d}.auth-body{min-height:100vh;display:grid;place-items:center;background:#f5f8fd;padding:20px}.auth-card{width:min(430px,100%);background:#fff;border:1px solid #e0e7f1;border-radius:14px;padding:28px}.auth-card .brand{padding:0 0 22px}.auth-card h1{margin:0 0 6px;font-size:24px}.auth-card p{color:#738097;font-size:12px}.auth-card form{display:grid;gap:12px}.auth-note{font-size:11px;background:#f5f8fd;padding:10px;border-radius:8px;margin-top:14px;line-height:1.6}.admin-shell{padding:18px}.pill{font-size:9px;padding:3px 7px;border-radius:20px;background:#eef4ff;color:#2664cf}.pill.premium{background:#fff5db;color:#9c6d00}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.grid.two,.grid.three{grid-template-columns:1fr}}@media(max-width:760px){.app{grid-template-columns:1fr}.sidebar{position:fixed;left:-250px;z-index:30;width:242px;transition:.2s}.collapsed .sidebar{left:0}.stats{grid-template-columns:1fr}.content{padding:12px}.head-actions span:not(.avatar),.upgrade{display:none}.form-grid,.upload-grid{grid-template-columns:1fr}.field.full{grid-column:auto}} 
/* =========================================
   POLISHED HEADER + SIDEBAR
========================================= */

.sidebar{
    padding:0;
}

.sidebar-top{
    padding:18px 14px 10px;
}

.brand{
    padding:7px 8px 16px;
}

.brand-copy{
    min-width:0;
}

.brand-copy b{
    font-size:18px;
    letter-spacing:-.3px;
}

.brand-copy span{
    white-space:nowrap;
}

.sidebar nav{
    padding:0 14px 15px;
}

.sidebar nav a{
    min-height:42px;
    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.sidebar nav a:hover{
    background:#f1f6ff;
    color:#2671f5;
}

.sidebar nav a.active{
    box-shadow:
        0 7px 16px
        rgba(38,113,245,.15);
}

.sidebar nav a.active:hover{
    color:#fff;
}

.sidebar nav a i{
    width:18px;
    font-size:13px;
    text-align:center;
}

.sidebar nav a span{
    white-space:nowrap;
}

.sidebar nav small{
    letter-spacing:.07em;
}

.nav-status{
    margin-left:auto;
    background:#e9f9ee;
    color:#149d51;
    padding:3px 6px;
    font-size:8px;
    border-radius:20px;
}


/* PREMIUM CARD */

.premium-box{
    margin:8px 14px 18px;
    padding:15px;
}

.premium-box-top{
    display:flex;
    gap:10px;
    align-items:center;
}

.premium-box-top .crown{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    background:#fff3d7;
    border-radius:9px;
    font-size:17px;
}

.premium-box-top strong{
    display:block;
    font-size:13px;
}

.premium-box-top small{
    display:block;
    color:#8290a7;
    margin-top:2px;
    font-size:9px;
}

.premium-box ul{
    list-style:none;
    padding:0;
    margin:10px 0;
}

.premium-box li{
    display:flex;
    align-items:center;
    gap:7px;
    line-height:1.6;
}

.premium-box li i{
    color:#1db768;
    font-size:10px;
}

.premium-box .btn{
    gap:6px;
}


/* HEADER */

.app-header{
    height:68px;
    padding:0 20px;
}

.header-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.header-page{
    display:flex;
    flex-direction:column;
}

.header-page strong{
    font-size:13px;
}

.header-page span{
    color:#8995a9;
    font-size:9px;
    margin-top:2px;
}

.menu{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border-radius:8px;
}

.menu:hover{
    background:#f3f6fb;
}


/* TOP ACTIONS */

.head-actions{
    gap:10px;
}

.header-icon-btn{
    width:36px;
    height:36px;
    border:1px solid #e1e7f0;
    background:#fff;
    color:#526078;
    border-radius:8px;
    display:grid;
    place-items:center;
    cursor:pointer;
    transition:.18s;
}

.header-icon-btn:hover{
    background:#f3f7fd;
    color:#2671f5;
    border-color:#cddcf4;
}

.upgrade{
    gap:6px;
    box-shadow:
        0 5px 12px
        rgba(38,113,245,.16);
}

.premium-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:#fff4d8;
    color:#a46f00;
    border:1px solid #f0dea8;
    padding:8px 11px;
    border-radius:8px;
    font-weight:700;
}


/* USER PROFILE */

.user-profile{
    display:flex;
    align-items:center;
    gap:9px;
    padding-left:6px;
}

.user-profile-copy{
    min-width:110px;
    display:flex;
    flex-direction:column;
}

.user-profile-copy strong{
    font-size:11px;
}

.user-profile-copy small{
    font-size:8px;
    color:#8c97aa;
    margin-top:2px;
    max-width:150px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.user-profile-links{
    display:flex;
    gap:8px;
    padding-left:5px;
    border-left:1px solid #e5eaf1;
}

.user-profile-links a{
    font-size:10px;
}

.user-profile-links a:hover{
    color:#2671f5;
}


/* CONTENT */

.content{
    max-width:1600px;
    margin:0 auto;
    width:100%;
}


/* RESPONSIVE */

@media(max-width:950px){

    .header-page{
        display:none;
    }

    .user-profile-copy{
        display:none;
    }

    .user-profile-links{
        border-left:0;
        padding-left:0;
    }

}

@media(max-width:760px){

    .user-profile-links{
        display:none;
    }

    .header-icon-btn{
        display:none;
    }

}

/* =========================================================
   SPENDSMART UI POLISH / OVERRIDES
========================================================= */

html{
    min-height:100%;
}

body{
    min-height:100vh;
    overflow-x:hidden;
}


/* APP LAYOUT */

.app{
    grid-template-columns:245px minmax(0,1fr);
}

main{
    width:100%;
    min-width:0;
}


/* SIDEBAR */

.sidebar{
    padding:0;
    box-shadow:1px 0 0 rgba(30,50,90,.02);
}

.sidebar .brand{
    padding:18px 16px;
    margin:0;
    border-bottom:1px solid #eef2f7;
}

.logo{
    flex:0 0 38px;
    width:38px;
    height:38px;
    border-radius:10px;
    box-shadow:0 5px 14px rgba(38,113,245,.16);
}

.brand b{
    font-size:18px;
    letter-spacing:-.25px;
}

.brand span{
    font-size:10px;
    margin-top:3px;
    white-space:nowrap;
}

.sidebar nav{
    padding:12px 13px;
}

.sidebar nav small{
    margin:16px 10px 7px;
    letter-spacing:.07em;
    font-size:9px;
}

.sidebar nav a{
    min-height:42px;
    padding:10px 12px;
    border-radius:8px;
    font-size:12px;
    transition:.18s ease;
}

.sidebar nav a:hover{
    background:#f1f6ff;
    color:#2671f5;
}

.sidebar nav a.active{
    background:linear-gradient(135deg,#2d7af8,#2468e8);
    color:#fff;
    box-shadow:0 6px 16px rgba(38,113,245,.17);
}

.sidebar nav a.active:hover{
    color:#fff;
}

.sidebar nav a i{
    width:18px;
    text-align:center;
    font-size:13px;
}

.sidebar nav a em{
    font-size:8px;
}


/* PREMIUM BOX */

.premium-box{
    margin:8px 14px 18px;
    padding:15px;
    background:linear-gradient(145deg,#fbfdff,#f2f7ff);
}

.premium-box .crown{
    margin-bottom:6px;
}

.premium-box strong{
    font-size:13px;
}

.premium-box p{
    font-size:11px;
    margin:8px 0;
}

.premium-box ul{
    margin:8px 0;
    padding-left:18px;
    font-size:10px;
}

.premium-box .btn{
    min-height:38px;
}


/* HEADER */

header{
    height:68px;
    padding:0 20px;
    box-shadow:0 1px 0 rgba(30,50,90,.02);
}

.menu{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border-radius:8px;
    transition:.18s ease;
}

.menu:hover{
    background:#f2f6fc;
}

.head-actions{
    gap:10px;
}

.head-actions a{
    color:#58657c;
    transition:.18s ease;
}

.head-actions a:hover{
    color:#2671f5;
}

.avatar{
    box-shadow:0 4px 10px rgba(38,113,245,.15);
}

.premium-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 10px;
    border-radius:8px;
    background:#fff5d9;
    border:1px solid #f1dfac;
    color:#9d6a00;
    font-size:10px;
    font-weight:700;
}


/* CONTENT */

.content{
    width:100%;
    max-width:1600px;
    margin:0 auto;
    padding:20px;
}


/* PAGE TITLE */

.page-title{
    gap:15px;
}

.page-title h1{
    font-size:22px;
    letter-spacing:-.25px;
}

.page-title p{
    font-size:11px;
}


/* CARDS */

.stat,
.card{
    border-color:#e2e8f1;
    box-shadow:0 1px 3px rgba(34,51,84,.025);
}

.card{
    overflow:hidden;
}

.card h2{
    font-size:17px;
}

.card h3{
    font-size:13px;
}

.card-head{
    min-height:25px;
}


/* STATS */

.stats{
    gap:14px;
}

.stat{
    min-height:92px;
    padding:16px;
}

.stat .ico{
    flex:0 0 44px;
}

.stat strong{
    font-size:19px;
}


/* TABLE */

.table-wrap{
    width:100%;
}

table{
    table-layout:auto;
}

th{
    font-size:9px;
    text-transform:uppercase;
    letter-spacing:.03em;
}

td{
    font-size:11px;
}

tbody tr:hover{
    background:#fafcff;
}


/* FORM */

input,
select,
textarea{
    width:100%;
    outline:none;
    transition:border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#8db4f6;
    box-shadow:0 0 0 3px rgba(38,113,245,.08);
}

.field label{
    font-weight:600;
    color:#56647c;
}

.btn{
    min-height:38px;
    gap:6px;
    transition:.18s ease;
}

.btn:hover{
    transform:translateY(-1px);
    box-shadow:0 5px 12px rgba(38,113,245,.14);
}


/* AUTH LOGIN + REGISTER */

.auth-body{
    background:
        radial-gradient(circle at top left, rgba(38,113,245,.08), transparent 34%),
        #f5f8fd;
}

.auth-card{
    width:min(430px,100%);
    padding:30px;
    border-radius:16px;
    box-shadow:0 15px 45px rgba(35,52,90,.08);
}

.auth-card .brand{
    margin:0;
    padding:0 0 22px;
    border:0;
}

.auth-card h1{
    font-size:23px;
    letter-spacing:-.3px;
}

.auth-card p{
    line-height:1.6;
}

.auth-card .field{
    gap:7px;
}

.auth-card input{
    min-height:43px;
}

.auth-card .btn{
    min-height:43px;
    margin-top:3px;
}

.auth-note{
    text-align:center;
}

.auth-note a{
    color:#2671f5;
    font-weight:700;
}


/* CHARTS */

.chart-wrap{
    min-height:240px;
    height:auto;
    align-items:center;
}

.chart-wrap canvas{
    width:220px !important;
    height:220px !important;
    max-width:220px !important;
    max-height:220px !important;
    flex-shrink:0;
}

.chart-box{
    height:260px;
}

.legend div{
    align-items:center;
}


/* EMPTY STATES */

.empty{
    min-height:90px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
}


/* DASHBOARD SPECIFIC */

.dashboard-grid{
    align-items:stretch;
}

.dashboard-card{
    height:auto;
    min-height:0;
}

.dashboard-chart{
    display:grid;
    grid-template-columns:220px minmax(0,1fr);
    align-items:center;
    gap:24px;
    min-height:220px;
}

.donut-container{
    width:210px;
    height:210px;
    margin:auto;
}

.donut-container canvas{
    width:210px !important;
    height:210px !important;
    max-width:210px !important;
    max-height:210px !important;
}

.dashboard-empty{
    min-height:180px;
}

.recent-card{
    margin-top:12px;
}


/* RESPONSIVE */

@media(max-width:1100px){

    .app{
        grid-template-columns:220px minmax(0,1fr);
    }

    .sidebar{
        width:auto;
    }

    .grid.two,
    .grid.three{
        grid-template-columns:1fr;
    }

    .stats{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:760px){

    .app{
        display:block;
    }

    .sidebar{
        position:fixed;
        top:0;
        left:-255px;
        width:245px;
        height:100vh;
        z-index:50;
        transition:left .2s ease;
        box-shadow:8px 0 30px rgba(20,40,80,.12);
    }

    .collapsed .sidebar{
        left:0;
    }

    header{
        padding:0 12px;
    }

    .content{
        padding:12px;
    }

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

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

    .donut-container{
        width:190px;
        height:190px;
    }

    .donut-container canvas{
        width:190px !important;
        height:190px !important;
    }

    .head-actions span:not(.avatar),
    .upgrade{
        display:none;
    }

    .form-grid,
    .upload-grid{
        grid-template-columns:1fr;
    }

    .field.full{
        grid-column:auto;
    }
}

/* =====================================================
   PREMIUM PAGE
===================================================== */

.premium-status-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:22px;
    margin-bottom:14px;
    border-radius:14px;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f5f9ff
        );
    border:1px solid #dfe7f4;
}

.premium-active-card{
    background:
        linear-gradient(
            135deg,
            #fffdf5,
            #fff8e4
        );
    border-color:#f1dfab;
}

.premium-status-left{
    display:flex;
    align-items:center;
    gap:16px;
}

.premium-large-icon{
    width:54px;
    height:54px;
    border-radius:14px;
    background:#fff2cb;
    color:#e49a00;
    display:grid;
    place-items:center;
    font-size:22px;
}

.premium-label{
    display:block;
    font-size:9px;
    color:#8a95aa;
    letter-spacing:.09em;
    font-weight:800;
    margin-bottom:5px;
}

.premium-status-card h2{
    margin:0;
    font-size:21px;
}

.premium-status-card p{
    margin:5px 0 0;
    color:#718098;
    font-size:11px;
}

.premium-active-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:8px 12px;
    background:#e9f9ee;
    color:#178f4e;
    border-radius:8px;
    font-size:11px;
    font-weight:700;
}

.premium-main-btn{
    gap:7px;
}

.premium-info-grid{
    margin-top:0;
}

.premium-info-card{
    display:flex;
    align-items:center;
    gap:12px;
}

.premium-info-icon{
    width:42px;
    height:42px;
    border-radius:11px;
    display:grid;
    place-items:center;
    flex:0 0 42px;
}

.premium-info-card span{
    display:block;
    color:#7c899e;
    font-size:9px;
    margin-bottom:4px;
}

.premium-info-card strong{
    font-size:14px;
}

.premium-main-grid{
    align-items:start;
}

.premium-badge-small{
    background:#fff3d4;
    color:#a67000;
    padding:5px 8px;
    border-radius:7px;
    font-size:9px;
    font-weight:700;
}

.premium-feature-list{
    display:grid;
    gap:4px;
}

.premium-feature-item{
    display:flex;
    gap:11px;
    padding:11px 0;
    border-bottom:1px solid #eef2f7;
}

.premium-feature-item:last-child{
    border-bottom:0;
}

.feature-check{
    width:28px;
    height:28px;
    border-radius:50%;
    background:#eaf9ef;
    color:#1aa159;
    display:grid;
    place-items:center;
    flex:0 0 28px;
    font-size:10px;
}

.premium-feature-item strong{
    display:block;
    font-size:11px;
}

.premium-feature-item p{
    margin:4px 0 0;
    color:#77849a;
    font-size:10px;
    line-height:1.5;
}

.subscription-details{
    display:grid;
}

.subscription-details > div{
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:11px 0;
    border-bottom:1px solid #edf1f6;
}

.subscription-details span{
    color:#78869b;
    font-size:10px;
}

.subscription-details strong{
    font-size:11px;
}

.premium-upgrade-note{
    margin-top:16px;
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:12px;
    background:#f4f8ff;
    border-radius:9px;
}

.premium-upgrade-note > i{
    color:#2671f5;
    margin-top:2px;
}

.premium-upgrade-note strong{
    display:block;
    font-size:11px;
}

.premium-upgrade-note p{
    margin:3px 0 0;
    font-size:10px;
    color:#78869b;
}

.premium-pricing-section{
    margin-top:18px;
}

.premium-section-heading{
    text-align:center;
    max-width:600px;
    margin:0 auto 16px;
}

.premium-section-heading > span{
    font-size:9px;
    font-weight:800;
    color:#2671f5;
    letter-spacing:.1em;
}

.premium-section-heading h2{
    margin:6px 0;
    font-size:24px;
}

.premium-section-heading p{
    color:#76839a;
    font-size:11px;
}

.premium-price-card{
    max-width:520px;
    margin:0 auto;
    background:#fff;
    border:1px solid #dfe7f2;
    border-radius:15px;
    padding:22px;
    box-shadow:0 10px 30px rgba(30,55,100,.06);
}

.price-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.plan-name{
    display:block;
    font-size:12px;
    font-weight:700;
    margin-bottom:6px;
}

.price{
    display:flex;
    align-items:flex-end;
    gap:5px;
}

.price strong{
    font-size:30px;
    letter-spacing:-1px;
}

.price span{
    color:#8190a5;
    font-size:10px;
    margin-bottom:4px;
}

.price-crown{
    width:46px;
    height:46px;
    border-radius:13px;
    display:grid;
    place-items:center;
    background:#fff2ca;
    color:#df9600;
    font-size:19px;
}

.price-features{
    display:grid;
    gap:9px;
    margin-bottom:17px;
}

.price-features span{
    font-size:10px;
    color:#56647a;
}

.price-features i{
    color:#19a55b;
    margin-right:7px;
}

.billing-note{
    display:block;
    text-align:center;
    color:#8a95a8;
    margin-top:9px;
    font-size:9px;
}

.premium-manage-card{
    margin-top:14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.premium-manage-card > div{
    display:flex;
    gap:12px;
    align-items:center;
}

.premium-manage-icon{
    width:42px;
    height:42px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#eaf9ef;
    color:#179652;
}

.premium-manage-card h3{
    margin:0;
}

.premium-manage-card p{
    margin:4px 0 0;
    color:#768398;
    font-size:10px;
}

.billing-development-note{
    display:flex;
    gap:11px;
    margin-top:14px;
    padding:14px;
    background:#f8fafc;
    border:1px solid #e5eaf2;
    border-radius:11px;
}

.billing-development-note > div:first-child{
    color:#2671f5;
}

.billing-development-note strong{
    font-size:11px;
}

.billing-development-note p{
    margin:4px 0 0;
    font-size:10px;
    color:#7b879b;
    line-height:1.55;
}

@media(max-width:760px){

    .premium-status-card{
        align-items:flex-start;
        flex-direction:column;
    }

    .premium-status-right{
        width:100%;
    }

    .premium-status-right .btn{
        width:100%;
    }

    .premium-manage-card{
        align-items:flex-start;
        flex-direction:column;
    }

}

/* ==========================================
   PREMIUM / ADMIN ACCESS
========================================== */

.premium-status-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:#fff;
    border:1px solid #e0e7f1;
    border-radius:14px;
    padding:22px;
    margin-bottom:14px;
}

.premium-active-card{
    background:linear-gradient(135deg,#fffdf6,#fff9e9);
    border-color:#f0dfaf;
}

.premium-status-left{
    display:flex;
    align-items:center;
    gap:16px;
}

.premium-large-icon{
    width:54px;
    height:54px;
    flex:0 0 54px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:#fff2cc;
    color:#df9700;
    font-size:21px;
}

.premium-label{
    display:block;
    color:#8b96aa;
    font-size:8px;
    font-weight:800;
    letter-spacing:.1em;
    margin-bottom:5px;
}

.premium-status-card h2{
    margin:0;
    font-size:20px;
}

.premium-status-card p{
    margin:5px 0 0;
    color:#748198;
    font-size:10px;
    line-height:1.5;
}

.premium-active-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:#eaf9ef;
    color:#159452;
    padding:8px 11px;
    border-radius:8px;
    font-size:10px;
    font-weight:700;
}

.premium-info-grid{
    margin-top:0;
}

.premium-info-card{
    display:flex;
    align-items:center;
    gap:12px;
}

.premium-info-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    border-radius:11px;
    display:grid;
    place-items:center;
}

.premium-info-card span{
    display:block;
    color:#8490a4;
    font-size:9px;
    margin-bottom:4px;
}

.premium-info-card strong{
    font-size:13px;
}

.premium-main-grid{
    align-items:start;
}

.premium-badge-small{
    display:inline-flex;
    align-items:center;
    gap:4px;
    background:#fff3d5;
    color:#9d6c00;
    padding:5px 8px;
    border-radius:7px;
    font-size:9px;
    font-weight:700;
}

.premium-feature-list{
    display:grid;
}

.premium-feature-item{
    display:flex;
    align-items:flex-start;
    gap:11px;
    padding:11px 0;
    border-bottom:1px solid #eef2f6;
}

.premium-feature-item:last-child{
    border-bottom:0;
}

.feature-check{
    width:27px;
    height:27px;
    flex:0 0 27px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#eaf9ef;
    color:#18a158;
    font-size:9px;
}

.premium-feature-item strong{
    display:block;
    font-size:11px;
}

.premium-feature-item p{
    margin:4px 0 0;
    color:#7b879b;
    font-size:10px;
    line-height:1.5;
}

.subscription-details > div{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:11px 0;
    border-bottom:1px solid #edf1f6;
}

.subscription-details span{
    color:#7d899d;
    font-size:10px;
}

.subscription-details strong{
    font-size:10px;
}

.admin-premium-message,
.premium-upgrade-note{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-top:16px;
    padding:13px;
    border-radius:9px;
}

.admin-premium-message{
    background:#eef5ff;
}

.premium-upgrade-note{
    background:#f5f8fd;
}

.admin-premium-icon{
    color:#2671f5;
    font-size:16px;
}

.admin-premium-message strong,
.premium-upgrade-note strong{
    display:block;
    font-size:10px;
}

.admin-premium-message p,
.premium-upgrade-note p{
    margin:4px 0 0;
    color:#768399;
    font-size:9px;
    line-height:1.5;
}

.admin-premium-banner{
    margin-top:14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    background:linear-gradient(135deg,#f9fbff,#edf5ff);
}

.admin-banner-left{
    display:flex;
    align-items:center;
    gap:13px;
}

.admin-banner-icon{
    width:45px;
    height:45px;
    flex:0 0 45px;
    border-radius:12px;
    display:grid;
    place-items:center;
    background:#2671f5;
    color:#fff;
    font-size:17px;
}

.admin-premium-banner h3{
    margin:0;
}

.admin-premium-banner p{
    margin:4px 0 0;
    color:#748198;
    font-size:10px;
}

.premium-section-heading{
    text-align:center;
    margin:25px auto 16px;
}

.premium-section-heading > span{
    color:#2671f5;
    font-size:8px;
    font-weight:800;
    letter-spacing:.1em;
}

.premium-section-heading h2{
    margin:6px 0;
    font-size:23px;
}

.premium-section-heading p{
    color:#78859a;
    font-size:10px;
}

.premium-price-card{
    max-width:500px;
    margin:0 auto;
    background:#fff;
    border:1px solid #dfe6f1;
    border-radius:15px;
    padding:22px;
    box-shadow:0 12px 35px rgba(30,50,90,.06);
}

.price-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.plan-name{
    display:block;
    font-size:11px;
    font-weight:700;
    margin-bottom:5px;
}

.price{
    display:flex;
    align-items:flex-end;
    gap:5px;
}

.price strong{
    font-size:29px;
}

.price span{
    color:#7f8ca0;
    font-size:9px;
    margin-bottom:5px;
}

.price-crown{
    width:45px;
    height:45px;
    border-radius:12px;
    display:grid;
    place-items:center;
    background:#fff2cb;
    color:#dc9500;
    font-size:18px;
}

.price-features{
    display:grid;
    gap:9px;
    margin-bottom:17px;
}

.price-features span{
    color:#56647a;
    font-size:10px;
}

.price-features i{
    color:#19a45a;
    margin-right:7px;
}

.billing-note{
    display:block;
    text-align:center;
    color:#8b96a8;
    font-size:8px;
    margin-top:9px;
}

.premium-manage-card{
    margin-top:14px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.premium-manage-card > div{
    display:flex;
    align-items:center;
    gap:11px;
}

.premium-manage-icon{
    width:40px;
    height:40px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#eaf9ef;
    color:#159652;
}

.premium-manage-card h3{
    margin:0;
}

.premium-manage-card p{
    margin:4px 0 0;
    color:#768399;
    font-size:9px;
}

@media(max-width:760px){

    .premium-status-card,
    .admin-premium-banner,
    .premium-manage-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .premium-status-right{
        width:100%;
    }

    .premium-status-right .btn{
        width:100%;
    }
}

/* =========================================================
   ACCOUNTS PAGE
========================================================= */

.accounts-main-grid{
    align-items:start;
}

.account-help-list{
    display:grid;
}

.account-help-list > div{
    display:flex;
    gap:11px;
    align-items:flex-start;
    padding:13px 0;
    border-bottom:1px solid #eef2f6;
}

.account-help-list > div:last-child{
    border-bottom:0;
}

.account-help-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:10px;
    display:grid;
    place-items:center;
}

.account-help-list strong{
    display:block;
    font-size:11px;
}

.account-help-list p{
    margin:4px 0 0;
    font-size:10px;
    line-height:1.5;
    color:#77849a;
}

.accounts-list-card{
    margin-top:12px;
}

.accounts-grid{
    display:grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px,1fr)
        );
    gap:13px;
}

.account-card{
    border:1px solid #e1e7f0;
    border-radius:12px;
    padding:16px;
    background:
        linear-gradient(
            145deg,
            #fff,
            #fbfdff
        );
    transition:.18s ease;
}

.account-card:hover{
    transform:translateY(-2px);
    box-shadow:
        0 8px 22px
        rgba(31,50,90,.06);
}

.account-card-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
}

.account-title-row{
    display:flex;
    gap:10px;
    align-items:center;
}

.account-type-icon{
    width:39px;
    height:39px;
    flex:0 0 39px;
    border-radius:10px;
    display:grid;
    place-items:center;
    background:#edf4ff;
    color:#2671f5;
}

.account-title-row strong{
    display:block;
    font-size:12px;
}

.account-title-row span{
    display:block;
    margin-top:3px;
    color:#8190a4;
    font-size:9px;
}

.account-balance{
    margin:18px 0;
}

.account-balance > span{
    display:block;
    color:#8591a5;
    font-size:9px;
    margin-bottom:5px;
}

.account-balance strong{
    font-size:24px;
    letter-spacing:-.5px;
}

.credit-summary{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:15px;
}

.credit-summary > div{
    background:#f7f9fc;
    border:1px solid #edf0f5;
    border-radius:8px;
    padding:10px;
}

.credit-summary span{
    display:block;
    color:#8994a7;
    font-size:8px;
    margin-bottom:4px;
}

.credit-summary strong{
    font-size:11px;
}

.credit-utilization{
    margin-bottom:15px;
}

.credit-utilization > div:first-child{
    display:flex;
    justify-content:space-between;
    margin-bottom:6px;
}

.credit-utilization span{
    font-size:9px;
    color:#718096;
}

.credit-utilization strong{
    font-size:9px;
}

.credit-utilization small{
    display:block;
    margin-top:5px;
    font-size:8px;
}

.progress-warning{
    background:#ee9200 !important;
}

.progress-danger{
    background:#df3e52 !important;
}

.orange-text{
    color:#df8600;
}

.account-card-footer{
    padding-top:12px;
    border-top:1px solid #edf1f5;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.account-card-footer > span{
    color:#8491a4;
    font-size:9px;
}

.account-card-footer > span i{
    margin-right:5px;
}

.account-delete{
    width:31px;
    height:31px;
    display:grid;
    place-items:center;
    border:1px solid #f1dce0;
    background:#fff;
    color:#d84559;
    border-radius:7px;
    cursor:pointer;
}

.account-delete:hover{
    background:#fff2f3;
}

.account-empty{
    min-height:220px;
}

.empty-account-icon{
    width:50px;
    height:50px;
    border-radius:13px;
    background:#edf4ff;
    color:#2671f5;
    display:grid;
    place-items:center;
    font-size:18px;
    margin-bottom:9px;
}

.account-empty strong{
    font-size:12px;
}

.account-empty p{
    margin:5px auto 0;
    max-width:340px;
    font-size:10px;
    line-height:1.6;
}

.account-card-actions{
    display:flex;
    align-items:center;
    gap:7px;
}

.account-upload{
    min-height:31px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 10px;
    border-radius:7px;
    background:#edf4ff;
    color:#2671f5;
    font-size:9px;
    font-weight:700;
    transition:.18s ease;
}

.account-upload:hover{
    background:#2671f5;
    color:#fff;
}

.account-upload i{
    font-size:10px;
}

/* =========================================================
   REPORTS
========================================================= */

.report-filter-card{
    margin-bottom:14px;
}

.report-filter-grid{
    display:grid;
    grid-template-columns:
        repeat(5,minmax(0,1fr))
        auto;
    gap:10px;
    align-items:end;
}

.report-filter-button .btn{
    width:100%;
    white-space:nowrap;
}

.report-stats{
    margin-top:14px;
}

.report-metrics-grid{
    margin-top:12px;
}

.report-mini-card{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.report-mini-card span{
    color:#7e8b9f;
    font-size:9px;
}

.report-mini-card strong{
    font-size:18px;
}

.report-chart-box{
    height:280px;
}

.report-category-layout{
    min-height:280px;
    display:grid;
    grid-template-columns:210px 1fr;
    gap:20px;
    align-items:center;
}

.report-donut{
    width:200px;
    height:200px;
    margin:auto;
}

.report-donut canvas{
    width:200px !important;
    height:200px !important;
    max-width:200px !important;
    max-height:200px !important;
}

.report-category-list{
    display:grid;
}

.report-category-list > div{
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:8px 0;
    border-bottom:1px solid #eef2f6;
}

.report-category-list > div:last-child{
    border-bottom:0;
}

.report-category-list span{
    color:#6f7d93;
    font-size:10px;
}

.report-category-list strong{
    font-size:10px;
}

.merchant-report-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:11px 0;
    border-bottom:1px solid #eef2f6;
}

.merchant-report-row:last-child{
    border-bottom:0;
}

.merchant-report-row strong{
    display:block;
    font-size:10px;
}

.merchant-report-row small{
    display:block;
    color:#8a95a7;
    font-size:8px;
    margin-top:3px;
}

.merchant-report-amount{
    text-align:right;
}

.merchant-report-amount span{
    display:block;
    color:#8793a6;
    font-size:8px;
    margin-top:3px;
}

.report-transactions-card{
    margin-top:12px;
}

.report-premium-card{
    margin-top:12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.report-premium-card h3{
    margin:8px 0 4px;
}

.report-premium-card p{
    margin:0;
}


/* RESPONSIVE */

@media(max-width:1250px){

    .report-filter-grid{
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

}

@media(max-width:800px){

    .report-filter-grid{
        grid-template-columns:1fr 1fr;
    }

    .report-category-layout{
        grid-template-columns:1fr;
    }

}

@media(max-width:550px){

    .report-filter-grid{
        grid-template-columns:1fr;
    }

    .report-premium-card{
        align-items:flex-start;
        flex-direction:column;
    }

}

/* =========================================================
   UPLOAD STATEMENT
========================================================= */

.upload-main-grid{
    align-items:start;
}

.upload-card form{
    display:grid;
    gap:14px;
}

.upload-account-field{
    margin-bottom:2px;
}

.statement-dropzone{
    min-height:235px;
    border:2px dashed #c7d4e7;
    border-radius:13px;
    background:
        linear-gradient(
            145deg,
            #fbfdff,
            #f6faff
        );
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:25px;
    cursor:pointer;
    transition:.18s ease;
}

.statement-dropzone:hover,
.statement-dropzone-hover{
    border-color:#76a6f5;
    background:#f3f8ff;
}

.statement-dropzone-selected{
    border-color:#8bb3f5;
}

.statement-dropzone input{
    display:none;
}

.statement-drop-icon{
    width:54px;
    height:54px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:#eaf2ff;
    color:#2671f5;
    font-size:21px;
    margin-bottom:12px;
}

.statement-dropzone strong{
    font-size:13px;
}

.statement-dropzone p{
    margin:5px 0 9px;
    color:#7c899e;
    font-size:10px;
}

.statement-dropzone > span{
    background:#eef4ff;
    color:#2665d1;
    border-radius:7px;
    padding:5px 8px;
    font-size:9px;
    font-weight:700;
}

.statement-dropzone small{
    color:#98a2b3;
    margin-top:8px;
    font-size:8px;
}

.selected-file{
    border:1px solid #dfe7f2;
    background:#f8fbff;
    border-radius:10px;
    padding:11px;
    align-items:center;
    gap:10px;
}

.selected-file-icon{
    width:36px;
    height:36px;
    border-radius:9px;
    background:#eaf2ff;
    color:#2671f5;
    display:grid;
    place-items:center;
}

.selected-file-info{
    min-width:0;
    flex:1;
}

.selected-file-info strong{
    display:block;
    font-size:10px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.selected-file-info span{
    display:block;
    margin-top:3px;
    color:#8b97aa;
    font-size:8px;
}

.remove-selected-file{
    width:29px;
    height:29px;
    border-radius:7px;
    border:0;
    background:#fff;
    color:#df4559;
    cursor:pointer;
}

.remove-selected-file:hover{
    background:#fff0f2;
}

.upload-import-note{
    display:flex;
    gap:10px;
    padding:12px;
    border-radius:9px;
    background:#f3f8ff;
}

.upload-import-note > div:first-child{
    color:#2671f5;
}

.upload-import-note strong{
    display:block;
    font-size:10px;
}

.upload-import-note p{
    margin:4px 0 0;
    color:#748197;
    font-size:9px;
    line-height:1.5;
}

.upload-submit-btn{
    min-height:43px;
}

.upload-steps{
    display:grid;
}

.upload-step{
    display:flex;
    gap:11px;
    padding:13px 0;
    border-bottom:1px solid #eef2f6;
}

.upload-step:last-child{
    border-bottom:0;
}

.upload-step-number{
    width:29px;
    height:29px;
    flex:0 0 29px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#2671f5;
    color:#fff;
    font-size:9px;
    font-weight:800;
}

.upload-step strong{
    display:block;
    font-size:10px;
}

.upload-step p{
    margin:4px 0 0;
    color:#78859a;
    font-size:9px;
    line-height:1.5;
}

.csv-format-example{
    margin-top:14px;
    padding:13px;
    background:#f8fafc;
    border:1px solid #e5eaf2;
    border-radius:10px;
}

.csv-format-head{
    display:flex;
    gap:9px;
    align-items:center;
}

.csv-format-head > div:first-child{
    color:#178e4d;
    font-size:20px;
}

.csv-format-head strong{
    display:block;
    font-size:10px;
}

.csv-format-head span{
    display:block;
    margin-top:2px;
    font-size:8px;
    color:#8894a6;
}

.csv-format-example pre{
    margin:11px 0 0;
    padding:11px;
    background:#fff;
    border:1px solid #e7ebf1;
    border-radius:8px;
    overflow:auto;
    font-size:9px;
    line-height:1.6;
}

.upload-history-card{
    margin-top:12px;
}

.upload-file-cell{
    display:flex;
    gap:9px;
    align-items:center;
}

.upload-file-type{
    min-width:38px;
    height:30px;
    padding:0 7px;
    border-radius:7px;
    background:#edf4ff;
    color:#2671f5;
    display:grid;
    place-items:center;
    font-size:8px;
    font-weight:800;
}

.upload-file-cell strong{
    display:block;
    max-width:240px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.upload-status{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:4px 7px;
    border-radius:6px;
    font-size:8px;
    font-weight:700;
}

.upload-status-success{
    background:#eaf9ef;
    color:#168f4e;
}

.upload-status-failed{
    background:#fff0f2;
    color:#d53e52;
}

.upload-status-saved{
    background:#eef4ff;
    color:#2564cd;
}

.upload-history-empty{
    min-height:210px;
}

.upload-history-empty-icon,
.upload-no-account-icon{
    width:50px;
    height:50px;
    border-radius:13px;
    display:grid;
    place-items:center;
    background:#edf4ff;
    color:#2671f5;
    font-size:18px;
    margin-bottom:9px;
}

.upload-history-empty p,
.upload-no-account p{
    margin:5px auto 12px;
    max-width:360px;
    font-size:9px;
    line-height:1.6;
}

.upload-no-account{
    min-height:280px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

@media(max-width:760px){

    .statement-dropzone{
        min-height:210px;
    }

}


/* =========================================================
   CATEGORIES
========================================================= */

.category-main-grid{
    align-items:start;
}

.category-rule-form{
    display:grid;
    gap:14px;
}

.category-rule-example{
    display:flex;
    gap:10px;
    padding:12px;
    border-radius:9px;
    background:#f4f8ff;
    border:1px solid #e3ebf7;
}

.category-rule-example-icon{
    width:32px;
    height:32px;
    flex:0 0 32px;
    display:grid;
    place-items:center;
    border-radius:8px;
    background:#eaf2ff;
    color:#2671f5;
}

.category-rule-example strong{
    font-size:10px;
}

.category-rule-example p{
    margin:4px 0 0;
    font-size:9px;
    line-height:1.5;
    color:#76839a;
}

.category-help-list{
    display:grid;
}

.category-help-list > div{
    display:flex;
    gap:11px;
    align-items:flex-start;
    padding:13px 0;
    border-bottom:1px solid #eef2f6;
}

.category-help-list > div:last-child{
    border-bottom:0;
}

.category-help-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:10px;
    display:grid;
    place-items:center;
}

.category-help-list strong{
    display:block;
    font-size:11px;
}

.category-help-list p{
    margin:4px 0 0;
    color:#78859a;
    font-size:10px;
    line-height:1.5;
}

.category-rules-card{
    margin-top:12px;
}

.category-rules-grid{
    display:grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px,1fr)
        );
    gap:12px;
}

.category-rule-card{
    border:1px solid #e2e8f1;
    border-radius:11px;
    padding:14px;
    background:#fff;
    transition:.18s ease;
}

.category-rule-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(31,50,90,.05);
}

.category-rule-card-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
}

.category-rule-title{
    display:flex;
    align-items:center;
    gap:10px;
}

.category-rule-icon{
    width:36px;
    height:36px;
    flex:0 0 36px;
    border-radius:9px;
    display:grid;
    place-items:center;
    background:#edf4ff;
    color:#2671f5;
}

.category-rule-title strong{
    display:block;
    font-size:11px;
}

.category-rule-title span{
    display:block;
    margin-top:3px;
    font-size:8px;
    color:#8793a6;
}

.category-delete{
    width:30px;
    height:30px;
    border-radius:7px;
    border:1px solid #f0dbe0;
    background:#fff;
    color:#d64257;
    display:grid;
    place-items:center;
    cursor:pointer;
}

.category-delete:hover{
    background:#fff1f3;
}

.category-keywords{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:13px;
}

.category-keywords span{
    padding:5px 8px;
    border-radius:20px;
    background:#f1f6ff;
    color:#2a64c9;
    font-size:8px;
    font-weight:600;
}

.category-no-keywords{
    background:#f7f8fa !important;
    color:#8b96a8 !important;
}

.category-empty{
    min-height:220px;
}

.category-empty-icon{
    width:50px;
    height:50px;
    border-radius:13px;
    background:#edf4ff;
    color:#2671f5;
    display:grid;
    place-items:center;
    font-size:18px;
    margin-bottom:9px;
}

.category-empty strong{
    font-size:11px;
}

.category-empty p{
    max-width:360px;
    margin:5px auto 0;
    font-size:9px;
    line-height:1.6;
}

/* =========================================================
   BUDGETS
========================================================= */

.budget-main-grid{
    align-items:start;
}

.budget-form{
    display:grid;
    gap:14px;
}

.money-input-wrap{
    display:flex;
    align-items:center;
    border:1px solid #d9e1ec;
    border-radius:8px;
    background:#fff;
    overflow:hidden;
}

.money-input-wrap > span{
    padding-left:11px;
    color:#6f7c91;
    font-weight:700;
}

.money-input-wrap input{
    border:0;
    box-shadow:none !important;
}

.money-input-wrap:focus-within{
    border-color:#8db4f6;
    box-shadow:0 0 0 3px rgba(38,113,245,.08);
}

.budget-form-note{
    display:flex;
    gap:10px;
    padding:12px;
    border-radius:9px;
    background:#f4f8ff;
}

.budget-form-note > div:first-child{
    color:#2671f5;
}

.budget-form-note strong{
    display:block;
    font-size:10px;
}

.budget-form-note p{
    margin:4px 0 0;
    font-size:9px;
    color:#77849a;
    line-height:1.5;
}


/* OVERALL */

.budget-overall{
    padding:4px 0 12px;
}

.budget-overall-top{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-bottom:13px;
}

.budget-overall-top span{
    display:block;
    color:#8793a6;
    font-size:9px;
    margin-bottom:4px;
}

.budget-overall-top strong{
    font-size:18px;
}

.budget-overall-progress{
    height:10px;
}

.budget-overall-bottom{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-top:7px;
    font-size:9px;
    color:#7d899c;
}

.budget-status-box{
    display:flex;
    gap:10px;
    padding:12px;
    background:#f8fafc;
    border:1px solid #e8edf3;
    border-radius:9px;
}

.budget-status-box > i{
    margin-top:2px;
}

.budget-status-box strong{
    display:block;
    font-size:10px;
}

.budget-status-box p{
    margin:4px 0 0;
    color:#7b879b;
    font-size:9px;
    line-height:1.5;
}


/* CATEGORY CARDS */

.budget-list-card{
    margin-top:12px;
}

.budget-card-grid{
    display:grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px,1fr)
        );
    gap:12px;
}

.budget-category-card{
    padding:15px;
    border:1px solid #e1e7f0;
    border-radius:11px;
    background:#fff;
    transition:.18s ease;
}

.budget-category-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 22px rgba(31,50,90,.05);
}

.budget-category-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
}

.budget-category-title{
    display:flex;
    align-items:center;
    gap:10px;
}

.budget-category-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:10px;
    display:grid;
    place-items:center;
    background:#edf4ff;
    color:#2671f5;
}

.budget-category-title strong{
    display:block;
    font-size:11px;
}

.budget-category-title span{
    display:block;
    margin-top:3px;
    color:#8793a6;
    font-size:8px;
}

.budget-status{
    padding:4px 7px;
    border-radius:20px;
    font-size:8px;
    font-weight:700;
}

.budget-status.good{
    background:#eaf9ef;
    color:#168e4e;
}

.budget-status.warning{
    background:#fff5df;
    color:#aa7200;
}

.budget-status.over{
    background:#fff0f2;
    color:#d33f54;
}

.budget-category-amounts{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:16px 0 12px;
}

.budget-category-amounts > div{
    padding:9px;
    border-radius:8px;
    background:#f8fafc;
}

.budget-category-amounts span{
    display:block;
    color:#8793a6;
    font-size:8px;
    margin-bottom:4px;
}

.budget-category-amounts strong{
    font-size:11px;
}

.budget-category-progress{
    height:8px;
}

.budget-category-footer{
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin-top:6px;
    color:#7e8a9e;
    font-size:8px;
}

.budget-empty{
    min-height:220px;
}

.budget-empty-icon{
    width:50px;
    height:50px;
    border-radius:13px;
    background:#edf4ff;
    color:#2671f5;
    display:grid;
    place-items:center;
    font-size:18px;
    margin-bottom:9px;
}

.budget-empty strong{
    font-size:11px;
}

.budget-empty p{
    max-width:340px;
    margin:5px auto 0;
    font-size:9px;
    line-height:1.6;
}

/* =========================================================
   SPENDING ANALYZER
========================================================= */

.red-analyzer{
    background:#fff0f2;
    color:#dc4055;
}

.analyzer-top-merchant{
    max-width:150px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:14px !important;
}

.analyzer-risk-grid{
    margin-top:12px;
}

.analyzer-risk-card{
    display:flex;
    align-items:center;
    gap:12px;
    padding:15px;
}

.analyzer-risk-icon{
    width:40px;
    height:40px;
    flex:0 0 40px;
    border-radius:10px;
    display:grid;
    place-items:center;
}

.analyzer-risk-card.high .analyzer-risk-icon{
    background:#fff0f2;
    color:#dc4055;
}

.analyzer-risk-card.medium .analyzer-risk-icon{
    background:#fff5e3;
    color:#dc8800;
}

.analyzer-risk-card.low .analyzer-risk-icon{
    background:#eef4ff;
    color:#2671f5;
}

.analyzer-risk-card span{
    display:block;
    color:#7f8ba0;
    font-size:9px;
}

.analyzer-risk-card strong{
    display:block;
    margin-top:3px;
    font-size:20px;
}

.analyzer-risk-card small{
    color:#8c97aa;
    font-size:8px;
}

.analyzer-main-grid{
    align-items:start;
}

.analyzer-review-card{
    border-color:#f0dfe2;
}

.analyzer-priority{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:4px 7px;
    border-radius:20px;
    font-size:8px;
    font-weight:700;
}

.analyzer-risk-high{
    background:#fff0f2;
    color:#d93f53;
}

.analyzer-risk-medium{
    background:#fff5df;
    color:#a97100;
}

.analyzer-risk-low{
    background:#eef4ff;
    color:#2666d0;
}

.analyzer-merchant-row{
    margin-bottom:14px;
}

.analyzer-merchant-top{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-bottom:6px;
}

.analyzer-merchant-top span{
    font-size:10px;
    color:#56647a;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.analyzer-merchant-top strong{
    font-size:10px;
}

.analyzer-merchant-bar{
    height:6px;
}

.analyzer-note{
    display:flex;
    gap:9px;
    align-items:flex-start;
    margin-top:16px;
    padding:11px;
    border-radius:9px;
    background:#f8fafc;
    border:1px solid #e8edf4;
}

.analyzer-note > i{
    color:#2671f5;
    margin-top:2px;
}

.analyzer-note p{
    margin:0;
    font-size:9px;
    line-height:1.55;
    color:#78859a;
}

.analyzer-reason-row{
    margin-bottom:14px;
}

.analyzer-reason-row > div:first-child{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-bottom:6px;
}

.analyzer-reason-row span{
    font-size:10px;
    color:#57657b;
}

.analyzer-reason-row strong{
    font-size:10px;
}

.analyzer-reason-row small{
    display:block;
    text-align:right;
    margin-top:4px;
    font-size:8px;
    color:#7e8a9f;
}

.analyzer-savings-card{
    margin-top:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #eef5ff
        );
}

.analyzer-savings-left{
    display:flex;
    gap:13px;
    align-items:center;
}

.analyzer-savings-icon{
    width:48px;
    height:48px;
    flex:0 0 48px;
    border-radius:12px;
    display:grid;
    place-items:center;
    background:#e9f9ef;
    color:#169554;
    font-size:19px;
}

.analyzer-savings-card h3{
    margin:3px 0 5px;
    font-size:13px;
}

.analyzer-savings-card p{
    margin:0;
    color:#748197;
    font-size:9px;
    line-height:1.55;
}

.analyzer-savings-right{
    display:flex;
    align-items:center;
    gap:8px;
    flex-shrink:0;
}

.analyzer-empty{
    min-height:220px;
}

.analyzer-empty-icon{
    width:50px;
    height:50px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#eaf9ef;
    color:#159652;
    font-size:18px;
    margin-bottom:9px;
}

.analyzer-empty strong{
    font-size:11px;
}

.analyzer-empty p{
    max-width:360px;
    margin:5px auto 0;
    font-size:9px;
    line-height:1.6;
}

@media(max-width:760px){

    .analyzer-savings-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .analyzer-savings-right{
        width:100%;
    }

    .analyzer-savings-right .btn{
        flex:1;
    }

}


/* =========================================================
   SAVINGS GOALS
========================================================= */

.goals-main-grid{
    align-items:start;
}

.goal-form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.goal-form .field.full{
    grid-column:1/-1;
}

.goal-tip{
    grid-column:1/-1;
    display:flex;
    gap:10px;
    padding:12px;
    border-radius:9px;
    background:#f4f8ff;
}

.goal-tip > div:first-child{
    color:#2671f5;
}

.goal-tip strong{
    display:block;
    font-size:10px;
}

.goal-tip p{
    margin:4px 0 0;
    color:#77849a;
    font-size:9px;
    line-height:1.5;
}

.goal-form > .btn{
    grid-column:1/-1;
}


/* OVERALL */

.goal-overall-progress{
    padding-top:3px;
}

.goal-overall-number{
    margin-bottom:14px;
}

.goal-overall-number strong{
    display:block;
    font-size:34px;
    line-height:1;
    letter-spacing:-1px;
}

.goal-overall-number span{
    display:block;
    color:#8290a4;
    font-size:9px;
    margin-top:4px;
}

.goal-progress-main{
    height:10px;
}

.goal-overall-values{
    display:grid;
    grid-template-columns:
        repeat(3,1fr);
    gap:9px;
    margin-top:16px;
}

.goal-overall-values > div{
    padding:10px;
    border-radius:8px;
    background:#f8fafc;
}

.goal-overall-values span{
    display:block;
    color:#8692a5;
    font-size:8px;
    margin-bottom:4px;
}

.goal-overall-values strong{
    font-size:11px;
}

.goal-summary-message{
    display:flex;
    gap:10px;
    align-items:flex-start;
    margin-top:14px;
    padding:12px;
    border-radius:9px;
    background:#f4f8ff;
}

.goal-summary-message > i{
    color:#2671f5;
    margin-top:2px;
}

.goal-summary-message strong{
    display:block;
    font-size:10px;
}

.goal-summary-message p{
    margin:4px 0 0;
    color:#77849a;
    font-size:9px;
}


/* GOAL LIST */

.goals-list-card{
    margin-top:12px;
}

.goals-grid{
    display:grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(310px,1fr)
        );
    gap:13px;
}

.goal-card{
    padding:16px;
    border:1px solid #e1e7f0;
    border-radius:12px;
    background:#fff;
    transition:.18s ease;
}

.goal-card:hover{
    transform:translateY(-2px);
    box-shadow:
        0 8px 22px
        rgba(31,50,90,.05);
}

.goal-card-completed{
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f6fff9
        );
    border-color:#d7efdf;
}

.goal-card-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
}

.goal-title{
    display:flex;
    gap:10px;
    align-items:center;
}

.goal-icon{
    width:40px;
    height:40px;
    flex:0 0 40px;
    border-radius:10px;
    display:grid;
    place-items:center;
    background:#edf4ff;
    color:#2671f5;
}

.goal-card-completed .goal-icon{
    background:#eaf9ef;
    color:#169652;
}

.goal-title strong{
    display:block;
    font-size:11px;
}

.goal-title span{
    display:block;
    margin-top:3px;
    color:#8994a7;
    font-size:8px;
}


/* STATUS */

.goal-status{
    display:inline-flex;
    padding:4px 7px;
    border-radius:20px;
    font-size:8px;
    font-weight:700;
}

.goal-status-active{
    background:#eef4ff;
    color:#2664cf;
}

.goal-status-completed{
    background:#eaf9ef;
    color:#168e4e;
}

.goal-status-paused{
    background:#fff5df;
    color:#a97100;
}


/* AMOUNT */

.goal-amount{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:16px 0 12px;
}

.goal-amount > div{
    padding:10px;
    border-radius:8px;
    background:#f8fafc;
}

.goal-amount span{
    display:block;
    color:#8793a6;
    font-size:8px;
    margin-bottom:4px;
}

.goal-amount strong{
    font-size:12px;
}


/* PROGRESS */

.goal-card-progress{
    height:8px;
}

.goal-progress-text{
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin-top:6px;
}

.goal-progress-text span{
    color:#7e8a9e;
    font-size:8px;
}

.goal-progress-text strong{
    font-size:8px;
}


/* DEADLINE */

.goal-deadline{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:12px;
    padding:6px 8px;
    border-radius:7px;
    background:#f2f6fc;
    color:#63728a;
    font-size:8px;
}

.goal-deadline-soon{
    background:#fff5df;
    color:#9f6d00;
}

.goal-deadline-late{
    background:#fff0f2;
    color:#d44054;
}


/* UPDATE FORM */

.goal-update-form{
    display:grid;
    grid-template-columns:1fr 120px auto;
    gap:8px;
    align-items:end;
    margin-top:14px;
    padding-top:13px;
    border-top:1px solid #edf1f5;
}

.goal-update-form .field{
    gap:4px;
}

.goal-update-form input,
.goal-update-form select{
    min-height:37px;
    padding:8px;
}

.goal-update-form .btn{
    min-height:37px;
}


/* DELETE */

.goal-delete-form{
    margin-top:8px;
}

.goal-delete-btn{
    border:0;
    background:transparent;
    color:#d4485c;
    padding:5px 0;
    font-size:8px;
    cursor:pointer;
}

.goal-delete-btn:hover{
    color:#b9273c;
}


/* EMPTY */

.goals-empty{
    min-height:230px;
}

.goals-empty-icon{
    width:52px;
    height:52px;
    border-radius:13px;
    display:grid;
    place-items:center;
    background:#edf4ff;
    color:#2671f5;
    font-size:18px;
    margin-bottom:9px;
}

.goals-empty strong{
    font-size:11px;
}

.goals-empty p{
    max-width:350px;
    margin:5px auto 0;
    color:#7d899d;
    font-size:9px;
    line-height:1.6;
}


/* MOBILE */

@media(max-width:760px){

    .goal-form{
        grid-template-columns:1fr;
    }

    .goal-form .field.full,
    .goal-form > .btn,
    .goal-tip{
        grid-column:auto;
    }

    .goal-update-form{
        grid-template-columns:1fr;
    }

    .goal-overall-values{
        grid-template-columns:1fr;
    }

}

/* =========================================================
   BILL REMINDERS
========================================================= */

.bills-main-grid{
    align-items:start;
}

.bill-form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.bill-form .field.full{
    grid-column:1/-1;
}

.bill-autopay-option{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    border:1px solid #e3e9f2;
    border-radius:10px;
    background:#f8fbff;
    cursor:pointer;
}

.bill-autopay-option input{
    display:none;
}

.bill-autopay-box{
    width:36px;
    height:36px;
    flex:0 0 36px;
    border-radius:9px;
    display:grid;
    place-items:center;
    background:#edf4ff;
    color:#2671f5;
}

.bill-autopay-option input:checked + .bill-autopay-box{
    background:#2671f5;
    color:#fff;
}

.bill-autopay-option strong{
    display:block;
    font-size:10px;
}

.bill-autopay-option small{
    display:block;
    margin-top:3px;
    font-size:8px;
    color:#8390a4;
}

.bill-tip{
    grid-column:1/-1;
    display:flex;
    gap:9px;
    padding:11px;
    border-radius:9px;
    background:#f4f8ff;
    color:#768399;
}

.bill-tip i{
    color:#2671f5;
    margin-top:2px;
}

.bill-tip p{
    margin:0;
    font-size:9px;
    line-height:1.5;
}

.bill-form > .btn{
    grid-column:1/-1;
}


/* MONTH SUMMARY */

.bill-month-summary{
    display:grid;
}

.bill-month-total{
    padding:4px 0 14px;
    border-bottom:1px solid #edf1f5;
}

.bill-month-total span{
    display:block;
    color:#8793a6;
    font-size:9px;
    margin-bottom:4px;
}

.bill-month-total strong{
    font-size:24px;
}

.bill-month-row{
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:11px 0;
    border-bottom:1px solid #edf1f5;
}

.bill-month-row span{
    color:#77849a;
    font-size:10px;
}

.bill-month-row strong{
    font-size:10px;
}

.bill-summary-note{
    display:flex;
    gap:10px;
    margin-top:14px;
    padding:12px;
    border-radius:9px;
    background:#f4f8ff;
}

.bill-summary-note > div:first-child{
    color:#2671f5;
}

.bill-summary-note strong{
    display:block;
    font-size:10px;
}

.bill-summary-note p{
    margin:4px 0 0;
    color:#77849a;
    font-size:9px;
    line-height:1.5;
}


/* BILL LIST */

.bills-list-card{
    margin-top:12px;
}

.bills-grid{
    display:grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px,1fr)
        );
    gap:12px;
}

.bill-card{
    padding:15px;
    border:1px solid #e1e7f0;
    border-radius:12px;
    background:#fff;
    transition:.18s ease;
}

.bill-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 22px rgba(31,50,90,.05);
}

.bill-card-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}

.bill-title{
    display:flex;
    align-items:center;
    gap:10px;
}

.bill-icon{
    width:39px;
    height:39px;
    flex:0 0 39px;
    border-radius:10px;
    display:grid;
    place-items:center;
    background:#edf4ff;
    color:#2671f5;
}

.bill-title strong{
    display:block;
    font-size:11px;
}

.bill-title span{
    display:block;
    margin-top:3px;
    color:#8793a6;
    font-size:8px;
}


/* BADGES */

.bill-autopay-badge,
.bill-manual-badge{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:4px 7px;
    border-radius:20px;
    font-size:8px;
    font-weight:700;
}

.bill-autopay-badge{
    background:#eaf9ef;
    color:#168f4e;
}

.bill-manual-badge{
    background:#f2f4f8;
    color:#6f7c90;
}


/* AMOUNT */

.bill-card-amount{
    margin:17px 0;
}

.bill-card-amount span{
    display:block;
    color:#8793a6;
    font-size:8px;
    margin-bottom:4px;
}

.bill-card-amount strong{
    font-size:23px;
    letter-spacing:-.4px;
}


/* DETAILS */

.bill-card-details{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}

.bill-card-details > div{
    padding:9px;
    border-radius:8px;
    background:#f8fafc;
}

.bill-card-details span{
    display:block;
    color:#8793a6;
    font-size:8px;
    margin-bottom:4px;
}

.bill-card-details strong{
    font-size:10px;
}


/* DUE STATUS */

.bill-due-status{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:12px;
    padding:6px 8px;
    border-radius:7px;
    font-size:8px;
    font-weight:600;
}

.bill-due-normal{
    background:#f2f6fc;
    color:#63728a;
}

.bill-due-week{
    background:#fff7e5;
    color:#9e710c;
}

.bill-due-soon{
    background:#fff1e1;
    color:#c66a00;
}

.bill-due-today{
    background:#fff0f2;
    color:#d33e53;
}


/* FOOTER */

.bill-card-footer{
    margin-top:13px;
    padding-top:12px;
    border-top:1px solid #edf1f5;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.bill-card-footer > span{
    color:#8793a6;
    font-size:8px;
}

.bill-card-footer > span i{
    margin-right:5px;
}

.bill-delete{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:7px;
    border:1px solid #f0dbe0;
    background:#fff;
    color:#d64257;
    cursor:pointer;
}

.bill-delete:hover{
    background:#fff1f3;
}


/* EMPTY */

.bills-empty{
    min-height:220px;
}

.bills-empty-icon{
    width:50px;
    height:50px;
    border-radius:13px;
    background:#edf4ff;
    color:#2671f5;
    display:grid;
    place-items:center;
    font-size:18px;
    margin-bottom:9px;
}

.bills-empty strong{
    font-size:11px;
}

.bills-empty p{
    max-width:350px;
    margin:5px auto 0;
    font-size:9px;
    color:#7d899d;
    line-height:1.6;
}


/* MOBILE */

@media(max-width:760px){

    .bill-form{
        grid-template-columns:1fr;
    }

    .bill-form .field.full,
    .bill-autopay-option,
    .bill-tip,
    .bill-form > .btn{
        grid-column:auto;
    }

}

/* =========================================================
   PROFILE & SECURITY
========================================================= */

.profile-summary-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:20px;
    margin-bottom:14px;
    border:1px solid #e0e7f1;
    border-radius:14px;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f7faff
        );
}

.profile-summary-left{
    display:flex;
    align-items:center;
    gap:15px;
}

.profile-large-avatar{
    width:58px;
    height:58px;
    flex:0 0 58px;
    border-radius:16px;
    display:grid;
    place-items:center;
    background:
        linear-gradient(
            135deg,
            #2d7af8,
            #2364dc
        );
    color:#fff;
    font-size:21px;
    font-weight:800;
    box-shadow:
        0 8px 18px
        rgba(38,113,245,.16);
}

.profile-name-row{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
}

.profile-name-row h2{
    margin:0;
    font-size:19px;
}

.profile-summary-left p{
    margin:4px 0 7px;
    color:#78859a;
    font-size:10px;
}

.profile-admin-badge,
.profile-premium-badge{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:4px 7px;
    border-radius:20px;
    font-size:8px;
    font-weight:700;
}

.profile-admin-badge{
    background:#eef4ff;
    color:#2665ce;
}

.profile-premium-badge{
    background:#fff4d8;
    color:#a16d00;
}

.profile-meta{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.profile-meta span{
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:#8793a7;
    font-size:8px;
}

.profile-meta span:first-child i{
    color:#19a158;
}


/* MAIN */

.profile-main-grid{
    align-items:start;
}

.profile-form{
    display:grid;
    gap:14px;
}

.profile-info-note{
    display:flex;
    gap:10px;
    padding:12px;
    border-radius:9px;
    background:#f4f8ff;
}

.profile-info-note > div:first-child{
    color:#2671f5;
}

.profile-info-note strong{
    display:block;
    font-size:10px;
}

.profile-info-note p{
    margin:4px 0 0;
    color:#77849a;
    font-size:9px;
    line-height:1.55;
}


/* PASSWORD */

.password-input-wrap{
    position:relative;
}

.password-input-wrap input{
    padding-right:42px;
}

.password-input-wrap button{
    position:absolute;
    right:5px;
    top:50%;
    transform:translateY(-50%);
    width:32px;
    height:32px;
    border:0;
    background:transparent;
    color:#7b879a;
    display:grid;
    place-items:center;
    border-radius:7px;
    cursor:pointer;
}

.password-input-wrap button:hover{
    background:#f1f5fb;
    color:#2671f5;
}

.profile-security-note{
    display:flex;
    gap:10px;
    padding:12px;
    border-radius:9px;
    background:#f7fafc;
    border:1px solid #e7ecf3;
}

.profile-security-icon{
    width:34px;
    height:34px;
    flex:0 0 34px;
    border-radius:9px;
    display:grid;
    place-items:center;
    background:#eaf2ff;
    color:#2671f5;
}

.profile-security-note strong{
    display:block;
    font-size:10px;
}

.profile-security-note p{
    margin:4px 0 0;
    color:#78859a;
    font-size:9px;
    line-height:1.5;
}


/* SECURITY CARD */

.profile-security-card{
    margin-top:12px;
}

.profile-security-grid{
    display:grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap:10px;
}

.profile-security-grid > div{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    border:1px solid #e5eaf2;
    border-radius:10px;
    background:#fbfcfe;
}

.profile-security-item-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:10px;
    display:grid;
    place-items:center;
}

.profile-security-grid strong{
    display:block;
    font-size:10px;
}

.profile-security-grid span{
    display:block;
    margin-top:3px;
    color:#8793a6;
    font-size:8px;
    line-height:1.4;
}

.profile-account-type{
    font-size:15px !important;
}


/* RESPONSIVE */

@media(max-width:1000px){

    .profile-security-grid{
        grid-template-columns:
            repeat(2,1fr);
    }

}

@media(max-width:650px){

    .profile-summary-left{
        align-items:flex-start;
    }

    .profile-security-grid{
        grid-template-columns:1fr;
    }

}

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

.admin-overview-grid{
    margin-top:12px;
}

.admin-mini-card{
    display:flex;
    align-items:center;
    gap:12px;
}

.admin-mini-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:grid;
    place-items:center;
    border-radius:11px;
}

.admin-mini-card span{
    display:block;
    color:#8290a4;
    font-size:9px;
    margin-bottom:4px;
}

.admin-mini-card strong{
    font-size:16px;
}


/* USERS CARD */

.admin-users-card{
    margin-top:12px;
}

.admin-users-table{
    min-width:1000px;
}


/* USER CELL */

.admin-user-cell{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:190px;
}

.admin-user-avatar{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:10px;
    display:grid;
    place-items:center;
    background:#edf4ff;
    color:#2671f5;
    font-size:12px;
    font-weight:800;
}

.admin-user-cell strong{
    display:block;
    font-size:10px;
}

.admin-user-cell small{
    display:block;
    margin-top:3px;
    color:#8994a7;
    font-size:8px;
}

.admin-role-badge{
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin-top:5px;
    padding:3px 6px;
    border-radius:20px;
    background:#eef4ff;
    color:#2664ce;
    font-size:7px;
    font-weight:700;
}


/* PLAN */

.admin-plan-badge{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:5px 8px;
    border-radius:20px;
    font-size:8px;
    font-weight:700;
    white-space:nowrap;
}

.admin-plan-premium{
    background:#fff4d8;
    color:#a16d00;
}

.admin-plan-free{
    background:#f2f4f8;
    color:#6f7c90;
}

.admin-plan-admin{
    background:#eef4ff;
    color:#2664ce;
}


/* STATUS */

.admin-status-badge{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:5px 8px;
    border-radius:20px;
    font-size:8px;
    font-weight:700;
    white-space:nowrap;
}

.admin-status-badge.active{
    background:#eaf9ef;
    color:#168e4e;
}

.admin-status-badge.disabled{
    background:#fff0f2;
    color:#d33f54;
}


/* ACTIONS */

.admin-action-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    min-width:240px;
}

.admin-action-buttons form{
    margin:0;
}

.admin-action-btn{
    min-height:30px;
    border:0;
    border-radius:7px;
    padding:0 9px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    cursor:pointer;
    font-family:inherit;
    font-size:8px;
    font-weight:700;
    transition:.18s ease;
}

.admin-action-btn:hover{
    transform:translateY(-1px);
}

.admin-action-btn.premium{
    background:#fff4d8;
    color:#9e6b00;
}

.admin-action-btn.premium:hover{
    background:#ffeab6;
}

.admin-action-btn.status{
    background:#eef4ff;
    color:#2664ce;
}

.admin-action-btn.status:hover{
    background:#e2edff;
}

.admin-action-btn.delete{
    background:#fff0f2;
    color:#d33f54;
}

.admin-action-btn.delete:hover{
    background:#ffe4e8;
}


/* CURRENT ADMIN */

.current-admin-label{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:6px 8px;
    border-radius:7px;
    background:#eef4ff;
    color:#2664ce;
    font-size:8px;
    font-weight:700;
}


/* WARNING */

.admin-warning-card{
    margin-top:12px;
    display:flex;
    gap:11px;
    padding:14px;
    border:1px solid #f1dfb0;
    border-radius:11px;
    background:#fffaf0;
}

.admin-warning-card > div:first-child{
    color:#c98700;
    font-size:16px;
}

.admin-warning-card strong{
    display:block;
    font-size:10px;
}

.admin-warning-card p{
    margin:4px 0 0;
    color:#7d8798;
    font-size:9px;
    line-height:1.55;
}


/* EMPTY */

.admin-empty{
    min-height:220px;
}

.admin-empty-icon{
    width:50px;
    height:50px;
    border-radius:13px;
    display:grid;
    place-items:center;
    background:#edf4ff;
    color:#2671f5;
    font-size:18px;
    margin-bottom:9px;
}

/* =========================================================
   TRANSACTIONS
========================================================= */

.transactions-main-grid{
    align-items:start;
}

.transaction-form-actions{
    display:flex;
    flex-direction:row;
    gap:8px;
}

.transaction-filter-actions{
    align-self:end;
}

.transactions-list-card{
    margin-top:12px;
}

.transaction-type{
    display:inline-flex;
    padding:4px 7px;
    border-radius:20px;
    font-size:8px;
    font-weight:700;
}

.transaction-income{
    background:#eaf9ef;
    color:#168e4e;
}

.transaction-expense{
    background:#fff0f2;
    color:#d43e53;
}

.transaction-row-actions{
    display:flex;
    align-items:center;
    gap:6px;
    white-space:nowrap;
}

.transaction-row-actions form{
    margin:0;
}

.transaction-edit-btn{
    min-height:30px;
    padding:0 9px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    border-radius:7px;
    background:#eef4ff;
    color:#2665ce;
    font-size:8px;
    font-weight:700;
    transition:.18s ease;
}

.transaction-edit-btn:hover{
    background:#2671f5;
    color:#fff;
}

.transaction-delete-btn{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:7px;
    border:1px solid #f0dbe0;
    background:#fff;
    color:#d64257;
    cursor:pointer;
}

.transaction-delete-btn:hover{
    background:#fff1f3;
}

/* =========================================================
   UPLOAD HISTORY ACTIONS
========================================================= */

.upload-history-actions{
    display:flex;
    align-items:center;
    gap:6px;
    white-space:nowrap;
}

.upload-history-actions form{
    margin:0;
}

.upload-analyze-btn{
    min-height:30px;
    padding:0 9px;
    border:0;
    border-radius:7px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    background:#eef4ff;
    color:#2665ce;
    font-family:inherit;
    font-size:8px;
    font-weight:700;
    cursor:pointer;
    transition:.18s ease;
}

.upload-analyze-btn:hover{
    background:#2671f5;
    color:#fff;
}

.upload-delete-btn{
    width:30px;
    height:30px;
    border:1px solid #f0dbe0;
    border-radius:7px;
    display:grid;
    place-items:center;
    background:#fff;
    color:#d64257;
    cursor:pointer;
    transition:.18s ease;
}

.upload-delete-btn:hover{
    background:#fff0f2;
    border-color:#efcbd2;
}

.upload-analysis-unavailable{
    min-height:30px;
    padding:0 9px;
    border-radius:7px;
    display:inline-flex;
    align-items:center;
    gap:5px;
    background:#f3f5f8;
    color:#9aa4b4;
    font-size:8px;
    font-weight:700;
    cursor:not-allowed;
}

/* =========================================================
   RECEIPT SCANNER
========================================================= */

.receipt-main-grid{
    align-items:start;
}

.receipt-upload-form{
    display:grid;
    gap:14px;
}

.receipt-dropzone{
    min-height:240px;
    border:2px dashed #c8d5e8;
    border-radius:13px;
    background:#f9fbff;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:25px;
    transition:.18s ease;
}

.receipt-dropzone:hover{
    background:#f2f7ff;
    border-color:#8db2ef;
}

.receipt-dropzone input{
    display:none;
}

.receipt-upload-icon{
    width:58px;
    height:58px;
    border-radius:15px;
    display:grid;
    place-items:center;
    background:#eaf2ff;
    color:#2671f5;
    font-size:22px;
    margin-bottom:12px;
}

.receipt-dropzone strong{
    font-size:12px;
}

.receipt-dropzone p{
    margin:6px 0;
    font-size:9px;
    color:#748197;
}

.receipt-dropzone small{
    color:#9aa4b4;
    font-size:8px;
}


/* REVIEW */

.receipt-review-card{
    margin-bottom:12px;
}

.receipt-review-grid{
    display:grid;
    grid-template-columns:minmax(260px,.8fr) 1.2fr;
    gap:18px;
}

.receipt-preview{
    min-height:430px;
    border:1px solid #e1e7f0;
    border-radius:12px;
    background:#f8fafc;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.receipt-preview img{
    display:block;
    max-width:100%;
    max-height:620px;
    object-fit:contain;
}

.receipt-pdf-preview{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    color:#69778c;
}

.receipt-pdf-preview > i{
    font-size:48px;
    color:#d54155;
}

.receipt-review-form{
    display:grid;
    gap:12px;
}

.receipt-detected-note{
    display:flex;
    align-items:flex-start;
    gap:8px;
    padding:11px;
    border-radius:9px;
    background:#fff8e8;
    color:#806719;
}

.receipt-detected-note p{
    margin:0;
    font-size:9px;
    line-height:1.55;
}

.receipt-ocr-details{
    margin-top:15px;
    border-top:1px solid #e7ecf3;
    padding-top:12px;
}

.receipt-ocr-details summary{
    cursor:pointer;
    font-size:10px;
    font-weight:700;
}

.receipt-ocr-details pre{
    white-space:pre-wrap;
    max-height:300px;
    overflow:auto;
    background:#f8fafc;
    border:1px solid #e5eaf2;
    border-radius:9px;
    padding:12px;
    font-size:9px;
}


/* HISTORY */

.receipt-history-card{
    margin-top:12px;
}

.receipt-status{
    display:inline-flex;
    align-items:center;
    gap:5px;
    border-radius:20px;
    padding:5px 8px;
    font-size:8px;
    font-weight:700;
}

.receipt-status.processed{
    background:#eaf9ef;
    color:#168e4e;
}

.receipt-status.review{
    background:#fff5df;
    color:#9c6c00;
}

.receipt-actions{
    display:flex;
    gap:6px;
    align-items:center;
    flex-wrap:wrap;
}

.receipt-actions form{
    margin:0;
    display:flex;
    align-items:center;
    gap:5px;
}

.receipt-view-btn,
.receipt-edit-btn{
    min-height:30px;
    padding:0 9px;
    border-radius:7px;
    display:inline-flex;
    align-items:center;
    gap:5px;
    font-size:8px;
    font-weight:700;
}

.receipt-view-btn{
    background:#eef4ff;
    color:#2665ce;
}

.receipt-edit-btn{
    background:#f3f5f8;
    color:#5f6e83;
}

.receipt-delete-btn{
    width:30px;
    height:30px;
    border:1px solid #f0dbe0;
    border-radius:7px;
    display:grid;
    place-items:center;
    background:#fff;
    color:#d64257;
    cursor:pointer;
}

.receipt-delete-btn:hover{
    background:#fff0f2;
}

.delete-transaction-check{
    display:flex;
    align-items:center;
    gap:4px;
    font-size:7px;
    color:#7c889a;
}

.delete-transaction-check input{
    width:auto;
}


@media(max-width:850px){

    .receipt-review-grid{
        grid-template-columns:1fr;
    }

    .receipt-preview{
        min-height:280px;
    }

}