/* ================================================================
   BUKUMAX - PAGES STYLESHEET
   Styling spesifik per halaman
   ================================================================ */

/* ==================== INPUT TRANSAKSI FORM ==================== */
.input-transaksi-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-transaksi-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

.input-transaksi-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.input-transaksi-header-icon i {
    font-size: 22px;
}

.input-transaksi-header-info h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
}

.input-transaksi-header-info p {
    font-size: 11px;
    opacity: 0.9;
}

/* Laba Preview Box */
.laba-preview-box {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 2px solid #22c55e;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.laba-preview-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--success-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.laba-preview-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--success-dark);
    letter-spacing: -0.5px;
}

/* Auto-fill Indicator */
.auto-fill-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-lighter);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 9px;
    font-weight: 700;
    margin-left: 6px;
}

.auto-fill-badge i {
    font-size: 8px;
}

/* ==================== SALDO ITEM DETAIL ==================== */
.saldo-detail-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.saldo-detail-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.saldo-detail-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.saldo-detail-info h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.saldo-detail-info p {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.saldo-detail-balance {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
    text-align: center;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.saldo-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.saldo-action-btn {
    padding: 12px 8px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.saldo-action-btn:active {
    transform: scale(0.95);
}

.saldo-action-btn i {
    font-size: 16px;
}

.saldo-action-btn.primary {
    background: var(--primary-lighter);
    color: var(--primary);
}

.saldo-action-btn.success {
    background: var(--success-light);
    color: var(--success-dark);
}

.saldo-action-btn.danger {
    background: var(--danger-light);
    color: var(--danger-dark);
}

/* ==================== CABANG SWITCHER ==================== */
.cabang-switcher-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--border-light);
}

.cabang-switcher-item:active {
    transform: scale(0.98);
}

.cabang-switcher-item.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #faf5ff, #f5f3ff);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
}

.cabang-switcher-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.cabang-switcher-info {
    flex: 1;
    min-width: 0;
}

.cabang-switcher-nama {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cabang-switcher-alamat {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.cabang-switcher-check {
    color: var(--success);
    font-size: 20px;
    flex-shrink: 0;
}

/* ==================== LAPORAN CARDS ==================== */
.laporan-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.laporan-summary-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.laporan-summary-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.laporan-summary-value {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.laporan-summary-value.green {
    color: var(--success);
}

.laporan-summary-value.blue {
    color: var(--info);
}

.laporan-summary-value.orange {
    color: var(--warning-dark);
}

/* Laporan Table */
.laporan-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.laporan-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    font-size: 12px;
}

.laporan-table-row:last-child {
    border-bottom: none;
}

.laporan-table-row.header {
    background: var(--bg-elevated);
    font-weight: 800;
    color: var(--text-secondary);
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.laporan-table-cell {
    flex: 1;
    min-width: 0;
}

.laporan-table-cell.right {
    text-align: right;
    font-weight: 700;
}

.laporan-table-cell.green {
    color: var(--success);
}

/* ==================== SHIFT KASIR ==================== */
.shift-card {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border-radius: var(--radius-lg);
    padding: 20px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
    position: relative;
    overflow: hidden;
}

.shift-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    border-radius: 50%;
}

.shift-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.shift-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
}

.shift-status-badge.open {
    background: rgba(34, 197, 94, 0.3);
}

.shift-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fcd34d;
    animation: pulse 2s infinite;
}

.shift-time {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 600;
    position: relative;
}

.shift-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
}

.shift-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}

.shift-stat-label {
    font-size: 10px;
    opacity: 0.9;
    margin-bottom: 4px;
    font-weight: 600;
}

.shift-stat-value {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* ==================== INTEGRASI STRUKMAX ==================== */
.strukmax-card {
    background: linear-gradient(135deg, #1e1b4b, #4c1d95, #7c3aed);
    border-radius: var(--radius-lg);
    padding: 20px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.strukmax-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.3), transparent 70%);
    border-radius: 50%;
}

.strukmax-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
}

.strukmax-logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.strukmax-logo-text {
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.5px;
}

.strukmax-logo-text span:first-child { color: white; }
.strukmax-logo-text span:last-child { color: #fcd34d; }

.strukmax-desc {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.5;
    position: relative;
}

.strukmax-btn {
    width: 100%;
    background: white;
    color: var(--primary);
    border: none;
    padding: 12px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.2s;
}

.strukmax-btn:active {
    transform: scale(0.97);
}

/* ==================== SUBSCRIPTION PAGE ==================== */
.subscription-header-bm {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
    position: relative;
    overflow: hidden;
}

.subscription-header-bm::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    border-radius: 50%;
}

.subscription-header-bm h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 6px;
    position: relative;
    letter-spacing: -0.5px;
}

.subscription-header-bm p {
    font-size: 12px;
    opacity: 0.9;
    position: relative;
}

/* Package Card */
.package-card-bm {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.package-card-bm:active {
    transform: scale(0.98);
}

.package-card-bm.best-seller {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #fdf4ff, #fae8ff);
}

.package-card-bm.best-seller::before {
    content: '⭐ TERLARIS';
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
}

.package-card-bm.hot-promo {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.package-card-bm.hot-promo::before {
    content: '🔥 PROMO';
    position: absolute;
    top: -10px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
}

.package-info-bm h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.package-info-bm p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.package-price-bm {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.package-price-original {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.package-price-current {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.package-price-current::before {
    content: 'Rp ';
    font-size: 14px;
}

.package-save-bm {
    font-size: 10px;
    background: var(--success-light);
    color: var(--success-dark);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    margin-top: 6px;
    display: inline-block;
}

.package-arrow-bm {
    color: var(--text-muted);
    font-size: 18px;
    flex-shrink: 0;
}

/* ==================== NOTIFIKASI PAGE ==================== */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notif-item:active {
    transform: scale(0.98);
}

.notif-item.unread {
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, #faf5ff, #f5f3ff);
}

.notif-item-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.notif-item-icon.success {
    background: var(--success-light);
    color: var(--success-dark);
}

.notif-item-icon.warning {
    background: var(--warning-light);
    color: var(--warning-dark);
}

.notif-item-icon.danger {
    background: var(--danger-light);
    color: var(--danger-dark);
}

.notif-item-icon.info {
    background: var(--primary-lighter);
    color: var(--primary);
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.notif-item-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.notif-item-time {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notif-item-badge {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    position: absolute;
    top: 14px;
    right: 14px;
}

/* ================================================================ */
/* SALDO - PREMIUM DESIGN SYSTEM (v3 - CONSOLIDATED) */
/* ================================================================ */

/* ---------------------------------------------------------------- */
/* 1. CARD KATEGORI */
/* ---------------------------------------------------------------- */

.saldo-kategori-section {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #fafbff 100%);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 
        0 1px 2px rgba(30, 27, 75, 0.04),
        0 4px 12px rgba(30, 27, 75, 0.06),
        0 16px 32px rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.saldo-kategori-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--kat-color, #7c3aed) 0%, transparent 60%);
    opacity: 0.6;
}

.saldo-kategori-section:hover {
    box-shadow: 
        0 1px 2px rgba(30, 27, 75, 0.04),
        0 8px 20px rgba(30, 27, 75, 0.08),
        0 24px 48px rgba(124, 58, 237, 0.08);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------------- */
/* 2. HEADER KATEGORI */
/* ---------------------------------------------------------------- */

.saldo-kategori-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    position: relative;
}

.saldo-kategori-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--kat-color, #7c3aed);
    border-radius: 2px;
    opacity: 0.5;
}

.saldo-kategori-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.saldo-kategori-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(30, 27, 75, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s;
}

.saldo-kategori-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 12px 12px 50% 50%;
    pointer-events: none;
}

.saldo-kategori-section:hover .saldo-kategori-icon {
    transform: scale(1.05) rotate(-3deg);
}

.saldo-kategori-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.saldo-kategori-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.saldo-kategori-count {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.saldo-kategori-total {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: var(--kat-color, #7c3aed);
    text-align: right;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* ---------------------------------------------------------------- */
/* 3. LIST ITEM */
/* ---------------------------------------------------------------- */

.saldo-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

/* ---------------------------------------------------------------- */
/* 4. CARD ITEM */
/* ---------------------------------------------------------------- */

.saldo-card-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px 14px 0;
    background: linear-gradient(180deg, 
        rgba(250, 249, 255, 0.6) 0%, 
        rgba(245, 243, 255, 0.4) 100%);
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.saldo-card-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at left center, 
        var(--kat-color, #7c3aed) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.saldo-card-item:hover {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 245, 255, 0.7) 100%);
    border-color: rgba(124, 58, 237, 0.12);
    transform: translateX(4px);
    box-shadow: 
        0 2px 4px rgba(30, 27, 75, 0.04),
        0 8px 20px rgba(124, 58, 237, 0.08);
}

.saldo-card-item:hover::after {
    opacity: 0.06;
}

/* ---------------------------------------------------------------- */
/* 5. STRIP WARNA */
/* ---------------------------------------------------------------- */

.saldo-card-strip {
    width: 4px;
    height: 32px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, 
        var(--kat-color, #7c3aed) 0%, 
        var(--kat-color, #7c3aed) 60%,
        rgba(255, 255, 255, 0.9) 100%);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.2);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.saldo-card-item:hover .saldo-card-strip {
    height: 40px;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

/* ---------------------------------------------------------------- */
/* 6. INFO AKUN */
/* ---------------------------------------------------------------- */

.saldo-card-info {
    flex: 1;
    min-width: 0;
    padding-left: 4px;
    position: relative;
    z-index: 1;
}

.saldo-card-nama {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.saldo-card-nomor {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* ---------------------------------------------------------------- */
/* 7. VALUE SALDO */
/* ---------------------------------------------------------------- */

.saldo-card-value {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #16a34a;
    text-align: right;
    flex-shrink: 0;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
    transition: color 0.2s;
}

.saldo-card-item:hover .saldo-card-value {
    color: #15803d;
}

/* ---------------------------------------------------------------- */
/* 8. ACTION BUTTONS */
/* ---------------------------------------------------------------- */

.saldo-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 4px;
    position: relative;
    z-index: 1;
}

.saldo-card-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.saldo-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 10px 10px 50% 50%;
    pointer-events: none;
}

.saldo-card-btn.atur {
    background: rgba(219, 234, 254, 0.9);
    color: #3b82f6;
}

.saldo-card-btn.atur:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
    border-color: transparent;
}

.saldo-card-btn.edit {
    background: rgba(237, 233, 254, 0.9);
    color: #7c3aed;
}

.saldo-card-btn.edit:hover {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
    border-color: transparent;
}

.saldo-card-btn.delete {
    background: rgba(254, 226, 226, 0.9);
    color: #f43f5e;
}

.saldo-card-btn.delete:hover {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(244, 63, 94, 0.3);
    border-color: transparent;
}

.saldo-card-btn:active {
    transform: translateY(0) scale(0.95);
}

/* ---------------------------------------------------------------- */
/* 9. TOMBOL TAMBAH */
/* ---------------------------------------------------------------- */

.btn-tambah-saldo-kategori {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.04) 0%, 
        rgba(217, 70, 239, 0.04) 100%);
    color: #7c3aed;
    border: 1.5px dashed rgba(124, 58, 237, 0.25);
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-tambah-saldo-kategori::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.08) 0%, 
        rgba(217, 70, 239, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-tambah-saldo-kategori:hover {
    border-color: rgba(124, 58, 237, 0.5);
    color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.12),
        0 12px 32px rgba(124, 58, 237, 0.08);
}

.btn-tambah-saldo-kategori:hover::before {
    opacity: 1;
}

.btn-tambah-saldo-kategori:active {
    transform: translateY(0) scale(0.98);
}

.btn-tambah-saldo-kategori i,
.btn-tambah-saldo-kategori span {
    position: relative;
    z-index: 1;
}

.btn-tambah-saldo-kategori i {
    font-size: 12px;
}

/* ---------------------------------------------------------------- */
/* 10. EMPTY STATE */
/* ---------------------------------------------------------------- */

.saldo-empty-kategori {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px;
    background: linear-gradient(135deg, 
        rgba(248, 245, 255, 0.5) 0%, 
        rgba(250, 249, 255, 0.3) 100%);
    border-radius: 14px;
    border: 1.5px dashed rgba(124, 58, 237, 0.12);
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.saldo-empty-kategori i {
    font-size: 28px;
    opacity: 0.4;
    color: #a78bfa;
}

/* ---------------------------------------------------------------- */
/* 11. SUMMARY CARD */
/* ---------------------------------------------------------------- */

.saldo-summary-card {
    position: relative;
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 30%, #a855f7 65%, #d946ef 100%);
    border-radius: 24px;
    padding: 28px 24px;
    margin-bottom: 20px;
    color: white;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(109, 40, 217, 0.25),
        0 20px 48px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.saldo-summary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.saldo-summary-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.saldo-summary-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.saldo-summary-value {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.saldo-summary-desc {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ================================================================ */
/* SALDO TABS - PREMIUM (Warna Berbeda per Kategori) */
/* ================================================================ */

.saldo-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 4px 14px 4px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
}

.saldo-tabs::-webkit-scrollbar {
    display: none;
}

/* ---------------------------------------------------------------- */
/* TAB — Default (Idle) */
/* ---------------------------------------------------------------- */

.saldo-tab {
    /* Layout */
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 14px;
    border: none;
    
    /* Shape */
    border-radius: 999px;
    
    /* Typography */
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.1px;
    white-space: nowrap;
    
    /* Color — default soft */
    color: #64748b;
    background: rgba(248, 245, 255, 0.7);
    
    /* Border */
    border: 1.5px solid rgba(148, 163, 184, 0.12);
    
    /* Interaction */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Icon di dalam tab */
.saldo-tab i {
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.saldo-tab span {
    position: relative;
    z-index: 1;
}

/* Ambient background glow (subtle) */
.saldo-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        var(--tab-color, #7c3aed) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.saldo-tab:hover {
    color: #475569;
    background: white;
    border-color: rgba(148, 163, 184, 0.25);
    transform: translateY(-1px);
    box-shadow: 
        0 2px 4px rgba(30, 27, 75, 0.04),
        0 6px 16px rgba(30, 27, 75, 0.06);
}

.saldo-tab:hover::before {
    opacity: 0.04;
}

.saldo-tab:hover i {
    transform: scale(1.1);
}

.saldo-tab:active {
    transform: translateY(0) scale(0.97);
}

/* ---------------------------------------------------------------- */
/* TAB — ACTIVE (Warna sesuai kategori) */
/* ---------------------------------------------------------------- */

.saldo-tab.active {
    /* Warna dinamis dari --tab-color */
    background: linear-gradient(135deg, 
        var(--tab-color, #7c3aed) 0%, 
        color-mix(in srgb, var(--tab-color, #7c3aed) 75%, black) 100%);
    color: white;
    border-color: transparent;
    
    /* Shadow berlapis */
    box-shadow: 
        0 2px 4px rgba(30, 27, 75, 0.1),
        0 8px 20px color-mix(in srgb, var(--tab-color, #7c3aed) 40%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    
    transform: translateY(-1px);
    padding: 10px 18px 10px 15px;   /* Sedikit lebih lebar */
}

/* Fallback untuk browser lama */
@supports not (color: color-mix(in srgb, red, blue)) {
    .saldo-tab.active {
        background: var(--tab-color, #7c3aed);
        box-shadow: 
            0 2px 4px rgba(30, 27, 75, 0.1),
            0 8px 20px rgba(124, 58, 237, 0.3);
    }
}

/* Active state — icon lebih besar & glow */
.saldo-tab.active i {
    font-size: 13px;
    transform: scale(1.05);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.saldo-tab.active::before {
    opacity: 0;
}

/* Highlight glossy di atas */
.saldo-tab.active::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 45%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        transparent 100%);
    border-radius: 999px 999px 50% 50%;
    pointer-events: none;
}

.saldo-tab.active:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(30, 27, 75, 0.12),
        0 12px 28px color-mix(in srgb, var(--tab-color, #7c3aed) 50%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.saldo-tab.active:hover::before {
    opacity: 0;
}

/* ---------------------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------------------- */

@media (max-width: 480px) {
    .saldo-tabs {
        gap: 6px;
        padding: 4px 2px 12px 2px;
    }
    
    .saldo-tab {
        padding: 9px 14px 9px 12px;
        font-size: 11px;
        gap: 6px;
    }
    
    .saldo-tab i {
        font-size: 11px;
    }
    
    .saldo-tab.active {
        padding: 9px 15px 9px 12px;
    }
    
    .saldo-tab.active i {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .saldo-tab {
        padding: 8px 12px 8px 10px;
        font-size: 10px;
        gap: 5px;
    }
    
    .saldo-tab i {
        font-size: 10px;
    }
}

/* ================================================================ */
/* SALDO POPUP - ATUR (Detail + Mutasi) */
/* ================================================================ */

/* ================================================================ */
/* SALDO POPUP - WRAP (Flex Column: Fixed Header + Scrollable Body) */
/* ================================================================ */

.saldo-popup-premium {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    max-height: 90vh !important;
    background: #ffffff !important;
    /* ✅ Flex column untuk kontrol layout */
    display: flex !important;
    flex-direction: column !important;
}

/* ✅ HTML container: flex column juga */
.saldo-popup-premium .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;   /* ✅ Ubah dari visible */
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

/* ✅ WRAP: hanya kontrol layout, TIDAK scroll */
/* ✅ SCROLL UNTUK SELURUH MODAL */
.saldo-popup-scroll-all {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 88vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.2) transparent;
}

.saldo-popup-scroll-all::-webkit-scrollbar {
    width: 4px;
}

.saldo-popup-scroll-all::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.2);
    border-radius: 4px;
}

.saldo-popup-scroll-all > * {
    flex-shrink: 0;
}

.saldo-popup-scroll-all .saldo-popup-header {
    margin-bottom: 20px;
}

.saldo-popup-scroll-all .saldo-popup-actions {
    margin-bottom: 16px;
}

.saldo-popup-scroll-all .saldo-popup-stats {
    margin-bottom: 16px;
}

/* Header popup Atur */
.saldo-popup-header {
    position: relative;
    padding: 28px 24px 24px 24px;
    border-radius: 24px;
    margin-bottom: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--popup-color, #7c3aed) 15%, white) 0%, 
        color-mix(in srgb, var(--popup-color, #7c3aed) 8%, white) 50%,
        color-mix(in srgb, var(--popup-color, #7c3aed) 4%, white) 100%);
    border: 1px solid color-mix(in srgb, var(--popup-color, #7c3aed) 15%, transparent);
    box-shadow: 
        0 1px 2px rgba(30, 27, 75, 0.03),
        0 4px 12px color-mix(in srgb, var(--popup-color, #7c3aed) 8%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .saldo-popup-header {
        background: linear-gradient(135deg, #f5f0ff 0%, #faf5ff 50%, #fefbff 100%);
        border: 1px solid rgba(124, 58, 237, 0.1);
    }
}

.saldo-popup-header-glow {
    position: absolute;
    top: -80px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, 
        color-mix(in srgb, var(--popup-color, #7c3aed) 40%, transparent) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(8px);
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .saldo-popup-header-glow {
        background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    }
}

.saldo-popup-header-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    min-height: 56px;
    padding: 0 44px;
    z-index: 2;
}

.saldo-popup-header-top .saldo-popup-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 
        0 8px 20px rgba(30, 27, 75, 0.2),
        0 2px 4px rgba(30, 27, 75, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.saldo-popup-header-top .saldo-popup-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 45%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.1) 70%,
        transparent 100%);
    border-radius: 14px 14px 50% 50%;
    pointer-events: none;
}

.saldo-popup-header-top .saldo-popup-info {
    text-align: center;
    min-width: 0;
    flex: 1;
}

.saldo-popup-header-top .saldo-popup-nama {
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saldo-popup-header-top .saldo-popup-kategori {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.saldo-popup-balance {
    text-align: center;
    position: relative;
    z-index: 2;
}

.saldo-popup-balance-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.saldo-popup-balance-value {
    font-family: 'Inter', sans-serif;
    font-size: 34px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -1.5px;
    line-height: 1.05;
    text-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

/* Action buttons dalam popup Atur */
.saldo-popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.saldo-popup-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 8px;
    background: white;
    border: 1.5px solid rgba(124, 58, 237, 0.1);
    border-radius: 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.saldo-popup-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.saldo-popup-action-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.saldo-popup-action.masuk { color: #22c55e; }
.saldo-popup-action.masuk .saldo-popup-action-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}
.saldo-popup-action.masuk:hover {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.12);
    transform: translateY(-3px);
}
.saldo-popup-action.masuk:hover .saldo-popup-action-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    transform: scale(1.08);
}

.saldo-popup-action.keluar { color: #f43f5e; }
.saldo-popup-action.keluar .saldo-popup-action-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #e11d48;
}
.saldo-popup-action.keluar:hover {
    border-color: rgba(244, 63, 94, 0.3);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.12);
    transform: translateY(-3px);
}
.saldo-popup-action.keluar:hover .saldo-popup-action-icon {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    transform: scale(1.08);
}

.saldo-popup-action.transfer { color: #3b82f6; }
.saldo-popup-action.transfer .saldo-popup-action-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}
.saldo-popup-action.transfer:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
    transform: translateY(-3px);
}
.saldo-popup-action.transfer:hover .saldo-popup-action-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: scale(1.08);
}

/* Mini stats */
.saldo-popup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.saldo-popup-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, 
        rgba(248, 245, 255, 0.6) 0%, 
        rgba(250, 249, 255, 0.4) 100%);
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.06);
}

.saldo-popup-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.saldo-popup-stat-icon.masuk {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.saldo-popup-stat-icon.keluar {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #e11d48;
}

.saldo-popup-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.saldo-popup-stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.3px;
}

/* Section title */
.saldo-popup-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 4px;
}

.saldo-popup-section-title i {
    font-size: 11px;
    color: #7c3aed;
}

/* Mutasi list */
.saldo-popup-mutasi-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.saldo-popup-mutasi-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, 
        rgba(250, 249, 255, 0.6) 0%, 
        rgba(245, 243, 255, 0.4) 100%);
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.05);
    transition: all 0.2s;
}

.saldo-popup-mutasi-item:hover {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 245, 255, 0.7) 100%);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.06);
}

.saldo-popup-mutasi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.saldo-popup-mutasi-item.masuk .saldo-popup-mutasi-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.saldo-popup-mutasi-item.keluar .saldo-popup-mutasi-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #e11d48;
}

.saldo-popup-mutasi-info {
    flex: 1;
    min-width: 0;
}

.saldo-popup-mutasi-ket {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saldo-popup-mutasi-time {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.saldo-popup-mutasi-amount {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    text-align: right;
    flex-shrink: 0;
}

.saldo-popup-mutasi-item.masuk .saldo-popup-mutasi-amount { color: #16a34a; }
.saldo-popup-mutasi-item.keluar .saldo-popup-mutasi-amount { color: #e11d48; }

/* Empty state popup */
.saldo-popup-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 20px;
    background: linear-gradient(135deg, 
        rgba(248, 245, 255, 0.4) 0%, 
        rgba(250, 249, 255, 0.2) 100%);
    border-radius: 14px;
    border: 1.5px dashed rgba(124, 58, 237, 0.12);
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.saldo-popup-empty i {
    font-size: 28px;
    opacity: 0.4;
    color: #a78bfa;
}

/* ================================================================ */
/* SALDO POPUP - MASUK/KELUAR/TRANSFER/EDIT/HAPUS (Premium) */
/* ================================================================ */

.saldo-premium-popup {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.saldo-premium-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.saldo-premium-popup-wrap {
    display: flex;
    flex-direction: column;
}

/* Header premium */
.saldo-premium-header {
    position: relative;
    padding: 24px;
    padding-left: 84px;      /* ✅ Space untuk icon (24 + 52 + 8) */
    padding-right: 60px;     /* ✅ Space untuk close button */
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--popup-accent, #7c3aed) 12%, white) 0%, 
        color-mix(in srgb, var(--popup-accent, #7c3aed) 5%, white) 100%);
    border-bottom: 1px solid color-mix(in srgb, var(--popup-accent, #7c3aed) 10%, transparent);
    overflow: hidden;
    min-height: 100px;       /* ✅ Supaya icon absolute punya ruang */
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .saldo-premium-header {
        background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
        border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    }
}

.saldo-premium-header-glow {
    position: absolute;
    top: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, 
        color-mix(in srgb, var(--popup-accent, #7c3aed) 25%, transparent) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(6px);
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .saldo-premium-header-glow {
        background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    }
}

.saldo-premium-header-icon {
    position: absolute;       /* ✅ Absolute di kiri */
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 
        0 8px 20px color-mix(in srgb, var(--popup-accent, #7c3aed) 25%, transparent),
        0 2px 4px rgba(30, 27, 75, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 2;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .saldo-premium-header-icon {
        box-shadow: 
            0 8px 20px rgba(30, 27, 75, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.saldo-premium-header-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 13px 13px 50% 50%;
    pointer-events: none;
}

.saldo-premium-header-info {
    position: relative;
    z-index: 1;
    text-align: center;      /* ✅ Text center */
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;     /* ✅ Center horizontal */
    justify-content: center;
    min-height: 52px;        /* ✅ Samakan dengan icon biar sejajar */
}

.saldo-premium-header-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.4px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-align: center;
}

.saldo-premium-header-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-align: center;
}

/* Body */
.saldo-premium-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.saldo-popup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.saldo-popup-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.saldo-popup-required {
    color: #f43f5e;
    font-size: 14px;
    line-height: 1;
}

.saldo-popup-optional {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
    text-transform: lowercase;
}

.saldo-popup-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1e1b4b;
    background: #fafbff;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.saldo-popup-input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}

.saldo-popup-input:focus {
    border-color: #7c3aed;
    background: white;
    box-shadow: 
        0 0 0 3px rgba(124, 58, 237, 0.1),
        0 4px 12px rgba(124, 58, 237, 0.08);
}

.saldo-popup-input:hover:not(:focus) {
    border-color: #cbd5e1;
    background: white;
}

.saldo-popup-input.accent-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.5px;
}

.saldo-popup-input.accent-success:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.saldo-popup-input.accent-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.5px;
}

.saldo-popup-input.accent-danger:focus {
    border-color: #f43f5e;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.saldo-popup-input.accent-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.5px;
}

.saldo-popup-input.accent-info:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Preview box */
.saldo-popup-preview {
    padding: 14px 16px;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--popup-accent, #7c3aed) 5%, white) 0%, 
        color-mix(in srgb, var(--popup-accent, #7c3aed) 2%, white) 100%);
    border: 1px dashed color-mix(in srgb, var(--popup-accent, #7c3aed) 20%, transparent);
    border-radius: 14px;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .saldo-popup-preview {
        background: #faf5ff;
        border: 1px dashed rgba(124, 58, 237, 0.15);
    }
}

.saldo-popup-preview-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.saldo-popup-preview-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.saldo-popup-preview-value {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.4px;
    transition: color 0.2s;
}

/* ================================================================ */
/* TRANSFER TARGET - SIMPLE (Nama + Saldo) */
/* ================================================================ */

.saldo-transfer-targets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px;
    margin: -4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.2) transparent;
}

.saldo-transfer-targets::-webkit-scrollbar {
    width: 4px;
}

.saldo-transfer-targets::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.2);
    border-radius: 4px;
}

/* Target item */
.saldo-transfer-target {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 18px 22px;
    min-height: 68px;
    background: #fafbff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.saldo-transfer-target:hover {
    border-color: #cbd5e1;
    background: white;
    transform: translateX(2px);
}

.saldo-transfer-target.selected {
    border-color: var(--target-color, #7c3aed);
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--target-color, #7c3aed) 6%, white) 0%, 
        color-mix(in srgb, var(--target-color, #7c3aed) 3%, white) 100%);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--target-color, #7c3aed) 15%, transparent);
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .saldo-transfer-target.selected {
        background: #faf5ff;
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
    }
}

/* Strip warna kiri */
.saldo-transfer-target-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--target-color, #7c3aed);
    opacity: 0.5;
    transition: all 0.2s;
}

.saldo-transfer-target.selected .saldo-transfer-target-strip {
    opacity: 1;
    width: 5px;
}

/* ✅ Nama akun - flex 1 untuk ambil ruang */
.saldo-transfer-target-nama {
    flex: 1;
    min-width: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.3px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ✅ Saldo - auto ke kanan */
.saldo-transfer-target-saldo {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #16a34a;
    letter-spacing: -0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
    margin-left: auto;
}

/* ---------------------------------------------------------------- */
/* Responsive */
/* ---------------------------------------------------------------- */

@media (max-width: 480px) {
    .saldo-transfer-targets {
        max-height: 220px;
        gap: 6px;
    }
    
    .saldo-transfer-target {
        padding: 16px 14px 16px 18px;
        min-height: 62px;
        border-radius: 12px;
    }
    
    .saldo-transfer-target-nama {
        font-size: 14px;
    }
    
    .saldo-transfer-target-saldo {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .saldo-transfer-target {
        padding: 14px 12px 14px 16px;
        min-height: 58px;
    }
    
    .saldo-transfer-target-nama {
        font-size: 13px;
    }
    
    .saldo-transfer-target-saldo {
        font-size: 12px;
    }
}

/* Delete info box */
.saldo-delete-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 1.5px solid #fecaca;
    border-radius: 14px;
}

.saldo-delete-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.15);
}

.saldo-delete-info-content { flex: 1; min-width: 0; }

.saldo-delete-info-nama {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saldo-delete-info-kat {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.saldo-delete-info-saldo {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #16a34a;
    flex-shrink: 0;
}

.saldo-delete-warning {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fde68a;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #78350f;
}

.saldo-delete-warning i {
    color: #f59e0b;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.saldo-delete-warning strong {
    color: #92400e;
}

/* Buttons premium */
.saldo-premium-confirm {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 24px !important;
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3) !important;
    margin: 0 !important;
    min-width: 140px !important;
}

.saldo-premium-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4) !important;
}

.saldo-premium-confirm.danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.saldo-premium-confirm.danger:hover {
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4) !important;
}

.saldo-premium-cancel {
    padding: 14px 24px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.saldo-premium-cancel:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* Layout buttons */
.saldo-premium-popup .swal2-actions {
    display: flex !important;
    gap: 10px !important;
    padding: 0 24px 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.saldo-premium-popup .swal2-actions .swal2-confirm,
.saldo-premium-popup .swal2-actions .swal2-cancel {
    flex: 1 !important;
    margin: 0 !important;
}

/* ================================================================ */
/* CLOSE BUTTON X (Shared semua popup) */
/* ================================================================ */

.saldo-popup-close-x {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    border: 1px solid rgba(124, 58, 237, 0.1) !important;
    box-shadow: 0 2px 8px rgba(30, 27, 75, 0.08) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.saldo-popup-close-x:hover {
    background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
    color: white !important;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.35) !important;
    border-color: transparent !important;
}

.saldo-popup-close-x:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2) !important;
}

/* Hide default Swal actions untuk popup Atur */
.saldo-popup-premium .swal2-confirm,
.saldo-popup-premium .swal2-cancel,
.saldo-popup-premium .swal2-actions {
    display: none !important;
}

/* ---------------------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------------------- */

@media (max-width: 480px) {
    .saldo-popup-balance-value {
        font-size: 28px;
    }
    
    .saldo-popup-action {
        padding: 14px 6px;
    }
    
    .saldo-popup-action-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .saldo-popup-action-label {
        font-size: 11px;
    }
    
    
    .saldo-premium-header-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .saldo-premium-header-title {
        font-size: 18px;
    }
    
    .saldo-premium-header-subtitle {
        font-size: 11px;
    }
    
    .saldo-premium-body {
        padding: 20px;
    }
    
    .saldo-popup-input.accent-success,
    .saldo-popup-input.accent-danger,
    .saldo-popup-input.accent-info {
        font-size: 16px;
        padding: 12px 14px;
    }
    
    .saldo-premium-popup .swal2-actions {
        padding: 0 20px 20px 20px !important;
    }
}

@media (min-width: 481px) {
    .saldo-popup-premium {
        max-width: 420px !important;
    }
    
    .saldo-premium-popup {
        max-width: 440px !important;
    }
}

/* ================================================================ */
/* RIWAYAT PAGE */
/* ================================================================ */

.riwayat-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.riwayat-summary-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
}

.riwayat-summary-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.riwayat-summary-value {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.riwayat-summary-value.green {
    color: var(--success);
}

.riwayat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.riwayat-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px 8px 4px;
    margin-top: 8px;
    border-bottom: 1px dashed var(--border-light);
}

.riwayat-date-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
}

.riwayat-date-total {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--success);
}

.riwayat-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.riwayat-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-medium);
    transform: translateX(2px);
}

.riwayat-item:active {
    transform: scale(0.99);
}

.riwayat-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.riwayat-item-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 8px rgba(30, 27, 75, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.riwayat-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.riwayat-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.riwayat-item-detail {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.1px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Baris 3: Meta (kasir + waktu) */
.riwayat-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.riwayat-item-kasir {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.riwayat-item-sep {
    color: #cbd5e1;
    font-size: 10px;
    flex-shrink: 0;
}



.riwayat-item-kasir i {
    font-size: 9px;
    color: #a78bfa;
    flex-shrink: 0;
}

.riwayat-item-time-inline {
    flex-shrink: 0;
}

.riwayat-item-time-inline i {
    font-size: 9px;
    color: #cbd5e1;
}

.riwayat-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    max-width: 45%;
    text-align: right;
}

.riwayat-item-harga {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.4px;
    line-height: 1.1;
    white-space: nowrap;
}

.riwayat-item-meta-right {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.1px;
    line-height: 1.2;
    white-space: nowrap;
    justify-content: flex-end;
    max-width: 100%;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 380px) {
    .riwayat-item {
        padding: 12px;
        gap: 10px;
    }
    
    .riwayat-item-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .riwayat-item-title {
        font-size: 12px;
    }
    
    .riwayat-item-detail {
        font-size: 10px;
    }
    
    .riwayat-item-harga {
        font-size: 13px;
    }
    
    .riwayat-item-meta-right {
        font-size: 9px;
    }
    
    .riwayat-item-kasir {
        max-width: 60px;
    }
}

/* ================================================================ */
/* FILTER TANGGAL - MUTASI SALDO */
/* ================================================================ */

.mutasi-filter-section {
    padding: 14px;
    background: linear-gradient(135deg, 
        rgba(248, 245, 255, 0.8) 0%, 
        rgba(250, 249, 255, 0.6) 100%);
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
    z-index: 1;
}

.mutasi-filter-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mutasi-filter-header i {
    font-size: 11px;
    color: #7c3aed;
}

.mutasi-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.mutasi-filter-date-group {
    min-width: 0;
}

.mutasi-filter-date-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.mutasi-filter-date-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid rgba(124, 58, 237, 0.15);
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1e1b4b;
    box-sizing: border-box;
    transition: all 0.2s;
}

.mutasi-filter-date-group input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.mutasi-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mutasi-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    border-radius: 10px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mutasi-filter-btn i {
    font-size: 11px;
}

.mutasi-filter-btn.primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mutasi-filter-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(124, 58, 237, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mutasi-filter-btn.primary:active {
    transform: translateY(0) scale(0.98);
}

.mutasi-filter-btn.secondary {
    background: white;
    color: #64748b;
    border: 1.5px solid rgba(124, 58, 237, 0.15);
}

.mutasi-filter-btn.secondary:hover {
    background: #faf5ff;
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.3);
}

.mutasi-filter-btn.secondary:active {
    transform: scale(0.98);
}

@media (max-width: 380px) {
    .mutasi-filter-row {
        grid-template-columns: 1fr;
    }
    
    .mutasi-filter-actions {
        grid-template-columns: 1fr;
    }
}

/* ================================================================ */
/* BUKA KASIR POPUP - PREMIUM */
/* ================================================================ */

/* Total saldo card */
.bk-total-card {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 18px;
    padding: 20px 24px;
    text-align: center;
    color: white;
    margin-bottom: 16px;
    box-shadow: 
        0 8px 24px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.bk-total-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.bk-total-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.bk-total-label i {
    font-size: 12px;
}

.bk-total-value {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Note */
.bk-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

.bk-note i {
    font-size: 13px;
    flex-shrink: 0;
}

.bk-note.info {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px dashed #86efac;
    color: #166534;
}

.bk-note.info i {
    color: #16a34a;
}

.bk-note.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px dashed #fcd34d;
    color: #92400e;
}

.bk-note.warning i {
    color: #f59e0b;
}

/* Section header */
.bk-section-header {
    display: flex;
    align-items: center;
    gap: 14px;                                    /* dari 10px → 14px */
    margin-bottom: 12px;                          /* dari 10px → 12px */
    margin-top: 12px;                             /* dari 6px → 12px */
    padding-left: 2px;
}

/* ✅ Icon lebih besar: 48x48 */
.bk-section-icon {
    width: 56px;                                  /* dari 32px → 56px */
    height: 56px;                                 /* dari 32px → 56px */
    border-radius: 16px;                          /* dari 10px → 16px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;                              /* dari 13px → 24px */
    flex-shrink: 0;
    box-shadow: 
        0 6px 16px rgba(30, 27, 75, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
}

.bk-section-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 13px 13px 50% 50%;
    pointer-events: none;
}

.bk-section-title-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.bk-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 18px;                              /* dari 12px → 18px */
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.4px;                       /* sedikit lebih rapat */
    line-height: 1.2;
    flex: 1;
}

.bk-section-count {
    font-family: 'Inter', sans-serif;
    font-size: 12px;                              /* dari 10px → 12px */
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

/* Section items */
.bk-section-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

/* Item */
.bk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;                          /* Sedikit lebih lega */
    background: linear-gradient(180deg, 
        rgba(250, 249, 255, 0.6) 0%, 
        rgba(245, 243, 255, 0.4) 100%);
    border-radius: 14px;
    border: 1.5px solid rgba(124, 58, 237, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bk-item.focus {
    border-color: rgba(124, 58, 237, 0.3);
    background: white;
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.1),
        0 0 0 3px rgba(124, 58, 237, 0.05);
}

.bk-item.changed {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

.bk-item.changed::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.bk-item-content {
    flex: 1;
    min-width: 0;
}

.bk-item-nama {
    font-family: 'Inter', sans-serif;
    font-size: 14px;                              /* dari 13px → 14px */
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bk-item-sistem {
    font-family: 'Inter', sans-serif;
    font-size: 11px;                              /* dari 10px → 11px */
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.1px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Input wrap */
.bk-item-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    border: 1.5px solid rgba(124, 58, 237, 0.15);
    border-radius: 10px;
    padding: 6px 10px;
    flex-shrink: 0;
    width: 130px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.bk-item.focus .bk-item-input-wrap {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.bk-item.changed .bk-item-input-wrap {
    border-color: #f59e0b;
    background: #fffbeb;
}

.bk-item.changed .bk-item-input-wrap:focus-within {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.bk-item-input-prefix {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    flex-shrink: 0;
}

.bk-item-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    text-align: right;
    padding: 0;
    letter-spacing: -0.2px;
    box-sizing: border-box;
}

.bk-item.changed .bk-item-input {
    color: #b45309;
}

/* Responsive */
@media (max-width: 380px) {
    .bk-total-value {
        font-size: 24px;
    }
    
    /* ✅ Header kategori kecil */
    .bk-section-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }
    
    .bk-section-label {
        font-size: 14px;
    }
    
    .bk-section-count {
        font-size: 10px;
    }
    
    /* Item */
    .bk-item {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .bk-item-nama {
        font-size: 13px;
    }
    
    .bk-item-sistem {
        font-size: 10px;
    }
    
    .bk-item-input-wrap {
        width: 110px;
        padding: 5px 8px;
    }
    
    .bk-item-input {
        font-size: 12px;
    }
}

/* Sembunyikan default Swal actions styling untuk popup buka kasir */
.buka-kasir-popup .swal2-actions {
    display: flex !important;
    gap: 10px !important;
    padding: 0 24px 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.buka-kasir-popup .swal2-actions .swal2-confirm,
.buka-kasir-popup .swal2-actions .swal2-cancel {
    flex: 1 !important;
    margin: 0 !important;
}

/* ================================================================ */
/* ONBOARDING WIZARD - PREMIUM */
/* ================================================================ */

.onboarding-popup {
    border-radius: 28px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 
        0 4px 12px rgba(30, 27, 75, 0.1),
        0 24px 64px rgba(124, 58, 237, 0.25),
        0 48px 96px rgba(124, 58, 237, 0.15) !important;
}

.onboarding-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Container */
.onboard-container {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

/* Accent bar gradient di atas */
.onboard-accent-bar {
    height: 5px;
    background: linear-gradient(90deg, 
        #7c3aed 0%, 
        #a855f7 25%,
        #d946ef 50%,
        #f59e0b 75%,
        #22c55e 100%);
    background-size: 200% 100%;
    animation: onboardAccentShine 4s linear infinite;
    position: relative;
    z-index: 2;
}

@keyframes onboardAccentShine {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Wrap */
.onboard-wrap {
    padding: 32px 24px 16px 24px;
    text-align: center;
}

/* Icon besar */
.onboard-icon-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 38px;
    margin-bottom: 22px;
    box-shadow: 
        0 12px 32px rgba(124, 58, 237, 0.3),
        0 4px 12px rgba(30, 27, 75, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.35);
    animation: onboardIconFloat 3s ease-in-out infinite;
}

@keyframes onboardIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.onboard-icon-wrap::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 22px 22px 50% 50%;
    pointer-events: none;
}

/* Ripple glow */
.onboard-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 34px;
    background: radial-gradient(circle, 
        rgba(124, 58, 237, 0.15) 0%, 
        transparent 70%);
    z-index: -1;
    animation: onboardGlow 2.5s ease-in-out infinite;
}

@keyframes onboardGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Title */
.onboard-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.6px;
    line-height: 1.2;
    margin-bottom: 8px;
}

/* Subtitle */
.onboard-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================================ */
/* FEATURES (Step 1) */
/* ================================================================ */

.onboard-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.onboard-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, 
        rgba(248, 245, 255, 0.6) 0%, 
        rgba(250, 249, 255, 0.4) 100%);
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.onboard-feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.25s;
}

.onboard-feature:hover {
    background: white;
    border-color: rgba(124, 58, 237, 0.15);
    transform: translateX(4px);
    box-shadow: 
        0 2px 4px rgba(30, 27, 75, 0.04),
        0 8px 20px rgba(124, 58, 237, 0.08);
}

.onboard-feature:hover::before {
    opacity: 0.4;
}

.onboard-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 10px rgba(30, 27, 75, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
}

.onboard-feature-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 10px 10px 50% 50%;
    pointer-events: none;
}

.onboard-feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.onboard-feature-text strong {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.onboard-feature-text span {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.3;
}

/* Highlight trial */
.onboard-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    box-shadow: 
        0 4px 12px rgba(251, 191, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.onboard-highlight i {
    font-size: 18px;
    color: #f59e0b;
    animation: onboardGift 2s ease-in-out infinite;
}

@keyframes onboardGift {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

.onboard-highlight strong {
    font-weight: 900;
    color: #78350f;
}

/* ================================================================ */
/* NOTE CARDS */
/* ================================================================ */

.onboard-note {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 14px;
}

.onboard-note i {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.onboard-note strong {
    font-weight: 800;
}

.onboard-note.info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.onboard-note.info i {
    color: #3b82f6;
}

.onboard-note.info strong {
    color: #1e3a8a;
}

.onboard-note.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    color: #92400e;
}

.onboard-note.warning i {
    color: #f59e0b;
}

.onboard-note.warning strong {
    color: #78350f;
}

/* ================================================================ */
/* PREVIEW LIST (Step 2) */
/* ================================================================ */

.onboard-preview-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: linear-gradient(135deg, 
        rgba(248, 245, 255, 0.4) 0%, 
        rgba(250, 249, 255, 0.2) 100%);
    border: 1px dashed rgba(124, 58, 237, 0.15);
    border-radius: 14px;
    margin-bottom: 14px;
}

.onboard-preview-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 16px;
    background: white;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #1e1b4b;
    overflow: hidden;
    transition: all 0.2s;
}

.onboard-preview-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.onboard-preview-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
}

.onboard-preview-name {
    flex: 1;
    text-align: left;
    letter-spacing: -0.2px;
}

.onboard-preview-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
}

.onboard-preview-more {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    padding: 8px 0 2px 0;
    letter-spacing: 0.3px;
}

/* ================================================================ */
/* STEPS INFO (Step 3) */
/* ================================================================ */

.onboard-steps-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    text-align: left;
}

.onboard-steps-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, 
        rgba(248, 245, 255, 0.6) 0%, 
        rgba(250, 249, 255, 0.4) 100%);
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 14px;
    transition: all 0.25s;
}

.onboard-steps-item:hover {
    background: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.onboard-steps-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(30, 27, 75, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

.onboard-steps-num::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.onboard-steps-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.onboard-steps-text strong {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
}

.onboard-steps-text span {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.3;
}

.onboard-steps-text i {
    color: #7c3aed;
    font-size: 10px;
    margin: 0 2px;
}

/* CTA (Step 3) */
.onboard-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 14px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    line-height: 1.4;
    box-shadow: 
        0 8px 20px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.onboard-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.onboard-cta i {
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: onboardPlay 2s ease-in-out infinite;
}

@keyframes onboardPlay {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.onboard-cta div {
    position: relative;
    z-index: 1;
    flex: 1;
}

.onboard-cta strong {
    font-weight: 900;
}

/* ================================================================ */
/* PROGRESS DOTS */
/* ================================================================ */

.onboard-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0 24px 0;
}

.onboard-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboard-dot.active {
    width: 24px;
    border-radius: 4px;
    background: linear-gradient(90deg, #7c3aed, #d946ef);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* ================================================================ */
/* BUTTONS */
/* ================================================================ */

.onboarding-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 24px !important;
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    margin: 0 !important;
}

.onboarding-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 20px rgba(124, 58, 237, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.onboarding-btn-primary:active {
    transform: translateY(0) scale(0.98) !important;
}

.onboarding-btn-secondary {
    padding: 14px 24px !important;
    background: white !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin: 0 !important;
    transition: all 0.2s !important;
}

.onboarding-btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

/* Layout buttons */
.onboarding-popup .swal2-actions {
    display: flex !important;
    gap: 10px !important;
    padding: 0 24px 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.onboarding-popup .swal2-actions .swal2-confirm,
.onboarding-popup .swal2-actions .swal2-cancel {
    flex: 1 !important;
    margin: 0 !important;
}

/* ================================================================ */
/* RESPONSIVE */
/* ================================================================ */

@media (max-width: 380px) {
    .onboard-wrap {
        padding: 24px 18px 12px 18px;
    }
    
    .onboard-icon-wrap {
        width: 72px;
        height: 72px;
        font-size: 30px;
        border-radius: 22px;
        margin-bottom: 18px;
    }
    
    .onboard-title {
        font-size: 18px;
    }
    
    .onboard-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .onboard-feature {
        padding: 12px;
    }
    
    .onboard-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    
    .onboard-feature-text strong {
        font-size: 12px;
    }
    
    .onboard-feature-text span {
        font-size: 10px;
    }
    
    .onboard-highlight {
        font-size: 13px;
        padding: 14px 16px;
    }
    
    .onboard-steps-num {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .onboard-steps-text strong {
        font-size: 12px;
    }
    
    .onboard-cta {
        padding: 14px;
        font-size: 11px;
    }
    
    .onboard-cta i {
        font-size: 20px;
    }
}

/* ================================================================ */
/* KASIR DITUTUP POPUP - PREMIUM */
/* ================================================================ */

.kasir-ditutup-popup {
    border-radius: 28px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 
        0 4px 12px rgba(30, 27, 75, 0.1),
        0 24px 64px rgba(34, 197, 94, 0.2),
        0 48px 96px rgba(34, 197, 94, 0.1) !important;
    max-width: 400px !important;
}

.kasir-ditutup-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* ---------------------------------------------------------------- */
/* WRAP */
/* ---------------------------------------------------------------- */

.kdt-wrap {
    position: relative;
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    overflow: hidden;
}

/* Ambient glow di background */
.kdt-wrap::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, 
        rgba(34, 197, 94, 0.12) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(20px);
}

.kdt-wrap::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, 
        rgba(124, 58, 237, 0.06) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(20px);
}

/* ---------------------------------------------------------------- */
/* ICON HERO */
/* ---------------------------------------------------------------- */

.kdt-icon-hero {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 32px auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 44px;
    z-index: 1;
    
    /* Default hijau */
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 
        0 12px 32px rgba(34, 197, 94, 0.35),
        0 4px 12px rgba(30, 27, 75, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
    animation: kdt-icon-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes kdt-icon-pop {
    0% { 
        opacity: 0; 
        transform: scale(0.3) rotate(-20deg);
    }
    60% { 
        transform: scale(1.1) rotate(5deg);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0);
    }
}

/* Glossy highlight */
.kdt-icon-hero::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 42%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.45) 0%, 
        transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

/* Pulsing ring (hijau = sukses) */
.kdt-icon-hero::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.4);
    animation: kdt-ring-pulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes kdt-ring-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.08);
        opacity: 0;
    }
}

/* Variant warning (selisih) */
.kdt-icon-hero.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 
        0 12px 32px rgba(245, 158, 11, 0.35),
        0 4px 12px rgba(30, 27, 75, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.kdt-icon-hero.warning::after {
    border-color: rgba(245, 158, 11, 0.4);
}

/* Variant danger (fisik lebih kecil) */
.kdt-icon-hero.danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 
        0 12px 32px rgba(220, 38, 38, 0.35),
        0 4px 12px rgba(30, 27, 75, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.kdt-icon-hero.danger::after {
    border-color: rgba(220, 38, 38, 0.4);
}

/* ---------------------------------------------------------------- */
/* TITLE & SUBTITLE */
/* ---------------------------------------------------------------- */

.kdt-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.6px;
    line-height: 1.2;
    text-align: center;
    margin: 0 24px 8px;
    position: relative;
    z-index: 1;
    animation: kdt-fade-up 0.5s ease-out 0.25s both;
}

.kdt-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.1px;
    line-height: 1.4;
    text-align: center;
    margin: 0 24px 24px;
    position: relative;
    z-index: 1;
    animation: kdt-fade-up 0.5s ease-out 0.3s both;
}

@keyframes kdt-fade-up {
    from { 
        opacity: 0; 
        transform: translateY(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* ---------------------------------------------------------------- */
/* CARD TOTAL SELISIH */
/* ---------------------------------------------------------------- */

.kdt-total-card {
    position: relative;
    margin: 0 24px 16px;
    padding: 22px 20px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    animation: kdt-fade-up 0.5s ease-out 0.35s both;
    
    /* Default hijau (sesuai) */
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 
        0 8px 24px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Glow effect */
.kdt-total-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.25) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Variant warning */
.kdt-total-card.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 
        0 8px 24px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Variant danger */
.kdt-total-card.danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 
        0 8px 24px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.kdt-total-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.kdt-total-label i {
    font-size: 12px;
    opacity: 0.9;
}

.kdt-total-value {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: white;
    letter-spacing: -1.5px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 4px;
}

.kdt-total-value .kdt-prefix {
    font-size: 22px;
    font-weight: 800;
    opacity: 0.9;
    margin-right: 2px;
    vertical-align: middle;
}

/* ---------------------------------------------------------------- */
/* STATUS BADGE */
/* ---------------------------------------------------------------- */

.kdt-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
}

.kdt-status-badge i {
    font-size: 11px;
}

/* ---------------------------------------------------------------- */
/* BREAKDOWN SISTEM vs FISIK */
/* ---------------------------------------------------------------- */

.kdt-selisih-section {
    margin: 0 24px 16px;
    position: relative;
    z-index: 1;
    animation: kdt-fade-up 0.5s ease-out 0.4s both;
}

.kdt-selisih-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.kdt-selisih-header i {
    font-size: 11px;
    color: #7c3aed;
}

.kdt-selisih-count {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(124, 58, 237, 0.06);
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.2px;
    text-transform: none;
}

.kdt-selisih-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding: 2px;
    margin: -2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.2) transparent;
}

.kdt-selisih-list::-webkit-scrollbar {
    width: 4px;
}

.kdt-selisih-list::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.2);
    border-radius: 4px;
}

/* ---------------------------------------------------------------- */
/* ITEM */
/* ---------------------------------------------------------------- */

.kdt-selisih-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 12px 18px;
    background: linear-gradient(180deg, 
        rgba(250, 249, 255, 0.6) 0%, 
        rgba(245, 243, 255, 0.4) 100%);
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
}

.kdt-selisih-item:hover {
    background: white;
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.06);
}

/* Strip warna kiri (kategori) */
.kdt-selisih-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
}

/* ---------------------------------------------------------------- */
/* ICON KATEGORI */
/* ---------------------------------------------------------------- */

.kdt-selisih-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 10px rgba(30, 27, 75, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
}

.kdt-selisih-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 100%);
    border-radius: 8px 8px 50% 50%;
    pointer-events: none;
}

/* ---------------------------------------------------------------- */
/* INFO */
/* ---------------------------------------------------------------- */

.kdt-selisih-info {
    flex: 1;
    min-width: 0;
}

.kdt-selisih-nama {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kdt-selisih-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.1px;
    line-height: 1.2;
}

.kdt-selisih-sistem {
    color: #64748b;
    text-decoration: line-through;
    text-decoration-color: rgba(148, 163, 184, 0.5);
    text-decoration-thickness: 1px;
}

.kdt-selisih-arrow {
    color: #cbd5e1;
    font-size: 9px;
    flex-shrink: 0;
}

.kdt-selisih-fisik {
    color: #1e1b4b;
    font-weight: 800;
}

/* ---------------------------------------------------------------- */
/* SELISIH VALUE */
/* ---------------------------------------------------------------- */

.kdt-selisih-value {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.3px;
    line-height: 1;
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 8px;
}

/* Fisik lebih besar (over) - kuning */
.kdt-selisih-value.over {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Fisik lebih kecil (under) - merah */
.kdt-selisih-value.under {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.kdt-selisih-value i {
    font-size: 10px;
}

/* ---------------------------------------------------------------- */
/* EMPTY STATE (kalau tidak ada selisih) */
/* ---------------------------------------------------------------- */

.kdt-selisih-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 20px;
    background: linear-gradient(135deg, 
        rgba(240, 253, 244, 0.6) 0%, 
        rgba(220, 252, 231, 0.4) 100%);
    border: 1px dashed rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    margin: 0 24px 16px;
    animation: kdt-fade-up 0.5s ease-out 0.4s both;
    position: relative;
    z-index: 1;
}

.kdt-selisih-empty i {
    font-size: 28px;
    color: #22c55e;
    opacity: 0.7;
}

.kdt-selisih-empty-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #166534;
    text-align: center;
}

.kdt-selisih-empty-sub {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #16a34a;
    opacity: 0.8;
    text-align: center;
}

/* ---------------------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------------------- */

@media (max-width: 380px) {
    .kdt-selisih-section {
        margin: 0 20px 14px;
    }
    
    .kdt-selisih-item {
        padding: 10px 12px 10px 16px;
        gap: 10px;
    }
    
    .kdt-selisih-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .kdt-selisih-nama {
        font-size: 12px;
    }
    
    .kdt-selisih-detail {
        font-size: 10px;
        gap: 4px;
    }
    
    .kdt-selisih-value {
        font-size: 11px;
        padding: 5px 8px;
        gap: 3px;
    }
    
    .kdt-selisih-empty {
        margin: 0 20px 14px;
        padding: 20px 16px;
    }
    
    .kdt-selisih-list {
        max-height: 200px;
    }
}

/* ---------------------------------------------------------------- */
/* NOTE BOX */
/* ---------------------------------------------------------------- */

.kdt-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 24px 8px;
    padding: 12px 14px;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    animation: kdt-fade-up 0.5s ease-out 0.45s both;
}

.kdt-note i {
    font-size: 14px;
    flex-shrink: 0;
}

.kdt-note.ok {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px dashed #86efac;
    color: #166534;
}

.kdt-note.ok i {
    color: #22c55e;
}

.kdt-note.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px dashed #fcd34d;
    color: #92400e;
}

.kdt-note.warning i {
    color: #f59e0b;
}

.kdt-note.danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px dashed #fca5a5;
    color: #991b1b;
}

.kdt-note.danger i {
    color: #dc2626;
}

/* ---------------------------------------------------------------- */
/* BUTTON OK */
/* ---------------------------------------------------------------- */

.kasir-ditutup-popup .swal2-actions {
    padding: 0 24px 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.kdt-btn-ok {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 15px 24px !important;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 12px rgba(34, 197, 94, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
}

.kdt-btn-ok::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 100%);
    border-radius: 999px 999px 50% 50%;
    pointer-events: none;
}

.kdt-btn-ok:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 20px rgba(34, 197, 94, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.kdt-btn-ok:active {
    transform: translateY(0) scale(0.98) !important;
}

.kdt-btn-ok i {
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.kdt-btn-ok span {
    position: relative;
    z-index: 1;
}

/* Button variant untuk warning/danger */
.kdt-btn-ok.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 
        0 4px 12px rgba(245, 158, 11, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.kdt-btn-ok.warning:hover {
    box-shadow: 
        0 8px 20px rgba(245, 158, 11, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.kdt-btn-ok.danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    box-shadow: 
        0 4px 12px rgba(220, 38, 38, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.kdt-btn-ok.danger:hover {
    box-shadow: 
        0 8px 20px rgba(220, 38, 38, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* ---------------------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------------------- */

@media (max-width: 380px) {
    .kdt-icon-hero {
        width: 84px;
        height: 84px;
        font-size: 36px;
        margin: 24px auto 16px;
    }
    
    .kdt-title {
        font-size: 20px;
        margin: 0 20px 6px;
    }
    
    .kdt-subtitle {
        font-size: 12px;
        margin: 0 20px 20px;
    }
    
    .kdt-total-card {
        margin: 0 20px 14px;
        padding: 18px 16px;
        border-radius: 18px;
    }
    
    .kdt-total-value {
        font-size: 30px;
    }
    
    .kdt-total-value .kdt-prefix {
        font-size: 18px;
    }
    
    .kdt-breakdown {
        margin: 0 20px 14px;
        gap: 8px;
    }
    
    .kdt-note {
        margin: 0 20px 8px;
        padding: 10px 12px;
        font-size: 10px;
    }
    
    .kasir-ditutup-popup .swal2-actions {
        padding: 0 20px 20px 20px !important;
    }
    
    .kdt-btn-ok {
        padding: 14px 20px !important;
        font-size: 13px !important;
    }
}

/* ================================================================ */
/* TRANSAKSI FORM POPUP - PREMIUM */
/* ================================================================ */

/* ---------------------------------------------------------------- */
/* POPUP WRAP */
/* ---------------------------------------------------------------- */

.trx-form-popup {
    border-radius: 28px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 
        0 4px 12px rgba(30, 27, 75, 0.1),
        0 24px 64px rgba(124, 58, 237, 0.2),
        0 48px 96px rgba(124, 58, 237, 0.1) !important;
    max-width: 420px !important;
}

.trx-form-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* ---------------------------------------------------------------- */
/* WRAP */
/* ---------------------------------------------------------------- */

.trx-wrap {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    overflow: hidden;
}

/* Ambient glow */
.trx-wrap::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, 
        rgba(124, 58, 237, 0.08) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(20px);
}

/* ---------------------------------------------------------------- */
/* HEADER */
/* ---------------------------------------------------------------- */

.trx-header {
    position: relative;
    padding: 24px 24px 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%);
    color: white;
    overflow: hidden;
}

.trx-header::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.25) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.trx-header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -30px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.12) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.trx-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.trx-header-icon {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.trx-header-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 42%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 100%);
    border-radius: 13px 13px 50% 50%;
    pointer-events: none;
}

.trx-header-info {
    flex: 1;
    min-width: 0;
}

.trx-header-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin-bottom: 4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.trx-header-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.2px;
    line-height: 1.3;
}

/* ---------------------------------------------------------------- */
/* BODY */
/* ---------------------------------------------------------------- */

.trx-body {
    padding: 20px 24px 8px;
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------------------- */
/* FIELD */
/* ---------------------------------------------------------------- */

.trx-field {
    margin-bottom: 16px;
    animation: trx-field-slide 0.4s ease-out backwards;
}

.trx-field:nth-child(1) { animation-delay: 0.05s; }
.trx-field:nth-child(2) { animation-delay: 0.1s; }
.trx-field:nth-child(3) { animation-delay: 0.15s; }
.trx-field:nth-child(4) { animation-delay: 0.2s; }
.trx-field:nth-child(5) { animation-delay: 0.25s; }

@keyframes trx-field-slide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trx-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 2px;
}

.trx-field-label-text {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trx-field-label-text i {
    font-size: 11px;
    color: #7c3aed;
}

.trx-field-required {
    color: #f43f5e;
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
    margin-left: 2px;
}

.trx-field-optional {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: rgba(148, 163, 184, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
}

/* ---------------------------------------------------------------- */
/* INPUT WRAPPER */
/* ---------------------------------------------------------------- */

.trx-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fafbff;
    border: 2px solid #ede9fe;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.trx-input-wrap:hover {
    border-color: #ddd6fe;
    background: #ffffff;
}

.trx-input-wrap:focus-within {
    border-color: #7c3aed;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(124, 58, 237, 0.1),
        0 4px 12px rgba(124, 58, 237, 0.08);
}

/* Icon prefix */
.trx-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a78bfa;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}

.trx-input-wrap:focus-within .trx-input-icon {
    color: #7c3aed;
}

/* Prefix text "Rp" */
.trx-input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #a78bfa;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
    letter-spacing: -0.2px;
}

.trx-input-wrap:focus-within .trx-input-prefix {
    color: #7c3aed;
}

/* Input field */
.trx-input {
    width: 100%;
    padding: 15px 16px 15px 46px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
}

.trx-input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
    letter-spacing: 0;
}

/* Input dengan prefix Rp — padding lebih besar */
.trx-input-wrap.has-prefix .trx-input {
    padding-left: 52px;
    text-align: right;
    font-size: 15px;
    font-weight: 800;
}

/* Textarea */
.trx-input.textarea {
    resize: none;
    min-height: 80px;
    padding-top: 14px;
}

/* ---------------------------------------------------------------- */
/* SELECT */
/* ---------------------------------------------------------------- */

.trx-select-wrap {
    position: relative;
    background: #fafbff;
    border: 2px solid #ede9fe;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.trx-select-wrap:hover {
    border-color: #ddd6fe;
    background: #ffffff;
}

.trx-select-wrap:focus-within {
    border-color: #7c3aed;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(124, 58, 237, 0.1),
        0 4px 12px rgba(124, 58, 237, 0.08);
}

.trx-select-wrap .trx-input-icon {
    z-index: 2;
}

.trx-select {
    width: 100%;
    padding: 15px 44px 15px 46px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    outline: none;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}

.trx-select:invalid,
.trx-select option[value=""] {
    color: #cbd5e1;
    font-weight: 500;
}

.trx-select option {
    color: #1e1b4b;
    font-weight: 600;
    background: #ffffff;
    padding: 8px;
}

.trx-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a78bfa;
    font-size: 12px;
    pointer-events: none;
    transition: all 0.25s;
    z-index: 1;
}

.trx-select-wrap:focus-within .trx-select-arrow {
    color: #7c3aed;
    transform: translateY(-50%) rotate(180deg);
}

/* ---------------------------------------------------------------- */
/* LABA PREVIEW BOX */
/* ---------------------------------------------------------------- */

.trx-laba-box {
    position: relative;
    margin: 20px 0 4px;
    padding: 16px 18px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid rgba(34, 197, 94, 0.25);
    box-shadow: 
        0 4px 12px rgba(34, 197, 94, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: trx-laba-pulse 2.5s ease-in-out infinite;
}

@keyframes trx-laba-pulse {
    0%, 100% {
        box-shadow: 
            0 4px 12px rgba(34, 197, 94, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 
            0 6px 16px rgba(34, 197, 94, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

.trx-laba-box::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, 
        rgba(34, 197, 94, 0.15) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.trx-laba-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.trx-laba-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #166534;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.trx-laba-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 10px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

.trx-laba-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 42%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 100%);
    border-radius: 8px 8px 50% 50%;
    pointer-events: none;
}

.trx-laba-value {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #166534;
    letter-spacing: -0.6px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

/* Laba negatif — bahaya */
.trx-laba-box.danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: rgba(220, 38, 38, 0.25);
}

.trx-laba-box.danger .trx-laba-label {
    color: #991b1b;
}

.trx-laba-box.danger .trx-laba-icon {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 
        0 4px 10px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.trx-laba-box.danger .trx-laba-value {
    color: #991b1b;
}

/* ---------------------------------------------------------------- */
/* ACTIONS */
/* ---------------------------------------------------------------- */

.trx-form-popup .swal2-actions {
    display: flex !important;
    gap: 10px !important;
    padding: 16px 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.trx-btn-cancel {
    flex: 1 !important;
    padding: 15px 20px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.trx-btn-cancel:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

.trx-btn-cancel:active {
    transform: scale(0.98) !important;
}

.trx-btn-confirm {
    flex: 1.4 !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.trx-btn-confirm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 100%);
    border-radius: 999px 999px 50% 50%;
    pointer-events: none;
}

.trx-btn-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 20px rgba(124, 58, 237, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.trx-btn-confirm:active {
    transform: translateY(0) scale(0.98) !important;
}

.trx-btn-confirm i,
.trx-btn-confirm span {
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------------------- */
/* CLOSE BUTTON */
/* ---------------------------------------------------------------- */

.trx-form-popup .swal2-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: white !important;
    font-size: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.trx-form-popup .swal2-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

.trx-form-popup .swal2-close:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

/* ---------------------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------------------- */

@media (max-width: 380px) {
    .trx-form-popup {
        border-radius: 24px !important;
    }
    
    .trx-header {
        padding: 20px 20px 16px;
    }
    
    .trx-header-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 14px;
    }
    
    .trx-header-title {
        font-size: 16px;
    }
    
    .trx-header-subtitle {
        font-size: 10px;
    }
    
    .trx-body {
        padding: 16px 20px 6px;
    }
    
    .trx-field {
        margin-bottom: 14px;
    }
    
    .trx-input {
        padding: 13px 14px 13px 42px;
        font-size: 13px;
    }
    
    .trx-input-wrap.has-prefix .trx-input {
        padding-left: 46px;
        font-size: 14px;
    }
    
    .trx-select {
        padding: 13px 40px 13px 42px;
        font-size: 13px;
    }
    
    .trx-input-icon,
    .trx-input-prefix {
        left: 14px;
        font-size: 12px;
    }
    
    .trx-laba-box {
        padding: 14px 16px;
    }
    
    .trx-laba-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .trx-laba-value {
        font-size: 17px;
    }
    
    .trx-form-popup .swal2-actions {
        padding: 14px 20px 20px !important;
    }
    
    .trx-btn-cancel,
    .trx-btn-confirm {
        padding: 13px 16px !important;
        font-size: 13px !important;
    }
}

/* Field yang bisa show/hide */
.trx-field-hidden {
    display: none;
    animation: trx-field-slide 0.3s ease-out;
}

.trx-field[data-field-id="provider_lainnya"]:not(.trx-field-hidden) {
    animation: trx-field-slide 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================================================ */
/* TRANSAKSI BERHASIL POPUP - PREMIUM */
/* ================================================================ */

.tx-success-popup {
    border-radius: 28px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 
        0 4px 12px rgba(30, 27, 75, 0.1),
        0 24px 64px rgba(34, 197, 94, 0.2),
        0 48px 96px rgba(34, 197, 94, 0.1) !important;
    max-width: 400px !important;
}

.tx-success-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* ---------------------------------------------------------------- */
/* WRAP */
/* ---------------------------------------------------------------- */

.tx-success-wrap {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    overflow: hidden;
    padding: 0;
}

/* Ambient glow hijau */
.tx-success-wrap::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, 
        rgba(34, 197, 94, 0.15) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(20px);
}

.tx-success-wrap::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, 
        rgba(124, 58, 237, 0.08) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(20px);
}

/* ---------------------------------------------------------------- */
/* ICON HERO */
/* ---------------------------------------------------------------- */

.tx-success-icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 28px auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 42px;
    z-index: 1;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 
        0 12px 32px rgba(34, 197, 94, 0.35),
        0 4px 12px rgba(30, 27, 75, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
    animation: tx-success-icon-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes tx-success-icon-pop {
    0% { 
        opacity: 0; 
        transform: scale(0.3) rotate(-20deg);
    }
    60% { 
        transform: scale(1.1) rotate(5deg);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0);
    }
}

.tx-success-icon::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 42%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.45) 0%, 
        transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

/* Pulsing ring */
.tx-success-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.4);
    animation: tx-success-ring 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tx-success-ring {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.08);
        opacity: 0;
    }
}

/* ---------------------------------------------------------------- */
/* TITLE & SUBTITLE */
/* ---------------------------------------------------------------- */

.tx-success-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.6px;
    line-height: 1.2;
    text-align: center;
    margin: 0 24px 6px;
    position: relative;
    z-index: 1;
    animation: tx-success-fade 0.5s ease-out 0.2s both;
}

.tx-success-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.1px;
    line-height: 1.4;
    text-align: center;
    margin: 0 24px 22px;
    position: relative;
    z-index: 1;
    animation: tx-success-fade 0.5s ease-out 0.25s both;
}

.tx-success-subtitle strong {
    color: #7c3aed;
    font-weight: 800;
}

@keyframes tx-success-fade {
    from { 
        opacity: 0; 
        transform: translateY(8px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* ---------------------------------------------------------------- */
/* LABA CARD */
/* ---------------------------------------------------------------- */

.tx-success-laba {
    position: relative;
    margin: 0 24px 16px;
    padding: 20px 20px 18px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 
        0 8px 24px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: tx-success-fade 0.5s ease-out 0.3s both;
}

.tx-success-laba::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.25) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tx-success-laba-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.tx-success-laba-label i {
    font-size: 12px;
}

.tx-success-laba-value {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: white;
    letter-spacing: -1.5px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ---------------------------------------------------------------- */
/* BREAKDOWN (Keluar / Masuk) */
/* ---------------------------------------------------------------- */

.tx-success-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 24px 16px;
    position: relative;
    z-index: 1;
    animation: tx-success-fade 0.5s ease-out 0.35s both;
}

.tx-success-breakdown-item {
    padding: 14px 12px;
    background: linear-gradient(180deg, 
        rgba(248, 245, 255, 0.5) 0%, 
        rgba(250, 249, 255, 0.3) 100%);
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 14px;
    text-align: center;
}

.tx-success-breakdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
    margin: 0 auto 8px;
    position: relative;
    box-shadow: 
        0 4px 10px rgba(30, 27, 75, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tx-success-breakdown-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 100%);
    border-radius: 8px 8px 50% 50%;
    pointer-events: none;
}

.tx-success-breakdown-icon.keluar {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.tx-success-breakdown-icon.masuk {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.tx-success-breakdown-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.tx-success-breakdown-value {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.3px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-success-breakdown-item.keluar .tx-success-breakdown-value {
    color: #dc2626;
}

.tx-success-breakdown-item.masuk .tx-success-breakdown-value {
    color: #16a34a;
}

/* ---------------------------------------------------------------- */
/* NOTE BOX (Tip) */
/* ---------------------------------------------------------------- */

.tx-success-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 24px 8px;
    padding: 12px 14px;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    border: 1px dashed rgba(124, 58, 237, 0.2);
    color: #6d28d9;
    animation: tx-success-fade 0.5s ease-out 0.4s both;
}

.tx-success-note i {
    font-size: 14px;
    color: #7c3aed;
    flex-shrink: 0;
}

.tx-success-note strong {
    font-weight: 800;
    color: #5b21b6;
}

/* ---------------------------------------------------------------- */
/* ACTIONS */
/* ---------------------------------------------------------------- */

.tx-success-popup .swal2-actions {
    display: flex !important;
    gap: 10px !important;
    padding: 16px 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tx-btn-print {
    flex: 1 !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.tx-btn-print::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 100%);
    border-radius: 999px 999px 50% 50%;
    pointer-events: none;
}

.tx-btn-print:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 20px rgba(124, 58, 237, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.tx-btn-print:active {
    transform: translateY(0) scale(0.98) !important;
}

.tx-btn-print i,
.tx-btn-print span {
    position: relative;
    z-index: 1;
}

.tx-btn-selesai {
    flex: 1 !important;
    padding: 15px 20px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.tx-btn-selesai:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

.tx-btn-selesai:active {
    transform: scale(0.98) !important;
}

/* ---------------------------------------------------------------- */
/* CLOSE BUTTON */
/* ---------------------------------------------------------------- */

.tx-success-popup .swal2-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(34, 197, 94, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #16a34a !important;
    font-size: 14px !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.tx-success-popup .swal2-close:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: white !important;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35) !important;
}

.tx-success-popup .swal2-close:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2) !important;
}

/* ---------------------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------------------- */

@media (max-width: 380px) {
    .tx-success-popup {
        border-radius: 24px !important;
    }
    
    .tx-success-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
        margin: 24px auto 14px;
    }
    
    .tx-success-title {
        font-size: 20px;
        margin: 0 20px 6px;
    }
    
    .tx-success-subtitle {
        font-size: 12px;
        margin: 0 20px 18px;
    }
    
    .tx-success-laba {
        margin: 0 20px 14px;
        padding: 16px 16px 14px;
        border-radius: 18px;
    }
    
    .tx-success-laba-value {
        font-size: 30px;
    }
    
    .tx-success-breakdown {
        margin: 0 20px 14px;
        gap: 8px;
    }
    
    .tx-success-breakdown-item {
        padding: 12px 10px;
    }
    
    .tx-success-breakdown-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .tx-success-note {
        margin: 0 20px 8px;
        padding: 10px 12px;
        font-size: 10px;
    }
    
    .tx-success-popup .swal2-actions {
        padding: 14px 20px 20px !important;
    }
    
    .tx-btn-print,
    .tx-btn-selesai {
        padding: 13px 16px !important;
        font-size: 13px !important;
    }
}

/* ================================================================ */
/* TRX FIELD ROW - 2 KOLOM (Tanggal & Waktu) */
/* ================================================================ */

.trx-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
    animation: trx-field-slide 0.4s ease-out backwards;
    animation-delay: 0.02s;
}

.trx-field-row .trx-field {
    margin-bottom: 0;   /* Override margin dari .trx-field */
}

/* Input date/time di dalam row — biar padding lebih kecil */
.trx-field-row .trx-input-wrap .trx-input {
    padding: 15px 12px 15px 42px;
    font-size: 13px;
}

.trx-field-row .trx-input-icon {
    left: 14px;
    font-size: 13px;
}

/* Tanggal: icon calendar */
.trx-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    filter: invert(38%) sepia(94%) saturate(3657%) hue-rotate(249deg) brightness(87%) contrast(101%);
    margin-right: 2px;
    transition: all 0.2s;
}

/* Waktu: icon clock */
.trx-input-wrap input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    filter: invert(38%) sepia(94%) saturate(3657%) hue-rotate(249deg) brightness(87%) contrast(101%);
    margin-right: 2px;
    transition: all 0.2s;
}

.trx-input-wrap input[type="date"]::-webkit-calendar-picker-indicator:hover,
.trx-input-wrap input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Responsive — layar kecil tetap 2 kolom tapi lebih rapat */
@media (max-width: 380px) {
    .trx-field-row {
        gap: 8px;
        margin-bottom: 14px;
    }
    
    .trx-field-row .trx-input-wrap .trx-input {
        padding: 13px 10px 13px 38px;
        font-size: 12px;
    }
    
    .trx-field-row .trx-input-icon {
        left: 12px;
        font-size: 12px;
    }
    
    /* Label lebih kecil */
    .trx-field-row .trx-field-label-text {
        font-size: 10px;
    }
    
    .trx-field-row .trx-field-required {
        font-size: 11px;
    }
}

/* ================================================================ */
/* SALDO ACCORDION - PREMIUM */
/* ================================================================ */

.trx-saldo-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

/* ---------------------------------------------------------------- */
/* KATEGORI (Item utama) */
/* ---------------------------------------------------------------- */

.trx-saldo-kategori {
    background: #fafbff;
    border: 1.5px solid #ede9fe;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.trx-saldo-kategori:hover {
    border-color: #ddd6fe;
    background: #ffffff;
}

.trx-saldo-kategori.expanded {
    border-color: rgba(124, 58, 237, 0.3);
    background: #ffffff;
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.08),
        0 0 0 3px rgba(124, 58, 237, 0.04);
}

/* ---------------------------------------------------------------- */
/* HEADER KATEGORI */
/* ---------------------------------------------------------------- */

.trx-saldo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.trx-saldo-header:hover {
    background: rgba(124, 58, 237, 0.02);
}

/* Icon kategori */
.trx-saldo-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 
        0 3px 8px rgba(30, 27, 75, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

.trx-saldo-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 8px 8px 50% 50%;
    pointer-events: none;
}

/* Info kategori */
.trx-saldo-info {
    flex: 1;
    min-width: 0;
}

.trx-saldo-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trx-saldo-count {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.15);
    padding: 1px 6px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.trx-saldo-total {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.1px;
    line-height: 1.2;
}

/* Chevron */
.trx-saldo-chevron {
    color: #a78bfa;
    font-size: 11px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.1);
}

