:root {
  --orange: #f46924;
  --beige: #faefd9;
  --yellow: #f4bf30;
  --green: #b7b934;
  --ink: #27140c;
  --muted: #7f604d;
  --white: #fffaf0;
  --line: rgba(39, 20, 12, 0.12);
  --shadow: 0 18px 42px rgba(113, 55, 20, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  justify-content: flex-start;
  overflow-x: hidden;
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--orange);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  font: inherit;
}

.app-shell {
  position: relative;
  width: 100vw;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--beige);
}

.screen {
  display: none;
  min-height: 100dvh;
}

.screen-active {
  display: flex;
  flex-direction: column;
}

.bg-light {
  display: none;
}

.welcome-screen {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  padding: max(28px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  color: var(--white);
  background: url("/assets/identity-oranges.jpg") center / cover no-repeat;
}

.welcome-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(39, 20, 12, 0.1), rgba(39, 20, 12, 0.68)),
    rgba(244, 105, 36, 0.14);
}

.welcome-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.welcome-logo {
  width: min(74%, 270px);
  margin: 0 auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 14px 22px rgba(39, 20, 12, 0.28));
}

.welcome-copy {
  text-align: center;
  overflow: hidden;
}

.welcome-copy h1,
.promo-card h4,
.bonus-panel h2 {
  font-family: Chunk, "Cooper Black", "Arial Black", Poppins, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.welcome-copy h1 {
  margin: 0;
  font-size: clamp(31px, 8.4vw, 38px);
  line-height: 0.95;
  color: var(--white);
}

.welcome-copy p {
  margin: 14px auto 0;
  max-width: 318px;
  color: rgba(255, 250, 240, 0.92);
  font-size: 16px;
  line-height: 1.42;
  font-weight: 600;
}

.feature-list {
  display: grid;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255, 250, 240, 0.32);
  border-radius: 8px;
  background: rgba(250, 239, 217, 0.9);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 20px;
}

.feature-icon-gold {
  background: var(--yellow);
  color: var(--ink);
}

.feature-icon-green {
  background: var(--green);
  color: var(--white);
}

.feature-item h2,
.feature-item p {
  margin: 0;
}

.feature-item h2 {
  font-size: 14px;
  font-weight: 800;
}

.feature-item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
}

.welcome-footer {
  padding-top: 18px;
}

.welcome-footer p {
  margin: 12px 16px 0;
  text-align: center;
  color: rgba(255, 250, 240, 0.78);
  font-size: 11px;
  line-height: 1.35;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 12px 26px rgba(244, 105, 36, 0.34);
}

#app-screen {
  background:
    linear-gradient(180deg, rgba(250, 239, 217, 0.88), rgba(250, 239, 217, 0.98)),
    url("/assets/identity-pattern.jpg") center top / 760px auto repeat;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 20px 13px;
  background: rgba(250, 239, 217, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 105, 36, 0.12);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--white);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(244, 105, 36, 0.26);
}

.avatar {
  width: 42px;
  height: 42px;
}

.user-chip p,
.user-chip strong {
  display: block;
  margin: 0;
}

.user-chip p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.user-chip strong {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  box-shadow: 0 10px 22px rgba(39, 20, 12, 0.1);
}

.icon-button span {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.icon-button .cart-badge {
  top: 4px;
  right: 4px;
  min-width: 17px;
  width: auto;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--white);
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(244, 105, 36, 0.28);
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 112px;
  scrollbar-width: none;
}

.content::-webkit-scrollbar,
.product-row::-webkit-scrollbar {
  display: none;
}

.view {
  display: none;
}

.view-active {
  display: block;
}

.balance-card,
.bonus-panel,
.qr-card,
.register-card,
.info-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: var(--shadow);
}

.balance-card {
  position: relative;
  min-height: 138px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  padding: 18px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(39, 20, 12, 0.42), rgba(244, 105, 36, 0.12)),
    url("/assets/identity-bottles.jpg") center / cover no-repeat;
  border-color: rgba(244, 105, 36, 0.28);
}

.balance-card p,
.balance-card h2 {
  margin: 0;
}

.balance-card p {
  font-size: 13px;
  font-weight: 700;
}

.balance-card h2 {
  margin-top: 4px;
  font-family: Chunk, "Cooper Black", "Arial Black", Poppins, sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  color: var(--white);
}

.balance-card small {
  color: var(--white);
  font-family: Poppins, sans-serif;
  font-size: 14px;
}

.balance-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 22px;
}

.section {
  margin-top: 26px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section h3,
.section-title h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: Chunk, "Cooper Black", "Arial Black", Poppins, sans-serif;
  font-size: 23px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title h3 {
  margin-bottom: 0;
}

.section-title button {
  background: transparent;
  color: var(--orange);
  font-weight: 800;
}

.product-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 0 4px;
}

.product-card {
  flex: 0 0 136px;
  min-height: 192px;
  padding: 12px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: 0 10px 24px rgba(39, 20, 12, 0.08);
}

