:root{
    --ecred-primary:#D90429;
    --ecred-primary-dark:#9D0208;
    --ecred-primary-soft:#FFE5EA;
    --ecred-ink:#1F0D12;
    --ecred-body:#FFF7F8;
    --ecred-line:rgba(31,13,18,.08);
    --ecred-card:#ffffff;
    --ecred-shadow:0 18px 45px rgba(31,13,18,.10);
    --ecred-radius:22px;
}

body.ecred-auth-body,
body.ecred-dashboard-body{
    background:var(--ecred-body);
    color:#5f5658;
}

.ecred-auth-body{
    min-height:100vh;
}

.ecred-auth-shell{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    min-height:100vh;
}

.ecred-auth-visual{
    position:relative;
    overflow:hidden;
    background:
    linear-gradient(135deg, rgba(31,13,18,.78), rgba(157,2,8,.86)),
    url('/img/business-bank.jpg') center/cover no-repeat;
}

.ecred-auth-overlay{
    position:absolute;
    inset:0;
    background:radial-gradient(circle at top right, rgba(255,143,163,.2), transparent 25%);
}

.ecred-auth-content{
    position:relative;
    z-index:2;
    max-width:620px;
    padding:4rem 3.6rem;
    color:#fff;
}

.ecred-auth-brand img{
    height:56px;
    width:auto;
    margin-bottom:3.5rem;
}

.ecred-auth-eyebrow,
.ecred-dashboard-kicker{
    display:inline-block;
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:#ff8fa3;
}

.ecred-auth-content h1{
    font-size:3.25rem;
    line-height:1.05;
    color:#fff;
    margin:1rem 0 1rem;
}

.ecred-auth-content p{
    color:rgba(255,255,255,.8);
    font-size:1.05rem;
    line-height:1.9;
}

.ecred-auth-stats{
    display:flex;
    flex-wrap:wrap;
    gap:1rem;
    margin-top:2rem;
}

.ecred-auth-stats div{
    padding:1rem 1.1rem;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    border-radius:18px;
    min-width:160px;
}

.ecred-auth-stats strong{
    display:block;
    color:#fff;
}

.ecred-auth-stats span{
    display:block;
    color:rgba(255,255,255,.7);
    font-size:.92rem;
    margin-top:.25rem;
}

.ecred-auth-panel{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:2rem 2.5rem;
}

.ecred-auth-lang{
    display:flex;
    justify-content:flex-end;
    margin-bottom:1.5rem;
}

.ecred-auth-form-wrap{
    max-width:560px;
    width:100%;
    margin:0 auto;
}

.ecred-auth-card{
    background:#fff;
    border:1px solid var(--ecred-line);
    box-shadow:var(--ecred-shadow);
    border-radius:28px;
    padding:2rem 2rem 1.75rem;
}

.ecred-auth-mini-brand img{
    height:48px;
    width:auto;
    margin-bottom:1rem;
}

.ecred-auth-heading h2{
    font-size:2rem;
    line-height:1.1;
    color:var(--ecred-ink);
    margin-bottom:.5rem;
}

.ecred-auth-heading p{
    color:#64727a;
    margin-bottom:1.5rem;
}

.ecred-auth-form-group{
    margin-bottom:1rem;
}

.ecred-auth-form-group label{
    display:block;
    font-weight:600;
    color:var(--ecred-ink);
    margin-bottom:.45rem;
}

.ecred-auth-input{
    min-height:54px;
    border-radius:16px!important;
    border:1px solid rgba(31,13,18,.12)!important;
    box-shadow:none!important;
    background:#fffafb!important;
}

.ecred-auth-row{
    display:flex;
    justify-content:space-between;
    gap:1rem;
    align-items:center;
    margin:1rem 0 1.35rem;
    font-size:.95rem;
}

