:root{--green:#e60012;--green2:#ad000e;--green-rgb:230,0,18;--green2-rgb:173,0,14;--mint:#fde1e4;--ink:#231719;--sub:#74696a;--line:#ece5e5;--bg:#f5f3f3;--paper:#fff;--soft:#faf8f8;--red:#e60012;--gold:#f24a0a;--goldbg:#fff0e7;--blue:#2e6c91}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Noto Sans SC",system-ui,sans-serif;color:var(--ink);background:var(--bg)}button,select,input,textarea{font:inherit}.prototype{min-height:100vh;display:grid;grid-template-columns:290px 1fr}.catalog{height:100vh;position:sticky;top:0;background:#14251c;color:#fff;padding:24px 18px 16px;display:flex;flex-direction:column;overflow:hidden}.brand{display:flex;align-items:center;gap:11px;padding:0 6px 22px;border-bottom:1px solid rgba(255,255,255,.12)}.brand>span{width:45px;height:45px;display:grid;place-items:center;background:#f0f3ef;color:var(--green2);font-weight:700;border-radius:5px}.brand div{display:grid;gap:2px}.brand strong{font-size:17px}.brand small{font-size:11px;color:#9fb1a6}.role-tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#0c1c13;border-radius:5px;padding:3px;margin:18px 0 12px}.role-tabs button{border:0;background:transparent;color:#8fa297;padding:8px 2px;font-size:12px;border-radius:3px}.role-tabs button.active{background:#fff;color:var(--green2);font-weight:700}.page-list{overflow:auto;padding-right:3px}.page-group-title{display:block;color:#739080;font-size:10px;margin:14px 7px 5px}.page-item{width:100%;border:0;background:transparent;color:#b9c7bf;display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:4px;text-align:left;font-size:12px}.page-item i{width:16px;height:16px}.page-item:hover{background:rgba(255,255,255,.06)}.page-item.active{background:#fff;color:var(--green2);font-weight:700}.catalog footer{border-top:1px solid rgba(255,255,255,.12);padding:13px 5px 0;margin-top:auto;display:flex;justify-content:space-between;color:#758b7e;font-size:10px}.workspace{min-height:100vh;padding:22px 32px 28px;display:grid;grid-template-rows:auto auto 1fr auto;place-items:center}.workspace-head{width:min(100%,760px);display:flex;align-items:center;justify-content:space-between}.workspace-head small{color:var(--green);font-weight:600}.workspace-head h1{font-size:23px;margin:3px 0 0;letter-spacing:0}.flow-nav{display:flex;align-items:center;gap:10px;color:var(--sub);font-size:12px}.flow-nav button{width:34px;height:34px;border:1px solid var(--line);background:#fff;border-radius:4px;color:var(--ink)}.flow-nav i{width:17px}.mobile-jump{display:none}.phone{width:390px;height:780px;background:#fff;border:8px solid #17201b;border-radius:34px;overflow:hidden;box-shadow:0 22px 62px rgba(23,38,29,.18);align-self:center}.status{height:28px;padding:6px 17px 0;display:flex;justify-content:space-between;font-size:10px;font-weight:600}.app{height:calc(100% - 28px);position:relative;overflow:hidden;background:var(--soft)}.screen{height:100%;overflow:auto;padding-bottom:70px}.screen::-webkit-scrollbar{width:0}.topbar{background:rgba(255,255,255,.97);padding:11px 14px;position:sticky;top:0;z-index:5}.row{display:flex;align-items:center}.between{justify-content:space-between}.gap{gap:8px}.location{border:0;background:none;padding:0;display:flex;gap:5px;align-items:center;font-weight:700}.location i{width:18px}.tag{font-size:10px;padding:4px 6px;background:var(--mint);color:var(--green);border-radius:3px}.search{margin-top:10px;height:36px;background:#f1f3f1;color:#919892;border-radius:4px;display:flex;align-items:center;gap:7px;padding:0 10px;font-size:12px}.search i{width:16px}.hero{height:142px;margin:9px 10px 0;border-radius:6px;padding:19px;color:#fff;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(90deg,rgba(8,72,42,.94),rgba(8,72,42,.28)),url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=900&q=82') center/cover}.hero small{opacity:.86;font-size:11px}.hero h2{font-size:23px;margin:7px 0 10px}.hero span{font-size:11px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;padding:15px 6px;margin-top:9px;text-align:center}.quick-grid button{border:0;background:none;color:var(--ink);font-size:10px}.quick-grid i{display:block;margin:0 auto 6px;width:21px;color:var(--green)}.section-title{display:flex;justify-content:space-between;align-items:end;padding:16px 12px 9px}.section-title h2{font-size:18px;margin:0}.section-title span{font-size:10px;color:var(--sub)}.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 9px}.product{background:#fff;position:relative;border-radius:5px;overflow:hidden}.product img{width:100%;aspect-ratio:1.3;display:block;object-fit:cover}.product-body{padding:9px}.product strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product small{display:block;color:var(--sub);font-size:10px;margin:3px 0 7px}.price{color:var(--red);font-size:16px;font-weight:700}.member-label{font-style:normal;font-size:9px;color:var(--gold);background:var(--goldbg);padding:2px 3px;margin-left:3px}.old-price{font-size:9px;color:#969c98;text-decoration:line-through}.add{position:absolute;right:8px;bottom:8px;border:0;width:27px;height:27px;border-radius:50%;background:var(--green);color:#fff;font-size:19px;line-height:1}.bottom-nav{position:absolute;left:0;right:0;bottom:0;height:62px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));z-index:10}.bottom-nav button{border:0;background:none;color:#7d857f;font-size:9px;display:grid;place-content:center;gap:2px}.bottom-nav i{width:19px;margin:auto}.bottom-nav button.active{color:var(--green);font-weight:700}.pagebar{height:47px;background:#fff;display:flex;align-items:center;gap:10px;padding:0 12px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.pagebar button{border:0;background:none;padding:5px}.pagebar i{width:20px}.pagebar strong{font-size:15px}.store-list{padding:10px}.store-card{background:#fff;border-radius:6px;padding:13px;margin-bottom:9px}.store-card.selected{border:1px solid var(--green)}.store-card h3{font-size:14px;margin:0 0 5px}.store-card p{font-size:11px;color:var(--sub);margin:0 0 10px}.store-card footer{display:flex;justify-content:space-between;font-size:10px;color:var(--green)}.category-wrap{display:grid;grid-template-columns:88px 1fr;height:calc(100% - 94px)}.category-menu{background:#edf0ed;overflow:auto}.category-menu button{width:100%;height:52px;border:0;background:none;color:var(--sub);font-size:11px;position:relative}.category-menu button.active{background:#fff;color:var(--green);font-weight:700}.category-menu button.active:before{content:"";position:absolute;left:0;top:15px;height:22px;width:3px;background:var(--green)}.category-products{background:#fff;padding:10px;overflow:auto}.category-banner{height:80px;border-radius:5px;color:#fff;padding:12px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(90deg,rgba(16,91,55,.9),rgba(16,91,55,.18)),url('https://images.unsplash.com/photo-1619566636858-adf3ef46400b?auto=format&fit=crop&w=600&q=80') center/cover}.category-banner strong{font-size:17px}.category-banner small{font-size:10px}.list-product{display:grid;grid-template-columns:72px 1fr;gap:9px;padding:10px 0;border-bottom:1px solid var(--line);position:relative}.list-product img{width:72px;height:72px;object-fit:cover;border-radius:4px}.list-product strong,.list-product small{display:block}.list-product strong{font-size:12px}.list-product small{font-size:9px;color:var(--sub);margin:4px 0 8px}.search-keywords{padding:16px 13px;background:#fff}.search-keywords h3{font-size:13px;margin:0 0 10px}.chips{display:flex;flex-wrap:wrap;gap:7px}.chip{border:1px solid var(--line);background:#fff;color:var(--sub);padding:6px 10px;border-radius:15px;font-size:10px}.chip.active{background:var(--green);border-color:var(--green);color:#fff}.detail-img{width:100%;height:270px;object-fit:cover;display:block}.detail-info{background:#fff;padding:14px}.detail-info h2{font-size:18px;margin:9px 0 5px}.detail-info p{font-size:11px;color:var(--sub);line-height:1.65}.spec-box{background:#fff;margin-top:9px;padding:13px;font-size:12px}.spec-box .row{padding:7px 0}.detail-actions{position:absolute;bottom:0;left:0;right:0;height:58px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:55px 55px 1fr 1fr;padding:7px;gap:6px}.detail-actions button{border:0;border-radius:4px;background:#fff;font-size:10px}.detail-actions button i{width:18px;display:block;margin:auto}.detail-actions .outline{border:1px solid var(--green);color:var(--green);font-size:12px}.detail-actions .primary{background:var(--green);color:#fff;font-size:12px}.cart-shop{background:#fff;margin-top:9px;padding:0 13px}.shop-title{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;font-weight:600}.cart-item{display:grid;grid-template-columns:18px 72px 1fr;gap:9px;padding:13px 0}.cart-item img{width:72px;height:72px;object-fit:cover;border-radius:4px}.cart-item h3{font-size:12px;margin:0 0 4px}.cart-item p{font-size:9px;color:var(--sub);margin:0 0 12px}.stepper{display:flex;gap:9px;font-size:11px}.checkout-bar{position:absolute;left:0;right:0;bottom:62px;background:#fff;border-top:1px solid var(--line);padding:9px 11px;display:flex;justify-content:space-between;align-items:center;z-index:9}.checkout-bar b{color:var(--red)}.btn{border:1px solid var(--line);background:#fff;color:var(--ink);padding:9px 14px;border-radius:4px;font-size:11px}.btn.primary{background:var(--green);border-color:var(--green);color:#fff;font-weight:600}.btn.danger{color:var(--red);border-color:#efc3bd}.block{width:100%}.form-card{background:#fff;margin-top:9px;padding:13px}.form-card h3{font-size:13px;margin:0 0 11px}.segment{display:grid;grid-template-columns:1fr 1fr;background:var(--soft);padding:3px;border-radius:4px}.segment button{border:0;background:none;padding:8px;font-size:11px}.segment button.active{background:#fff;color:var(--green);font-weight:700;box-shadow:0 1px 5px rgba(0,0,0,.08)}.address-row{display:flex;gap:9px;margin-top:12px}.address-row i{width:19px;color:var(--green)}.address-row strong,.address-row small{display:block}.address-row strong{font-size:12px}.address-row small{font-size:10px;color:var(--sub);margin-top:4px}.info-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-top:1px solid var(--line);font-size:11px}.info-row:first-of-type{border:0}.info-row span:last-child{color:var(--sub)}.points-note{font-size:10px;color:#735115;background:var(--goldbg);padding:9px;border-radius:4px}.submit-bar{position:absolute;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);padding:10px 12px;display:flex;justify-content:space-between;align-items:center}.success{height:100%;background:#fff;text-align:center;padding:70px 25px}.success .success-icon{width:66px;height:66px;background:var(--mint);color:var(--green);border-radius:50%;display:grid;place-items:center;margin:auto}.success-icon i{width:34px;height:34px}.success h2{font-size:20px;margin:17px 0 7px}.success p{font-size:11px;color:var(--sub);line-height:1.7}.success .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:25px}.order-tabs{display:grid;grid-template-columns:repeat(5,1fr);background:#fff;padding:0 7px}.order-tabs button{border:0;background:none;padding:11px 2px;font-size:10px;color:var(--sub)}.order-tabs button.active{color:var(--green);font-weight:700;border-bottom:2px solid var(--green)}.order-card{background:#fff;margin:9px 9px 0;padding:12px;border-radius:5px}.order-card header{display:flex;justify-content:space-between;font-size:10px}.order-card header b{color:var(--green)}.order-product{display:grid;grid-template-columns:58px 1fr auto;gap:8px;background:var(--soft);padding:8px;margin:10px 0}.order-product img{width:58px;height:58px;object-fit:cover}.order-product strong{font-size:11px}.order-product small{display:block;font-size:9px;color:var(--sub);margin-top:4px}.order-card footer{text-align:right}.timeline{background:#fff;padding:15px}.timeline-row{display:grid;grid-template-columns:16px 1fr;gap:9px;padding-bottom:17px;position:relative}.timeline-row:before{content:"";position:absolute;width:1px;background:var(--line);left:7px;top:14px;bottom:0}.timeline-row:last-child:before{display:none}.timeline-row i{width:15px;color:var(--green)}.timeline-row strong,.timeline-row small{display:block}.timeline-row strong{font-size:11px}.timeline-row small{font-size:9px;color:var(--sub);margin-top:3px}.rating{text-align:center;background:#fff;padding:20px}.rating img{width:76px;height:76px;object-fit:cover;border-radius:5px}.stars{font-size:28px;color:#e8b43e;letter-spacing:4px;margin:12px 0}.textarea{width:100%;height:92px;border:1px solid var(--line);padding:10px;resize:none;font-size:11px}.profile-head{background:var(--green);color:#fff;padding:21px 17px 29px}.user{display:flex;gap:11px;align-items:center}.avatar{width:50px;height:50px;border-radius:50%;object-fit:cover}.user small{display:block;opacity:.72;font-size:10px;margin-top:3px}.level-card{background:#24322a;border-radius:6px;padding:14px;margin-top:16px}.level-card .row span{color:#e5bd64;font-size:11px}.progress{height:5px;background:#536058;border-radius:3px;margin:11px 0 6px;overflow:hidden}.progress b{display:block;width:68%;height:100%;background:#e4bd66}.level-card small{font-size:9px;color:#c6cec9}.profile-body{padding:28px 10px 75px}.stats{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;padding:16px 4px;text-align:center;border-radius:5px}.stats strong{display:block;font-size:17px}.stats span{font-size:9px;color:var(--sub)}.menu{background:#fff;margin-top:9px;border-radius:5px}.menu button{width:100%;border:0;background:none;border-bottom:1px solid var(--line);padding:13px;display:flex;justify-content:space-between;font-size:11px}.balance-card{background:linear-gradient(135deg,#1c3226,#315540);color:#fff;margin:10px;padding:18px;border-radius:7px}.balance-card small{opacity:.7}.balance-card strong{display:block;font-size:30px;margin:6px 0 18px}.amount-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px}.amount{border:1px solid var(--line);background:#fff;border-radius:5px;padding:12px 4px;text-align:center}.amount.active{border-color:var(--green);background:var(--mint);color:var(--green)}.amount strong,.amount small{display:block}.amount small{font-size:9px;color:var(--red);margin-top:4px}.points-head{background:#26352d;color:#fff;padding:20px 16px}.points-head strong{font-size:27px;display:block}.points-head small{color:#bdc7c1}.points-products{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:9px}.points-item{background:#fff;border-radius:5px;overflow:hidden}.points-item img{width:100%;height:102px;object-fit:cover}.points-item div{padding:9px}.points-item strong{font-size:11px;display:block}.points-item span{font-size:12px;color:var(--gold);font-weight:700}.address-card{background:#fff;padding:13px;margin-top:9px}.address-card h3{font-size:12px;margin:0 0 5px}.address-card p{font-size:10px;color:var(--sub);margin:0 0 10px}.coupon{margin:10px;background:#fff;display:grid;grid-template-columns:92px 1fr;border-radius:5px;overflow:hidden}.coupon-value{background:var(--goldbg);color:var(--gold);display:grid;place-content:center;text-align:center}.coupon-value strong{font-size:22px}.coupon div:last-child{padding:12px}.coupon h3{font-size:12px;margin:0 0 5px}.coupon p{font-size:9px;color:var(--sub);margin:0}.work-head{background:#fff;padding:15px}.work-head h2{font-size:19px;margin:0}.online{font-size:10px;background:var(--mint);color:var(--green);padding:5px}.work-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:16px;text-align:center}.work-stats div{border-right:1px solid var(--line)}.work-stats div:last-child{border:0}.work-stats b{display:block;font-size:19px}.work-stats small{font-size:9px;color:var(--sub)}.filters{display:flex;gap:7px;padding:10px;overflow:auto}.delivery-card{background:#fff;margin:0 9px 9px;padding:12px;border-radius:5px}.delivery-card header{display:flex;justify-content:space-between;font-size:10px}.delivery-card header b{color:var(--green)}.delivery-card h3{font-size:13px;margin:11px 0 3px}.delivery-card>p{font-size:9px;color:var(--sub)}.route{border-left:2px solid #cad1cc;padding-left:9px;margin:10px 0}.route div{display:flex;justify-content:space-between;font-size:10px;padding:3px 0}.route span:last-child{color:var(--sub)}.card-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:10px}.proof-upload{margin:12px;border:1px dashed #b9c2bc;height:145px;background:#fff;display:grid;place-content:center;text-align:center;color:var(--sub)}.proof-upload i{margin:auto;color:var(--green);width:30px}.proof-upload strong{font-size:12px;margin-top:7px}.proof-upload small{font-size:9px}.store-dashboard{padding:10px}.revenue{background:#173b29;color:#fff;padding:17px;border-radius:6px}.revenue small{opacity:.7}.revenue strong{font-size:29px;display:block;margin:5px 0}.revenue span{font-size:10px}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.metric{background:#fff;padding:14px;border-radius:5px}.metric strong{display:block;font-size:20px}.metric small{color:var(--sub);font-size:9px}.stock-row{display:grid;grid-template-columns:52px 1fr auto;gap:9px;background:#fff;padding:10px;border-bottom:1px solid var(--line)}.stock-row img{width:52px;height:52px;object-fit:cover;border-radius:4px}.stock-row strong,.stock-row small{display:block;font-size:10px}.stock-row small{color:var(--sub);margin-top:4px}.stock-row span{font-size:10px;color:var(--green)}.finance-row{background:#fff;margin-top:1px;padding:12px;display:flex;justify-content:space-between}.finance-row strong,.finance-row small{display:block}.finance-row strong{font-size:11px}.finance-row small{font-size:9px;color:var(--sub)}.finance-row b{font-size:13px}.settings-block{background:#fff;margin:9px;padding:13px;border-radius:5px}.settings-block h3{font-size:13px;margin:0 0 10px}.setting-line{display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid var(--line);font-size:10px}.setting-line b{color:var(--green)}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,15px);background:#17201b;color:#fff;padding:9px 14px;border-radius:4px;font-size:11px;opacity:0;transition:.2s;pointer-events:none;z-index:99}.toast.show{opacity:1;transform:translate(-50%,0)}.hint{color:var(--sub);font-size:11px;margin:8px 0 0}
@media(max-width:850px){.prototype{display:block}.catalog{height:auto;position:relative;padding:12px 14px}.brand{padding:0;border:0}.brand>span{width:38px;height:38px}.brand small,.catalog footer,.page-list{display:none}.role-tabs{margin:10px 0 0}.workspace{padding:12px 8px 20px;display:block}.workspace-head{margin:0 auto 8px;max-width:520px}.workspace-head h1{font-size:18px}.mobile-jump{display:block;max-width:520px;margin:0 auto 9px}.mobile-jump select{width:100%;height:38px;border:1px solid var(--line);background:#fff;padding:0 10px;color:var(--ink);border-radius:4px}.phone{width:min(390px,100%);height:740px;margin:auto;border-width:5px;border-radius:25px}.hint{text-align:center}.flow-nav{gap:5px}.flow-nav button{width:30px;height:30px}}
@media(max-width:420px){.workspace{padding:0}.workspace-head{padding:8px 12px;margin:0}.mobile-jump{padding:0 8px}.phone{width:100%;height:calc(100vh - 156px);border:0;border-radius:0}.status{display:none}.app{height:100%}.hint{display:none}}

/* Lucide replaces the placeholder <i> with <svg>; keep quick actions aligned after rendering. */
.quick-grid button{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  line-height:1;
}
.quick-grid button>i,
.quick-grid button>svg{
  width:22px;
  height:22px;
  margin:0;
  display:block;
  flex:0 0 22px;
  color:var(--green);
}

.metric-grid button.metric{
  width:100%;
  border:0;
  color:var(--ink);
  text-align:left;
  cursor:pointer;
}
.metric-grid button.metric:active{
  background:var(--mint);
}

.switch-result-note{
  padding:9px 12px 0;
  color:var(--sub);
  font-size:10px;
}
.switch-empty{
  min-height:190px;
  margin:10px;
  padding:34px 18px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-radius:6px;
  color:var(--sub);
}
.switch-empty>svg{
  width:34px;
  height:34px;
  color:#91a198;
  margin-bottom:12px;
}
.switch-empty strong{
  color:var(--ink);
  font-size:13px;
}
.switch-empty p{
  margin:6px 0 0;
  font-size:10px;
  line-height:1.6;
}
.switch-filters .chip{
  flex:0 0 auto;
  min-height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  white-space:nowrap;
}
.switch-filters .chip svg{
  width:13px;
  height:13px;
}
.search-current-keyword{
  color:var(--ink);
  font-size:11px;
  font-weight:500;
}
.recharge-custom{
  margin:0 10px 10px;
  padding:12px;
  background:#fff;
  border-radius:5px;
  display:block;
}
.recharge-custom>span{
  display:block;
  margin-bottom:8px;
  color:var(--sub);
  font-size:10px;
}
.recharge-custom>div{
  display:flex;
  align-items:center;
  gap:7px;
  border-bottom:1px solid var(--line);
  padding:5px 0 9px;
}
.recharge-custom b{
  font-size:20px;
}
.recharge-custom input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  font-size:20px;
}
.submit-bar button:disabled{
  opacity:.45;
}
.coupon-muted{
  filter:saturate(.25);
  opacity:.72;
}
.coupon-state{
  display:inline-block;
  margin-top:8px;
  color:var(--sub);
  font-size:10px;
}
.stock-disabled{
  opacity:.58;
}

.admin-entry {
  min-height: 42px;
  margin-top: 13px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 5px;
  background: rgba(255, 255, 255, .06);
  color: #d8e2dc;
  text-decoration: none;
  transition: background-color .16s, border-color .16s, color .16s;
}

.admin-entry:hover,
.admin-entry:focus-visible {
  border-color: rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .11);
  color: #fff;
  outline: none;
}

.admin-entry > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-entry b {
  font-size: 12px;
  white-space: nowrap;
}

.admin-entry svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.admin-entry > svg {
  width: 14px;
  height: 14px;
  color: #8ca397;
}

.admin-entry + .role-tabs {
  margin-top: 10px;
}

@media (max-width: 850px) {
  .admin-entry {
    min-height: 36px;
    margin-top: 9px;
  }
}

/* Coupon campaigns are rendered inside the phone preview, matching mini-program modal behavior. */
.coupon-campaign-layer {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 24, 17, .66);
  backdrop-filter: blur(2px);
}

