/* NŌKA — customer area (Glovo-style profile + orders), dark palette shared with the order page */
.acct-page { background: #2B2623; color: #F4F1EA; }
.acct-wrap { max-width: 1080px; margin: 0 auto; padding: calc(var(--header-h) + 28px) 16px 90px; }
.acct-wrap *, .acct-wrap *::before, .acct-wrap *::after { box-sizing: border-box; }
.acct-wrap [hidden], .acct-page .sheet-bg[hidden] { display: none !important; } /* display:grid/flex rules must never override hidden */
.acct-wrap .serif-it { font-family: var(--serif); font-style: italic; font-weight: 500; }
.acct-wrap .eyebrow.gold { color: #BFA27A; }

/* ---------- shared form bits ---------- */
.acct-form .field { display: flex; flex-direction: column; margin: 0 0 12px; }
.acct-form .field label { font-size: 12.5px; color: #D9D2C8; font-weight: 500; margin: 0 0 6px; letter-spacing: 0; text-transform: none; }
.acct-form .field label small { color: #A1978E; font-weight: 400; }
.acct-form .field input { width: 100%; height: 50px; border-radius: 14px; border: 1px solid rgba(244,241,234,.18); background: #262120; color: #F4F1EA; padding: 0 14px; font-size: 16px; font-family: inherit; transition: border-color .2s, box-shadow .2s, background .2s; }
.acct-form .field input:focus { outline: none; border-color: #BFA27A; box-shadow: 0 0 0 3px rgba(191,162,122,.22); background: #2F2926; }
.in-ph { display: flex; align-items: center; height: 50px; border-radius: 14px; border: 1px solid rgba(244,241,234,.18); background: #262120; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.in-ph:focus-within { border-color: #BFA27A; box-shadow: 0 0 0 3px rgba(191,162,122,.22); }
.in-ph span { padding: 0 12px 0 14px; font-weight: 600; color: #A1978E; border-right: 1px solid rgba(244,241,234,.12); height: 100%; display: flex; align-items: center; font-size: 15px; }
.in-ph input, .acct-form .field .in-ph input { height: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.in-pw { position: relative; }
.in-pw input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: #A1978E; font-size: 16px; cursor: pointer; border-radius: 10px; }
.pw-eye:hover { color: #F4F1EA; }
.acct-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-err { margin: 0 0 10px; font-size: 13px; color: #E07A6E; line-height: 1.45; }
.acct-err:empty { display: none; }
.acct-primary { width: 100%; height: 52px; border: 0; border-radius: 14px; background: #B23A2E; color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .2s, transform .2s; box-shadow: 0 10px 24px -12px rgba(178,58,46,.6); }
.acct-primary:hover { background: #8F2C22; }
.acct-primary:active { transform: translateY(1px); }
.acct-primary:disabled { opacity: .5; pointer-events: none; }
.acct-primary.sm { width: auto; height: 44px; padding: 0 18px; font-size: 12px; }
.acct-link { display: block; margin: 14px auto 0; background: none; border: 0; color: #C9AB7F; font-size: 13px; cursor: pointer; font-family: inherit; text-decoration: underline; text-underline-offset: 3px; }
.acct-ghost { height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(244,241,234,.22); background: transparent; color: #F4F1EA; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.acct-ghost:hover { border-color: #BFA27A; color: #C9AB7F; }
.acct-sub { margin: 0 0 16px; font-size: 13.5px; color: #CFC7BC; line-height: 1.5; }

/* ---------- auth ---------- */
.auth { max-width: 520px; margin: 0 auto; }
.auth-hero { text-align: center; margin-bottom: 22px; }
.auth-emblem { width: 56px; height: 56px; margin: 0 auto 14px; display: block; }
.auth-hero h1 { font-size: clamp(30px, 5vw, 42px); margin: 8px 0 10px; line-height: 1.05; }
.auth-sub { margin: 0 auto; max-width: 42ch; font-size: 14.5px; color: #CFC7BC; line-height: 1.55; }
.auth-card { background: #342E2A; border: 1px solid rgba(244,241,234,.12); border-radius: 22px; padding: 20px 20px 22px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.8); }
.acct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #2A2521; border-radius: 14px; padding: 5px; margin-bottom: 20px; }
.acct-tabs button { height: 42px; border: 0; border-radius: 10px; background: transparent; color: #A1978E; font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; cursor: pointer; transition: background .2s, color .2s; }
.acct-tabs button[aria-selected="true"] { background: #3E3733; color: #F4F1EA; }
.auth-h2 { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; }
.auth-switch { margin: 16px 0 0; text-align: center; font-size: 13px; color: #A1978E; }
.auth-switch button { background: none; border: 0; color: #F4F1EA; font-weight: 600; font-family: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth-legal { margin: 12px 0 0; font-size: 11.5px; color: #8A8079; text-align: center; line-height: 1.45; }
.auth-perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.auth-perks li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: center; padding: 12px 14px; border: 1px solid rgba(244,241,234,.1); border-radius: 16px; background: rgba(244,241,234,.03); }
.auth-perks i { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px; background: #262120; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.auth-perks b { font-size: 14px; font-weight: 600; }
.auth-perks span { font-size: 12.5px; color: #A1978E; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.dash-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.pf-card { background: linear-gradient(160deg, #3A3330, #2F2926); border: 1px solid rgba(244,241,234,.12); border-radius: 22px; padding: 24px 20px 18px; text-align: center; }
.pf-avatar { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%; background: #BFA27A; color: #2B2623; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 30px; font-weight: 600; box-shadow: 0 10px 30px -14px rgba(191,162,122,.9); }
.pf-name { display: block; font-size: 20px; font-weight: 600; }
.pf-meta { display: block; margin-top: 4px; font-size: 13px; color: #CFC7BC; }
.pf-since { display: block; margin-top: 2px; font-size: 11.5px; color: #A1978E; letter-spacing: .06em; text-transform: uppercase; }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(244,241,234,.1); }
.pf-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-stats b { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-stats span { font-size: 11px; color: #A1978E; letter-spacing: .06em; text-transform: uppercase; }
.pf-menu { display: grid; background: #342E2A; border: 1px solid rgba(244,241,234,.12); border-radius: 20px; overflow: hidden; }
.pm-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 13px 16px; border: 0; border-bottom: 1px solid rgba(244,241,234,.08); background: transparent; color: #F4F1EA; text-align: left; font-family: inherit; cursor: pointer; text-decoration: none; transition: background .2s; }
.pm-row:last-child { border-bottom: 0; }
.pm-row:hover { background: rgba(244,241,234,.05); }
.pm-ic { width: 40px; height: 40px; border-radius: 12px; background: #262120; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.pm-row span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-row b { font-size: 14.5px; font-weight: 600; }
.pm-row small { font-size: 12px; color: #A1978E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-row em { font-style: normal; color: #A1978E; font-size: 20px; line-height: 1; }
.pm-row.danger b { color: #E9A79E; }
.pf-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; background: #F4F1EA; color: #2B2623; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; text-decoration: none; }
.pf-cta:hover { background: #fff; }

.dash-main { min-width: 0; }
.dm-head[hidden] { display: none; }
.dm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.dm-head h2 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); }
.seg { display: inline-flex; gap: 4px; background: #2A2521; border-radius: 999px; padding: 4px; }
.seg button { height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: #A1978E; font: 600 12px var(--sans); cursor: pointer; }
.seg button.on { background: #3E3733; color: #F4F1EA; }

/* live order */
.live { background: #342E2A; border: 1px solid rgba(191,162,122,.35); border-radius: 20px; padding: 16px 18px; margin-bottom: 18px; box-shadow: 0 20px 40px -30px rgba(0,0,0,.8); }
.live-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.live-top b { font-size: 15px; }
.live-top small { display: block; color: #A1978E; font-size: 12px; margin-top: 2px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(178,58,46,.2); color: #E9A79E; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #E9A79E; animation: lvPulse 1.4s infinite; }
@keyframes lvPulse { 50% { opacity: .35; } }
.live-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 12px; }
.live-steps span { height: 5px; border-radius: 3px; background: rgba(244,241,234,.14); }
.live-steps span.done { background: #BFA27A; }
.live-steps span.cur { background: #B23A2E; }
.live-lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: #A1978E; margin-bottom: 14px; }
.live-lbl b { color: #F4F1EA; font-weight: 600; }
.live-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* order rows (Glovo list) */
.orders { display: grid; gap: 10px; }
.ord-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 12px 14px 12px 12px; border: 1px solid rgba(244,241,234,.1); border-radius: 18px; background: #342E2A; color: #F4F1EA; text-align: left; font-family: inherit; cursor: pointer; transition: transform .2s, border-color .2s; }
.ord-row:hover { transform: translateY(-1px); border-color: rgba(191,162,122,.5); }
.or-img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: #262120; display: grid; place-items: center; }
.or-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.or-img img.emb { width: 34px; height: 34px; object-fit: contain; opacity: .8; }
.or-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.or-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.or-top b { font-size: 15px; font-weight: 600; }
.or-badge { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #3E3733; color: #D9D2C8; }
.or-badge.ok { background: rgba(169,189,126,.18); color: #A9BD7E; }
.or-badge.live { background: rgba(178,58,46,.22); color: #E9A79E; }
.or-badge.off { background: rgba(244,241,234,.08); color: #A1978E; }
.or-sum { font-size: 13px; color: #D9D2C8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-date { font-size: 12px; color: #A1978E; }
.or-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.or-right b { font-size: 15px; font-weight: 700; }
.or-right em { font-style: normal; color: #A1978E; font-size: 20px; line-height: 1; }
.acct-empty { text-align: center; padding: 40px 10px; color: #A1978E; border: 1px dashed rgba(244,241,234,.16); border-radius: 20px; }
.acct-empty img { width: 96px; margin: 0 auto 12px; display: block; filter: invert(1) brightness(1.05); opacity: .8; }
.acct-empty b { display: block; color: #F4F1EA; font-size: 16px; margin-bottom: 4px; }
.acct-empty p { margin: 0 0 14px; font-size: 13.5px; }

/* bottom sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 110; background: rgba(20,16,14,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg[hidden] { display: none; }
.sheet { position: relative; width: min(640px, 100%); max-height: 90vh; overflow: auto; background: #342E2A; color: #F4F1EA; border: 1px solid rgba(244,241,234,.14); border-radius: 24px 24px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); animation: shUp .32s cubic-bezier(.2,.8,.2,1) both; }
@keyframes shUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; border-radius: 2px; background: rgba(244,241,234,.25); transform: translateX(-50%); }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(244,241,234,.2); background: transparent; color: #F4F1EA; cursor: pointer; font-size: 14px; }
.sheet-h { margin: 6px 0 14px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; padding-right: 40px; }
.sheet-h small { display: block; font-family: var(--sans); font-style: normal; font-size: 12.5px; color: #A1978E; margin-top: 4px; }
.oc-tl { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #A1978E; }
.oc-tl li { display: inline-flex; align-items: center; gap: 6px; }
.oc-tl li i { width: 7px; height: 7px; border-radius: 50%; background: #BFA27A; }
.oc-tl li span { color: #D9D2C8; font-weight: 500; }
.oc-tl li:last-child i { background: #B23A2E; box-shadow: 0 0 0 3px rgba(178,58,46,.25); }
.oc-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(244,241,234,.1); }
.oc-items li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid rgba(244,241,234,.08); align-items: center; }
.oc-items li img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #262120; }
.oc-items li i { font-style: normal; color: #C9AB7F; font-weight: 600; margin-right: 6px; }
.oc-items li small { display: block; color: #A1978E; font-size: 12px; margin-top: 2px; }
.oc-items li > span:last-child { white-space: nowrap; font-weight: 600; }
.oc-totals { margin: 12px 0 0; font-size: 13.5px; color: #D9D2C8; display: grid; gap: 4px; }
.oc-totals div { display: flex; justify-content: space-between; gap: 12px; }
.oc-totals .tot { font-size: 18px; font-weight: 700; color: #F4F1EA; border-top: 1px dashed rgba(244,241,234,.22); padding-top: 10px; margin-top: 4px; }
.oc-meta { margin: 14px 0 0; display: grid; gap: 8px; }
.oc-meta div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 13px; color: #D9D2C8; line-height: 1.45; }
.oc-meta div i { font-style: normal; text-align: center; }
.oc-btns { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.oc-btns .acct-primary { flex: 1; min-width: 180px; }
.addr-list { display: grid; gap: 10px; }
.addr-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid rgba(244,241,234,.1); border-radius: 16px; background: #2F2926; }
.addr-item i { width: 40px; height: 40px; border-radius: 12px; background: #262120; display: grid; place-items: center; font-style: normal; }
.addr-item b { display: block; font-size: 14px; font-weight: 600; }
.addr-item small { display: block; color: #A1978E; font-size: 12px; margin-top: 2px; }
.ap-btns { display: flex; gap: 10px; align-items: center; }
.ap-btns .acct-primary { flex: 1; }

@media (max-width: 860px) {
  .acct-wrap { padding-top: calc(var(--header-h) + 16px); }
  .dash { display: flex; flex-direction: column; gap: 16px; }
  .dash-side { display: contents; }
  .pf-card { order: 1; }
  .dash-main { order: 2; }
  .pf-menu { order: 3; }
  .pf-cta { display: none; }
  .pf-card { padding: 20px 16px 16px; }
  .auth-card { padding: 18px 16px 20px; border-radius: 20px; }
  .acct-form .row2 { grid-template-columns: 1fr; gap: 0; }
  .ord-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px 10px 10px; }
  .or-img { width: 56px; height: 56px; }
}
