/* Laundry Kita - OVO/DANA Style CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #4C3599;
    --primary-dark: #3a2780;
    --primary-light: #6B4ECC;
    --accent: #9B59B6;
    --gradient: linear-gradient(135deg, #4C3599 0%, #7B5BF0 60%, #9B6DFF 100%);
    --gradient-card: linear-gradient(135deg, #5A3FCC 0%, #8B6BFF 100%);
    --white: #ffffff;
    --bg: #F4F2FF;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-muted: #7a7a9a;
    --border: #e8e4ff;
    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #3498DB;
    --shadow: 0 4px 20px rgba(76, 53, 153, 0.12);
    --shadow-lg: 0 8px 32px rgba(76, 53, 153, 0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --nav-height: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    background: linear-gradient(160deg, #2d1f6e 0%, #4C3599 40%, #7B5BF0 100%);
    min-height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: calc(var(--nav-height) + 10px);
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

/* Desktop: tampilkan seperti frame smartphone */
@media (min-width: 520px) {
    body {
        box-shadow: 0 0 60px rgba(0,0,0,0.35);
        min-height: 100vh;
    }
}

/* ── HEADER ── */
.app-header {
    background: var(--gradient);
    padding: 20px 20px 50px;
    position: relative;
    border-radius: 0 0 32px 32px;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 32px;
    background: var(--bg);
    border-radius: 32px 32px 0 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo .logo-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    object-fit: cover;
    padding: 4px;
    box-sizing: border-box;
}

.header-logo .logo-text {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
}

.header-avatar {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
}

.header-greeting {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    margin-bottom: 3px;
}

.header-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.header-balance-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-top: 16px;
}

.balance-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.balance-amount {
    color: white;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.balance-sub {
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ── MAIN CONTENT ── */
.main-content {
    padding: 0 16px;
    margin-top: -8px;
    position: relative;
    z-index: 1;
}

/* ── QUICK STATS ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:active { transform: scale(0.97); }

.stat-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon.purple { background: #EDE9FF; color: var(--primary); }
.stat-icon.green  { background: #E6F9F0; color: var(--success); }
.stat-icon.orange { background: #FFF4E6; color: var(--warning); }
.stat-icon.red    { background: #FDEDEC; color: var(--danger); }
.stat-icon.blue   { background: #EBF5FB; color: var(--info); }

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* ── QUICK MENU ── */
.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    display: flex; align-items: center; justify-content: space-between;
}

.section-title a {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 7px;
}

.menu-icon-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.menu-item:active .menu-icon-wrap { transform: scale(0.92); }

.menu-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
}