.trx-saldo-kategori.expanded .trx-saldo-chevron {
    transform: rotate(180deg);
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.15);
}

/* ---------------------------------------------------------------- */
/* BODY KATEGORI (List akun) */
/* ---------------------------------------------------------------- */

.trx-saldo-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border-top: 0 solid #ede9fe;
}

.trx-saldo-kategori.expanded .trx-saldo-body {
    max-height: 500px;
    border-top: 1px solid #ede9fe;
    overflow-y: auto;
}

.trx-saldo-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ---------------------------------------------------------------- */
/* AKUN ITEM */
/* ---------------------------------------------------------------- */

.trx-saldo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.trx-saldo-item:hover {
    background: #faf5ff;
    border-color: rgba(124, 58, 237, 0.15);
    transform: translateX(2px);
}

.trx-saldo-item.selected {
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 
        0 2px 8px rgba(124, 58, 237, 0.08),
        0 0 0 3px rgba(124, 58, 237, 0.04);
}

/* Radio indicator */
.trx-saldo-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: white;
}

.trx-saldo-item.selected .trx-saldo-radio {
    border-color: #7c3aed;
    background: #7c3aed;
}

.trx-saldo-radio i {
    color: white;
    font-size: 9px;
    opacity: 0;
    transition: opacity 0.2s;
}

