/* Baris Greeting yang Fixed */
    .top-bar-fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #fcfaff; /* Samakan dengan BG body */
        z-index: 1050;
        padding: 15px 20px;
        transition: all 0.3s;
    }

    /* Spacer agar Card Saldo tidak tertutup Top Bar */
    .top-bar-spacer {
        height: 70px; 
    }

    .card-wallet {
        background: white;
        border-radius: 20px;
        border: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    
     :root {
        --md-violet: #673ab7;
        --md-violet-deep: #311b92;
        --google-blue: #1a73e8;
        --md-bg: #f8f9ff;
        --md-surface: #ffffff;
        --text-dark: #202124;
        --text-gray: #5f6368;
    }

    body {
        background-color: var(--md-bg);
        font-family: 'Inter', 'Roboto', sans-serif;
    }

    /* Top Bar Modern Glassmorphism */
    .top-bar-fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 1050;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(103, 58, 183, 0.08);
    }

    .top-bar-spacer {
        height: 70px; 
    }

    /* Welcome Text */
    .user-greeting {
        font-size: 1.1rem;
        font-weight: 800;
        background: linear-gradient(135deg, var(--md-violet-deep), var(--google-blue));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -0.5px;
    }

    /* Notification Bell with Google Style Dot */
    .notif-badge-dot {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 10px;
        height: 10px;
        background-color: #ea4335; /* Google Red */
        border: 2px solid white;
        border-radius: 50%;
    }

    /* Avatar Premium */
    .avatar-trigger {
        width: 42px; 
        height: 42px; 
        background: linear-gradient(135deg, #eef2ff, #f3edf7);
        border: 1.5px solid rgba(103, 58, 183, 0.1);
        transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .avatar-trigger i {
        color: var(--md-violet);
    }

    .avatar-trigger:active {
        transform: scale(0.9);
    }

    /* Card Wallet ala Google Pay */
    .card-wallet {
        background: var(--md-surface);
        border-radius: 28px; /* Extra rounded */
        border: none;
        box-shadow: 0 10px 25px rgba(103, 58, 183, 0.06);
        padding: 24px !important;
        position: relative;
        overflow: hidden;
    }

    /* Decorative background circle */
    .card-wallet::after {
        content: "";
        position: absolute;
        top: -50px;
        right: -50px;
        width: 120px;
        height: 120px;
        background: rgba(26, 115, 232, 0.03);
        border-radius: 50%;
    }

    .omset-label {
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--text-gray);
        letter-spacing: 1px;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .omset-amount {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--text-dark);
        margin: 4px 0 16px 0;
        letter-spacing: -1px;
    }

    /* Button Jual ala Android FAB Expanded */
    .btn-jual {
        background: linear-gradient(135deg, var(--md-violet), var(--md-violet-deep));
        color: white !important;
        border-radius: 18px;
        font-weight: 700;
        font-size: 0.9rem;
        border: none;
        padding: 12px 24px !important;
        box-shadow: 0 8px 15px rgba(103, 58, 183, 0.25);
        transition: 0.3s;
    }

    .btn-jual:active {
        transform: scale(0.95);
        box-shadow: 0 4px 8px rgba(103, 58, 183, 0.2);
    }

    /* Stats Grid */
    .stat-box {
        padding: 10px 5px;
    }

    .stat-label {
        font-size: 0.65rem;
        font-weight: 700;
        color: var(--text-gray);
        margin-bottom: 4px;
        display: block;
    }

    .stat-value {
        font-size: 1rem;
        font-weight: 800;
    }

    .text-success-custom { color: #0f9d58; } /* Google Green */
    .text-warning-custom { color: #f4b400; } /* Google Yellow */
    .text-danger-custom { color: #d93025; }  /* Google Red */
    
    
    /* Segmented Control (Tabs) ala Material 3 */
    .tab-container-android {
        background-color: #eeebe6; /* Warna kontainer standar M3 */
        padding: 4px;
        border-radius: 16px; /* Lebih organik */
        display: flex;
        border: none;
    }

    .btn-tab-android {
        border: none;
        border-radius: 12px !important;
        padding: 10px 0;
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        background: transparent;
        color: #49454f;
    }

    /* Tab Aktif: Putih bersih dengan shadow tipis */
    .btn-tab-android.active {
        background-color: #ffffff !important;
        color: #673ab7 !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

    /* Grid Menu Premium */
    .menu-icon-wrapper {
        width: 64px;
        height: 64px;
        margin: 0 auto 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #ffffff;
        border-radius: 18px; /* Bentuk Squircle ala Android modern */
        transition: transform 0.15s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        border: 1px solid rgba(0,0,0,0.02);
    }

    /* Efek Click/Tap (Haptic Feedback) */
    .col-menu:active {
        transform: scale(0.9);
    }

    .menu-text {
        font-size: 0.75rem;
        font-weight: 700;
        color: #1d1b20;
        margin-top: 5px;
    }

    .text-purple { color: #673ab7 !important; }
    
    
    
    
    
   :root {
    --m3-surface: rgba(247, 242, 250, 0.96); 
    --m3-active-icon: #1d192b; /* Warna lebih gelap/tegas saat aktif */
    --m3-inactive: #49454f;    /* Warna abu-abu saat tidak aktif */
}

.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--m3-surface);
    backdrop-filter: blur(20px);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(0,0,0,0.08);
    z-index: 1030;
}

.nav-item-link {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: var(--m3-inactive);
    transition: all 0.2s ease;
}

/* Ikon Default */
.nav-item-link i {
    font-size: 1.35rem;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

/* Label Teks Default */
.nav-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--m3-inactive);
    transition: all 0.2s ease;
}

/* STATE AKTIF: Hanya Ubah Warna & Skala (Tanpa Background/Pill) */
.nav-item-link.active i {
    color: var(--m3-active-icon);
    transform: scale(1.2); /* Ikon membesar sedikit */
}

.nav-item-link.active .nav-label {
    color: var(--m3-active-icon);
    font-weight: 700; /* Teks jadi tebal */
    transform: scale(1.05);
}

/* FAB PRINTER (Tetap Bulat Besar & Gradient - Sesuai Request Sebelumnya) */
.fab-center-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; 
    z-index: 1040;
}

.fab-printer {
    width: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    transform: translateY(-25px); 
    box-shadow: none !important;
    border: none !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-printer:active {
    transform: translateY(-20px) scale(0.9) !important;
}

.fab-printer i {
    font-size: 1.8rem !important;
}

@media (max-width: 380px) {
    .nav-label { font-size: 10px; }
}

    
    
    
     /* Google Premium Palette */
    :root {
        --google-blue: #1a73e8;
        --md-violet: #673ab7;
        --md-violet-dark: #311b92;
        /* Background soft violet-blue tint */
        --md-bg: #f8f9ff; 
        --md-surface: #ffffff;
        --md-text-main: #202124;
        --md-text-sub: #5f6368;
    }

    .offcanvas-notif {
        width: 100% !important;
        border: none !important;
        background-color: var(--md-bg) !important;
        z-index: 2100 !important;
    }

    /* Header: Glassmorphism effect */
    .md-header {
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px);
        color: var(--md-violet-dark) !important;
        border-bottom: 1px solid rgba(103, 58, 183, 0.1);
        padding: 1.2rem 1.25rem !important;
    }

    .notif-wrapper {
        padding: 16px;
    }

    /* Card Styling with Blue-Violet Glow */
    .notif-card {
        background: var(--md-surface);
        border-radius: 20px;
        padding: 16px;
        margin-bottom: 14px;
        box-shadow: 0 4px 12px rgba(103, 58, 183, 0.05);
        border: 1px solid rgba(26, 115, 232, 0.05);
        transition: all 0.2s ease;
    }

    .notif-card:active {
        transform: scale(0.97);
        background-color: #f1f3fe;
    }

    /* Icon Box dengan nuansa Gradient Blue-Violet */
    .md-icon-box {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        background: linear-gradient(135deg, var(--google-blue), var(--md-violet));
        color: white;
    }

    /* Modern Chips */
    .md-chip {
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        background: #eef2ff;
        color: var(--google-blue);
    }

    /* System Health: Dark Violet Gradient Theme */
    .health-section {
        background: linear-gradient(180deg, #f8f9ff 0%, #ede7f6 100%);
        border-radius: 32px 32px 0 0;
        padding: 28px 20px;
        border-top: 1px solid rgba(103, 58, 183, 0.1);
    }

    .health-card {
        background: rgba(255, 255, 255, 0.8);
        border-radius: 18px;
        padding: 14px;
        border: 1px solid #ffffff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }

    /* Custom Pulse Blue */
    .pulse-dot-blue {
        width: 8px;
        height: 8px;
        background: var(--google-blue);
        border-radius: 50%;
        display: inline-block;
        margin-right: 6px;
        box-shadow: 0 0 0 rgba(26, 115, 232, 0.4);
        animation: pulse-blue 2s infinite;
    }

    @keyframes pulse-blue {
        0% { box-shadow: 0 0 0 0px rgba(26, 115, 232, 0.4); }
        70% { box-shadow: 0 0 0 10px rgba(26, 115, 232, 0); }
        100% { box-shadow: 0 0 0 0px rgba(26, 115, 232, 0); }
    }

    .btn-close-md {
        background: linear-gradient(135deg, #673ab7, #311b92);
        color: white !important;
        border: none;
        border-radius: 12px;
        padding: 12px 30px;
        font-weight: 700;
        letter-spacing: 1px;
        width: 100%;
        box-shadow: 0 4px 15px rgba(49, 27, 146, 0.3);
    }
    
    
    
    
    
      /* Material 3 & Google Design Variables */
    :root {
        --md-violet-gradient: linear-gradient(135deg, #673ab7, #311b92);
        --md-bg-gray: #f8f9ff;
        --md-surface: #ffffff;
        --google-blue: #1a73e8;
        --google-red: #ea4335;
        --google-green: #34a853;
        --text-header: #1d1b20;
    }
a {
    text-decoration: none !important; /* Menghilangkan garis bawah */
    color: inherit; /* Opsional: agar warna mengikuti teks induknya */
}

/* Agar saat disentuh/hover tetap tidak muncul garis bawah */
a:hover, a:active, a:focus {
    text-decoration: none !important;
    outline: none;
}
    /* Full Screen Android Style */
    .offcanvas-voucher {
        width: 100% !important;
        border: none !important;
        background-color: var(--md-bg-gray) !important;
        z-index: 2500 !important;
    }

    /* Header ala Android App Bar */
    .md-profile-header {
        background: var(--md-surface) !important;
        color: var(--text-header) !important;
        padding: 1.2rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* Profile Hero Section */
    .profile-hero {
        background: var(--md-surface);
        padding: 40px 20px 30px;
        text-align: center;
        border-radius: 0 0 32px 32px; /* Rounded bottom ala M3 */
        box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    }

    .avatar-container {
        position: relative;
        width: 100px;
        height: 100px;
        margin: 0 auto 15px;
    }

   /* Penyesuaian Avatar agar Real & Premium */
.avatar-large-md {
    width: 100px;
    height: 100px;
    background: var(--md-violet-gradient);
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(103, 58, 183, 0.2);
    position: relative;
    overflow: hidden; /* Potong gambar jadi bulat */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.img-profile-android {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar tidak gepeng */
    border-radius: 50%;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}

.status-badge-mini.pulse-animation {
    z-index: 10;
    box-shadow: 0 0 0 4px white;
}

/* Animasi Status Online */
.pulse-animation {
    animation: pulse-m3 2s infinite;
}

@keyframes pulse-m3 {
    0% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 168, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0); }
}

    .status-badge-mini {
        position: absolute;
        bottom: 5px;
        right: 5px;
        width: 22px;
        height: 22px;
        background: var(--google-green);
        border: 3px solid white;
        border-radius: 50%;
    }

    /* Menu Styling */
    .menu-container {
        padding: 15px;
    }

    .menu-category-md {
        padding: 20px 15px 10px;
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--google-blue);
        text-transform: uppercase;
        letter-spacing: 1.2px;
    }

    .list-group-item-md {
        background: var(--md-surface) !important;
        border: none !important;
        margin-bottom: 8px;
        border-radius: 16px !important; /* M3 Card style */
        padding: 16px 20px !important;
        display: flex;
        align-items: center;
        transition: all 0.2s;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }

    .list-group-item-md:active {
        transform: scale(0.97);
        background-color: #f1f3fe !important;
    }

    .icon-wrapper-md {
        width: 40px;
        height: 40px;
        background: #f0f4ff;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        color: var(--md-violet);
        font-size: 1.1rem;
    }

    /* Logout Style */
    .logout-card {
        margin-top: 15px;
        color: var(--google-red) !important;
        background: #fff5f5 !important;
    }

    .logout-card .icon-wrapper-md {
        background: #feeaea;
        color: var(--google-red);
    }

    /* Custom Back Button */
    .btn-back-md {
        background: #f1f3f4;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-header);
    }
    
    

    /* Container Modal Body harus relatif agar tombol absolut bisa diposisi */
    .modal-body {
        position: relative;
    }

    /* Tombol X Premium Kanan Atas */
    .btn-m3-close-premium {
        position: absolute !important;
        top: 12px !important;    /* Jarak dari atas modal-body */
        right: 12px !important;  /* Jarak dari kanan modal-body */
        width: 32px;
        height: 32px;
        background: #f8f9fa !important;
        border: none !important;
        border-radius: 10px !important;
        color: #495057 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1060;
        cursor: pointer;
        padding: 0;
    }

    .btn-m3-close-premium:hover {
        background: #e9ecef !important;
        color: #dc3545 !important; /* Berubah merah saat hover */
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    /* Box Ikon Material */
    .m3-icon-box {
        width: 64px;
        height: 64px;
        border-radius: 16px; /* Sesuai rounded-3 */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Animasi Pulse Merah */
    .pulse-red-m3 {
        animation: pulse-m3 2s infinite;
    }

    @keyframes pulse-m3 {
        0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.3); }
        70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(220, 53, 69, 0); }
        100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
    }
    
    
    
    
    /* Card ramping ala Material 3 */
    .m3-compact-card {
        background: #ffffff;
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 16px;
        padding: 10px 14px;
        transition: transform 0.2s ease, background 0.2s;
    }

    .m3-compact-card:active {
        transform: scale(0.98);
        background: #f8f9ff;
    }

    /* Ikon kecil bulat */
    .m3-mini-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 0.8rem;
    }

    /* Container stack agar rapi */
    .m3-announcement-stack {
        display: flex;
        flex-direction: column;
        gap: 4px; /* Jarak antar pengumuman */
    }

    /* Efek teks truncate agar tidak berantakan di HP kecil */
    .text-truncate {
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }