/* =========================================
   CATUANG PREMIUM UI SYSTEM
========================================= */

:root {
    --bg: #f5f7fb;
    --white: #ffffff;
    --dark: #111827;
    --text: #374151;
    --muted: #6b7280;
    --border: #e5e7eb;

    --primary: #2563eb;
    --primary-soft: #dbeafe;

    --success: #16a34a;
    --success-soft: #dcfce7;

    --danger: #dc2626;
    --danger-soft: #fee2e2;

    --warning: #f59e0b;
    --warning-soft: #fef3c7;

    --purple: #7c3aed;
    --purple-soft: #ede9fe;

    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 14px 35px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.10);

    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;

    --sidebar-width: 290px;
}

/* RESET */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
  font-family: "Montserrat", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* =========================================
   APP LAYOUT
========================================= */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}
/* =========================================
DESKTOP PREMIUM SIDEBAR
========================================= */

.sidebar-wrapper{
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    height: 100vh;
    background: linear-gradient(
        180deg,
        #0f172a 0%,
        #111827 50%,
        #020617 100%
    );
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    z-index: 999;
    box-shadow:
        0 0 30px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

/* =========================================
TOP AREA
========================================= */

.sidebar-wrapper > div:first-child{
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 95px);
    padding-bottom: 30px;
}

/* SCROLLBAR */

.sidebar-wrapper > div:first-child::-webkit-scrollbar{
    width: 5px;
}

.sidebar-wrapper > div:first-child::-webkit-scrollbar-track{
    background: transparent;
}

.sidebar-wrapper > div:first-child::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
}

/* =========================================
BRAND
========================================= */

.brand-top{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 22px;
}

.brand-logo{
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        #7c3aed,
        #06b6d4
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    box-shadow:
        0 10px 25px rgba(124,58,237,0.35);
}

.brand-name{
    color: white;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .4px;
}

.brand-sub{
    color: rgba(255,255,255,0.55);
    font-size: 13px;
}

/* =========================================
USER CARD
========================================= */

.user-mini-card{
    margin: 0 20px 24px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(12px);
}

.user-mini-avatar{
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        #8b5cf6,
        #3b82f6
    );
    color: white;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-mini-name{
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.user-mini-email{
    color: rgba(255,255,255,0.55);
    font-size: 12px;
}

/* =========================================
LABEL
========================================= */

.menu-label{
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0 24px;
    margin-bottom: 14px;
}

/* =========================================
MENU
========================================= */

.sidebar-menu{
    padding: 0 14px;
}

.menu-item{
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 18px;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    transition: .3s ease;
    overflow: hidden;
}

.menu-item i{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    font-size: 18px;
    transition: .3s ease;
}

/* HOVER */

.menu-item:hover{
    background: rgba(255,255,255,0.05);
    color: white;
    transform: translateX(5px);
}

.menu-item:hover i{
    background: linear-gradient(
        135deg,
        #7c3aed,
        #06b6d4
    );
    color: white;
    box-shadow: 0 8px 18px rgba(124,58,237,0.3);
}

/* ACTIVE */

.menu-item.active{
    background: linear-gradient(
        135deg,
        rgba(124,58,237,0.22),
        rgba(6,182,212,0.18)
    );
    color: white;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 10px 30px rgba(124,58,237,0.18);
}

.menu-item.active i{
    background: linear-gradient(
        135deg,
        #7c3aed,
        #06b6d4
    );
    color: white;
}

/* =========================================
LOGOUT FIXED
========================================= */

.sidebar-footer{
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
}

.logout-item{
    background: rgba(239,68,68,0.12);
    color: #f87171 !important;
}

.logout-item i{
    background: rgba(239,68,68,0.2);
    color: #f87171;
}

.logout-item:hover{
    background: rgba(239,68,68,0.18);
}

/* =========================================
CONTENT SPACE
========================================= */

.main-content{
    margin-left: 290px;
    min-height: 100vh;
    background: #f8fafc;
}

/* =========================================
HIDE DESKTOP SIDEBAR ON MOBILE
========================================= */

@media(max-width:768px){

    .sidebar-wrapper{
        display: none;
    }

    .main-content{
        margin-left: 0;
        padding-bottom: 90px;
    }

}
/* =========================================
   MAIN CONTENT
========================================= */
.main-content {
    flex: 1;
    padding: 34px;
    overflow-x: hidden;
}

.page-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 6px;
    letter-spacing: -.4px;
}

.page-subtitle {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

/* =========================================
   HERO
========================================= */
.dashboard-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.dashboard-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-mini-summary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-summary-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 22px;
    padding: 18px 20px;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.hero-summary-card span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 6px;
}

.hero-summary-card strong {
    font-size: 20px;
    color: #111827;
    font-weight: 800;
}

/* =========================================
   CARDS
========================================= */
.table-card,
.form-card,
.info-card {
    background: var(--white);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(229, 231, 235, 0.7);
}

.table-card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 18px;
}

/* =========================================
   STATS GRID
========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}

.stat-card {
    position: relative;
    border-radius: 28px;
    padding: 26px;
    min-height: 165px;
    color: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
     font-family: "Montserrat", sans-serif;
    transition: transform .25s ease, box-shadow .25s ease;
}


.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.14);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: -35px;
    right: -35px;
    width: 130px;
    height: 130px;
    background: rgba(255,255,255,.10);
    border-radius: 50%;
}

.stat-card::after {
    content: "";
    position: absolute;
    bottom: -40px;
    right: 20px;
    width: 95px;
    height: 95px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}

.stat-card.income {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.stat-card.expense {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.stat-card.savings {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.stat-card.debt {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    opacity: .95;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    word-break: break-word;
}

/* =========================================
   TABLE
========================================= */
.custom-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.custom-table thead th {
    border: none !important;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 0 16px 10px;
    background: transparent !important;
}

.custom-table tbody tr {
    background: #f9fafb;
    border-radius: 18px;
    transition: all .2s ease;
}

.custom-table tbody tr:hover {
    background: #f3f4f6;
    transform: scale(1.003);
}

.custom-table tbody td {
    border: none !important;
    padding: 16px;
    vertical-align: middle;
    color: #1f2937;
    font-size: 14px;
}

.custom-table tbody tr td:first-child {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.custom-table tbody tr td:last-child {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

/* =========================================
   BADGES
========================================= */
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-soft.success {
    background: var(--success-soft);
    color: var(--success);
}

.badge-soft.danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge-soft.warning {
    background: var(--warning-soft);
    color: #b45309;
}

.badge-soft.primary {
    background: var(--primary-soft);
    color: var(--primary);
}

/* =========================================
   SUMMARY + TASKS
========================================= */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 15px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: var(--dark);
    font-size: 15px;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f7;
}

.task-item:last-child {
    border-bottom: none;
}

.task-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.task-meta {
    font-size: 13px;
    color: var(--muted);
}

/* =========================================
   PROGRESS
========================================= */
.progress-box {
    margin-bottom: 26px;
}

.progress-label {
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 10px;
}

.premium-progress {
    width: 100%;
    height: 16px;
    background: #eef2ff;
    border-radius: 999px;
    overflow: hidden;
}

.premium-progress div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transition: width .4s ease;
}