.coupon-campaign-card,
.coupon-campaign-success {
  width: min(318px, 100%);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(6, 28, 17, .28);
  text-align: center;
}

.coupon-campaign-card {
  position: relative;
  padding: 28px 18px 20px;
  border-top: 7px solid var(--green);
}

.coupon-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f0f4f1;
  color: #53635a;
}

.coupon-popup-close svg {
  width: 16px;
  height: 16px;
}

.coupon-popup-brand {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.coupon-campaign-card h2,
.coupon-campaign-success h2 {
  margin: 9px 0 5px;
  color: #17231c;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.coupon-campaign-card > p,
.coupon-campaign-success > p {
  margin: 0;
  color: #718078;
  font-size: 11px;
  line-height: 1.6;
}

.coupon-popup-ticket {
  min-height: 82px;
  margin: 18px 0 14px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #ead8a7;
  border-radius: 6px;
  background: #fffaf0;
  text-align: left;
}

.coupon-popup-ticket > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px dashed #d7bd77;
  background: #fbf0ce;
  color: #8c6515;
}

.coupon-popup-ticket > div strong {
  font-size: 24px;
  line-height: 1.1;
}

.coupon-popup-ticket small {
  margin-top: 4px;
  color: #8a7a55;
  font-size: 9px;
}

.coupon-popup-ticket > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 11px 12px;
}

