.modal-auth-view .app-modal-overlay {
  background: rgba(236, 241, 238, .72);
  backdrop-filter: blur(10px);
}

.modal-auth-view .app-modal-window { padding: 20px; }

.modal-auth-view .app-modal-content {
  position: relative;
  width: min(850px, calc(100vw - 40px));
  max-width: 850px;
  min-height: 0;
  max-height: calc(100vh - 40px);
  box-sizing: border-box;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    url('/assets/imgs/modal_bckg_top_r.jpg') top right / 220px auto no-repeat,
    url('/assets/imgs/modal_bckg_bottom_l.jpg') bottom left / 240px auto no-repeat,
    url('/assets/imgs/modal_bckg_bottom_r.jpg') bottom right / 200px auto no-repeat,
    #fff;
  box-shadow: 0 32px 90px rgba(19, 52, 38, .24);
}

.modal-auth-view .modal-close {
  position: fixed;
  top: max(32px, calc(50% - 45vh));
  left: calc(50% + min(425px, 45vw) - 58px);
  width: 46px;
  height: 46px;
  box-sizing: border-box;
  padding: 0;
  border-radius: 50%;
  background: #fff url('/assets/imgs/icons_svg/close.svg') center / 20px no-repeat;
  box-shadow: 0 10px 28px rgba(13, 45, 31, .14);
}

.modal-auth-view .modal-close::before,
.modal-auth-view .modal-close::after { content: none; }

.auth-page { position: relative; z-index: 1; }
.auth-card { max-width: 100%; margin: 0 auto; padding: 28px 56px 24px; }

.auth-page .back_btn {
  display: inline-flex !important;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  box-sizing: border-box;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e3f4eb;
  font: 14px 'ProximaNova-Semibold';
  text-decoration: none;
}

.auth-page .back_btn::before {
  content: '';
  width: 17px;
  height: 17px;
  background: url('/assets/imgs/icons_svg/arrow-back.svg') center / contain no-repeat;
}

.auth-page .back_btn span::before,
.auth-page .back_btn span::after { content: none; }

.auth-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 20px;
}

