:root {
    --bri-primary: #00529C;
    --bri-primary-light: #0072BC;
    --bri-primary-dark: #003666;
    --bri-secondary: #F7941D;
    --bri-secondary-light: #FFB35C;
    --bri-success: #10B981;
    --bri-danger: #EF4444;
    --bri-warning: #F59E0B;
    --bri-info: #3B82F6;
    --bri-bg: #F8FAFC;
    --bri-card: #FFFFFF;
    --bri-text: #0F172A;
    --bri-text-muted: #64748B;
    --bri-border: #E2E8F0;
    --bri-gradient: linear-gradient(135deg, #00529C 0%, #0072BC 100%);
    --bri-gradient-gold: linear-gradient(135deg, #F7941D 0%, #FFB35C 100%);
    --bri-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --bri-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --bri-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --bri-radius: 20px;
    --bri-radius-sm: 12px;
    --bri-radius-lg: 28px;
    --bottom-nav-height: 75px;
    --header-height: 65px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bri-bg);
    color: var(--bri-text);
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(var(--bottom-nav-height) + 30px);
    line-height: 1.5;
}

/* ========== PREMIUM ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse-animation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.animate-in {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale {
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse {
    animation: pulse-animation 2s infinite;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* ========== HEADER ========== */
.app-header {
    background: var(--bri-gradient);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
}

.app-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-header .header-left .header-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    backdrop-filter: blur(10px);
}

.app-header .header-title {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
}

.app-header .header-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 400;
}

.app-header .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
    font-size: 18px;
    text-decoration: none;
}

.btn-header:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ========== PAGE HEADER (Secondary Pages) ========== */
.page-header {
    background: var(--bri-bg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-header h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--bri-text);
}

.back-btn {
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid var(--bri-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bri-text);
    text-decoration: none;
    margin-right: 12px;
    box-shadow: var(--bri-shadow);
}

/* ========== PAGE CONTENT ========== */
.page-content {
    padding: 16px;
}

