/* ===== Tokens — retinted to match the reference screenshots (teal/green) ===== */
:root{
  --bg:#eef5f1;
  --surface:#ffffff;
  --surface-2:#f3f8f5;
  --surface-3:#e9f3ee;
  --border:#e2ebe6;
  --border-strong:#cfe0d8;
  --text:#121815;
  --text-dim:#5c6b64;
  --text-faint:#93a29b;
  --amber:#1fa971;
  --amber-dim:#c9ecdb;
  --blue:#2f7de0;
  --green:#1fa971;
  --red:#e2453f;
  --grad-start:#8fe6b7;
  --grad-end:#3fbd8d;
  --font-display:'Plus Jakarta Sans', sans-serif;
  --font-body:'Plus Jakarta Sans', sans-serif;
  --font-mono:'Plus Jakarta Sans', sans-serif;
  --radius:10px;
}
[data-theme="dark"]{
  --bg:#0f1512;
  --surface:#171f1a;
  --surface-2:#1c2620;
  --surface-3:#212c25;
  --border:#2a362f;
  --border-strong:#3a4a41;
  --text:#eef3f0;
  --text-dim:#a9b8b0;
  --text-faint:#6f8078;
  --amber-dim:#173829;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:700;margin:0 0 .4em;letter-spacing:-0.02em;}
button, input, select, textarea{font-family:inherit;}
::selection{background:var(--amber);color:#fff;}

/* ===== Topbar ===== */
.topbar{
  position:sticky;top:0;z-index:50;
  background:linear-gradient(135deg, var(--grad-start), var(--grad-end));
  border-bottom:1px solid rgba(255,255,255,.25);
}
.topbar-inner{
  max-width:1180px;margin:0 auto;padding:14px 20px;
  display:flex;align-items:center;gap:24px;
}
.brand{display:flex;align-items:center;gap:9px;font-family:var(--font-display);font-weight:800;font-size:1.3rem;color:#0c2a1c;}
.brand-mark{
  width:26px;height:26px;border-radius:7px;background:rgba(255,255,255,.55);
  display:flex;align-items:center;justify-content:center;flex:none;color:#0c2a1c;
}
.brand-accent{color:#0c2a1c;opacity:.7;}
.main-nav{display:flex;gap:4px;flex:1;}
.main-nav a{
  padding:8px 14px;border-radius:8px;color:#0c2a1c;opacity:.75;font-weight:500;font-size:.92rem;
  transition:background .15s, opacity .15s;
}
.main-nav a:hover, .main-nav a.active{background:rgba(255,255,255,.35);opacity:1;}
.topbar-actions{display:flex;align-items:center;gap:10px;}
.wallet-pill{
  font-family:var(--font-mono);font-weight:700;font-size:.85rem;
  background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.5);border-radius:20px;
  padding:6px 14px;color:#0c2a1c;
}
.btn{
  border:none;border-radius:8px;padding:9px 16px;font-weight:600;font-size:.88rem;cursor:pointer;
  transition:filter .15s, transform .1s;
}
.btn:active{transform:scale(.97);}
.btn:hover{filter:brightness(1.12);}
.btn-primary{background:var(--amber);color:#fff;}
.btn-blue{background:var(--blue);color:#fff;}
.btn-ghost{background:transparent;border:1px solid var(--border-strong);color:var(--text);}
.btn-danger{background:var(--red);color:#fff;}
.btn-sm{padding:5px 11px;font-size:.78rem;}
.btn-block{width:100%;}
.btn[disabled]{opacity:.45;cursor:not-allowed;}

/* ===== Layout ===== */
.app{max-width:1180px;margin:0 auto;padding:28px 20px 60px;min-height:70vh;}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:22px;flex-wrap:wrap;gap:12px;}
.page-head h1{font-size:1.7rem;}
.muted{color:var(--text-dim);}
.faint{color:var(--text-faint);}

/* ===== Hero ===== */
.hero{
  background:#1a1a1a;
  border:1px solid var(--border);border-radius:16px;
  padding:38px 34px;margin-bottom:28px;
  display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;
}
.hero h1{font-size:2.1rem;max-width:520px;color:#fff;}
.hero p{color:#a8a8a8;max-width:480px;}
.hero-stats{display:flex;gap:26px;}
.hero-stat b{display:block;font-family:var(--font-mono);font-size:1.5rem;color:var(--amber);}
.hero-stat span{font-size:.78rem;color:#8a8a8a;text-transform:uppercase;letter-spacing:.05em;}

/* ===== Category chips ===== */
/* ===== Search bar (home page) ===== */
.search-bar-row{display:flex;align-items:center;gap:10px;margin-bottom:22px;}
.search-bar{
  flex:1;display:flex;align-items:center;gap:9px;
  background:var(--surface);border:1px solid var(--border);border-radius:12px;
  padding:12px 16px;
}
.search-bar .icon{width:18px;height:18px;stroke:var(--text-faint);flex-shrink:0;}
.search-bar input{
  flex:1;border:none;outline:none;background:transparent;
  font-size:.95rem;color:var(--text);font-family:inherit;
}
.search-bar input::placeholder{color:var(--text-faint);}
.search-refresh-btn{
  width:44px;height:44px;flex-shrink:0;border-radius:12px;border:1px solid var(--border);
  background:var(--surface);display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.search-refresh-btn:active{transform:scale(.95);}
.search-refresh-btn .icon{width:18px;height:18px;stroke:var(--text-dim);}

.chip-row{display:flex;gap:8px;overflow-x:auto;margin-bottom:24px;padding-bottom:4px;}
.chip{
  flex:none;padding:7px 15px;border-radius:20px;border:1px solid var(--border);
  background:var(--surface-2);color:var(--text-dim);font-size:.83rem;cursor:pointer;white-space:nowrap;font-weight:500;
}
.chip.active{background:var(--amber);color:#fff;border-color:var(--amber);font-weight:600;}

/* ===== Product grid ===== */
.grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(250px,1fr));gap:16px;}

/* Vertical stacked list — matches the reference screenshots' "Live" feed */
.list{display:flex;flex-direction:column;gap:12px;}
.list-card{
  position:relative;display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;
  background:var(--surface);border:1px solid var(--border);border-radius:14px;
  padding:12px;box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.list-card:hover{border-color:var(--border-strong);box-shadow:0 6px 16px rgba(0,0,0,.06);}
.list-thumb-col{flex:none;display:flex;flex-direction:column;align-items:stretch;gap:6px;width:64px;}
.list-thumb{
  position:relative;
  width:64px;height:64px;border-radius:12px;flex:none;overflow:hidden;
  background:var(--surface-2);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
}
.list-thumb .icon{width:30px;height:30px;stroke:var(--amber);}

/* ===== Sold Out badge — shown on thumbnails/detail media whenever stock hits 0,
   so there's never any confusion about whether an item can still be bought. ===== */
.sold-out-badge{
  position:absolute;inset:0;z-index:3;
  background:rgba(0,0,0,.62);color:#fff;
  display:flex;align-items:center;justify-content:center;text-align:center;
  font-size:.56rem;font-weight:800;letter-spacing:.02em;line-height:1.2;
  border-radius:inherit;
}
.sold-out-badge.corner{
  inset:auto;top:10px;left:10px;right:auto;
  background:#dc2626;font-size:.7rem;padding:4px 10px;border-radius:6px;
  box-shadow:0 2px 6px rgba(0,0,0,.25);display:inline-flex;width:auto;height:auto;
}
.list-body{flex:1;min-width:0;}
.list-date{font-size:.7rem;color:var(--text-faint);}
.list-title{font-weight:700;font-size:.95rem;margin:2px 0;color:var(--text);}
.list-sub{font-size:.78rem;color:var(--text-dim);margin-bottom:6px;}
.list-badges{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px;}
.grade-badge{display:inline-flex;align-items:center;gap:4px;background:var(--amber-dim);color:#0c2a1c;font-size:.68rem;font-weight:600;padding:2px 9px;border-radius:20px;}
.grade-badge .icon{width:10px;height:10px;stroke-width:3;}
.list-amount{font-size:.85rem;color:var(--text-dim);}
.list-amount b{color:var(--text);font-family:var(--font-mono);}
.quick-bid-badge{
  display:flex;align-items:center;justify-content:center;gap:3px;background:var(--amber);color:#fff;
  font-size:.6rem;font-weight:700;padding:3px 4px;border-radius:20px;width:100%;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.quick-bid-badge .icon{width:9px;height:9px;flex:none;stroke-width:2.5;}
.list-corner{position:absolute;top:12px;right:12px;display:flex;align-items:center;gap:6px;}
.list-timer{
  background:var(--amber-dim);color:#0c2a1c;
  border:1px solid var(--amber);font-family:var(--font-mono);font-size:.72rem;font-weight:700;
  padding:3px 9px;border-radius:8px;
}
.share-btn{
  flex:none;width:26px;height:26px;border-radius:50%;border:1px solid var(--border);
  background:var(--surface);display:flex;align-items:center;justify-content:center;
  padding:0;cursor:pointer;
}
.share-btn .icon{width:13px;height:13px;stroke:var(--text-dim);}
.share-btn:hover{background:var(--surface-2);}
.share-btn-detail{position:absolute;top:10px;right:10px;z-index:2;background:rgba(255,255,255,.92);}
.card{
  background:var(--surface);border:1px solid var(--border);border-radius:14px;
  overflow:hidden;transition:transform .15s, border-color .15s, box-shadow .15s;display:flex;flex-direction:column;
  box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.card:hover{transform:translateY(-3px);border-color:var(--border-strong);box-shadow:0 8px 20px rgba(0,0,0,.07);}
.card-media{
  height:150px;display:flex;align-items:center;justify-content:center;
  background:var(--surface);
  position:relative;
}
.icon-badge{
  width:64px;height:64px;border-radius:50%;
  background:var(--surface-3);
  border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.icon-badge span{font-size:1.7rem;line-height:1;}
.icon-badge-lg{width:110px;height:110px;}
.icon-badge-lg span{font-size:2.8rem;}
.live-badge{
  position:absolute;top:10px;left:10px;display:flex;align-items:center;gap:5px;
  background:#fff;border:1px solid var(--amber-dim);color:var(--amber);
  font-size:.68rem;font-weight:700;letter-spacing:.06em;padding:3px 8px 3px 6px;border-radius:20px;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
}
.live-dot{width:6px;height:6px;border-radius:50%;background:var(--amber);animation:pulse 1.4s infinite;}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,106,0,.5);}70%{box-shadow:0 0 0 6px rgba(255,106,0,0);}100%{box-shadow:0 0 0 0 rgba(255,106,0,0);}}
.card-body{padding:14px 15px 16px;display:flex;flex-direction:column;gap:6px;flex:1;}
.card-cat{font-size:.7rem;color:var(--text-faint);text-transform:uppercase;letter-spacing:.06em;font-weight:600;}
.card-title{font-weight:700;font-size:.97rem;line-height:1.3;color:var(--text);}
.price-row{display:flex;justify-content:space-between;align-items:baseline;margin-top:auto;padding-top:8px;}
.price-label{font-size:.68rem;color:var(--text-faint);text-transform:uppercase;}
.price-val{font-family:var(--font-mono);font-weight:700;}
.price-val.amber{color:var(--amber);}
.price-val.blue{color:var(--blue);}
.card-actions{display:flex;gap:8px;padding:0 15px 15px;}
.timer{font-family:var(--font-mono);font-size:.72rem;color:var(--red);}

/* ===== Product detail ===== */
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:36px;}
@media(max-width:800px){.detail-grid{grid-template-columns:1fr;}}
.detail-media{
  position:relative;height:500px;border-radius:16px;background:var(--surface);
  border:1px solid var(--border);display:flex;align-items:center;justify-content:center;
  overflow:hidden;padding:0;box-shadow:0 4px 18px rgba(0,0,0,.04);
}
.detail-media img{width:100%;height:100%;object-fit:cover;display:block;border-radius:12px;}
.spec-list{display:flex;flex-direction:column;gap:6px;margin-top:14px;font-size:.86rem;color:var(--text-dim);}
.detail-more-wrap{margin-top:14px;}
.detail-view-more{
  width:100%;display:flex;align-items:center;justify-content:center;gap:7px;
  padding:11px 14px;border:1.5px dashed var(--amber);border-radius:10px;
  background:rgba(31,169,113,.04);color:var(--green);font-weight:700;cursor:pointer;font-size:.86rem;
}
.detail-view-more:hover{background:rgba(31,169,113,.09);}
.detail-view-more .icon{width:17px;height:17px;}
.detail-view-more .icon:last-child{transition:transform .18s ease;}
.detail-view-more.open .icon:last-child{transform:rotate(180deg);}
.detail-extra{padding:0 4px 4px;}
.detail-extra[hidden]{display:none;}
@media(max-width:800px){.detail-media{height:430px;padding:0;}}
@media(max-width:480px){.detail-media{height:390px;}.detail-gallery-strip img{width:68px;height:68px;}}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:22px;margin-top:16px;}
.panel h3{font-size:1rem;margin-bottom:14px;}
.bid-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;}
.bid-current{font-family:var(--font-mono);font-size:2rem;font-weight:700;color:var(--amber);}
.countdown{font-family:var(--font-mono);font-size:1.1rem;color:var(--red);font-weight:700;}
.bid-form{display:flex;gap:8px;margin-top:14px;}
.bid-form input{
  flex:1;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;
  padding:10px 12px;color:var(--text);font-family:var(--font-mono);font-size:1rem;
}
.bid-history{margin-top:16px;max-height:200px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;}
.bid-item{display:flex;justify-content:space-between;font-size:.82rem;padding:7px 10px;background:var(--surface-2);border-radius:6px;}
.bid-item.you{border:1px solid var(--amber-dim);}
.divider{height:1px;background:var(--border);margin:18px 0;}
.buy-now-price{font-family:var(--font-mono);font-size:1.6rem;font-weight:700;color:var(--blue);}

/* ===== Forms ===== */
.form-card{max-width:420px;margin:20px auto;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:30px;}
.form-field{margin-bottom:14px;}
.form-field label{display:block;font-size:.8rem;color:var(--text-dim);margin-bottom:5px;}
.form-field input, .form-field select, .form-field textarea{
  width:100%;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;
  padding:10px 12px;color:var(--text);font-size:.92rem;
}
.form-note{font-size:.78rem;color:var(--text-faint);margin-top:10px;text-align:center;}
.error-box{background:rgba(214,72,63,.08);border:1px solid rgba(214,72,63,.25);color:var(--red);padding:9px 12px;border-radius:8px;font-size:.84rem;margin-bottom:14px;}
.success-box{background:rgba(31,157,102,.08);border:1px solid rgba(31,157,102,.25);color:var(--green);padding:9px 12px;border-radius:8px;font-size:.84rem;margin-bottom:14px;}

/* ===== Wallet ===== */
.wallet-hero{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:22px;}
.wallet-box{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px 24px;flex:1;min-width:200px;}
.wallet-box .label{font-size:.75rem;color:var(--text-faint);text-transform:uppercase;letter-spacing:.05em;}
.wallet-box .val{font-family:var(--font-mono);font-size:1.8rem;font-weight:700;margin-top:6px;}

/* Dark "bank card" style wallet summary, matching the reference screenshot */
.wallet-dark-card{
  background:#12181a;color:#fff;border-radius:18px;padding:22px 24px;margin-bottom:18px;
  background-image:linear-gradient(135deg, var(--grad-start), var(--grad-end));
  background-blend-mode:overlay;
}
.wallet-dark-row{display:flex;align-items:center;gap:22px;flex-wrap:wrap;}
.wallet-dark-row .label{font-size:.72rem;color:rgba(255,255,255,.65);text-transform:uppercase;letter-spacing:.05em;}
.wallet-dark-row .val{font-family:var(--font-mono);font-size:1.6rem;font-weight:700;margin-top:4px;}
.wallet-dark-divider{width:1px;align-self:stretch;background:rgba(255,255,255,.2);}
.wallet-dark-sub{display:flex;justify-content:space-between;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.15);font-family:var(--font-mono);font-size:.9rem;color:rgba(255,255,255,.85);}

.txn-table{width:100%;border-collapse:collapse;font-size:.86rem;}
.txn-table th{text-align:left;color:var(--text-faint);font-weight:500;font-size:.72rem;text-transform:uppercase;padding:8px 10px;border-bottom:1px solid var(--border);}
.txn-table td{padding:10px;border-bottom:1px solid var(--border);}
.txn-table tr:last-child td{border-bottom:none;}
.amt-pos{color:var(--green);font-family:var(--font-mono);}
.amt-neg{color:var(--red);font-family:var(--font-mono);}

/* Credit / Debit / Release pills, matching the reference transaction history screen */
.txn-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:20px;font-size:.72rem;font-weight:600;}
.txn-badge::before{content:'';width:6px;height:6px;border-radius:50%;}
.txn-credit{background:rgba(31,169,113,.12);color:var(--green);}
.txn-credit::before{background:var(--green);}
.txn-debit{background:rgba(226,69,63,.12);color:var(--red);}
.txn-debit::before{background:var(--red);}
.txn-release{background:rgba(47,125,224,.12);color:var(--blue);}
.txn-release::before{background:var(--blue);}

/* ===== Tables (admin/orders) ===== */
.table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--border);border-radius:12px;}
table{width:100%;border-collapse:collapse;font-size:.86rem;}
th{text-align:left;padding:11px 14px;color:var(--text-faint);font-weight:600;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--border);background:var(--surface-2);}
td{padding:11px 14px;border-bottom:1px solid var(--border);}
tr:last-child td{border-bottom:none;}
.status-badge{padding:3px 10px;border-radius:20px;font-size:.72rem;font-weight:600;text-transform:capitalize;}
.status-processing{background:var(--surface-2);color:var(--blue);}
.status-packed, .status-shipped{background:rgba(255,106,0,.1);color:var(--amber);}
.status-delivered{background:rgba(31,157,102,.1);color:var(--green);}
.status-cancelled, .status-returned{background:rgba(214,72,63,.1);color:var(--red);}
.status-refunded{background:var(--surface-2);color:var(--text-dim);}
.status-testing{background:rgba(124,58,237,.1);color:#7c3aed;}
select.status-select{background:var(--surface-2);border:1px solid var(--border);color:var(--text);border-radius:6px;padding:4px 8px;font-size:.8rem;}

/* ===== Admin layout ===== */
.admin-tabs{display:flex;flex-wrap:wrap;gap:4px 8px;margin-bottom:20px;border-bottom:1px solid var(--border);padding-bottom:2px;}
.admin-tab{padding:9px 14px;color:var(--text-dim);cursor:pointer;font-size:.85rem;font-weight:500;border-bottom:2px solid transparent;white-space:nowrap;}
.admin-tab.active{color:var(--amber);border-color:var(--amber);}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:22px;}
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:18px 20px;}
.stat-card .label{font-size:.72rem;color:var(--text-faint);text-transform:uppercase;letter-spacing:.05em;}
.stat-card .val{font-family:var(--font-mono);font-size:1.7rem;font-weight:700;color:var(--amber);margin-top:6px;}

/* ===== Gallery photo widget (multiple actual-unit photos) ===== */
.gallery-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.gallery-thumb{
  position:relative;width:64px;height:64px;border-radius:9px;overflow:hidden;
  border:1px solid var(--border);background:var(--surface-2);
}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block;background:var(--surface-2);}
.gallery-thumb .gallery-remove{
  position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;
  background:rgba(0,0,0,.55);border:none;color:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;padding:0;
}
.gallery-thumb .gallery-remove svg{width:10px;height:10px;}
.gallery-add-btn{
  width:64px;height:64px;border-radius:9px;border:1.5px dashed var(--border-strong);
  background:var(--surface-2);display:flex;align-items:center;justify-content:center;
  cursor:pointer;color:var(--text-faint);
}
.gallery-add-btn .icon{width:22px;height:22px;}