.trx-saldo-item.selected .trx-saldo-radio i {
    opacity: 1;
}

/* Info akun */
.trx-saldo-item-info {
    flex: 1;
    min-width: 0;
}

.trx-saldo-item-nama {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #1e1b4b;
    letter-spacing: -0.1px;
    line-height: 1.2;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trx-saldo-item-pemilik {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.1px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Saldo value */
.trx-saldo-item-value {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 900;
    color: #16a34a;
    letter-spacing: -0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

.trx-saldo-item-value.zero {
    color: #cbd5e1;
    font-weight: 700;
}

/* ---------------------------------------------------------------- */
/* EMPTY STATE */
/* ---------------------------------------------------------------- */

.trx-saldo-empty {
    padding: 16px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    background: #fafbff;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

.trx-saldo-empty i {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
    opacity: 0.5;
    color: #cbd5e1;
}

/* ---------------------------------------------------------------- */
/* SELECTED DISPLAY (di bawah accordion) */
/* ---------------------------------------------------------------- */

.trx-saldo-selected {
    margin-top: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: trx-selected-slide 0.3s ease-out;
}

@keyframes trx-selected-slide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.trx-saldo-selected-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.25);
}

.trx-saldo-selected-info {
    flex: 1;
    min-width: 0;
}

.trx-saldo-selected-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #166534;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.trx-saldo-selected-value {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #166534;
    letter-spacing: -0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------------------- */

@media (max-width: 380px) {
    .trx-saldo-header {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .trx-saldo-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .trx-saldo-label {
        font-size: 12px;
    }
    
    .trx-saldo-item {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .trx-saldo-item-nama {
        font-size: 11px;
    }
    
    .trx-saldo-item-value {
        font-size: 11px;
    }
}

/* ================================================================ */
/* TRX SECTION HEADER - Untuk Sumber Saldo & Pembayaran */
/* ================================================================ */

.trx-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* Variant: Sumber Saldo (ungu) */
.trx-section-header.sumber {
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.08) 0%, 
        rgba(168, 85, 247, 0.05) 100%);
    border: 1.5px solid rgba(124, 58, 237, 0.15);
}

/* Variant: Pembayaran (hijau) */
.trx-section-header.pembayaran {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.08) 0%, 
        rgba(22, 163, 74, 0.05) 100%);
    border: 1.5px solid rgba(34, 197, 94, 0.15);
}