/* ========== CARDS ========== */
.card-bri {
    background: var(--bri-card);
    border-radius: var(--bri-radius);
    box-shadow: var(--bri-shadow);
    border: 1px solid var(--bri-border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-bri:hover {
    box-shadow: var(--bri-shadow-md);
}

.card-bri .card-body {
    padding: 16px;
}

.card-saldo {
    background: var(--bri-gradient);
    border: none;
    color: #fff;
    border-radius: var(--bri-radius-lg);
    position: relative;
    overflow: hidden;
}

.card-saldo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.card-saldo::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.card-saldo .card-body {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.saldo-label {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 500;
    margin-bottom: 4px;
}

.saldo-amount {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.saldo-amount small {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
}

/* ========== SUMMARY GRID ========== */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.summary-card {
    background: var(--bri-card);
    border-radius: var(--bri-radius);
    padding: 16px;
    box-shadow: var(--bri-shadow);
    border: 1px solid var(--bri-border);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.summary-card.card-tarik::before {
    background: var(--bri-danger);
}

.summary-card.card-setor::before {
    background: var(--bri-success);
}

.summary-card.card-fee::before {
    background: var(--bri-secondary);
}

.summary-card.card-total::before {
    background: var(--bri-info);
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.summary-icon.icon-tarik {
    background: #fef2f2;
    color: var(--bri-danger);
}

.summary-icon.icon-setor {
    background: #f0fdf4;
    color: var(--bri-success);
}

.summary-icon.icon-fee {
    background: #fffbeb;
    color: var(--bri-secondary);
}

.summary-icon.icon-total {
    background: #eff6ff;
    color: var(--bri-info);
}

.summary-label {
    font-size: 12px;
    color: var(--bri-text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.summary-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--bri-text);
    letter-spacing: -0.3px;
}

/* ========== TRANSACTION LIST ========== */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bri-text);
    margin-bottom: 12px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title .view-all {
    font-size: 13px;
    color: var(--bri-primary);
    text-decoration: none;
    font-weight: 600;
}

.trx-item {
    background: var(--bri-card);
    border-radius: var(--bri-radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    box-shadow: var(--bri-shadow);
    border: 1px solid var(--bri-border);
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.trx-item:hover {
    box-shadow: var(--bri-shadow-md);
    transform: translateY(-1px);
    color: inherit;
}

.trx-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.trx-icon.icon-tarik {
    background: #fef2f2;
    color: var(--bri-danger);
}

.trx-icon.icon-setor {
    background: #f0fdf4;
    color: var(--bri-success);
}

.trx-info {
    flex: 1;
    min-width: 0;
}

.trx-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trx-meta {
    font-size: 12px;
    color: var(--bri-text-muted);
    margin-top: 2px;
}

.trx-amount {
    text-align: right;
    flex-shrink: 0;
}

.trx-amount .amount {
    font-weight: 700;
    font-size: 14px;
}

.trx-amount .amount.text-tarik {
    color: var(--bri-danger);
}

.trx-amount .amount.text-setor {
    color: var(--bri-success);
}

.trx-amount .fee {
    font-size: 11px;
    color: var(--bri-text-muted);
}

/* ========== FAB BUTTON ========== */
.fab-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    max-width: 480px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
    pointer-events: none;
}

.fab-btn {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--bri-gradient);
    border: none;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 61, 121, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.fab-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 61, 121, 0.5);
    color: #fff;
}

.fab-btn:active {
    transform: scale(0.95);
}

/* ========== BOTTOM NAVIGATION ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--bottom-nav-height);
    background: #fff;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 0;
    z-index: 1000;
    border-top: 1px solid var(--bri-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}

.nav-item-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--bri-text-muted);
    font-size: 11px;
    font-weight: 500;
    gap: 3px;
    transition: all 0.2s;
    position: relative;
    padding: 8px 4px;
}

.nav-item-bottom i {
    font-size: 22px;
    transition: all 0.2s;
}

.nav-item-bottom.active {
    color: var(--bri-primary);
}

.nav-item-bottom.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30%;
    right: 30%;
    height: 3px;
    background: var(--bri-primary);
    border-radius: 0 0 4px 4px;
}

.nav-item-bottom:hover {
    color: var(--bri-primary);
}

/* ========== FORMS ========== */
.form-control-bri {
    border: 2px solid var(--bri-border);
    border-radius: var(--bri-radius-sm);
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background: #fff;
}

.form-control-bri:focus {
    border-color: var(--bri-primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 121, 0.1);
    outline: none;
}

.form-label-bri {
    font-weight: 600;
    font-size: 13px;
    color: var(--bri-text);
    margin-bottom: 6px;
}

.form-select-bri {
    border: 2px solid var(--bri-border);
    border-radius: var(--bri-radius-sm);
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background: #fff;
    appearance: none;
}

.form-select-bri:focus {
    border-color: var(--bri-primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 121, 0.1);
}

/* ========== BUTTONS ========== */
.btn-bri-primary {
    background: var(--bri-gradient);
    border: none;
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--bri-radius);
    font-weight: 700;
    font-size: 15px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 61, 121, 0.3);
}

.btn-bri-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 61, 121, 0.4);
    color: #fff;
}