/* ===== Detail-page photo gallery (customer view) ===== */
.detail-gallery-strip{display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding-bottom:2px;}
.detail-gallery-strip img{
  width:72px;height:72px;object-fit:cover;border-radius:9px;border:1px solid var(--border);
  background:var(--surface-2);
  cursor:pointer;flex-shrink:0;
}
.detail-gallery-strip img.active{border-color:var(--amber);border-width:2px;}

/* ===== Checklist widget (admin: tick/cross condition points) ===== */
.checklist-editor{display:flex;flex-direction:column;gap:6px;margin-top:6px;}
.checklist-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:8px 10px;background:var(--surface-2);border-radius:8px;font-size:.85rem;
}
.checklist-row .cl-label{flex:1;color:var(--text);}
.checklist-toggle{display:flex;gap:4px;}
.cl-btn{
  width:30px;height:30px;border-radius:7px;border:1px solid var(--border-strong);
  background:var(--surface);display:flex;align-items:center;justify-content:center;cursor:pointer;
  color:var(--text-faint);
}
.cl-btn .icon{width:15px;height:15px;}
.cl-btn.cl-tick.active{background:rgba(31,169,113,.14);border-color:var(--green);color:var(--green);}
.cl-btn.cl-cross.active{background:rgba(226,69,63,.12);border-color:var(--red);color:var(--red);}
.cl-remove-btn{background:none;border:none;color:var(--text-faint);cursor:pointer;padding:2px;}
.cl-remove-btn .icon{width:14px;height:14px;}
.checklist-add-row{display:flex;gap:8px;margin-top:8px;}
.checklist-add-row input{flex:1;}