/* Accent bar kiri */
.trx-section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.trx-section-header.sumber::before {
    background: linear-gradient(180deg, #7c3aed, #d946ef);
}

.trx-section-header.pembayaran::before {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

/* Icon */
.trx-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 10px rgba(30, 27, 75, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.trx-section-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.35) 0%, 
        transparent 100%);
    border-radius: 8px 8px 50% 50%;
    pointer-events: none;
}

.trx-section-header.sumber .trx-section-icon {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.trx-section-header.pembayaran .trx-section-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Text */
.trx-section-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.trx-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.4px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trx-section-header.sumber .trx-section-title {
    color: #5b21b6;
}

.trx-section-header.pembayaran .trx-section-title {
    color: #166534;
}

.trx-section-title .trx-section-required {
    color: #f43f5e;
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
}

.trx-section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-top: 2px;
    line-height: 1.2;
}

.trx-section-header.sumber .trx-section-subtitle {
    color: #7c3aed;
    opacity: 0.8;
}

.trx-section-header.pembayaran .trx-section-subtitle {
    color: #16a34a;
    opacity: 0.9;
}

/* ---------------------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------------------- */

@media (max-width: 380px) {
    .trx-section-header {
        padding: 8px 10px;
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .trx-section-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .trx-section-title {
        font-size: 14px;
    }
    
    .trx-section-title .trx-section-required {
        font-size: 14px;
    }
    
    .trx-section-subtitle {
        font-size: 9px;
    }
}

/* ================================================================ */
/* TRX COLLAPSIBLE SECTION (Sumber & Pembayaran) */
/* ================================================================ */

.trx-collapsible {
    margin-bottom: 16px;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: trx-field-slide 0.4s ease-out backwards;
}

/* Variant Sumber Saldo */
.trx-collapsible.sumber {
    border: 1.5px solid rgba(124, 58, 237, 0.15);
    background: #ffffff;
}

.trx-collapsible.sumber.expanded {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.1),
        0 0 0 3px rgba(124, 58, 237, 0.04);
}

