:root { color-scheme: dark; --bg: #070d19; --panel: #0e192b; --line: #243653; --text: #edf3ff; --muted: #9eafc9; --accent: #1763ff; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 15% 0%, #10264a, var(--bg) 55%); color: var(--text); font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
.account-shell { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 18px 0 max(30px, env(safe-area-inset-bottom)); }
.account-header, .account-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-header { min-height: 64px; margin-bottom: 36px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.account-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--text); text-decoration: none; }
.account-brand img { display: block; width: 43px; height: 50px; object-fit: contain; }
.account-brand-copy { display: grid; gap: 0; line-height: 1.35; }
.account-brand-copy strong { font-size: 1.1rem; letter-spacing: -.03em; }
.account-brand-copy > span { color: var(--muted); font-size: .75rem; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.panel, .order-card { border: 1px solid var(--line); border-radius: 18px; background: rgba(14,25,43,.95); box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.sign-in-panel { width: min(480px, 100%); margin: 7vh auto 9vh; padding: clamp(24px, 4vw, 36px); }
.account-symbol { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 23px; border: 1px solid #31507e; border-radius: 13px; background: rgba(23,99,255,.12); color: #a2c3ff; }
.account-symbol svg { width: 26px; height: 26px; }
.eyebrow { margin: 0 0 7px; color: #94b8ff; font-size: .67rem; font-weight: 800; letter-spacing: .13em; }
h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.25rem); line-height: 1.25; letter-spacing: -.04em; }
h2 { margin: 0; font-size: 1.12rem; line-height: 1.4; letter-spacing: -.02em; }
.sign-in-copy, .muted { color: var(--muted); }
.sign-in-copy { margin: 13px 0 0; font-size: .9rem; }
form { display: grid; gap: 10px; margin-top: 24px; }
label { color: #c2cfe2; font-size: .83rem; font-weight: 700; }
input { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #304664; border-radius: 10px; background: #081426; color: var(--text); font-size: 16px; }
input::placeholder { color: #70839f; opacity: 1; }
.code-input { text-align: center; font-size: 1.5rem; font-weight: 800; letter-spacing: .35em; padding-inline-start: calc(14px + .35em); }
.button { min-height: 44px; padding: 10px 15px; border: 1px solid transparent; border-radius: 10px; color: var(--text); font-size: .84rem; font-weight: 750; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; line-height: 1.4; transition: background 150ms ease, border-color 150ms ease; }
.button-primary { background: var(--accent); box-shadow: 0 4px 20px rgba(23,99,255,.15); }
.button-primary:hover { background: #3478ff; }
.button-muted { border-color: var(--line); background: #111f35; }
.button-muted:hover { border-color: #42669c; background: #162943; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.language-button { min-width: 72px; }
.back-store > span:first-child { color: #94b8ff; }
:is(input,button,a):focus-visible { outline: 2px solid #89b3ff; outline-offset: 3px; }
.message { min-height: 1.5em; margin: 14px 0; color: #ffd38a; font-size: .85rem; overflow-wrap: anywhere; }
.message:empty { margin-block: 0; min-height: 0; }
.inbox-help { margin: 22px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.account-heading { margin-bottom: 22px; }
.account-heading .muted { margin: 7px 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.saved-cart-panel { padding: 24px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; }
.saved-cart-panel .muted { margin: 8px 0 0; font-size: .85rem; overflow-wrap: anywhere; }
.cart-help { margin: 10px 0 0; color: var(--muted); font-size: .77rem; max-width: 540px; }
.account-actions { display: grid; gap: 8px; }
.orders-section { margin-top: 38px; }
.section-heading { align-items: flex-end; margin-bottom: 17px; }
.section-heading .muted { margin: 0; flex: 0 0 auto; font-size: .8rem; }
.orders-heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#refresh-account-orders { min-width: 120px; }
.section-description { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.orders-list { display: grid; gap: 15px; overflow-anchor: none; }
.order-card { min-width: 0; padding: 22px; }
.order-card.is-selected { border-color: #719fe8; box-shadow: 0 0 0 2px rgba(82,137,226,.12), 0 18px 60px rgba(0,0,0,.18); }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid var(--line); }
.order-top > div { min-width: 0; }
.order-id { margin: 0; font-size: .96rem; font-weight: 850; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.order-meta, .order-detail { margin: 7px 0; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.order-total { white-space: nowrap; font-size: 1.04rem; font-weight: 850; direction: ltr; unicode-bidi: isolate; }
.order-items { margin: 15px 0; padding-inline-start: 22px; color: #d7e3f5; font-size: .86rem; }
.order-items li + li { margin-top: 5px; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding-top: 12px; }
.order-statuses { display: flex; flex-wrap: wrap; gap: 7px; margin: 7px 0 12px; }
.order-resume { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #3a6099; border-radius: 10px; background: #14294a; color: #e6efff; font-size: .84rem; font-weight: 750; text-decoration: none; }
.order-resume:hover { background: #1b3762; border-color: #769fe0; }
.order-status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #3a4d6a; border-radius: 7px; background: #14233a; color: #c8dbfa; font-size: .73rem; font-weight: 700; }
.order-status-chip.is-paid, .order-status-chip.is-delivered { color: #a0e2bd; background: #112c26; border-color: #285b46; }
.order-status-chip.is-cancelled, .order-status-chip.is-failed { color: #ffb8b8; background: #301f28; border-color: #64414d; }
.empty-state { padding: 34px 20px; border: 1px dashed #304664; border-radius: 16px; color: var(--muted); text-align: center; font-size: .9rem; }
.account-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); color: #8296b4; font-size: .75rem; }
.account-footer a { color: #acc9fb; text-decoration: none; }
.account-footer a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { letter-spacing: 0; line-height: 1.55; }
html[dir="rtl"] .order-id { text-align: right; }
@media (max-width: 620px) {
  .account-shell { width: calc(100% - 28px); padding-top: 12px; }
  .account-header { margin-bottom: 24px; gap: 10px; }
  .account-brand { gap: 8px; }
  .account-brand img { width: 35px; height: 41px; }
  .header-actions { gap: 6px; }
  .header-actions .button { padding-inline: 10px; font-size: .75rem; }
  .language-button { min-width: 63px; }
  .back-store > span:first-child { display: none; }
  .sign-in-panel { margin: 4vh auto 6vh; padding: 24px 21px; }
  .saved-cart-panel { grid-template-columns: minmax(0,1fr); padding: 21px; gap: 18px; }
  .account-actions { grid-template-columns: 1fr 1fr; width: 100%; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .order-card { padding: 18px; }
  .order-top { gap: 10px; }
  .order-total { font-size: .92rem; }
  .account-footer { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 370px) {
  .account-brand-copy strong { font-size: .98rem; }
  .account-brand-copy > span { font-size: .68rem; }
  .header-actions .button { padding-inline: 8px; }
  .account-actions { grid-template-columns: 1fr; }
  .order-top { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
 .consent-label { display:flex; align-items:flex-start; gap:10px; font-size:.9rem; line-height:1.5; }
 .consent-label input { width:18px; height:18px; min-height:18px; padding:0; margin-top:3px; flex-shrink:0; accent-color:#1763ff; }
 #whatsapp-link-panel { margin:24px 0; padding:24px; }
 .inbox-help { border-inline-start:3px solid #4c82ff; padding-inline-start:14px; }