.premium-progress.warning div {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.premium-progress.success div {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

/* =========================================
   FORM
========================================= */
.form-label {
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 52px;
    border-radius: 18px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    padding: 12px 16px !important;
    box-shadow: none !important;
    font-size: 14px;
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08) !important;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 12px 22px !important;
    transition: all .2s ease !important;
    box-shadow: none !important;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    border: none !important;
}

.btn-dark {
    background: linear-gradient(135deg, #111827, #1f2937) !important;
    border: none !important;
}

.btn-light {
    background: #f3f4f6 !important;
    border: none !important;
    color: #111827 !important;
}

.btn-outline-dark {
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    background: #fff !important;
}

.btn-danger {
    border: none !important;
}

/* =========================================
   ACTION LINKS
========================================= */
.action-link {
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-link:hover {
    opacity: .8;
}

/* =========================================
   ALERT
========================================= */
.alert {
    border: none !important;
    border-radius: 20px !important;
    padding: 16px 18px !important;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
}

.alert-danger {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

.alert-warning {
    background: #fff7ed !important;
    color: #9a3412 !important;
}

/* =========================================
   EMPTY STATE
========================================= */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 42px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.empty-state h5 {
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.empty-state p {
    color: #6b7280;
    margin: 0;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-wrapper {
        width: 250px;
    }
}


@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .table-card,
    .form-card,
    .info-card {
        padding: 20px;
        border-radius: 24px;
    }

    .stat-card {
        min-height: 145px;
    }

    .stat-value {
        font-size: 24px;
    }

    .custom-table thead {
        display: none;
    }

    .custom-table tbody tr {
        display: block;
        margin-bottom: 14px;
        padding: 10px 0;
    }

    .custom-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 12px 16px;
        border-radius: 0 !important;
    }

    .custom-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted);
        font-size: 12px;
        text-transform: uppercase;
        flex-shrink: 0;
    }

    .dashboard-hero {
        padding: 22px;
        border-radius: 24px;
    }

    .hero-summary-card {
        width: 100%;
        min-width: auto;
    }
}

/* =========================================
   USER PROFILE
========================================= */
.user-profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.25);
}

/* =========================
   PREMIUM FORM PAGE
========================= */
.form-premium-card{
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.premium-input{
    border-radius: 18px !important;
    border: 1px solid #e5e7eb !important;
    padding: 14px 16px !important;
    min-height: 52px;
    background: #fff;
    box-shadow: none !important;
    transition: all .25s ease;
}

.premium-input:focus{
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99,102,241,.12) !important;
    transform: translateY(-1px);
}

.form-label{
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.alert{
    border: none;
    border-radius: 20px !important;
    padding: 16px 20px;
    font-weight: 500;
}

.btn-primary{
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    box-shadow: 0 12px 25px rgba(79,70,229,.18);
}

.btn-primary:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(79,70,229,.25);
}

@media (max-width: 768px){
    .form-premium-card{
        padding: 20px;
        border-radius: 22px;
    }
}

/* =========================
   PREMIUM MODAL CRUD
========================= */
.premium-modal .modal-dialog{
    max-width: 860px;
}

.premium-modal-content{
    border: none;
    border-radius: 28px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.premium-modal .modal-header{
    padding: 28px 28px 0 28px;
}

.premium-modal .modal-body{
    padding: 24px 28px 28px 28px;
}

.premium-modal .modal-title{
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.premium-modal .text-muted.small{
    font-size: 0.92rem;
}

.btn-close{
    background-size: 14px;
    opacity: .7;
}

.btn-close:hover{
    opacity: 1;
}

.delete-icon{
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(239,68,68,.15), rgba(220,38,38,.08));
    color: #dc2626;
    font-size: 2rem;
    box-shadow: inset 0 0 0 1px rgba(220,38,38,.08);
}

.modal-backdrop.show{
    opacity: .45;
    backdrop-filter: blur(4px);
}

/* action buttons table */
.custom-table .btn-sm{
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    transition: all .25s ease;
}

.custom-table .btn-sm:hover{
    transform: translateY(-2px);
}

.custom-table .btn-light{
    background: #f8fafc;
    color: #334155;
    box-shadow: 0 6px 14px rgba(15,23,42,.06);
}

.custom-table .btn-danger{
    box-shadow: 0 10px 18px rgba(220,38,38,.18);
}

@media (max-width: 768px){
    .premium-modal .modal-header{
        padding: 22px 18px 0 18px;
    }

    .premium-modal .modal-body{
        padding: 18px 18px 22px 18px;
    }

    .premium-modal-content{
        border-radius: 22px;
    }
}
/* =========================================
   AUTH PREMIUM UPGRADE
========================================= */

.auth-premium-body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.18), transparent 30%),
        radial-gradient(circle at top right, rgba(124,58,237,.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(56,189,248,.14), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #111827 45%, #1e293b 100%);
    overflow-x: hidden;
}

.auth-shell {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card-premium {
    width: 100%;
    max-width: 1450px;
    min-height: calc(100vh - 48px);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(18px);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,0.28);
}

.auth-showcase-panel {
    position: relative;
    padding: 56px;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.28), transparent 25%),
        radial-gradient(circle at bottom left, rgba(168,85,247,.18), transparent 30%),
        linear-gradient(145deg, rgba(15,23,42,.92), rgba(30,41,59,.88));
    color: #fff;
}

.auth-showcase-content {
    max-width: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    font-weight: 700;
    margin-bottom: 24px;
}

.auth-main-title {
    font-size: 54px;
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.auth-main-subtitle {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,.78);
    max-width: 580px;
    margin-bottom: 38px;
}

.auth-stat-row,
.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-stat-card,
.auth-feature-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 26px;
    padding: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.auth-stat-card h3 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.auth-stat-card p,
.auth-feature-box p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.7;
}

.auth-feature-box i {
    font-size: 26px;
    margin-bottom: 14px;
    display: inline-block;
}

.auth-feature-box h6 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.auth-form-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
    padding: 40px 26px;
}

.auth-form-card {
    width: 100%;
    max-width: 470px;
    background: #fff;
    border: 1px solid rgba(226,232,240,.85);
    border-radius: 30px;
    padding: 34px 30px;
    box-shadow: 0 24px 60px rgba(15,23,42,.10);
}

.app-logo-premium {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 18px 36px rgba(37,99,235,.26);
}

.input-premium {
    position: relative;
}

.input-premium i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 17px;
    z-index: 3;
    pointer-events: none;
    width: 20px;
    text-align: center;
}

.input-premium .form-control {
    height: 58px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding-left: 56px !important;
    padding-right: 16px;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    transition: all .25s ease;
    background: #f8fafc;
}

.input-premium .form-control:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.btn-premium-primary {
    height: 58px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 18px 34px rgba(37,99,235,.25);
    transition: all .25s ease;
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 22px 40px rgba(37,99,235,.30);
}

.auth-mini-note {
    color: #94a3b8;
    font-size: 13px;
}

/* =========================================
   GLOBAL PREMIUM TOUCH
========================================= */