.btn-bri-secondary {
    background: #fff;
    border: 2px solid var(--bri-border);
    color: var(--bri-text);
    padding: 14px 24px;
    border-radius: var(--bri-radius);
    font-weight: 600;
    font-size: 15px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-bri-secondary:hover {
    background: var(--bri-bg);
    border-color: var(--bri-primary);
    color: var(--bri-primary);
}

.btn-bri-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--bri-radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-bri-success {
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--bri-radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-bri-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

/* ========== TYPE SELECTOR ========== */
.type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.type-btn {
    flex: 1;
    padding: 16px;
    border-radius: var(--bri-radius);
    border: 2px solid var(--bri-border);
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--bri-text);
}

.type-btn:hover {
    border-color: var(--bri-primary-light);
    color: var(--bri-text);
}

.type-btn.active-tarik {
    border-color: var(--bri-danger);
    background: #fef2f2;
    color: var(--bri-danger);
}

.type-btn.active-setor {
    border-color: var(--bri-success);
    background: #f0fdf4;
    color: var(--bri-success);
}

.type-btn i {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.type-btn span {
    font-weight: 700;
    font-size: 14px;
}

/* ========== BADGE ========== */
.badge-tarik {
    background: #fef2f2;
    color: var(--bri-danger);
    font-weight: 600;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
}

.badge-setor {
    background: #f0fdf4;
    color: var(--bri-success);
    font-weight: 600;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
}

.badge-tambah {
    background: #f0fdf4;
    color: var(--bri-success);
    font-weight: 600;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
}

.badge-kurang {
    background: #fef2f2;
    color: var(--bri-danger);
    font-weight: 600;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
}

.badge-role {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-superadmin {
    background: var(--bri-gradient-gold);
    color: #fff;
}

.badge-admin {
    background: #e2e8f0;
    color: var(--bri-text);
}

/* ========== KAS CARD ========== */
.kas-card {
    background: #fff;
    border-radius: var(--bri-radius);
    padding: 20px;
    box-shadow: var(--bri-shadow);
    border: 1px solid var(--bri-border);
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.kas-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--bri-gradient);
}

.kas-card:hover {
    box-shadow: var(--bri-shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

.kas-card .kas-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.kas-card .kas-code {
    font-size: 12px;
    color: var(--bri-text-muted);
    font-weight: 500;
}

.kas-card .kas-saldo {
    font-size: 20px;
    font-weight: 800;
    color: var(--bri-primary);
    margin-top: 8px;
    letter-spacing: -0.5px;
}

/* ========== FILTER BAR ========== */
.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid var(--bri-border);
    background: #fff;
    color: var(--bri-text-muted);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-chip:hover {
    border-color: var(--bri-primary-light);
    color: var(--bri-primary);
}

.filter-chip.active {
    background: var(--bri-primary);
    color: #fff;
    border-color: var(--bri-primary);
}

/* ========== ALERTS ========== */
.alert-bri {
    border-radius: var(--bri-radius-sm);
    border: none;
    font-size: 14px;
    padding: 14px 16px;
    font-weight: 500;
}

.alert-success-bri {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid var(--bri-success);
}

.alert-danger-bri {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--bri-danger);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 56px;
    color: var(--bri-border);
    margin-bottom: 16px;
}

.empty-state h5 {
    font-weight: 700;
    font-size: 16px;
    color: var(--bri-text);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 13px;
    color: var(--bri-text-muted);
}

/* ========== DETAIL PAGE ========== */
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--bri-border);
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--bri-text-muted);
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    text-align: right;
}

/* ========== PAGINATION ========== */
.pagination {
    gap: 4px;
}

.pagination .page-link {
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    color: var(--bri-text-muted);
}

.pagination .page-item.active .page-link {
    background: var(--bri-primary);
    color: #fff;
}

/* ========== LOGIN PAGE ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bri-gradient);
    padding-bottom: 0;
}

.login-header {
    flex: 0 0 auto;
    text-align: center;
    padding: 60px 20px 40px;
    color: #fff;
}

.login-header .logo-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    backdrop-filter: blur(20px);
}

.login-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.login-header p {
    opacity: 0.75;
    font-size: 14px;
}

.login-form-container {
    flex: 1;
    background: #fff;
    border-radius: 30px 30px 0 0;
    padding: 32px 24px;
}

.login-form-container h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--bri-text);
}

/* ========== CONFIRMATION MODAL ========== */
.modal-bri .modal-content {
    border-radius: var(--bri-radius-lg);
    border: none;
    overflow: hidden;
}

.modal-bri .modal-header {
    background: var(--bri-gradient);
    color: #fff;
    border: none;
    padding: 20px 24px;
}

.modal-bri .modal-title {
    font-weight: 700;
}

.modal-bri .modal-body {
    padding: 24px;
}

.modal-bri .modal-footer {
    border: none;
    padding: 16px 24px 24px;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 0px;
}

/* ========== SEARCH BAR ========== */
.search-bar {
    position: relative;
    margin-bottom: 16px;
}

.search-bar input {
    padding-left: 44px;
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bri-text-muted);
    font-size: 16px;
}

/* ========== TRANSAKSI UNIQUE STYLES ========== */
.trx-choice-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #F8FAFC;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.2s;
    border: 1.5px solid #F1F5F9;
    gap: 15px;
}

.trx-choice-card:hover {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--bri-primary-light);
    transform: translateY(-2px);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.bg-danger-light {
    background: #fee2e2;
}

.bg-primary-light {
    background: #e0f2fe;
}

/* UTILS */
.uppercase {
    text-transform: uppercase;
}

.fw-extrabold {
    font-weight: 800;
}