/* Menu colors */
.mi-purple  { background: linear-gradient(135deg, #7C4FFF, #5A2DE0); }
.mi-blue    { background: linear-gradient(135deg, #4EA8DE, #2563EB); }
.mi-green   { background: linear-gradient(135deg, #43D08A, #16A34A); }
.mi-orange  { background: linear-gradient(135deg, #FF8C42, #E55A00); }
.mi-pink    { background: linear-gradient(135deg, #F06292, #C2185B); }
.mi-teal    { background: linear-gradient(135deg, #26C6DA, #00838F); }
.mi-yellow  { background: linear-gradient(135deg, #FFD54F, #F9A825); }
.mi-red     { background: linear-gradient(135deg, #EF5350, #B71C1C); }

/* ── CARDS ── */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 16px;
}

.card-header-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.card-link {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ── TRANSACTION LIST ── */
.trx-list { display: flex; flex-direction: column; gap: 10px; }

.trx-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    background: #FAFAFA;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text);
}

.trx-item:active { background: #F0EDFF; }

.trx-avatar {
    width: 42px; height: 42px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: #EDE9FF;
    color: var(--primary);
}

.trx-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.trx-code {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.trx-amount {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

.trx-date {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 2px;
}

/* ── STATUS BADGES ── */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 600;
}

.badge-masuk   { background: #EBF5FB; color: #2980B9; }
.badge-proses  { background: #FFF4E6; color: #E67E22; }
.badge-selesai { background: #E6F9F0; color: #27AE60; }
.badge-diambil { background: #F4F4F4; color: #7F8C8D; }

/* ── BOTTOM NAVIGATION ── */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px;
    height: var(--nav-height);
    background: white;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 24px rgba(76,53,153,0.12);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.18s ease;
    color: #ABABC0;
    flex: 1;
    position: relative;
}

.nav-item i {
    font-size: 1.25rem;
    transition: all 0.18s ease;
    line-height: 1;
}

.nav-item span {
    font-size: 0.58rem;
    font-weight: 600;
    transition: all 0.18s ease;
    line-height: 1;
}

/* ── Active pill indicator ── */
.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    color: var(--primary);
}

/* Dot indicator di atas icon untuk item aktif */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--gradient);
    border-radius: 0 0 4px 4px;
}

/* Icon scale-up saat aktif */
.nav-item.active i {
    transform: scale(1.1);
}

.nav-center {
    flex: 0 0 auto !important;
    width: 58px; height: 58px;
    background: var(--gradient);
    border-radius: 20px;
    color: white !important;
    box-shadow: 0 4px 16px rgba(76,53,153,0.4);
    margin-bottom: 10px;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-center i { font-size: 1.5rem !important; color: white !important; }

/* ── LOGIN PAGE ── */
.login-page {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* card di bawah mobile */
    padding: 0;
}

.login-logo {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    width: 100%;
}

.login-logo img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(0,0,0,0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

/* Mobile: card nempel di bawah */
.login-card {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 28px 28px 0 0;
    padding: 32px 24px 40px;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
}

/* Desktop (>= 520px): card menjadi floating card di tengah */
@media (min-width: 520px) {
    .login-page {
        justify-content: center;
        padding: 24px;
        gap: 32px;
    }
    .login-card {
        border-radius: 28px;
        box-shadow: var(--shadow-lg);
        margin-bottom: 0;
    }
    .login-logo {
        flex: unset;
        padding: 0;
    }
}

/* Layar sangat kecil / landscape */
@media (max-height: 600px) {
    .login-logo img { width: 140px; height: 140px; }
    .login-card { padding: 20px 20px 28px; }
}

.login-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    background: #FAFAFA;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(76,53,153,0.1);
}

.input-group {
    position: relative;
}

.input-group .form-control { padding-right: 48px; }

.input-group .toggle-pw {
    position: absolute;
    right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 1rem; padding: 0;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 14px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(76,53,153,0.35);
    width: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.btn-danger-soft {
    background: #FDEDEC;
    color: var(--danger);
    border: none;
}

.btn-success-soft {
    background: #E6F9F0;
    color: var(--success);
    border: none;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.78rem;
    border-radius: 10px;
}

.btn-icon {
    width: 38px; height: 38px;
    padding: 0;
    border-radius: 12px;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
    background: var(--gradient);
    padding: 18px 20px 60px;
    border-radius: 0 0 32px 32px;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 32px;
    background: var(--bg);
    border-radius: 32px 32px 0 0;
}

.page-header-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.back-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.page-header h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    margin-left: 52px;
    margin-top: 2px;
}

/* ── FORMS (inner pages) ── */
.form-section { margin-bottom: 20px; }

.form-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.form-select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    background: #FAFAFA;
    color: var(--text);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%237a7a9a' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76,53,153,0.1);
}

textarea.form-control {
    resize: none;
    min-height: 80px;
}

/* ── TABLE (list pages) ── */
.list-item {
    background: white;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: #EDE9FF;
    color: var(--primary);
}

.list-info { flex: 1; min-width: 0; }

.list-name {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.list-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ── SEARCH BAR ── */
.search-bar {
    position: relative;
    margin-bottom: 16px;
}

.search-bar i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    background: white;
    outline: none;
}

.search-bar input:focus { border-color: var(--primary); }

/* ── ALERT ── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: #E6F9F0; color: #27AE60; }
.alert-danger  { background: #FDEDEC; color: #E74C3C; }
.alert-warning { background: #FFF4E6; color: #E67E22; }
.alert-info    { background: #EBF5FB; color: #2980B9; }

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state p { font-size: 0.85rem; }

/* ── FAB ── */
.fab {
    position: fixed;
    bottom: calc(var(--nav-height) + 16px);
    /* Posisi FAB selalu di dalam container 480px */
    right: max(16px, calc(50% - 240px + 16px));
    width: 54px; height: 54px;
    background: var(--gradient);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(76,53,153,0.4);
    z-index: 999;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}

.fab:active { transform: scale(0.9); }

/* Saat viewport < 480px, FAB mengikuti viewport */
@media (max-width: 480px) {
    .fab { right: 16px; }
}

/* ── MODAL ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal-sheet {
    background: white;
    border-radius: 28px 28px 0 0;
    padding: 24px 20px 36px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-handle {
    width: 40px; height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    margin: -12px auto 20px;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── CHIPS ── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #EDE9FF;
    color: var(--primary);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.chip.active { background: var(--primary); color: white; }

/* ── PRINT ── */
@media print {
    .bottom-nav, .fab, .no-print { display: none !important; }
    body { background: white; padding-bottom: 0; }
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.3s ease; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CCC; border-radius: 2px; }

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════ */

/* ── Layar sangat kecil (320px - HP jadul) ── */
@media (max-width: 359px) {
    :root { --nav-height: 62px; }

    .menu-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
    .menu-icon-wrap { border-radius: 14px; font-size: 1.2rem; }
    .menu-label { font-size: 0.6rem; }

    .stats-row { gap: 8px; }
    .stat-icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .stat-value { font-size: 0.95rem; }
    .stat-label { font-size: 0.65rem; }

    .balance-amount { font-size: 1.4rem; }
    .header-name { font-size: 0.95rem; }

    .form-control, .form-select { padding: 10px 12px; font-size: 0.85rem; }
    .btn { padding: 11px 18px; font-size: 0.85rem; }

    .nav-item i { font-size: 1.1rem; }
    .nav-item span { font-size: 0.55rem; }
    .nav-center { width: 50px; height: 50px; border-radius: 16px; }
}

/* ── Layar kecil standar (360px - 479px) ── */
@media (min-width: 360px) and (max-width: 479px) {
    .balance-amount { font-size: 1.6rem; }
    .menu-icon-wrap { border-radius: 16px; }
}

/* ── Tepat di batas 480px ── */
@media (max-width: 480px) {
    .main-content { padding: 0 12px; }
    .app-header { padding: 16px 16px 46px; }
    .page-header { padding: 14px 16px 56px; }
    .card { padding: 15px; }
}

/* ── Tablet portrait (600px+) ── */
@media (min-width: 600px) {
    body {
        border-radius: 0 0 0 0;
    }
    .bottom-nav {
        border-radius: 0;
        border-top: 1px solid var(--border);
    }
    .modal-sheet {
        border-radius: 28px;
        margin-bottom: 20px;
        max-width: 440px;
    }
    .modal-overlay {
        align-items: center;
    }
}

/* ── Layar landscape (tinggi < 500px) ── */
@media (max-height: 500px) and (orientation: landscape) {
    :root { --nav-height: 56px; }

    .app-header { padding: 12px 16px 40px; }
    .page-header { padding: 10px 16px 48px; }
    .header-balance-card { padding: 10px 14px; }
    .balance-amount { font-size: 1.3rem; }
    .header-name { font-size: 0.95rem; }
    .header-greeting { display: none; }

    .stats-row { grid-template-columns: repeat(4, 1fr); }
    .stat-icon { width: 36px; height: 36px; }

    .nav-item span { display: none; }
    .nav-center { width: 48px; height: 48px; margin-bottom: 6px; }

    .modal-sheet { max-height: 80vh; }
}

/* ── Touch device improvements ── */
@media (hover: none) and (pointer: coarse) {
    /* Minimal touch target 44px */
    .btn { min-height: 44px; }
    .nav-item { min-height: 44px; }
    .back-btn { width: 44px; height: 44px; }
    .list-item { min-height: 60px; }
    .trx-item { min-height: 56px; }

    /* Hapus hover effect di touch */
    .btn:hover { transform: none; }
    .stat-card:active { transform: scale(0.97); }
    .menu-item:active .menu-icon-wrap { transform: scale(0.92); }
}

/* ── Print improvements ── */
@media print {
    html { background: white; }
    body { box-shadow: none; max-width: 100%; }
    .bottom-nav, .fab, .no-print, .back-btn { display: none !important; }
    .page-header { border-radius: 0; padding-bottom: 20px; }
    .page-header::after { display: none; }
    body { padding-bottom: 0; }
    .card { box-shadow: none; border: 1px solid #EEE; }
}

/* ── Aksesibilitas: prefer-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
    *, .fade-in {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Dark mode dasar (jika user OS dark mode) ── */
@media (prefers-color-scheme: dark) {
    /* Aktifkan ini jika ingin dark mode otomatis */
    /* Saat ini dinonaktifkan agar konsisten dengan tema brand */
}