.card,
.table,
.modal-content,
.form-control,
.form-select,
.btn {
    border-radius: 18px !important;
}

.card {
    border: 1px solid #edf2f7;
    box-shadow: 0 12px 35px rgba(15,23,42,.05);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none;
    box-shadow: 0 14px 28px rgba(37,99,235,.20);
}

.btn-primary:hover {
    transform: translateY(-1px);
    opacity: .98;
}

.form-control,
.form-select {
    min-height: 48px;
    border: 1px solid #e5e7eb;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.08) !important;
}

.table thead th {
    border: none;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.table tbody tr {
    border-color: #f1f5f9;
}

.table tbody tr:hover {
    background: #f8fbff;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {
    .auth-card-premium {
        min-height: auto;
    }

    .auth-form-panel {
        padding: 30px 18px;
    }

    .auth-form-card {
        padding: 28px 22px;
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .auth-shell {
        padding: 14px;
    }

    .auth-form-card {
        max-width: 100%;
    }

    .main-content {
        padding: 20px;
    }

    .page-title {
        font-size: 24px;
    }
}

/* =========================================================
   PREMIUM MODAL - SELF DEVELOPMENT
========================================================= */

.premium-modal {
    border: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(18px);
}

.premium-modal-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    border-radius: 24px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(37,99,235,.25);
}

.premium-modal-title {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    color: #0f172a;
    max-width: 100%;
    word-break: break-word;
}

.premium-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.premium-table tbody tr {
    transition: all 0.2s ease;
}

.premium-table tbody tr:hover {
    background: #f8fbff;
    transform: scale(1.002);
}

.premium-table td,
.premium-table th {
    padding: 16px 14px;
    vertical-align: middle;
    border-color: #eef2f7;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.badge-soft.primary {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.badge-soft.success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.badge-soft.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.badge-soft.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* =========================================
   MOBILE SIDEBAR (APP STYLE)
========================================= */

.mobile-toggle {
    display: none;
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 999;
    background: #111827;
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

/* overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

/* aktif */
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MOBILE MODE */
@media (max-width: 992px) {

    .mobile-toggle {
        display: block;
    }

/* ===================== */
/* GLOBAL FIX */
/* ===================== */
html, body {
    overflow-x: hidden; /* 🔥 wajib */
}

/* ===================== */
/* SIDEBAR BASE */
/* ===================== */
.sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0; /* 🔥 ubah dari -280px */
    transform: translateX(-100%); /* 🔥 ganti sistem geser */
    width: 260px;
    max-width: 100%;
    height: 100vh;
    background: #111;
    color: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s ease;

    overflow: hidden;
}

/* ACTIVE (MUNCUL) */
.sidebar-wrapper.active {
    transform: translateX(0); /* 🔥 muncul tanpa dorong layout */
}

/* ===================== */
/* AREA SCROLL */
/* ===================== */
.sidebar-wrapper > div:first-child {
    overflow-y: auto;
    overflow-x: hidden; /* 🔥 hilangkan scroll samping */
    max-height: 100vh;
    padding-bottom: 80px;
}

/* ===================== */
/* SCROLLBAR */
/* ===================== */
.sidebar-wrapper::-webkit-scrollbar {
    width: 4px;
}
.sidebar-wrapper::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

/* ===================== */
/* FOOTER */
/* ===================== */
.sidebar-footer {
    position: sticky;
    bottom: 0;
    background: #111;
    padding: 10px;
}

/* ===================== */
/* OVERLAY */
/* ===================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* ===================== */
/* MOBILE ONLY */
/* ===================== */
@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }

    .sidebar-wrapper {
        transform: translateX(0); /* 🔥 langsung tampil */
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* ===================== */
/* TAMBAHAN PENCEGAHAN */
/* ===================== */
.sidebar-wrapper * {
    max-width: 100%;
    box-sizing: border-box;
}




}
.chart-box {
    position: relative;
    height: 280px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(145deg,#ffffff,#f5f7fa);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.chart-box.horizontal {
    height: 350px;
}

.chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ===================== */
/* FIX MODAL MOBILE */
/* ===================== */
@media (max-width: 768px) {

    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        overflow-y: auto;
    }

    .modal-body::-webkit-scrollbar {
        width: 4px;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

}

.modal-footer,
.modal-body > div:last-child {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 10px;
}


.finance-3d-img {
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    transition: 0.4s ease;
}

.finance-3d-img:hover {
    transform: translateY(-10px) scale(1);
}

.bg-glow {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0,255,255,0.15), transparent);
    filter: blur(100px);
}

.premium-caption h3 {
    color: #fff;
    font-weight: 700;
}

.premium-caption p {
    color: rgba(255,255,255,0.7);
}

.copy-section {
    margin-top: 100px;
    text-align: center;
    color: white;
}

.copy-card {
    background: rgba(255,255,255,0.04);
    border-radius: 18px;
    padding: 30px 25px;
    transition: 0.3s ease;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
}

.copy-card i {
    font-size: 26px;
    margin-bottom: 12px;
    color: #38bdf8;
}

.copy-card h6 {
    font-weight: 600;
    margin-bottom: 8px;
}

.copy-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.copy-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.07);
}


.progress-wrapper {
    min-width: 180px;
}

.premium-progress {
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
}

.progress-bar {
    transition: width 1s ease-in-out;
}

.premium-progress .progress-bar {
    border-radius: 20px;
    transition: width 1s ease-in-out;
}

/* Glow effect */
.progress-bar.bg-success {
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.4);
}

.progress-bar.bg-warning {
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}

.progress-bar.bg-danger {
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
}

/* animasi awal */
.progress-animate {
    width: 0;
}

.progress-bar {
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 40px 40px;
    animation: moveStripes 2s linear infinite;
}



input.rupiah {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.history-item {
    border-radius: 12px;
 
}

.history-item:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

.history-action button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-action button:hover {
    transform: scale(1.1);
}

.modal-content {
    border-radius: 20px;
}

.fintech-modal {
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* Nominal jadi fokus utama */
.nominal-input {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-bottom: 2px solid #eee;
    border-radius: 0;
    background: transparent;
}

.nominal-input:focus {
    border-color: #4f46e5;
    box-shadow: none;
}

/* Input dengan icon */
.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 2;
}

/* PENTING: padding kiri harus cukup */
.input-icon input,
.input-icon select {
    padding-left: 45px !important;
    height: 48px;
    border-radius: 12px;
}

/* biar tidak tabrakan saat focus */
.input-icon input:focus,
.input-icon select:focus {
    z-index: 1;
}

.input-icon select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-position: right 12px center;
}

.input-icon:focus-within i {
    color: #4f46e5;
}
/* Efek focus */
.form-control:focus,
.form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* Button gradient fintech */
.btn-gradient {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 10px 20px;
}

.btn-gradient:hover {
    opacity: 0.9;
}

.history-scroll {
    max-height: 250px; /* bisa kamu ubah */
    overflow-y: auto;
    border-radius: 12px;
}

/* biar scroll lebih halus & premium */
.history-scroll::-webkit-scrollbar {
    width: 6px;
}

.history-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.nominal-input {
    font-size: 24px;
    font-weight: 600;
    text-align: left;
    border-radius: 12px;
}