.coupon-popup-ticket > span b {
  overflow-wrap: anywhere;
  color: #322d22;
  font-size: 12px;
}

.coupon-popup-claim,
.coupon-popup-primary,
.coupon-popup-secondary {
  min-height: 42px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.coupon-popup-claim {
  width: 100%;
  border: 0;
  background: var(--green);
  color: #fff;
}

.coupon-popup-rule {
  display: block;
  margin-top: 10px;
  color: #8a958e;
  font-size: 9px;
}

.coupon-campaign-success {
  padding: 26px 20px 20px;
}

.coupon-success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
}

.coupon-success-icon svg {
  width: 30px;
  height: 30px;
}

.coupon-campaign-success > small {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.coupon-campaign-success > div {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.coupon-popup-secondary {
  border: 1px solid #dbe2dd;
  background: #fff;
  color: #536159;
}

.coupon-popup-primary {
  border: 0;
  background: var(--green);
  color: #fff;
}

@media (max-width: 350px) {
  .coupon-campaign-layer { padding: 12px; }
  .coupon-campaign-card { padding-inline: 14px; }
  .coupon-campaign-card h2,
  .coupon-campaign-success h2 { font-size: 19px; }
  .coupon-popup-ticket { grid-template-columns: 82px minmax(0, 1fr); }
  .coupon-popup-ticket > div strong { font-size: 20px; }
}