.auth-header h1 { margin: 0 0 3px; color: #11191f; font: 46px/1 'ProximaNova-Bold'; letter-spacing: -.025em; }
.auth-header p { color: #6d737a; font-size: 17px; line-height: 1.3; }
.auth-switch-prompt { display: flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 20px; border: 1px solid #ccd5d1; border-radius: 999px; color: #686f73; background: rgba(255,255,255,.8); font-size: 14px; white-space: nowrap; }
.auth-switch-prompt a { color: var(--brand); font-family: 'ProximaNova-Bold'; text-decoration: underline; text-underline-offset: 3px; }

.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.auth-page.registration .name-field,
.auth-page.registration .password-field { grid-column: 1 / -1; }
.auth-page.login .auth-grid { max-width: 540px; margin: 0 auto; grid-template-columns: 1fr; }
.modal-login-view .app-modal-content { width: min(760px, calc(100vw - 40px)); max-width: 760px; }
.modal-login-view .modal-close { left: calc(50% + min(380px, 45vw) - 58px); }
.auth-page.login .auth-card { padding: 26px 62px 28px; }
.auth-page.login .auth-header { margin-top: 38px; margin-bottom: 28px; }
.auth-page.login .auth-header p { max-width: 330px; }
.auth-page.login .auth-grid { max-width: none; gap: 18px; }
.auth-page.login .form-group input { min-height: 54px; }
input[name='login'] { background-image: url('/assets/imgs/icons_svg/user.svg'); }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 18px 0 26px; }
.login-options > a { color: var(--brand); font: 15px 'ProximaNova-Semibold'; text-decoration: underline; text-underline-offset: 3px; }
.login-remember { display: inline-flex; align-items: center; gap: 11px; color: #222c27; font-size: 15px; cursor: pointer; }
.login-remember input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.login-remember span { position: relative; width: 28px; height: 28px; box-sizing: border-box; border: 1px solid #c8d2cd; border-radius: 5px; background: #fff; }
.login-remember input:checked + span { border-color: var(--brand); background: var(--brand); }
.login-remember input:checked + span::after { content: ''; position: absolute; left: 9px; top: 4px; width: 7px; height: 13px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.login-remember input:focus-visible + span { outline: 3px solid rgba(23,106,75,.25); outline-offset: 2px; }
.auth-page.login .auth-submit-btn { width: 100%; }
.login-legal { max-width: 530px; margin: 18px auto 0; color: #777f7b; font-size: 12px; line-height: 1.35; text-align: center; }
.login-legal a { color: var(--brand); font-family: 'ProximaNova-Semibold'; text-underline-offset: 2px; }

.form-group { position: relative; display: flex; min-width: 0; flex-direction: column; }
.form-group label { margin: 0 0 7px; color: #131b20; font: 14px 'ProximaNova-Semibold'; }
.form-group label b { color: inherit; }

.form-group input,
.form-group textarea {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid #d6dcda;
  border-radius: 12px;
  padding: 0 16px 0 48px;
  color: #20272b;
  background-color: rgba(255,255,255,.86);
  background-position: 17px center;
  background-repeat: no-repeat;
  background-size: 21px;
  font: 15px 'ProximaNova-Regular';
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.form-group textarea { min-height: 62px; padding-top: 13px; padding-bottom: 10px; resize: vertical; line-height: 1.35; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #969da2; opacity: 1; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--brand); outline: none; background-color: #fff; box-shadow: 0 0 0 3px rgba(23,106,75,.11); }

input[name='name'] { background-image: url('/assets/imgs/icons_svg/user.svg'); }
input[name='email'] { background-image: url('/assets/imgs/icons_svg/email.svg'); }
input[name='password'] { padding-right: 52px; background-image: url('/assets/imgs/icons_svg/eye-off.svg'); }
.auth-page .phone-group {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d6dcda;
  border-radius: 12px;
  background: rgba(255,255,255,.86);
}
.auth-page .phone-group::before { content: ''; position: absolute; z-index: 1; left: 17px; top: 50%; width: 21px; height: 21px; background: url('/assets/imgs/icons_svg/phone.svg') center / contain no-repeat; transform: translateY(-50%); pointer-events: none; }
.auth-page .phone-prefix { position: absolute; z-index: 1; top: 0; bottom: 0; left: 49px; display: flex; align-items: center; padding: 0; color: #858d91; font: 15px 'ProximaNova-Regular'; line-height: 1; pointer-events: none; }
.auth-page .phone-group input { width: 100% !important; height: 44px; min-height: 44px; padding: 0 16px 0 78px !important; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; font-size: 15px; }
.auth-page .phone-group:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(23,106,75,.11); }

.form-group .eye { position: absolute; z-index: 2; top: 28px; right: 10px; width: 38px; height: 38px; border: 0; background: url('/assets/imgs/icons_svg/opened_eye.svg') center / 21px no-repeat; cursor: pointer; }
.form-group .eye.is-visible { background-image: url('/assets/imgs/icons_svg/eye-off.svg'); }

.addresses-block { margin-top: 20px; }
.addresses-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.addresses-header h2 { margin: 0; color: #10191e; font: 29px/1.1 'ProximaNova-Bold'; }
.address-switcher { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 9px; padding: 2px 2px 6px; }
.address-switcher-btn { flex: 0 0 auto; min-height: 34px; max-width: 220px; border: 1px solid #d9e5df; border-radius: 999px; padding: 0 13px; color: var(--brand-dark); background: rgba(255,255,255,.8); font: 12px 'ProximaNova-Semibold'; cursor: pointer; }
.address-switcher-btn.active { border-color: #ffcba7; background: #fffcfa; color: var(--brand-dark); }
.auth-page.registration .address-switcher { display: none; }

.address-card { display: none; margin: 0; padding: 12px 20px 14px; border: 1px solid #d5e9df; border-radius: 15px; background: rgba(241, 251, 246, .82); }
.address-card.active { display: block; }
.address-top { display: flex; min-height: 31px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.address-title { display: flex; align-items: center; gap: 10px; color: #f06411; font: 13px 'ProximaNova-Bold'; }
.address-title > span { display: inline-flex; min-height: 31px; align-items: center; padding: 0 13px 0 34px; border-radius: 999px; background: #ffe9d5 url('/assets/imgs/icons_svg/pin.svg') 12px center / 16px no-repeat; }
.address-main-btn { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; margin: 0; padding: 0 14px; border: 1px solid rgba(23,106,75,.32); border-radius: 10px; color: var(--brand-dark); background: #fff; font: 12px 'ProximaNova-Semibold'; cursor: pointer; transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease; }
.address-main-btn:hover { border-color: var(--brand); color: #fff; background: var(--brand); transform: translateY(-1px); }
.address-main-btn:focus-visible { outline: 3px solid rgba(23,106,75,.18); outline-offset: 2px; }
.address-main-btn[hidden] { display: none; }
.remove-address-btn { width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent url('/assets/imgs/icons_svg/delete.svg') center / 20px no-repeat; cursor: pointer; }

.address-grid,
.address-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin-bottom: 10px; }
.address-card input[name$='[city]'] + .readonly-city-input,
.address-card .readonly-city-input { color: #6b7377; background-color: rgba(255,255,255,.88); background-image: url('/assets/imgs/icons_svg/city.svg'); opacity: 1; cursor: default; }
.address-card input[name$='[street]'] { background-image: url('/assets/imgs/icons_svg/pin.svg'); }
.address-card input[name$='[building]'] { background-image: url('/assets/imgs/icons_svg/house.svg'); }
.address-card input[name$='[room]'] { background-image: url('/assets/imgs/icons_svg/apartment.svg'); }
.address-card input[name$='[entrance]'] { background-image: url('/assets/imgs/icons_svg/apartment.svg'); }
.address-card input[name$='[floor]'] { background-image: url('/assets/imgs/icons_svg/stairs.svg'); }
.address-card textarea { background-image: url('/assets/imgs/icons_svg/comment.svg'); background-position: 17px 15px; }

.add-address-btn { display: flex; width: calc(100% - 64px); min-height: 44px; align-items: center; justify-content: center; gap: 10px; margin: 10px auto 12px; border: 1px dashed #37a676; border-radius: 999px; color: #26342e; background: rgba(255,255,255,.76); font: 14px 'ProximaNova-Semibold'; cursor: pointer; }
.add-address-btn span { width: 27px; height: 27px; border-radius: 50%; background: var(--brand) url('/assets/imgs/icons_svg/plus.svg') center / 14px no-repeat; }
.add-address-btn:hover { color: var(--brand-dark); background-color: #fff; }

.form-status { margin-bottom: 8px; }
.auth-submit-btn { display: flex; width: min(570px, calc(100% - 80px)); min-height: 54px; align-items: center; justify-content: center; gap: 16px; margin: 0 auto; border: 0; border-radius: 999px; color: #fff; background: var(--brand); box-shadow: 0 12px 26px rgba(23,106,75,.2); font: 20px 'ProximaNova-Bold'; cursor: pointer; transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.auth-submit-btn i { width: 34px; height: 34px; margin-right: -48px; border-radius: 50%; background: #fff url('/assets/imgs/icons_svg/arrow-right.svg') center / 18px no-repeat; }
.auth-submit-btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 16px 32px rgba(23,106,75,.24); }
.auth-submit-btn:focus-visible,
.add-address-btn:focus-visible,
.remove-address-btn:focus-visible,
.auth-page .back_btn:focus-visible { outline: 3px solid rgba(23,106,75,.3); outline-offset: 3px; }

.checkbox-wrap { padding: 8px 0 0; }
.custom-checkbox { display: flex; max-width: 580px; align-items: flex-start; justify-content: center; gap: 8px; margin: 0 auto; color: #6d7477; font-size: 11px; line-height: 1.25; cursor: pointer; }
.custom-checkbox input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkmark { position: relative; flex: 0 0 15px; width: 15px; height: 15px; border: 1px solid #aebbb5; border-radius: 4px; background: #fff; }
.custom-checkbox input:checked + .checkmark { border-color: var(--brand); background: var(--brand); }
.checkmark::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; opacity: 0; transform: rotate(45deg); }
.custom-checkbox input:checked + .checkmark::after { opacity: 1; }
.checkbox-text a { color: var(--brand); font-family: 'ProximaNova-Semibold'; text-underline-offset: 2px; }

.modal-account-view .app-modal-content {
  width: min(1320px, calc(100vw - 48px));
  max-width: 1320px;
  height: min(820px, calc(100vh - 48px));
  max-height: 820px;
  background:
    url('/assets/imgs/modal_bckg_top_r.jpg') top right / 270px auto no-repeat,
    url('/assets/imgs/modal_bckg_bottom_l.jpg') bottom left / 300px auto no-repeat,
    #fff;
}

.modal-account-view .modal-close {
  top: max(36px, calc(50% - min(410px, calc(50vh - 24px)) + 22px));
  left: calc(50% + min(660px, calc(50vw - 24px)) - 66px);
}

.auth-page.account { height: 100%; min-height: 0; }
.account-shell { display: grid; height: 100%; min-height: 0; grid-template-columns: 320px minmax(0, 1fr); }
.account-sidebar {
  display: flex;
  min-height: 0;
  box-sizing: border-box;
  flex-direction: column;
  padding: 30px 22px 26px;
  border-right: 1px solid rgba(18, 81, 57, .08);
  background: rgba(248, 252, 250, .82);
}

.account-back {
  display: inline-flex;
  width: max-content;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e4f5ec;
  font: 15px 'ProximaNova-Semibold';
  cursor: pointer;
}
.account-back::before { content: ''; width: 17px; height: 17px; background: url('/assets/imgs/icons_svg/arrow-back.svg') center / contain no-repeat; }
.account-back:hover { background: #d7efe3; }

.account-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 26px 0 20px;
  padding: 24px 20px 22px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 32px rgba(23, 60, 43, .06);
}
.account-avatar { width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; background: #e4f5ec url('/assets/imgs/icons_svg/user.svg') center / 36px no-repeat; }
.account-summary strong { margin-bottom: 5px; color: #11191f; font: 21px/1.2 'ProximaNova-Bold'; }
.account-summary > span:not(.account-avatar) { overflow: hidden; color: #69747e; font-size: 14px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.account-summary-edit { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3f5f4 url('/assets/imgs/icons_svg/edit.svg') center / 17px no-repeat; cursor: pointer; }
.account-summary-edit:hover { background-color: #e7f4ed; }

.account-nav { display: grid; gap: 5px; }
.account-nav-item {
  position: relative;
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 0 16px 0 55px;
  border: 0;
  border-radius: 12px;
  color: #263340;
  background: transparent;
  font: 16px 'ProximaNova-Regular';
  text-align: left;
  cursor: pointer;
}
.account-nav-item::before { content: ''; position: absolute; left: 19px; width: 23px; height: 23px; background: center / contain no-repeat; opacity: .78; }
.account-nav-profile::before { background-image: url('/assets/imgs/icons_svg/user.svg'); }
.account-nav-addresses::before { background-image: url('/assets/imgs/icons_svg/pin.svg'); }
.account-nav-history::before { background-image: url('/assets/imgs/icons_svg/history.svg'); }
.account-nav-item:hover { color: var(--brand-dark); background: rgba(229, 246, 237, .7); }
.account-nav-item.active { color: var(--brand-dark); background: #e1f4ea; font-family: 'ProximaNova-Semibold'; }
.account-nav-item.active::after { content: ''; position: absolute; top: 9px; bottom: 9px; left: -22px; width: 4px; border-radius: 0 5px 5px 0; background: var(--brand); }

.account-sidebar-actions { display: grid; gap: 8px; margin-top: auto; padding: 20px 7px 0; border-top: 1px solid #dce6e1; }
.account-sidebar-actions button { display: flex; min-height: 38px; align-items: center; padding: 0 8px 0 38px; border: 0; color: #36434d; background: transparent center left 8px / 18px no-repeat; font: 14px 'ProximaNova-Regular'; text-align: left; cursor: pointer; }
.account-sidebar-actions .account-logout { background-image: url('/assets/imgs/icons_svg/logout.svg'); }
.account-sidebar-actions .account-delete { color: #df3f38; background-image: url('/assets/imgs/icons_svg/delete.svg'); }
.account-sidebar-actions button:hover { text-decoration: underline; text-underline-offset: 3px; }

.account-content { min-width: 0; overflow-y: auto; padding: 42px 42px 40px; scrollbar-color: rgba(23,106,75,.35) transparent; scrollbar-width: thin; }
.account-heading { margin: 0 58px 38px 0; }
.account-heading h1 { margin: 0 0 5px; color: #0d151a; font: 47px/1 'ProximaNova-Bold'; letter-spacing: -.025em; }
.account-heading p { margin: 0; color: #697783; font-size: 17px; }
.account-panel h2 { margin: 0 0 24px; color: #10181d; font: 31px/1.1 'ProximaNova-Bold'; }
.account-panel-intro { max-width: 620px; margin: -13px 0 25px; color: #6d7880; font-size: 15px; }
.account-form { max-width: 800px; }
.account-profile .auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-profile .name-field { grid-column: 1 / -1; }
.account-form .auth-submit-btn { width: min(520px, 100%); margin-top: 22px; }
.account-addresses .addresses-block { margin-top: 0; }

.account-history-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -9px 0 18px;
  padding: 2px 2px 6px;
  scrollbar-color: rgba(23,106,75,.24) transparent;
  scrollbar-width: thin;
}
.account-history-filter {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #dbe5e0;
  border-radius: 999px;
  color: #435149;
  background: rgba(255,255,255,.88);
  font: 13px 'ProximaNova-Regular';
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.account-history-filter span { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 4px; border-radius: 999px; color: #607069; background: #edf2ef; box-sizing: border-box; font-size: 11px; font-variant-numeric: tabular-nums; }
.account-history-filter:hover { border-color: rgba(23,106,75,.45); color: var(--brand-dark); }
.account-history-filter.active { border-color: var(--brand); color: #fff; background: var(--brand); font-family: 'ProximaNova-Semibold'; }
.account-history-filter.active span { color: var(--brand-dark); background: #fff; }
.account-history-filter-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.account-order-card[hidden] { display: none; }

.account-orders-list { display: grid; gap: 14px; }
.account-order-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 110px auto;
  grid-template-rows: auto auto;
  column-gap: 22px;
  padding: 12px 18px 12px 12px;
  border: 1px solid #e1e8e4;
  border-radius: 15px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 7px 20px rgba(26, 64, 46, .055);
}
.account-order-card .currency-symbol {
  margin-left: 4px;
  font-family: "Proxima Nova", Arial, sans-serif;
  font-size: .86em;
  font-weight: 550;
}
.account-order-restaurant { grid-row: 1 / 3; width: 118px; height: 104px; overflow: hidden; border-radius: 12px; background: #edf2ef; }
.account-order-restaurant img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.account-order-restaurant:hover img { transform: scale(1.045); }
.account-order-main { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.account-order-title { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.account-order-title strong { overflow: hidden; color: #10181d; font: 19px 'ProximaNova-Bold'; text-overflow: ellipsis; white-space: nowrap; }
.account-order-title span,
.account-order-main time { color: #59666f; font-size: 13px; }
.account-order-main time { margin-top: 7px; font-variant-numeric: tabular-nums; }
.account-order-items { position: relative; margin-top: 11px; padding-left: 28px; color: #59666f; font-size: 13px; }
.account-order-items::before { content: ''; position: absolute; top: 50%; left: 1px; width: 18px; height: 18px; background: url('/assets/imgs/dish_icon.png') center / contain no-repeat; filter: grayscale(1); opacity: .72; transform: translateY(-50%); }
.account-order-state { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-top: 4px; }
.account-order-status-group { display: flex; min-width: 0; align-items: center; gap: 8px; }
.account-order-status { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; color: #9a6100; background: #fff2dc; font: 13px 'ProximaNova-Semibold'; white-space: nowrap; }
.account-order-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #f49a18; }
.account-order-status.is-delivered { color: #086c40; background: #e6f8ee; }
.account-order-status.is-delivered::before { background: #0bbb5f; }
.account-order-status.is-cancelled { color: #a23a36; background: #fdecea; }
.account-order-status.is-cancelled::before { background: #df4a43; }
.account-order-status.is-new,
.account-order-status.is-accepted { color: #176a4b; background: #e6f5ed; }
.account-order-status.is-new::before,
.account-order-status.is-accepted::before { background: var(--brand); }
.account-order-review { display: inline-flex; min-height: 34px; align-items: center; padding: 0 13px 0 34px; border: 1px solid #d8e4de; border-radius: 999px; color: var(--brand-dark); background: #fff url('/assets/imgs/star_icon.png') 11px center / 16px no-repeat; font: 12px 'ProximaNova-Semibold'; white-space: nowrap; cursor: pointer; transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease; }
.account-order-review:hover { border-color: var(--brand); color: #fff; background-color: var(--brand); transform: translateY(-1px); }
.account-order-review.is-rated { border-color: #f0d99a; color: #775716; background-color: #fff8df; }
.account-order-review.is-rated:hover { border-color: var(--brand); color: #fff; background-color: var(--brand); }
.account-order-total { padding-top: 5px; color: #10181d; font: 20px 'ProximaNova-Bold'; white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-order-actions { display: flex; grid-column: 3; align-self: end; gap: 9px; }
.account-order-actions button { position: relative; min-height: 42px; flex: 1 1 0; border-radius: 11px; padding: 0 13px; font: 13px 'ProximaNova-Semibold'; cursor: pointer; white-space: nowrap; }
.account-repeat-order { border: 0; color: var(--brand-dark); background: #e6f4ed; }
.account-repeat-order::before { content: ''; display: inline-block; width: 17px; height: 17px; margin-right: 8px; background: url('/assets/imgs/icons_svg/repeat.svg') center / contain no-repeat; vertical-align: -4px; }
.account-order-details { border: 1px solid #d7dfdb; color: #26333b; background: #fff; }
.account-order-details::after { content: ''; display: inline-block; width: 17px; height: 17px; margin-left: 8px; background: url('/assets/imgs/icons_svg/arrow-right.svg') center / contain no-repeat; vertical-align: -4px; }
.account-order-actions button:hover:not(:disabled) { border-color: var(--brand); color: #fff; background: var(--brand); }
.account-repeat-order:hover:not(:disabled)::before { filter: brightness(0) invert(1); }
.account-order-actions button:disabled { color: #929c97; background: #eef1ef; cursor: not-allowed; opacity: .75; }
.account-repeat-unavailable { max-width: 100px; color: #8d4e18; font-size: 11px; line-height: 1.25; }
.account-repeat-order.is-loading { color: transparent; }
.account-repeat-order.is-loading::before { position: absolute; left: 50%; width: 18px; height: 18px; margin: -2px 0 0 -9px; border: 2px solid var(--brand); border-right-color: transparent; border-radius: 50%; background: none; animation: account-spin .7s linear infinite; }
.account-repeat-status { min-height: 20px; margin-top: 12px; color: var(--brand-dark); font-size: 13px; }
.account-repeat-status.error { color: #bd332e; }

.account-orders-empty { display: grid; max-width: 520px; justify-items: center; margin: 70px auto 0; color: #6c787f; text-align: center; }
.account-orders-empty > span { width: 74px; height: 74px; border-radius: 50%; background: #e6f5ed url('/assets/imgs/icons_svg/comment.svg') center / 31px no-repeat; }
.account-orders-empty h3 { margin: 18px 0 6px; color: #18221e; font: 23px 'ProximaNova-Bold'; }
.account-orders-empty p { max-width: 390px; margin: 0; line-height: 1.45; }
.account-orders-empty button { min-height: 44px; margin-top: 20px; padding: 0 22px; border: 0; border-radius: 999px; color: #fff; background: var(--brand); font: 14px 'ProximaNova-Semibold'; cursor: pointer; }

/* Order rating and review. */
.modal-order-review-view .app-modal-overlay { background: rgba(236,241,238,.72); backdrop-filter: blur(10px); }
.modal-order-review-view .app-modal-window { padding: 20px; }
.modal-order-review-view .app-modal-content { position: relative; width: min(720px, calc(100vw - 40px)); max-width: 720px; min-height: 0; max-height: calc(100vh - 40px); box-sizing: border-box; padding: 0; border: 2px solid rgba(255,255,255,.78); border-radius: 22px; background: url('/assets/imgs/modal_bckg_top_r.jpg') top right / 220px auto no-repeat, url('/assets/imgs/modal_bckg_bottom_l.jpg') bottom left / 240px auto no-repeat, url('/assets/imgs/modal_bckg_bottom_r.jpg') bottom right / 190px auto no-repeat, #fff; box-shadow: 0 32px 90px rgba(19,52,38,.24); }
.modal-order-review-view .modal-close { position: fixed; top: max(32px, calc(50% - min(390px, calc(50vh - 24px)) + 20px)); left: calc(50% + min(360px, calc(50vw - 20px)) - 58px); width: 46px; height: 46px; padding: 0; border-radius: 50%; background: #fff url('/assets/imgs/icons_svg/close.svg') center / 20px no-repeat; box-shadow: 0 10px 28px rgba(13,45,31,.14); }
.modal-order-review-view .modal-close::before,
.modal-order-review-view .modal-close::after { content: none; }
.order-review-modal { width: 100%; box-sizing: border-box; padding: 34px 46px 40px; color: #14231c; }
.order-review-back { display: inline-flex; min-height: 42px; align-items: center; gap: 9px; padding: 0 17px; border: 0; border-radius: 999px; color: var(--brand-dark); background: #e4f5ec; font: 14px 'ProximaNova-Semibold'; cursor: pointer; }
.order-review-back::before { content: ''; width: 17px; height: 17px; background: url('/assets/imgs/icons_svg/arrow-back.svg') center / contain no-repeat; }
.order-review-back:hover { background: #d7efe3; }
.order-review-head { display: grid; grid-template-columns: 66px minmax(0,1fr); align-items: center; gap: 20px; margin-top: 28px; }
.order-review-head > span { width: 66px; height: 66px; border-radius: 18px; background: #fff4cf url('/assets/imgs/star_icon.png') center / 34px no-repeat; }
.order-review-head small { color: var(--brand); font: 12px 'ProximaNova-Semibold'; }
.order-review-head h2 { margin: 4px 0 3px; color: #10181d; font: 36px/1 'ProximaNova-Bold'; letter-spacing: -.025em; }
.order-review-head p { margin: 0; color: #65727b; font-size: 15px; }
.order-review-form { margin-top: 28px; }
.order-review-rating { margin: 0; padding: 18px 20px; border: 1px solid #dde8e2; border-radius: 15px; background: rgba(246,251,248,.88); }
.order-review-rating legend { padding: 0 8px; color: #17231d; font: 15px 'ProximaNova-Semibold'; }
.order-review-stars { display: flex; justify-content: center; gap: 10px; }
.order-review-stars label { position: relative; width: 42px; height: 42px; cursor: pointer; }
.order-review-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.order-review-stars label > span[aria-hidden] { display: block; width: 100%; height: 100%; background: url('/assets/imgs/star_icon.png') center / 34px no-repeat; filter: grayscale(1); opacity: .3; transition: filter .18s ease, opacity .18s ease, transform .18s ease; }
.order-review-stars label.is-selected > span[aria-hidden] { filter: none; opacity: 1; transform: translateY(-2px); }
.order-review-stars input:focus-visible + span { outline: 3px solid rgba(23,106,75,.24); outline-offset: 3px; border-radius: 10px; }
.order-review-rating > p { margin: 7px 0 0; color: #68766e; font-size: 13px; text-align: center; }
.order-review-comment { position: relative; display: block; margin-top: 20px; }
.order-review-comment > span { display: block; margin-bottom: 7px; color: #17231d; font: 14px 'ProximaNova-Semibold'; }
.order-review-comment > span small { color: #7c8881; font-family: 'ProximaNova-Regular'; }
.order-review-comment textarea { width: 100%; min-height: 120px; box-sizing: border-box; resize: vertical; border: 1px solid #d6dfda; border-radius: 14px; padding: 14px 16px 28px; color: #202b25; background: rgba(255,255,255,.9); font: 15px/1.4 'ProximaNova-Regular'; transition: border-color .18s ease, box-shadow .18s ease; }
.order-review-comment textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgba(23,106,75,.12); }
.order-review-comment > small { position: absolute; right: 13px; bottom: 10px; color: #8a948e; font-size: 11px; }
.order-review-form .form-status { min-height: 20px; margin: 9px 0; text-align: center; }
.order-review-submit { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 13px; color: #fff; background: var(--brand); box-shadow: 0 12px 26px rgba(23,106,75,.2); font: 17px 'ProximaNova-Bold'; cursor: pointer; transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.order-review-submit i { width: 28px; height: 28px; margin-right: -38px; border-radius: 50%; background: #fff url('/assets/imgs/icons_svg/arrow-right.svg') center / 16px no-repeat; }
.order-review-submit:hover:not(:disabled) { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 16px 32px rgba(23,106,75,.24); }
.order-review-submit:disabled { cursor: wait; opacity: .75; }
.order-review-empty { min-height: 300px; display: grid; align-content: center; text-align: center; }
.order-review-empty h2 { margin: 0; font: 31px/1.1 'ProximaNova-Bold'; }
.order-review-empty p { margin: 9px 0 0; color: #68766e; }
.order-review-back:focus-visible,
.order-review-submit:focus-visible { outline: 3px solid rgba(23,106,75,.24); outline-offset: 3px; }

/* Account deletion confirmation. */
.modal-account-delete-view .app-modal-content {
  width: min(720px, calc(100vw - 40px));
  max-width: 720px;
}
.modal-account-delete-view .modal-close { top: calc(50% - min(186px, calc(50vh - 24px)) + 18px); left: calc(50% + min(360px, calc(50vw - 20px)) - 58px); }
.account-delete-confirm-card { padding: 34px 46px 40px; }
.account-delete-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e4f5ec;
  font: 14px 'ProximaNova-Semibold';
  cursor: pointer;
}
.account-delete-back::before { content: ''; width: 17px; height: 17px; background: url('/assets/imgs/icons_svg/arrow-back.svg') center / contain no-repeat; }
.account-delete-back:hover { background: #d7efe3; }
.account-delete-confirm-head { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 34px; }
.account-delete-confirm-head > span { width: 66px; height: 66px; border-radius: 18px; background: #fdebea; }
.account-delete-confirm-head > span::before { content: ''; display: block; width: 30px; height: 30px; margin: 18px; background: #d93e37; mask: url('/assets/imgs/icons_svg/delete.svg') center / contain no-repeat; -webkit-mask: url('/assets/imgs/icons_svg/delete.svg') center / contain no-repeat; }
.account-delete-confirm-head h1 { margin: 2px 0 8px; color: #10181d; font: 38px/1 'ProximaNova-Bold'; letter-spacing: -.025em; }
.account-delete-confirm-head p { max-width: 510px; margin: 0; color: #65727b; font-size: 16px; line-height: 1.45; }
.account-delete-confirm-form { margin-top: 34px; }
.account-delete-confirm-form .form-status { min-height: 0; margin: 0 0 12px; text-align: center; }
.account-delete-confirm-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.account-delete-confirm-actions button { position: relative; min-height: 50px; border-radius: 13px; font: 16px 'ProximaNova-Semibold'; cursor: pointer; transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.account-delete-confirm-submit { border: 1px solid #d93e37; color: #fff; background: #d93e37; box-shadow: 0 10px 24px rgba(188,49,43,.18); }
.account-delete-confirm-submit:hover { border-color: #bd302b; background: #bd302b; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(188,49,43,.24); }
.account-delete-confirm-cancel { border: 1px solid #ccd8d2; color: var(--brand-dark); background: #fff; }
.account-delete-confirm-cancel:hover { border-color: var(--brand); color: #fff; background: var(--brand); transform: translateY(-1px); }
.account-delete-back:focus-visible,
.account-delete-confirm-actions button:focus-visible { outline: 3px solid rgba(23,106,75,.24); outline-offset: 3px; }
.account-delete-confirm-form.form-loading .account-delete-confirm-submit { color: transparent; pointer-events: none; }
.account-delete-confirm-form.form-loading .account-delete-confirm-submit::after { content: ''; position: absolute; width: 18px; height: 18px; margin-left: -9px; border: 2px solid rgba(255,255,255,.65); border-right-color: transparent; border-radius: 50%; animation: account-spin .7s linear infinite; }

.account button:focus-visible,
.account a:focus-visible { outline: 3px solid rgba(23,106,75,.25); outline-offset: 3px; }

@keyframes account-spin { to { transform: rotate(325deg); } }

/* Read-only order composition — shared visual language with the account modal. */
.modal-order-details-view .app-modal-overlay {
  background: rgba(236, 241, 238, .72);
  backdrop-filter: blur(10px);
}

.modal-order-details-view .app-modal-window { padding: 20px; }

.modal-order-details-view .app-modal-content {
  position: relative;
  width: min(850px, calc(100vw - 40px));
  max-width: 850px;
  min-height: 0;
  max-height: calc(100vh - 40px);
  box-sizing: border-box;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: 22px;
  background:
    url('/assets/imgs/modal_bckg_top_r.jpg') top right / 220px auto no-repeat,
    url('/assets/imgs/modal_bckg_bottom_l.jpg') bottom left / 240px auto no-repeat,
    url('/assets/imgs/modal_bckg_bottom_r.jpg') bottom right / 200px auto no-repeat,
    #fff;
  box-shadow: 0 32px 90px rgba(19, 52, 38, .24);
}

.modal-order-details-view .modal-close {
  position: fixed;
  top: max(32px, calc(50% - min(410px, calc(50vh - 24px)) + 22px));
  left: calc(50% + min(425px, calc(50vw - 20px)) - 58px);
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  background: #fff url('/assets/imgs/icons_svg/close.svg') center / 20px no-repeat;
  box-shadow: 0 10px 28px rgba(13, 45, 31, .14);
}
.modal-order-details-view .modal-close::before,
.modal-order-details-view .modal-close::after { content: none; }

.order-details-modal {
  width: 100%;
  box-sizing: border-box;
  padding: 42px 48px 38px;
  color: #14231c;
}
.order-details-head { max-width: calc(100% - 70px); }
.order-details-head > span { display: inline-flex; min-height: 32px; align-items: center; padding: 0 13px; border-radius: 999px; color: var(--brand-dark); background: #e4f5ec; font: 13px/1 'ProximaNova-Semibold'; font-variant-numeric: tabular-nums; }
.order-details-head h2 { margin: 18px 0 5px; color: #0d151a; font: 42px/1 'ProximaNova-Bold'; letter-spacing: -.025em; }
.order-details-head p { margin: 0; color: #697783; font-size: 17px; }

.order-details-list { display: grid; gap: 10px; margin-top: 28px; }
.order-details-item { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 12px; border-bottom: 1px solid #e1e8e4; background: rgba(255,255,255,.5); }
.order-details-item strong,
.order-details-item span { display: block; }
.order-details-item strong { overflow-wrap: anywhere; color: #17231d; font: 16px/1.2 'ProximaNova-Semibold'; }
.order-details-item span { margin-top: 5px; color: #66736c; font-size: 13px; }
.order-details-item > b { color: #17231d; font: 17px/1 'ProximaNova-Bold'; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-details-modal .currency-symbol { display: inline; margin: 0 0 0 4px; font-family: 'ProximaNova-Regular', Arial, sans-serif; font-size: .86em; font-weight: 500; }
.order-details-no-items { margin: 0; padding: 28px 18px; border-radius: 14px; color: #637169; background: #f3f8f5; text-align: center; }

.order-details-total { display: grid; gap: 10px; margin-top: 20px; padding: 18px 18px 16px; border-radius: 15px; background: rgba(240,248,243,.88); }
.order-details-total > span { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.order-details-total small { color: #66756d; font-size: 14px; }
.order-details-total b { color: #17231d; font: 16px/1 'ProximaNova-Semibold'; font-variant-numeric: tabular-nums; }
.order-details-total .order-details-discount small,
.order-details-total .order-details-discount b { color: var(--brand-dark); }
.order-details-total .order-details-grand-total { margin-top: 4px; padding-top: 15px; border-top: 1px solid #d7e5dd; }
.order-details-grand-total small,
.order-details-grand-total b { color: #0b1811; font: 22px/1 'ProximaNova-Bold'; }

.order-details-help { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 20px; padding: 15px; border: 1px solid #dcebe3; border-radius: 15px; background: rgba(255,255,255,.9); }
.order-details-help > span { width: 48px; height: 48px; border-radius: 13px; background: #e2f4ea; }
.order-details-help > span::before { content: ''; display: block; width: 23px; height: 23px; margin: 12px; background: var(--brand); mask: url('/assets/imgs/icons_svg/phone.svg') center / contain no-repeat; -webkit-mask: url('/assets/imgs/icons_svg/phone.svg') center / contain no-repeat; }
.order-details-help strong { display: block; color: #16231d; font: 15px/1.2 'ProximaNova-Bold'; }
.order-details-help p { margin: 4px 0 0; color: #66736c; font-size: 13px; }
.order-details-help a { display: flex; min-height: 48px; flex-direction: column; justify-content: center; border-radius: 12px; padding: 0 16px; color: #fff; background: var(--brand); text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.order-details-help a:hover { background: var(--brand-dark); transform: translateY(-1px); }
.order-details-help a small { color: rgba(255,255,255,.78); font-size: 10px; }
.order-details-help a b { margin-top: 3px; font: 15px/1 'ProximaNova-Bold'; white-space: nowrap; }
.order-details-empty { min-height: 260px; display: grid; align-content: center; text-align: center; }
.order-details-empty h2 { margin: 0; color: #10181d; font: 32px/1.1 'ProximaNova-Bold'; }
.order-details-empty p { margin: 9px 0 0; color: #66736c; }
.order-details-modal a:focus-visible { outline: 3px solid rgba(23,106,75,.25); outline-offset: 3px; }

@media (max-width: 620px) {
  .modal-order-details-view .app-modal-window { align-items: flex-end; padding: 0; }
  .modal-order-details-view .app-modal-content { width: 100%; max-width: none; max-height: 100dvh; border: 0; border-radius: 0; background-size: 170px auto, 180px auto, 150px auto; }
  .modal-order-details-view .modal-close { position: absolute; top: 16px; right: 16px; left: auto; width: 42px; height: 42px; }
  .order-details-modal { padding: 30px 16px max(22px, env(safe-area-inset-bottom)); }
  .order-details-head { max-width: calc(100% - 52px); }
  .order-details-head h2 { margin-top: 15px; font-size: 32px; }
  .order-details-head p { font-size: 15px; }
  .order-details-list { margin-top: 22px; }
  .order-details-item > b { font-size: 15px; }
  .order-details-help { grid-template-columns: 44px minmax(0, 1fr); }
  .order-details-help > span { width: 44px; height: 44px; }
  .order-details-help > span::before { width: 21px; height: 21px; margin: 11px; }
  .order-details-help a { grid-column: 1 / -1; align-items: center; }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .modal-account-view .app-modal-content {
    width: calc(100vw - 36px);
    height: calc(100vh - 36px);
  }
  .modal-account-view .modal-close {
    top: 34px;
    right: 34px;
    left: auto;
  }
  .account-shell { grid-template-columns: 270px minmax(0, 1fr); }
  .account-sidebar { padding: 26px 18px 22px; }
  .account-back { padding: 0 17px; }
  .account-summary { padding: 20px 16px; }
  .account-nav-item { padding-left: 48px; font-size: 15px; }
  .account-nav-item::before { left: 16px; width: 21px; height: 21px; }
  .account-nav-item.active::after { left: -18px; }
  .account-content { padding: 36px 28px 34px; }
  .account-heading { margin: 0 56px 31px 0; }
  .account-heading h1 { font-size: 40px; }
  .account-heading p { max-width: 560px; font-size: 16px; line-height: 1.35; }
  .account-panel h2 { font-size: 29px; }
  .account-order-card {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0 16px;
    padding: 12px;
  }
  .account-order-restaurant { width: 96px; height: 92px; grid-row: 1; }
  .account-order-main { grid-column: 2; grid-row: 1; }
  .account-order-state {
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: center;
    margin-top: 12px;
    padding: 11px 3px 0;
    border-top: 1px solid #e7ece9;
  }
  .account-order-status-group { flex-wrap: wrap; }
  .account-order-total { padding: 0; }
  .account-order-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .modal-auth-view .app-modal-window { align-items: stretch; padding: 0; }
  .modal-auth-view .app-modal-content { width: 100%; max-width: none; max-height: 100vh; max-height: 100dvh; border: 0; border-radius: 0; background-size: 240px auto, 230px auto, 180px auto, auto; }
  .modal-auth-view .modal-close { position: fixed; top: 14px; right: 14px; left: auto; width: 42px; height: 42px; }
  .modal-login-view .app-modal-content { width: 100%; max-width: none; }
  .auth-page.login .auth-card { padding: 18px 18px 34px; }
  .auth-page.login .auth-header { margin-top: 34px; margin-bottom: 26px; }
  .login-options { margin: 18px 0 28px; }
  .auth-card { padding: 18px 18px 28px; }
  .auth-page .back_btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .auth-header { display: block; margin: 22px 0 18px; padding-right: 40px; }
  .auth-header h1 { font-size: 36px; }
  .auth-header p { font-size: 15px; }
  .auth-switch-prompt { width: max-content; min-height: 36px; margin-top: 13px; padding: 0 14px; font-size: 12px; }
  .auth-grid,
  .address-grid,
  .address-mini-grid { grid-template-columns: 1fr; gap: 12px; }
  .auth-page.registration .name-field,
  .auth-page.registration .password-field { grid-column: auto; }
  .addresses-header h2 { font-size: 26px; }
  .address-card { padding: 12px; }
  .add-address-btn,
  .auth-submit-btn { width: 100%; }
  .auth-submit-btn { font-size: 18px; }
  .auth-submit-btn i { margin-right: -42px; }
  .custom-checkbox { font-size: 11px; }

  .modal-account-view .app-modal-content { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; background-size: 210px auto, 210px auto, auto; }
  .modal-account-view .modal-close { top: 13px; right: 13px; left: auto; }
  .account-shell { display: block; height: auto; min-height: 100%; }
  .account-sidebar { position: relative; display: block; padding: 14px 14px 0; border-right: 0; border-bottom: 1px solid #e2ebe6; background: rgba(249,252,250,.94); }
  .account-back { min-height: 40px; padding: 0 15px; font-size: 13px; }
  .account-summary { display: grid; grid-template-columns: 54px minmax(0, 1fr); margin: 14px 48px 12px 0; padding: 12px 14px; column-gap: 12px; }
  .account-avatar { width: 54px; height: 54px; grid-row: 1 / 4; margin: 0; background-size: 27px; }
  .account-summary strong { align-self: end; margin: 0; font-size: 17px; }
  .account-summary > span:not(.account-avatar) { font-size: 12px; line-height: 1.25; }
  .account-summary-edit { top: 9px; right: 9px; width: 32px; height: 32px; }
  .account-nav { display: flex; gap: 7px; overflow-x: auto; margin: 0 -14px; padding: 0 14px 12px; scrollbar-width: none; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav-item { min-height: 42px; flex: 0 0 auto; border: 1px solid #dce7e1; border-radius: 999px; padding: 0 15px 0 41px; background: #fff; font-size: 13px; }
  .account-nav-item::before { left: 14px; width: 18px; height: 18px; }
  .account-nav-item.active { border-color: transparent; background: #dff3e9; }
  .account-nav-item.active::after { content: none; }
  .account-sidebar-actions { display: flex; justify-content: space-between; gap: 8px; margin: 0 -2px; padding: 9px 0 10px; }
  .account-sidebar-actions button { min-height: 34px; padding-right: 7px; padding-left: 31px; background-position-x: 7px; background-size: 16px; font-size: 12px; }
  .account-content { overflow: visible; padding: 25px 15px 34px; }
  .account-heading { margin: 0 46px 26px 0; }
  .account-heading h1 { font-size: 34px; }
  .account-heading p { margin-top: 5px; font-size: 14px; line-height: 1.35; }
  .account-panel h2 { margin-bottom: 20px; font-size: 27px; }
  .account-history-filters { margin: -6px -15px 16px; padding: 2px 15px 7px; scrollbar-width: none; }
  .account-history-filters::-webkit-scrollbar { display: none; }
  .account-history-filter { min-height: 32px; padding: 0 11px; font-size: 12px; }
  .account-profile .auth-grid { grid-template-columns: 1fr; }
  .account-profile .name-field { grid-column: auto; }
  .account-order-card { grid-template-columns: 78px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; padding: 10px; }
  .account-order-restaurant { width: 78px; height: 78px; grid-row: 1; }
  .account-order-title { display: block; }
  .account-order-title strong { display: block; font-size: 17px; }
  .account-order-title span { display: block; margin-top: 2px; }
  .account-order-main time { margin-top: 4px; font-size: 12px; }
  .account-order-items { margin-top: 7px; padding-left: 23px; font-size: 12px; }
  .account-order-items::before { width: 15px; height: 15px; }
  .account-order-state { grid-column: 1 / -1; align-items: center; margin-top: 10px; padding: 9px 2px 0; border-top: 1px solid #e7ece9; }
  .account-order-status-group { flex-wrap: wrap; }
  .account-order-status { min-height: 30px; padding: 0 11px; font-size: 12px; }
  .account-order-total { padding: 0; font-size: 18px; }
  .account-order-actions { grid-column: 1 / -1; margin-top: 9px; }
  .account-order-actions button { min-height: 40px; }
  .modal-order-review-view .app-modal-window { align-items: stretch; padding: 0; }
  .modal-order-review-view .app-modal-content { width: 100%; max-width: none; max-height: 100dvh; border: 0; border-radius: 0; background-size: 180px auto, 190px auto, 160px auto; }
  .modal-order-review-view .modal-close { position: fixed; top: 13px; right: 13px; left: auto; width: 42px; height: 42px; }
  .order-review-modal { min-height: 100dvh; padding: 18px 18px 30px; }
  .order-review-head { grid-template-columns: 54px minmax(0,1fr); gap: 14px; margin-top: 28px; }
  .order-review-head > span { width: 54px; height: 54px; border-radius: 15px; background-size: 28px; }
  .order-review-head h2 { font-size: 30px; }
  .order-review-form { margin-top: 24px; }
  .order-review-rating { padding: 16px 10px; }
  .order-review-stars { gap: 5px; }
  .order-review-stars label { width: 40px; height: 40px; }
  .modal-account-delete-view .app-modal-content { width: 100%; max-width: none; }
  .account-delete-confirm-card { min-height: 100dvh; box-sizing: border-box; padding: 20px 18px 30px; }
  .account-delete-confirm-head { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; margin-top: 32px; }
  .account-delete-confirm-head > span { width: 54px; height: 54px; border-radius: 15px; }
  .account-delete-confirm-head > span::before { width: 24px; height: 24px; margin: 15px; }
  .account-delete-confirm-head h1 { font-size: 31px; }
  .account-delete-confirm-head p { font-size: 14px; }
  .account-delete-confirm-form { margin-top: 28px; }
  .account-delete-confirm-actions { grid-template-columns: 1fr; }
  .account-delete-confirm-cancel { grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit-btn,
  .form-group input,
  .form-group textarea { transition: none; }
}