/* ===== Checklist display (customer-facing product detail) ===== */
.checklist-display{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;margin-top:10px;}
.checklist-display-item{display:flex;align-items:center;gap:8px;font-size:.85rem;color:var(--text-dim);}
.checklist-display-item .cl-dot{
  width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.checklist-display-item .cl-dot svg{width:12px;height:12px;stroke-width:2.6;}
.checklist-display-item.ok .cl-dot{background:rgba(31,169,113,.14);color:var(--green);}
.checklist-display-item.bad .cl-dot{background:rgba(226,69,63,.12);color:var(--red);}
@media(max-width:700px){ .checklist-display{grid-template-columns:1fr;} }

/* ===== App Settings (admin) ===== */
.settings-section{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:18px;margin-bottom:16px;}
.settings-section h3{margin-bottom:14px;font-size:1rem;}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;}
@media(max-width:700px){ .settings-grid{grid-template-columns:1fr;} }
.settings-grid .form-field{margin-bottom:0;}
.theme-toggle-btn, .lang-toggle-btn{
  width:38px;height:38px;border-radius:10px;border:1px solid var(--border);
  background:var(--surface);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-dim);
}
.theme-toggle-btn .icon, .lang-toggle-btn{padding:0;}
.lang-toggle-btn{width:auto;padding:0 10px;font-size:.75rem;font-weight:600;}
.logo-preview-row{display:flex;align-items:center;gap:14px;margin-top:6px;}
.logo-preview-box{width:64px;height:64px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;}
.logo-preview-box img{width:100%;height:100%;object-fit:contain;}
.settings-radio-row{display:flex;gap:16px;margin-top:4px;}
.settings-radio-row label{display:flex;align-items:center;gap:6px;font-size:.85rem;cursor:pointer;}

