:root {
    --client-ink: #243442;
    --client-muted: #75818b;
    --client-line: #e6ebef;
    --client-accent: #d4a53d;
    --client-blue: #3b7795;
}
* { box-sizing: border-box; }
body.client-app-body { min-height: 100vh; margin: 0; background: #f4f6f7; color: #24323d; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.client-app-header { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 8px max(16px, env(safe-area-inset-left)); background: #243442; color: white; box-shadow: 0 3px 14px rgba(24, 39, 51, .16); }
.client-app-brand { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-size: .98rem; font-weight: 750; }
.client-app-brand img { width: 34px; height: 34px; object-fit: contain; }
.client-app-header__actions { display: flex; align-items: center; gap: 12px; }
.client-app-desktop-link { display: inline-flex; align-items: center; gap: 6px; color: #f4d57c; font-size: .76rem; text-decoration: none; }
.client-app-desktop-link:hover { color: #fff; }
.client-app-avatar,.client-app-account-avatar { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #e6bb58; color: #263746; font-weight: 800; text-decoration: none; }
.client-app-main { width: min(100%, 760px); min-height: calc(100vh - 58px); margin: 0 auto; padding: 18px 15px calc(92px + env(safe-area-inset-bottom)); }
.client-app-main--auth { display: grid; align-items: center; padding-bottom: 24px; }
.client-app-flashes { position: fixed; z-index: 1100; top: 66px; left: 50%; width: min(760px, calc(100% - 24px)); transform: translateX(-50%); }
.client-app-welcome { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 160px; margin-bottom: 15px; padding: 22px; border-radius: 24px; background: linear-gradient(125deg, #263a49, #354c5d); color: white; box-shadow: 0 12px 28px rgba(33, 52, 68, .17); }
.client-app-welcome::after { position: absolute; right: -50px; bottom: -100px; width: 230px; height: 230px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 58px rgba(255,255,255,.02); content: ""; pointer-events: none; }
.client-app-welcome__copy { position: relative; z-index: 1; min-width: 0; }
.client-app-eyebrow { display: block; color: #9caab4; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.client-app-welcome .client-app-eyebrow { color: #e4c56f; }
.client-app-welcome h1 { margin: 8px 0 5px; font-size: clamp(1.35rem, 5vw, 1.9rem); font-weight: 800; letter-spacing: -.035em; }
.client-app-welcome p { margin: 0; color: #cbd5dc; font-size: .88rem; }
.client-app-order-cta { position: relative; z-index: 1; display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 98px; height: 98px; border: 1px solid rgba(255,255,255,.25); border-radius: 22px; background: #f0c45a; color: #273746; font-size: .72rem; font-weight: 800; text-align: center; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.client-app-order-cta i { font-size: 1.8rem; }
.client-app-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0 0 14px; }
.client-stat-card { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 13px 11px; border: 1px solid #e8edf0; border-radius: 17px; background: white; color: inherit; text-decoration: none; box-shadow: 0 3px 10px rgba(26, 43, 55, .035); }
.client-stat-card > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.client-stat-card small { color: var(--client-muted); font-size: .68rem; white-space: nowrap; }
.client-stat-card strong { color: var(--client-ink); font-size: 1.15rem; line-height: 1.25; }
.client-stat-icon { display: grid; flex: 0 0 auto; width: 35px; height: 35px; place-items: center; border-radius: 12px; font-size: 1rem; }
.client-stat-icon.is-blue { background: #eaf3f8; color: #397797; }
.client-stat-icon.is-green { background: #eaf5ef; color: #33835a; }
.client-stat-icon.is-gold { background: #fff5db; color: #9b741b; }
.client-app-active-note { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid #e6d598; border-radius: 14px; background: #fff9e9; color: #705718; font-size: .84rem; font-weight: 700; text-decoration: none; }
.client-app-section { margin: 19px 0; }
.client-app-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 0 1px 10px; }
.client-app-section-heading h2 { margin: 3px 0 0; color: var(--client-ink); font-size: 1.23rem; font-weight: 800; letter-spacing: -.025em; }
.client-app-section-heading > a { color: #3d7794; font-size: .77rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.client-app-section-heading > span { color: var(--client-muted); font-size: .78rem; }
.client-order-card { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; padding: 12px; border: 1px solid #e8edf0; border-radius: 16px; background: white; color: inherit; text-decoration: none; box-shadow: 0 3px 10px rgba(26, 43, 55, .035); }
.client-order-card__icon { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 13px; background: #eff4f6; color: #4c7083; }
.client-order-card__main { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 3px; }
.client-order-card__main strong { color: var(--client-ink); font-size: .87rem; }
.client-order-card__main small { overflow: hidden; color: var(--client-muted); font-size: .71rem; text-overflow: ellipsis; white-space: nowrap; }
.client-order-card__sum { color: #283d4b; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.client-order-card__chevron { color: #9ba6ad; font-size: .72rem; }
.client-app-bonus-card { display: flex; align-items: center; gap: 12px; margin: 17px 0; padding: 16px; border: 1px solid #f0dfab; border-radius: 19px; background: linear-gradient(115deg, #fff9e8, #fff); }
.client-app-bonus-card__icon { display: grid; flex: 0 0 auto; width: 43px; height: 43px; place-items: center; border-radius: 14px; background: #f4d77e; color: #705617; font-size: 1.2rem; }
.client-app-bonus-card > div:nth-child(2) { display: flex; flex-direction: column; }
.client-app-bonus-card span { color: #827145; font-size: .75rem; }
.client-app-bonus-card strong { color: #443914; font-size: 1.2rem; }
.client-app-bonus-card small { color: #8a805f; font-size: .7rem; }
.client-app-bonus-card > a { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.8); color: #8a6c1d; text-decoration: none; }
.client-app-account-card { display: flex; align-items: center; gap: 11px; margin-top: 20px; padding: 12px; border: 1px solid #e8edf0; border-radius: 16px; background: white; }
.client-app-account-card > div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.client-app-account-card strong { color: var(--client-ink); font-size: .84rem; }
.client-app-account-card small { overflow: hidden; color: var(--client-muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.client-app-nav { position: fixed; z-index: 1030; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; gap: 3px; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #e1e7eb; background: rgba(255,255,255,.97); box-shadow: 0 -6px 22px rgba(32, 47, 57, .08); backdrop-filter: blur(12px); }
.client-app-nav a { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 4px 2px; border-radius: 12px; color: #78858e; font-size: .61rem; font-weight: 650; text-decoration: none; }
.client-app-nav a i { font-size: 1.13rem; line-height: 1; }
.client-app-nav a.is-active { color: #315f76; }
.client-app-nav a.client-app-nav__primary { color: #354b59; }
.client-app-nav a.client-app-nav__primary i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 11px; background: #eec557; font-size: 1.05rem; }
.client-page-heading { margin: 7px 1px 17px; }
.client-page-heading h1 { margin: 5px 0 4px; color: var(--client-ink); font-size: 1.7rem; font-weight: 850; letter-spacing: -.04em; }
.client-page-heading p { margin: 0; color: var(--client-muted); font-size: .86rem; }
.client-history-card,.client-detail-card { margin: 0 0 12px; padding: 15px; border: 1px solid #e7edf0; border-radius: 18px; background: white; box-shadow: 0 4px 12px rgba(28, 44, 56, .035); }
.client-history-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.client-history-card__number { color: var(--client-ink); font-size: 1rem; font-weight: 800; }
.client-history-card__sum { margin-left: auto; color: #263c4a; font-size: .98rem; }
.client-status-pill { display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid #e5ebef; border-radius: 99px; background: #f3f5f6; color: #52616a; font-size: .67rem; font-weight: 750; line-height: 1.35; }
.client-status-pill.status-success { border-color: #c4e6d2; background: #e7f6ed; color: #247a4a; }
.client-status-pill.status-ready { border-color: #c7e1f1; background: #e8f5fc; color: #24698e; }
.client-status-pill.status-delivery { border-color: #d9d1f1; background: #f1edfc; color: #65539a; }
.client-status-pill.status-process,.client-status-pill.status-new { border-color: #f0dcab; background: #fff6df; color: #846311; }
.client-status-pill.status-cancel { border-color: #f1cbd0; background: #fff0f1; color: #a43b49; }
.client-history-card__date { display: flex; align-items: center; gap: 6px; margin: 10px 0; color: #64717b; font-size: .78rem; }
.client-history-card__items { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid #eef1f3; color: #45545e; font-size: .78rem; }
.client-history-card__items small { color: var(--client-muted); }
.client-history-card__actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 9px; border-top: 1px solid #eef1f3; }
.client-history-card__actions .btn { min-height: 38px; padding-inline: 14px; font-size: .78rem; font-weight: 700; }
.client-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 13px; color: var(--client-muted); font-size: .82rem; }
.client-pagination a { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--client-line); border-radius: 50%; background: white; color: var(--client-ink); text-decoration: none; }
.client-back-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; color: #497b93; font-size: .82rem; font-weight: 700; text-decoration: none; }
.client-order-detail-hero { margin-bottom: 13px; padding: 19px; border-radius: 21px; background: linear-gradient(130deg, #263a49, #3b5668); color: white; }
.client-order-detail-hero .client-app-eyebrow { color: #edcf78; }
.client-order-detail-hero h1 { display: inline-block; margin: 2px 10px 0 0; font-size: 1.75rem; font-weight: 850; }
.client-order-detail-hero .client-status-pill { vertical-align: 4px; }
.client-order-detail-hero p { margin: 9px 0 0; color: #d7e0e5; font-size: .81rem; }
.client-detail-card h2 { margin: 0 0 13px; color: var(--client-ink); font-size: 1rem; font-weight: 800; }
.client-detail-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf0f2; font-size: .81rem; }
.client-detail-line:last-child { border-bottom: 0; }
.client-detail-line > span:first-child { min-width: 0; }
.client-detail-line small { color: var(--client-muted); white-space: nowrap; }
.client-detail-total { margin-top: 3px; color: var(--client-ink); font-size: .9rem; font-weight: 800; }
.client-order-comment { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; padding: 10px; border-radius: 12px; background: #f5f7f8; font-size: .79rem; }
.client-payment-state { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 11px; border-top: 1px solid #edf0f2; color: #68757e; font-size: .8rem; }
.client-repeat-order-form { display: flex; flex-direction: column; gap: 8px; margin: 15px 0 6px; text-align: center; }
.client-repeat-order-form button { min-height: 50px; font-weight: 750; }
.client-repeat-order-form small { color: var(--client-muted); font-size: .72rem; }
.client-balance-card { margin-bottom: 19px; padding: 20px; border: 1px solid #ecd995; border-radius: 21px; background: linear-gradient(130deg, #fff7df, #fff); }
.client-balance-card > span { display: block; color: #7c6528; font-size: .82rem; font-weight: 700; }
.client-balance-card > strong { display: block; margin: 5px 0; color: #3f371e; font-size: 2.15rem; font-weight: 850; letter-spacing: -.04em; }
.client-balance-card > strong small { font-size: .9rem; font-weight: 700; }
.client-balance-card p { margin: 0; color: #837752; font-size: .75rem; }
.client-bonus-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #edf0f2; }
.client-bonus-row:last-child { border-bottom: 0; }
.client-bonus-row__icon { display: grid; flex: 0 0 auto; width: 35px; height: 35px; place-items: center; border-radius: 50%; }
.client-bonus-row__icon.is-earned { background: #e9f6ed; color: #27804d; }
.client-bonus-row__icon.is-spent { background: #fff0f1; color: #b34450; }
.client-bonus-row__main { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 3px; }
.client-bonus-row__main strong { color: var(--client-ink); font-size: .82rem; }
.client-bonus-row__main small { color: var(--client-muted); font-size: .68rem; }
.client-bonus-row__main a { color: #497b93; text-decoration: none; }
.client-bonus-comment { overflow-wrap: anywhere; color: #45545e !important; }
.client-bonus-row__amount { flex: 0 0 auto; font-size: .9rem; }
.client-app-empty { display: flex; align-items: center; flex-direction: column; margin: 22px 0; padding: 27px 20px; border: 1px dashed #d9e1e6; border-radius: 19px; background: rgba(255,255,255,.65); text-align: center; }
.client-app-empty > i { margin-bottom: 7px; color: #9aa7af; font-size: 2rem; }
.client-app-empty strong { color: var(--client-ink); font-size: .95rem; }
.client-app-empty span { margin-top: 4px; color: var(--client-muted); font-size: .78rem; }
.client-app-empty--compact { padding: 18px; }
.client-auth-card { width: min(100%, 440px); margin: auto; padding: 25px; border: 1px solid #e7edf0; border-radius: 23px; background: white; box-shadow: 0 12px 32px rgba(33, 52, 68, .09); }
.client-auth-icon { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 13px; border-radius: 17px; background: #fff4d4; color: #927020; font-size: 1.4rem; }
.client-auth-card h1 { margin: 0; color: var(--client-ink); font-size: 1.55rem; font-weight: 850; }
.client-auth-card > p { margin: 5px 0 18px; color: var(--client-muted); font-size: .83rem; }
.client-auth-card .form-control { min-height: 48px; border-color: #dce4e9; border-radius: 12px; font-size: .95rem; }
.client-auth-card .btn-primary { border: 0; border-radius: 13px; background: #30495a; font-size: .9rem; font-weight: 750; }
.client-auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: .77rem; }
.client-auth-links a { color: #447890; font-weight: 700; text-decoration: none; }
.client-profile-form .form-label { margin-bottom: 5px; color: #53616b; font-size: .76rem; font-weight: 700; }
.client-profile-form .form-control { min-height: 43px; border-color: #dfe6ea; border-radius: 11px; font-size: .88rem; }
.client-profile-form h2 { margin-bottom: 15px; }
.client-profile-form details { padding: 11px 12px; border: 1px solid #e7edf0; border-radius: 13px; background: #f8fafb; }
.client-profile-form details summary { color: #4c6675; cursor: pointer; font-size: .8rem; font-weight: 750; }
.client-saved-address { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid #eef1f3; }
.client-saved-address:last-of-type { border-bottom: 0; }
.client-saved-address > i { margin-top: 2px; color: #507d91; }
.client-saved-address > div { display: flex; flex-direction: column; gap: 3px; }
.client-saved-address strong { color: #374954; font-size: .77rem; font-weight: 700; }
.client-saved-address small { color: var(--client-muted); font-size: .7rem; }
.client-address-editor { position: relative; padding: 0 0 12px; border-bottom: 1px solid #eef1f3; }
.client-address-editor .client-saved-address { border-bottom: 0; padding-bottom: 7px; }
.client-address-edit { margin-left: 27px; color: #4c6675; font-size: .77rem; }
.client-address-edit summary { cursor: pointer; font-weight: 700; }
.client-address-edit .form-label,.client-address-add__form .form-label { margin-bottom: 4px; color: #53616b; font-size: .7rem; font-weight: 700; }
.client-address-edit .form-control,.client-address-add__form .form-control { min-height: 40px; border-color: #dfe6ea; border-radius: 10px; font-size: .83rem; }
.client-address-delete { position: absolute; top: 8px; right: 0; }
.client-address-delete .btn { font-size: .68rem; }
.client-address-add > summary { display: inline-flex; align-items: center; cursor: pointer; list-style: none; }
.client-address-add > summary::-webkit-details-marker { display: none; }
.client-address-add[open] > summary { background: #fff; }
.client-address-add__form { padding: 13px; border: 1px solid #e7edf0; border-radius: 14px; background: #f8fafb; }
#addresses { scroll-margin-top: 72px; }
.client-app-install { position: fixed; z-index: 1060; right: 12px; bottom: calc(75px + env(safe-area-inset-bottom)); left: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 540px; margin: 0 auto; padding: 12px 14px; border-radius: 16px; background: #30495a; color: white; box-shadow: 0 9px 26px rgba(25, 42, 54, .25); }
.client-app-install[hidden] { display: none; }
.client-app-install > div { display: flex; flex-direction: column; gap: 2px; }
.client-app-install strong { font-size: .8rem; }
.client-app-install span { color: #d5e0e6; font-size: .68rem; }
.client-app-install button { flex: 0 0 auto; border-radius: 99px; font-weight: 750; }
.client-app-ios-help { width: min(100% - 30px, 720px); margin: 10px auto 18px; color: #75818b; font-size: .69rem; }
.client-app-ios-help summary { cursor: pointer; }
.client-app-ios-help p { margin: 7px 0 0; }
.client-app-web-nav { display: none; }
@media (max-width: 760px), (display-mode: standalone) {
    body.client-app-web-user { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
    .client-app-web-nav { position: fixed; z-index: 1028; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; gap: 3px; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #e1e7eb; background: rgba(255,255,255,.97); box-shadow: 0 -6px 22px rgba(32, 47, 57, .08); backdrop-filter: blur(12px); }
    .client-app-web-nav a { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 4px 2px; color: #78858e; font-size: .61rem; font-weight: 650; text-decoration: none; }
    .client-app-web-nav a i { font-size: 1.13rem; line-height: 1; }
    .client-app-web-nav a.is-primary { color: #354b59; }
    .client-app-web-nav a.is-primary i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 11px; background: #eec557; font-size: 1.05rem; }
}
@media (min-width: 720px) {
    .client-app-main { padding-top: 24px; }
    .client-app-welcome { min-height: 185px; padding: 28px; }
    .client-app-stats { gap: 13px; }
    .client-stat-card { padding: 16px; }
    .client-app-nav { right: auto; left: 50%; width: min(760px, 100%); transform: translateX(-50%); border: 1px solid #e1e7eb; border-bottom: 0; border-radius: 18px 18px 0 0; }
}
@media (max-width: 390px) {
    .client-app-welcome { padding: 17px; }
    .client-app-order-cta { width: 82px; height: 82px; border-radius: 19px; }
    .client-stat-card { gap: 7px; padding: 10px 8px; }
    .client-stat-icon { width: 30px; height: 30px; }
    .client-app-desktop-link span { display: none; }
    .client-history-card__actions .btn { padding-inline: 10px; }
}