/* CARD */

.wallet-card {
    position: relative;
    overflow: hidden;
}

.wallet-card::before,
.wallet-card::after {
    pointer-events: none;
}

/* warna beda tiap card */
.wallet-card:nth-child(1) { border-left: 4px solid #3b82f6; }
.wallet-card:nth-child(2) { border-left: 4px solid #10b981; }
.wallet-card:nth-child(3) { border-left: 4px solid #f59e0b; }
.wallet-card:nth-child(4) { border-left: 4px solid #ef4444; }

/* hover efek */
.wallet-card:hover {
    transform: translateY(-4px);
    transition: 0.2s;
}

/* action */
.wallet-actions {
    font-size: 13px;
    
}   

.wallet-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wallet-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.wallet-section:hover {
    transform: translateY(-2px);
}

/* HEADER */
.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LEFT */
.wallet-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(59,130,246,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #3b82f6;
}

.wallet-title {
    font-weight: 600;
}

/* RIGHT */
.wallet-balance {
    font-size: 18px;
    font-weight: bold;
}

/* ACTION */
.wallet-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 10;

}

/* GRID */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* CARD ATM STYLE */
.wallet-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    border-radius: 18px;
    padding: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.wallet-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* CHIP */
.wallet-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, gold, orange);
    border-radius: 6px;
    display: inline-block;
}

/* TOP */
.wallet-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* NUMBER */
.wallet-number {
    letter-spacing: 2px;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

/* NAME */
.wallet-name {
    font-size: 18px;
    font-weight: 600;
}

/* BALANCE */
.wallet-balance {
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
}

/* FOOTER */
.wallet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* DELETE BUTTON */
.wallet-card .btn-action.delete {
    background: rgba(255,255,255,0.1);
    color: #ff6b6b;
    border-radius: 8px;
    padding: 6px 10px;
}   

.goal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 20px;
}

.goal-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.goal-card:hover {
    transform: translateY(-5px);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goal-nominal {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.goal-info {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.premium-progress {
    height: 8px;
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
    margin: 10px 0;
}

.premium-progress div {
    height: 100%;
    background: linear-gradient(90deg,#4CAF50,#00C853);
    transition: 0.4s;
}

.goal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 20px;
}

.goal-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.goal-header {
    display: flex;
    justify-content: space-between;
}

.goal-nominal {
    font-size: 22px;
    font-weight: bold;
}

.premium-progress {
    height: 8px;
    background: #eee;
    border-radius: 20px;
    margin: 10px 0;
}

.premium-progress div {
    height: 100%;
    background: linear-gradient(90deg,#4CAF50,#00C853);
}
/* ================= HISTORY BANK STYLE ================= */

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.history-item:hover {
    transform: translateY(-2px);
}

.history-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.history-info {
    flex: 1;
    margin-left: 12px;
}

.history-nominal {
    font-weight: bold;
    color: #e53935;
}

/* EMPTY */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 10px;
}

.goal-card {
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg,#1e293b,#0f172a);
    color: #fff;
    position: relative;
}

.goal-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.goal-actions button,
.goal-actions a {
    background:none;
    border:none;
    color:#fff;
    margin-left:5px;
    cursor:pointer;
}

.goal-buttons {
    display:flex;
    gap:8px;
    margin-top:10px;
}

.goal-buttons button {
    flex:1;
    border:none;
    padding:8px;
    border-radius:10px;
    background:#334155;
    color:white;
    transition:0.3s;
}

.goal-buttons button:hover {
    background:#475569;
}

.history-box {
    max-height:300px;
    overflow:auto;
}

.history-item {
    display:flex;
    justify-content:space-between;
    padding:10px;
    border-bottom:1px solid #eee;
}

.history-item.setor { color:#22c55e; }
.history-item.tarik { color:#ef4444; }


.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 20px;
}

.tips-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: .3s;
}

.tips-card:hover {
    transform: translateY(-5px);
}

.tips-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tips-body {
    padding: 15px;
}

.tips-body h5 {
    font-weight: 600;
}

.tips-body p {
    font-size: 14px;
    color: #555;
}

.tips-action {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}



/* ==== PREMIUM TABLE CARD ==== */
.premium-table-card {
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    padding: 20px;
    border: 1px solid #f1f1f1;
}

/* ==== HEADER ==== */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-title {
    font-weight: 700;
    margin: 0;
}

/* ==== TABLE ==== */
.premium-table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.premium-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    border: none;
}

/* ==== ROW ==== */
.table-row {
    background: #fff;
    border-radius: 14px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.table-row td {
    vertical-align: middle;
    border: none;
    padding: 14px;
}

.table-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* ==== DATE BOX ==== */
.date-box {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 6px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.date-box small {
    display: block;
    font-size: 11px;
    color: #999;
}

/* ==== BADGE ==== */
.badge-modern {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-income {
    background: #e8fff5;
    color: #00a86b;
}

.badge-expense {
    background: #fff1f0;
    color: #ff4d4f;
}

/* ==== ACTION BUTTON ==== */
.action-group {
    display: flex;
    justify-content: end;
    gap: 8px;
}

.btn-action {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    text-decoration: none;
}

.btn-action.edit {
    background: #eef2ff;
    color: #4f46e5;
}

.btn-action.delete {
    background: #fff1f0;
    color: #ff4d4f;
}

.btn-action:hover {
    transform: scale(1.1);
}

/* ==== EMPTY STATE ==== */
.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 10px;
}

/* ==== MOBILE MODE ==== */
@media(max-width:768px){
    .premium-table thead {
        display: none;
    }

    .premium-table tr {
        display: block;
        margin-bottom: 12px;
    }

    .premium-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .premium-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #999;
    }
}

/* ==== PROGRESS PREMIUM ==== */
.premium-progress {
    height: 6px;
    border-radius: 10px;
    background: #eee;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
}

/* warna tambahan */
.badge-warning {
    background: #fff7e6;
    color: #fa8c16;
}


/* ===== HEADER CARD ===== */
.saving-card {
    background: linear-gradient(135deg,#4f46e5,#7c3aed);
    border-radius: 20px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== BUTTON ===== */
.btn-premium {
    background: linear-gradient(135deg,#4f46e5,#7c3aed);
    color: #fff;
    border-radius: 12px;
    border: none;
    padding: 10px 18px;
}

/* ===== TABLE CARD ===== */
.premium-table-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 20px;
}

/* ===== BADGE ===== */
.badge-transfer {
    background: #eef2ff;
    color: #4f46e5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* ===== ACTION ===== */
.action-group {
    display: flex;
    justify-content: end;
    gap: 8px;
}

.btn-action {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    text-decoration: none;
}

.btn-action.edit {
    background: #eef2ff;
    color: #4f46e5;
}

.btn-action.delete {
    background: #fff1f0;
    color: #ff4d4f;
}

.btn-action:hover {
    transform: scale(1.1);
}

/* ===== TABLE ===== */
.premium-table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table-row {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.table-row td {
    border: none;
    padding: 14px;
}



/* ===== GRID ===== */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 28px;
    
}

.goal-card {
    position: relative;
    border-radius: 22px;
    padding: 20px;

    background: linear-gradient(135deg, #ffffff, #f4f8ff);
    border: 1px solid rgba(0,0,0,0.05);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.06),
        0 4px 10px rgba(0,0,0,0.04);

    transition: all 0.35s ease;
    overflow: hidden;
      position: relative;
      pointer-events: auto;
       color: #1a1a1a !important;
    z-index: 5;
}

.goal-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.12);
}

/* Glow effect */
.goal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(0,123,255,0.15), transparent);
    opacity: 0;
    transition: 0.4s;
}
.goal-card:hover::before {
    opacity: 1;
}

.premium-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.05);
    overflow: hidden;
}

.premium-progress div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    width: 0;
    transition: width 1s ease;
}