.product-open {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.juice {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  font-size: 32px;
  overflow: hidden;
}

.juice img,
.modal-product-visual img,
.cart-item-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.juice-orange {
  color: var(--white);
  background: var(--orange);
}

.juice-green {
  color: var(--white);
  background: var(--green);
}

.juice-red {
  color: var(--ink);
  background: var(--yellow);
}

.juice-berry {
  color: var(--white);
  background: #cf4b70;
}

.product-card h4,
.product-card p {
  margin: 0;
}

.product-card h4 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.product-card p {
  margin-top: 6px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.product-card > button:not(.product-open) {
  width: 100%;
  min-height: 34px;
  margin-top: 12px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.product-qty-control {
  display: grid;
  grid-template-columns: 38px minmax(34px, 1fr) 38px;
  align-items: center;
  min-height: 34px;
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--orange);
  color: var(--white);
}

.product-qty-control button {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 250, 240, 0.14);
  color: var(--white);
  font-size: 12px;
}

.product-qty-control strong {
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

.promo-card {
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  padding: 20px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(244, 105, 36, 0.96), rgba(244, 191, 48, 0.78)),
    url("/assets/identity-social.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.promo-card span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.24);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-card h4,
.promo-card p {
  margin: 8px 0 0;
}

.promo-card h4 {
  font-size: 28px;
}

.promo-card p {
  max-width: 190px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.promo-card > i {
  font-size: 62px;
  opacity: 0.92;
}

.promo-banners {
  display: grid;
  gap: 12px;
}

.promo-banners .promo-card {
  background-size: cover;
  background-position: center;
}

.promo-image-card {
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.promo-image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bonus-panel,
.qr-card,
.register-card {
  padding: 22px;
  text-align: center;
}

.bonus-panel {
  background: var(--orange);
  color: var(--white);
}

.bonus-panel > i {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 28px;
}

.bonus-panel p,
.bonus-panel h2 {
  margin: 0;
}

.bonus-panel p {
  color: rgba(255, 250, 240, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.bonus-panel h2 {
  margin-top: 6px;
  font-size: 40px;
  color: var(--white);
}

.level-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  background: var(--white);
  text-align: left;
}

.level-box span {
  color: var(--muted);
  font-size: 12px;
}

.level-box strong {
  color: var(--orange);
  font-size: 13px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-grid article {
  padding: 16px;
  text-align: center;
}

.info-grid i {
  color: var(--orange);
}

.info-grid h4 {
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 800;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.brand-card,
.orders-empty,
.order-card,
.review-form-card,
.review-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: var(--shadow);
}

.brand-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(39, 20, 12, 0.62), rgba(244, 105, 36, 0.24)),
    url("/assets/identity-social.jpg") center / cover no-repeat;
}

.brand-card span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-card h2,
.brand-card p {
  margin: 0;
}

.brand-card h2 {
  margin-top: 16px;
  font-family: Chunk, "Cooper Black", "Arial Black", Poppins, sans-serif;
  font-size: 31px;
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-card p {
  max-width: 290px;
  margin-top: 12px;
  color: rgba(255, 250, 240, 0.9);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.orders-list,
.review-list {
  display: grid;
  gap: 10px;
}

.review-form-card {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
}

.review-form-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.review-form-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.review-form-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--beige);
  color: var(--ink);
  padding: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  resize: vertical;
}

.review-rating {
  display: flex;
  gap: 6px;
}

.review-rating button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--beige);
  color: rgba(39, 20, 12, 0.24);
  font-size: 15px;
}

.review-rating button.active {
  background: rgba(244, 191, 48, 0.22);
  color: #b78900;
}

.compact-full-button {
  min-height: 44px;
  box-shadow: none;
}

.orders-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  text-align: center;
}

.orders-empty i {
  color: var(--orange);
  font-size: 30px;
}

.orders-empty h4,
.orders-empty p {
  margin: 0;
}

.orders-empty h4 {
  font-size: 15px;
  font-weight: 900;
}

.orders-empty p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.order-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-card-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.order-card-head strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.order-card p,
.order-card small {
  margin: 0;
}

.order-card p {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.order-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

.review-list article {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.review-list div {
  color: var(--yellow);
  font-size: 11px;
}

.review-list p,
.review-list strong {
  margin: 0;
}

.review-list p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.review-list strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.profile-head {
  text-align: center;
  padding: 12px 0 22px;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 14px;
  font-size: 34px;
}

.profile-head h2,
.profile-head p {
  margin: 0;
}

.profile-head h2 {
  font-family: Chunk, "Cooper Black", "Arial Black", Poppins, sans-serif;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

.profile-head p {
  margin-top: 7px;
  color: var(--muted);
  font-weight: 600;
}

.telegram-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 105, 36, 0.28);
  background: rgba(244, 105, 36, 0.12);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.qr-card h3,
.register-card h3 {
  margin: 0;
  font-family: Chunk, "Cooper Black", "Arial Black", Poppins, sans-serif;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.qr-card img {
  display: block;
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin: 18px auto 12px;
  padding: 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.qr-card p,
.register-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.register-card > i {
  color: var(--orange);
  font-size: 30px;
  margin-bottom: 12px;
}

.register-card .primary-button {
  margin-top: 18px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px -20px 16px;
  padding: 0 20px 2px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.category-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.catalog-grid .product-card {
  width: 100%;
  min-height: 204px;
}

.product-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 9px;
  min-height: 310px;
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.88);
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-state > i {
  color: var(--orange);
  font-size: 42px;
}

.empty-state h4,
.empty-state p {
  margin: 0;
}

.empty-state h4 {
  font-size: 18px;
  font-weight: 900;
}

.empty-state p {
  color: var(--muted);
  font-size: 13px;
}

.compact-button {
  min-height: 42px;
  max-width: 210px;
  box-shadow: none;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(39, 20, 12, 0.08);
}

.cart-item-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 22px;
  overflow: hidden;
}

.cart-item h4,
.cart-item p {
  margin: 0;
}

.cart-item h4 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

.cart-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.qty-control {
  display: grid;
  grid-template-columns: 30px 24px 30px;
  align-items: center;
  border-radius: 999px;
  background: var(--beige);
  overflow: hidden;
}

.qty-control button {
  width: 30px;
  height: 34px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.qty-control strong {
  text-align: center;
  font-size: 13px;
}

.checkout-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.checkout-row,
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-row span,
.checkout-total span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.checkout-row strong,
.checkout-total strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(39, 20, 12, 0.46);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 390px;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border-radius: 8px;
  background: var(--beige);
  padding: 20px;
  box-shadow: 0 24px 70px rgba(39, 20, 12, 0.32);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
}

.modal-product-visual {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 10px auto 16px;
  border-radius: 50%;
  font-size: 48px;
  overflow: hidden;
}

.modal-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-panel h2,
.modal-panel p {
  margin: 0;
}

.modal-panel h2 {
  font-family: Chunk, "Cooper Black", "Arial Black", Poppins, sans-serif;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.modal-panel p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--white);
}

.modal-meta strong {
  color: var(--orange);
  font-size: 18px;
}

.modal-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.checkout-note {
  margin-bottom: 14px !important;
}

.fulfillment-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

.fulfillment-switch button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fulfillment-switch button.active {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(244, 105, 36, 0.2);
}

.form-field,
.payment-group,
.payment-split {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.pickup-fields {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.pickup-fields .form-field {
  margin-top: 0;
}

.pickup-spot-address {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.form-field span,
.payment-group > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 12px;
  font: inherit;
  outline: none;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-option {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
}

.payment-option.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.payment-split {
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
}

.payment-split-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.payment-split-head span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.payment-split-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.payment-split-head strong {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(183, 185, 52, 0.16);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.payment-split-head strong.is-negative {
  background: rgba(244, 105, 36, 0.14);
  color: var(--orange);
}

.payment-lines {
  display: grid;
  gap: 8px;
}

.payment-line {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(118px, 1.25fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.payment-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.payment-line span i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(244, 105, 36, 0.12);
  color: var(--orange);
  font-size: 12px;
}

.payment-line.bonus-line span i {
  background: rgba(244, 191, 48, 0.2);
  color: #b78900;
}

.payment-line input {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--beige);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  outline: none;
}

.payment-method-select {
  display: grid;
  gap: 8px;
}

.payment-method-select > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.payment-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-actions button {
  min-height: 36px;
  border-radius: 8px;
  background: var(--beige);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.delivery-fields {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.delivery-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.delivery-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.delivery-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.delivery-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.delivery-card button {
  min-height: 40px;
  margin-top: 4px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.delivery-map {
  width: 100%;
  min-height: 286px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.map-modal-panel {
  max-width: 430px;
}

.map-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.map-actions button {
  min-height: 44px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

.map-actions button:last-child {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.checkout-total {
  margin: 18px 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--white);
}

.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.bottom-nav {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 20;
  width: 100vw;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 8px 10px max(16px, env(safe-area-inset-bottom));
  transform: none;
  border-top: 1px solid rgba(244, 105, 36, 0.12);
  background: rgba(250, 239, 217, 0.96);
  backdrop-filter: blur(18px);
}

.nav-button {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.nav-button i {
  font-size: 18px;
}

.nav-button span {
  font-size: 9px;
}

.nav-active {
  color: var(--white);
  background: var(--orange);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 40;
  width: calc(100% - 40px);
  max-width: 350px;
  padding: 12px 14px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 13px;
  text-align: center;
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

@media (min-width: 600px) {
  body {
    justify-content: center;
  }

  .app-shell {
    width: 390px;
    max-width: 390px;
    margin: 0 auto;
    min-height: 840px;
    box-shadow: 0 24px 80px rgba(113, 55, 20, 0.22);
  }

  .bottom-nav {
    left: 50%;
    width: 390px;
    max-width: 390px;
    transform: translateX(-50%);
  }
}
