/* Account-only reference surfaces. Shared commerce navigation is unchanged. */
/* Official Google Fonts variable assets, locally served; licenses in fonts/account. */
@font-face { font-family: "Tivka Account"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/account/manrope-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Tivka Account"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/account/manrope-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Tivka Account Arabic"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/account/cairo-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Tivka Account Arabic"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/account/cairo-arabic-variable.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC, U+102E0-102FB, U+10E60-10E7E, U+1EE00-1EEFF; }
@font-face { font-family: "Tivka Account Noto"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/account/noto-sans-arabic-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Tivka Account Noto"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/account/noto-sans-arabic-variable.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC, U+102E0-102FB, U+10E60-10E7E, U+1EE00-1EEFF; }
body:has(.ta-shell) { background: #f7fafc; }
.ta-shell {
    --ta-ink: #061a40;
    --ta-green: #00bb78;
    --ta-muted: #7a8aa4;
    --ta-line: #dfe8f2;
    --ta-surface: #fff;
    --ta-inset: clamp(16px, 4.7vw, 26px);
    container-type: inline-size;
    width: 100%;
    max-width: 560px;
    min-height: 100dvh;
    margin-inline: auto;
    padding-inline: var(--ta-inset);
    color: var(--ta-ink);
    background: #f7fafc;
    font-family: "Tivka Account", "Manrope", "Segoe UI", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}
.ta-shell *, .ta-shell *::before, .ta-shell *::after { box-sizing: border-box; }
html[dir="rtl"] .ta-shell { font-family: "Tivka Account Noto", "Tivka Account Arabic", Tahoma, Arial, sans-serif; }
.ta-shell a { color: inherit; text-decoration: none; }
.ta-shell :where(button, input) { font: inherit; }
.ta-shell button { cursor: pointer; }
.ta-shell button:disabled { cursor: not-allowed; }
.ta-shell :is(a, button, input, summary):focus-visible { outline: 3px solid #048663; outline-offset: 4px; }
.ta-shell .ta-icon { display: block; width: 24px; height: 24px; flex: 0 0 auto; }
.ta-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 14.5cqw; padding-block: max(1.2cqw, env(safe-area-inset-top)) 1cqw; gap: 8px; }
.ta-back { display: flex; width: 44px; height: 44px; align-items: center; justify-content: flex-start; }
.ta-back .ta-icon { width: 25px; height: 25px; stroke-width: 2.3; }
.ta-brand { display: block; width: 29cqw; color: var(--ta-ink); }
.ta-brand svg { display: block; width: 100%; height: auto; }
.ta-language-switch { display: flex; direction: ltr; justify-self: end; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 2px 12px; border: 0; border-radius: 999px; color: var(--ta-ink); background: #edf3f7; font-size: 3.5cqw; font-weight: 600; line-height: 1.5; }
.ta-language-switch[lang="ar"] { font-family: "Tivka Account Noto", "Tivka Account Arabic", Tahoma, Arial, sans-serif; }
.ta-language-switch .ta-icon { width: 14px; height: 14px; stroke-width: 2.1; }
.ta-language-switch { position: relative; }
.ta-language-switch::before { position: absolute; inset: -6px 0; min-height: 44px; content: ""; }
html[dir="rtl"] .ta-back .ta-icon { transform: scaleX(-1); }
.ta-shell .ta-alert { margin-block: 12px; padding: 12px 14px; border: 1px solid var(--ta-line); border-radius: 12px; font-size: 14px; line-height: 1.55; }
.ta-shell .ta-alert.is-error { color: #b32638; border-color: #f3cdd1; background: #fff1f3; }
.ta-shell .ta-alert.is-success { color: #00775b; border-color: #c0eee0; background: #e9faf4; }

.ta-dashboard { padding-block: 4cqw calc(25cqw + env(safe-area-inset-bottom)); }
.ta-dashboard > h1 { margin: 0 0 4.8cqw; font-size: 9cqw; font-weight: 700; line-height: 1.2; letter-spacing: -.04em; }
.ta-identity-card { display: grid; position: relative; grid-template-columns: 23cqw minmax(0, 1fr) 5cqw; align-items: center; gap: 4.5cqw; min-height: 32cqw; padding: 4.5cqw 4cqw; border: 1px solid var(--ta-line); border-radius: 3cqw; background: var(--ta-surface); }
.ta-identity-avatar { display: grid; width: 23cqw; height: 23cqw; place-items: center; border-radius: 50%; color: var(--ta-green); background: #e5faf3; }
.ta-identity-avatar .ta-icon { width: 11.7cqw; height: 11.7cqw; stroke-width: 1.7; }
.ta-identity-copy { min-width: 0; }
.ta-identity-copy h2 { margin: 0 0 1.7cqw; font-size: 5.2cqw; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.ta-identity-phone { margin: 0 0 1.6cqw; color: var(--ta-muted); font-size: 4.1cqw; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.ta-verification { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 1.5cqw; color: var(--ta-green); font-size: 3.5cqw; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.ta-verification > span { display: grid; width: 5cqw; height: 5cqw; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--ta-green); }
.ta-verification .ta-icon { width: 3.5cqw; height: 3.5cqw; stroke-width: 2.7; }
.ta-unverified { display: block; color: var(--ta-muted); font-size: 3.1cqw; line-height: 1.45; }
.ta-identity-edit { display: grid; width: 44px; height: 44px; margin-inline: -10px; place-items: center; color: #74849e !important; }
.ta-identity-edit .ta-icon { width: 5cqw; height: 5cqw; }
.ta-account-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; margin-block: 4.2cqw 4.7cqw; }
.ta-account-shortcuts a { display: flex; min-height: 25.5cqw; flex-direction: column; align-items: center; justify-content: center; gap: 3.4cqw; padding: 3cqw 1cqw; border: 1px solid var(--ta-line); border-radius: 2.7cqw; background: var(--ta-surface); }
.ta-account-shortcuts .ta-icon { width: 8.1cqw; height: 8.1cqw; color: var(--ta-green); stroke-width: 1.7; }
.ta-account-shortcuts span { max-width: 100%; font-size: 3.5cqw; font-weight: 700; line-height: 1.35; text-align: center; }
.ta-settings-list { overflow: hidden; border: 1px solid var(--ta-line); border-radius: 3cqw; background: var(--ta-surface); }
.ta-settings-list > * + * { border-block-start: 1px solid var(--ta-line); }
.ta-settings-row { display: flex; width: 100%; min-height: 15.6cqw; align-items: center; gap: 5.7cqw; margin: 0; padding: 3cqw 4.8cqw; border: 0; color: var(--ta-ink); background: transparent; font-size: 4.05cqw; font-weight: 600; line-height: 1.4; text-align: start; }
.ta-settings-row > .ta-icon { width: 5.7cqw; height: 5.7cqw; stroke-width: 1.8; }
.ta-settings-row > span:not(.ta-current-language):not(.ta-directional) { flex: 1; min-width: 0; }
.ta-directional { display: flex; flex: 0 0 auto; margin-inline-start: auto; color: #74849e; }
.ta-directional .ta-icon { width: 3.4cqw; height: 3.4cqw; stroke-width: 2.1; }
.ta-current-language { margin-inline-start: auto; color: var(--ta-muted); font-size: 3.6cqw; font-weight: 500; }
.ta-current-language + .ta-directional { margin-inline-start: -2.6cqw; }
.ta-settings-detail > summary { cursor: pointer; list-style: none; }
.ta-settings-detail > summary::-webkit-details-marker { display: none; }
.ta-settings-detail[open] .ta-directional { transform: rotate(90deg); }
.ta-settings-panel { display: grid; gap: 12px; padding: 0 4.8cqw 4cqw; color: var(--ta-muted); font-size: 14px; line-height: 1.65; }
.ta-settings-panel p { margin: 0; }
.ta-settings-panel a { width: fit-content; color: #00815e; text-decoration: underline; text-underline-offset: 3px; }
.ta-language-options { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 4.8cqw 4cqw; }
.ta-language-options button { min-height: 44px; padding: 4px 16px; border: 1px solid var(--ta-line); border-radius: 10px; color: var(--ta-ink); background: #f7fafc; font-size: 14px; }
.ta-language-options button[aria-pressed="true"] { color: #00815e; border-color: #72d4b4; background: #e6faf2; }
.ta-logout-form { margin-block: 4.5cqw 0; overflow: hidden; border: 1px solid var(--ta-line); border-radius: 3cqw; background: var(--ta-surface); }
.ta-logout-form button { min-height: 15.8cqw; color: #ff2d37; }
.ta-logout-form > button > .ta-icon { width: 5.7cqw; height: 5.7cqw; }
.ta-more-account { margin-block-start: 3cqw; color: var(--ta-muted); font-size: 12px; }
.ta-more-account > summary { width: fit-content; margin-inline: auto; padding: 8px; cursor: pointer; }
.ta-more-account .ta-settings-panel { padding-block: 10px 12px; }
.ta-bottom-nav { display: grid; position: fixed; z-index: 30; inset-inline: 0; bottom: 0; width: 100%; max-width: 560px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: auto; padding: 13px 9px calc(13px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--ta-line); background: #fff; }
.ta-bottom-nav a { display: flex; position: relative; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--ta-muted); font-size: 12px; line-height: 1.35; }
.ta-bottom-nav .ta-icon { width: 24px; height: 24px; }
.ta-bottom-nav a.is-active { color: var(--ta-green); font-weight: 800; }
html[dir="rtl"] .ta-dashboard > h1 { text-align: center; letter-spacing: 0; }
html[dir="rtl"] .ta-identity-card { min-height: 36cqw; gap: 3.2cqw; grid-template-columns: 22cqw minmax(0, 1fr) 5cqw; }
html[dir="rtl"] .ta-identity-avatar { width: 22cqw; height: 22cqw; }
html[dir="rtl"] .ta-identity-copy h2 { font-size: 5.7cqw; }
html[dir="rtl"] .ta-identity-phone { color: var(--ta-ink); }
html[dir="rtl"] .ta-verification { padding: .8cqw 2cqw; border-radius: 999px; font-size: 3.25cqw; background: #e5faf3; }
html[dir="rtl"] .ta-verification > span { width: 4cqw; height: 4cqw; }
html[dir="rtl"] .ta-verification .ta-icon { width: 2.7cqw; height: 2.7cqw; }
html[dir="rtl"] .ta-identity-edit { align-self: start; border-radius: 50%; color: var(--ta-ink) !important; background: #f0f5f8; }
html[dir="rtl"] .ta-account-shortcuts span { font-size: 4.05cqw; }
html[dir="rtl"] .ta-settings-row { font-weight: 600; gap: 4cqw; }
html[dir="rtl"] .ta-settings-row > .ta-icon { color: #455c7b; }
html[dir="rtl"] .ta-directional .ta-icon { transform: scaleX(-1); }
html[dir="rtl"] .ta-settings-detail[open] .ta-directional { transform: rotate(-90deg); }
html[dir="rtl"] .ta-logout-form :is(.ta-icon, .ta-directional) { color: #ec1729; }
html[dir="rtl"] .ta-bottom-nav a.is-active::after { position: absolute; bottom: -8px; width: 36px; height: 3px; border-radius: 2px; background: var(--ta-green); content: ""; }

.ta-profile { padding-block-end: max(32px, env(safe-area-inset-bottom)); }
.ta-profile-heading { display: flex; flex-direction: column; align-items: center; gap: 5cqw; margin-block: 7cqw 4.5cqw; }
.ta-profile-heading h1 { max-width: 95%; margin: 0; font-size: 8.7cqw; font-weight: 700; line-height: 1.08; letter-spacing: -.04em; text-align: center; }
.ta-profile-avatar { display: grid; width: 37cqw; height: 37cqw; flex: 0 0 auto; place-items: center; border: 1px solid #d2f4e9; border-radius: 50%; }
.ta-profile-avatar > span { display: grid; width: 29.7cqw; height: 29.7cqw; place-items: center; border-radius: 50%; color: var(--ta-green); background: #e4f9f2; }
.ta-profile-avatar .ta-icon { width: 17.3cqw; height: 17.3cqw; stroke-width: 1.5; }
.ta-profile-form { display: flex; flex-direction: column; }
.ta-profile-field { min-width: 0; }
.ta-profile-field + .ta-profile-field { margin-block-start: 8cqw; }
.ta-profile-field > label { display: block; margin-block-end: 2.4cqw; color: var(--ta-ink); font-size: 4.65cqw; font-weight: 700; line-height: 1.45; }
.ta-profile-name { position: relative; }
.ta-profile-name input { display: block; width: 100%; min-height: 14.8cqw; padding: 3cqw 4.5cqw; border: 1px solid #d2ddeb; border-radius: 2.8cqw; color: var(--ta-ink); background: #fff; font-size: 4.3cqw; font-weight: 500; }
.ta-profile-name input::placeholder { color: #a4b0c4; opacity: 1; }
.ta-profile-name .ta-icon { position: absolute; inset-inline-end: 4.5cqw; top: 50%; width: 6cqw; height: 6cqw; color: var(--ta-muted); transform: translateY(-50%); pointer-events: none; }
.ta-profile-phone { display: flex; min-height: 14.8cqw; align-items: center; gap: 4cqw; padding: 2cqw 4.5cqw; border: 1px solid #dbe5f0; border-radius: 2.8cqw; color: #7e8ca1; background: #eef3f7; }
.ta-profile-phone > .ta-icon { width: 5.3cqw; height: 5.3cqw; }
.ta-profile-phone input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; color: #63728a; background: transparent; font-size: 4.7cqw; font-weight: 700; }
.ta-profile-help { margin: 2.2cqw 0 0; color: #8694aa; font-size: 3.75cqw; font-weight: 500; line-height: 1.5; }
.ta-validation-error { display: block; margin-block-start: 5px; color: #b32638; font-size: 13px; }
.ta-validation-error:empty { display: none; }
.ta-profile-privacy { display: flex; min-height: 20cqw; align-items: center; gap: 5cqw; margin-block: 6.5cqw 7cqw; padding: 4cqw 5.5cqw; border-radius: 3cqw; color: #007d63; background: #e4f9f3; }
.ta-profile-privacy > .ta-icon { width: 8cqw; height: 8cqw; stroke-width: 1.8; }
.ta-profile-privacy p { margin: 0; font-size: 3.9cqw; font-weight: 500; line-height: 1.45; }
.ta-profile-save { display: grid; min-height: 13.7cqw; place-items: center; padding: 12px; border: 0; border-radius: 2.9cqw; color: #fff; background: var(--ta-green); font-size: 4.9cqw; font-weight: 800; line-height: 1.4; }
.ta-profile-save:hover { background: #00aa6d; }
.ta-profile-cancel { align-self: center; margin-block-start: 4.3cqw; padding: 8px 22px; font-size: 4.6cqw; font-weight: 800; line-height: 1.5; }
html[dir="rtl"] .ta-profile-heading { flex-direction: column-reverse; gap: 4cqw; margin-block: 6cqw 8.5cqw; }
html[dir="rtl"] .ta-profile-heading h1 { max-width: 100%; font-size: 8cqw; line-height: 1.5; letter-spacing: 0; }
html[dir="rtl"] .ta-profile-field > label { font-size: 4.8cqw; }
html[dir="rtl"] .ta-profile-name input { min-height: 16.5cqw; padding-inline-end: 14cqw; }
html[dir="rtl"] .ta-profile-name .ta-icon { inset-inline-start: 4.5cqw; inset-inline-end: auto; }
html[dir="rtl"] .ta-profile-name input { padding-inline-start: 14cqw; padding-inline-end: 4.5cqw; }
html[dir="rtl"] .ta-profile-phone { min-height: 16.5cqw; }
html[dir="rtl"] .ta-profile-phone input { color: var(--ta-ink); }
html[dir="rtl"] .ta-profile-privacy { min-height: 19cqw; padding-inline: 4cqw; gap: 3.5cqw; }
html[dir="rtl"] .ta-profile-privacy p { color: var(--ta-ink); font-size: 3.65cqw; }
html[dir="rtl"] .ta-profile-save { min-height: 15.4cqw; font-size: 5cqw; }
html[dir="rtl"] .ta-profile-cancel { color: #8592a8; }
@media (min-width: 560px) {
    .ta-shell { border-inline: 1px solid #e7edf3; }
    .ta-bottom-nav { border-inline: 1px solid #e7edf3; }
    .ta-bottom-nav a { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ta-shell * { scroll-behavior: auto; } }