/* Variant Pembayaran */
.trx-collapsible.pembayaran {
    border: 1.5px solid rgba(34, 197, 94, 0.15);
    background: #ffffff;
}

.trx-collapsible.pembayaran.expanded {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 
        0 4px 12px rgba(34, 197, 94, 0.1),
        0 0 0 3px rgba(34, 197, 94, 0.04);
}

/* ---------------------------------------------------------------- */
/* HEADER (yang bisa diklik) */
/* ---------------------------------------------------------------- */

.trx-collapsible-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    position: relative;
}

.trx-collapsible-header:hover {
    background: rgba(124, 58, 237, 0.02);
}

.trx-collapsible.pembayaran .trx-collapsible-header:hover {
    background: rgba(34, 197, 94, 0.02);
}

/* Accent bar kiri */
.trx-collapsible::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    z-index: 2;
    border-radius: 4px 0 0 4px;
    opacity: 0.8;
}

.trx-collapsible.sumber::before {
    background: linear-gradient(180deg, #7c3aed, #d946ef);
}

.trx-collapsible.pembayaran::before {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

/* Icon */
.trx-collapsible-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(30, 27, 75, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.25s;
}

.trx-collapsible-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.35) 0%, 
        transparent 100%);
    border-radius: 10px 10px 50% 50%;
    pointer-events: none;
}

.trx-collapsible.sumber .trx-collapsible-icon {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.trx-collapsible.pembayaran .trx-collapsible-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Text */
.trx-collapsible-text {
    flex: 1;
    min-width: 0;
}

.trx-collapsible-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.3px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.trx-collapsible.sumber .trx-collapsible-title {
    color: #5b21b6;
}

.trx-collapsible.pembayaran .trx-collapsible-title {
    color: #166534;
}

.trx-collapsible-title .required {
    color: #f43f5e;
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
}

/* Subtitle / summary */
.trx-collapsible-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trx-collapsible.sumber .trx-collapsible-subtitle {
    color: #7c3aed;
    opacity: 0.75;
}

.trx-collapsible.pembayaran .trx-collapsible-subtitle {
    color: #16a34a;
    opacity: 0.85;
}

/* Selected state (saat sudah pilih akun) */
.trx-collapsible-subtitle.has-selected {
    font-weight: 800;
}

.trx-collapsible-subtitle .selected-icon {
    font-size: 10px;
    opacity: 0.9;
}

/* Chevron */
.trx-collapsible-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.trx-collapsible.sumber .trx-collapsible-chevron {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.trx-collapsible.pembayaran .trx-collapsible-chevron {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.trx-collapsible.expanded .trx-collapsible-chevron {
    transform: rotate(180deg);
}

.trx-collapsible.sumber.expanded .trx-collapsible-chevron {
    background: rgba(124, 58, 237, 0.2);
}

.trx-collapsible.pembayaran.expanded .trx-collapsible-chevron {
    background: rgba(34, 197, 94, 0.2);
}

/* ---------------------------------------------------------------- */
/* BODY (collapsible content) */
/* ---------------------------------------------------------------- */

.trx-collapsible-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafbff;
    border-top: 0 solid transparent;
}

.trx-collapsible.expanded .trx-collapsible-body {
    max-height: 800px;
    overflow-y: auto;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.trx-collapsible.pembayaran.expanded .trx-collapsible-body {
    border-top-color: rgba(34, 197, 94, 0.1);
}

.trx-collapsible-body-inner {
    padding: 12px;
}

/* ---------------------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------------------- */

@media (max-width: 380px) {
    .trx-collapsible {
        margin-bottom: 14px;
    }
    
    .trx-collapsible-header {
        padding: 12px 14px;
        gap: 8px;
    }
    
    .trx-collapsible-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .trx-collapsible-title {
        font-size: 13px;
    }
    
    .trx-collapsible-subtitle {
        font-size: 10px;
    }
    
    .trx-collapsible-chevron {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .trx-collapsible-body-inner {
        padding: 10px;
    }
}

/* ================================================================ */
/* EXPIRED SUBSCRIPTION POPUP - PREMIUM */
/* ================================================================ */

.expired-popup {
    border-radius: 28px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 
        0 4px 12px rgba(30, 27, 75, 0.1),
        0 24px 64px rgba(245, 158, 11, 0.2),
        0 48px 96px rgba(245, 158, 11, 0.1) !important;
    max-width: 400px !important;
}

.expired-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.expired-icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 42px;
    z-index: 1;
}

.expired-icon::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.expired-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.4);
    animation: expired-ring 2.5s ease-in-out infinite;
    pointer-events: none;
}

.expired-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.6px;
    line-height: 1.2;
    text-align: center;
    margin: 0 24px 6px;
    position: relative;
    z-index: 1;
}

.expired-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.1px;
    line-height: 1.4;
    text-align: center;
    margin: 0 24px 22px;
    position: relative;
    z-index: 1;
}

.expired-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 24px 8px;
    padding: 12px 14px;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Button OK / Primary */
.expired-btn-primary {
    flex: 1.4 !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.expired-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4) !important;
}

.expired-btn-cancel {
    flex: 1 !important;
    padding: 15px 20px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.expired-btn-cancel:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

.expired-popup .swal2-actions {
    display: flex !important;
    gap: 10px !important;
    padding: 16px 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ---------------------------------------------------------------- */
/* WRAP */
/* ---------------------------------------------------------------- */

.expired-wrap {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
    overflow: hidden;
    padding: 0;
}

/* Ambient glow orange */
.expired-wrap::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, 
        rgba(245, 158, 11, 0.15) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(20px);
}

.expired-wrap::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, 
        rgba(220, 38, 38, 0.06) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(20px);
}

/* ---------------------------------------------------------------- */
/* ICON HERO */
/* ---------------------------------------------------------------- */

.expired-icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 28px auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 42px;
    z-index: 1;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 
        0 12px 32px rgba(245, 158, 11, 0.35),
        0 4px 12px rgba(30, 27, 75, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
    animation: expired-icon-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes expired-icon-pop {
    0% { 
        opacity: 0; 
        transform: scale(0.3) rotate(-20deg);
    }
    60% { 
        transform: scale(1.1) rotate(5deg);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0);
    }
}

.expired-icon::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 42%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.45) 0%, 
        transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

/* Pulsing ring */
.expired-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.4);
    animation: expired-ring 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes expired-ring {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.08);
        opacity: 0;
    }
}

/* ---------------------------------------------------------------- */
/* TITLE & SUBTITLE */
/* ---------------------------------------------------------------- */

.expired-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.6px;
    line-height: 1.2;
    text-align: center;
    margin: 0 24px 6px;
    position: relative;
    z-index: 1;
    animation: expired-fade 0.5s ease-out 0.2s both;
}

.expired-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.1px;
    line-height: 1.4;
    text-align: center;
    margin: 0 24px 22px;
    position: relative;
    z-index: 1;
    animation: expired-fade 0.5s ease-out 0.25s both;
}

@keyframes expired-fade {
    from { 
        opacity: 0; 
        transform: translateY(8px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* ---------------------------------------------------------------- */
/* STATUS CARD */
/* ---------------------------------------------------------------- */

.expired-status {
    position: relative;
    margin: 0 24px 16px;
    padding: 18px 20px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 
        0 8px 24px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: expired-fade 0.5s ease-out 0.3s both;
}

.expired-status::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.25) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.expired-status-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.expired-status-label i {
    font-size: 11px;
}

.expired-status-value {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.8px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.expired-status-value i {
    font-size: 20px;
    opacity: 0.9;
}

/* ---------------------------------------------------------------- */
/* LOCKED FEATURES GRID */
/* ---------------------------------------------------------------- */

.expired-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 24px 16px;
    position: relative;
    z-index: 1;
    animation: expired-fade 0.5s ease-out 0.35s both;
}

.expired-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, 
        rgba(254, 242, 242, 0.6) 0%, 
        rgba(254, 226, 226, 0.3) 100%);
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 12px;
}

.expired-feature-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 
        0 3px 8px rgba(220, 38, 38, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
}

.expired-feature-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 100%);
    border-radius: 6px 6px 50% 50%;
    pointer-events: none;
}

.expired-feature-text {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #991b1b;
    letter-spacing: -0.1px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- */
/* NOTE BOX */
/* ---------------------------------------------------------------- */

.expired-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 24px 8px;
    padding: 12px 14px;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    border: 1px dashed rgba(124, 58, 237, 0.2);
    color: #6d28d9;
    animation: expired-fade 0.5s ease-out 0.4s both;
}

.expired-note i {
    font-size: 14px;
    color: #7c3aed;
    flex-shrink: 0;
}

.expired-note strong {
    font-weight: 800;
    color: #5b21b6;
}

/* ---------------------------------------------------------------- */
/* ACTIONS */
/* ---------------------------------------------------------------- */

.expired-popup .swal2-actions {
    display: flex !important;
    gap: 10px !important;
    padding: 16px 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.expired-btn-primary {
    flex: 1.4 !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.expired-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 100%);
    border-radius: 999px 999px 50% 50%;
    pointer-events: none;
}