/* ===== Modal ===== */
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:100;padding:20px;}
.modal{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:26px;max-width:480px;width:100%;max-height:85vh;overflow-y:auto;}
.modal h3{margin-bottom:16px;}
.modal-close-row{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;}

/* ===== Toast ===== */
.toast-stack{position:fixed;top:74px;right:20px;z-index:200;display:flex;flex-direction:column;gap:8px;}
.toast{
  background:#fff;border:1px solid var(--border);border-left:3px solid var(--amber);
  padding:11px 16px;border-radius:8px;font-size:.85rem;max-width:320px;
  animation:slidein .2s ease-out;box-shadow:0 8px 24px rgba(0,0,0,.1);
}
@keyframes slidein{from{transform:translateX(20px);opacity:0;}to{transform:translateX(0);opacity:1;}}

.empty-state{text-align:center;padding:60px 20px;color:var(--text-faint);}
.empty-state .big{font-size:2.4rem;margin-bottom:10px;}
.empty-state .big-icon{margin-bottom:14px;display:flex;justify-content:center;}
.empty-state .big-icon svg{width:46px;height:46px;stroke:var(--text-faint);stroke-width:1.3;}

/* ===== Icon system — clean line icons matching the reference screenshots ===== */
.icon{width:1.1em;height:1.1em;vertical-align:-0.18em;flex-shrink:0;}
.card-media .icon, .detail-media .icon{width:44px;height:44px;stroke:var(--amber);stroke-width:1.4;}
.detail-media .icon{width:76px;height:76px;}
.bottom-nav-icon .icon{width:22px;height:22px;stroke-width:1.9;}
td .icon{width:20px;height:20px;stroke:var(--amber);}