.fw-bolder {
    font-weight: 700;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* ========== AUTH / LOGIN PAGE ========== */
.login-page-body {
    background: linear-gradient(135deg, #00529C 0%, #0072BC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.logo-glow {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: #00529C;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.login-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: #0F172A;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    text-align: center;
    color: #64748B;
    font-size: 14px;
    margin-bottom: 32px;
}

.btn-login {
    background: linear-gradient(135deg, #00529C 0%, #0072BC 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 16px;
    width: 100%;
    font-weight: 700;
    font-size: 16px;
    margin-top: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 82, 156, 0.3);
    transition: all 0.3s;
}

.btn-login:active {
    transform: scale(0.98);
}

.bottom-link {
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== OPTION SELECTOR (KAS/OTHER) ========== */
.btn-option-type {
    border: 2px solid var(--bri-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.btn-option-type:hover {
    background: #f8fafc;
}

.btn-option-type .icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.btn-option-type .type-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--bri-text);
}

.btn-option-type .type-desc {
    font-size: 10px;
    color: var(--bri-text-muted);
}

.btn-check:checked+.btn-option-type {
    border-color: var(--bri-primary);
    background: #eff6ff;
}

.btn-check:checked+.btn-option-type .icon-circle {
    transform: scale(1.1);
}

/* Specific colors for Tunai type when checked */
#tipe_tunai:checked+.btn-option-type {
    border-color: #EF4444;
    background: #FEF2F2;
}

/* ========== SETTINGS PAGE ========== */
.tabs-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 5px 2px;
    scrollbar-width: none;
}

.tabs-scroll-container::-webkit-scrollbar {
    display: none;
}

.custom-settings-tabs {
    display: inline-flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 18px;
    border: 1px solid var(--bri-border);
}

.custom-settings-tabs .nav-link {
    border-radius: 14px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bri-text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.custom-settings-tabs .nav-link.active {
    background: white !important;
    color: var(--bri-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 82, 156, 0.1);
}

.settings-card {
    border: none;
    border-radius: 24px;
    background: white;
    box-shadow: var(--bri-shadow-sm);
}

.setting-item {
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--bri-text);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== SOFT COLORS ========== */
.bg-soft-primary {
    background: rgba(0, 82, 156, 0.1) !important;
    color: var(--bri-primary) !important;
}

.bg-soft-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--bri-danger) !important;
}

.bg-soft-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--bri-success) !important;
}

.bg-soft-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--bri-warning) !important;
}

.bg-soft-secondary {
    background: rgba(100, 116, 139, 0.1) !important;
    color: var(--bri-text-muted) !important;
}

.bg-soft-info {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--bri-info) !important;
}

/* ========== REKAP DAILY PREMIUM ========== */
.card-rekap-daily {
    background: white;
    border: 1px solid var(--bri-border);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.card-rekap-daily:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 82, 156, 0.2);
}

.date-badge-premium {
    width: 50px;
    height: 55px;
    background: var(--bri-gradient);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 82, 156, 0.2);
}

.date-badge-premium .month {
    font-size: 9px;
    font-weight: 700;
    opacity: 0.9;
    line-height: 1;
    margin-bottom: 2px;
}

.date-badge-premium .day {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.day-name {
    font-size: 14px;
    letter-spacing: -0.2px;
}

.trx-count-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    background: #F1F5F9;
    color: #475569;
    border-radius: 20px;
    text-transform: uppercase;
}

.rekap-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-row .label {
    font-size: 11px;
    color: var(--bri-text-muted);
    font-weight: 500;
}

.detail-row .value {
    font-size: 12px;
    font-weight: 700;
}

.detail-row .value-closing {
    font-size: 13px;
    font-weight: 800;
    color: var(--bri-primary);
}

.detail-row .value-profit {
    font-size: 13px;
    font-weight: 800;
    color: var(--bri-success);
}

/* ========== REKAP SUMMARY CARD ========== */
.card-rekap-summary {
    background: var(--bri-gradient);
    border-radius: 24px;
    color: white;
    border: none;
    box-shadow: 0 12px 24px -8px rgba(0, 82, 156, 0.4);
    overflow: hidden;
}

.card-rekap-summary .total-label {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.8;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.card-rekap-summary .total-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.card-rekap-summary .total-sub {
    font-size: 11px;
    opacity: 0.7;
}

.card-rekap-summary .total-profit-value {
    font-size: 20px;
    font-weight: 800;
    color: #FFD700;
    line-height: 1.2;
}

.card-rekap-summary .profit-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    margin-top: 4px;
}