.ecred-auth-submit{
    min-height:54px;
    border-radius:16px!important;
    background:linear-gradient(135deg,var(--ecred-primary),#EF233C)!important;
    border:0!important;
    box-shadow:0 18px 35px rgba(217,4,41,.25);
    font-weight:700;
}

.ecred-auth-footer{
    margin-top:1.2rem;
    font-size:.95rem;
    color:#64727a;
}

.ecred-auth-footer a,
.ecred-inline-link{
    color:var(--ecred-primary-dark);
    font-weight:700;
}

.ecred-dashboard-shell{
    display:grid;
    grid-template-columns:310px 1fr;
    min-height:100vh;
}

.ecred-dashboard-sidebar{
    background:linear-gradient(180deg,#1f0d12,#2b0a0f);
    padding:1.5rem 1.15rem;
    position:sticky;
    top:0;
    height:100vh;
    overflow:auto;
}

.ecred-sidebar-brand{
    text-align:center;
    margin-bottom:1.4rem;
}

.ecred-sidebar-brand img{
    max-width:170px;
    width:100%;
    height:auto;
}

.ecred-sidebar-balance{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    padding:1rem 1rem;
    color:#fff;
    margin-bottom:1.2rem;
}

.ecred-sidebar-balance span,
.ecred-sidebar-balance small{
    display:block;
    color:rgba(255,255,255,.7);
}

.ecred-sidebar-balance strong{
    display:block;
    font-size:1.5rem;
    margin:.4rem 0;
}

.ecred-side-nav .side-menu{
    border-radius:16px;
    margin-bottom:.45rem;
    padding:.95rem 1rem;
    background:transparent;
    color:rgba(255,255,255,.82);
}

.ecred-side-nav .side-menu__icon,
.ecred-side-nav .side-menu__title{
    color:inherit;
}

.ecred-side-nav .side-menu:hover,
.ecred-side-nav .side-menu.side-menu--active{
    background:linear-gradient(135deg,var(--ecred-primary),#EF233C);
    color:#ffffff!important;
    box-shadow:0 15px 25px rgba(217,4,41,.22);
}

.ecred-side-nav .side-menu:hover *,
.ecred-side-nav .side-menu.side-menu--active *{
    color:#ffffff!important;
}

.ecred-side-nav .side-menu:hover svg,
.ecred-side-nav .side-menu.side-menu--active svg,
.ecred-side-nav .side-menu:hover i,
.ecred-side-nav .side-menu.side-menu--active i{
    color:#ffffff!important;
    stroke:#ffffff!important;
}

.ecred-side-nav .side-menu:hover .side-menu__icon,
.ecred-side-nav .side-menu.side-menu--active .side-menu__icon,
.ecred-side-nav .side-menu:hover .side-menu__title,
.ecred-side-nav .side-menu.side-menu--active .side-menu__title{
    color:#ffffff!important;
}

.ecred-dashboard-main{
    padding:1.5rem;
}

.ecred-dashboard-topbar{
    display:flex;
    justify-content:space-between;
    gap:1rem;
    align-items:center;
    background:#fff;
    border:1px solid var(--ecred-line);
    border-radius:24px;
    padding:1.2rem 1.4rem;
    box-shadow:var(--ecred-shadow);
    margin-bottom:1.25rem;
}

.ecred-dashboard-topbar h1{
    font-size:1.8rem;
    color:var(--ecred-ink);
    margin:0;
}

.ecred-dashboard-topbar-right{
    display:flex;
    align-items:center;
    gap:.85rem;
}

.ecred-lang-btn{
    display:flex;
    align-items:center;
    padding:.85rem 1rem;
    border-radius:14px;
    background:#fff7f8;
    border:1px solid var(--ecred-line);
    font-weight:600;
}

.ecred-user-pill{
    display:flex;
    align-items:center;
    gap:.8rem;
    background:#fff7f8;
    border:1px solid var(--ecred-line);
    border-radius:16px;
    padding:.55rem .8rem;
    min-width:220px;
}

.ecred-user-pill img{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
}

.ecred-user-pill strong{
    display:block;
    color:var(--ecred-ink);
}

.ecred-user-pill span{
    display:block;
    font-size:.85rem;
    color:#708087;
}

.ecred-dashboard-content .box,
.ecred-panel,
.ecred-welcome-card,
.ecred-stat-card,
.ecred-account-card,
.ecred-contact-card,
.ecred-timeline-card{
    background:#fff;
    border:1px solid var(--ecred-line);
    border-radius:22px;
    box-shadow:var(--ecred-shadow);
}

.ecred-welcome-card{
    display:flex;
    justify-content:space-between;
    gap:1rem;
    align-items:center;
    padding:1.6rem 1.6rem;
    background:linear-gradient(135deg,#1f0d12,#5c0713 65%, #D90429);
    color:#fff;
}

.ecred-welcome-card h2,
.ecred-welcome-card p{
    color:#fff;
}

.ecred-welcome-actions{
    display:flex;
    gap:.8rem;
    flex-wrap:wrap;
}

.ecred-welcome-actions .btn{
    border-radius:14px;
}

.ecred-stat-card{
    padding:1.35rem 1.4rem;
}

.ecred-stat-card span,
.ecred-stat-card small{
    display:block;
    color:#708087;
}

.ecred-stat-card strong{
    display:block;
    font-size:2rem;
    color:var(--ecred-ink);
    margin:.35rem 0;
}

.ecred-stat-primary{
    background:linear-gradient(135deg,var(--ecred-primary),#EF233C);
    border:0;
}

.ecred-stat-primary span,
.ecred-stat-primary strong,
.ecred-stat-primary small{
    color:#fff;
}

.ecred-panel{
    padding:1.3rem 1.3rem;
}

.ecred-panel-head{
    display:flex;
    justify-content:space-between;
    gap:1rem;
    align-items:center;
    margin-bottom:1rem;
}

.ecred-panel-head h3{
    margin:0;
    color:var(--ecred-ink);
    font-size:1.1rem;
}

.ecred-panel-head a{
    color:var(--ecred-primary-dark);
    font-weight:700;
}

.ecred-account-card{
    display:flex;
    gap:1rem;
    padding:1.2rem;
    height:100%;
}

.ecred-account-photo img{
    width:96px;
    height:96px;
    border-radius:18px;
    object-fit:cover;
}

.ecred-account-card h4{
    margin-bottom:.8rem;
    color:var(--ecred-ink);
}

.ecred-account-card p,
.ecred-contact-card p{
    margin-bottom:.7rem;
}

.ecred-contact-card{
    padding:1.2rem;
    height:100%;
}

.ecred-contact-card i{
    width:18px;
    height:18px;
    display:inline-block;
    color:var(--ecred-primary);
    margin-right:.5rem;
}

.ecred-contact-card span{
    font-weight:700;
    color:var(--ecred-ink);
}

.ecred-table thead th{
    background:#fff0f2;
    color:var(--ecred-ink);
    border-bottom:1px solid var(--ecred-line);
}

.ecred-table tbody td{
    border-bottom:1px solid rgba(31,13,18,.06);
}

.ecred-timeline{
    display:flex;
    flex-direction:column;
    gap:1rem;
}

.ecred-timeline-item{
    display:flex;
    gap:.85rem;
    align-items:flex-start;
}

.ecred-timeline-icon{
    width:42px;
    height:42px;
    border-radius:14px;
    background:var(--ecred-primary-soft);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--ecred-primary);
}

.ecred-timeline-card{
    padding:1rem;
    flex:1;
}

.ecred-timeline-head{
    display:flex;
    justify-content:space-between;
    gap:.8rem;
    align-items:flex-start;
    margin-bottom:.45rem;
}

.ecred-timeline-head strong{
    color:var(--ecred-ink);
}

.ecred-timeline-head span{
    font-size:.82rem;
    color:#7a8b92;
}

.ecred-mobile-menu .mobile-menu-bar{
    background:linear-gradient(135deg,#1f0d12,#D90429);
}

.ecred-mobile-menu ul{
    background:#1f0d12!important;
}

.ecred-mobile-menu .menu--active{
    background:rgba(255,255,255,.08)!important;
    border-radius:14px;
}

.ecred-dashboard-content .alert.alert-primary{
    background:#FFE5EA;
    border:1px solid rgba(217,4,41,.18);
    color:#1f0d12;
    border-radius:18px;
}

.ecred-dashboard-content .btn-primary,
.ecred-dashboard-content .bg-primary,
.ecred-dashboard-content .btn.btn-primary{
    background:linear-gradient(135deg,var(--ecred-primary),#EF233C)!important;
    border-color:transparent!important;
}

.ecred-dashboard-content .btn-success-soft,
.ecred-dashboard-content .btn-primary,
.ecred-dashboard-content .btn-danger,
.ecred-dashboard-content .btn-outline-secondary{
    border-radius:14px!important;
}

.ecred-dashboard-content .form-control,
.ecred-dashboard-content .tom-select,
.ecred-dashboard-content .ts-control,
.ecred-dashboard-content textarea,
.ecred-dashboard-content select{
    border-radius:14px!important;
    border-color:rgba(31,13,18,.12)!important;
    background:#fffafb!important;
}

.ecred-dashboard-content .table-report tr.intro-x td{
    background:#fff;
    border-bottom:1px solid rgba(31,13,18,.06);
}

.ecred-dashboard-content .pagination .page-link{
    border-radius:12px;
    margin-right:.3rem;
}

@media (max-width:1199px){
    .ecred-auth-shell{
        grid-template-columns:1fr;
    }

    .ecred-auth-visual{
        min-height:420px;
    }

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

    .ecred-dashboard-sidebar{
        display:none;
    }
}

@media (max-width:767px){
    .ecred-auth-content{
        padding:2.4rem 1.4rem;
    }

    .ecred-auth-content h1{
        font-size:2.3rem;
    }

    .ecred-auth-panel{
        padding:1rem;
    }

    .ecred-auth-card{
        padding:1.35rem;
    }

    .ecred-auth-row,
    .ecred-welcome-card,
    .ecred-dashboard-topbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .ecred-user-pill{
        min-width:unset;
        width:100%;
    }

    .ecred-dashboard-main{
        padding:1rem;
    }
}