.btn-premium {
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    border: none;
    transition: 0.3s;
}

.btn-setor {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}
.btn-setor:hover {
    background: #198754;
    color: #fff;
}

.btn-tarik {
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
}
.btn-tarik:hover {
    background: #ffc107;
    color: #000;
}

.btn-edit {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}
.btn-edit:hover {
    background: #0d6efd;
    color: #fff;
}

.btn-delete {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}
.btn-delete:hover {
    background: #dc3545;
    color: #fff;
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

.table-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.premium-progress {
    position: relative;
    z-index: 1;
}

.goal-card .btn-premium {
    position: relative;
    z-index: 5;
}

.rupiah-input{
    height:52px;
    border-radius:14px;
    font-size:20px;
    font-weight:700;
    letter-spacing:.5px;
    padding:12px 16px;
}

.rupiah-input:focus{
    border-color:#6366f1;
    box-shadow:0 0 0 4px rgba(99,102,241,.12);
}


/* ==================================================
   MOBILE APP NAVIGATION
================================================== */

.mobile-bottom-nav{
    display:none;
}

@media(max-width:768px){

    .sidebar-wrapper{
        display:none !important;
    }

    body,
    .main-content{
        padding-bottom:110px !important;
    }

    /* =========================
       BOTTOM NAV
    ========================= */

    .mobile-bottom-nav{
        position: fixed;

        left:14px;
        right:14px;
        bottom:14px;

        height:88px;

        padding:0 8px;

        border-radius:32px;

        background:
            linear-gradient(
                135deg,
                rgba(20,28,48,.96),
                rgba(10,18,35,.96)
            );

        border:1px solid rgba(255,255,255,.08);

        backdrop-filter: blur(20px);

        display:flex;
        align-items:center;
        justify-content:space-around;

        z-index:9999;

        box-shadow:
            0 12px 40px rgba(0,0,0,.35),
            inset 0 1px 0 rgba(255,255,255,.04);

        overflow: visible;
    }

    /* glow */
    .mobile-bottom-nav::before{
        content:'';

        position:absolute;
        inset:0;

        border-radius:32px;

        background:
            radial-gradient(
                circle at top left,
                rgba(59,130,246,.18),
                transparent 35%
            ),
            radial-gradient(
                circle at bottom right,
                rgba(16,185,129,.12),
                transparent 35%
            );

        pointer-events:none;
    }

    /* ITEM */
    .mobile-nav-item{
        flex:1;

        text-decoration:none;

        color:rgba(255,255,255,.6);

        display:flex;
        flex-direction:column;

        align-items:center;
        justify-content:center;

        gap:6px;

        font-size:11px;
        font-weight:600;

        transition:.3s ease;

        position:relative;
    }

    .mobile-nav-item i{
        width:46px;
        height:46px;

        border-radius:18px;

        display:flex;
        align-items:center;
        justify-content:center;

        background:
            linear-gradient(
                145deg,
                rgba(255,255,255,.07),
                rgba(255,255,255,.03)
            );

        border:1px solid rgba(255,255,255,.05);

        font-size:20px;

        transition:.3s ease;

        backdrop-filter: blur(10px);

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.04);
    }

    /* ICON COLORS */
    .mobile-nav-item:nth-child(1) i{
        color:#60a5fa;
    }

    .mobile-nav-item:nth-child(2) i{
        color:#22c55e;
    }

    .mobile-nav-item:nth-child(4) i{
        color:#f59e0b;
    }

    .mobile-nav-item:nth-child(5) i{
        color:#ef4444;
    }

    .mobile-nav-item:hover{
        color:#fff;
        transform:translateY(-2px);
    }

    .mobile-nav-item:hover i{
        background:rgba(255,255,255,.12);
    }

    /* ACTIVE */
    .mobile-nav-item.active{
        color:#fff;
    }

    .mobile-nav-item.active i{
        background:
            linear-gradient(
                135deg,
                #7c3aed,
                #06b6d4
            );

        color:#fff;

        box-shadow:
            0 10px 25px rgba(124,58,237,.35);
    }

    /* ====================================
       CENTER BUTTON
    ==================================== */

    .mobile-nav-center{
        position:relative;

        top:-26px;

        width:92px;
        height:92px;

        border-radius:30px;

        background:
            linear-gradient(
                145deg,
                #1f3b33,
                #15302a
            );

        border:1px solid rgba(255,255,255,.08);

        display:flex;
        align-items:center;
        justify-content:center;

        text-decoration:none;

        color:#22c55e;

        box-shadow:
            0 18px 35px rgba(0,0,0,.45),
            inset 0 1px 0 rgba(255,255,255,.05),
            0 0 25px rgba(34,197,94,.18);

        overflow:hidden;

        transition:.35s ease;
    }

    .mobile-nav-center::before{
        content:'';

        position:absolute;
        inset:0;

        border-radius:30px;

        background:
            radial-gradient(
                circle at top left,
                rgba(34,197,94,.25),
                transparent 40%
            );

        pointer-events:none;
    }

    .mobile-nav-center:hover{
        transform:
            translateY(-2px)
            scale(1.04);

        box-shadow:
            0 20px 45px rgba(0,0,0,.5),
            0 0 35px rgba(34,197,94,.28);
    }

    .mobile-nav-center i{
        font-size:30px;

        text-shadow:
            0 0 18px rgba(34,197,94,.75);
    }

    /* =========================
       DRAWER MENU
    ========================= */

    .mobile-allmenu{
        position:fixed;

        left:0;
        right:0;
        bottom:-100%;

        background:
            linear-gradient(
                180deg,
                #111827,
                #0f172a
            );

        color:#fff;

        border-radius:32px 32px 0 0;

        border-top:
            1px solid rgba(255,255,255,.08);

        box-shadow:
            0 -15px 40px rgba(0,0,0,.35);

        z-index:10000;

        padding:24px;

        transition:.35s ease;

        max-height:85vh;
        overflow:auto;
    }

    .mobile-allmenu.active{
        bottom:0;
    }

    .mobile-allmenu-overlay{
        position:fixed;
        inset:0;

        background:rgba(0,0,0,.45);

        opacity:0;
        visibility:hidden;

        transition:.3s;

        z-index:9998;
    }

    .mobile-allmenu-overlay.active{
        opacity:1;
        visibility:visible;
    }

    /* HEADER */
    .allmenu-header{
        display:flex;
        align-items:center;
        justify-content:space-between;

        margin-bottom:24px;
    }

    .allmenu-header h5{
        color:#fff;
        margin:0;
        font-weight:700;
    }

    .allmenu-header button{
        width:42px;
        height:42px;

        border:none;
        border-radius:14px;

        background:rgba(255,255,255,.08);
        color:#fff;
    }

    /* GRID */
    .allmenu-grid{
        display:grid;
        grid-template-columns:repeat(3,1fr);
        gap:16px;
    }

    .allmenu-item{
        background:
            linear-gradient(
                145deg,
                rgba(255,255,255,.06),
                rgba(255,255,255,.03)
            );

        border:1px solid rgba(255,255,255,.05);

        backdrop-filter: blur(10px);

        color:#fff;

        border-radius:24px;

        min-height:100px;

        padding:18px 10px;

        display:flex;
        flex-direction:column;

        align-items:center;
        justify-content:center;

        gap:10px;

        text-decoration:none;

        transition:.3s ease;
    }

    .allmenu-item:hover{
        background:
            linear-gradient(
                145deg,
                rgba(34,197,94,.16),
                rgba(59,130,246,.10)
            );

        transform:
            translateY(-4px)
            scale(1.02);
    }

    /* ICON PREMIUM */
    .allmenu-item i{
        width:52px;
        height:52px;

        border-radius:18px;

        display:flex;
        align-items:center;
        justify-content:center;

        font-size:22px;

        background:
            linear-gradient(
                145deg,
                rgba(255,255,255,.08),
                rgba(255,255,255,.04)
            );

        border:1px solid rgba(255,255,255,.05);

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.05);
    }

    /* ICON COLORS */
    .allmenu-item:nth-child(1) i{
        color:#60a5fa;
    }

    .allmenu-item:nth-child(2) i{
        color:#22c55e;
    }

    .allmenu-item:nth-child(3) i{
        color:#f59e0b;
    }

    .allmenu-item:nth-child(4) i{
        color:#ef4444;
    }

    .allmenu-item:nth-child(5) i{
        color:#06b6d4;
    }

    .allmenu-item:nth-child(6) i{
        color:#8b5cf6;
    }

    .allmenu-item:nth-child(7) i{
        color:#ec4899;
    }

    .allmenu-item:nth-child(8) i{
        color:#84cc16;
    }

    .allmenu-item:nth-child(9) i{
        color:#f97316;
    }

    .allmenu-item:nth-child(10) i{
        color:#14b8a6;
    }

    .allmenu-item:nth-child(11) i{
        color:#38bdf8;
    }

    .allmenu-item span{
        color:#fff;

        font-size:12px;
        font-weight:600;
        text-align:center;
    }
}
/* =========================================
   HIDE MOBILE NAV ON DESKTOP
========================================= */

