:root{
  --woo-gold:#F4C542;
  --woo-gold-2:#FFB300;

  --bg:#F7F8FA;
  --card:#FFFFFF;
  --text:#0F172A;
  --muted:#64748B;
  --border:#E5E7EB;
  --shadow: 0 12px 28px rgba(2,6,23,.10);
  --shadow2: 0 10px 22px rgba(2,6,23,.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 450px at 18% 0%, rgba(244,197,66,.26), transparent 55%),
    radial-gradient(900px 450px at 90% 10%, rgba(255,179,0,.18), transparent 55%),
    var(--bg);
}

.wrap{width:min(1200px, 92vw); margin:0 auto;}
.mutedSmall{color:var(--muted); font-size:12.5px; line-height:1.4}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;}

.topbar{
  position:sticky; top:0; z-index:20;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(229,231,235,.75);
}
.topbarInner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.left{display:flex; align-items:center; gap:12px}
.logo{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--woo-gold), var(--woo-gold-2));
  color:#111; font-weight:1000;
  box-shadow: 0 10px 20px rgba(244,197,66,.35);
}
.brand b{display:block; letter-spacing:.2px}
.brand span{display:block; font-size:12.5px; color:var(--muted); margin-top:2px}
.right{display:flex; gap:10px; align-items:center}

.chip{
  padding:8px 10px;
  border-radius:999px;
  background: rgba(17,24,39,.05);
  border:1px solid rgba(17,24,39,.08);
  font-weight:900;
  font-size:12.5px;
}

.page{padding:20px 0 28px}
.grid{
  display:grid;
  grid-template-columns: 380px 1fr;
  gap:16px;
  align-items:start;
}

.panel{
  background:var(--card);
  border:1px solid rgba(229,231,235,.95);
  border-radius:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.panelHead{
  padding:14px 16px;
  border-bottom:1px solid rgba(229,231,235,.85);
  background:linear-gradient(180deg, rgba(244,197,66,.14), rgba(255,255,255,0));
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.panelHead h2{margin:0; font-size:16px; letter-spacing:-.2px}

.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(17,24,39,.06);
  border:1px solid rgba(17,24,39,.08);
}
.tag.ok{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.20);
}

.orderBrandRow{
  padding:14px 16px 8px;
  display:flex; align-items:center; gap:12px;
}
.wooMark{
  width:36px; height:36px; border-radius:14px;
  display:grid; place-items:center;
  font-weight:1000;
  background: rgba(244,197,66,.18);
  border:1px solid rgba(244,197,66,.35);
}
.merchantName{font-weight:1000}
.merchantSub{margin-top:2px; font-size:12.5px; color:var(--muted)}

.orderBody{padding:0 16px 16px;}
.row{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:14px;
  padding:10px 0;
  border-top:1px solid rgba(229,231,235,.75);
}
.row:first-of-type{border-top:none}
.k{color:var(--muted); font-size:12.5px}
.v{font-weight:900; font-size:13.5px; text-align:right}
.row.big .v{font-size:20px; font-weight:1100}

.timer{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(244,197,66,.16);
  border:1px solid rgba(244,197,66,.30);
  display:flex; align-items:center; justify-content:space-between;
}
.timerLabel{color:var(--muted); font-size:12.5px}
.timerBox{display:inline-flex; align-items:center; gap:8px; font-weight:1100}
.t{
  min-width:28px;
  padding:6px 8px;
  border-radius:10px;
  background:#fff;
  border:1px solid rgba(229,231,235,.9);
  text-align:center;
}
.sep{opacity:.6}
.secure{margin-top:10px}

.hint{
  margin:14px 16px 12px;
  padding:12px 12px;
  border-radius:14px;
  background: rgba(2,6,23,.03);
  border:1px solid rgba(2,6,23,.06);
  font-size:13px;
  line-height:1.5;
}

