:root {
  --ink: #161513;
  --subtle: #716d66;
  --line: #ebe7df;
  --paper: #fff;
  --canvas: #f7f5f1;
  --yellow: #ffd43b;
  --yellow-deep: #f6bd16;
  --red: #ed4f3c;
  --green: #159464;
  --shadow: 0 18px 50px rgba(35, 29, 20, .12);
  color: var(--ink);
  background: #e9e7e2;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { background: radial-gradient(circle at 50% -10%, #fff4be 0, #eeece7 38rem); }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
img { display: block; }
.app-frame { width: min(100%, 520px); min-height: 100vh; margin: auto; overflow: hidden; background: var(--canvas); box-shadow: 0 0 70px rgba(20, 15, 8, .13); }
.site-footer { width: min(100%, 520px); margin: auto; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); background: #1d1c1a; color: #aaa49c; font-size: 10px; line-height: 1.7; text-align: center; }
.site-footer p { margin: 0; }
.site-footer a { color: #d8d2c8; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.page { min-height: 100vh; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.brand-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px 15px 15px 4px; background: var(--yellow); font-family: "Arial Black", sans-serif; font-size: 24px; font-weight: 900; }

.splash { display: grid; min-height: 100vh; place-content: center; justify-items: center; background: #161513; color: white; }
.splash .brand-mark { color: #161513; }
.splash h1 { margin: 14px 0 4px; font-size: 25px; }
.splash p { margin: 0; color: #aaa49c; font-size: 12px; }
.splash i { width: 24px; height: 3px; margin-top: 34px; overflow: hidden; border-radius: 3px; background: #494641; }
.splash i::after { display: block; width: 50%; height: 100%; background: var(--yellow); animation: loading 1s infinite alternate; content: ""; }
@keyframes loading { to { transform: translateX(100%); } }

.auth-page { min-height: 100vh; background: var(--paper); }
.auth-visual { display: flex; min-height: 42vh; flex-direction: column; justify-content: space-between; padding: calc(24px + env(safe-area-inset-top)) 24px 32px; background: linear-gradient(135deg, rgba(0,0,0,.1), rgba(0,0,0,.55)), url("/images/fried-chicken.jpg") center/cover; color: white; }
.auth-brand { display: flex; gap: 10px; align-items: center; font-size: 18px; }
.auth-brand .brand-mark { width: 36px; height: 36px; color: var(--ink); font-size: 18px; }
.auth-visual small { color: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.auth-visual h1 { margin: 8px 0 10px; font-size: clamp(34px, 9vw, 46px); line-height: 1.04; letter-spacing: -.07em; }
.auth-visual p { max-width: 340px; margin: 0; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.6; }
.auth-panel { padding: 24px 26px 34px; }
.auth-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.auth-tabs button { position: relative; padding: 0 0 13px; border: 0; background: transparent; color: var(--subtle); font-weight: 700; }
.auth-tabs .active { color: var(--ink); }
.auth-tabs .active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px; background: var(--yellow); content: ""; }
#authForm { display: grid; gap: 15px; margin-top: 21px; }
#authForm label { color: #55514b; font-size: 11px; font-weight: 700; }
#authForm input { width: 100%; margin-top: 7px; padding: 14px 15px; border: 1px solid #ded9d0; border-radius: 13px; outline: none; background: #faf9f7; }
#authForm input:focus { border-color: var(--yellow-deep); box-shadow: 0 0 0 3px rgba(255,212,59,.18); }
.auth-submit { min-height: 49px; margin-top: 2px; border: 0; border-radius: 14px; background: var(--yellow); font-weight: 900; }
.auth-submit:disabled { opacity: .6; }
.form-error { min-height: 16px; margin: -6px 0 0; color: var(--red); font-size: 11px; }
.demo-entry { display: block; margin: 9px auto 0; border: 0; background: transparent; color: #807a72; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.auth-legal { margin: 24px 0 0; color: #aaa49c; font-size: 9px; text-align: center; }

.home-page { background: #f7f5f1; }
.home-header { display: flex; align-items: center; justify-content: space-between; padding: calc(15px + env(safe-area-inset-top)) 19px 12px; background: var(--yellow); }
.location { display: flex; gap: 9px; align-items: center; min-width: 0; }
.location-pin { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 11px; background: var(--ink); color: var(--yellow); }
.location small, .location strong { display: block; }
.location small { font-size: 9px; }
.location strong { max-width: 270px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.avatar-mini { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid rgba(0,0,0,.12); border-radius: 50%; background: white; font-weight: 900; }
.home-search-wrap { padding: 4px 19px 18px; background: var(--yellow); }
.search-box { display: flex; gap: 9px; align-items: center; height: 47px; padding: 0 13px; border: 2px solid var(--ink); border-radius: 14px; background: white; box-shadow: 3px 3px 0 var(--ink); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; }
.search-box button { border: 0; background: transparent; font-size: 11px; font-weight: 900; }
.hero-banner { position: relative; display: grid; min-height: 185px; grid-template-columns: 1.2fr .8fr; overflow: hidden; margin: 18px; border-radius: 23px; background: #1d1b18; color: white; }
.hero-banner > div { z-index: 1; padding: 23px 0 21px 22px; }
.hero-banner small { color: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.hero-banner h1 { margin: 9px 0 9px; font-size: 26px; line-height: 1.08; letter-spacing: -.06em; }
.hero-banner p { width: 190px; margin: 0; color: #bbb5ad; font-size: 10px; line-height: 1.5; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(to right, transparent, #000 38%); }
.quick-categories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 0 16px 19px; }
.quick-categories button { border: 0; background: transparent; font-size: 10px; font-weight: 700; }
.quick-categories span { display: grid; width: 47px; height: 47px; margin: 0 auto 6px; place-items: center; border-radius: 16px; background: white; font-size: 24px; box-shadow: 0 5px 16px rgba(27,23,17,.07); }
.content-section { padding: 7px 18px 22px; }
.section-title { display: flex; align-items: center; justify-content: space-between; }
.section-title h2 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.section-title small { color: var(--subtle); font-size: 10px; }
.restaurant-list { display: grid; gap: 13px; margin-top: 14px; }
.restaurant-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 13px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: white; text-align: left; box-shadow: 0 5px 17px rgba(30,25,18,.04); }
.restaurant-cover { width: 116px; height: 116px; border-radius: 13px; object-fit: cover; }
.restaurant-copy { min-width: 0; }
.restaurant-copy h3 { margin: 3px 0 8px; font-size: 17px; }
.restaurant-meta { display: flex; justify-content: space-between; color: #8b857d; font-size: 9px; }
.restaurant-meta b { color: var(--red); font-size: 11px; }
.restaurant-meta.muted { margin-top: 8px; }
.restaurant-tagline { display: block; overflow: hidden; margin-top: 8px; color: #77716a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.merchant-tags { display: flex; gap: 4px; margin-top: 8px; }
.merchant-tags i { padding: 3px 5px; border-radius: 4px; background: #f3f0eb; color: #7f776d; font-size: 8px; font-style: normal; }
.merchant-tags i:last-child { background: #fff4c3; color: #8a6300; }
.empty-state { padding: 50px 15px; color: var(--subtle); text-align: center; }

.bottom-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: flex; width: min(100%, 520px); margin: auto; padding: 9px 22px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.bottom-nav button { flex: 1; border: 0; background: transparent; color: #99938b; font-size: 9px; }
.bottom-nav span { display: block; height: 25px; font-size: 20px; }
.bottom-nav .active { color: var(--ink); font-weight: 900; }
.bottom-nav .active span { color: var(--yellow-deep); }

.restaurant-page { background: white; }
.restaurant-hero { position: relative; height: 220px; overflow: hidden; }
.restaurant-hero > img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-hero::after { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 45%, rgba(0,0,0,.16)); content: ""; }
.restaurant-hero header { position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top)); right: 15px; left: 15px; display: flex; justify-content: space-between; }
.circle-button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.91); font-size: 24px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.restaurant-info-card { position: relative; z-index: 2; margin: -26px 14px 0; padding: 19px; border-radius: 21px; background: white; box-shadow: var(--shadow); }
.restaurant-info-card h1 { margin: 0 0 10px; font-size: 25px; letter-spacing: -.05em; }
.restaurant-info-card div { display: flex; gap: 12px; color: #77716a; font-size: 10px; }
.restaurant-info-card b { color: var(--red); }
.restaurant-info-card p { margin: 10px 0 0; color: #6f6961; font-size: 11px; }
.menu-tabs { position: sticky; z-index: 4; top: 0; display: flex; gap: 21px; overflow-x: auto; margin-top: 15px; padding: 13px 18px 10px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); scrollbar-width: none; }
.menu-tabs button { position: relative; flex: none; padding: 0 0 7px; border: 0; background: transparent; color: #817b73; font-size: 12px; }
.menu-tabs .active { color: var(--ink); font-weight: 900; }
.menu-tabs .active::after { position: absolute; right: 20%; bottom: 0; left: 20%; height: 3px; border-radius: 3px; background: var(--yellow); content: ""; }
.menu-section { padding: 15px 17px 110px; }
.menu-section > h2 { margin: 0 0 13px; font-size: 17px; }
.menu-list { display: grid; gap: 18px; }
.menu-item { display: grid; grid-template-columns: 116px 1fr; gap: 13px; }
.menu-photo { width: 116px; height: 116px; border-radius: 14px; object-fit: cover; }
.menu-detail { display: flex; min-width: 0; flex-direction: column; }
.menu-detail h3 { display: inline; margin: 0; font-size: 15px; line-height: 1.35; }
.signature { display: inline-block; margin-right: 5px; padding: 2px 4px; border-radius: 3px; background: var(--yellow); font-size: 7px; font-weight: 900; vertical-align: 2px; }
.menu-detail > p { display: -webkit-box; overflow: hidden; margin: 7px 0 3px; color: #817b73; font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.menu-sales { color: #aaa49d; font-size: 8px; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.menu-price { color: var(--red); font-size: 19px; }
.menu-price small { font-size: 10px; }
.add-button, .quantity-control button { display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 50%; background: var(--yellow); font-weight: 900; }
.spec-button { padding: 7px 11px; border: 0; border-radius: 10px; background: var(--yellow); font-size: 9px; font-weight: 900; }
.favorite-button { color: #df4638; font-size: 22px; }
.quantity-control { display: flex; gap: 8px; align-items: center; }
.quantity-control button:first-child { border: 1px solid #ded9d0; background: white; }
.quantity-control b { min-width: 12px; font-size: 11px; text-align: center; }
.cart-bar { position: fixed; z-index: 8; right: 13px; bottom: calc(13px + env(safe-area-inset-bottom)); left: 13px; display: grid; width: min(calc(100% - 26px), 494px); grid-template-columns: 54px 1fr auto; align-items: center; margin: auto; padding: 8px 8px 8px 5px; border-radius: 22px; background: #1d1c1a; color: white; box-shadow: 0 12px 30px rgba(0,0,0,.27); }
.cart-icon { position: relative; display: grid; width: 50px; height: 50px; place-items: center; border: 0; border-radius: 18px; background: var(--yellow); font-size: 25px; }
.cart-icon span { position: absolute; top: -5px; right: -4px; display: grid; min-width: 19px; height: 19px; place-items: center; border: 2px solid #1d1c1a; border-radius: 12px; background: var(--red); color: white; font-size: 9px; }
.cart-bar > div strong, .cart-bar > div small { display: block; }
.cart-bar > div strong { font-size: 19px; }
.cart-bar > div small { color: #aaa59d; font-size: 8px; }
.checkout-button { height: 44px; padding: 0 22px; border: 0; border-radius: 15px; background: var(--yellow); font-size: 13px; font-weight: 900; }

.bottom-sheet { width: min(100%, 520px); max-width: none; margin: auto auto 0; padding: 0; border: 0; border-radius: 25px 25px 0 0; background: white; }
.bottom-sheet::backdrop { background: rgba(10,9,7,.48); }
.sheet-inner { padding: 9px 18px calc(20px + env(safe-area-inset-bottom)); }
.sheet-handle { width: 35px; height: 4px; margin: 0 auto 17px; border-radius: 4px; background: #ddd8d0; }
.sheet-title { display: flex; justify-content: space-between; align-items: center; }
.sheet-title h2 { margin: 0; font-size: 19px; }
.sheet-title button { border: 0; background: transparent; color: #99928a; font-size: 10px; }
.sheet-items { max-height: 45vh; overflow: auto; margin-top: 14px; }
.sheet-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.sheet-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.sheet-item h3, .sheet-item p { margin: 0; }
.sheet-item h3 { font-size: 12px; }
.sheet-item small { display: block; overflow: hidden; max-width: 160px; margin-top: 4px; color: #99928a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.sheet-item p { margin-top: 5px; color: var(--red); font-size: 10px; }
.sheet-footer, .result-actions { display: grid; grid-template-columns: .8fr 1.4fr; gap: 9px; margin-top: 17px; }
.primary-button, .secondary-button { min-height: 46px; border-radius: 14px; font-size: 12px; font-weight: 900; }
.primary-button { border: 0; background: var(--yellow); }
.secondary-button { border: 1px solid #ddd8cf; background: white; }
.customization-sheet { max-height: 84vh; overflow-y: auto; }
.customization-title { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; }
.customization-title img { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; }
.customization-title h2, .customization-title p { margin: 0; }
.customization-title h2 { font-size: 17px; }
.customization-title p { display: -webkit-box; overflow: hidden; margin-top: 7px; color: #837d75; font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.customization-groups { margin-top: 18px; }
.option-group { padding: 15px 0; border-top: 1px solid var(--line); }
.option-group > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.option-group h3 { margin: 0; font-size: 13px; }
.option-group > div > small { color: #99928a; font-size: 8px; }
.option-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 11px; }
.option-chips button { min-height: 39px; padding: 6px; border: 1px solid #dfdad1; border-radius: 10px; background: #faf9f7; font-size: 9px; }
.option-chips button small { display: block; margin-top: 2px; color: #8a847b; font-size: 7px; }
.option-chips button.selected { border-color: var(--yellow-deep); background: #fff6c7; box-shadow: inset 0 0 0 1px var(--yellow-deep); font-weight: 900; }
.add-customized-item { width: 100%; margin-top: 5px; }

.checkout-page { padding-bottom: 94px; background: #f3f1ed; }
.title-header { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 15px 13px; }
.title-header h1 { margin: 0; font-size: 18px; text-align: center; }
.title-header .circle-button { box-shadow: none; }
.checkout-card { margin: 0 13px 11px; padding: 17px; border-radius: 17px; background: white; }
.address-card small, .delivery-card small { color: #948d84; font-size: 9px; }
.address-card h2 { margin: 7px 0; font-size: 18px; }
.address-card p { margin: 0; color: #7d766e; font-size: 10px; }
.delivery-card { display: flex; align-items: center; justify-content: space-between; }
.delivery-card h2 { margin: 6px 0 0; color: var(--green); font-size: 18px; }
.delivery-card > b { font-size: 10px; }
.checkout-restaurant { margin: 0 0 14px; font-size: 15px; }
.checkout-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.checkout-item img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.checkout-item h3, .checkout-item p { margin: 0; font-size: 11px; }
.checkout-item p { margin-top: 5px; color: #99928a; }
.checkout-item strong { font-size: 11px; }
.bill { padding-top: 9px; border-top: 1px solid var(--line); }
.bill p, .option-list p { display: flex; justify-content: space-between; margin: 10px 0; font-size: 10px; }
.bill-total { align-items: baseline; padding-top: 9px; border-top: 1px dashed #ded9d1; }
.bill-total strong { font-size: 18px; }
.option-list p + p { padding-top: 12px; border-top: 1px solid var(--line); }
.option-list p span:last-child { color: #89827a; }
.simulation-note, .estimate-note { margin: 14px 25px; color: #99928a; font-size: 9px; line-height: 1.55; text-align: center; }
.checkout-footer { position: fixed; z-index: 8; right: 0; bottom: 0; left: 0; display: flex; width: min(100%, 520px); align-items: center; justify-content: space-between; margin: auto; padding: 10px 13px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: white; }
.checkout-footer div { font-size: 11px; }
.checkout-footer strong { font-size: 20px; }
.checkout-footer button { min-width: 140px; height: 46px; border: 0; border-radius: 15px; background: var(--yellow); font-weight: 900; }
.checkout-footer button:disabled { opacity: .6; }

.result-page { min-height: 100vh; padding: 0 18px calc(30px + env(safe-area-inset-bottom)); background: #1a1917; color: white; }
.result-stage { padding: calc(54px + env(safe-area-inset-top)) 10px 30px; text-align: center; }
.result-check { display: grid; width: 49px; height: 49px; margin: auto; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 22px; font-weight: 900; }
.result-stage small { display: block; margin-top: 13px; color: #aaa49c; font-size: 10px; letter-spacing: .1em; }
.result-stage h1 { margin: 15px 0 12px; font-size: 30px; line-height: 1.08; letter-spacing: -.07em; }
.result-stage p { margin: 0; color: #99938b; font-size: 10px; }
.calorie-reveal { position: relative; overflow: hidden; padding: 26px 22px; border-radius: 23px; background: var(--yellow); color: var(--ink); }
.calorie-reveal::after { position: absolute; right: -18px; bottom: -41px; color: rgba(0,0,0,.07); font-size: 120px; font-weight: 900; content: "少"; transform: rotate(-8deg); }
.calorie-reveal small { font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.calorie-reveal div { position: relative; z-index: 1; display: flex; align-items: baseline; margin: 7px 0 9px; }
.calorie-reveal strong { font-family: "Arial Black", "DIN Alternate", sans-serif; font-size: clamp(51px, 15vw, 72px); line-height: 1; letter-spacing: -.08em; }
.calorie-reveal span { margin-left: 7px; font-size: 14px; font-weight: 800; }
.calorie-reveal p { position: relative; z-index: 1; max-width: 320px; margin: 0; font-size: 10px; line-height: 1.55; }
.result-detail { margin-top: 14px; padding: 18px; border: 1px solid #393632; border-radius: 20px; background: #22211f; }
.result-detail h2 { margin: 0 0 14px; font-size: 14px; }
.result-detail p { display: flex; justify-content: space-between; margin: 11px 0; color: #aaa49c; font-size: 9px; }
.result-detail p span:first-child small { display: block; margin-top: 3px; color: #77716a; font-size: 7px; }
.result-total { padding-top: 12px; border-top: 1px solid #3c3935; }
.craving-feedback { margin-top: 14px; padding: 19px; border-radius: 20px; background: white; color: var(--ink); }
.craving-feedback > small { color: #8d867e; font-size: 8px; }
.craving-feedback h2 { margin: 6px 0 13px; font-size: 16px; }
.craving-feedback > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.craving-feedback button { min-height: 42px; padding: 5px; border: 1px solid #ded9d0; border-radius: 11px; background: #f7f5f1; font-size: 8px; }
.feedback-check { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--yellow); font-weight: 900; }
.craving-feedback > p { margin: 5px 0 0; color: #8e887f; font-size: 9px; line-height: 1.5; }
.result-actions { margin-top: 15px; }
.result-actions .secondary-button { border-color: #48443f; background: transparent; color: white; }
.estimate-note { margin-bottom: 0; color: #716c65; }

.neutral-page { background: #f5f3ef; }
.section-header { padding: calc(25px + env(safe-area-inset-top)) 19px 20px; background: white; }
.section-header h1 { margin: 0; font-size: 27px; letter-spacing: -.05em; }
.section-header p { margin: 7px 0 0; color: #8d867e; font-size: 10px; }
.orders-list { display: grid; gap: 12px; padding: 14px; }
.order-card { padding: 15px; border-radius: 18px; background: white; }
.order-head { display: grid; grid-template-columns: 47px 1fr auto; gap: 10px; align-items: center; }
.order-head img { width: 47px; height: 47px; border-radius: 11px; object-fit: cover; }
.order-head h2, .order-head small { display: block; margin: 0; }
.order-head h2 { font-size: 14px; }
.order-head small { margin-top: 5px; color: #9b958d; font-size: 8px; }
.order-head > b { color: #817b73; font-size: 9px; }
.order-foods { overflow: hidden; margin: 13px 0; color: #77716a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.order-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: #8a847c; font-size: 9px; }
.order-foot strong { color: var(--green); }
.order-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 11px; }
.order-actions button { padding: 7px 11px; border: 1px solid #ded9d1; border-radius: 9px; background: white; font-size: 8px; font-weight: 800; }
.order-actions button:last-child { border-color: var(--yellow); background: #fff7ce; }
.empty-orders { padding: 90px 20px; text-align: center; }
.empty-orders > span { color: #b9b3aa; font-size: 44px; }
.empty-orders h2 { margin: 14px 0 5px; font-size: 18px; }
.empty-orders p { color: #928b83; font-size: 10px; }
.empty-orders button { margin-top: 12px; padding: 10px 25px; border: 0; border-radius: 12px; background: var(--yellow); font-weight: 900; }

.profile-page { background: #f4f1eb; }
.profile-hero { padding: calc(30px + env(safe-area-inset-top)) 20px 24px; background: #1b1a18; color: white; }
.profile-person { display: flex; gap: 13px; align-items: center; }
.profile-person > span { display: grid; width: 57px; height: 57px; place-items: center; border-radius: 19px; background: var(--yellow); color: var(--ink); font-size: 23px; font-weight: 900; }
.profile-person h1, .profile-person p { margin: 0; }
.profile-person h1 { font-size: 20px; }
.profile-person p { margin-top: 5px; color: #928c84; font-size: 9px; }
.profile-stats { display: grid; grid-template-columns: 1fr 1.4fr; margin-top: 26px; }
.profile-stats div { border-left: 1px solid #3a3733; padding-left: 14px; }
.profile-stats strong, .profile-stats small { display: block; }
.profile-stats strong { color: var(--yellow); font-family: "Arial Black", sans-serif; font-size: 25px; }
.profile-stats small { margin-top: 4px; color: #9b958e; font-size: 8px; }
.achievement-card { margin: -1px 14px 13px; padding: 19px; border-radius: 0 0 19px 19px; background: var(--yellow); }
.achievement-card small { font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.achievement-card h2 { margin: 5px 0; font-size: 20px; }
.achievement-card p { margin: 0; font-size: 9px; }
.achievement-card > div { height: 5px; overflow: hidden; margin-top: 14px; border-radius: 5px; background: rgba(0,0,0,.13); }
.achievement-card i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.profile-menu { margin: 0 14px; overflow: hidden; border-radius: 18px; background: white; }
.profile-menu button { display: grid; width: 100%; grid-template-columns: 34px 1fr auto; align-items: center; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; }
.profile-menu button:last-child { border: 0; }
.profile-menu button > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: #f5f2ed; }
.profile-menu b { font-size: 11px; }
.profile-menu i { color: #aaa49c; font-style: normal; }
.order-detail-page .title-header { background: white; }
.order-status-card { display: flex; gap: 13px; align-items: center; margin: 13px; padding: 19px; border-radius: 18px; background: #1d1c1a; color: white; }
.order-status-card > span { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900; }
.order-status-card small { color: #a19b93; font-size: 8px; }
.order-status-card h2, .order-status-card p { margin: 4px 0 0; }
.order-status-card h2 { font-size: 15px; }
.order-status-card p { color: #8f8981; font-size: 8px; }
.detail-line { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.detail-line b, .detail-line small { display: block; }
.detail-line b { font-size: 10px; }
.detail-line small { margin-top: 5px; color: #928b83; font-size: 8px; }
.detail-line strong { color: var(--green); font-size: 9px; }
.order-meta p { display: flex; justify-content: space-between; gap: 20px; margin: 10px 0; color: #817a72; font-size: 9px; }
.order-meta p span:last-child { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.repeat-main-button { display: block; width: calc(100% - 26px); height: 47px; margin: 14px auto; border: 0; border-radius: 14px; background: var(--yellow); font-weight: 900; }

.toast { position: fixed; z-index: 50; right: 20px; bottom: 94px; left: 20px; width: fit-content; max-width: min(360px, calc(100% - 40px)); margin: auto; padding: 10px 14px; border-radius: 12px; background: rgba(18,17,15,.92); color: white; font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (min-width: 700px) {
  .app-frame { margin-top: 18px; margin-bottom: 18px; min-height: calc(100vh - 36px); border-radius: 28px; }
  .bottom-nav { bottom: 18px; border-radius: 0 0 28px 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; } }