.site-footer{text-align:center;padding:22px;color:var(--text-faint);font-size:.78rem;border-top:1px solid var(--border);}
.site-footer p{margin:4px 0;}
.site-footer a{color:inherit;text-decoration:underline;}

/* ===== WhatsApp floating contact button ===== */
.whatsapp-float-btn{
  position:fixed;right:18px;bottom:26px;z-index:70;
  width:52px;height:52px;border-radius:50%;
  background:#25D366;box-shadow:0 4px 14px rgba(0,0,0,.25);
  display:flex;align-items:center;justify-content:center;
  transition:transform .15s ease;
}
.whatsapp-float-btn:hover{transform:scale(1.06);}
@media(max-width:700px){
  .whatsapp-float-btn{bottom:74px;right:14px;width:48px;height:48px;} /* clear of fixed bottom-nav */
}

/* ===== Admin Settings: floating Save bar, always visible on screen no matter
   how far the admin has scrolled through the long Settings form ===== */
.settings-save-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:55;
  display:flex;justify-content:center;
  padding:10px 16px;
  background:linear-gradient(to top, var(--surface) 65%, transparent);
  pointer-events:none; /* only the button itself should capture clicks */
}
.settings-save-bar .btn{
  pointer-events:auto;
  min-width:200px;
  box-shadow:0 4px 16px rgba(0,0,0,.25);
}
/* leave room at the very end of the settings page so this floating bar never
   sits on top of the last section / login-details block */
.settings-save-spacer{height:70px;}
@media(max-width:700px){
  .settings-save-bar{
    padding-left:16px;
    padding-right:70px; /* stay clear of the floating WhatsApp button */
    padding-bottom:calc(70px + env(safe-area-inset-bottom, 0px) + 10px);
  }
  .settings-save-bar .btn{width:100%;max-width:420px;}
}

/* ===== Bottom nav (mobile app-style navigation) ===== */
.bottom-nav{
  display:none;
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  background:rgba(255,255,255,.97);backdrop-filter:blur(10px);
  border-top:1px solid var(--border);
  padding-bottom:env(safe-area-inset-bottom, 0);
}
.bottom-nav-item{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  flex:1;gap:2px;padding:9px 4px 7px;color:var(--text-faint);
}
.bottom-nav-icon{font-size:1.35rem;line-height:1;}
.bottom-nav-label{font-size:.66rem;font-weight:600;}
.bottom-nav-item.active{color:var(--amber);}

@media(max-width:700px){
  .main-nav{display:none;}
  .hero{padding:26px 20px;}
  .hero h1{font-size:1.5rem;}
  .bottom-nav{display:flex;}
  body{padding-bottom:58px;} /* keep content clear of fixed bottom nav */
  .app{padding:18px 14px 30px;}
  /* Bigger, easier-to-tap buttons and inputs on mobile */
  .btn{padding:12px 18px;font-size:.95rem;}
  .btn-sm{padding:9px 14px;font-size:.85rem;}
  .form-field input, .form-field select, .form-field textarea{padding:12px 14px;font-size:1rem;}
  .bid-form input{padding:12px 14px;font-size:1.05rem;}
  .grid{grid-template-columns:repeat(auto-fill, minmax(150px,1fr));gap:12px;}
  .card-media{height:110px;}
  .icon-badge{width:52px;height:52px;}
  .icon-badge span{font-size:1.4rem;}
  .topbar-inner{padding:12px 14px;gap:10px;}
  .brand-text{font-size:1.05rem;}
  .hero-stats{gap:16px;}
}


/* ===== FINAL MOBILE RESPONSIVE FIX =====
   Keep every product-detail element inside the device viewport.
   Images remain fully visible (no crop) while the media frame scales to width.
*/
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  max-width: 100%;
}

.app {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
}

.detail-grid,
.detail-grid > div {
  min-width: 0;
  width: 100%;
}

.detail-media {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.detail-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  flex: 0 1 auto;
}