.mobile-bottom-nav,
.mobile-allmenu,
.mobile-allmenu-overlay{
    display: none;
}

/* tampilkan hanya mobile */
@media (max-width:768px){

    .mobile-bottom-nav{
        display:flex !important;
    }

    .mobile-allmenu{
        display:block !important;
    }

    .mobile-allmenu-overlay{
        display:block !important;
    }

}

/* =========================================
   DESKTOP SIDEBAR NORMAL
========================================= */

@media (min-width:769px){

    .sidebar-wrapper{
        display:flex !important;
    }

}

.upload-box{
    border:2px dashed #d1d5db;
    border-radius:24px;
    padding:40px;
    cursor:pointer;
    display:block;
    transition:.3s;
    background:#f9fafb;
}

.upload-box:hover{
    border-color:#111827;
    background:#fff;
}

.upload-content i{
    font-size:50px;
    color:#111827;
    margin-bottom:15px;
}

.upload-content h5{
    font-weight:700;
}

#previewImage{
    border-radius:20px;
}




/* assets.css - LIGHT PREMIUM VERSION */

:root{
    --bg:#f1f5f9;
    --card:#ffffff;
    --card2:#f8fafc;
    --border:#e2e8f0;

    --primary:#4f46e5;
    --primary2:#7c3aed;

    --text:#0f172a;
    --muted:#64748b;

    --success:#10b981;
    --danger:#ef4444;

    --shadow:
        0 10px 35px rgba(15,23,42,.08);

    --shadow-hover:
        0 18px 45px rgba(79,70,229,.14);
}

/* =========================
   MAIN
========================= */

.main-content{
    min-height:100vh;
    padding:30px;

    background:
        radial-gradient(circle at top left,
        rgba(99,102,241,.10) 0%,
        transparent 25%),

        radial-gradient(circle at bottom right,
        rgba(168,85,247,.08) 0%,
        transparent 25%),

        var(--bg);

    color:var(--text);
}

/* =========================
   TOPBAR
========================= */

.page-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:30px;
    flex-wrap:wrap;
}

.page-title{
    font-size:36px;
    font-weight:800;
    margin:0;

    background:linear-gradient(
        to right,
        #111827,
        #4f46e5
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.page-subtitle{
    margin-top:6px;
    color:var(--muted);
    font-size:15px;
}

/* =========================
   BUTTON
========================= */

.btn-premium{
    border:none;
    padding:14px 24px;
    border-radius:18px;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--primary2)
    );

    color:#fff;
    font-weight:700;

    box-shadow:
        0 12px 30px rgba(99,102,241,.25);

    transition:.3s ease;
}

.btn-premium:hover{
    transform:translateY(-3px);
    box-shadow:
        0 18px 35px rgba(99,102,241,.30);
}

/* =========================
   ALERT
========================= */

.alert-success{
    padding:18px 20px;
    border-radius:18px;

    background:#ecfdf5;
    border:1px solid #bbf7d0;

    color:#065f46;

    margin-bottom:25px;

    font-weight:600;
}

/* =========================
   GRID
========================= */

.asset-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:26px;
}

/* =========================
   CARD
========================= */

.asset-card{
    background:rgba(255,255,255,.92);

    border:1px solid var(--border);

    border-radius:30px;

    overflow:hidden;

    position:relative;

    transition:.35s ease;

    box-shadow:var(--shadow);

    backdrop-filter:blur(10px);
}

.asset-card:hover{
    transform:translateY(-8px);

    border-color:rgba(99,102,241,.25);

    box-shadow:var(--shadow-hover);
}

.asset-card::before{
    content:'';

    position:absolute;
    top:0;
    left:0;
    right:0;

    height:5px;

    background:linear-gradient(
        to right,
        var(--primary),
        var(--primary2)
    );
}

/* =========================
   IMAGE
========================= */

.asset-img{
    width:100%;
    height:240px;
    object-fit:cover;

    background:#e2e8f0;
}

.empty-image{
    display:flex;
    align-items:center;
    justify-content:center;

    color:#94a3b8;
    font-size:42px;
}

/* =========================
   BODY
========================= */

.asset-body{
    padding:24px;
}

.asset-badge{
    display:inline-flex;
    align-items:center;
    gap:7px;

    padding:8px 14px;

    border-radius:999px;

    background:#eef2ff;
    color:#4338ca;

    font-size:12px;
    font-weight:700;

    margin-bottom:18px;
}