.expired-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 20px rgba(124, 58, 237, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.expired-btn-primary:active {
    transform: translateY(0) scale(0.98) !important;
}

.expired-btn-primary i,
.expired-btn-primary span {
    position: relative;
    z-index: 1;
}

.expired-btn-cancel {
    flex: 1 !important;
    padding: 15px 20px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.expired-btn-cancel:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

.expired-btn-cancel:active {
    transform: scale(0.98) !important;
}

/* ---------------------------------------------------------------- */
/* CLOSE BUTTON */
/* ---------------------------------------------------------------- */

.expired-popup .swal2-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(245, 158, 11, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #d97706 !important;
    font-size: 14px !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.expired-popup .swal2-close:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35) !important;
}

.expired-popup .swal2-close:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

/* ---------------------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------------------- */

@media (max-width: 380px) {
    .expired-popup {
        border-radius: 24px !important;
    }
    
    .expired-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
        margin: 24px auto 14px;
    }
    
    .expired-title {
        font-size: 20px;
        margin: 0 20px 6px;
    }
    
    .expired-subtitle {
        font-size: 12px;
        margin: 0 20px 18px;
    }
    
    .expired-status {
        margin: 0 20px 14px;
        padding: 16px 16px 14px;
        border-radius: 18px;
    }
    
    .expired-status-value {
        font-size: 20px;
    }
    
    .expired-features {
        margin: 0 20px 14px;
        gap: 6px;
    }
    
    .expired-feature {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .expired-feature-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .expired-feature-text {
        font-size: 10px;
    }
    
    .expired-note {
        margin: 0 20px 8px;
        padding: 10px 12px;
        font-size: 10px;
    }
    
    .expired-popup .swal2-actions {
        padding: 14px 20px 20px !important;
    }
    
    .expired-btn-primary,
    .expired-btn-cancel {
        padding: 13px 16px !important;
        font-size: 13px !important;
    }
}

/* ================================================================ */
/* TARIK TUNAI - STYLE KARTU SALDO (Akun Tujuan & Kas) */
/* ================================================================ */

/* ---------------------------------------------------------------- */
/* AKUN TUJUAN (Saldo Bertambah) — HIJAU */
/* ---------------------------------------------------------------- */

.trx-saldo-accordion-non_kas_ppob .trx-saldo-kategori,
.trx-saldo-accordion-non_kas .trx-saldo-kategori {
    border-color: rgba(34, 197, 94, 0.4);
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
}

.trx-saldo-accordion-non_kas_ppob .trx-saldo-kategori.expanded,
.trx-saldo-accordion-non_kas .trx-saldo-kategori.expanded {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(180deg, #f0fdf4 0%, #fafffb 100%);
    box-shadow: 
        0 4px 12px rgba(34, 197, 94, 0.08),
        0 0 0 3px rgba(34, 197, 94, 0.04);
}

/* Header kategori hijau */
.trx-saldo-accordion-non_kas_ppob .trx-saldo-header:hover,
.trx-saldo-accordion-non_kas .trx-saldo-header:hover {
    background: rgba(34, 197, 94, 0.04);
}

.trx-saldo-accordion-non_kas_ppob .trx-saldo-count,
.trx-saldo-accordion-non_kas .trx-saldo-count {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.trx-saldo-accordion-non_kas_ppob .trx-saldo-total,
.trx-saldo-accordion-non_kas .trx-saldo-total {
    color: #15803d;
}

.trx-saldo-accordion-non_kas_ppob .trx-saldo-chevron,
.trx-saldo-accordion-non_kas .trx-saldo-chevron {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.trx-saldo-accordion-non_kas_ppob .trx-saldo-kategori.expanded .trx-saldo-chevron,
.trx-saldo-accordion-non_kas .trx-saldo-kategori.expanded .trx-saldo-chevron {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.2);
}

/* Body list hijau */
.trx-saldo-accordion-non_kas_ppob .trx-saldo-body,
.trx-saldo-accordion-non_kas .trx-saldo-body {
    background: linear-gradient(180deg, #fafffb 0%, #f0fdf4 100%);
    border-top-color: rgba(34, 197, 94, 0.15);
}

/* Item akun hijau */
.trx-saldo-accordion-non_kas_ppob .trx-saldo-item,
.trx-saldo-accordion-non_kas .trx-saldo-item {
    background: white;
    border-color: transparent;
}

.trx-saldo-accordion-non_kas_ppob .trx-saldo-item:hover,
.trx-saldo-accordion-non_kas .trx-saldo-item:hover {
    background: #f0fdf4;
    border-color: rgba(34, 197, 94, 0.25);
}

.trx-saldo-accordion-non_kas_ppob .trx-saldo-item.selected,
.trx-saldo-accordion-non_kas .trx-saldo-item.selected {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 
        0 2px 8px rgba(34, 197, 94, 0.1),
        0 0 0 3px rgba(34, 197, 94, 0.05);
}

/* Radio hijau */
.trx-saldo-accordion-non_kas_ppob .trx-saldo-item.selected .trx-saldo-radio,
.trx-saldo-accordion-non_kas .trx-saldo-item.selected .trx-saldo-radio {
    border-color: #22c55e;
    background: #22c55e;
}

/* Value hijau */
.trx-saldo-accordion-non_kas_ppob .trx-saldo-item-value,
.trx-saldo-accordion-non_kas .trx-saldo-item-value {
    color: #16a34a;
}

/* ---------------------------------------------------------------- */
/* POTONG KAS (Saldo Berkurang) — MERAH/ORANGE */
/* ---------------------------------------------------------------- */

.trx-saldo-accordion-kas_only .trx-saldo-kategori {
    border-color: rgba(239, 68, 68, 0.15);
    background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
}

.trx-saldo-accordion-kas_only .trx-saldo-kategori.expanded {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(180deg, #fef2f2 0%, #fffbfb 100%);
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.08),
        0 0 0 3px rgba(239, 68, 68, 0.04);
}

/* Header kategori merah */
.trx-saldo-accordion-kas_only .trx-saldo-header:hover {
    background: rgba(239, 68, 68, 0.04);
}

.trx-saldo-accordion-kas_only .trx-saldo-count {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.trx-saldo-accordion-kas_only .trx-saldo-total {
    color: #b91c1c;
}

.trx-saldo-accordion-kas_only .trx-saldo-chevron {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.trx-saldo-accordion-kas_only .trx-saldo-kategori.expanded .trx-saldo-chevron {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.2);
}

/* Body list merah */
.trx-saldo-accordion-kas_only .trx-saldo-body {
    background: linear-gradient(180deg, #fffbfb 0%, #fef2f2 100%);
    border-top-color: rgba(239, 68, 68, 0.15);
}

/* Item akun merah */
.trx-saldo-accordion-kas_only .trx-saldo-item {
    background: white;
    border-color: transparent;
}

.trx-saldo-accordion-kas_only .trx-saldo-item:hover {
    background: #fef2f2;
    border-color: rgba(239, 68, 68, 0.25);
}

.trx-saldo-accordion-kas_only .trx-saldo-item.selected {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 
        0 2px 8px rgba(239, 68, 68, 0.1),
        0 0 0 3px rgba(239, 68, 68, 0.05);
}

/* Radio merah */
.trx-saldo-accordion-kas_only .trx-saldo-item.selected .trx-saldo-radio {
    border-color: #ef4444;
    background: #ef4444;
}

/* Value merah */
.trx-saldo-accordion-kas_only .trx-saldo-item-value {
    color: #dc2626;
}

/* ---------------------------------------------------------------- */
/* ENHANCE ICON KATEGORI */
/* ---------------------------------------------------------------- */

/* Icon kategori akun tujuan — hijau glow */
.trx-saldo-accordion-non_kas_ppob .trx-saldo-icon,
.trx-saldo-accordion-non_kas .trx-saldo-icon {
    box-shadow: 
        0 4px 10px rgba(34, 197, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Icon kategori kas — merah glow */
.trx-saldo-accordion-kas_only .trx-saldo-icon {
    box-shadow: 
        0 4px 10px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ---------------------------------------------------------------- */
/* COLLAPSIBLE HEADER — Tambah Indikator Visual */
/* ---------------------------------------------------------------- */

/* Akun Tujuan — icon hijau */
.trx-collapsible.non_kas_ppob {
    border: 2px solid rgba(34, 197, 94, 0.5);
}

.trx-collapsible.non_kas_ppob::before {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.trx-collapsible.non_kas_ppob.expanded {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 
        0 4px 12px rgba(34, 197, 94, 0.1),
        0 0 0 3px rgba(34, 197, 94, 0.04);
}

.trx-collapsible.non_kas_ppob .trx-collapsible-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.trx-collapsible.non_kas_ppob .trx-collapsible-title {
    color: #166534;
}

.trx-collapsible.non_kas_ppob .trx-collapsible-subtitle {
    color: #16a34a;
    opacity: 0.85;
}

.trx-collapsible.non_kas_ppob .trx-collapsible-chevron {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.trx-collapsible.non_kas_ppob.expanded .trx-collapsible-chevron {
    background: rgba(34, 197, 94, 0.2);
}

/* Potong Kas — icon merah */
.trx-collapsible.kas_only {
    border: 2px solid rgba(239, 68, 68, 0.5);
}

.trx-collapsible.kas_only::before {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

.trx-collapsible.kas_only.expanded {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.1),
        0 0 0 3px rgba(239, 68, 68, 0.04);
}

.trx-collapsible.kas_only .trx-collapsible-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.trx-collapsible.kas_only .trx-collapsible-title {
    color: #991b1b;
}

.trx-collapsible.kas_only .trx-collapsible-subtitle {
    color: #dc2626;
    opacity: 0.85;
}

.trx-collapsible.kas_only .trx-collapsible-chevron {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.trx-collapsible.kas_only.expanded .trx-collapsible-chevron {
    background: rgba(239, 68, 68, 0.2);
}

.trx-collapsible.kas_only .trx-collapsible-header:hover {
    background: rgba(239, 68, 68, 0.02);
}

/* ---------------------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------------------- */

@media (max-width: 380px) {
    .trx-saldo-accordion-non_kas_ppob .trx-saldo-item,
    .trx-saldo-accordion-non_kas .trx-saldo-item,
    .trx-saldo-accordion-kas_only .trx-saldo-item {
        padding: 8px 10px;
    }
}

/* ================================================================ */
/* COLLAPSIBLE SUMBER NON-KAS (E-Wallet & Transfer) */
/* ================================================================ */

.trx-collapsible.sumber_non_kas {
    border: 2px solid rgba(124, 58, 237, 0.25);
    background: #ffffff;
}

.trx-collapsible.sumber_non_kas.expanded {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.1),
        0 0 0 3px rgba(124, 58, 237, 0.04);
}

/* Accent bar kiri (ungu) */
.trx-collapsible.sumber_non_kas::before {
    background: linear-gradient(180deg, #7c3aed, #d946ef);
}

/* Icon */
.trx-collapsible.sumber_non_kas .trx-collapsible-icon {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

/* Title */
.trx-collapsible.sumber_non_kas .trx-collapsible-title {
    color: #5b21b6;
}

/* Subtitle */
.trx-collapsible.sumber_non_kas .trx-collapsible-subtitle {
    color: #7c3aed;
    opacity: 0.75;
}

/* Chevron */
.trx-collapsible.sumber_non_kas .trx-collapsible-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.25s;
}

.trx-collapsible.sumber_non_kas.expanded .trx-collapsible-chevron {
    background: rgba(124, 58, 237, 0.2);
}

/* Hover */
.trx-collapsible.sumber_non_kas .trx-collapsible-header:hover {
    background: rgba(124, 58, 237, 0.02);
}

/* ================================================================ */
/* INPUT DATE & TIME — Datepicker di KIRI, tanpa icon kiri */
/* ================================================================ */

/* Sembunyikan icon kiri untuk SEMUA input — KECUALI field dengan prefix Rp */
.trx-input-wrap:not(.has-prefix) .trx-input-icon {
    display: none !important;
}

/* Sesuaikan padding kiri untuk input tanpa icon */
.trx-input-wrap:not(.has-prefix) .trx-input {
    padding-left: 16px;
}

/* Datepicker tetap di kiri (kalau sebelumnya sudah dipindah) */
.trx-field[data-field-id="tanggal"] .trx-input::-webkit-calendar-picker-indicator,
.trx-field[data-field-id="waktu"] .trx-input::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 12px;
    right: auto;
    cursor: pointer;
    opacity: 0.6;
    filter: invert(38%) sepia(94%) saturate(3657%) hue-rotate(249deg) brightness(87%) contrast(101%);
    transition: all 0.2s;
}

/* Padding untuk input tanggal & waktu (kasih ruang datepicker kiri) */
.trx-field[data-field-id="tanggal"] .trx-input,
.trx-field[data-field-id="waktu"] .trx-input {
    padding-left: 44px;
}

/* Kurangi padding kiri (karena icon sudah hilang) */
.trx-field[data-field-id="tanggal"] .trx-input,
.trx-field[data-field-id="waktu"] .trx-input {
    padding-left: 44px;    /* tetap ada ruang untuk datepicker di kiri */
}

/* Sembunyikan icon kiri di SELECT (dropdown) */
.trx-select-wrap .trx-input-icon {
    display: none !important;
}

/* Sesuaikan padding kiri select (karena icon hilang) */
.trx-select-wrap .trx-select {
    padding-left: 16px;
}



/* Opsional: Beri jarak atas untuk collapsible yang ada di bawahnya */
.trx-collapsible {
    margin-top: 20px;
}

/* ---------------------------------------------------------------- */
/* Pindahkan datepicker indicator ke KIRI (Chrome/Edge/Safari) */
/* ---------------------------------------------------------------- */

.trx-field[data-field-id="tanggal"] .trx-input::-webkit-calendar-picker-indicator,
.trx-field[data-field-id="waktu"] .trx-input::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 12px;
    right: auto;
    cursor: pointer;
    opacity: 0.6;
    filter: invert(38%) sepia(94%) saturate(3657%) hue-rotate(249deg) brightness(87%) contrast(101%);
    transition: all 0.2s;
    padding: 0;
    margin: 0;
}

.trx-field[data-field-id="tanggal"] .trx-input::-webkit-calendar-picker-indicator:hover,
.trx-field[data-field-id="waktu"] .trx-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    transform: scale(1.15);
}

.trx-field[data-field-id="tanggal"] .trx-input-wrap:focus-within .trx-input::-webkit-calendar-picker-indicator,
.trx-field[data-field-id="waktu"] .trx-input-wrap:focus-within .trx-input::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* ---------------------------------------------------------------- */
/* Firefox — datepicker indicator */
/* ---------------------------------------------------------------- */

.trx-field[data-field-id="tanggal"] .trx-input::-moz-calendar-picker-indicator,
.trx-field[data-field-id="waktu"] .trx-input::-moz-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    margin-right: 8px;
}

/* ================================================================ */
/* COLLAPSIBLE PEMBAYARAN NON-PPOB (Hijau) */
/* ================================================================ */

.trx-collapsible.pembayaran_non_ppob {
    border: 2px solid rgba(34, 197, 94, 0.25);
    background: #ffffff;
}

.trx-collapsible.pembayaran_non_ppob.expanded {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 
        0 4px 12px rgba(34, 197, 94, 0.1),
        0 0 0 3px rgba(34, 197, 94, 0.04);
}

.trx-collapsible.pembayaran_non_ppob::before {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.trx-collapsible.pembayaran_non_ppob .trx-collapsible-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.trx-collapsible.pembayaran_non_ppob .trx-collapsible-title {
    color: #166534;
}

.trx-collapsible.pembayaran_non_ppob .trx-collapsible-subtitle {
    color: #16a34a;
    opacity: 0.85;
}

.trx-collapsible.pembayaran_non_ppob .trx-collapsible-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.25s;
}

.trx-collapsible.pembayaran_non_ppob.expanded .trx-collapsible-chevron {
    background: rgba(34, 197, 94, 0.2);
}

.trx-collapsible.pembayaran_non_ppob .trx-collapsible-header:hover {
    background: rgba(34, 197, 94, 0.02);
}

/* Accordion body hijau */
.trx-saldo-accordion-pembayaran_non_ppob .trx-saldo-kategori {
    border: 2px solid rgba(34, 197, 94, 0.25);
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
}

.trx-saldo-accordion-pembayaran_non_ppob .trx-saldo-kategori:hover {
    border-color: rgba(34, 197, 94, 0.4);
    background: #ffffff;
}

.trx-saldo-accordion-pembayaran_non_ppob .trx-saldo-kategori.expanded {
    border-color: rgba(34, 197, 94, 0.5);
    background: #ffffff;
    box-shadow: 
        0 4px 16px rgba(34, 197, 94, 0.12),
        0 0 0 3px rgba(34, 197, 94, 0.06);
}

.trx-saldo-accordion-pembayaran_non_ppob .trx-saldo-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.25s;
}

.trx-saldo-accordion-pembayaran_non_ppob .trx-saldo-kategori:hover .trx-saldo-chevron {
    background: rgba(34, 197, 94, 0.2);
    transform: scale(1.1);
}

.trx-saldo-accordion-pembayaran_non_ppob .trx-saldo-item.selected {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 
        0 2px 8px rgba(34, 197, 94, 0.1),
        0 0 0 3px rgba(34, 197, 94, 0.05);
}

.trx-saldo-accordion-pembayaran_non_ppob .trx-saldo-item.selected .trx-saldo-radio {
    border-color: #22c55e;
    background: #22c55e;
}

/* ================================================================ */
/* TIPE ADMIN SELECTOR (Tarik Tunai) */
/* ================================================================ */

.trx-tipe-admin-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.trx-tipe-admin-btn {
    position: relative;
    padding: 12px 8px;
    background: #fafbff;
    border: 1.5px solid #ede9fe;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.trx-tipe-admin-btn:hover {
    border-color: #c4b5fd;
    background: #ffffff;
}

.trx-tipe-admin-btn.active {
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    border-color: #7c3aed;
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.12),
        0 0 0 3px rgba(124, 58, 237, 0.05);
}

/* Icon di dalam tombol */
.trx-tipe-admin-btn i {
    font-size: 16px;
    color: #94a3b8;
    transition: color 0.2s;
}

.trx-tipe-admin-btn.active i {
    color: #7c3aed;
}

/* Label */
.trx-tipe-admin-btn span {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    transition: color 0.2s;
}

.trx-tipe-admin-btn.active span {
    color: #5b21b6;
    font-weight: 800;
}

/* Info box dinamis */
.trx-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-top: 10px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px dashed #93c5fd;
    color: #1e40af;
    animation: trx-fade-in 0.3s ease-out;
}

.trx-info-box i {
    font-size: 14px;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 1px;
}

@keyframes trx-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 380px) {
    .trx-tipe-admin-group {
        gap: 6px;
    }
    
    .trx-tipe-admin-btn {
        padding: 10px 4px;
    }
    
    .trx-tipe-admin-btn i {
        font-size: 14px;
    }
    
    .trx-tipe-admin-btn span {
        font-size: 10px;
    }
}

/* ================================================================ */
/* SEMBUNYIKAN NOMINAL DI PEMBAYARAN OLEH PEMBELI */
/* ================================================================ */

/* 1. Sembunyikan total saldo di header kategori (Bank, E-Wallet, dll) */
.trx-saldo-accordion-pembayaran_non_ppob .trx-saldo-total,
.trx-saldo-accordion-pembayaran .trx-saldo-total {
    display: none !important;
}

/* 2. Sembunyikan nominal saldo di setiap akun (BCA, Kas Laci, dll) */
.trx-saldo-accordion-pembayaran_non_ppob .trx-saldo-item-value,
.trx-saldo-accordion-pembayaran .trx-saldo-item-value {
    display: none !important;
}

/* 3. Sembunyikan nominal di ringkasan bawah (saat akun sudah dipilih) */
#selected_swalField_pembayaran_id .trx-saldo-selected-value {
    font-size: 0; /* Trik untuk sembunyikan teks nominal */
}

/* Hanya tampilkan nama akun di ringkasan bawah */
#selected_swalField_pembayaran_id .trx-saldo-selected-value::before {
    content: attr(data-nama); /* Hanya menampilkan nama */
    font-size: 12px;
    font-weight: 800;
}

/* ================================================================ */
/* STOK VOUCHER & PERDANA */
/* ================================================================ */

.stok-provider-card {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.03);
}

.stok-provider-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0.5px;
}

.stok-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* ✅ Agar lebar kolom konsisten */
}

.stok-table th {
    background: #f8fafc;
    padding: 10px 8px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
}

.stok-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.stok-table tr:last-child td {
    border-bottom: none;
}

.stok-table tr:hover td {
    background: #fafbff;
}

/* Kolom Nama Produk */
.stok-produk-nama {
    font-size: 12px;
    font-weight: 800;
    color: #1e1b4b;
    white-space: normal;
    line-height: 1.3;
}

/* Kolom Stok */
.stok-qty {
    font-size: 14px;
    font-weight: 900;
}