.detail-gallery-strip {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 800px) {
  .app {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: 100%;
  }

  .detail-media {
    height: min(72vw, 380px);
    min-height: 260px;
    padding: 0;
    border-radius: 16px;
  }

  .detail-media img {
    max-width: 100%;
    max-height: 100%;
  }

  .detail-gallery-strip img {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
  }

  .detail-more-wrap,
  .detail-view-more,
  .panel {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .topbar-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 10px;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-text {
    white-space: nowrap;
    font-size: 1rem;
  }

  .topbar-actions {
    min-width: 0;
    flex: 0 1 auto;
    gap: 6px;
  }

  .topbar-actions .btn {
    padding: 8px 10px;
    font-size: .82rem;
    white-space: nowrap;
  }

  .wallet-pill {
    padding: 6px 9px;
    font-size: .78rem;
    white-space: nowrap;
  }

  .detail-media {
    height: 76vw;
    min-height: 250px;
    max-height: 340px;
    padding: 0;
  }

  .detail-media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .detail-gallery-strip {
    gap: 7px;
  }

  .detail-gallery-strip img {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .detail-view-more {
    padding: 12px;
  }
}


/* ===== PAYMENT / WALLET ===== */
.payment-topup-card{margin:0 0 20px;padding:18px;}
.payment-topup-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px;}
.payment-method-badge{font-size:.72rem;font-weight:700;padding:6px 9px;border-radius:999px;background:var(--amber-dim);color:#0c6b46;white-space:nowrap;}
.payment-method-grid{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:16px;}
.payment-qr-box,.payment-bank-box{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:14px;min-width:0;}
.payment-qr{display:block;width:min(100%,260px);height:auto;aspect-ratio:1/1;object-fit:contain;margin:10px auto;border-radius:10px;background:#fff;}
.payment-note{font-size:.72rem;text-align:center;}
.bank-details{margin-top:9px;display:flex;flex-direction:column;gap:8px;}
.bank-details div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--border);padding-bottom:7px;font-size:.78rem;min-width:0;}
.bank-details span{color:var(--text-dim);}
.bank-details b{text-align:right;overflow-wrap:anywhere;}
.payment-status-note{margin-top:14px;padding:11px 12px;border-radius:9px;background:rgba(31,169,113,.07);border:1px solid var(--border);font-size:.76rem;color:var(--text-dim);}

/* ===== HARD MOBILE VIEWPORT CONSTRAINT ===== */
html,body{
  width:100%;
  min-width:0;
  max-width:100vw;
  overflow-x:hidden !important;
}
body, #app, .app, main, header, footer, nav, section, article, div{
  box-sizing:border-box;
}
#app{
  width:100%;
  max-width:100%;
  min-width:0;
}
.app{
  width:100%;
  max-width:1180px;
  min-width:0;
  margin-left:auto;
  margin-right:auto;
}
.topbar-inner{
  width:100%;
  max-width:1180px;
  min-width:0;
}
.detail-grid,
.detail-grid > *,
.detail-grid > div,
.detail-grid > div > *{
  min-width:0 !important;
  max-width:100% !important;
}
.detail-media{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:hidden !important;
}
.detail-media img{
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:cover !important;
}
.detail-gallery-strip{
  display:flex;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
}
.detail-gallery-strip img{
  flex:0 0 68px;
  width:68px;
  height:68px;
  max-width:68px;
  object-fit:cover !important;
}
.table-wrap{
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
img,video,canvas,iframe{
  max-width:100%;
}

@media (max-width:800px){
  .app{
    padding:18px 12px 72px !important;
  }
  .topbar-inner{
    padding:10px 10px !important;
    gap:8px !important;
  }
  .main-nav{display:none !important;}
  .brand{
    flex:0 1 auto;
    min-width:0;
    font-size:1rem !important;
  }
  .brand-text{white-space:nowrap;}
  .topbar-actions{
    flex:1 1 auto;
    min-width:0;
    justify-content:flex-end;
    gap:5px !important;
  }
  .topbar-actions > *{min-width:0;}
  .topbar-actions .btn{
    padding:7px 9px !important;
    font-size:.76rem !important;
    white-space:nowrap;
  }
  .wallet-pill{
    padding:5px 8px !important;
    font-size:.75rem !important;
  }
  .detail-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    width:100% !important;
    gap:16px !important;
  }
  .detail-media{
    height:min(78vw,380px) !important;
    min-height:240px !important;
    padding:0 !important;
  }
  .detail-media img{
    max-width:100% !important;
    max-height:100% !important;
  }
  .payment-method-grid{grid-template-columns:minmax(0,1fr);}
  .payment-topup-head{flex-direction:column;}
  .payment-qr{width:min(70vw,260px);}
}

@media (max-width:480px){
  .app{padding-left:10px !important;padding-right:10px !important;}
  .topbar-inner{padding-left:8px !important;padding-right:8px !important;}
  .brand-mark{width:24px;height:24px;}
  .brand-text{font-size:.9rem !important;}
  .topbar-actions .btn{padding:7px 8px !important;font-size:.72rem !important;}
  .wallet-pill{font-size:.7rem !important;padding:5px 7px !important;}
  .detail-media{
    height:74vw !important;
    min-height:225px !important;
    max-height:330px !important;
  }
  .detail-gallery-strip img{
    flex-basis:60px;
    width:60px;
    height:60px;
    max-width:60px;
  }
  .payment-topup-card{padding:13px;}
  .bank-details div{font-size:.73rem;}
}


/* =========================================================
   AVTAR — FINAL PHONE-FIRST RESPONSIVE SHELL
   The complete app must stay inside the device viewport.
   No page-level horizontal overflow; images never force width.
   ========================================================= */