.asset-judul{
    font-size:24px;
    font-weight:800;
    margin-bottom:10px;
    color:#111827;
}

.asset-price{
    font-size:30px;
    font-weight:800;

    background:linear-gradient(
        to right,
        #059669,
        #10b981
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    margin-bottom:15px;
}

.asset-meta{
    display:flex;
    align-items:center;
    gap:8px;

    color:#475569;

    margin-bottom:10px;

    font-size:14px;
}

/* =========================
   ACTION
========================= */

.asset-action{
    display:flex;
    gap:12px;
    margin-top:22px;
}

.btn-action{
    width:48px;
    height:48px;

    border-radius:16px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    font-size:18px;

    transition:.25s ease;

    border:1px solid #e2e8f0;
}

.btn-action:hover{
    transform:translateY(-3px);
}

.btn-action.lihat{
    background:#eff6ff;
    color:#2563eb;
}

.btn-action.edit{
    background:#eef2ff;
    color:#4f46e5;
}

.btn-action.delete{
    background:#fef2f2;
    color:#dc2626;
}

/* =========================
   MODAL
========================= */

.custom-modal{
    background:#ffffff;

    border:none;

    border-radius:30px;

    overflow:hidden;

    color:#111827;

    box-shadow:
        0 20px 60px rgba(15,23,42,.18);
}

.modal-header{
    border-bottom:1px solid #e2e8f0;
    padding:24px;
}

.modal-footer{
    border-top:1px solid #e2e8f0;
    padding:20px;
}

.modal-title{
    font-weight:800;
    font-size:24px;
}

.btn-close{
    opacity:1;
}

/* =========================
   FORM
========================= */

.custom-input{
    background:#f8fafc;

    border:1px solid #e2e8f0;

    color:#111827;

    border-radius:18px;

    min-height:56px;

    margin-bottom:16px;

    padding:14px 16px;

    font-size:15px;
}

.custom-input:focus{
    background:#fff;

    border-color:#6366f1;

    color:#111827;

    box-shadow:
        0 0 0 .2rem rgba(99,102,241,.12);
}

.custom-input::placeholder{
    color:#94a3b8;
}

.textarea-custom{
    min-height:120px;
}

.custom-btn-primary{
    border:none;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--primary2)
    );

    border-radius:14px;

    padding:12px 20px;

    font-weight:700;
}

.custom-btn-secondary{
    background:#f1f5f9;

    border:none;

    border-radius:14px;

    color:#334155;
}

/* =========================
   DETAIL IMAGE
========================= */

.detail-image{
    width:100%;
    max-height:350px;
    object-fit:cover;

    border-radius:22px;

    margin-bottom:20px;

    box-shadow:
        0 10px 30px rgba(15,23,42,.08);
}

/* =========================
   TABLE
========================= */

.custom-table{
    color:#111827;
}

.custom-table tr{
    border-color:#e2e8f0;
}

.custom-table th{
    width:180px;

    color:#4f46e5;

    font-weight:700;
}

.custom-table td{
    color:#334155;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .main-content{
        padding:18px;
        padding-bottom:100px;
    }

    .page-title{
        font-size:28px;
    }

    .btn-premium{
        width:100%;
    }

    .page-topbar{
        align-items:stretch;
    }

    .asset-grid{
        grid-template-columns:1fr;
    }

    .asset-img{
        height:210px;
    }

    .asset-price{
        font-size:25px;
    }

    .asset-judul{
        font-size:21px;
    }

    .modal-dialog{
        margin:12px;
    }

    .custom-table th,
    .custom-table td{
        font-size:14px;
    }
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
        var(--primary),
        var(--primary2)
    );

    border-radius:20px;
}

::-webkit-scrollbar-track{
    background:#e2e8f0;
}

/* =========================
MODAL DI ATAS NAVBAR
========================= */

.modal {
    z-index: 999999 !important;
}

.modal-backdrop {
    z-index: 999998 !important;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.45) !important;
}

/* =========================
PREMIUM FINTECH MODAL
========================= */

.fintech-modal{
    border: none;
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.18),
        0 8px 20px rgba(0,0,0,0.08);
}

/* =========================
HEADER
========================= */

.fintech-modal .modal-header{
    padding: 24px 28px 12px;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f8fafc
        );
    border-bottom: 1px solid #eef2f7;
}

.fintech-modal .modal-title{
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

/* =========================
BODY
========================= */

.fintech-modal .modal-body{
    padding: 24px 28px;
}

/* =========================
FOOTER
========================= */

.fintech-modal .modal-footer{
    padding: 18px 28px 28px;
    border-top: 1px solid #f1f5f9;
}

/* =========================
INPUT PREMIUM
========================= */

.fintech-modal .form-control,
.fintech-modal .form-select{
    height: 54px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 15px;
    transition: .25s ease;
}

.fintech-modal .form-control:focus,
.fintech-modal .form-select:focus{
    border-color: #111827;
    box-shadow:
        0 0 0 4px rgba(17,24,39,0.08);
    background: #fff;
}

/* =========================
UPLOAD BOX
========================= */

.upload-box{
    display: block;
    border: 2px dashed #d1d5db;
    border-radius: 24px;
    padding: 45px 20px;
    background: #f9fafb;
    cursor: pointer;
    transition: .3s ease;
}

.upload-box:hover{
    background: #fff;
    border-color: #111827;
    transform: translateY(-2px);
}

.upload-content i{
    font-size: 52px;
    color: #111827;
    margin-bottom: 14px;
}

.upload-content h5{
    font-weight: 700;
    margin-bottom: 6px;
}

.upload-content p{
    color: #6b7280;
    margin: 0;
}

/* =========================
PREVIEW IMAGE
========================= */

#previewImage{
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    box-shadow:
        0 8px 24px rgba(0,0,0,0.08);
}

/* =========================
BUTTON PREMIUM
========================= */

.btn-gradient{
    border: none;
    background:
        linear-gradient(
            135deg,
            #111827,
            #1f2937
        );
    color: #fff;
    border-radius: 16px;
    padding: 12px 24px;
    font-weight: 600;
    transition: .25s ease;
}

.btn-gradient:hover{
    transform: translateY(-2px);
    box-shadow:
        0 12px 24px rgba(0,0,0,0.18);
}

/* =========================
LOADING OCR
========================= */

.ocr-loading{
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
}

/* =========================
MOBILE
========================= */

@media(max-width:768px){

    .modal-dialog{
        margin: 12px;
    }

    .fintech-modal{
        border-radius: 24px;
    }

    .fintech-modal .modal-body,
    .fintech-modal .modal-header,
    .fintech-modal .modal-footer{
        padding-left: 18px;
        padding-right: 18px;
    }

}
/* =========================
FIX TOTAL MODAL CAMERA
========================= */

#modalCamera{
    z-index: 999999 !important;
}

#modalCamera .modal-content{
    border-radius: 10px;
    overflow: hidden;
}





#modalCamera .modal-dialog{
    max-width: 850px;
    width: calc(100% - 20px);
    margin: 10px auto;
}

/* =========================
CONTENT
========================= */


/* =========================
HEADER
========================= */