.filters{
  padding:0 16px 10px;
  display:grid;
  grid-template-columns: 1.05fr 1.05fr .9fr;
  gap:10px;
}
.f .lbl{color:var(--muted); font-size:12.5px; margin:0 0 8px}
.seg{display:flex; flex-wrap:wrap; gap:8px}
.segBtn{
  padding:9px 10px;
  border-radius:999px;
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  font-weight:1000;
  font-size:12.5px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.segBtn:hover{transform:translateY(-1px); box-shadow:var(--shadow2)}
.segBtn.active{
  background: rgba(244,197,66,.20);
  border-color: rgba(244,197,66,.50);
}

.search{position:relative}
.search .icon{
  position:absolute; left:12px; top:50%;
  transform:translateY(-50%);
  color:var(--muted);
}
.search input{
  width:100%;
  padding:10px 12px 10px 32px;
  border-radius:12px;
  border:1px solid rgba(229,231,235,.95);
  outline:none;
}
.search input:focus{
  border-color: rgba(244,197,66,.6);
  box-shadow: 0 0 0 4px rgba(244,197,66,.18);
}

.cards{
  padding:0 16px 6px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}

.card{
  border:1px solid rgba(229,231,235,.95);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 10px 20px rgba(2,6,23,.05);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{transform:translateY(-2px); box-shadow:var(--shadow)}
.cardTop{
  padding:12px 12px 10px;
  background: linear-gradient(180deg, rgba(244,197,66,.14), rgba(255,255,255,0));
  border-bottom:1px solid rgba(229,231,235,.85);
}
.badges{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px}
.badge{
  font-size:12px; font-weight:1000;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(2,6,23,.04);
  border:1px solid rgba(2,6,23,.06);
}
.badge.gold{
  background: rgba(244,197,66,.20);
  border-color: rgba(244,197,66,.45);
}
.h3row{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
.card h3{margin:0; font-size:14.5px; letter-spacing:-.1px}
.pmini{font-weight:1100}
.sub{margin-top:6px; color:var(--muted); font-size:12.5px; line-height:1.45}

.cardBody{padding:10px 12px 12px}
.meta{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:8px;
  margin-bottom:10px;
}
.mi{
  padding:9px 10px;
  border-radius:12px;
  background: rgba(2,6,23,.03);
  border:1px solid rgba(2,6,23,.05);
}
.mi .k{font-size:12px}
.mi .v{margin-top:3px; font-weight:1100}

.cardFoot{display:flex; align-items:center; justify-content:space-between; gap:10px}
.pick{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  font-weight:1100;
  cursor:pointer;
}
.pick.selected{
  background: rgba(244,197,66,.20);
  border-color: rgba(244,197,66,.50);
}

.payMethodBox{
  margin:10px 16px 0;
  border-top:1px solid rgba(229,231,235,.85);
  padding-top:12px;
}
.pmTitle{font-weight:1100; margin:0 0 10px}
.pmItem{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  cursor:pointer;
  margin-bottom:10px;
}
.pmItem input{accent-color: #111827;}
.pmLeft{display:flex; align-items:center; gap:12px}
.pmIcon{
  width:44px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  font-weight:1100;
  background: rgba(17,24,39,.06);
  border:1px solid rgba(17,24,39,.10);
  color:#111827;
  font-size:12px;
}
.pmIcon img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block;
}
.pmIcon.gold{
  background: rgba(244,197,66,.18);
  border-color: rgba(244,197,66,.35);
}
.pmIcon.blue{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.18);
  color:#2563EB;
}
.pmName{font-weight:1100}
.pmDesc{color:var(--muted); font-size:12.5px; margin-top:2px}
.pmArrow{color:#111827; font-size:20px; opacity:.55}

.bottomBar{
  margin-top:12px;
  padding:12px 16px 14px;
  border-top:1px solid rgba(229,231,235,.85);
  display:grid;
  grid-template-columns: 1fr 260px;
  gap:12px;
  align-items:end;
}

.noteEdit .lbl{color:var(--muted); font-size:12.5px; margin:0 0 6px}
.noteEdit input{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid rgba(229,231,235,.95);
  outline:none;
}
.noteEdit input:focus{
  border-color: rgba(244,197,66,.6);
  box-shadow: 0 0 0 4px rgba(244,197,66,.18);
}
.mini{color:var(--muted); font-size:12px; margin-top:6px; line-height:1.35}

.actions{display:flex; flex-direction:column; gap:10px}
.btn{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(2,6,23,.10);
  background:#fff;
  font-weight:1100;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow:var(--shadow2)}
.btn:disabled{opacity:.55; cursor:not-allowed; transform:none; box-shadow:none}
.btn.ghost{background: rgba(2,6,23,.04)}
.btn.primary{
  background: linear-gradient(135deg, var(--woo-gold), var(--woo-gold-2));
  border-color: rgba(0,0,0,.06);
}
.arr{font-weight:1200}

.footer{
  margin-top:18px;
  padding:12px 0 0;
  border-top:1px solid rgba(229,231,235,.75);
}

/* Responsive */
@media (max-width: 1020px){
  .grid{grid-template-columns: 1fr}
  .filters{grid-template-columns: 1fr}
  .cards{grid-template-columns: 1fr}
  .bottomBar{grid-template-columns: 1fr}
  .actions{flex-direction:row}
}
@media (max-width: 560px){
  .actions{flex-direction:column}
}