html{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}
body{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:hidden !important;
  margin:0;
}
#app{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:clip;
}
.app{
  width:100%;
  max-width:1180px;
  min-width:0;
  margin:0 auto;
  overflow-x:clip;
}
.topbar{
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.topbar-inner{
  width:100%;
  max-width:1180px;
  min-width:0;
  margin:0 auto;
}
.topbar-inner > *{
  min-width:0;
}
.topbar-actions{
  min-width:0;
  max-width:100%;
}
.topbar-actions > *{
  min-width:0;
}
img,svg,video,canvas,iframe{
  max-width:100%;
}
button,input,select,textarea{
  max-width:100%;
  box-sizing:border-box;
}
.grid,.cards-grid,.detail-grid,.payment-method-grid,.hero,
.search-bar-row,.page-head,.bid-row,.bid-form,.form-row{
  min-width:0;
  max-width:100%;
}
.grid > *, .cards-grid > *, .detail-grid > *,
.payment-method-grid > *, .hero > *, .form-row > *{
  min-width:0;
  max-width:100%;
}
.table-wrap{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:auto !important;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}

/* Product detail: one-column phone layout and a contained media frame */
.detail-grid{
  width:100%;
  max-width:100%;
  min-width:0;
}
.detail-grid > div{
  width:100%;
  max-width:100%;
  min-width:0 !important;
}
.detail-media{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:hidden !important;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.detail-media img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  margin:0 auto;
}
.detail-gallery-strip{
  width:100%;
  max-width:100%;
  min-width:0;
  display:flex;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:2px;
  -webkit-overflow-scrolling:touch;
}
.detail-gallery-strip img{
  flex:0 0 64px !important;
  width:64px !important;
  height:64px !important;
  max-width:64px !important;
  object-fit:cover !important;
  object-position:center !important;
}

/* Payment blocks also stay inside the phone */
.payment-topup-card,
.payment-qr-box,
.payment-bank-box,
.online-payment-card{
  width:100%;
  max-width:100%;
  min-width:0;
}
.payment-method-grid{
  width:100%;
  max-width:100%;
  min-width:0;
}
.payment-qr{
  display:block;
  width:min(100%,260px);
  height:auto;
  aspect-ratio:1/1;
  object-fit:contain;
  margin:10px auto;
}
.bank-details div{
  min-width:0;
}
.bank-details b{
  min-width:0;
  max-width:70%;
  overflow-wrap:anywhere;
  word-break:break-word;
}

@media (max-width:800px){
  body{
    overflow-x:hidden !important;
  }
  .app{
    width:100vw !important;
    max-width:100vw !important;
    padding:16px 12px 78px !important;
    margin:0 !important;
  }
  .topbar-inner{
    width:100vw !important;
    max-width:100vw !important;
    padding:9px 10px !important;
    gap:7px !important;
    overflow:hidden;
  }
  .brand{
    flex:0 1 auto !important;
    min-width:0 !important;
    max-width:34vw;
  }
  .brand-text{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.92rem !important;
  }
  .topbar-actions{
    flex:1 1 auto !important;
    justify-content:flex-end !important;
    gap:5px !important;
    overflow:hidden;
  }
  .topbar-actions .btn,
  .wallet-pill{
    flex:0 1 auto;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .topbar-actions .btn{
    padding:7px 8px !important;
    font-size:.73rem !important;
  }
  .wallet-pill{
    padding:5px 7px !important;
    font-size:.70rem !important;
  }

  .detail-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    width:100% !important;
    max-width:100% !important;
    gap:14px !important;
  }
  .detail-media{
    width:100% !important;
    height:min(78vw,360px) !important;
    min-height:220px !important;
    max-height:360px !important;
    padding:0 !important;
  }
  .detail-media img{
    max-width:100% !important;
    max-height:100% !important;
  }
  .detail-more-wrap,
  .detail-view-more,
  .detail-extra{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .payment-method-grid{
    grid-template-columns:minmax(0,1fr) !important;
  }
  .payment-qr{
    width:min(72vw,250px);
    max-width:100%;
  }

  .hero{
    width:100%;
    max-width:100%;
  }
  .hero-stats{
    flex-wrap:wrap;
  }
  .search-bar-row{
    width:100%;
    max-width:100%;
  }
  .search-bar{
    min-width:0;
  }
  .bottom-nav{
    width:100vw !important;
    max-width:100vw !important;
    left:0 !important;
    right:0 !important;
  }
  .site-footer{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
}

@media (max-width:480px){
  .app{
    width:100vw !important;
    max-width:100vw !important;
    padding-left:10px !important;
    padding-right:10px !important;
  }
  .topbar-inner{
    width:100vw !important;
    max-width:100vw !important;
    padding-left:7px !important;
    padding-right:7px !important;
  }
  .brand{
    max-width:31vw;
  }
  .brand-mark{
    width:24px !important;
    height:24px !important;
    flex:0 0 24px;
  }
  .brand-text{
    font-size:.86rem !important;
  }
  .topbar-actions{
    gap:4px !important;
  }
  .topbar-actions .btn{
    padding:6px 7px !important;
    font-size:.69rem !important;
  }
  .wallet-pill{
    padding:5px 6px !important;
    font-size:.67rem !important;
  }
  .detail-media{
    width:100% !important;
    height:74vw !important;
    min-height:220px !important;
    max-height:320px !important;
  }
  .detail-gallery-strip img{
    flex-basis:60px !important;
    width:60px !important;
    height:60px !important;
    max-width:60px !important;
  }
  .payment-topup-card{
    padding:13px !important;
  }
  .bank-details div{
    font-size:.72rem;
  }
}


/* =========================================================
   AVTAR — PROFESSIONAL MOBILE POLISH
   ========================================================= */

/* Product list: larger, clearer visual area */
.list-card{
  gap:14px;
  padding:13px;
}
.list-thumb{
  width:92px;
  height:92px;
  border-radius:14px;
  padding:0;
  background:#f7faf8;
}
.list-thumb-col{width:92px;}
.list-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block;
  border-radius:10px;
}
.list-thumb .icon{
  width:48px !important;
  height:48px !important;
  stroke-width:1.55;
}
.list-title{font-size:1rem;}
.list-sub{font-size:.8rem;}
.list-amount{font-size:.86rem;}

/* Wallet / payments */
.online-payment-card{
  border:1px solid rgba(31,169,113,.22);
  box-shadow:0 8px 26px rgba(31,169,113,.06);
}
.payment-heading{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.payment-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--amber-dim);
  color:var(--green);
}
.payment-icon .icon{width:20px;height:20px;}
.payment-method-badge.badge-ready{background:rgba(31,169,113,.12);color:#087647;}
.payment-method-badge.badge-pending{background:#f1f3f2;color:#66716c;}
.online-payment-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
}
.amount-field{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  height:46px;
  padding:0 13px;
  background:#fff;
  border:1px solid var(--border-strong);
  border-radius:11px;
}
.amount-field > span{
  font-weight:800;
  color:var(--green);
}
.amount-field input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  font-size:.95rem;
  color:var(--text);
}
.online-pay-action{
  min-height:46px;
  white-space:nowrap;
}
.online-pay-action[disabled]{
  opacity:.65;
  cursor:not-allowed;
  filter:none;
}
.payment-inline-note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  font-size:.75rem;
  line-height:1.45;
}
.success-note{background:rgba(31,169,113,.07);color:#246b50;}
.info-note{background:#f4f7f5;color:#63706a;}

.payment-method-grid{
  align-items:stretch;
}
.payment-qr-box,.payment-bank-box{
  box-shadow:0 2px 10px rgba(0,0,0,.025);
}
.payment-qr{
  max-width:280px;
}
.copy-bank-btn{
  flex:0 0 auto;
  border:0;
  background:transparent;
  color:var(--green);
  font-size:.68rem;
  font-weight:800;
  cursor:pointer;
  padding:2px 0 2px 6px;
}
.bank-details div{
  align-items:center;
}
.payment-status-note{
  margin-top:14px;
  padding:11px 13px;
  border-radius:10px;
  background:#fff9e9;
  border:1px solid #f2dfaa;
  color:#705d2d;
  font-size:.75rem;
  line-height:1.45;
}

/* Prevent any child from creating page-level horizontal overflow */
.topbar,.topbar-inner,.app,.page-head,.list-card,.card,.wallet-box,.panel,
.payment-topup-card,.payment-method-grid,.payment-bank-box,.payment-qr-box,
.table-wrap,.hero,.grid,.detail-grid{
  min-width:0;
  max-width:100%;
}
.list-body{min-width:0;overflow:hidden;padding-right:98px;}
.list-title,.list-sub,.list-amount{overflow-wrap:anywhere;}
/* Inventory action row must always take its own full-width line below the
   thumbnail/body, never squeeze .list-body down to 0 width by sitting inline
   with it in the same flex row (fixes titles/prices disappearing). */
.inventory-card-actions{flex:1 1 100% !important;margin-top:10px;}

/* Phone-first tuning */
@media (max-width:700px){
  .list-card{
    gap:13px;
    padding:12px;
  }
  .list-thumb{
    width:88px;
    height:88px;
    flex:0 0 88px;
  }
  .list-thumb-col{width:88px;}
  .list-thumb .icon{
    width:44px !important;
    height:44px !important;
  }
  .list-title{font-size:.98rem;}
  .list-date{font-size:.67rem;}
  .list-sub{font-size:.77rem;}
  .list-amount{font-size:.8rem;}
}

@media (max-width:480px){
  .list-card{
    gap:11px;
    padding:11px;
    border-radius:15px;
  }
  .list-thumb{
    width:82px;
    height:82px;
    flex-basis:82px;
    border-radius:13px;
  }
  .list-thumb-col{width:82px;}
  .list-thumb .icon{
    width:40px !important;
    height:40px !important;
  }
  .list-body{padding-right:86px;}
  .online-payment-row{
    flex-direction:column;
    align-items:stretch;
  }
  .amount-field,.online-pay-action{
    width:100%;
    flex:none;
  }
  .payment-topup-head{
    gap:10px;
  }
  .payment-method-badge{
    align-self:flex-start;
  }
  .payment-qr{
    width:min(72vw,250px);
  }
  .bank-details div{
    gap:6px;
    font-size:.74rem;
  }
  .bank-details b{
    max-width:58%;
  }
  .copy-bank-btn{
    font-size:.64rem;
  }
}

/* Checkbox row used in a few admin forms (show-price toggle, etc.) */
.ck-checkbox-row{display:flex;align-items:center;gap:8px;font-size:.83rem;color:var(--text-dim);margin-bottom:14px;cursor:pointer;}
.ck-checkbox-row input{width:16px;height:16px;flex:none;}

/* ===== Native-app polish (only active inside the Capacitor Android shell) ===== */
.native-app, .native-app body {
  overscroll-behavior: none;           /* kills the browser-style bounce/glow at scroll edges */
  -webkit-tap-highlight-color: transparent; /* removes the grey flash on tap, feels native */
}
.native-app *:not(input):not(textarea) {
  -webkit-user-select: none;           /* no text-selection handles popping up on long-press */
  user-select: none;
}
.native-app input, .native-app textarea {
  -webkit-user-select: text;
  user-select: text;                   /* form fields still allow normal text selection */
}
.native-app ::-webkit-scrollbar { display: none; } /* no visible scrollbar, like a real app */

/* ===== INVENTORY DETAIL / QUALITY POLISH ===== */
.inventory-card-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex:0 0 auto;
  flex-wrap:wrap;
}
.inventory-view-more{white-space:nowrap;}
.inventory-detail-media{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:320px;
}
.inventory-detail-media img{
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:cover !important;
}
.inventory-more-wrap{margin-top:12px;}
.inventory-spec-list{margin-bottom:14px;}
.quality-panel{margin-top:14px;}
.checklist-legend{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:8px 0 12px;
  font-size:.74rem;
  color:var(--text-faint);
}
.checklist-display-item{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface-2);
}
.checklist-display-item .cl-label-view{flex:1;min-width:0;overflow-wrap:anywhere;}
.checklist-display-item .cl-state{font-size:.68rem;font-weight:700;white-space:nowrap;}
.checklist-display-item.neutral .cl-dot{background:var(--surface);color:var(--text-faint);}
.checklist-display-item.neutral .cl-state{color:var(--text-faint);}
.empty-state.compact{padding:14px;font-size:.82rem;}

@media(max-width:700px){
  .inventory-card-actions{width:100%;justify-content:stretch;}
  .inventory-card-actions .btn{flex:1 1 0;min-width:0;text-align:center;}
  .inventory-detail-media{min-height:240px;}
  .checklist-display{grid-template-columns:1fr !important;}
}
@media(max-width:480px){
  .inventory-card-actions{gap:6px;}
  .inventory-card-actions .btn{padding:9px 8px;font-size:.76rem;}
  .inventory-detail-media{min-height:220px;}
  .checklist-display-item{padding:9px 8px;}
  .checklist-display-item .cl-state{font-size:.64rem;}
}
