:root{--bg:#f5f5f7;--card:#fff;--ink:#1d1d1f;--ink-2:#6e6e73;--ink-3:#86868b;--line:#e5e5ea;--blue:#0071e3;--green:#0a7d33;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Helvetica Neue",Helvetica,Arial,sans-serif;--top:env(safe-area-inset-top,0px);--bot:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--font);background:var(--bg);color:var(--ink);font-size:16px;line-height:1.45;letter-spacing:-.016em;-webkit-font-smoothing:antialiased;min-height:100vh;overscroll-behavior-y:none}
a{color:var(--blue);text-decoration:none}
button,input{font:inherit;color:inherit;letter-spacing:inherit}
button{cursor:pointer;background:none;border:0}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:8px}
img{display:block;max-width:100%}

.ap-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:calc(var(--top) + 10px) 18px 10px;background:rgba(0,0,0,.86);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);color:#f5f5f7}
.ap-brand{display:flex;align-items:center;gap:8px;font-weight:600;font-size:16px}
.ap-brand svg{width:24px;height:24px;fill:none}
.ap-lang{display:flex;background:rgba(255,255,255,.14);border-radius:999px;padding:3px}
.ap-lang button{min-width:44px;min-height:34px;border-radius:999px;font-size:13px;font-weight:600;color:#d2d2d7}
.ap-lang button[aria-pressed=true]{background:#f5f5f7;color:#1d1d1f}

.ap-main{max-width:640px;margin:0 auto;padding:18px 16px calc(var(--bot) + 96px)}
.ap-h{font-size:30px;font-weight:700;letter-spacing:-.03em;margin:4px 0 16px}
.ap-h2{font-size:15px;font-weight:600;color:var(--ink-2);margin:22px 4px 8px;text-transform:none}
.ap-muted{color:var(--ink-2)}
.ap-s{font-size:14px}
.ap-center{text-align:center}
.ap-card{background:var(--card);border-radius:18px;padding:16px;margin-bottom:12px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.ap-note{background:#fff4e5;color:#8a4b00;border-radius:12px;padding:10px 14px;font-size:14px;margin-bottom:12px}
.ap-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:0 22px;border-radius:999px;background:var(--blue);color:#fff;font-weight:600;font-size:16px}
.ap-btn:active{transform:scale(.98)}
.ap-btn[disabled]{opacity:.5}
.ap-btn.ap-sm{min-height:38px;padding:0 16px;font-size:14px}
.ap-btn.ap-ghost{background:transparent;color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.ap-link{color:var(--blue);font-size:15px;font-weight:500}

/* sign in */
.ap-sign{padding:28px 6px 0;text-align:center}
.ap-mark img{width:72px;height:72px;border-radius:18px;margin:0 auto 18px;box-shadow:0 6px 20px rgba(0,0,0,.15)}
.ap-sign h1{font-size:28px;font-weight:700;letter-spacing:-.03em}
.ap-sign>p{margin:6px 0 22px}
.ap-form{background:#fff;border-radius:20px;padding:18px;text-align:left;display:grid;gap:14px;margin-bottom:18px}
.ap-form label{display:grid;gap:6px;font-size:14px;font-weight:600;color:var(--ink-2)}
.ap-form input{height:50px;border:1px solid #d2d2d7;border-radius:12px;padding:0 14px;font-size:17px;font-weight:400;color:var(--ink);background:#fff}
.ap-form input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(0,113,227,.15)}
.ap-form .ap-btn{width:100%}
.ap-err{color:#d70015;font-size:14px;min-height:0}
.ap-err:empty{display:none}

/* home */
.ap-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 16px}
.ap-hero p{font-size:24px;font-weight:700;color:var(--ink);letter-spacing:-.03em}
.ap-points{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:92px;padding:10px 14px;border-radius:16px;background:linear-gradient(135deg,#2997ff,#a78bfa);color:#fff}
.ap-points b{font-size:22px;line-height:1.1}
.ap-points span{font-size:12px;opacity:.9}
.ap-sec-h{display:flex;align-items:baseline;justify-content:space-between;margin:18px 4px 10px}
.ap-sec-h h2{font-size:20px;font-weight:700;letter-spacing:-.02em}
.ap-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 12px;scrollbar-width:none}
.ap-chips::-webkit-scrollbar{display:none}
.ap-chips.wrap{flex-wrap:wrap;overflow:visible;padding-bottom:0}
.ap-chips button{flex:none;min-height:36px;padding:0 14px;border-radius:999px;background:#fff;border:1px solid #d2d2d7;font-size:14px}
.ap-chips button[aria-pressed=true]{background:#1d1d1f;border-color:#1d1d1f;color:#fff}
.ap-deal{display:grid;grid-template-columns:104px 1fr;gap:14px;align-items:start}
.ap-deal img{width:104px;height:104px;object-fit:contain;background:#f5f5f7;border-radius:14px}
.ap-deal h3{font-size:17px;font-weight:600;line-height:1.25;margin-bottom:2px}
.ap-tag{font-size:12px;font-weight:600;color:#b64400;margin-bottom:2px}
.ap-deal s{color:var(--ink-3)}
.ap-price{margin:6px 0 10px}
.ap-price b{font-size:20px}

/* orders */
.ap-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ap-item{margin:6px 0 12px;font-size:15px;overflow-wrap:anywhere}
.ap-pill{display:inline-block;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;background:#e8e8ed;white-space:nowrap}
.s-received{background:#eef4ff;color:#0058b0}.s-purchased{background:#f3eaff;color:#6b2fb3}.s-packed{background:#fff4e5;color:#8a4b00}
.s-shipped{background:#e6f6ff;color:#005f8f}.s-delivered{background:#e8f7ee;color:var(--green)}.s-cancelled{background:#fdecee;color:#b00020}
.ap-bar{height:6px;border-radius:6px;background:#e8e8ed;overflow:hidden}
.ap-bar i{display:block;height:100%;background:linear-gradient(90deg,#2997ff,#a78bfa);border-radius:6px}
.ap-steps{display:grid;grid-template-columns:repeat(5,1fr);list-style:none;margin-top:6px;font-size:11px;color:var(--ink-3);text-align:center}
.ap-steps li:first-child{text-align:left}.ap-steps li:last-child{text-align:right}
.ap-steps li.on{color:var(--ink);font-weight:600}
.ap-meta{display:grid;gap:4px;font-size:14px;color:var(--ink-2);margin:12px 0 0}
.ap-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ap-empty{text-align:center;padding:30px 16px}
.ap-empty p{margin-bottom:14px;color:var(--ink-2)}

/* quote */
.ap-q{display:grid;grid-template-columns:44px 1fr 16px;gap:14px;align-items:center;color:var(--ink)}
.ap-q b{display:block;font-size:16px}
.ap-ico{width:44px;height:44px;border-radius:12px;background:#eef4ff;display:grid;place-items:center}
.ap-ico svg{width:24px;height:24px;fill:none;stroke:var(--blue);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ap-chev{color:var(--ink-3);font-size:22px}

/* points */
.ap-big{text-align:center;padding:24px 16px}
.ap-big>b{display:block;font-size:52px;line-height:1;letter-spacing:-.04em;background:linear-gradient(135deg,#2997ff,#a78bfa);-webkit-background-clip:text;background-clip:text;color:transparent}
.ap-big>span{display:block;color:var(--ink-2);margin:4px 0 10px}
.ap-big p{margin-bottom:10px}
.ap-ul{list-style:none}
.ap-ul li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.ap-ul li:last-child{border-bottom:0}
.ap-ul small{display:block;font-size:12px}
.ap-ul .pos{color:var(--green)}.ap-ul .neg{color:#b00020}

/* profile */
.ap-sw{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;border-bottom:1px solid var(--line);cursor:pointer}
.ap-sw:last-of-type{border-bottom:0}
.ap-sw input{position:absolute;opacity:0;pointer-events:none}
.ap-sw i{flex:none;width:51px;height:31px;border-radius:999px;background:#e5e5ea;position:relative;transition:background .2s}
.ap-sw i::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2);transition:transform .2s}
.ap-sw input:checked+i{background:#34c759}
.ap-sw input:checked+i::after{transform:translateX(20px)}
.ap-sw input:focus-visible+i{outline:2px solid var(--blue);outline-offset:2px}
.ap-chk{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 14px;border:1px solid #d2d2d7;border-radius:999px;font-size:14px;cursor:pointer}
.ap-chk input{width:18px;height:18px;accent-color:var(--blue)}
.ap-chk:has(input:checked){border-color:var(--blue);background:#eef4ff}

/* tab bar */
.ap-tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);padding:6px 6px calc(var(--bot) + 6px);background:rgba(250,250,252,.9);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-top:1px solid rgba(0,0,0,.08)}
.ap-tabs[hidden]{display:none}
.ap-tabs button{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:50px;justify-content:center;font-size:11px;font-weight:500;color:var(--ink-3)}
.ap-tabs svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ap-tabs button[aria-current=page]{color:var(--blue)}
.ap-tabs button[aria-current=page] svg{stroke-width:2}
.ap-toast{position:fixed;left:50%;bottom:calc(var(--bot) + 84px);transform:translate(-50%,20px);background:#1d1d1f;color:#fff;padding:10px 18px;border-radius:999px;font-size:14px;opacity:0;pointer-events:none;transition:all .25s;z-index:40;max-width:90vw;text-align:center}
.ap-toast.on{opacity:1;transform:translate(-50%,0)}
@media (min-width:700px){.ap-main{padding-top:28px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
.ap-danger{color:#d70015;font-size:15px;min-height:44px}
