:root{--gold:#c79522;--gold-dark:#93680e;--gold-light:#f5e7bd;--ink:#28251e;--muted:#777064;--paper:#fbfaf6;--line:#eee5cf}
*{box-sizing:border-box}
html{min-height:100%;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;padding:0 0 calc(82px + env(safe-area-inset-bottom));min-height:100vh}
a{ -webkit-tap-highlight-color:transparent }
.site-header{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px;gap:12px;position:sticky;top:0;z-index:20;box-shadow:0 2px 10px rgba(65,48,12,.05)}
.brand{display:inline-flex;align-items:center;gap:9px;color:var(--gold-dark);font-size:18px;line-height:1.1;font-weight:900;letter-spacing:.35px;text-decoration:none;white-space:nowrap}
.brand-mark{font-size:20px;color:var(--gold)}
.header-action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 17px;border:1px solid var(--gold);border-radius:999px;background:var(--gold);color:#fff;text-decoration:none;font-size:14px;font-weight:800;white-space:nowrap;box-shadow:0 3px 8px rgba(166,119,20,.16)}
main{width:100%;max-width:720px;margin:0 auto;padding:16px 15px 24px}
.hero,.goldhead{background:linear-gradient(135deg,#9b6c0d,#d7ad48 58%,#f0d88f);color:#fff;border-radius:20px;padding:24px 22px;box-shadow:0 8px 22px rgba(139,99,15,.12)}
.hero h1{font-size:clamp(27px,7vw,38px);line-height:1.15;margin:12px 0;font-weight:900;letter-spacing:-.5px}
.card,.panel,.stat{background:#fff;border:1px solid var(--line);border-radius:17px;padding:17px;margin:13px 0;box-shadow:0 3px 12px rgba(70,54,17,.035)}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.muted{color:var(--muted);font-size:13px}.price{font-size:25px;font-weight:900;color:var(--gold-dark)}
.btn{display:flex;align-items:center;justify-content:center;min-height:46px;text-align:center;background:var(--gold);color:#fff;padding:12px 15px;border-radius:12px;text-decoration:none;border:0;font-weight:800;width:100%;cursor:pointer}.btn.dark{background:#403a2c}
.tabs{display:flex;gap:10px}.tabs a{flex:1;text-align:center;padding:12px;background:var(--gold-light);border-radius:12px;text-decoration:none;color:var(--gold-dark);font-weight:800}.tabs .on{background:var(--gold);color:#fff}
.meta{background:#fbf7eb;padding:12px;border-radius:12px;display:flex;justify-content:space-between;margin:12px 0}.notice{background:#fff4d5;border:1px solid #ead49a;padding:12px;border-radius:12px;font-size:13px}.field{width:100%;padding:12px;border:1px solid #ddd;border-radius:10px;margin:6px 0 14px;font:inherit}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;min-height:66px;padding:6px 5px calc(6px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);border-top:1px solid var(--line);box-shadow:0 -5px 18px rgba(48,37,12,.07)}
.nav-item{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:3px 1px;color:#766a50;text-decoration:none;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap}
.nav-icon{width:27px;height:27px;display:flex;align-items:center;justify-content:center;color:#587985;line-height:1}
.nav-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block}
.nav-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.nav-item.active{color:#80601d}.nav-item.active .nav-icon{color:#b28a2e;transform:translateY(-1px)}
.nav-item.nav-buy{position:relative;z-index:2;overflow:visible}
.nav-item.nav-buy .nav-icon{width:62px;height:62px;margin-top:-31px;margin-bottom:0;border-radius:50%;color:#634711;background:radial-gradient(circle at 35% 28%,#fff9d9 0%,#ffe9a0 24%,#e8bd50 52%,#bd8c25 72%,#fff0b5 76%,#d2a23a 83%,#fff 87%,#e8c45f 94%,#b17d20 100%);border:3px solid #d3a844;box-shadow:0 3px 9px rgba(126,88,18,.25),inset 0 0 0 3px rgba(255,255,255,.8);position:relative}
.nav-item.nav-buy .nav-icon:before{content:"";position:absolute;inset:5px;border-radius:50%;border:1px solid rgba(255,255,255,.8);box-shadow:inset 0 0 8px rgba(255,255,255,.8)}
.nav-item.nav-buy .nav-icon svg{width:34px;height:34px;stroke:#614414;stroke-width:1.8;position:relative;z-index:1}
.nav-item.nav-buy .nav-label{font-weight:800;color:#6f5017;margin-top:3px}

.nav-item.active{color:var(--gold-dark)}.nav-item.active .nav-icon{color:var(--gold);transform:translateY(-1px)}
.table{width:100%;border-collapse:collapse}.table td,.table th{text-align:left;padding:9px;border-bottom:1px solid #eee;font-size:13px}.adminnav{display:flex;gap:8px;flex-wrap:wrap}.adminnav a{background:#403a2c;color:white;padding:10px;border-radius:9px;text-decoration:none;font-size:13px}
@media(max-width:360px){.site-header{padding:0 12px}.brand{font-size:16px}.header-action{min-height:37px;padding:0 13px}.nav-label{font-size:10px}}
.live-price-panel .price{font-size:29px;margin:3px 0 1px}.live-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#8b762f;font-size:11px;margin:3px 0 8px}.chart-panel{padding:19px 16px 15px;overflow:hidden;background:linear-gradient(180deg,#fff 0%,#fffdf8 100%);border-color:#eee3c7;box-shadow:0 8px 24px rgba(104,77,20,.07)}
.chart-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.chart-heading div{display:flex;flex-direction:column;gap:2px}.chart-heading b{font-size:15px;letter-spacing:-.2px}.chart-heading small{font-size:11px;color:var(--muted)}
.chart-heading span{flex-shrink:0;font-size:11px;font-weight:800;color:#8a6516;background:#fbf3df;border:1px solid #f0e2bd;padding:6px 10px;border-radius:999px}
.chart-ranges{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0 0 14px;padding:4px;background:#f7f3e9;border:1px solid #eee5d2;border-radius:13px}
.range-btn{min-width:0;min-height:43px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:1px solid transparent;background:transparent;color:#82785f;border-radius:10px;padding:4px 1px;font:800 12px/1.2 system-ui;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease; -webkit-tap-highlight-color:transparent}
.range-btn small{font-size:9px;font-weight:600;opacity:.8;margin-top:2px}.range-btn.active{background:linear-gradient(135deg,#b98719,#d5ad4d);color:#fff;border-color:#c99b35;box-shadow:0 3px 9px rgba(169,121,23,.22)}
.range-btn:focus-visible{outline:2px solid #9b741e;outline-offset:2px}.chart-wrap{height:245px;position:relative;width:100%;margin:0 -1px}
.chart-foot{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:10px;margin-top:12px;padding-top:10px;border-top:1px solid #f0eadc}
@media(max-width:380px){.chart-panel{padding:16px 12px 13px}.chart-wrap{height:220px}.range-btn{min-height:41px}.range-btn small{font-size:8px}}

/* LOGAM EMAS admin navigation */
body.admin-page{padding-bottom:calc(100px + env(safe-area-inset-bottom));background:var(--paper);color:var(--ink)}
.admin-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;align-items:stretch;padding:8px 5px calc(8px + env(safe-area-inset-bottom));min-height:76px;background:rgba(255,255,255,.98);border-top:1px solid #eadfbe;box-shadow:0 -7px 22px rgba(88,65,15,.10);backdrop-filter:blur(12px)}
.admin-bottom-nav a{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 2px;border-radius:12px;color:#74694f;text-decoration:none;font-size:11px;font-weight:750;line-height:1.15;white-space:nowrap;-webkit-tap-highlight-color:transparent}
.admin-bottom-nav a .admin-nav-icon{display:flex;align-items:center;justify-content:center;width:29px;height:27px;border-radius:9px;color:#987528;font-size:21px;line-height:1}
.admin-bottom-nav a.active{color:#805c0d;background:#fbf4e2}
.admin-bottom-nav a.active .admin-nav-icon{color:#fff;background:linear-gradient(135deg,#b98719,#d6ae50);box-shadow:0 3px 8px rgba(169,121,23,.2)}
.admin-bottom-nav a:focus-visible{outline:2px solid #b98719;outline-offset:2px}
.admin-content{width:100%;max-width:900px;margin:0 auto;padding:18px 15px 30px}
.admin-content .hero{margin:0 0 16px}
.admin-content .grid{gap:12px}
.admin-content .stat{min-width:0;font-weight:650;color:#756a51}
.admin-content .stat strong{display:block;margin-top:5px;color:#8f6712;font-size:25px}
.admin-content .adminnav{display:none}
@media(max-width:380px){.admin-bottom-nav{padding-left:4px;padding-right:4px;gap:1px}.admin-bottom-nav a{font-size:10px}.admin-bottom-nav a .admin-nav-icon{font-size:19px;width:26px;height:25px}}

/* Profile page – clean account screen inspired by the supplied reference */
.profile-page{background:#fff;border:1px solid #eee9df;border-radius:0;overflow:hidden;margin:0 -15px 18px;box-shadow:0 2px 12px rgba(60,48,20,.035)}
.profile-banner{min-height:82px;padding:18px 16px 15px;background:linear-gradient(115deg,#b4d5d4 0%,#77aeb0 52%,#28666a 100%);color:#fff;display:flex;flex-direction:column;justify-content:center}
.profile-banner-title{font-size:21px;font-weight:850;line-height:1.2}.profile-banner-sub{font-size:12px;opacity:.92;margin-top:7px}
.profile-identity{display:flex;align-items:center;flex-direction:column;text-align:center;padding:26px 16px 22px}
.profile-avatar{width:96px;height:96px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f5e8bd;color:#9a762c;font-size:45px;margin-bottom:12px}
.profile-identity h1{font-size:17px;font-weight:850;color:#171717;margin:0 0 10px;overflow-wrap:anywhere}
.profile-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#dff4e7;color:#25804d;font-size:11px;font-weight:800;padding:5px 11px}
.profile-status i{width:6px;height:6px;border-radius:50%;background:#2eaa65}.profile-id{font-size:11px;color:#777;margin-top:10px}
.profile-wallets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 14px 18px}
.profile-wallet{background:#f3f3f3;border-radius:15px;padding:15px 14px;min-width:0}.profile-wallet span{display:block;color:#777;font-size:12px;margin-bottom:5px}.profile-wallet strong{display:block;font-size:16px;color:#171717;font-weight:850;overflow-wrap:anywhere}
.profile-section-heading{font-size:16px;font-weight:850;margin:0;padding:2px 14px 8px;color:#171717}
.profile-menu{padding:0 14px}.profile-menu-item{min-height:100px;display:flex;align-items:center;gap:14px;padding:14px 10px;border-bottom:1px solid #ededed;text-decoration:none;color:#171717;-webkit-tap-highlight-color:transparent}
.profile-menu-icon{flex:0 0 50px;width:50px;height:50px;border-radius:14px;background:#f2f2f2;display:flex;align-items:center;justify-content:center;color:#a9873d;font-size:23px}
.profile-menu-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.profile-menu-copy b{font-size:15px;font-weight:850}.profile-menu-copy small{font-size:12px;color:#777}.profile-chevron{font-size:27px;line-height:1;color:#777;padding:0 3px}
.profile-menu-item:active{background:#fbf7eb}.profile-detail{margin:14px;padding:15px;border:1px solid #eee5d2;border-radius:14px;background:#fffdf8;font-size:13px;color:#555;scroll-margin-top:80px}.profile-detail h3{margin:0 0 10px;color:#29251d;font-size:16px}.profile-detail p{margin:7px 0;overflow-wrap:anywhere}
.profile-logout{display:flex;align-items:center;justify-content:center;gap:9px;margin:18px 14px 24px;min-height:48px;border:1.5px solid #d65a5a;border-radius:999px;color:#c34c4c;text-decoration:none;font-weight:800;font-size:14px}.profile-logout span{font-size:19px}
@media(min-width:600px){.profile-page{border-radius:18px;margin:0 0 18px}.profile-menu-item{min-height:88px}.profile-wallets{padding-left:18px;padding-right:18px}.profile-menu{padding-left:18px;padding-right:18px}}

/* Portofolio emas digital dan penebusan */
.portfolio-hero{background:linear-gradient(125deg,#0d5362,#176a78);color:#fff;border-radius:18px;padding:22px 19px;margin:8px 0 14px;box-shadow:0 8px 22px rgba(10,72,84,.16)}
.portfolio-kicker{font-size:11px;letter-spacing:.8px;font-weight:800;opacity:.85}.portfolio-value{font-size:clamp(28px,8vw,38px);font-weight:900;line-height:1.2;margin:9px 0}.portfolio-grams{font-size:15px;font-weight:750}.portfolio-sub{font-size:12px;opacity:.82;margin-top:9px}
.portfolio-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.portfolio-summary>div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;min-width:0}.portfolio-summary small{display:block;color:var(--muted);font-size:11px}.portfolio-summary b{display:block;font-size:16px;margin-top:5px;overflow-wrap:anywhere;color:#28251e}
.portfolio-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.btn-outline{background:#fff;color:#176271;border:1px solid #c8dadd}.asset-note{background:#f2f7f6;border:1px solid #d8e9e6;color:#38565a;border-radius:13px;padding:13px;font-size:12px;line-height:1.55;margin:14px 0}.success-note{background:#e8f6ed;border-color:#c8e8d2;color:#23643a}.package-card{padding:0;overflow:hidden}.package-card .goldhead{border-radius:0;padding:14px 17px}.package-body{padding:16px}.lot-card{padding:15px}.lot-top,.lot-meta{display:flex;justify-content:space-between;align-items:center;gap:10px}.lot-grams{font-size:24px;font-weight:900;color:#176271;margin:9px 0}.lot-meta{font-size:12px;color:var(--muted);padding:7px 0;border-top:1px solid #f0eadc}.lot-meta b{color:var(--ink)}.status-pill{background:#e8f6ed;color:#23643a;border-radius:999px;padding:4px 9px;font-size:10px;font-weight:800}.inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.inline-actions .btn{flex:1;min-width:125px}.btn-danger{background:#fff;color:#b33b36;border:1px solid #e6b8b5}.admin-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}

/* Portfolio investment list */
.portfolio-summary-wide{grid-column:1/-1}
.portfolio-price-row{display:flex;justify-content:space-between;align-items:center;padding:14px 4px;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}
.portfolio-price-row b{font-size:17px;color:#20515a}
.portfolio-disclaimer{font-size:11px;line-height:1.55;margin:10px 2px 20px}
.investment-list-heading{display:flex;justify-content:space-between;align-items:end;gap:8px;margin:20px 0 12px}
.investment-list-heading small{font-size:10px;letter-spacing:.7px;font-weight:800;color:#9a7b37}
.investment-list-heading h2{font-size:21px;margin:4px 0 0}
.investment-list-heading>span{font-size:12px;color:var(--muted)}
.investment-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;background:#f2f4f3;padding:5px;border-radius:12px;margin-bottom:13px}
.investment-filter{border:1px solid transparent;background:transparent;border-radius:9px;padding:12px 3px;color:#687477;font-size:12px;font-weight:750}
.investment-filter.active{background:#fff;color:#176271;border-color:#e8e2d2;box-shadow:0 2px 6px #0000000d}
.investment-card{padding:16px;margin-bottom:12px}
.investment-card[hidden]{display:none}
.investment-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#758084;font-size:12px}
.investment-status{padding:5px 10px;border-radius:999px;background:#e4f4e9;color:#25804d;font-size:11px;font-weight:800}
.investment-status.completed{background:#edf0f1;color:#53646a}
.investment-card h3{font-size:19px;margin:10px 0 4px}
.investment-tenor{font-size:12px;color:var(--muted)}
.investment-grams{font-size:19px;font-weight:850;color:#8d6b20;margin:12px 0}
.investment-grams small{font-size:12px;font-weight:600;color:var(--muted)}
.investment-card-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.investment-card-stats div:last-child{text-align:right}
.investment-card-stats small,.investment-maturity span{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}
.investment-card-stats b{font-size:16px}
.investment-maturity{display:flex;justify-content:space-between;gap:8px;padding:10px 0 0;font-size:12px}
.investment-maturity b{text-align:right}
.investment-countdown{font-size:12px;font-weight:750;margin:10px 0 4px;color:#176271}
.investment-note{font-size:11px;line-height:1.5}
@media(max-width:360px){.investment-card-stats b{font-size:14px}.investment-filter{font-size:11px}}


/* Stronger, mobile-safe portfolio filter styling */
.investment-filters{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  align-items:stretch;
  gap:5px !important;
  padding:5px !important;
  margin:0 0 14px !important;
  background:#edf1f0 !important;
  border:1px solid #e3e9e7 !important;
  border-radius:13px !important;
}
.investment-filters .investment-filter{
  appearance:none !important;
  -webkit-appearance:none !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  min-width:0 !important;
  min-height:44px !important;
  margin:0 !important;
  padding:8px 3px !important;
  border:1px solid transparent !important;
  border-radius:9px !important;
  background:transparent !important;
  color:#687477 !important;
  font:700 12px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif !important;
  box-shadow:none !important;
  white-space:normal !important;
}
.investment-filters .investment-filter.active{
  background:#fff !important;
  color:#176271 !important;
  border-color:#e8e2d2 !important;
  box-shadow:0 2px 7px rgba(0,0,0,.07) !important;
}
.investment-list-section .notice{margin-top:10px}
.investment-list-heading{margin-top:24px}
.portfolio-summary-wide{grid-column:1/-1}
.portfolio-summary-wide b{font-size:15px}
@media(max-width:380px){
 .investment-filters .investment-filter{font-size:11px !important}
 .portfolio-actions{gap:7px}
 .portfolio-actions .btn{font-size:13px;padding-left:8px;padding-right:8px}
}

/* Ringkasan saldo pengguna di header */
.site-header{gap:8px}
.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.header-balance{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;text-decoration:none;color:#806016;line-height:1.15;min-width:0}
.header-balance small{font-size:10px;color:#81775f}
.header-balance b{font-size:12px;white-space:nowrap}
@media(max-width:390px){.brand{font-size:14px}.header-actions{gap:5px}.header-balance b{font-size:11px}.header-balance small{font-size:9px}.header-action{padding:10px 12px!important;font-size:12px}}

/* Header balance pill - compact, aligned and mobile friendly */
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.site-header .brand{flex:1 1 auto;min-width:0;white-space:nowrap}
.site-header .header-actions{
  display:flex;align-items:center;justify-content:flex-end;
  gap:8px;flex:0 0 auto;min-width:0;
}
.site-header .header-balance{
  box-sizing:border-box;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  gap:2px;padding:7px 10px;min-width:88px;max-width:124px;
  border:1px solid #ead9a7;border-radius:12px;
  background:#fff8e7;color:#765711;text-decoration:none!important;
  line-height:1.1;overflow:hidden;
}
.site-header .header-balance small{
  display:block;color:#88764d;font-size:9px;font-weight:600;
  text-decoration:none;white-space:nowrap;
}
.site-header .header-balance b{
  display:block;color:#765711;font-size:12px;font-weight:800;
  text-decoration:none;white-space:nowrap;
}
.site-header .header-action{flex:0 0 auto;white-space:nowrap}
@media(max-width:420px){
 .site-header{padding-left:14px;padding-right:14px}
 .site-header .header-actions{gap:6px}
 .site-header .header-balance{min-width:76px;max-width:100px;padding:7px 8px;border-radius:10px}
 .site-header .header-balance b{font-size:11px}
 .site-header .header-balance small{font-size:8px}
 .site-header .header-action{padding:9px 11px!important;font-size:11px}
}

/* Header saldo: compact premium wallet chip */
.site-header .header-actions{gap:9px}
.site-header .header-balance{
  display:flex;flex-direction:row;align-items:center;justify-content:flex-start;
  gap:7px;min-width:0;max-width:150px;padding:7px 10px;
  border:1px solid #e8d49b;border-radius:14px;
  background:linear-gradient(135deg,#fffdf7 0%,#fbf1d5 100%);
  color:#735313;text-decoration:none!important;
  box-shadow:0 2px 7px rgba(126,91,18,.09);
}
.site-header .header-balance .balance-icon{
  display:flex;align-items:center;justify-content:center;flex:0 0 27px;
  width:27px;height:27px;border-radius:9px;
  background:linear-gradient(145deg,#c99c2e,#a87912);
  color:#fff;font-size:10px;font-weight:800;letter-spacing:-.5px;
}
.site-header .header-balance .balance-copy{
  display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.05;
}
.site-header .header-balance small{
  color:#88764d;font-size:9px;font-weight:600;text-decoration:none!important;
  white-space:nowrap;
}
.site-header .header-balance b{
  color:#67490d;font-size:12px;font-weight:800;text-decoration:none!important;
  white-space:nowrap;letter-spacing:-.2px;
}
.site-header .header-action{
  box-shadow:0 3px 9px rgba(172,127,23,.17);
}
@media(max-width:420px){
 .site-header .header-actions{gap:6px}
 .site-header .header-balance{gap:5px;padding:6px 7px;border-radius:12px;max-width:130px}
 .site-header .header-balance .balance-icon{width:24px;height:24px;flex-basis:24px;border-radius:8px;font-size:9px}
 .site-header .header-balance small{font-size:8px}
 .site-header .header-balance b{font-size:10px}
 .site-header .header-action{padding:9px 11px!important;font-size:11px}
}

/* Saldo header memakai ikon dompet, tanpa tampilan link bergaris bawah */
.site-header a.header-balance,
.site-header a.header-balance:link,
.site-header a.header-balance:visited,
.site-header a.header-balance:hover{
  text-decoration:none!important;
  color:#67490d!important;
}
.site-header .header-balance .balance-icon{
  width:32px;height:32px;flex:0 0 32px;
  display:flex;align-items:center;justify-content:center;
  border-radius:11px;
  background:linear-gradient(145deg,#d5ad4d,#a87918);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38),0 2px 5px rgba(126,91,18,.16);
}
.site-header .header-balance .balance-icon svg{
  display:block;width:20px;height:20px;fill:none;
  stroke:#fffdf5;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
.site-header .header-balance .balance-icon svg .wallet-detail{stroke-width:2}
.site-header .header-balance .balance-copy small,
.site-header .header-balance .balance-copy b{text-decoration:none!important}
@media(max-width:420px){
 .site-header .header-balance{max-width:140px;padding:6px 8px;gap:6px}
 .site-header .header-balance .balance-icon{width:29px;height:29px;flex-basis:29px;border-radius:10px}
 .site-header .header-balance .balance-icon svg{width:18px;height:18px}
}

/* Final header layout fix: keep logo, wallet and account button on one line */
.site-header{
  box-sizing:border-box!important;
  width:100%!important;
  height:68px!important;
  min-height:68px!important;
  max-height:68px!important;
  padding:0 14px!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  overflow:visible!important;
  position:sticky!important;
  top:0!important;
  z-index:30!important;
}
.site-header>.brand{
  display:inline-flex!important;
  flex:1 1 auto!important;
  min-width:0!important;
  width:auto!important;
  margin:0!important;
  align-self:center!important;
  font-size:15px!important;
}
.site-header>.header-actions{
  display:flex!important;
  flex:0 0 auto!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  align-self:center!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  gap:7px!important;
}
.site-header .header-balance{
  box-sizing:border-box!important;
  display:inline-flex!important;
  flex:0 1 auto!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  width:auto!important;
  min-width:0!important;
  max-width:116px!important;
  height:38px!important;
  margin:0!important;
  padding:5px 7px!important;
  border:1px solid #ead9a7!important;
  border-radius:12px!important;
  background:#fff8e7!important;
  color:#765711!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  box-shadow:0 2px 6px rgba(126,91,18,.08)!important;
}
.site-header .header-balance .balance-icon{
  display:flex!important;
  flex:0 0 23px!important;
  width:23px!important;
  height:23px!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
  border-radius:7px!important;
  background:linear-gradient(145deg,#d5ad4d,#a87918)!important;
}
.site-header .header-balance .balance-icon svg{width:16px!important;height:16px!important}
.site-header .header-balance b{
  display:block!important;
  flex:0 1 auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:#67490d!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-decoration:none!important;
}
.site-header .header-action{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0 12px!important;
  white-space:nowrap!important;
  font-size:11px!important;
  line-height:1!important;
}
@media(max-width:380px){
 .site-header{padding:0 10px!important;gap:5px!important}
 .site-header>.brand{font-size:13px!important;gap:6px!important}
 .site-header>.header-actions{gap:5px!important}
 .site-header .header-balance{max-width:105px!important;padding:4px 5px!important;gap:4px!important;height:36px!important}
 .site-header .header-balance b{font-size:9px!important}
 .site-header .header-balance .balance-icon{width:21px!important;height:21px!important;flex-basis:21px!important}
 .site-header .header-action{height:36px!important;min-height:36px!important;padding:0 9px!important;font-size:10px!important}
}

/* Admin bottom navigation: six tabs, one tidy row on mobile */
body.admin-page{padding-bottom:calc(94px + env(safe-area-inset-bottom))!important}
.admin-bottom-nav{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(0,1fr)!important;
  gap:2px!important;
  width:100%!important;
  min-height:72px!important;
  padding:6px 4px calc(6px + env(safe-area-inset-bottom))!important;
  overflow:hidden!important;
}
.admin-bottom-nav a{
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  padding:4px 0!important;
  gap:3px!important;
  border-radius:10px!important;
  font-size:clamp(8px,2.35vw,10px)!important;
  line-height:1.1!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.admin-bottom-nav a .admin-nav-icon{
  width:24px!important;
  height:23px!important;
  flex:0 0 23px!important;
  font-size:19px!important;
}
@media(max-width:360px){
 .admin-bottom-nav{gap:1px!important;padding-left:2px!important;padding-right:2px!important}
 .admin-bottom-nav a{font-size:8px!important}
 .admin-bottom-nav a .admin-nav-icon{font-size:17px!important;width:21px!important}
}

/* Force all six admin navigation items into one single row */
.admin-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;gap:2px!important;padding-left:4px!important;padding-right:4px!important}
.admin-bottom-nav>a{min-width:0!important;width:100%!important;padding-left:0!important;padding-right:0!important;font-size:clamp(8px,2.5vw,11px)!important;letter-spacing:-.2px!important}
.admin-bottom-nav>a>span:last-child{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:clip!important;white-space:nowrap!important}
@media(max-width:380px){.admin-bottom-nav>a{font-size:8px!important}.admin-bottom-nav a .admin-nav-icon{width:22px!important;font-size:18px!important}}

/* Tiga kategori utama pada halaman Beli Emas */
.buy-page{max-width:900px;margin:0 auto}
.buy-heading{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:10px 0 16px}
.buy-heading h2{margin:4px 0 0;font-size:23px}
.buy-kicker{font-size:10px;font-weight:850;letter-spacing:1px;color:#987528}
.buy-heading-mark{font-size:11px;font-weight:850;color:#9a762c;white-space:nowrap}
.buy-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:4px 0}
.buy-category{min-width:0;min-height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:12px 5px;border:1px solid #eee2c3;border-radius:16px;background:linear-gradient(145deg,#fffaf0,#f7edcf);color:#6e5318;text-decoration:none;text-align:center;box-shadow:0 3px 10px rgba(116,84,20,.055);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;-webkit-tap-highlight-color:transparent}
.buy-category:active{transform:scale(.98)}
.buy-category.active{border:1.5px solid #c49a35;background:linear-gradient(145deg,#f8edca,#f1dfaa);box-shadow:0 5px 14px rgba(157,115,26,.14)}
.buy-category-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;color:#9a762c}
.buy-category-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.buy-category b{font-size:clamp(10px,2.8vw,13px);font-weight:850;line-height:1.2;overflow-wrap:anywhere}
.buy-category-caption{margin:8px 2px 14px;color:#8b7b56;font-size:12px}
.buy-empty{margin-top:12px}
@media(max-width:360px){.buy-category-grid{gap:6px}.buy-category{min-height:102px;border-radius:13px;padding:10px 3px}.buy-category-icon{width:30px;height:30px}.buy-category-icon svg{width:24px;height:24px}}


/* FINAL MOBILE BOTTOM NAV — raised gold diamond button */
.bottom-nav{
  position:fixed!important;left:0!important;right:0!important;bottom:0!important;
  z-index:999!important;display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:end!important;min-height:82px!important;
  padding:8px 7px calc(9px + env(safe-area-inset-bottom))!important;
  overflow:visible!important;background:#fff!important;
  border-top:1px solid #eee5cf!important;
  box-shadow:0 -4px 18px rgba(48,37,12,.08)!important;
}
.bottom-nav>.nav-item{
  min-width:0!important;min-height:62px!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:flex-end!important;
  gap:5px!important;padding:3px 1px!important;margin:0!important;
  color:#617d88!important;text-decoration:none!important;
  font-size:clamp(10px,2.8vw,13px)!important;font-weight:650!important;
  line-height:1.15!important;white-space:nowrap!important;
  overflow:visible!important;background:transparent!important;
  border:0!important;box-shadow:none!important;
}
.bottom-nav>.nav-item>.nav-icon{
  width:31px!important;height:31px!important;flex:0 0 31px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:#587985!important;box-shadow:none!important;
}
.bottom-nav>.nav-item>.nav-icon svg{
  display:block!important;width:29px!important;height:29px!important;
  fill:currentColor!important;stroke:currentColor!important;stroke-width:1.5!important;
}
.bottom-nav>.nav-item:nth-child(2)>.nav-icon svg{fill:currentColor!important}
.bottom-nav>.nav-item>.nav-label{
  display:block!important;max-width:100%!important;overflow:visible!important;
  text-overflow:clip!important;white-space:nowrap!important;
  color:#587985!important;font-size:inherit!important;font-weight:650!important;
}
.bottom-nav>.nav-item.nav-buy{
  position:relative!important;z-index:3!important;overflow:visible!important;
  justify-content:flex-end!important;
}
.bottom-nav>.nav-item.nav-buy>.nav-icon{
  width:84px!important;height:84px!important;flex:0 0 84px!important;
  margin-top:-47px!important;margin-bottom:-1px!important;
  border-radius:50%!important;border:5px solid #c99b32!important;
  color:#684b12!important;
  background:radial-gradient(circle at 35% 28%,#fffde9 0%,#ffe99b 34%,#e6b941 63%,#bd8b22 78%,#fff1b8 84%,#d1a13a 100%)!important;
  box-shadow:0 3px 10px rgba(126,88,18,.28),inset 0 0 0 3px rgba(255,255,255,.9)!important;
  position:relative!important;
}
.bottom-nav>.nav-item.nav-buy>.nav-icon:before{
  content:""!important;position:absolute!important;inset:5px!important;
  border-radius:50%!important;border:1px solid rgba(255,255,255,.9)!important;
  box-shadow:inset 0 0 8px rgba(255,255,255,.65)!important;
}
.bottom-nav>.nav-item.nav-buy>.nav-icon svg{
  width:48px!important;height:48px!important;fill:none!important;
  stroke:#614414!important;stroke-width:1.9!important;position:relative!important;z-index:1!important;
}
.bottom-nav>.nav-item.nav-buy>.nav-label{
  color:#6f5017!important;font-weight:850!important;margin-top:0!important;
}
.bottom-nav>.nav-item.active:not(.nav-buy)>.nav-icon,
.bottom-nav>.nav-item.active:not(.nav-buy)>.nav-label{color:#a47a20!important}
body{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
@media(max-width:380px){
 .bottom-nav{min-height:78px!important;padding-left:3px!important;padding-right:3px!important}
 .bottom-nav>.nav-item{font-size:10px!important}
 .bottom-nav>.nav-item.nav-buy>.nav-icon{width:76px!important;height:76px!important;flex-basis:76px!important;margin-top:-41px!important}
 .bottom-nav>.nav-item.nav-buy>.nav-icon svg{width:42px!important;height:42px!important}
}


/* Kartu investasi bergambar seperti contoh portofolio emas */
.investment-showcase{padding:0!important;overflow:hidden;border:1px solid #eee5d1!important;border-radius:20px!important}
.investment-showcase-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 16px;background:linear-gradient(110deg,#a87912,#efd98d);color:#fff;font-size:12px;font-weight:850;letter-spacing:.25px}
.investment-showcase-head .investment-status{background:#e8f6ed;color:#25804d;white-space:nowrap}
.investment-showcase-main{display:flex;align-items:center;gap:14px;padding:16px 16px 10px}
.investment-product-photo{width:68px;height:92px;flex:0 0 68px;border:1px solid #eee3c7;border-radius:9px;background:#fbf5e5;overflow:hidden;display:flex;align-items:center;justify-content:center}
.investment-product-photo img{width:100%;height:100%;object-fit:contain;display:block;padding:3px;box-sizing:border-box}
.investment-gold-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#a47b21;gap:7px}.investment-gold-placeholder span{font-size:55px;line-height:1}.investment-gold-placeholder small{font-size:8px;font-weight:900;letter-spacing:.6px}
.investment-product-info{min-width:0;flex:1}.investment-product-info>small{color:#879093;font-size:11px}.investment-product-info h3{margin:5px 0 7px!important;font-size:18px!important;overflow-wrap:anywhere}.investment-product-info .investment-grams{margin:10px 0 0!important}
.investment-showcase .investment-card-stats{margin:4px 16px 0;padding:13px 0}.investment-daily-row{display:flex;justify-content:space-between;gap:10px;padding:10px 16px 0;font-size:12px;color:#758084}.investment-daily-row b{font-size:13px}.investment-up{color:#24804d}.investment-down{color:#b34d3e}
.investment-showcase .investment-maturity{padding:10px 16px 0}.investment-progress-label{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:12px 16px 7px;font-size:12px;color:#547078}.investment-progress-label b{color:#344d52}.investment-progress{height:7px;margin:0 16px 10px;background:#eee9da;border-radius:99px;overflow:hidden}.investment-progress span{display:block;height:100%;background:linear-gradient(90deg,#c5962a,#e9d07e);border-radius:99px}.investment-showcase .investment-note{padding:0 16px;margin:8px 0 12px}.investment-showcase .investment-detail{margin:0 16px 15px;border-top:1px solid #eee9df;padding-top:10px}.investment-detail summary{font-size:12px;font-weight:800;color:#87671f;cursor:pointer}.investment-detail-content{padding-top:8px}.investment-detail-content div{display:flex;justify-content:space-between;gap:8px;padding:5px 0;font-size:11px}.investment-detail-content span{color:#7b8587}.investment-detail-content b{text-align:right}.package-product-image{display:block;width:120px!important;height:150px!important;max-width:120px!important;max-height:150px!important;object-fit:contain;background:#fbf6e9;border:1px solid #eee3c7;border-radius:12px;margin:8px 0 14px!important;padding:5px}
.package-admin-list{display:grid;gap:10px}.package-admin-row{display:flex;align-items:center;gap:12px}.package-admin-row img,.package-admin-placeholder{width:64px;height:76px;object-fit:cover;border-radius:9px;background:#faf2dc;display:flex;align-items:center;justify-content:center;color:#a47b21;font-size:34px}.package-admin-row>div:last-child{display:grid;gap:4px}.package-admin-row small{color:var(--muted)}
@media(max-width:380px){.investment-product-photo{width:62px;height:84px;flex-basis:62px}.investment-product-info h3{font-size:16px!important}.investment-showcase-head{font-size:10px}}


/* Beli Emas: compact horizontal package cards */
.package-card-horizontal{padding:12px!important;margin:12px 0 16px!important;border:1px solid #e9e3d3;border-radius:17px;background:#fff;overflow:hidden}
.package-horizontal-main{display:flex;align-items:stretch;gap:12px;min-width:0}
.package-thumb{width:104px;min-width:104px;height:132px;flex:0 0 104px;border:1px solid #e7e0cf;border-radius:12px;background:#f8f5eb;overflow:hidden;display:flex;align-items:center;justify-content:center}
.package-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.package-thumb-placeholder{font-size:52px;color:#a47b21}
.package-info{flex:1;min-width:0;padding:1px 0;display:flex;flex-direction:column;align-items:stretch}
.package-tenor{font-size:10px;line-height:1.3;letter-spacing:.55px;font-weight:850;color:#96721e}
.package-info h3{font-size:16px!important;line-height:1.25;margin:4px 0!important;color:#26383b;overflow-wrap:anywhere}
.package-description{font-size:11px;color:#7a8585;margin:0 0 7px!important}
.package-modal-label{font-size:10px;color:#899191;margin-top:2px}
.package-info .price{font-size:19px;font-weight:900;color:#9b7418;margin:0 0 7px}
.package-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;border-top:1px solid #eee9dc;padding-top:7px;margin-top:1px}
.package-facts>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.package-facts small{font-size:10px;color:#899191}
.package-facts b{font-size:11px;color:#34484b;overflow-wrap:anywhere}
.package-disclaimer{font-size:9px;line-height:1.35;color:#8a8c83;margin:7px 0!important}
.package-select{width:100%;min-height:36px;padding:8px 10px!important;margin-top:auto;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px!important;border-radius:9px}
@media(max-width:380px){.package-card-horizontal{padding:9px!important}.package-horizontal-main{gap:9px}.package-thumb{width:88px;min-width:88px;height:116px;flex-basis:88px}.package-info h3{font-size:14px!important}.package-info .price{font-size:17px}.package-disclaimer{font-size:8px}}


/* LOGAM EMAS: kartu beli paket ringkas seperti referensi pengguna */
.buy-page .package-card-horizontal{padding:10px!important;margin:10px 0 12px!important;border-radius:14px!important;box-shadow:0 2px 8px rgba(90,70,25,.05)!important}
.buy-page .package-horizontal-main{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;gap:11px!important;align-items:start!important}
.buy-page .package-thumb{width:76px!important;min-width:76px!important;height:92px!important;max-width:76px!important;max-height:92px!important;flex:0 0 76px!important;border-radius:9px!important}
.buy-page .package-thumb img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;padding:3px!important;box-sizing:border-box!important}
.buy-page .package-thumb-placeholder{font-size:32px!important}
.buy-page .package-info{min-width:0!important;padding:0!important}
.buy-page .package-tenor{font-size:9px!important}
.buy-page .package-info h3{font-size:14px!important;margin:2px 0 3px!important}
.buy-page .package-description{font-size:10px!important;margin:0 0 4px!important}
.buy-page .package-modal-label{font-size:9px!important;margin-top:0!important}
.buy-page .package-info .price{font-size:16px!important;margin:0 0 5px!important}
.buy-page .package-facts{gap:5px!important;padding-top:5px!important}
.buy-page .package-facts small{font-size:9px!important}
.buy-page .package-facts b{font-size:10px!important}
.buy-page .package-disclaimer{font-size:8px!important;margin:5px 0!important}
.buy-page .package-select{min-height:31px!important;padding:6px 8px!important;font-size:11px!important;border-radius:8px!important}
@media(max-width:380px){.buy-page .package-horizontal-main{grid-template-columns:68px minmax(0,1fr)!important;gap:9px!important}.buy-page .package-thumb{width:68px!important;min-width:68px!important;height:84px!important;max-width:68px!important;max-height:84px!important;flex-basis:68px!important}.buy-page .package-info h3{font-size:13px!important}.buy-page .package-info .price{font-size:15px!important}}


/* FIX 2026-11-19: foto Antam di halaman Beli Emas harus berupa thumbnail kecil */
.buy-page article.package-card-horizontal .package-horizontal-main{
  display:flex!important;flex-direction:row!important;align-items:flex-start!important;
  gap:12px!important;min-width:0!important;
}
.buy-page article.package-card-horizontal .package-thumb{
  display:flex!important;position:relative!important;overflow:hidden!important;
  width:68px!important;min-width:68px!important;max-width:68px!important;
  height:92px!important;min-height:92px!important;max-height:92px!important;
  flex:0 0 68px!important;align-self:flex-start!important;
  border:1px solid #e7e0cf!important;border-radius:9px!important;
}
.buy-page article.package-card-horizontal .package-thumb img{
  display:block!important;position:static!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:100%!important;min-height:0!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
  padding:3px!important;box-sizing:border-box!important;
}
.buy-page article.package-card-horizontal .package-info{
  display:flex!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;
}


/* LOGAM EMAS: kartu hasil harian otomatis, tema kuning emas */
.buy-page .package-gold-result{padding:0!important;border:1.5px solid #d6a51d!important;border-radius:18px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 3px 12px rgba(160,116,13,.09)!important;margin:14px 0 18px!important}
.package-gold-result-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;background:linear-gradient(100deg,#f2bd18,#ffdb55);color:#4b3500;font-size:13px}
.package-gold-result-sub{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 14px;border-bottom:1px solid #f2ead5;color:#656565;font-size:12px}
.package-gold-result-sub strong{background:#ffedb2;color:#5e4300;border-radius:8px;padding:5px 9px;font-size:12px}
.buy-page .package-gold-result .package-horizontal-main{display:flex!important;align-items:center!important;gap:12px!important;padding:12px 14px 8px!important}
.buy-page .package-gold-result .package-thumb{width:76px!important;min-width:76px!important;max-width:76px!important;height:100px!important;min-height:100px!important;max-height:100px!important;flex:0 0 76px!important;border-radius:9px!important}
.buy-page .package-gold-result .package-info h3{font-size:17px!important;font-weight:900!important;margin:0 0 5px!important;color:#242424}
.buy-page .package-gold-result .package-description{font-size:11px!important;margin:0 0 8px!important;color:#777}
.buy-page .package-gold-result .package-modal-label{font-size:11px!important;color:#666!important;margin:0 0 2px!important}
.buy-page .package-gold-result .package-info .price{font-size:23px!important;color:#c58e08!important;margin:0!important}
.package-gold-result-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) 92px;align-items:center;gap:8px;margin:0 14px;padding:10px 0;border-top:1px solid #eee5d0}
.package-gold-result-foot>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.package-gold-result-foot>div+div{border-left:1px solid #e8dfca;padding-left:10px}
.package-gold-result-foot small{font-size:10px;color:#686868}
.package-gold-result-foot strong{font-size:17px;line-height:1.2;color:#b98200;overflow-wrap:anywhere}
.package-gold-buy{min-height:40px!important;padding:8px 10px!important;margin:0!important;background:linear-gradient(110deg,#e7ad08,#f5c629)!important;color:#fff!important;border-radius:9px!important;font-size:13px!important;font-weight:800!important;text-decoration:none!important}
.package-gold-disclaimer{font-size:9px;color:#8b8576;line-height:1.35;margin:0!important;padding:0 14px 10px!important}
@media(max-width:380px){.package-gold-result-foot{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) 68px;gap:5px}.package-gold-result-foot strong{font-size:14px}.package-gold-result-foot small{font-size:9px}.package-gold-buy{min-height:36px!important;padding:6px!important}.buy-page .package-gold-result .package-thumb{width:66px!important;min-width:66px!important;max-width:66px!important;height:88px!important;min-height:88px!important;max-height:88px!important;flex-basis:66px!important}}

/* Emas Saya memakai struktur dan tema kartu yang sama dengan Beli Emas */
.investment-showcase.package-gold-result{padding:0!important;margin:14px 0 18px!important;border:1.5px solid #d6a51d!important;border-radius:18px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 3px 12px rgba(160,116,13,.09)!important}
.investment-showcase .package-gold-result-head{background:linear-gradient(100deg,#f2bd18,#ffdb55)!important;color:#4b3500!important}
.investment-showcase .package-gold-result-sub{background:#fff!important}
.investment-showcase .investment-status{display:inline-flex;align-items:center;border-radius:20px;padding:5px 10px;font-size:11px;font-weight:800}
.investment-showcase .investment-status.active{background:#e6f5e9;color:#25804b}
.investment-showcase .investment-status.completed{background:#edf0f2;color:#5f6870}
.investment-showcase .package-horizontal-main{display:flex!important;align-items:center!important;gap:12px!important;padding:12px 14px 8px!important}
.investment-showcase .investment-package-thumb{width:76px!important;min-width:76px!important;max-width:76px!important;height:100px!important;min-height:100px!important;max-height:100px!important;flex:0 0 76px!important;border-radius:9px!important;border:1px solid #eadfbe!important;background:#fffaf0!important;overflow:hidden!important}
.investment-showcase .investment-package-thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;padding:3px!important;box-sizing:border-box!important}
.investment-showcase .package-info h3{font-size:17px!important;font-weight:900!important;margin:0 0 5px!important;color:#242424!important}
.investment-showcase .package-info .price{font-size:23px!important;color:#c58e08!important;margin:0!important}
.investment-showcase .investment-grams-inline{display:block;margin-top:5px;color:#777;font-size:10px}
.investment-showcase .portfolio-result-foot{grid-template-columns:1fr 1.2fr!important;margin:0 14px!important}
.investment-showcase .investment-card-stats{margin:0 14px!important;padding:10px 0!important;border-top:1px solid #eee5d0!important}
.investment-showcase .investment-card-stats b{color:#292929!important}
.investment-showcase .investment-daily-row,.investment-showcase .investment-maturity,.investment-showcase .investment-progress-label,.investment-showcase .investment-progress,.investment-showcase .investment-note,.investment-showcase .investment-detail{margin-left:14px!important;margin-right:14px!important}

/* Indikator perubahan nilai: naik biru, turun merah */
.investment-up-blue{color:#1683d8!important;font-weight:800}
.investment-down-red{color:#dc3545!important;font-weight:800}
.investment-no-change{color:#78828a!important;font-weight:800}

/* Hasil paket berjalan: ditempatkan di tengah antara hasil harian dan total hasil. */
.investment-showcase .portfolio-result-foot{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1.2fr)!important;gap:7px!important}
.investment-showcase .portfolio-result-foot .portfolio-live-value{border-left:1px solid #e8dfca;padding-left:9px}
.investment-showcase .portfolio-result-foot>div:nth-child(3){border-left:1px solid #e8dfca;padding-left:9px}
.investment-showcase .portfolio-result-foot .portfolio-live-value strong{color:#1683d8}
@media(max-width:380px){.investment-showcase .portfolio-result-foot{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr) minmax(0,1.1fr)!important;gap:4px!important}.investment-showcase .portfolio-result-foot .portfolio-live-value,.investment-showcase .portfolio-result-foot>div:nth-child(3){padding-left:5px}.investment-showcase .portfolio-result-foot strong{font-size:12px!important}.investment-showcase .portfolio-result-foot small{font-size:8px!important}}


/* FIX: tiga ringkasan hasil wajib sejajar pada satu baris, termasuk layar HP. */
.investment-showcase .portfolio-result-foot{
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 align-items:start!important;
 gap:6px!important;
 width:auto!important;
}
.investment-showcase .portfolio-result-foot>div{min-width:0!important}
.investment-showcase .portfolio-result-foot>div:nth-child(2),
.investment-showcase .portfolio-result-foot>div:nth-child(3){
 border-left:1px solid #e8dfca!important;
 padding-left:7px!important;
}
.investment-showcase .portfolio-result-foot small{display:block!important;font-size:10px!important;line-height:1.3!important}
.investment-showcase .portfolio-result-foot strong{display:block!important;font-size:clamp(11px,3.1vw,15px)!important;line-height:1.35!important;overflow-wrap:anywhere!important}
@media(max-width:380px){
 .investment-showcase .portfolio-result-foot{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
 .investment-showcase .portfolio-result-foot>div:nth-child(2),
 .investment-showcase .portfolio-result-foot>div:nth-child(3){padding-left:4px!important}
 .investment-showcase .portfolio-result-foot small{font-size:9px!important}
 .investment-showcase .portfolio-result-foot strong{font-size:11px!important}
}


/* FINAL CACHE-BUSTED FIX: keep daily, live, and total results in three columns. */
.investment-showcase .package-gold-result-foot.portfolio-result-foot{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;flex-wrap:nowrap!important;align-items:start!important;gap:6px!important;width:auto!important;margin:0 14px!important;}
.investment-showcase .package-gold-result-foot.portfolio-result-foot>div{display:flex!important;flex-direction:column!important;min-width:0!important;width:auto!important;}
.investment-showcase .package-gold-result-foot.portfolio-result-foot>div:nth-child(2),.investment-showcase .package-gold-result-foot.portfolio-result-foot>div:nth-child(3){border-left:1px solid #e8dfca!important;padding-left:6px!important;}
.investment-showcase .package-gold-result-foot.portfolio-result-foot small{display:block!important;font-size:clamp(8px,2.4vw,10px)!important;line-height:1.25!important;white-space:normal!important;}
.investment-showcase .package-gold-result-foot.portfolio-result-foot strong{display:block!important;font-size:clamp(10px,3vw,15px)!important;line-height:1.3!important;overflow-wrap:anywhere!important;}


/* LOGAM EMAS category colors: scoped only to Beli Emas package cards and Emas Saya cards. */
.buy-page .package-gold-result.category-antam,
.investment-showcase.category-antam{border-color:#d6a51d!important;box-shadow:0 3px 12px rgba(160,116,13,.09)!important}
.buy-page .package-gold-result.category-antam .package-gold-result-head,
.investment-showcase.category-antam .package-gold-result-head{background:linear-gradient(100deg,#f2bd18,#ffdb55)!important;color:#4b3500!important}
.buy-page .package-gold-result.category-antam .package-info .price,
.investment-showcase.category-antam .package-info .price,
.investment-showcase.category-antam .portfolio-result-foot>div:not(.portfolio-live-value) strong{color:#b98200!important}

.buy-page .package-gold-result.category-harian,
.investment-showcase.category-harian{border-color:#078866!important;box-shadow:0 3px 12px rgba(0,128,96,.12)!important}
.buy-page .package-gold-result.category-harian .package-gold-result-head,
.investment-showcase.category-harian .package-gold-result-head{background:linear-gradient(100deg,#08b88b,#006b50)!important;color:#fff!important}
.buy-page .package-gold-result.category-harian .package-gold-result-sub>strong,
.investment-showcase.category-harian .package-gold-result-sub>strong{background:#d9f8e9!important;color:#08744f!important}
.buy-page .package-gold-result.category-harian .package-info .price,
.investment-showcase.category-harian .package-info .price,
.investment-showcase.category-harian .portfolio-result-foot>div:not(.portfolio-live-value) strong{color:#07845f!important}

.buy-page .package-gold-result.category-vip,
.investment-showcase.category-vip{border-color:#8b35c7!important;box-shadow:0 3px 12px rgba(112,35,170,.13)!important}
.buy-page .package-gold-result.category-vip .package-gold-result-head,
.investment-showcase.category-vip .package-gold-result-head{background:linear-gradient(100deg,#b34be8,#51008d)!important;color:#fff!important}
.buy-page .package-gold-result.category-vip .package-gold-result-sub>strong,
.investment-showcase.category-vip .package-gold-result-sub>strong{background:#f0d8ff!important;color:#63209a!important}
.buy-page .package-gold-result.category-vip .package-info .price,
.investment-showcase.category-vip .package-info .price,
.investment-showcase.category-vip .portfolio-result-foot>div:not(.portfolio-live-value) strong{color:#7626ad!important}

.buy-page .buy-category.category-antam.active{background:linear-gradient(145deg,#f8edca,#f1dfaa)!important;border-color:#c49a35!important;color:#795b1d!important}
.buy-page .buy-category.category-harian.active{background:linear-gradient(145deg,#dff8ed,#b9ebd6)!important;border-color:#07936d!important;color:#086b50!important}
.buy-page .buy-category.category-vip.active{background:linear-gradient(145deg,#f4e4ff,#dfc0f5)!important;border-color:#923cc8!important;color:#63209a!important}

/* Live accrual value stays blue for all three categories. */
.investment-showcase .portfolio-result-foot .portfolio-live-value strong{color:#1683d8!important}


/* Final cache-busted category palette for Emas Saya and Beli Emas. */
.buy-page article.package-gold-result.category-harian,
article.investment-showcase.category-harian{border:2px solid #078866!important}
.buy-page article.package-gold-result.category-harian>.package-gold-result-head,
article.investment-showcase.category-harian>.package-gold-result-head{background:linear-gradient(100deg,#08b88b,#006b50)!important;color:#fff!important}
.buy-page article.package-gold-result.category-harian .package-info .price,
article.investment-showcase.category-harian .package-info .price,
article.investment-showcase.category-harian .portfolio-result-foot>div:not(.portfolio-live-value) strong{color:#07845f!important}

.buy-page article.package-gold-result.category-vip,
article.investment-showcase.category-vip{border:2px solid #8b35c7!important}
.buy-page article.package-gold-result.category-vip>.package-gold-result-head,
article.investment-showcase.category-vip>.package-gold-result-head{background:linear-gradient(100deg,#b34be8,#51008d)!important;color:#fff!important}
.buy-page article.package-gold-result.category-vip .package-info .price,
article.investment-showcase.category-vip .package-info .price,
article.investment-showcase.category-vip .portfolio-result-foot>div:not(.portfolio-live-value) strong{color:#7626ad!important}

.buy-page article.package-gold-result.category-antam,
article.investment-showcase.category-antam{border:2px solid #d6a51d!important}
.buy-page article.package-gold-result.category-antam>.package-gold-result-head,
article.investment-showcase.category-antam>.package-gold-result-head{background:linear-gradient(100deg,#f2bd18,#ffdb55)!important;color:#4b3500!important}
.buy-page article.package-gold-result.category-antam .package-info .price,
article.investment-showcase.category-antam .package-info .price,
article.investment-showcase.category-antam .portfolio-result-foot>div:not(.portfolio-live-value) strong{color:#b98200!important}

article.investment-showcase .portfolio-live-value .live-result-number{color:#1683d8!important}


/* Login and registration pages */
.auth-body{min-height:100vh;background:#f8f7f3;color:#1f3440;padding:0 0 24px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.auth-hero{min-height:176px;padding:28px max(22px,calc((100vw - 520px)/2));background:linear-gradient(120deg,#111820 0%,#202a32 58%,#0c3440 100%);color:#fff;position:relative;overflow:hidden}
.auth-hero:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(125deg,transparent 0 38px,rgba(255,255,255,.06) 39px 41px);pointer-events:none}
.auth-brand{position:relative;z-index:1;display:flex;align-items:center;gap:10px;font-size:24px;font-weight:900;letter-spacing:.5px;color:#f2d28d}
.auth-brand-icon{font-size:31px}.auth-hero>small{position:relative;z-index:1;display:block;margin-left:42px;font-size:9px;letter-spacing:3px;color:#c9d0d2}
.auth-hero p{position:relative;z-index:1;font-size:13px;color:#e1e6e7;margin:19px 0 0}
.auth-main{width:100%;max-width:560px;margin:-28px auto 0;padding:0 15px;position:relative;z-index:2}
.auth-card{background:#fffefa;border:1px solid #e1e2df;border-top:3px solid #244b5b;border-radius:15px;padding:25px 24px 22px;box-shadow:0 10px 30px rgba(28,43,48,.06)}
.auth-gold-line{width:38px;height:4px;border-radius:5px;background:#b79a55;margin-bottom:18px}
.auth-card h1{font-size:25px;line-height:1.2;margin:0;color:#183342;font-weight:850}
.auth-intro{font-size:13px;color:#78858a;margin:9px 0 22px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:2px solid #e8e8e4;margin-bottom:21px}
.auth-tabs a{display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:#75838a;font-weight:750;padding:13px 4px;border-bottom:3px solid transparent;margin-bottom:-2px;font-size:14px}
.auth-tabs a.active{color:#19394a;border-color:#b69a59}
.auth-group-title{font-size:13px;font-weight:850;color:#243d4a;margin:0 0 16px}
.auth-card form>label{display:block;font-size:13px;font-weight:750;color:#263b47;margin:14px 0 7px}
.auth-input{min-height:56px;border:1px solid #e1e6e8;background:#f8fafb;border-radius:11px;display:flex;align-items:center;gap:11px;padding:0 13px;color:#758b91}
.auth-input>span:first-child{flex:0 0 auto;font-size:18px}
.auth-input input{min-width:0;flex:1;width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:13px;color:#243d4a;padding:15px 0}
.auth-input input::placeholder{color:#89969c}
.auth-prefix{font-size:13px!important;color:#3b515b;border-right:1px solid #dce2e4;padding-right:11px;white-space:nowrap}
.auth-eye{border:0;background:transparent;color:#53717d;font-size:12px;font-weight:750;padding:9px 3px;white-space:nowrap}
.auth-readonly{background:#edf2f4}.auth-readonly input{color:#637781}
.auth-help{display:block;color:#849095;font-size:11px;margin:7px 0 12px}
.auth-submit{width:100%;min-height:56px;margin:19px 0 4px;border:0;border-radius:11px;background:linear-gradient(105deg,#d8b66f,#e5c98e);color:#24343b;font-size:14px;font-weight:850;display:flex;align-items:center;justify-content:center;gap:16px;cursor:pointer;box-shadow:0 4px 10px rgba(172,135,65,.12)}
.auth-submit span{font-size:20px}
.auth-error{background:#fff0ed;border:1px solid #f3d0c8;color:#a53b2d;padding:11px 13px;border-radius:10px;font-size:12px;margin:0 0 14px}
.auth-forgot{display:flex;justify-content:flex-end;margin:9px 0 3px}.auth-forgot a{color:#243d4a;font-size:12px;font-weight:750;text-decoration:none}
.auth-switch{text-align:center;color:#78858a;font-size:13px;margin:21px 0}
.auth-switch a{color:#243d4a;font-weight:800}
.auth-check{display:flex!important;align-items:flex-start;gap:8px;margin:15px 0 0!important;font-size:11px!important;line-height:1.6;font-weight:500!important;color:#69777d!important}
.auth-check input{margin-top:3px;accent-color:#ad8b45;flex:0 0 auto}.auth-check a{color:#344e5a}
.auth-safety{display:flex;flex-direction:column;gap:5px;background:#f0f6f5;border:1px solid #e0ece9;border-radius:10px;padding:13px;margin-top:20px;color:#547079;font-size:11px}
.auth-safety b{font-size:12px}.auth-safety span{padding-left:22px;line-height:1.5}
.auth-compliance{margin-top:22px;padding-top:17px;border-top:1px solid #e8e9e6;text-align:center;color:#738087;font-size:11px}
.auth-compliance>b{font-size:12px;color:#61727a}.auth-logos{display:flex;justify-content:center;gap:12px;margin:14px auto 9px}
.auth-logos img{width:calc(50% - 8px);max-width:170px;height:64px;object-fit:contain;background:#fff;border:1px solid #e2e5e5;border-radius:10px;padding:6px}
.auth-compliance small{display:block;max-width:390px;margin:0 auto;color:#8a969a;font-size:10px;line-height:1.5}
.auth-footer{text-align:center;color:#879196;font-size:10px;margin-top:22px}
@media(max-width:380px){.auth-card{padding:21px 17px}.auth-card h1{font-size:23px}.auth-hero{padding-left:20px;padding-right:20px}}

/* Home quick actions positioned directly below LOGAM EMAS hero */
.home-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:14px 0 16px;padding:10px 5px;background:#fff;border:1px solid #eee5cf;border-radius:16px;box-shadow:0 3px 12px rgba(70,54,17,.04)}
.home-shortcuts a{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-decoration:none;color:#51452b;font-size:10px;font-weight:800;text-align:center}
.shortcut-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(145deg,#fff4d2,#f0d58c);border:1px solid #d7b45d;color:#98721d;font-size:23px;font-weight:800;box-shadow:0 3px 7px rgba(150,110,28,.12)}
@media(max-width:380px){.home-shortcuts{gap:2px;padding:9px 2px}.shortcut-icon{width:39px;height:39px}.home-shortcuts a{font-size:9px}}


/* Premium quick actions: gold medallions with navy outline icons */
.home-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;gap:4px;margin:14px 0 16px;padding:15px 8px 13px;background:linear-gradient(180deg,#fff 0%,#fffdf8 100%);border:1px solid #eee5d3;border-radius:22px;box-shadow:0 7px 22px rgba(80,61,20,.07)}
.home-shortcuts a{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;text-decoration:none;color:#182c45;font-size:clamp(10px,2.8vw,13px);font-weight:750;text-align:center;transition:transform .18s ease}
.home-shortcuts a:active{transform:scale(.96)}
.shortcut-icon{width:clamp(54px,16vw,76px);height:clamp(54px,16vw,76px);display:flex;align-items:center;justify-content:center;border-radius:50%;background:radial-gradient(circle at 32% 24%,#fff8df 0%,#f8dfa0 48%,#e8bd62 100%);border:1px solid #d7b36b;color:#123c60;box-shadow:inset 0 2px 3px rgba(255,255,255,.9),0 5px 12px rgba(103,75,25,.2),0 0 0 4px rgba(225,190,112,.12)}
.shortcut-icon svg{width:57%;height:57%;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.home-shortcuts a b{font-size:inherit;line-height:1.2;letter-spacing:-.15px;white-space:nowrap}
@media(max-width:360px){.home-shortcuts{padding-left:4px;padding-right:4px;gap:1px}.shortcut-icon{width:50px;height:50px}.home-shortcuts a{font-size:9px}}


/* FINAL OVERRIDE: LOGAM EMAS medal-style home shortcuts */
#homeQuickActions.home-shortcuts{
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
 align-items:start!important;gap:4px!important;margin:14px 0 16px!important;
 padding:11px 7px 10px!important;background:linear-gradient(180deg,#fff 0%,#fffdf8 100%)!important;
 border:1px solid #eee5d3!important;border-radius:22px!important;
 box-shadow:0 7px 22px rgba(80,61,20,.07)!important
}
#homeQuickActions.home-shortcuts>a{
 min-width:0!important;display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:flex-start!important;gap:7px!important;
 padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;
 color:#182c45!important;font-size:clamp(10px,2.8vw,13px)!important;
 font-weight:750!important;text-align:center!important;text-decoration:none!important;
 box-shadow:none!important
}
#homeQuickActions .shortcut-icon{
 width:clamp(48px,14vw,58px)!important;height:clamp(48px,14vw,58px)!important;
 min-width:clamp(48px,14vw,58px)!important;min-height:clamp(48px,14vw,58px)!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;border-radius:50%!important;
 background:radial-gradient(circle at 30% 22%,#fffdf1 0%,#ffe8ad 38%,#f3c75f 72%,#d99a18 100%)!important;
 border:2px solid #e2b64d!important;color:#123c60!important;
 box-shadow:inset 0 2px 4px rgba(255,255,255,.95),inset 0 -3px 5px rgba(164,104,0,.18),0 5px 11px rgba(103,75,25,.22),0 0 0 4px rgba(225,190,112,.16)!important;
 font-size:initial!important
}
#homeQuickActions .shortcut-icon svg{
 width:58%!important;height:58%!important;display:block!important;
 fill:none!important;stroke:#123c60!important;stroke-width:2.7!important;
 stroke-linecap:round!important;stroke-linejoin:round!important
}
#homeQuickActions.home-shortcuts>a>b{
 display:block!important;padding:0!important;margin:0!important;background:none!important;
 color:#182c45!important;font-size:inherit!important;font-weight:750!important;
 line-height:1.2!important;white-space:nowrap!important
}
@media(max-width:380px){
 #homeQuickActions.home-shortcuts{gap:1px!important;padding:10px 3px 8px!important}
 #homeQuickActions .shortcut-icon{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important}
 #homeQuickActions.home-shortcuts>a{font-size:10px!important;gap:8px!important}
}


/* Banner GIF animasi LOGAM EMAS */
.hero.hero-gif{padding:0!important;min-height:0!important;height:auto!important;overflow:hidden;position:relative;border-radius:20px;background:#4a2608;line-height:0;box-shadow:0 8px 22px rgba(139,99,15,.16)}
.hero.hero-gif img{display:block;width:100%;height:auto;aspect-ratio:3/1;object-fit:cover;border-radius:inherit}
@media(max-width:480px){.hero.hero-gif{border-radius:18px}.hero.hero-gif img{aspect-ratio:3/1;object-fit:cover}}


/* FIX banner GIF: keep the page and animated image inside the mobile viewport */
html,body{width:100%;max-width:100%;overflow-x:hidden}
main{width:100%;max-width:720px;min-width:0;box-sizing:border-box}
.hero.hero-gif{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:0!important;height:auto!important;min-height:0!important;overflow:hidden!important;line-height:0!important;border-radius:18px!important}
.hero.hero-gif img{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;aspect-ratio:3/1!important;object-fit:cover!important;object-position:center!important;border-radius:inherit!important}
@media(max-width:480px){main{padding-left:15px;padding-right:15px}.hero.hero-gif,.hero.hero-gif img{max-width:100%!important}}

/* Final banner sizing: show the complete animated artwork without cropping */
.hero.hero-gif{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:0!important;height:auto!important;min-height:0!important;overflow:hidden!important;line-height:0!important;border-radius:18px!important;background:#4a2608!important}
.hero.hero-gif img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;border-radius:inherit!important}


/* Final GIF banner fix: keep intrinsic artwork ratio and prevent cropping/overflow */
.hero.hero-gif{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  border-radius:18px!important;
  line-height:0!important;
  background:linear-gradient(120deg,#4a2608,#bd8615,#f1d27b)!important;
}
.hero.hero-gif img{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  border-radius:inherit!important;
}
.hero-gif-fallback{
  min-height:110px;
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
  color:#fff8df;
  line-height:1.35;
  background:linear-gradient(120deg,#4a2608,#bd8615,#f1d27b);
}
.hero-gif-fallback strong{font-size:clamp(22px,6vw,34px);font-weight:900}
.hero-gif-fallback span{font-size:14px}


/* FINAL MOBILE VIEWPORT REPAIR — full-width layout and contained animated banner */
html, body {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow-x: clip !important;
}
body {
  display: block !important;
}
.site-header,
main,
.bottom-nav {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.site-header {
  box-sizing: border-box !important;
}
main {
  display: block !important;
  box-sizing: border-box !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}
.hero.hero-gif {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
}
.hero.hero-gif img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  margin: 0 !important;
}
.bottom-nav {
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box !important;
}
@media (min-width: 769px) {
  main {
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .site-header, .bottom-nav {
    width: 100% !important;
  }
}


/* Admin page navigation and action controls */
.admin-page-heading{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;flex-wrap:wrap;margin:0 0 16px;
}
.admin-page-heading small{
  display:block;color:#9b7929;font-size:10px;font-weight:850;
  letter-spacing:.12em;margin-bottom:4px;
}
.admin-page-heading h2{margin:0;color:#30291c;font-size:22px;line-height:1.2}
.admin-back-link{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;padding:9px 14px;border-radius:12px;
  background:linear-gradient(135deg,#b98719,#d7ad4b);
  color:#fff!important;text-decoration:none!important;font-weight:800;
  font-size:13px;box-shadow:0 4px 10px rgba(169,121,23,.18);
}
.admin-page .admin-content{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
.admin-page .panel{background:#fff;border:1px solid #eee7d8;border-radius:18px;box-shadow:0 5px 18px rgba(70,52,14,.045);padding:14px}
.admin-page .table{width:100%;border-collapse:collapse;min-width:620px;font-size:13px}
.admin-page .table th{background:#fbf4e2;color:#765817;text-align:left;font-weight:800}
.admin-page .table th,.admin-page .table td{padding:11px 10px;border-bottom:1px solid #eee8da;vertical-align:top}
.admin-page .table td{color:#413b30}
.admin-page .table form{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.admin-page .table .btn{
 display:inline-flex;align-items:center;justify-content:center;width:auto;
 min-height:36px;padding:8px 11px;border:0;border-radius:9px;
 background:#bd901f;color:#fff;font-size:12px;font-weight:800;
 cursor:pointer;white-space:normal
}
.admin-page .table .btn.dark{background:#514936}
.admin-page .table .btn:hover,.admin-back-link:hover{filter:brightness(.96)}
@media(max-width:520px){
 .admin-page-heading h2{font-size:20px}
 .admin-page .table{min-width:580px}
 .admin-page .table .btn{font-size:11px;padding:8px 9px}
}


/* Copy bank account number control on admin withdrawals */
.copy-bank-number{
 display:inline-flex;align-items:center;justify-content:center;
 margin-top:7px;padding:7px 11px;min-height:32px;
 border:1px solid #dfc477;border-radius:9px;
 background:#fff8e6;color:#805d12;font-size:11px;font-weight:850;
 cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.copy-bank-number:active{transform:scale(.97);background:#f7edcf}
.copy-bank-feedback{display:block;margin-top:4px;color:#247447;font-size:11px;font-weight:750}
.bank-number-value{font-weight:750;letter-spacing:.2px}


/* Withdrawal history: clear colored status badges and feedback */
.withdrawal-status{
 display:inline-flex;align-items:center;justify-content:center;
 min-width:76px;padding:6px 11px;border-radius:999px;
 font-size:12px;font-weight:850;line-height:1.2;white-space:nowrap;
 border:1px solid transparent;
}
.withdrawal-status.status-success{color:#176b3a;background:#e7f7ed;border-color:#b8e6c7}
.withdrawal-status.status-pending{color:#8a5b08;background:#fff4d7;border-color:#f0d58d}
.withdrawal-status.status-processing{color:#185b91;background:#e8f3ff;border-color:#b9d9f5}
.withdrawal-status.status-failed{color:#a52d2d;background:#fff0f0;border-color:#f1c2c2}
.withdrawal-success{background:#eaf8ef!important;border:1px solid #bce6c9!important;color:#176b3a!important}
.withdrawal-error{background:#fff0f0!important;border:1px solid #f1c2c2!important;color:#a52d2d!important}


/* Home: carousel produk unggulan ukuran sedang + logo informasi OJK/BPKP */
.home-featured{margin:18px 0 14px;}
.home-featured-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 4px 12px;}
.home-featured-heading h2{display:flex;align-items:center;gap:9px;margin:0!important;font-size:16px!important;font-weight:900;color:#202b35;}
.home-featured-heading h2 span{color:#c79a2b;font-size:22px;}
.home-featured-heading>a{color:#765b1e;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap;}
.home-featured-heading>a span{font-size:20px;vertical-align:-1px;margin-left:3px;}
.home-carousel-shell{position:relative;margin:0 -3px;}
.home-carousel{display:flex;gap:13px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:4px 12.5% 9px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
.home-carousel::-webkit-scrollbar{display:none;}
.home-product-card{flex:0 0 75%;width:75%;max-width:430px;min-width:0;min-height:0;box-sizing:border-box;scroll-snap-align:center;background:#fff;border:1.5px solid #d7aa2c;border-radius:17px;overflow:hidden;box-shadow:0 4px 13px rgba(126,91,15,.10);}
.home-product-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:linear-gradient(100deg,#f2bd18,#ffdc59);color:#513b08;font-size:10px;font-weight:900;}
.home-product-top span{background:#fff0b8;border-radius:7px;padding:5px 8px;white-space:nowrap;}
.home-product-top b{font-size:10px;text-align:right;}
.home-product-main{display:flex;align-items:center;gap:11px;padding:12px 12px 9px;min-width:0;}
.home-product-main img{display:block!important;width:76px!important;height:91px!important;min-width:76px!important;max-width:76px!important;min-height:91px!important;max-height:91px!important;flex:0 0 76px!important;object-fit:contain!important;object-position:center!important;background:#fbf8ef;border:1px solid #eee5d2;border-radius:9px;padding:3px;box-sizing:border-box!important;}
.home-product-main>div{min-width:0;display:flex;flex-direction:column;align-items:flex-start;}
.home-product-main h3{font-size:16px!important;line-height:1.2;margin:0 0 4px!important;color:#202a35;overflow-wrap:anywhere;}
.home-product-main small{font-size:10px;color:#7c8184;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.home-product-price{font-size:21px;font-weight:900;color:#ad7c09;margin-top:5px;line-height:1.15;}
.home-product-results{display:grid;grid-template-columns:1fr 1.15fr;gap:7px;margin:0 12px;padding:9px 0;border-top:1px solid #eee7d8;}
.home-product-results>div{display:flex;flex-direction:column;gap:3px;min-width:0;}
.home-product-results>div+div{border-left:1px solid #eee4d0;padding-left:9px;}
.home-product-results small{font-size:9px;color:#7b7d78;}
.home-product-results b{font-size:13px;line-height:1.2;color:#a87808;overflow-wrap:anywhere;}
.home-product-buy{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 12px 11px;min-height:36px;border-radius:9px;background:linear-gradient(100deg,#e9ad09,#f6c92d);color:#fff;text-decoration:none;font-size:12px;font-weight:900;}
.home-product-buy span{font-size:16px;}
.home-carousel-arrow{position:absolute;z-index:2;top:48%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:50%;background:#fff;color:#263238;font-size:25px;line-height:1;box-shadow:0 2px 9px rgba(0,0,0,.18);cursor:pointer;}
.home-carousel-arrow.prev{left:0}.home-carousel-arrow.next{right:0}
.home-carousel-dots{display:flex;justify-content:center;gap:7px;margin:1px 0 13px;}
.home-carousel-dots span{width:8px;height:8px;border-radius:50%;background:#d4d4d4;transition:all .2s;}
.home-carousel-dots span.active{width:19px;border-radius:10px;background:#c69a27;}
.home-featured-empty{padding:18px;border:1px solid #eee5d3;border-radius:14px;color:#777;background:#fff;font-size:12px;text-align:center;}
.home-institution-logos{display:flex;align-items:center;justify-content:space-evenly;gap:15px;margin:12px 3px 4px;padding:13px 12px;min-height:76px;background:linear-gradient(180deg,#fff,#fffaf0);border:1px solid #f0dfb3;border-radius:18px;box-shadow:0 3px 12px rgba(128,95,23,.07);}
.home-institution-logos>div{flex:1;display:flex;align-items:center;justify-content:center;min-width:0;}
.home-institution-logos img{display:block;max-width:100%;width:auto;height:auto;max-height:48px;object-fit:contain;}
.home-institution-divider{width:1px;height:42px;background:#e4d4ac;flex:0 0 1px;}
.home-institution-note{margin:5px 8px 14px;text-align:center;font-size:9px;line-height:1.4;color:#8a8579;}
@media(min-width:600px){.home-product-card{flex-basis:58%;}.home-carousel{padding-left:21%;padding-right:21%;}}
@media(max-width:380px){.home-product-card{flex-basis:80%;width:80%;}.home-carousel{padding-left:10%;padding-right:10%;}.home-product-main img{width:68px!important;height:84px!important;min-width:68px!important;max-width:68px!important;min-height:84px!important;max-height:84px!important;flex:0 0 68px!important}.home-product-main h3{font-size:14px!important}.home-product-price{font-size:19px}.home-product-results b{font-size:12px}.home-institution-logos img{max-height:42px}}
