:root {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  color: #111d2b;
  background: #dfeaf6;
  --brand: #0d408f;
  --blue: #0872e8;
  --red: #ef5042;
  --muted: #72849b;
  --line: #e3ecf6;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; overscroll-behavior: none; }
body { margin: 0; min-height: 100vh; background: transparent; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; background: transparent; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img, video { display: block; max-width: 100%; }
.terminal, .terminal * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.terminal { width: 100vw; min-height: 100svh; margin: 0; background: #fff; overflow: hidden; position: relative; }
.terminal .page { width: 100vw; min-height: 100svh; margin: 0; background: #fff; overflow: hidden; position: relative; }
.terminal.native-inline-camera { background: transparent; }
.terminal.native-inline-camera .codepay.payment { background: transparent !important; }
.terminal.native-inline-camera .codepay.payment:before { display: none; }
.terminal.native-inline-camera .scanner-panel { background: transparent !important; }
.terminal.native-inline-camera .scanner-panel video { display: none; }
.loading { min-height: 100svh; display: grid; place-content: center; color: var(--brand); font-weight: 800; }
.page-shell { opacity: 0; transform: translate3d(0, 14px, 0) scale(.992); transition: opacity .28s ease, transform .34s cubic-bezier(.2,.72,.22,1); }
.page-shell.mounted { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.page-left { transform: translate3d(28px, 0, 0); }
.page-right { transform: translate3d(-28px, 0, 0); }
.page-rise { transform: translate3d(0, 32px, 0) scale(.985); }
.page-pop { transform: scale(.965); }
.page-fade { transform: none; }
.splash { min-height: 100svh; color: #fff; background: #071d43; cursor: pointer; text-align: center; }
.splash-media { height: 58svh; background: #eef7ff; display: grid; place-items: center; overflow: hidden; }
.splash-media img, .splash-media video { width: 100%; height: 100%; object-position: center center; }
.splash-media .fit-contain { object-fit: contain; }
.splash-media .fit-cover { object-fit: cover; }
.splash-wave { height: 54px; width: 110%; margin: -34px 0 0 -5%; border-radius: 52% 52% 0 0 / 100% 100% 0 0; background: #0c438c; box-shadow: 0 -14px 0 rgba(22,133,220,.45); position: relative; z-index: 2; }
.splash-copy { min-height: calc(42svh - 20px); padding: 24px 28px; background: radial-gradient(circle at 50% -10%, rgba(19,147,230,.44), transparent 48%), linear-gradient(150deg,#0c438c,#071d43 92%); }
.splash-copy p { margin: 0 0 12px; font-size: 12px; color: #c1eaff; letter-spacing: 5px; }
.splash-copy h1 { margin: 0 0 12px; font-family: "SimSun", serif; font-size: clamp(35px, 9vw, 44px); letter-spacing: 3px; }
.splash-copy span { color: #cee8ff; font-size: 13px; }
.touch-prompt { width: min(350px, 90%); min-height: 74px; margin: 25px auto 18px; border: 1px solid rgba(169,222,255,.48); border-radius: 38px; display: grid; place-content: center; gap: 4px; background: rgba(7,38,83,.38); position: relative; overflow: hidden; animation: promptPulse 2.2s ease-in-out infinite; }
.touch-prompt:after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 12%, rgba(255,255,255,.16), transparent 52%); transform: translateX(-100%); animation: shimmer 2.8s ease-in-out infinite; }
.touch-prompt strong { font-size: 19px; letter-spacing: 2px; }
.touch-prompt strong, .touch-prompt small { position: relative; z-index: 1; }
.touch-prompt small, .splash-copy footer { color: #a9d2f7; }
.admin-hotspot { position: absolute; right: 0; top: 0; width: 86px; height: 86px; opacity: 0; z-index: 5; }
.header { height: 70px; padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; color: #687d97; border-bottom: 1px solid #f0f4f8; }
.brand-logo { width: 110px; max-height: 37px; object-fit: contain; object-position: left center; }
.shop { height: 100svh; min-height: 100svh; padding-bottom: 0; background: #f7f9fc; display: flex; flex-direction: column; overflow: hidden; }
.intro { background: #fff; padding: 22px 20px 18px; }
.intro h1 { margin: 0; font-size: 29px; }
.intro p { margin: 6px 0 18px; color: var(--muted); }
.banner { height: 104px; padding: 19px; border-radius: 16px; color: #fff; background: linear-gradient(112deg,#0c3a87,#087be5); display: flex; justify-content: space-between; overflow: hidden; position: relative; }
.banner-copy { position: relative; z-index: 2; }
.banner strong { display: block; max-width: 180px; font-size: 18px; line-height: 1.35; }
.banner-slides { position: absolute; right: 0; top: 0; bottom: 0; width: 58%; overflow: hidden; }
.banner-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center right; opacity: 0; transform: translateX(18px) scale(.98); transition: opacity .42s ease, transform .48s ease; }
.banner-slide.active { opacity: 1; transform: translateX(0) scale(1); }
.banner-dots { position: absolute; left: 19px; bottom: 13px; z-index: 2; display: flex; gap: 5px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.45); transition: width .24s ease, background .24s ease; }
.banner-dots i.active { width: 18px; background: #fff; }
.catalog { display: grid; grid-template-columns: 92px 1fr; flex: 1; min-height: 0; padding-top: 10px; overflow: hidden; }
.categories { background: #edf2f8; }
.categories button { width: 100%; min-height: 58px; color: #62748b; position: relative; }
.categories button.active { background: #fff; color: var(--brand); font-weight: 800; }
.categories button.active:before { content: ""; position: absolute; left: 0; top: 17px; width: 4px; height: 24px; border-radius: 4px; background: var(--blue); }
.products { min-height: 0; background: #fff; padding: 17px 13px; overflow-y: auto; }
.products h2 { margin: 0; font-size: 19px; }
.products > p { margin: 4px 0 14px; color: var(--muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.shop.has-cart .grid { padding-bottom: 92px; }
.card { border: 1px solid #eef3f7; border-radius: 12px; padding: 8px; background: #fff; animation: cardIn .34s ease both; }
.card:nth-child(2) { animation-delay: .04s; }
.card:nth-child(3) { animation-delay: .08s; }
.card:nth-child(4) { animation-delay: .12s; }
.card:active { transform: scale(.985); }
.card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f7f6f2; border-radius: 9px; }
.card h3 { margin: 9px 0 4px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card p { margin: 0; color: #8191a3; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { margin-top: 8px; display: flex; align-items: center; gap: 2px; }
.price strong { color: var(--red); font-size: 17px; }
.price span { color: #8794a5; font-size: 11px; }
.price button { margin-left: auto; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 20px; line-height: 24px; }
.cart-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(calc(100vw - 26px),494px); height: 74px; padding: 7px 8px 7px 18px; border-radius: 38px; background: #101b2c; color: #fff; display: flex; align-items: center; gap: 15px; box-shadow: 0 16px 28px rgba(12,25,45,.27); z-index: 5; animation: cartBarIn .3s cubic-bezier(.2,.72,.22,1); }
.cart-bar b { font-size: 20px; }
.cart-bar button { margin-left: auto; height: 59px; min-width: 126px; border-radius: 31px; color: #fff; background: linear-gradient(98deg,#187ef0,#00b4ec); font-weight: 800; }
.sheet-mask { position: fixed; inset: 0; z-index: 9; background: rgba(2,18,40,0); display: flex; align-items: flex-end; justify-content: center; transition: background .24s ease; }
.sheet-mask.mounted { background: rgba(2,18,40,.43); }
.sheet { width: min(100vw,520px); padding: 20px 23px max(27px, calc(18px + env(safe-area-inset-bottom))); border-radius: 24px 24px 0 0; background: #fff; transform: translateY(100%); transition: transform .34s cubic-bezier(.2,.72,.22,1); }
.sheet-mask.mounted .sheet { transform: translateY(0); }
.chosen { display: flex; gap: 15px; margin-bottom: 18px; }
.chosen img { width: 102px; height: 102px; object-fit: contain; background: #faf7f1; border-radius: 12px; }
.chosen h2 { margin: 5px 0 7px; font-size: 20px; }
.chosen p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.chosen strong, .subtotal strong { color: var(--red); font-size: 22px; }
.sku-options { display: flex; flex-wrap: wrap; gap: 9px; margin: 13px 0 24px; }
.sku-options button { padding: 12px 15px; border-radius: 9px; border: 1px solid #dae4f1; }
.sku-options button.selected { color: #0765d3; border-color: #1173e5; background: #edf6ff; }
.sku-options button:disabled { color: #a8b4c0; background: #f4f5f7; }
.qty, .subtotal { height: 57px; display: flex; align-items: center; justify-content: space-between; }
.qty div { border: 1px solid var(--line); border-radius: 21px; overflow: hidden; }
.qty button { width: 43px; height: 37px; font-size: 23px; color: #4e6179; }
.primary { width: 100%; height: 55px; border-radius: 29px; color: #fff; background: linear-gradient(100deg,#106de0,#06a9ee); font-size: 17px; font-weight: 800; box-shadow: 0 12px 24px rgba(6,111,220,.18); transition: transform .16s ease, filter .16s ease; }
.sheet .primary, .checkout > .primary, .payment .primary, .success .primary, .checkout-ad .primary { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; padding: 0 18px; }
.sheet .primary { margin-top: 16px; border-radius: 30px; }
.primary:active, .demo-pay:active, .cart-bar button:active { transform: scale(.98); filter: brightness(.96); }
.checkout, .payment, .success { min-height: 100svh; padding: 0 21px 27px; background: radial-gradient(circle at 50% 0, #f5fbff 0, #f7f9fd 42%, #eef4fb 100%); }
.checkout-hero-card { margin: 18px 0 14px; padding: 22px; border-radius: 28px; color: #fff; background: radial-gradient(circle at 86% 20%, rgba(255,255,255,.24), transparent 28%), linear-gradient(135deg,#0b3d8d 0%,#0872e8 62%,#06b9ee 100%); display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; box-shadow: 0 18px 42px rgba(8,77,155,.22); text-align: left; overflow: hidden; position: relative; }
.checkout-hero-card:after { content: ""; position: absolute; right: -34px; bottom: -52px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.14); }
.checkout-hero-card small { opacity: .82; font-weight: 800; letter-spacing: 2px; }
.checkout-hero-card h1 { margin: 8px 0 8px; font-size: 31px; }
.checkout-hero-card p { margin: 0; opacity: .86; }
.checkout-hero-card strong { position: relative; z-index: 1; white-space: nowrap; font-size: 32px; }
.checkout-card { background: rgba(255,255,255,.94); border: 1px solid rgba(226,236,248,.9); border-radius: 24px; box-shadow: 0 14px 34px rgba(14,45,86,.07); }
.checkout-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: #10233b; }
.checkout-card-title b { font-size: 19px; }
.checkout-card-title span { color: #6f8095; font-size: 13px; }
.checkout-card-title span b { color: var(--blue); font-size: 21px; }
.cart-list-card { padding: 16px; }
.cart-item { min-height: 112px; padding: 14px 12px; margin: 12px 0; border-radius: 18px; background: linear-gradient(180deg,#fff,#f9fbff); display: flex; align-items: center; gap: 12px; border: 1px solid #edf3fa; }
.cart-list-card .cart-item:last-child { margin-bottom: 0; }
.cart-item img { width: 79px; height: 79px; object-fit: contain; background: #f8f5ef; border-radius: 11px; }
.stepper { margin-left: auto; border: 1px solid #e1e8f0; border-radius: 20px; display: flex; align-items: center; }
.stepper button { width: 32px; height: 34px; font-size: 19px; }
.summary { padding: 19px 17px; margin: 14px 0; }
.summary p { display: flex; justify-content: space-between; color: #73849a; }
.payment-choice { margin: 14px 0 18px; padding: 18px; border-radius: 26px; background: rgba(255,255,255,.96); border: 1px solid rgba(226,236,248,.9); box-shadow: 0 16px 38px rgba(11,45,90,.08); }
.payment-choice h2 { margin: 0; color: #10233b; font-size: 22px; }
.payment-choice p { margin: 8px 0 16px; color: #63758c; }
.payment-choice p b { color: var(--blue); font-size: 24px; }
.payment-choice > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-option { min-height: 118px; padding: 18px; border-radius: 22px; border: 2px solid #dceaf8; background: linear-gradient(180deg,#f8fcff,#eef7ff); text-align: left; box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 10px 24px rgba(12,45,88,.06); position: relative; overflow: hidden; }
.payment-option:after { content: ""; position: absolute; right: -28px; top: -34px; width: 96px; height: 96px; border-radius: 50%; background: rgba(8,114,232,.08); }
.payment-option i { display: inline-flex; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; color: #0872e8; background: #fff; font-size: 12px; font-style: normal; font-weight: 900; }
.payment-option strong { display: block; margin-bottom: 8px; color: #0d408f; font-size: 22px; }
.payment-option span { color: #62748b; line-height: 1.5; }
.payment-option.codepay { border-color: #0a8ee8; background: linear-gradient(135deg,#eaf8ff,#fff); }
.payment-option.codepay i { color: #fff; background: linear-gradient(100deg,#0872e8,#08b4ec); }
.payment { text-align: center; }
.payment h1 { margin-top: 38px; font-size: 27px; }
.payment-total { display: block; color: var(--red); font-size: 34px; margin: 20px auto; }
.qr-card { width: min(308px,86%); margin: 0 auto; padding: 17px; border-radius: 18px; background: #fff; box-shadow: 0 9px 28px rgba(17,45,79,.08); }
.qr-card img { width: 100%; aspect-ratio: 1; animation: qrIn .36s ease both; }
.waiting-pay { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; color: #0c8e69; font-size: 13px; }
.waiting-pay i { width: 9px; height: 9px; border-radius: 50%; background: #11ae73; box-shadow: 0 0 0 0 rgba(17,174,115,.45); animation: payPulse 1.4s ease-in-out infinite; }
.codepay.payment { position: relative; overflow: hidden; text-align: left; }
.codepay.payment:before { content: ""; position: absolute; inset: 70px 0 auto; height: 280px; background: radial-gradient(circle at 88% 46%, rgba(8,180,236,.2), transparent 34%), radial-gradient(circle at 16% 20%, rgba(8,114,232,.16), transparent 28%); pointer-events: none; }
.codepay-hero { margin: 20px 0 16px; padding: 22px 24px; border-radius: 28px; color: #fff; background: radial-gradient(circle at 95% 18%, rgba(255,255,255,.26), transparent 28%), linear-gradient(135deg,#092a63 0%,#0d408f 54%,#08a7e9 100%); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; text-align: left; box-shadow: 0 20px 44px rgba(7,42,96,.24); position: relative; z-index: 1; }
.codepay-hero p { margin: 0 0 8px; opacity: .8; font-weight: 800; letter-spacing: 1px; }
.codepay-hero h1 { margin: 0 0 10px; font-size: 30px; }
.codepay-hero span { color: rgba(255,255,255,.86); line-height: 1.5; }
.codepay-hero strong { color: #fff; font-size: 38px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.codepay-hero strong i { font-style: normal; opacity: .9; }
.scanner-panel { min-height: 420px; margin: 0 auto 16px; border-radius: 34px; background: #071d43; position: relative; overflow: hidden; box-shadow: 0 22px 48px rgba(5,22,55,.24); border: 1px solid rgba(255,255,255,.12); }
.scanner-panel video { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 360px; object-fit: cover; opacity: 1; background: #071d43; }
.scanner-frame { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; pointer-events: none; }
.scanner-frame i { width: min(430px,70%); aspect-ratio: 1.52; border: 4px solid rgba(255,255,255,.9); border-radius: 28px; box-shadow: inset 0 0 22px rgba(0,179,255,.32); }
.scanner-frame span { position: absolute; left: 20px; right: 20px; bottom: 24px; padding: 12px 16px; border-radius: 999px; background: rgba(0,0,0,.36); font-weight: 800; }
.camera-guide { position: absolute; z-index: 3; top: 50%; right: 0; transform: translateY(-50%); width: 45%; height: 120px; pointer-events: none; }
.camera-guide-copy { position: absolute; right: 30px; top: -52px; min-width: 154px; padding: 10px 14px; border-radius: 18px; color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); text-align: left; }
.camera-guide-copy b { display: block; font-size: 16px; }
.camera-guide-copy span { color: rgba(255,255,255,.82); font-size: 12px; }
.camera-guide i { position: absolute; top: 50%; right: 22px; width: calc(100% - 30px); height: 4px; border-radius: 999px; background: linear-gradient(90deg,rgba(255,90,96,0),#ff666a); animation: arrowPush 1.2s ease-in-out infinite; }
.camera-guide i:after { content: ""; position: absolute; right: -3px; top: 50%; transform: translateY(-50%); border-left: 22px solid #ff666a; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.camera-guide em { position: absolute; right: -1px; top: 50%; width: 18px; height: 72px; transform: translateY(-50%); border-radius: 999px 0 0 999px; background: #ff666a; box-shadow: 0 0 24px rgba(255,102,106,.7); }
.manual-code { margin: 16px 0 8px; padding: 16px; border-radius: 20px; background: #fff; text-align: left; }
.manual-code p { margin: 0 0 10px; color: #63758c; }
.manual-code div { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.manual-code input { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid #dbe6f2; font-size: 18px; }
.manual-code button { border-radius: 14px; color: #fff; background: var(--blue); font-weight: 900; }
.demo-pay { margin-top: 20px; width: min(320px,100%); padding: 15px; color: #fff; font-weight: 800; border-radius: 27px; background: #11ae73; }
.quiet { width: 100%; padding: 16px 0; color: #63758c; }
.success { text-align: center; }
.success-mark { display: grid; place-content: center; width: 88px; height: 88px; margin: 50px auto 18px; border-radius: 50%; background: #e7faf2; color: #11ae73; font-size: 51px; font-weight: 800; animation: successPop .48s cubic-bezier(.2,.82,.24,1.2) both; }
.pickup-list { width: min(420px, 100%); margin: 24px auto 0; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 12px 28px rgba(13,45,90,.08); text-align: left; }
.pickup-list h2 { margin: 0 0 12px; font-size: 18px; color: #10223a; }
.pickup-list article { min-height: 44px; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #eef3f8; font-weight: 800; }
.pickup-list article:first-of-type { border-top: 0; }
.pickup-list b { color: #0872e8; font-size: 20px; white-space: nowrap; }
.success-countdown { width: min(320px, 100%); margin: 28px auto 0; padding: 14px 18px; border-radius: 22px; color: #0d408f; background: #edf6ff; font-weight: 800; }
.success-countdown b { color: #0872e8; font-size: 24px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: calc(100vw - 30px); background: #18293f; color: #fff; padding: 12px 18px; border-radius: 23px; text-align: center; }
.busy-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(7,20,42,.42); display: grid; place-items: center; animation: fadeIn .18s ease; }
.busy-card { min-width: 190px; padding: 24px 26px; border-radius: 22px; color: #142b48; background: rgba(255,255,255,.96); display: grid; justify-items: center; gap: 9px; box-shadow: 0 20px 45px rgba(8,30,60,.22); }
.busy-card i { width: 38px; height: 38px; border-radius: 50%; border: 4px solid #d7e8fa; border-top-color: var(--blue); animation: spin .8s linear infinite; }
.busy-card strong { font-size: 17px; }
.busy-card small { color: #71849b; }
.checkout-ad { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; padding: 22px; background: rgba(6,21,45,.45); backdrop-filter: blur(4px); animation: fadeIn .18s ease; }
.checkout-ad-card { width: min(440px, calc(100vw - 32px)); padding: 20px; border-radius: 28px; background: linear-gradient(180deg,#fff,#f7fbff); box-shadow: 0 20px 48px rgba(7,24,50,.28); position: relative; animation: successPop .32s cubic-bezier(.2,.82,.24,1.08) both; }
.checkout-ad-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; color: #0d408f; background: #eaf4ff; font-size: 13px; font-weight: 900; }
.checkout-ad-body { display: grid; grid-template-columns: 118px 1fr; gap: 14px; align-items: center; margin: 16px 0 18px; }
.checkout-ad-body img { width: 118px; height: 118px; object-fit: contain; border-radius: 20px; background: #fff; border: 1px solid #e7f0fb; box-shadow: 0 8px 20px rgba(8,54,108,.08); }
.checkout-ad-card small { color: var(--blue); font-weight: 800; }
.checkout-ad-card h2 { margin: 8px 0 7px; font-size: 25px; color: #10233b; }
.checkout-ad-card p { margin: 0; color: #667992; line-height: 1.55; }
.checkout-ad-close { position: absolute; right: 14px; top: 14px; width: auto; height: 34px; padding: 0 13px; border-radius: 17px; color: #51657c; background: rgba(235,242,250,.96); font-size: 13px; font-weight: 800; }
.checkout-ad-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; align-items: center; }
.checkout-ad-actions .primary { height: 50px; min-height: 50px; box-shadow: 0 10px 20px rgba(6,111,220,.16); }
.quiet-choice { height: 50px; border-radius: 25px; color: #63758c; background: #eef3f8; font-weight: 800; }
.checkout-ad-countdown { display: block; margin-top: 12px; text-align: center; color: #8796a8 !important; font-size: 12px; }
.sheet-mask, .sheet-mask *, .checkout-ad, .checkout-ad *, .busy-overlay, .busy-overlay *, .toast { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.admin-page { width: min(100vw, 1240px); min-height: 100vh; margin: 0 auto; padding: 24px; background: #f3f6fa; }
.admin-card { background: #fff; border-radius: 14px; padding: 18px; margin-bottom: 16px; box-shadow: 0 10px 25px rgba(12,45,88,.08); }
.admin-card input, .admin-card select, .admin-card textarea { width: 100%; min-height: 42px; margin: 6px 0 10px; padding: 9px 10px; border: 1px solid #dbe4ee; border-radius: 8px; }
.admin-card input[type="checkbox"] { width: auto; min-height: auto; margin-right: 7px; }
.admin-card textarea { resize: vertical; font-family: Consolas, monospace; }
.admin-card table { width: 100%; border-collapse: collapse; }
.admin-card th, .admin-card td { border-bottom: 1px solid #edf2f7; padding: 10px; text-align: left; }
.orders-table th:nth-child(3), .orders-table td:nth-child(3) { width: 36%; }
.order-status { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 900; white-space: nowrap; }
.order-status.paid { color: #087a55; background: #e6f8f0; }
.order-status.pending { color: #9a5a00; background: #fff2d8; }
.order-status.error { color: #b42318; background: #ffe8e5; }
.order-items { display: flex; flex-wrap: wrap; gap: 7px; }
.order-items span { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; color: #24415f; background: #f1f6fd; font-size: 13px; font-weight: 700; }
.muted { color: #8a9bb0; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-tabs button, .admin-primary { padding: 11px 16px; border-radius: 9px; background: #fff; color: var(--brand); }
.admin-tabs button.active, .admin-primary { color: #fff; background: var(--blue); }
.admin-actions, .admin-row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-danger { padding: 11px 16px; border-radius: 9px; color: #fff; background: #e94b43; }
.admin-danger.small { padding: 8px 10px; font-size: 12px; }
.terminal-control-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.terminal-control-grid article { padding: 18px; border-radius: 16px; background: #f6f9fd; border: 1px solid #e7eff8; }
.terminal-control-grid small { color: #6d7f94; }
.terminal-control-grid h3 { margin: 8px 0 0; color: #10233b; }
.product-shell { padding: 0; overflow: hidden; }
.product-head { padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf2f7; background: linear-gradient(135deg,#ffffff,#f2f7ff); }
.product-head h2 { margin: 0 0 6px; }
.product-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px 22px 0; }
.product-stats article { padding: 16px; border-radius: 16px; background: #f6f9fd; border: 1px solid #e7eff8; }
.product-stats small { display: block; color: #6e8095; margin-bottom: 8px; }
.product-stats b { font-size: 24px; color: #10233b; }
.product-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 190px 170px; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #edf2f7; }
.product-toolbar label, .product-form label { color: #64778e; font-size: 13px; font-weight: 700; }
.product-list { padding: 22px; display: grid; gap: 18px; background: #f7f9fd; }
.product-editor { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid #e8eff8; box-shadow: 0 12px 28px rgba(12,45,88,.07); }
.product-editor.is-off { opacity: .72; }
.product-media { display: grid; gap: 10px; align-content: start; }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 18px; background: #f5f7fb; border: 1px solid #ebf1f8; }
.upload-chip { position: relative; display: grid; place-content: center; min-height: 42px; border-radius: 12px; color: #fff; background: linear-gradient(98deg,#187ef0,#00b4ec); font-weight: 800; cursor: pointer; text-align: center; }
.upload-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.image-url { font-size: 12px; }
.banner-carousel-editor textarea { min-height: 118px; font-family: Consolas, "Microsoft YaHei UI", sans-serif; }
.banner-upload-row { display: grid; gap: 6px; margin-bottom: 10px; }
.banner-upload-row small { color: #72849b; line-height: 1.5; }
.product-main { min-width: 0; }
.product-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.product-title-row h3 { margin: 0 0 6px; font-size: 22px; }
.product-title-row p { margin: 0; color: #71849b; }
.status-pill { padding: 7px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-pill.on { color: #087a55; background: #e6f8f0; }
.status-pill.off { color: #9a5a00; background: #fff2d8; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.product-form input, .product-form select, .sku-table input, .sku-table select, .product-toolbar input, .product-toolbar select { margin-bottom: 0; }
.sku-panel { margin-top: 16px; border: 1px solid #edf2f7; border-radius: 16px; overflow-x: auto; }
.sku-panel-head { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f9fbfe; border-bottom: 1px solid #edf2f7; }
.sku-panel-head h4 { margin: 0; }
.sku-panel-head small { color: #7688a0; }
.sku-table { min-width: 760px; }
.sku-table tr.is-off { opacity: .62; }
.stock-control { display: grid; grid-template-columns: 34px 82px 34px; align-items: center; gap: 4px; }
.stock-control button { height: 34px; border-radius: 10px; color: #0d408f; background: #edf6ff; font-size: 18px; font-weight: 800; }
.stock-control input { width: 82px !important; }
.empty-state, .empty-cell { padding: 28px; text-align: center; color: #7688a0; background: #fff; border-radius: 16px; }
.admin-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; align-items: start; }
.admin-note { color: #697b90; line-height: 1.6; }
.terminal-preview { position: sticky; top: 16px; }
.preview-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.preview-actions button { padding: 8px 12px; border-radius: 18px; color: #0d408f; background: #edf6ff; font-size: 12px; font-weight: 800; }
.preview-phone { width: 360px; max-width: 100%; height: 640px; margin: 0 auto; border-radius: 30px; overflow: hidden; background: #fff; color: #111d2b; box-shadow: 0 18px 42px rgba(5,30,70,.2), inset 0 0 0 8px rgba(255,255,255,.45); position: relative; }
.preview-screen { height: 100%; overflow: hidden; background: #f7f9fc; font-size: 12px; }
.preview-splash { height: 100%; color: #fff; text-align: center; background: #071d43; cursor: pointer; }
.preview-splash-media { height: 57%; display: grid; place-items: center; background: #eef7ff; overflow: hidden; }
.preview-splash-media img, .preview-splash-media video { width: 100%; height: 100%; object-fit: contain; }
.preview-splash-wave { height: 38px; width: 110%; margin: -24px 0 0 -5%; border-radius: 52% 52% 0 0 / 100% 100% 0 0; background: #0c438c; box-shadow: 0 -10px 0 rgba(22,133,220,.45); position: relative; z-index: 2; }
.preview-splash-copy { height: calc(43% + 24px); padding: 18px; background: radial-gradient(circle at 50% -10%, rgba(19,147,230,.44), transparent 48%), linear-gradient(150deg,#0c438c,#071d43 92%); }
.preview-splash-copy small { color: #c1eaff; letter-spacing: 3px; }
.preview-splash-copy h3 { margin: 11px 0; color: #fff; font-family: "SimSun", serif; font-size: 28px; letter-spacing: 2px; }
.preview-touch { width: 82%; min-height: 52px; margin: 18px auto 12px; border: 1px solid rgba(169,222,255,.48); border-radius: 28px; display: grid; place-content: center; background: rgba(7,38,83,.38); font-weight: 800; }
.preview-header { height: 52px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eef3f7; background: #fff; color: #687d97; }
.preview-logo { width: 84px; height: 28px; object-fit: contain; object-position: left center; }
.preview-intro { padding: 16px 14px 12px; background: #fff; }
.preview-intro h3 { margin: 0; font-size: 22px; }
.preview-banner { height: 78px; margin-top: 12px; padding: 14px; border-radius: 13px; color: #fff; background: linear-gradient(112deg,#0c3a87,#087be5); display: flex; justify-content: space-between; overflow: hidden; position: relative; }
.preview-banner > div:first-child { position: relative; z-index: 2; }
.preview-banner-slides { position: absolute; right: 0; top: 0; bottom: 0; width: 58%; overflow: hidden; }
.preview-banner-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center right; opacity: 0; transition: opacity .24s ease; }
.preview-banner-slides img.active { opacity: 1; }
.preview-banner-count { position: absolute; left: 14px; bottom: 9px; z-index: 2; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 10px; font-weight: 800; }
.preview-catalog { display: grid; grid-template-columns: 70px 1fr; height: calc(100% - 208px); padding-top: 8px; }
.preview-cats { background: #edf2f8; }
.preview-cats button { width: 100%; min-height: 45px; color: #62748b; }
.preview-cats button.active { background: #fff; color: var(--brand); font-weight: 800; }
.preview-products { padding: 12px 9px; background: #fff; overflow: hidden; }
.preview-products h4 { margin: 0 0 8px; font-size: 15px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.preview-card { min-width: 0; padding: 6px; border: 1px solid #eef3f7; border-radius: 11px; background: #fff; text-align: left; }
.preview-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f7f6f2; border-radius: 8px; }
.preview-card b, .preview-cart-item b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.preview-card strong, .preview-total { color: var(--red); }
.preview-cartbar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 58px; padding: 8px 8px 8px 14px; border-radius: 32px; background: #101b2c; color: #fff; display: flex; align-items: center; gap: 10px; }
.preview-cartbar button { margin-left: auto; padding: 10px 14px; border-radius: 22px; color: #fff; background: linear-gradient(98deg,#187ef0,#00b4ec); font-weight: 800; }
.preview-primary { padding: 10px 14px; border-radius: 22px; color: #fff; background: linear-gradient(98deg,#187ef0,#00b4ec); font-weight: 800; }
.preview-sheet .preview-primary, .preview-checkout > .preview-primary, .preview-payment .preview-primary { width: 100%; display: flex; align-items: center; justify-content: center; min-height: 42px; }
.preview-sheet-mask, .preview-ad-mask { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(2,18,40,.43); z-index: 3; }
.preview-sheet { width: 100%; padding: 16px; border-radius: 22px 22px 0 0; background: #fff; }
.preview-chosen { display: flex; gap: 12px; margin-bottom: 12px; }
.preview-chosen img { width: 76px; height: 76px; object-fit: contain; background: #faf7f1; border-radius: 11px; }
.preview-skus { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 14px; }
.preview-skus button { padding: 8px 10px; border-radius: 8px; border: 1px solid #dae4f1; }
.preview-skus button.active { color: #0765d3; border-color: #1173e5; background: #edf6ff; }
.preview-checkout { padding: 14px; }
.preview-checkout h3, .preview-payment h3, .preview-success h3 { font-size: 22px; margin: 12px 0; }
.preview-checkout-hero { margin: 12px 0; padding: 14px; border-radius: 18px; color: #fff; background: linear-gradient(135deg,#0b3d8d,#08a7e9); display: flex; align-items: end; justify-content: space-between; text-align: left; box-shadow: 0 10px 22px rgba(8,77,155,.18); }
.preview-checkout-hero small { opacity: .82; font-weight: 800; }
.preview-checkout-hero h3 { margin: 4px 0; color: #fff; }
.preview-checkout-hero p { margin: 0; color: rgba(255,255,255,.82); font-size: 12px; }
.preview-checkout-hero strong { font-size: 20px; white-space: nowrap; }
.preview-cart-item { min-height: 82px; padding: 10px; margin: 8px 0; border-radius: 14px; background: #fff; display: flex; gap: 10px; align-items: center; }
.preview-cart-item img { width: 58px; height: 58px; object-fit: contain; background: #f8f5ef; border-radius: 10px; }
.preview-summary { margin: 12px 0 16px; padding: 12px; border-radius: 14px; background: #fff; }
.preview-summary p { display: flex; justify-content: space-between; margin: 8px 0; color: #73849a; }
.preview-pay-choice { padding: 12px; margin: 12px 0; border-radius: 16px; background: #fff; text-align: left; }
.preview-pay-choice > b { display: block; color: #10233b; }
.preview-pay-choice small { color: #6f8095; }
.preview-pay-choice div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.preview-pay-choice button { min-height: 54px; border-radius: 16px; color: #0d408f; background: linear-gradient(180deg,#f8fcff,#edf6ff); font-weight: 900; display: grid; place-content: center; gap: 3px; }
.preview-pay-choice button i { justify-self: center; padding: 2px 8px; border-radius: 999px; color: #fff; background: #0872e8; font-size: 10px; font-style: normal; }
.preview-payment, .preview-success { height: 100%; padding: 14px; text-align: center; background: #f7f9fd; }
.preview-qr { width: 200px; height: 200px; margin: 16px auto; border-radius: 18px; background: repeating-linear-gradient(45deg,#111 0 4px,#fff 4px 8px); box-shadow: inset 0 0 0 18px #fff; }
.preview-codepay { height: 100%; padding: 14px; text-align: left; background: radial-gradient(circle at 50% 0,#f5fbff,#f7f9fd 48%,#eef4fb); }
.preview-codepay-hero { height: 76px; margin: 14px 0 12px; padding: 12px 15px; border-radius: 18px; color: #fff; background: linear-gradient(135deg,#092a63,#0d408f 58%,#08a7e9); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; text-align: left; box-shadow: 0 12px 24px rgba(7,42,96,.2); }
.preview-codepay-hero small { opacity: .78; }
.preview-codepay-hero b { display: block; margin: 2px 0; font-size: 17px; }
.preview-codepay-hero span { color: rgba(255,255,255,.82); font-size: 11px; }
.preview-codepay-hero strong { font-size: 21px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.preview-codepay-hero strong i { font-style: normal; opacity: .9; }
.preview-scanner { height: 270px; border-radius: 22px; background: linear-gradient(160deg,#071d43,#102c5a); color: #fff; display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: 0 12px 26px rgba(5,22,55,.2); }
.preview-scanner > i { width: 64%; aspect-ratio: 1.52; border: 3px solid rgba(255,255,255,.92); border-radius: 18px; box-shadow: 0 0 0 999px rgba(255,255,255,.06); }
.preview-scanner small { position: absolute; bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.35); }
.preview-camera-guide { position: absolute; top: 50%; right: 0; width: 46%; height: 90px; transform: translateY(-50%); z-index: 2; }
.preview-camera-guide b, .preview-camera-guide span { position: absolute; right: 16px; top: -38px; color: #fff; }
.preview-camera-guide span { top: -18px; color: rgba(255,255,255,.75); font-size: 10px; }
.preview-camera-guide i { position: absolute; right: 10px; top: 50%; width: calc(100% - 16px); height: 3px; background: linear-gradient(90deg,rgba(255,90,96,0),#ff666a); }
.preview-camera-guide i:after { content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); border-left: 16px solid #ff666a; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.preview-success-mark { display: grid; place-content: center; width: 72px; height: 72px; margin: 42px auto 14px; border-radius: 50%; color: #11ae73; background: #e7faf2; font-size: 44px; font-weight: 800; }
.preview-pickup-list { margin: 14px auto 0; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(12,45,88,.08); text-align: left; }
.preview-pickup-list > b { display: block; margin-bottom: 8px; color: #10223a; }
.preview-pickup-list span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #edf2f7; font-size: 12px; font-weight: 800; }
.preview-pickup-list span:first-of-type { border-top: 0; }
.preview-pickup-list strong { color: #0872e8; white-space: nowrap; }
.preview-ad-mask { align-items: center; }
.preview-ad-card { width: 88%; padding: 15px; border-radius: 22px; background: linear-gradient(180deg,#fff,#f7fbff); text-align: left; position: relative; box-shadow: 0 16px 34px rgba(7,24,50,.24); }
.preview-ad-card > span { display: inline-flex; height: 24px; padding: 0 10px; align-items: center; border-radius: 999px; color: #0d408f; background: #eaf4ff; font-weight: 900; }
.preview-ad-close { position: absolute; right: 12px; top: 12px; height: 28px; padding: 0 10px; border-radius: 15px; color: #51657c; background: #eef3f8; font-size: 12px; font-weight: 800; }
.preview-ad-body { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: center; margin: 12px 0; }
.preview-ad-body img { width: 82px; height: 82px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid #e7f0fb; }
.preview-ad-body h3 { margin: 0 0 5px; font-size: 19px; }
.preview-ad-body p { margin: 0; color: #667992; line-height: 1.4; }
.preview-ad-actions { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; }
.preview-ad-actions button { min-height: 40px; border-radius: 20px; background: #eef3f8; color: #63758c; font-weight: 800; }
.preview-ad-actions .preview-primary { color: #fff; background: linear-gradient(98deg,#187ef0,#00b4ec); }
.preview-ad-card > small, .preview-success-countdown { display: block; margin-top: 9px; color: #7a8da3; text-align: center; font-weight: 800; }
.mini { width: 82px !important; }
@media (min-width: 760px) {
  .catalog { grid-template-columns: 118px 1fr; }
  .products { padding: 20px; }
  .card h3 { font-size: 16px; }
}
@media (max-width: 820px) { .admin-layout { grid-template-columns: 1fr; } .terminal-preview { position: static; } }
@media (max-width: 900px) {
  .product-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-toolbar { grid-template-columns: 1fr; }
  .product-editor { grid-template-columns: 1fr; }
  .product-media { grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .admin-page { padding: 12px; }
  .admin-card table { font-size: 12px; }
  .product-head { align-items: stretch; flex-direction: column; }
  .product-stats { grid-template-columns: 1fr; }
  .product-media { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

.terminal.kiosk-portrait .shop { height: 100svh; min-height: 100svh; padding-bottom: 0; background: #eef4fb; overflow: hidden; }
.terminal.kiosk-portrait .header { height: 78px; padding: 18px 24px; font-size: 17px; background: rgba(255,255,255,.96); }
.terminal.kiosk-portrait .brand-logo { width: 128px; max-height: 45px; }
.terminal.kiosk-portrait .intro { padding: 28px 24px 22px; background: linear-gradient(180deg,#fff,#f8fbff); }
.terminal.kiosk-portrait .intro h1 { font-size: 34px; line-height: 1.12; }
.terminal.kiosk-portrait .intro p { margin: 10px 0 22px; font-size: 17px; line-height: 1.45; }
.terminal.kiosk-portrait .banner { height: 128px; padding: 20px 22px; border-radius: 24px; align-items: center; box-shadow: 0 14px 32px rgba(11,76,160,.16); }
.terminal.kiosk-portrait .banner strong { max-width: 58%; font-size: 25px; line-height: 1.2; }
.terminal.kiosk-portrait .banner small { font-size: 14px; }
.terminal.kiosk-portrait .banner-slides { width: 48%; }
.terminal.kiosk-portrait .banner-slide { object-fit: contain; object-position: center right; transform: translateX(10px) scale(.985); }
.terminal.kiosk-portrait .banner-slide.active { transform: translateX(0) scale(1); }
.terminal.kiosk-portrait .banner-dots { left: 22px; bottom: 14px; gap: 7px; }
.terminal.kiosk-portrait .banner-dots i { width: 8px; height: 8px; }
.terminal.kiosk-portrait .banner-dots i.active { width: 24px; }
.terminal.kiosk-portrait .catalog { grid-template-columns: 112px minmax(0,1fr); height: auto; flex: 1; min-height: 0; padding: 0 18px; gap: 0; }
.terminal.kiosk-portrait .categories { border-radius: 24px 0 0 24px; overflow-y: auto; box-shadow: inset -1px 0 0 #dce6f2; }
.terminal.kiosk-portrait .categories button { min-height: 78px; padding: 0 12px; font-size: 16px; }
.terminal.kiosk-portrait .categories button.active:before { top: 24px; height: 30px; width: 5px; }
.terminal.kiosk-portrait .products { padding: 22px; border-radius: 0 24px 24px 0; overflow-y: auto; }
.terminal.kiosk-portrait .products h2 { font-size: 25px; }
.terminal.kiosk-portrait .products > p { margin: 7px 0 17px; font-size: 14px; }
.terminal.kiosk-portrait .grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.terminal.kiosk-portrait .shop.has-cart .grid { padding-bottom: 112px; }
.terminal.kiosk-portrait .card { min-height: 148px; padding: 16px; border-radius: 22px; display: grid; grid-template-columns: 122px minmax(0,1fr); grid-template-rows: auto auto 1fr; column-gap: 16px; align-items: center; box-shadow: 0 10px 24px rgba(11,35,70,.06); }
.terminal.kiosk-portrait .card img { grid-row: 1 / 4; width: 122px; height: 122px; aspect-ratio: auto; object-fit: contain; border-radius: 18px; background: #f6f8fb; }
.terminal.kiosk-portrait .card h3 { margin: 0 0 7px; font-size: 21px; white-space: normal; line-height: 1.25; }
.terminal.kiosk-portrait .card p { min-height: 36px; margin: 0; font-size: 14px; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.terminal.kiosk-portrait .price { align-self: end; margin-top: 12px; gap: 5px; }
.terminal.kiosk-portrait .price strong { font-size: 24px; }
.terminal.kiosk-portrait .price span { font-size: 13px; }
.terminal.kiosk-portrait .price button { width: 42px; height: 42px; font-size: 30px; line-height: 38px; }
.terminal.kiosk-portrait .cart-bar { bottom: 22px; width: min(620px, calc(100vw - 36px)); height: 82px; padding: 8px 9px 8px 22px; border-radius: 43px; font-size: 18px; }
.terminal.kiosk-portrait .cart-bar b { font-size: 24px; }
.terminal.kiosk-portrait .cart-bar button { height: 64px; min-width: 142px; font-size: 18px; }
.terminal.kiosk-portrait .sheet { width: min(620px, calc(100vw - 24px)); }
.terminal.kiosk-portrait .codepay.payment { height: 100svh; min-height: 100svh; padding: 0 30px 18px; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 50% 0,#f5fbff 0,#f7f9fd 46%,#eef4fb 100%); }
.terminal.kiosk-portrait .codepay.payment .header { flex: 0 0 66px; height: 66px; margin: 0 -30px; padding: 14px 26px; font-size: 16px; }
.terminal.kiosk-portrait .codepay.payment .brand-logo { width: 110px; max-height: 38px; }
.terminal.kiosk-portrait .codepay.payment:before { inset: 66px 0 auto; height: 170px; }
.terminal.kiosk-portrait .codepay-hero { flex: 0 0 124px; height: 124px; min-height: 0; margin: 16px 0 12px; padding: 17px 22px; border-radius: 26px; align-items: center; }
.terminal.kiosk-portrait .codepay-hero p { margin-bottom: 6px; font-size: 14px; letter-spacing: 1px; }
.terminal.kiosk-portrait .codepay-hero h1 { margin-bottom: 7px; font-size: 29px; line-height: 1.08; }
.terminal.kiosk-portrait .codepay-hero span { font-size: 13px; line-height: 1.35; }
.terminal.kiosk-portrait .codepay-hero strong { font-size: 34px; gap: 7px; }
.terminal.kiosk-portrait .scanner-panel { flex: 1 1 auto; height: auto; min-height: 0; margin: 0 0 10px; border-radius: 28px; }
.terminal.kiosk-portrait .scanner-panel video { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; opacity: 1; }
.terminal.kiosk-portrait .scanner-frame i { width: min(420px, 72%); border-width: 3px; border-radius: 22px; box-shadow: inset 0 0 18px rgba(0,179,255,.32); }
.terminal.kiosk-portrait .scanner-frame span { left: 18px; right: 18px; bottom: 16px; padding: 9px 12px; font-size: 14px; line-height: 1.35; }
.terminal.kiosk-portrait .camera-guide { width: 43%; height: 92px; }
.terminal.kiosk-portrait .camera-guide-copy { right: 18px; top: -46px; min-width: 118px; padding: 8px 10px; border-radius: 14px; }
.terminal.kiosk-portrait .camera-guide-copy b { font-size: 15px; }
.terminal.kiosk-portrait .camera-guide-copy span { font-size: 11px; }
.terminal.kiosk-portrait .camera-guide i { right: 18px; height: 3px; }
.terminal.kiosk-portrait .camera-guide i:after { border-left-width: 18px; border-top-width: 12px; border-bottom-width: 12px; }
.terminal.kiosk-portrait .camera-guide em { width: 16px; height: 64px; }
.terminal.kiosk-portrait .manual-code { flex: 0 0 auto; margin: 0; padding: 10px 12px; border-radius: 16px; }
.terminal.kiosk-portrait .manual-code p { margin-bottom: 8px; font-size: 12px; }
.terminal.kiosk-portrait .manual-code div { grid-template-columns: 1fr 92px; gap: 8px; }
.terminal.kiosk-portrait .manual-code input, .terminal.kiosk-portrait .manual-code button { min-height: 40px; border-radius: 12px; font-size: 14px; }
.terminal.kiosk-portrait .codepay.payment > .quiet { display: none; }

@media (min-width: 700px) and (orientation: portrait) {
  html, body, .terminal, .terminal .page { width: 100vw; height: 100vh; min-height: 100vh; overflow: hidden; }
  .header { height: 112px; padding: 30px 58px; font-size: 22px; }
  .brand-logo { width: 192px; max-height: 64px; }

  .splash-media { height: 60vh; }
  .splash-copy { min-height: calc(40vh - 20px); padding: 48px 64px 56px; }
  .splash-copy p { font-size: 18px; letter-spacing: 7px; margin-bottom: 20px; }
  .splash-copy h1 { font-size: clamp(58px, 7.6vw, 82px); line-height: 1.12; margin-bottom: 22px; }
  .splash-copy span { font-size: 22px; }
  .touch-prompt { width: min(720px, 92%); min-height: 106px; margin: 44px auto 28px; border-radius: 56px; }
  .touch-prompt strong { font-size: 30px; }
  .touch-prompt small, .splash-copy footer { font-size: 18px; }

  .shop { padding-bottom: 0; background: #eef4fb; }
  .intro { padding: 38px 54px 30px; }
  .intro h1 { font-size: 48px; }
  .intro p { font-size: 22px; margin: 12px 0 26px; }
  .banner { height: 184px; padding: 30px 34px; border-radius: 30px; align-items: center; }
  .banner small { font-size: 18px; }
  .banner strong { max-width: 470px; font-size: 34px; }
  .banner-slides { width: 58%; }
  .banner-slide { object-fit: contain; object-position: center right; }
  .banner-dots { left: 34px; bottom: 22px; gap: 8px; }
  .banner-dots i { width: 9px; height: 9px; }
  .banner-dots i.active { width: 28px; }
  .catalog { grid-template-columns: 190px minmax(0, 1fr); height: auto; flex: 1; min-height: 0; padding: 0 54px; overflow: hidden; }
  .categories { border-radius: 30px 0 0 30px; overflow-y: auto; }
  .categories button { min-height: 98px; padding: 0 20px; font-size: 23px; }
  .categories button.active:before { top: 28px; height: 42px; width: 7px; }
  .products { border-radius: 0 30px 30px 0; padding: 34px; overflow-y: auto; }
  .shop.has-cart .grid { padding-bottom: 132px; }
  .products h2 { font-size: 34px; }
  .products > p { font-size: 18px; margin-bottom: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .card { min-height: 432px; padding: 18px; border-radius: 26px; }
  .card img { height: 260px; aspect-ratio: auto; border-radius: 20px; }
  .card h3 { margin-top: 16px; font-size: 25px; }
  .card p { font-size: 17px; }
  .price { margin-top: 16px; }
  .price strong { font-size: 31px; }
  .price span { font-size: 17px; }
  .price button { width: 52px; height: 52px; font-size: 38px; line-height: 47px; }
  .cart-bar { bottom: 34px; width: min(900px, calc(100vw - 108px)); height: 104px; padding: 10px 12px 10px 32px; border-radius: 54px; font-size: 24px; }
  .cart-bar b { font-size: 34px; }
  .cart-bar button { height: 82px; min-width: 204px; font-size: 23px; border-radius: 44px; }

  .sheet { width: min(940px, calc(100vw - 76px)); padding: 36px 42px 44px; border-radius: 38px 38px 0 0; }
  .chosen { gap: 24px; margin-bottom: 28px; }
  .chosen img { width: 160px; height: 160px; border-radius: 24px; }
  .chosen h2 { font-size: 34px; }
  .chosen p { font-size: 19px; }
  .chosen strong, .subtotal strong { font-size: 34px; }
  .sku-options { gap: 14px; margin: 18px 0 30px; }
  .sku-options button { min-height: 58px; padding: 0 24px; font-size: 20px; border-radius: 15px; }
  .qty, .subtotal { height: 76px; }
  .qty button { width: 56px; height: 48px; font-size: 30px; }
  .primary { height: 76px; border-radius: 40px; font-size: 25px; }

  .checkout, .payment, .success { padding: 0 58px 48px; }
  .checkout { max-width: 940px; margin: 0 auto; }
  .checkout h1, .payment h1, .success h1 { font-size: 46px; }
  .checkout-hero-card { margin-top: 34px; padding: 38px; border-radius: 42px; }
  .checkout-hero-card h1 { font-size: 52px; }
  .checkout-hero-card p, .checkout-hero-card small { font-size: 22px; }
  .checkout-hero-card strong { font-size: 56px; }
  .checkout-card { border-radius: 34px; }
  .checkout-card-title b { font-size: 28px; }
  .checkout-card-title span { font-size: 20px; }
  .payment-choice { padding: 30px; border-radius: 34px; }
  .payment-choice h2 { font-size: 34px; }
  .payment-choice p { font-size: 20px; }
  .payment-option { min-height: 170px; padding: 28px; border-radius: 32px; }
  .payment-option strong { font-size: 34px; }
  .payment-option span { font-size: 20px; }
  .cart-item { min-height: 158px; padding: 22px; border-radius: 28px; }
  .cart-item img { width: 118px; height: 118px; border-radius: 22px; }
  .cart-item b { font-size: 23px; }
  .cart-item p { font-size: 18px; }
  .stepper button { width: 48px; height: 46px; font-size: 26px; }
  .summary { border-radius: 28px; padding: 28px; font-size: 22px; }
  .payment h1 { margin-top: 72px; }
  .payment-total { font-size: 56px; }
  .codepay.payment { padding: 0 74px 38px; max-width: none; margin: 0; background: radial-gradient(circle at 50% 0,#f5fbff 0,#f7f9fd 45%,#eef4fb 100%); }
  .codepay.payment .header { margin: 0 -74px; }
  .codepay.payment:before { inset: 112px 0 auto; height: 470px; }
  .codepay-hero { height: 280px; min-height: 0; margin: 28px 0 22px; padding: 34px 44px; border-radius: 42px; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  .codepay-hero h1 { font-size: 43px; line-height: 1.12; }
  .codepay-hero p { font-size: 20px; margin-bottom: 12px; }
  .codepay-hero span { font-size: 19px; }
  .codepay-hero strong { font-size: 56px; gap: 12px; }
  .scanner-panel { height: 930px; min-height: 0; margin-bottom: 18px; border-radius: 44px; }
  .scanner-panel video { height: 100%; min-height: 0; }
  .scanner-frame i { width: min(600px,68%); border-radius: 34px; }
  .scanner-frame span { bottom: 34px; font-size: 22px; }
  .camera-guide { height: 160px; }
  .camera-guide-copy { right: 42px; top: -76px; padding: 16px 20px; border-radius: 24px; }
  .camera-guide-copy b { font-size: 24px; }
  .camera-guide-copy span { font-size: 17px; }
  .camera-guide i { height: 6px; right: 34px; }
  .camera-guide i:after { border-left-width: 34px; border-top-width: 22px; border-bottom-width: 22px; }
  .camera-guide em { width: 26px; height: 112px; }
  .manual-code { margin-top: 12px; padding: 22px 26px; border-radius: 28px; }
  .manual-code p { font-size: 19px; }
  .manual-code div { grid-template-columns: 1fr 190px; }
  .manual-code input, .manual-code button { min-height: 68px; font-size: 22px; border-radius: 22px; }
  .qr-card { width: 520px; padding: 28px; border-radius: 34px; }
  .waiting-pay { font-size: 18px; }
  .demo-pay { width: 420px; font-size: 23px; }
  .success-mark { width: 138px; height: 138px; margin-top: 180px; font-size: 78px; }
  .pickup-list { width: min(720px, 100%); margin-top: 34px; padding: 28px 34px; border-radius: 30px; }
  .pickup-list h2 { font-size: 28px; }
  .pickup-list article { min-height: 68px; font-size: 24px; }
  .pickup-list b { font-size: 30px; }
  .success-countdown { width: 480px; padding: 22px 28px; font-size: 24px; }
  .checkout-ad-card { width: min(680px, calc(100vw - 96px)); padding: 30px; border-radius: 34px; }
  .checkout-ad-body { grid-template-columns: 172px 1fr; gap: 24px; }
  .checkout-ad-body img { width: 172px; height: 172px; }
  .checkout-ad-card h2 { font-size: 34px; }
  .checkout-ad-card p { font-size: 20px; }
  .checkout-ad-actions .primary, .quiet-choice { height: 64px; }
}

@keyframes shimmer { 0%, 35% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
@keyframes promptPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cartBarIn { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes qrIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes payPulse { 0% { box-shadow: 0 0 0 0 rgba(17,174,115,.45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(17,174,115,0); } }
@keyframes arrowPush { 0%,100% { transform: translateX(0); } 50% { transform: translateX(12px); } }
@keyframes successPop { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
