:root{
    --cream:#fbfaf6;
    --page:#efede7;
    --paper:#ffffff;
    --ink:#223047;
    --muted:#8f98a4;
    --line:#ebe6dc;
    --gold:#c99b3f;
    --gold-2:#e8c66f;
    --gold-dark:#9c7428;
    --blue:#245ca8;
    --blue-soft:#edf3fa;
    --danger:#b6514a;
    --shadow:0 10px 30px rgba(66,54,34,.07);
    --radius:18px;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html, body {
    margin: 0;
    min-height: 100%;
    background: var(--page);
    touch-action: auto;
    -webkit-text-size-adjust: 100%;
    
    /* TAMBAHKAN KODE DI BAWAH INI */
    overflow: auto; 
    -webkit-overflow-scrolling: touch; /* Membuat scroll di iOS/Safari terasa mulus */
}

input, textarea, button, select, a {
  -webkit-tap-highlight-color: transparent;
}
body{
    color:var(--ink);
    font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    display:flex;
    justify-content:center;
}
button,a{font:inherit}
button{cursor:pointer}
svg{display:block}

.app-shell {
    /* UBAH DUA BARIS INI */
    position: fixed; 
    top: 0; bottom: 0; left: 50%; /* Memosisikan shell tepat di tengah layar */
    transform: translateX(-50%); /* Penyelaras posisi tengah untuk layar PC/Tablet */
    
    width: 100%;
    max-width: 430px;
    
    /* HAPUS height: 100dvh atau height: 100% karena sudah digantikan top & bottom: 0 */
    
    background: radial-gradient(circle at 85% 2%, rgba(231,198,111,.13), transparent 22%), var(--cream);
    box-shadow: 0 0 0 1px rgba(52,43,27,.04), 0 24px 70px rgba(52,43,27,.12);
    display: flex;
    flex-direction: column;
    overflow: hidden !important; 
    box-sizing: border-box;
}

.app-scroll{
    height:100%;
    overflow-y:auto;      
    scrollbar-width:none;
    padding-bottom:92px;
    scroll-behavior:smooth;
}
.app-scroll::-webkit-scrollbar{display:none}

.screen{
    display:none;
    min-height:100%;
    padding:22px 18px 30px;
    animation:screenIn .2s ease;
}

.screen.is-active{display:block}

@keyframes screenIn{
    from{opacity:.35;transform:translateY(5px)}
    to{opacity:1;transform:none}
}


.greeting{
    margin:0;
    font-size:21px;
    line-height:1.2;
    font-weight:750;
    letter-spacing:-.035em;
}
.icon-button{
    width:38px;height:38px;border:1px solid var(--line);
    border-radius:13px;background:rgba(255,255,255,.82);
    color:var(--ink);display:grid;place-items:center;
    box-shadow:0 4px 14px rgba(50,42,28,.04);
    transition:.18s ease;
}
.icon-button:active{transform:scale(.95)}
.icon{width:18px;height:18px}

.member-card{
    position:relative;
    overflow:hidden;
    min-height:176px;
    border-radius:20px;
    padding:18px;
    color:#45351c;
    background:
    linear-gradient(135deg,#f9e8b6 0%,#ebd08b 48%,#d6ad4f 100%);
    border:1px solid rgba(169,127,46,.22);
    box-shadow:0 14px 28px rgba(137,99,31,.14);
}
.member-card:before{
    content:"";
    position:absolute;right:-72px;top:-86px;
    width:210px;height:210px;border-radius:50%;
    border:1px solid rgba(255,255,255,.43);
    box-shadow:0 0 0 34px rgba(255,255,255,.055);
}
.member-card:after{
    content:"";
    position:absolute;right:34px;bottom:-78px;
    width:140px;height:140px;border-radius:50%;
    border:1px solid rgba(255,255,255,.22);
}
.card-layer{position:relative;z-index:1}
.brand-row{display:flex;align-items:flex-start;justify-content:space-between}
.brand{
    display:flex;align-items:center;gap:8px;
    color:#1255b7;font-size:16px;font-weight:850;letter-spacing:-.035em
}
.brand-logo{
    width:21px;height:21px;border-radius:50%;
    position:relative;background:linear-gradient(90deg,#f04235 0 50%,#ffd633 50%);
    box-shadow:inset 0 0 0 3px rgba(255,255,255,.68);
}
.brand-logo:after{
    content:"";position:absolute;inset:5px;border-radius:50%;
    background:#165ac0;
}
.tier-label{
    margin-top:4px;font-family:Georgia,serif;
    font-size:14px;letter-spacing:.05em;font-weight:700;
}
.crown{color:#7d5b1c}
.member-main{
    display:flex;align-items:flex-end;justify-content:space-between;
    margin-top:19px;gap:16px;
}
.member-name{font-size:18px;font-weight:800;margin:0 0 2px}
.member-id{font-size:10px;color:#725c35;margin:0}
.member-points{font-size:13px;font-weight:800;margin:8px 0 1px}
.member-spend{font-size:10px;color:#725c35;margin:0}
.expiry{font-size:9px;font-weight:750;margin-top:3px;text-transform:uppercase}
.qr{
    width:74px;height:74px;padding:5px;border-radius:9px;background:#fff;
    display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(7,1fr);gap:2px;
    box-shadow:0 5px 16px rgba(73,54,21,.12);
    flex:0 0 auto;
}
.qr b{background:#17304f;border-radius:1px}
.qr b:nth-child(2n),.qr b:nth-child(5n+1),.qr b:nth-child(7n){background:transparent}

.quick-dock{
    margin-top:13px;
    display:grid;grid-template-columns:repeat(4,1fr);gap:8px;
}
.quick-action{
    min-height:70px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.88);
    color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:7px;font-size:10px;font-weight:700;
    box-shadow:0 5px 16px rgba(72,57,31,.035);
    transition:.18s ease;
}
.quick-action:active{transform:scale(.97);background:#fff}
.quick-icon{
    width:30px;height:30px;border-radius:10px;
    display:grid;place-items:center;background:#fbf1d8;color:var(--gold-dark);
}
.quick-action:first-child .quick-icon{background:var(--blue-soft);color:var(--blue)}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  /*padding: 10px 16px; /* Mengatur jarak aman di kiri dan kanan layar */
  padding: 2px;
  margin-top: 10px;  
  box-sizing: border-box;
}
.section-title{
    margin:0;
    margin-bottom: 15px;
    font-size:16px;
    font-weight:800;
    letter-spacing:-.025em;    
}
.section-sub{
    margin:2px 0 0;font-size:10px;color:var(--muted)
}
.small-link{
    border:0;background:transparent;color:var(--gold-dark);
    font-size:10px;font-weight:800;padding:5px 0;
}

.card{
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:rgba(255,255,255,.92);
    box-shadow:var(--shadow);
}
.activity{
    min-height:66px;padding:13px;
    display:flex;align-items:center;gap:11px;
}
.round-icon{
    width:34px;height:34px;border-radius:11px;
    display:grid;place-items:center;flex:0 0 auto;
    color:var(--gold-dark);background:#fbf1d7;
}
.activity-text{min-width:0}
.activity-name{font-size:12px;font-weight:800;margin:0}
.activity-time{font-size:9px;color:var(--muted);margin:3px 0 0}
.activity-point{
    margin-left:auto;font-size:11px;font-weight:800;color:var(--gold-dark);white-space:nowrap
}

.promo{
    min-height:136px;margin-top:14px;padding:18px;
    display:flex;align-items:center;gap:12px;
    border-radius:20px;
    background:
    radial-gradient(circle at 88% 10%,rgba(201,155,63,.18),transparent 28%),
    linear-gradient(135deg,#fbf3df,#f4e6c3);
    border:1px solid #ead8ac;
    box-shadow:0 8px 24px rgba(117,88,31,.07);
}
.promo-icon{
    width:40px;height:40px;border-radius:13px;
    display:grid;place-items:center;background:#fff;color:var(--gold-dark);
    border:1px solid #ead7aa;
}
.promo-title{font-size:13px;font-weight:800}
.promo-copy{font-size:10px;line-height:1.45;color:#8b7b60;margin-top:4px}

.list-card{
    overflow:hidden;
}
.branch{
    width:100%;min-height:62px;padding:10px 12px;
    display:flex;align-items:center;gap:11px;
    border:0;border-bottom:1px solid #f0ece4;background:transparent;
    color:var(--ink);text-align:left;
}
.branch:last-child{border-bottom:0}
.branch:active{background:#fdfbf7}
.branch-icon{
    width:32px;height:32px;border-radius:11px;
    background:#fbefd0;color:var(--gold-dark);
    display:grid;place-items:center;flex:0 0 auto;
}
.branch-copy{min-width:0;flex:1}
.branch-name{margin:0;font-size:11px;font-weight:800}
.branch-detail{margin:3px 0 0;font-size:9px;line-height:1.35;color:var(--muted)}
.branch-hours{margin:2px 0 0;font-size:8px;color:var(--gold-dark);font-weight:700}
.branch-arrow{
    width:28px;height:28px;border-radius:9px;background:#f7f6f2;color:#9ca3ad;
    display:grid;place-items:center;flex:0 0 auto;
}

.social-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.social{
    min-height:50px;border:1px solid var(--line);border-radius:15px;background:#fff;
    padding:9px 11px;display:flex;align-items:center;gap:9px;color:var(--ink);
    text-align:left;
}
.social-badge{
    width:29px;height:29px;border-radius:10px;display:grid;place-items:center;
    background:#f0f3f7;color:#496886;flex:0 0 auto;
}
.social strong{font-size:10px;display:block}
.social small{font-size:8px;color:var(--muted);display:block;margin-top:2px}


/* Explore / Promo & Cabang */
.explore-search{
    height:46px;display:flex;align-items:center;gap:10px;
    padding:0 13px;margin:2px 0 18px;border:1px solid var(--line);
    border-radius:15px;background:rgba(255,255,255,.92);
    box-shadow:0 5px 16px rgba(72,57,31,.035);
    color:var(--muted);
}
.explore-search input{
    width:100%;border:0;outline:0;background:transparent;color:var(--ink);
    font:inherit;font-size:11px;
}
.explore-search input::placeholder{color:#a8afb7}
/* .promo-strip{
    display:grid;grid-auto-flow:column;grid-auto-columns:82%;
    gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;
    scrollbar-width:none;margin:0 -18px;padding:0 18px 4px;
}
.promo-strip::-webkit-scrollbar{display:none}
.offer-card{
    position:relative;overflow:hidden;min-height:150px;
    padding:17px;border-radius:20px;scroll-snap-align:start;
    border:1px solid rgba(154,117,42,.15);
    box-shadow:0 10px 24px rgba(95,72,31,.08);
    display:flex;flex-direction:column;justify-content:space-between;
} */

/* Kontainer utama pembatas layar */
.carousel-container {
    width: 100%;
    overflow: hidden; /* Menyembunyikan bagian kartu lain di luar layar */
    position: relative;
}

/* Trek tempat kartu berjejer horizontal */
.promo-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* Memaksa kartu tetap berjejer ke samping */
    width: 100%;
    transition: transform 0.5s ease-in-out; /* Efek transisi geser yang halus */
    margin: 0;
    padding: 0;
}
.promo-strip::-webkit-scrollbar{display:none}

/* Pengaturan wajib untuk kartu agar tidak terpotong */
.offer-card {
    flex: 0 0 100%;       /* KUNCI 1: Memaksa kartu berukuran tepat 100% lebar kontainer parent */
    width: 100%;          /* KUNCI 2: Menegaskan lebar penuh */
    max-width: 100%;      /* KUNCI 3: Mencegah pelebaran akibat konten */
    box-sizing: border-box; /* KUNCI 4: Menghitung padding internal agar tidak menambah lebar luar kartu */
    
    /* Hilangkan margin luar kiri/kanan pada .offer-card agar kalkulasi geser 100% presisi */
    margin-left: 0 !important;
    margin-right: 0 !important; 
}
.offer-card.gold-offer{
    background:
    radial-gradient(circle at 85% 16%,rgba(255,255,255,.42),transparent 25%),
    linear-gradient(135deg,#f8e8b6,#dfbd69);
    color:#59431d;
}
.offer-card.blue-offer{
    background:
    radial-gradient(circle at 88% 13%,rgba(255,255,255,.12),transparent 28%),
    linear-gradient(135deg,#2c4562,#1f3046);
    color:#fff;
}
.offer-card.cream-offer{
    background:linear-gradient(135deg,#fffaf0,#f5ead0);
    color:#57472e;
}
.offer-badge{
    width:max-content;padding:5px 8px;border-radius:999px;
    background:rgba(255,255,255,.72);font-size:8px;font-weight:850;
    letter-spacing:.04em;
}
.blue-offer .offer-badge{background:rgba(255,255,255,.14);color:#fff}
.offer-title{
    max-width:80%;font-size:18px;line-height:1.1;font-weight:850;
    letter-spacing:-.035em;margin:20px 0 4px;
}
.offer-copy{font-size:9px;line-height:1.45;opacity:.76;max-width:82%}
.offer-foot{
    margin-top:16px;display:flex;align-items:center;justify-content:space-between;
    font-size:9px;font-weight:800;
}
.offer-arrow{
    width:30px;height:30px;border-radius:10px;background:rgba(255,255,255,.66);
    display:grid;place-items:center;
}
.blue-offer .offer-arrow{background:rgba(255,255,255,.13)}
.filter-row{
    display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;
    margin:0 -18px 12px;padding:0 18px;
}
.filter-row::-webkit-scrollbar{display:none}
.filter-chip{
    flex:0 0 auto;border:1px solid var(--line);border-radius:999px;
    padding:7px 11px;background:#fff;color:#707987;
    font-size:9px;font-weight:750;
}
.filter-chip.is-active{
    background:#26364a;color:#fff;border-color:#26364a;
}
.explore-note{
    margin:11px 1px 0;font-size:9px;line-height:1.5;color:var(--muted);
}
.location-summary{
    min-height:66px;padding:13px;margin-bottom:11px;
    display:flex;align-items:center;gap:11px;
}
.location-summary strong{font-size:11px;display:block}
.location-summary small{font-size:9px;color:var(--muted);display:block;margin-top:3px}
.location-count{
    margin-left:auto;padding:5px 8px;border-radius:999px;
    background:#f9efd7;color:#97712b;font-size:8px;font-weight:850;
}

/* Membership */
.member-intro{
    margin:3px 2px 16px;
    font-size:12px;line-height:1.55;color:var(--muted);
}
.tier-card{
    position:relative;overflow:hidden;
    border-radius:18px;padding:17px;margin-top:11px;
    border:1px solid rgba(157,126,60,.16);
    box-shadow:0 7px 18px rgba(68,56,34,.045);
}
.tier-card h2{font-size:15px;margin:0;font-weight:850;letter-spacing:-.02em}
.tier-card .tier-caption{font-size:10px;margin:4px 0 0;opacity:.72}
.tier-benefits{margin-top:12px;display:grid;gap:6px}
.benefit{display:flex;align-items:center;gap:7px;font-size:10px}
.silver{background:linear-gradient(135deg,#f7f7f5,#e1e4e8);color:#56616f}
.gold{background:linear-gradient(135deg,#fff7de,#e5c06c);color:#63491d}
.platinum{background:linear-gradient(135deg,#26364a,#35495f);color:#fff}
.active-badge{
    padding:5px 9px;border-radius:999px;background:#fff;color:#294e80;
    font-size:9px;font-weight:800;
}
.progress-card{padding:16px;margin-top:14px}
.progress-title{font-size:12px;font-weight:800;margin:0}
.progress-copy{font-size:10px;color:var(--muted);margin:4px 0 0}
.track{height:8px;border-radius:99px;background:#f0ebe0;margin-top:12px;overflow:hidden}
.fill{height:100%;width:62%;border-radius:inherit;background:linear-gradient(90deg,#bb8d31,#e4bd62)}
.outline-action{
    width:100%;min-height:44px;margin-top:11px;border:1px solid #ddcfa9;border-radius:14px;
    background:#fff;color:var(--gold-dark);font-size:11px;font-weight:800;
}
.hidden-detail{
    display:none;padding:14px;margin-top:9px;font-size:10px;color:var(--muted);
    line-height:1.55;
}
.hidden-detail.open{display:block;animation:screenIn .18s ease}

/* History */
.history-tools{
    display:flex;justify-content:flex-end;align-items:center;
    min-height:38px;margin-bottom:2px;
}
.month{
    margin:21px 2px 9px;
    display:flex;align-items:center;justify-content:space-between;
}
.month-label{
    font-size:10px;color:#7f8997;font-weight:850;letter-spacing:.08em;
}
.month-total{font-size:9px;color:#a69476}
.transaction{
    min-height:62px;padding:11px 12px;
    display:flex;align-items:center;gap:10px;border-bottom:1px solid #f0ece4;
}
.transaction:last-child{border-bottom:0}
.transaction-copy{min-width:0;flex:1}
.transaction-name{font-size:11px;font-weight:800}
.transaction-date{font-size:9px;color:var(--muted);margin-top:3px}
.transaction-points{font-size:10px;font-weight:800;color:var(--gold-dark);white-space:nowrap}

/* Profile */
.profile-spacer{height:4px}
.profile-card{
    padding:15px;display:flex;align-items:center;gap:12px;
}
.avatar{
    width:48px;height:48px;border-radius:15px;object-fit:cover;background:#eee;
}
.profile-copy{min-width:0;flex:1}
.profile-name{font-size:13px;font-weight:850;margin:0}
.profile-meta{font-size:9px;color:var(--muted);margin:4px 0 0}
.profile-tier{
    padding:5px 8px;border-radius:999px;background:#f9efd7;color:#97712b;
    font-size:8px;font-weight:850;white-space:nowrap;
}
.upper-label{
    font-size:9px;letter-spacing:.13em;color:#8d95a0;font-weight:850;margin:23px 2px 8px;
}
.menu-card{overflow:hidden}
.menu-row{
    width:100%;min-height:54px;border:0;border-bottom:1px solid #f0ece5;
    background:#fff;padding:0 12px;display:flex;align-items:center;gap:11px;
    text-align:left;color:var(--ink);
}
.menu-row:last-child{border-bottom:0}
.menu-row:active{background:#fbfaf7}
.menu-icon{
    width:31px;height:31px;border-radius:10px;
    display:grid;place-items:center;background:#f1f4f7;color:#38516f;flex:0 0 auto;
}
.menu-label{font-size:11px;font-weight:700}
.chevron{margin-left:auto;color:#aab0b8}
.logout{
    width:100%;height:46px;border:0;border-radius:14px;background:#fbece9;
    color:var(--danger);font-size:11px;font-weight:850;margin-top:18px;
}

/* Bottom nav — icon only, no dots, no labels */
.bottom-nav.nav-hidden {
    display: none !important;
    visibility: hidden;
    opacity: 0;
}

.bottom-nav{
    position:fixed;z-index:20;left:0;right:0;bottom:0;
    min-height:74px;padding:8px 22px max(10px,env(safe-area-inset-bottom));
    display:flex;align-items:center;justify-content:space-between;
    background:rgba(255,255,255,.94);
    border-top:1px solid var(--line);
    backdrop-filter:blur(18px);

    padding: 8px 22px calc(25px + env(safe-area-inset-bottom)) 22px;
    background-color: #ffffff;
}

/* .bottom-nav {
    position: fixed; 
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);

    padding: 8px 22px calc(25px + env(safe-area-inset-bottom)) 22px;
} */

/* .bottom-nav {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
    padding: 15px;

    padding-top: 12px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
} */



/*.bottom-nav {
    position: absolute; 
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);

   
    padding: 0px 22px calc(12px + env(safe-area-inset-bottom)); 

    padding-bottom: env(safe-area-inset-bottom); 
    background-color: #ffffff;
}
*/

.nav-item {
    width: 68px; 
    height: 60px; /* Dinaikkan ke 60px agar memberikan ruang vertikal yang cukup */
    border: 0;
    border-radius: 16px;
    background: transparent;
    
    /* PERBAIKAN: Gunakan flexbox untuk memusatkan konten secara vertikal & horizontal */
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: #99a2ad;
    transition: .18s ease;
    box-sizing: border-box;
    padding: 0; /* Hilangkan padding bawaan agar tidak merusak posisi center */
}

/* Pembungkus Konten Dalam Tombol */
.nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Rata tengah horizontal */
    justify-content: center;   /* Rata tengah vertikal */
    gap: 4px;                  /* Jarak ideal antara ikon dan teks */
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* DIUBAH: Ukuran ikon dinaikkan, ketebalan garis (stroke) dibuat ramping & tipis */
.bottom-nav .nav-item .icon {
    width: 25px;          /* Diperbesar dari 21px */
    height: 25px;         /* Diperbesar dari 21px */
    stroke-width: 1.4;    /* Diturunkan dari 1.8 agar terlihat tipis dan premium */
}

.nav-item.is-active {
    color: var(--ink);
    background: #eef2f5;
    box-shadow: inset 0 0 0 1px rgba(38,54,73,.035);
}

.nav-item:active {
    transform: scale(.94);
}
.branch-icon .icon{width:14px;height:14px;stroke-width:2}
.branch-arrow .icon{width:13px;height:13px;stroke-width:1.9}
.quick-icon .icon{width:16px;height:16px;stroke-width:1.9}
.round-icon .icon{width:15px;height:15px;stroke-width:1.9}
.social-badge .icon{width:15px;height:15px;stroke-width:1.8}
.promo-icon .icon{width:18px;height:18px;stroke-width:1.8}
.crown .icon{width:19px;height:19px;stroke-width:1.9}
.bottom-nav .nav-item .icon{width:21px;height:21px;stroke-width:1.8}

.toast{
    position:absolute;z-index:50;left:18px;right:18px;bottom:88px;
    padding:11px 14px;border-radius:13px;background:#26364a;color:#fff;
    box-shadow:0 12px 30px rgba(25,37,53,.22);
    font-size:10px;text-align:center;
    opacity:0;transform:translateY(9px);pointer-events:none;transition:.2s;
}
.toast.show{opacity:1;transform:none}

.modal{
    position:absolute;z-index:60;inset:0;background:rgba(29,36,45,.28);
    display:none;align-items:flex-end;padding:18px;
    backdrop-filter:blur(4px);
}
.modal.open{display:flex}
.modal-card{
    width:100%;background:#fff;border-radius:20px;padding:18px;
    box-shadow:0 24px 60px rgba(20,28,38,.22);
    animation:modalIn .2s ease;
}
@keyframes modalIn{from{transform:translateY(15px);opacity:.5}to{transform:none;opacity:1}}
.modal-title{font-size:14px;font-weight:850;margin:0}
.modal-copy{font-size:10px;color:var(--muted);line-height:1.5;margin:6px 0 15px}
.modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.modal-grid button{height:42px;border-radius:12px;font-size:10px;font-weight:800}
.cancel{border:1px solid var(--line);background:#fff;color:var(--ink)}
.confirm{border:0;background:var(--danger);color:#fff}

button:focus-visible{outline:3px solid rgba(36,92,168,.23);outline-offset:2px}

@media (max-width:360px){
    .screen{padding-left:14px;padding-right:14px}
    .greeting{font-size:19px}
    .member-card{min-height:168px}
    .quick-action{font-size:9px}
}
@media (min-width:700px){
    .app-shell{margin:20px 0;height:calc(100dvh - 40px);border-radius:26px}
    body{align-items:flex-start}
}



    /* ==========================================================================
    LOGIN SCREEN STYLES
    ========================================================================== */

/* Modifikasi screen khusus login agar konten berada di tengah */
#login.screen.is-active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 122px); /* Menyesuaikan area padding */
}

.login-container {
    width: 100%;
    padding: 6px 4px;
}

/* Header Login & Brand */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header .brand {
    justify-content: center;
    margin-bottom: 14px;
    font-size: 19px;
}

.login-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--ink);
}

.login-subtitle {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.45;
}

/* Form & Input Groups */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 800;
    color: var(--ink);
    text-transform: none;
    letter-spacing: .03em;
    padding-left: 2px;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    box-sizing: border-box;
    box-shadow: var(--shadow);
    transition: .15s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(201, 155, 63, 0.12);
}

.form-group input::placeholder {
    color: var(--muted);
    font-weight: 400;
}

/* Link Actions */
.form-actions {
    text-align: right;
    margin-top: -6px;
}

.forgot-link, .register-link {
    color: var(--gold-dark);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.forgot-link:hover, .register-link:hover {
    text-decoration: underline;
}

/* Primary Submit Button */
.submit-button {
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    border: 1px solid rgba(169, 127, 46, 0.2);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 100%);
    color: #45351c;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(137, 99, 31, 0.12);
    transition: .18s ease;
}

.submit-button:active {
    transform: scale(.97);
    filter: brightness(0.95);
}

/* Footer Section */
.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
}

.login-footer p {
    margin: 0;
}

/* ==========================================================================
FORGOT PASSWORD SCREEN STYLES
========================================================================== */

/* Modifikasi screen khusus lupa sandi agar konten berada di tengah */
#forgot-password.screen.is-active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 122px);
}

.back-to-login-link {
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.back-to-login-link:hover {
    text-decoration: underline;
}

#reset-password.screen.is-active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 122px);
}


/* ==========================================================================
    EDIT PROFILE SCREEN STYLES
    ========================================================================== */
.avatar-section {
    display: flex;
    justify-content: center;
    margin: 18px 0 24px;
}
.avatar-wrapper {
    position: relative;
    width: 84px;
    height: 84px;
}
.avatar-placeholder {
    width: 100% !important;
    height: 100% !important;
    box-shadow: 0 8px 20px rgba(50,42,28,.1);
}
/* Logo penyeimbang di tengah avatar */
.avatar-placeholder:after {
    inset: 22px !important;
}
.upload-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--cream);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.upload-badge i {
    font-size: 11px;
}

/* CSS Menu Card & Row layout */
.menu-card {
    overflow: hidden;
    margin-top: 8px;
}
.menu-row {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    text-align: left;
    transition: background 0.15s ease;
}
.menu-row:last-child {
    border-bottom: 0;
}
.menu-row:active {
    background: #fdfbf7;
}
.menu-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.menu-row:nth-child(2) .menu-icon { background: #fbf1d7; color: var(--gold-dark); }
.menu-row:nth-child(3) .menu-icon { background: #edfbf4; color: #24a86b; }
.menu-row:nth-child(4) .menu-icon { background: #fadfde; color: var(--danger); }
.menu-row:nth-child(5) .menu-icon { background: #f3edf8; color: #7824a8; }

.menu-label {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
}
.menu-row .chevron {
    color: var(--muted);
    font-size: 12px;
}


    /* Gaya dasar untuk spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff; /* Warna spinner */
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px; /* Jarak antara teks dan spinner */
}

/* Animasi berputar */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Opsional: Efek saat tombol dalam kondisi loading (disabled) */
.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


/* Efek latar belakang gelap di dalam app-shell */
.modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000; /* Harus di atas screen dan bottom-nav */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Tersembunyi secara default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* Aktifkan modal */
.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Kotak Konten Pop-up */
.modal-content {
    background: #ffffff;
    width: 85%;
    max-width: 340px;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-overlay.is-open .modal-content {
    transform: scale(1);
}

/* Header Pop-up */
.modal-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--ink, #263649);
    font-weight: 600;
}

.close-modal-btn {
    background: transparent;
    border: 0;
    font-size: 24px;
    color: #99a2ad;
    cursor: pointer;
    line-height: 1;
}

/* Tempat QR Code */
.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-container {
    background: #f8fafc;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 16px;
}

.qr-container img {
    display: block;
    width: 180px;
    height: 180px;
}

.qr-instruction {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}


/* 1. Kunci wadah utama scrolling agar memotong konten yang meluber */
.activity-list-container {
    width: 100%;
    
    /* Batasi tinggi maksimal (setara tinggi ~3 kartu transaksi agar pas di layar HP) */
    max-height: 270px; 
    
    /* AKTIFKAN SCROLL INTERNAL */
    overflow-y: auto !important; 
    overflow-x: hidden;
    
    /* Jarak aman di sebelah kanan untuk scrollbar bawaan HP */
    padding-right: 4px; 
    box-sizing: border-box;
    
    /* Membuat pergerakan scroll di Android & iOS terasa mulus */
    -webkit-overflow-scrolling: touch; 
}

/* 2. Atur elemen tempat penampung hasil render JavaScript */
#transaksi-activity {
    width: 100%;
    display: flex;
    flex-direction: column;
    
    /* Beri jarak renggang (gap) antar kartu artikel agar rapi dan tidak menempel */
    gap: 12px; 
}

/* 3. Desain opsional untuk mempercantik dan menipiskan scrollbar di HP agar bersih */
.activity-list-container::-webkit-scrollbar {
    width: 4px;
}
.activity-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}


/* .topline {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff; 
} */

.app-layout {
  margin: 0;
  padding: 0;
  height: 100vh;      /* 100% tinggi layar ponsel */
  display: flex;
  flex-direction: column;
  overflow: hidden;   /* Mematikan scroll global pada seluruh halaman */
  background-color: #FDFBF7; /* Warna krem tema aplikasi Anda */
}

/* Mengunci Header di atas agar tidak ciut atau ikut bergeser */
.topline {
  /* KUNCI UTAMA: Mengunci posisi di paling atas layar */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999; /* Memastikan header selalu berada di lapisan paling depan */

  /* Penyelarasan isi header */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 10px 15px;
  
  /* Gunakan warna background padat agar konten di bawahnya tertutup saat di-scroll */
  background-color: #FDFBF7; 
}


.scrollable-content {
  /* Beri jarak atas agar kartu member tidak tertutup header */
  padding-top: 65px; 

}

/* Kontainer Utama Artikel */
.about-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #333333;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Gaya Judul Utama (H2) */
.about-title {
    font-size: 1.75rem;
    color: #111111;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Gaya Umum Paragraf */
.about-text {
    margin-bottom: 18px;
    text-align: justify;
    font-size: 1rem;
}

/* Efek Paragraf Menjorok ke Dalam (Opsional) */
.text-indent {
    text-indent: 35px;
}

/* Format Khusus Istilah Asing */
.foreign-term {
    font-style: italic;
    color: #555555;
}

/* Gaya Slogan / Kalimat Penutup */
.about-slogan {
    margin-top: 35px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    color: #d32f2f; /* Warna merah premium */
    font-size: 1.15rem;
    letter-spacing: 0.2px;
}


/* Berikan jarak aman otomatis saat elemen ini dipanggil oleh scrollIntoView */
/* Memberikan ruang aman di atas judul saat fungsi scroll dipanggil */
#branch-section {
    scroll-margin-top: 100px !important; 
}


/* Targetkan semua jenis input text dan textarea pada iOS */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
  font-size: 16px !important;
}

.phone-box input, 
.phone-box input[type="text"] {
  font-size: 16px !important;
}


/* Sembunyikan halaman PIN secara default */
.page-pin-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Mengikuti background putih bersih */
  z-index: 9999;             /* Berada di atas menu utama */
  display: none;             /* Tersembunyi */
  flex-direction: column;
}

/* Munculkan dengan rapi jika class .active ditambahkan */
.page-pin-section.active {
  display: flex !important;
}

/* Gaya Bulatan Indikator PIN */
.pin-dot {
  width: 14px;
  height: 14px;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.15s, border-color 0.15s;
}
.pin-dot.filled {
  background-color: #000000;
  border-color: #000000;
}

/* Tombol Angka */
.key-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: 500;
  color: #111;
  padding: 12px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.key-btn:active {
  opacity: 0.3;
}

/* Menghilangkan garis bawah pada teks di dalam SweetAlert2 / Toast secara paksa */
.swal2-title, 
.swal2-html-container {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}



/* Gaya dasar untuk setiap kotak tanggal di dalam grid */
.calendar-day-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: auto;
    font-size: 0.85rem;
    font-weight: 500;
    color: #212529; /* bootstrap dark text */
    cursor: pointer;
    border-radius: 50% !important; /* Membuat bentuk lingkaran sempurna */
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* Efek Hover Lingkaran Abu-abu terang khas Bootstrap */
.calendar-day-item:hover {
    background-color: #e9ecef !important;
    color: #1c1f23;
}

/* Kotak tanggal kosong pembantu awal bulan */
.calendar-day-empty {
    width: 32px;
    height: 32px;
}

/* --- KONDISI AKTIF TANGGAL TERPILIH (Bootstrap Primary Style) --- */
.calendar-day-item.bs-active {
    background-color: #0d6efd !important; /* Warna biru utama Bootstrap */
    color: #ffffff !important;            /* Teks menjadi putih cerah */
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

/* Hari saat ini (Today's Highlight) */
.calendar-day-item.bs-today {
    border: 1px solid #0d6efd;
    color: #0d6efd;
}