.stok-qty.aman { color: #16a34a; }
.stok-qty.menipis { color: #d97706; }
.stok-qty.habis { color: #dc2626; }

.stok-qty-label {
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
    margin-left: 1px;
}

/* Kolom Harga */
.stok-harga-modal {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.stok-harga-jual {
    font-size: 12px;
    font-weight: 800;
    color: #d97706; /* Warna Orange Khas Voucher */
    white-space: nowrap;
}

/* ================================================================ */
/* TAMBAH STOK FISIK POPUP - PREMIUM */
/* ================================================================ */

.stok-form-popup {
    border-radius: 28px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 
        0 4px 12px rgba(30, 27, 75, 0.1),
        0 24px 64px rgba(245, 158, 11, 0.15),
        0 48px 96px rgba(245, 158, 11, 0.08) !important;
    max-width: 420px !important;
}

.stok-form-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* ---------------------------------------------------------------- */
/* HEADER */
/* ---------------------------------------------------------------- */

.stok-header {
    position: relative;
    padding: 32px 24px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    overflow: hidden;
    text-align: center;
}

.stok-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stok-header-icon {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 26px;
    margin: 0 auto 16px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: stok-icon-float 3s ease-in-out infinite;
}

@keyframes stok-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.stok-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.stok-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------------------- */
/* BODY */
/* ---------------------------------------------------------------- */

.stok-body {
    padding: 24px;
    background: #ffffff;
}

.stok-field {
    margin-bottom: 16px;
    animation: stok-fade-up 0.4s ease-out backwards;
}

.stok-field:nth-child(1) { animation-delay: 0.05s; }
.stok-field:nth-child(2) { animation-delay: 0.1s; }
.stok-field:nth-child(3) { animation-delay: 0.15s; }
.stok-field:nth-child(4) { animation-delay: 0.2s; }
.stok-field:nth-child(5) { animation-delay: 0.25s; }
.stok-field:nth-child(6) { animation-delay: 0.3s; }

@keyframes stok-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.stok-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.stok-label-text {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stok-label-text i {
    font-size: 11px;
    color: #d97706;
}

.stok-required {
    color: #f43f5e;
    font-weight: 900;
}

/* Tipe Toggle (Voucher / Perdana) */
.stok-tipe-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stok-tipe-btn {
    padding: 14px 12px;
    background: #fafbff;
    border: 2px solid #ede9fe;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stok-tipe-btn:hover {
    border-color: #c4b5fd;
}

.stok-tipe-btn.active {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.stok-tipe-btn i {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.stok-tipe-btn.active i {
    color: #d97706;
}

.stok-tipe-btn span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.stok-tipe-btn.active span {
    color: #b45309;
}

/* Input Style */
.stok-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fafbff;
    border: 2px solid #ede9fe;
    border-radius: 12px;
    transition: all 0.2s;
}

.stok-input-wrap:focus-within {
    border-color: #d97706;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.stok-input-icon {
    position: absolute;
    left: 14px;
    color: #a78bfa;
    font-size: 14px;
    pointer-events: none;
}

.stok-input-prefix {
    position: absolute;
    left: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #a78bfa;
    pointer-events: none;
}

.stok-input,
.stok-select {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1e1b4b;
    outline: none;
    box-sizing: border-box;
}

.stok-select {
    appearance: none;
    cursor: pointer;
}

.stok-select-arrow {
    position: absolute;
    right: 14px;
    color: #a78bfa;
    font-size: 12px;
    pointer-events: none;
}

/* ---------------------------------------------------------------- */
/* ACTIONS */
/* ---------------------------------------------------------------- */

.stok-form-popup .swal2-actions {
    display: flex !important;
    gap: 10px !important;
    padding: 0 24px 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.stok-btn-cancel {
    flex: 1 !important;
    padding: 14px 20px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.stok-btn-confirm {
    flex: 1.4 !important;
    padding: 14px 20px !important;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
    transition: all 0.25s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.stok-btn-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4) !important;
}

/* Tombol Aksi di Tabel Stok */
.stok-aksi-wrap {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.stok-btn-aksi {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.stok-btn-aksi.edit {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.stok-btn-aksi.edit:hover {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.stok-btn-aksi.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stok-btn-aksi.delete:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}



/* ================================================================ */
/* TOMBOL EDIT & CLOSE UNTUK PREMIUM CRUD */
/* ================================================================ */

/* Tombol Simpan Edit (Ungu) */
.stok-btn-confirm.edit-mode {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3) !important;
}

.stok-btn-confirm.edit-mode:hover {
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4) !important;
}

/* Tombol Close (X) untuk CRUD Popup */
.premium-crud-popup .swal2-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    color: #64748b !important;
    font-size: 14px !important;
    border: 1px solid rgba(124, 58, 237, 0.1) !important;
    transition: all 0.25s !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.premium-crud-popup .swal2-close:hover {
    background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
    color: white !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* ================================================================ */
/* COLLAPSIBLE SUMBER PPOB ONLY (Merah) */
/* ================================================================ */
.trx-collapsible.ppob_only {
    border: 2px solid rgba(244, 63, 94, 0.25);
    background: #ffffff;
}

.trx-collapsible.ppob_only.expanded {
    border-color: rgba(244, 63, 94, 0.4);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.1);
}

.trx-collapsible.ppob_only::before {
    background: linear-gradient(180deg, #f43f5e, #e11d48);
}

.trx-collapsible.ppob_only .trx-collapsible-icon {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.trx-collapsible.ppob_only .trx-collapsible-title {
    color: #991b1b;
}

.trx-collapsible.ppob_only .trx-collapsible-subtitle {
    color: #e11d48;
    opacity: 0.85;
}

.trx-collapsible.ppob_only .trx-collapsible-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.12);
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ================================================================ */
/* KASIR BANNER - TOMBOL TUTUP KASIR */
/* ================================================================ */

.kasir-status-banner-arrow.btn-tutup-kasir {
    width: auto;
    padding: 0 12px;
    height: 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    font-size: 10px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    transition: all 0.25s;
}

.kasir-status-banner-arrow.btn-tutup-kasir:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.4);
}

.kasir-status-banner-arrow.btn-tutup-kasir i {
    font-size: 10px;
}

/* ================================================================ */
/* MUTASI SALDO - LIST ITEM (Desain Baru) */
/* ================================================================ */

.mutasi-item-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(250, 249, 255, 0.6) 0%, rgba(245, 243, 255, 0.4) 100%);
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.05);
    transition: all 0.2s;
}

.mutasi-item-new:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 245, 255, 0.7) 100%);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.06);
}

/* Icon bulat kiri */
.mutasi-icon-new {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* ✅ UANG MASUK (+) = HIJAU */
.mutasi-item-new.masuk .mutasi-icon-new {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}
.mutasi-item-new.masuk .mutasi-amount-new { 
    color: #16a34a; 
}

/* ✅ UANG KELUAR (-) = MERAH */
.mutasi-item-new.keluar .mutasi-icon-new {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #e11d48;
}
.mutasi-item-new.keluar .mutasi-amount-new { 
    color: #e11d48; 
}

/* Konten Kanan */
.mutasi-content-new {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Baris Atas (Jenis & Nominal) */
.mutasi-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mutasi-jenis-new {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mutasi-amount-new {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    text-align: right;
    flex-shrink: 0;
}

/* Baris Bawah (Detail & Tanggal) */
.mutasi-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mutasi-detail-new {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mutasi-date-new {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mutasi-date-new i {
    font-size: 9px;
}

/* ================================================================ */
/* DETAIL TRANSAKSI POPUP - PREMIUM */
/* ================================================================ */

.detail-trx-list {
    display: flex;
    flex-direction: column;
    background: #fafbff;
    border-radius: 16px;
    padding: 4px 16px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    margin-bottom: 8px;
}

.detail-trx-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(124, 58, 237, 0.1);
}

.detail-trx-row:last-child {
    border-bottom: none;
}

.detail-trx-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

.detail-trx-label i {
    color: #7c3aed;
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.detail-trx-value {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    text-align: right;
    word-break: break-word;
}

.detail-trx-value.green {
    color: #16a34a;
}

.detail-trx-value.red {
    color: #e11d48;
}

.detail-trx-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

/* ================================================================ */
/* CABANG CARD PREMIUM */
/* ================================================================ */

.cabang-card-premium {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 
        0 1px 2px rgba(30, 27, 75, 0.04),
        0 4px 12px rgba(30, 27, 75, 0.05),
        0 16px 32px rgba(124, 58, 237, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.06);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cabang-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed 0%, #d946ef 100%);
    opacity: 0.4;
}

.cabang-card-premium.active {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 
        0 1px 2px rgba(30, 27, 75, 0.04),
        0 4px 12px rgba(34, 197, 94, 0.1),
        0 16px 32px rgba(34, 197, 94, 0.08);
}

.cabang-card-premium.active::before {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    opacity: 0.8;
}

.cabang-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 2px 4px rgba(30, 27, 75, 0.06),
        0 8px 20px rgba(124, 58, 237, 0.1),
        0 24px 48px rgba(124, 58, 237, 0.08);
}

/* Header */
.cabang-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.06);
    position: relative;
}

.cabang-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

.cabang-card-premium.active .cabang-card-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 
        0 4px 12px rgba(34, 197, 94, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cabang-card-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 10px 10px 50% 50%;
    pointer-events: none;
}

.cabang-card-title-group {
    flex: 1;
    min-width: 0;
}

.cabang-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabang-card-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabang-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    flex-shrink: 0;
}

.cabang-badge-active i {
    font-size: 10px;
}

.cabang-card-menu-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cabang-card-menu-btn:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

.cabang-card-menu-btn:active {
    transform: scale(0.94);
}

/* Sesi Badge */
.cabang-sesi-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.cabang-sesi-badge i {
    font-size: 11px;
    flex-shrink: 0;
}

.cabang-sesi-badge.open {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.cabang-sesi-badge.closed {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.cabang-sesi-badge.belum-pernah {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Stats Grid */
.cabang-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.cabang-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(248, 245, 255, 0.6) 0%, rgba(250, 249, 255, 0.4) 100%);
    border-radius: 10px;
    border: 1px solid rgba(124, 58, 237, 0.05);
}

.cabang-stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cabang-stat-icon.kasir {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.cabang-stat-icon.trx {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.cabang-stat-icon.laba {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.cabang-stat-icon.saldo {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.cabang-stat-info {
    flex: 1;
    min-width: 0;
}

.cabang-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabang-stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabang-stat-value.green {
    color: #16a34a;
}

/* Footer */
.cabang-card-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(124, 58, 237, 0.06);
}

.cabang-card-footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
    letter-spacing: 0.2px;
}

.cabang-card-footer-info i {
    font-size: 11px;
}

.cabang-card-btn-pilih {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.cabang-card-btn-pilih:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.cabang-card-btn-pilih:active {
    transform: translateY(0) scale(0.98);
}

.cabang-card-btn-pilih i {
    font-size: 11px;
}

/* ================================================================ */
/* CABANG FORM POPUP */
/* ================================================================ */

.cabang-form-popup {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    max-width: 440px !important;
}

.cabang-form-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.cabang-form-wrap {
    background: #ffffff;
}

.cabang-form-header {
    position: relative;
    padding: 24px 20px 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    text-align: center;
    overflow: hidden;
}

.cabang-form-header::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cabang-form-header-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.cabang-form-header-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.cabang-form-header-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

.cabang-form-body {
    padding: 20px;
}

.cabang-form-field {
    margin-bottom: 14px;
}

.cabang-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    padding: 0 2px;
}

.cabang-form-label i {
    color: #7c3aed;
    font-size: 11px;
}

.cabang-form-required {
    color: #f43f5e;
    font-size: 13px;
    line-height: 1;
}

.cabang-form-optional {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
    background: rgba(148, 163, 184, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: auto;
}

.cabang-form-input-wrap {
    position: relative;
}

.cabang-form-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 2px solid #ede9fe;
    background: #faf9ff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1e1b4b;
    box-sizing: border-box;
    transition: all 0.2s;
    outline: none;
}

.cabang-form-input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}

.cabang-form-input:focus {
    border-color: #7c3aed;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.cabang-form-textarea {
    resize: none;
    min-height: 60px;
    line-height: 1.4;
}

.cabang-form-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px dashed rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #166534;
    line-height: 1.4;
    margin-top: 16px;
}

.cabang-form-info i {
    color: #22c55e;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Buttons */
.cabang-form-popup .swal2-actions {
    display: flex !important;
    gap: 10px !important;
    padding: 16px 20px 20px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cabang-btn-confirm {
    flex: 1.4 !important;
    padding: 14px 20px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3) !important;
    margin: 0 !important;
    transition: all 0.25s !important;
}

.cabang-btn-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4) !important;
}

.cabang-btn-cancel {
    flex: 1 !important;
    padding: 14px 20px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s !important;
}

.cabang-btn-cancel:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

.cabang-btn-danger {
    flex: 1.4 !important;
    padding: 14px 20px !important;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3) !important;
    margin: 0 !important;
    transition: all 0.25s !important;
}

.cabang-btn-danger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.4) !important;
}

/* ================================================================ */
/* CABANG MENU POPUP */
/* ================================================================ */

.cabang-menu-popup {
    border-radius: 24px !important;
    padding: 0 !important;
    max-width: 380px !important;
}

.cabang-menu-popup .swal2-title {
    padding: 20px 20px 12px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(124, 58, 237, 0.06) !important;
}

.cabang-menu-popup .swal2-html-container {
    margin: 0 !important;
    padding: 12px 16px 20px !important;
    overflow: visible !important;
}

.cabang-menu-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cabang-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: white;
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1e1b4b;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    width: 100%;
}

.cabang-menu-btn:hover {
    background: #fafbff;
    border-color: rgba(124, 58, 237, 0.15);
    transform: translateX(2px);
}

.cabang-menu-btn:active {
    transform: translateX(0) scale(0.98);
}

.cabang-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.cabang-menu-btn span {
    flex: 1;
    text-align: left;
}

.cabang-menu-arrow {
    font-size: 11px;
    color: #cbd5e1;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 380px) {
    .cabang-card-premium {
        padding: 14px;
        border-radius: 16px;
    }
    
    .cabang-card-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .cabang-card-title {
        font-size: 14px;
    }
    
    .cabang-card-subtitle {
        font-size: 10px;
    }
    
    .cabang-stat-item {
        padding: 8px 10px;
    }
    
    .cabang-stat-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .cabang-stat-label {
        font-size: 8px;
    }
    
    .cabang-stat-value {
        font-size: 11px;
    }
}

/* ================================================================ */
/* USER CARD PREMIUM v2.0 */
/* ================================================================ */

.user-card-premium {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: 
        0 1px 2px rgba(30, 27, 75, 0.04),
        0 4px 12px rgba(30, 27, 75, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.user-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(30, 27, 75, 0.06),
        0 12px 24px rgba(124, 58, 237, 0.08);
}

/* ================================================================ */
/* OWNER CARD (Emas Premium) */
/* ================================================================ */

.owner-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 
        0 1px 2px rgba(245, 158, 11, 0.1),
        0 4px 12px rgba(245, 158, 11, 0.15),
        0 16px 32px rgba(245, 158, 11, 0.1);
}

.owner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 50%, #f59e0b 100%);
}

.owner-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 
        0 4px 8px rgba(245, 158, 11, 0.15),
        0 12px 24px rgba(245, 158, 11, 0.2);
}

.owner-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.owner-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 
        0 4px 12px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
    position: relative;
}

.owner-badge::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 999px 999px 50% 50%;
    pointer-events: none;
}

.owner-badge i {
    font-size: 9px;
    position: relative;
    z-index: 1;
}

.owner-badge span {
    position: relative;
    z-index: 1;
}

/* ================================================================ */
/* CARD HEADER */
/* ================================================================ */

.user-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.06);
    position: relative;
}

.owner-header {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.user-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

.user-card-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 12px 12px 50% 50%;
    pointer-events: none;
}

.user-card-title-group {
    flex: 1;
    min-width: 0;
}

.user-card-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-card .user-card-name {
    color: #92400e;
}

.user-card-role {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.1px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-card .user-card-role {
    color: #b45309;
}

/* ================================================================ */
/* SHIFT BADGE */
/* ================================================================ */

.user-shift-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    position: relative;
    animation: shift-pulse 2s ease-in-out infinite;
}

.user-shift-badge.open {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.user-shift-badge.open i {
    font-size: 9px;
    animation: shift-pulse 2s ease-in-out infinite;
}

@keyframes shift-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

/* ================================================================ */
/* MENU BUTTON */
/* ================================================================ */

.user-card-menu-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.user-card-menu-btn:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.25);
}

.user-card-menu-btn:active {
    transform: scale(0.94);
}

/* ================================================================ */
/* STATS GRID */
/* ================================================================ */

.user-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.user-stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(248, 245, 255, 0.6) 0%, rgba(250, 249, 255, 0.4) 100%);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.06);
    transition: all 0.2s;
}

.user-stat-card:hover {
    border-color: rgba(124, 58, 237, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

.user-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.user-stat-icon.trx {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.user-stat-icon.laba {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.user-stat-info {
    flex: 1;
    min-width: 0;
}

.user-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.3px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-stat-value.green {
    color: #16a34a;
}

/* ================================================================ */
/* RESPONSIVE */
/* ================================================================ */

@media (max-width: 380px) {
    .user-card-premium {
        padding: 14px;
        border-radius: 16px;
    }
    
    .user-card-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
        border-radius: 12px;
    }
    
    .user-card-name {
        font-size: 14px;
    }
    
    .user-card-role {
        font-size: 10px;
    }
    
    .user-stat-card {
        padding: 8px 10px;
    }
    
    .user-stat-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .user-stat-label {
        font-size: 8px;
    }
    
    .user-stat-value {
        font-size: 12px;
    }
    
    .owner-badge {
        padding: 4px 9px;
        font-size: 9px;
    }
    
    .owner-badge i {
        font-size: 8px;
    }
}