#modalCamera .modal-header{
    padding: 20px 24px;
    border-bottom: 1px solid #eef2f7;
    flex-shrink: 0;
}

/* =========================
BODY SCROLL
========================= */

#modalCamera .modal-dialog{
    height: 95vh;
    margin: 20px auto;
}

#modalCamera .modal-content{
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
}

#modalCamera form{
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#modalCamera .modal-body{
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

#modalCamera .modal-footer{
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
    padding: 16px 24px;
    border-top: 1px solid #eee;
}
#modalCamera .modal-body{
    max-height: 75vh;
    overflow-y: auto;
    padding-bottom: 120px;
}

/* =========================
FOOTER NORMAL
========================= */

/* =========================
UPLOAD BOX
========================= */

.upload-box{
      width:100%;
    border:2px dashed #d0d7e2;
    border-radius:20px;
    padding:40px 20px;
    cursor:pointer;
    transition:.3s;
}


.upload-box:hover{
    border-color:#0d6efd;
    background:#f8fbff;
}
/* =========================
PREVIEW IMAGE
========================= */

#previewImage{
    width: 100%;
    max-height: 240px;
    object-fit: contain;
}

/* =========================
INPUT
========================= */

#modalCamera .form-control,
#modalCamera .form-select{

    height: 54px;

    border-radius: 16px;
}

/* =========================
MOBILE
========================= */

@media(max-width:768px){

    #modalCamera .modal-dialog{
        width: calc(100% - 8px);
        margin: 4px auto;
    }

    #modalCamera .modal-content{
        max-height: 98vh;
        border-radius: 20px;
    }

    #modalCamera .modal-body{
        padding: 16px;
    }

    #modalCamera .modal-footer{
        padding: 14px 16px;
    }

    .upload-box{
        min-height: 130px;
    }

    #previewImage{
        max-height: 180px;
    }
}

/* ==================================================
   MOBILE TOP HEADER
================================================== */

.mobile-top-header{
    display:none;
}

@media(max-width:768px){

    .mobile-top-header{

        position: fixed;
        top: 0;
        left: 0;
        right: 0;

        height: 78px;

        padding: 0 18px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        z-index: 9997;

        background:
            linear-gradient(
                135deg,
                rgba(15,23,42,.96),
                rgba(10,18,35,.92)
            );

        backdrop-filter: blur(18px);

        border-bottom:
            1px solid rgba(255,255,255,.06);

        box-shadow:
            0 8px 30px rgba(0,0,0,.18);
    }

    /* logo area */
    .mobile-brand{
        display:flex;
        align-items:center;
        gap:12px;

        text-decoration:none;
    }

    .mobile-brand-logo{

        width:48px;
        height:48px;

        border-radius:18px;

        display:flex;
        align-items:center;
        justify-content:center;

        background:
            linear-gradient(
                135deg,
                #7c3aed,
                #06b6d4
            );

        color:#fff;

        font-size:22px;
        font-weight:800;

        box-shadow:
            0 10px 25px rgba(124,58,237,.35);
    }

    .mobile-brand-text{
        display:flex;
        flex-direction:column;
        line-height:1.1;
    }

    .mobile-brand-name{
        color:#fff;
        font-size:18px;
        font-weight:700;
        letter-spacing:.3px;
    }

    .mobile-brand-sub{
        color:rgba(255,255,255,.55);
        font-size:11px;
        font-weight:500;
    }

    /* right actions */
    .mobile-header-actions{
        display:flex;
        align-items:center;
        gap:10px;
    }

    .mobile-header-btn{

        width:44px;
        height:44px;

        border-radius:16px;

        display:flex;
        align-items:center;
        justify-content:center;

        background:
            rgba(255,255,255,.06);

        border:
            1px solid rgba(255,255,255,.05);

        color:#fff;

        text-decoration:none;

        transition:.3s ease;

        backdrop-filter: blur(10px);
    }

    .mobile-header-btn:hover{

        transform:translateY(-2px);

        background:
            rgba(255,255,255,.12);
    }

    .mobile-header-btn i{
        font-size:18px;
    }

    /* supaya konten tidak ketimpa */
    body,
    .main-content{
        padding-top:88px !important;
    }
}

/* =========================================
   PREMIUM MOBILE LOGO BRAND
========================================= */

.mobile-brand{
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
    position:relative;
}

/* LOGO */
.mobile-brand-logo{

    width:54px;
    height:54px;

    border-radius:20px;

    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    background:
        linear-gradient(
            145deg,
            #7c3aed,
            #06b6d4
        );

    box-shadow:
        0 12px 30px rgba(124,58,237,.35),
        0 0 25px rgba(6,182,212,.22),
        inset 0 1px 0 rgba(255,255,255,.22);

    border:
        1px solid rgba(255,255,255,.15);
}

/* efek glow */
.mobile-brand-logo::before{
    content:'';

    position:absolute;
    inset:0;

    background:
        radial-gradient(
            circle at top left,
            rgba(255,255,255,.45),
            transparent 40%
        );

    pointer-events:none;
}

/* huruf */
.mobile-brand-logo span{

    position:relative;
    z-index:2;

    font-size:28px;
    font-weight:900;

    color:#fff;

    letter-spacing:1px;

    text-shadow:
        0 4px 12px rgba(0,0,0,.35);
}

/* TEXT */
.mobile-brand-text{
    display:flex;
    flex-direction:column;
    line-height:1;
}

/* CATUANG */
.mobile-brand-name{

    font-size:24px;
    font-weight:900;

    letter-spacing:.8px;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #cbd5e1,
            #ffffff
        );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    text-shadow:
        0 2px 10px rgba(255,255,255,.12);

    margin-bottom:4px;
}

/* SUBTITLE */
.mobile-brand-sub{

    font-size:11px;
    font-weight:600;

    letter-spacing:2px;
    text-transform:uppercase;

    color:rgba(255,255,255,.55);
}

/* animasi glow */
@keyframes logoGlow{

    0%{
        box-shadow:
            0 12px 30px rgba(124,58,237,.35),
            0 0 25px rgba(6,182,212,.22);
    }

    50%{
        box-shadow:
            0 15px 35px rgba(124,58,237,.5),
            0 0 40px rgba(6,182,212,.35);
    }

    100%{
        box-shadow:
            0 12px 30px rgba(124,58,237,.35),
            0 0 25px rgba(6,182,212,.22);
    }
}

.mobile-brand-logo{
    animation:logoGlow 4s ease-in-out infinite;
}

/* =========================================
   FIX JARAK HEADER & CONTENT MOBILE
========================================= */

@media(max-width:768px){

    /* HEADER */
    .mobile-top-header{
        height:78px;
    }

    /* KONTEN UTAMA */
    .main-content{

        padding-top:10px !important;
        margin-top:0 !important;
    }

    /* HAPUS SPACING BERLEBIHAN */
    .page-header,
    .dashboard-header, 
    .hero-section,
    .top-section,
    .content-wrapper{

        margin-top:0 !important;
        padding-top:10px !important;
    }

    /* CARD PERTAMA */
    .main-content > *:first-child{
        margin-top:0 !important;
    }

}