/* Premium soft-3D treatment */
:root{
  --premium-shadow:0 4px 0 #dce7ee,0 14px 28px #071d3b12,inset 0 1px 0 #ffffff;
  --lift-shadow:0 6px 0 #dce7ee,0 18px 34px #071d3b18,inset 0 1px 0 #ffffff;
}
body{
  background:radial-gradient(ellipse at 50% 0%,#e6f8fb 0,transparent 36%),#f0f5f8;
}
.topbar{
  max-width:430px;margin:0 auto;background:linear-gradient(145deg,#071d3b 0%,#0a2a4c 68%,#0a3d58 100%);
  border-radius:0 0 30px 30px;padding-left:18px;padding-right:18px;
  box-shadow:0 8px 0 #071d3b0c,0 16px 34px #071d3b13;
}
.topbar:after{width:245px;height:245px;right:-115px;bottom:-152px;opacity:.9}
.brand-mark{
  background:linear-gradient(145deg,#29e2ed,#00aebf);color:#06223d;border:1px solid #8af7f8;
  box-shadow:inset 0 2px 3px #ffffffaa,0 4px 0 #007d91,0 7px 12px #00192c88;
}
.toprow .icon-btn{box-shadow:inset 0 1px 1px #ffffff24,0 4px 0 #07172d,0 7px 12px #00182c55}
.wrap{max-width:430px;padding-left:17px;padding-right:17px}
.metric,.card,.product-list,.report-tile{
  background:linear-gradient(155deg,#fff 0%,#fbfdff 100%);border:1px solid #e7eef3;
  box-shadow:var(--premium-shadow);transition:transform .18s ease,box-shadow .18s ease;
}
.metric{border-radius:20px;padding:15px 14px;position:relative;overflow:hidden}
.metric:before,.card:before{content:"";position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,#ffffff,transparent);pointer-events:none}
.metric .icon{
  width:32px;height:32px;display:grid;place-items:center;float:right;border-radius:11px;
  color:#007b8d;background:linear-gradient(145deg,#e8fcfd,#c8f4f6);border:1px solid #d0f5f6;
  box-shadow:inset 0 1px 0 #fff,0 3px 0 #b4e7ec,0 5px 9px #00a9bb16;
}
.metric .value{font-size:21px}
.primary{
  background:linear-gradient(135deg,#23d8e4 0%,#00b9c8 58%,#079daF 100%);
  border:1px solid #6beaf0;color:#042a43;border-radius:17px;
  box-shadow:inset 0 2px 1px #ffffff8c,0 5px 0 #078b9c,0 11px 20px #00a9bb35;
  text-shadow:0 1px 0 #ffffff65;transition:transform .14s ease,box-shadow .14s ease;
}
.primary:active{transform:translateY(3px);box-shadow:inset 0 2px 1px #ffffff88,0 2px 0 #078b9c,0 5px 10px #00a9bb2b}
.cta{min-height:62px;margin:15px 0 19px;font-size:17px}
.card{border-radius:21px;padding:16px;margin-bottom:15px;position:relative;overflow:hidden}
.cardhead{margin-bottom:12px}
.card h2{letter-spacing:-.2px}
.food-icon{
  background:linear-gradient(145deg,#efffff,#d8f6f8);border:1px solid #d5f3f4;
  box-shadow:inset 0 2px 2px #fff,0 3px 0 #c6e8eb,0 6px 12px #052b3d12;
}
.warning-row,.history-row,.product-row{padding-top:12px;padding-bottom:12px}
.badge{box-shadow:inset 0 1px 0 #ffffffa8,0 2px 0 #f0dfb8;border:1px solid #fff6e3}
.badge.red{box-shadow:inset 0 1px 0 #ffffffa8,0 2px 0 #f1ccca;border-color:#fff4f2}
.badge.green{box-shadow:inset 0 1px 0 #ffffffa8,0 2px 0 #c9e9d7;border-color:#f1fff7}
.bottomnav{
  width:100%;max-width:430px;left:50%;right:auto;transform:translateX(-50%);margin:0;
  border:1px solid #e5edf2;border-bottom:0;border-radius:22px 22px 0 0;
  box-shadow:0 -8px 24px #071d3b0d;background:#ffffffed;
}
.nav-item{min-height:52px;transition:transform .14s ease,background .14s ease}
.nav-item.selected{box-shadow:inset 0 1px 0 #fff,0 3px 0 #b5e8ec;background:linear-gradient(145deg,#e8fcfd,#d4f7f8)}
.add-fab{
  background:linear-gradient(145deg,#23d8e4,#00aebe);border:1px solid #8af7f8;color:#06243d;
  box-shadow:inset 0 2px 1px #ffffffa0,0 5px 0 #078b9c,0 12px 22px #00a9bb44;
}
.secondary,.file-label{
  background:linear-gradient(145deg,#fff,#edf7fa);border:1px solid #dfebef;color:#12314d;
  box-shadow:inset 0 1px 0 #fff,0 3px 0 #d5e3e9,0 6px 12px #071d3b0a;
}
.search,.field input,.field select{
  box-shadow:inset 0 2px 4px #071d3b08,0 2px 0 #e7eef2;background:linear-gradient(#fff,#fcfeff);
}
.report-hero{
  background:radial-gradient(circle at 100% 0%,#00aebd44,transparent 42%),linear-gradient(145deg,#071d3b,#0a3154 76%,#07516a);
  border:1px solid #1a4566;box-shadow:inset 0 1px 0 #ffffff20,0 5px 0 #04152a,0 13px 24px #071d3b26;
}
.report-tile{border-radius:17px}
.modalbox{box-shadow:0 -10px 35px #071d3b28,inset 0 1px 0 #fff}
@media(min-width:560px){
  body{padding-bottom:96px}
  .topbar{padding-left:22px;padding-right:22px}
  .wrap{padding-left:18px;padding-right:18px}
  .bottomnav{max-width:430px}
}

/* Warung-only identity and richer empty states */
.brand{letter-spacing:.8px;font-size:12px;color:#d8f8fb}
.brand-mark{width:36px;height:36px;font-size:18px;border-radius:12px}
.topbar h1{font-size:26px;margin:14px 0 4px;letter-spacing:-.7px}
.topbar p{color:#c8e5ed}
.metric-grid{gap:11px}
.metric{min-height:91px}
.metric .icon{font-size:15px}
.section{padding-top:19px}
.section-title{margin-bottom:14px}
.cardhead .linkbtn{font-size:12px}
.welcome-empty{padding:12px 6px 14px}
.welcome-empty .big{width:58px;height:58px;margin:0 auto 12px;border-radius:19px;display:grid;place-items:center;font-size:27px;background:linear-gradient(145deg,#e8fcfd,#c9f3f5);box-shadow:inset 0 2px 2px #fff,0 4px 0 #bde6e9,0 9px 16px #007c8a18}
.welcome-empty strong{display:block;color:var(--navy);font-size:15px;margin:0 0 4px}
.welcome-empty .secondary{display:inline-flex;width:auto;align-items:center;justify-content:center;margin-top:12px;padding:11px 16px;border-radius:13px}
.backup-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}
.backup-actions .backup-save,.backup-actions .file-label{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;border-radius:14px;padding:10px 9px;font-size:13px;font-weight:800}
.backup-save{background:linear-gradient(145deg,#20d2df,#00aabd);border:1px solid #89eff2;color:#062640;box-shadow:inset 0 2px 1px #ffffffa0,0 4px 0 #078b9c,0 8px 14px #00a9bb26}
.backup-save:active{transform:translateY(2px);box-shadow:inset 0 2px 1px #ffffff88,0 2px 0 #078b9c}
.backup-card .subtle{line-height:1.55}
.nav-item .navicon{width:35px;height:30px;display:grid;place-items:center;border-radius:11px;font-size:17px;background:linear-gradient(145deg,#f5fcff,#e6f1f5);box-shadow:inset 0 1px 0 #fff,0 2px 0 #d5e3e9}
.nav-item.selected .navicon{background:linear-gradient(145deg,#d7fafb,#b8eef1);box-shadow:inset 0 1px 0 #fff,0 3px 0 #9cdee2,0 4px 8px #00a9bb16}
.bottomnav{grid-template-columns:repeat(5,1fr)}
.nav-item{font-size:10px;min-width:0;padding-left:1px;padding-right:1px}
.profile-banner{display:flex;align-items:center;gap:14px;min-height:125px;padding:17px;border-radius:18px;background:radial-gradient(circle at 100% 0%,#ffffff44,transparent 40%),linear-gradient(140deg,#0b2e50,#08778a);color:#fff;margin:-2px -2px 17px;overflow:hidden;position:relative}
.profile-banner:after{content:"";position:absolute;width:130px;height:130px;border-radius:50%;right:-48px;bottom:-80px;background:#24e0e544}
.profile-avatar-wrap{position:relative;width:78px;height:78px;flex:none;z-index:1}
.profile-avatar,.profile-avatar-placeholder{width:78px;height:78px;border-radius:50%;border:3px solid #eafcff;box-shadow:0 4px 0 #06324b,0 8px 16px #00172c66;object-fit:cover}
.profile-avatar-placeholder{display:grid;place-items:center;background:linear-gradient(145deg,#dafbfc,#9ce8ed);font-size:34px;color:#087389}
.photo-upload-button{position:absolute;right:-9px;bottom:-7px;padding:5px 8px;border:1px solid #d8faff;border-radius:999px;background:linear-gradient(145deg,#fff,#dffbfc);color:#075065;font-size:10px;font-weight:800;box-shadow:0 3px 0 #007d91,0 5px 9px #00182c55;cursor:pointer;z-index:2}
.profile-copy{display:grid;gap:4px;min-width:0;z-index:1}
.profile-copy span{font-size:9px;letter-spacing:1.1px;color:#a5f5f4;font-weight:800}
.profile-copy strong{font-size:17px;line-height:1.2;overflow-wrap:anywhere}
.profile-copy small{font-size:11px;color:#d0e8ef;line-height:1.35}
.profile-form{gap:11px}
.account-profile .primary{margin-top:2px}
.install-card{background:linear-gradient(145deg,#f7ffff,#e8fafb);border-color:#d7f1f3}
.install-card .cardhead{align-items:center}
.install-card .cardhead .subtle{display:block;margin-top:4px}
.install-card .primary{min-height:48px}
.reset-data-button{width:100%;color:#a63f39;background:linear-gradient(145deg,#fffafa,#fff0ed);border-color:#f2dfdc;box-shadow:inset 0 1px 0 #fff,0 3px 0 #ead2ce,0 6px 12px #071d3b0a}
@media(max-width:360px){.nav-item{font-size:9px}.nav-item .navicon{width:29px;height:27px;font-size:15px}.profile-banner{padding:14px;gap:11px}.profile-avatar-wrap,.profile-avatar,.profile-avatar-placeholder{width:68px;height:68px}}
.product-list{padding:3px 12px}
.product-row{min-height:66px}
.product-row .price{margin-top:3px}
.icon-btn{box-shadow:inset 0 1px 0 #fff,0 3px 0 #d9e6eb}
.qty button{box-shadow:inset 0 1px 0 #fff,0 2px 0 #bde7ea}
