@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap");

:root {
  --bg: #f8f4ef;
  --ink: #2c1f16;
  --ink-soft: #6a5447;
  --primary: #e46a2c;
  --primary-dark: #b84b16;
  --accent: #ffb347;
  --card: #ffffff;
  --border: #ecd8c9;
  --shadow: 0 16px 36px rgba(120, 66, 36, 0.14);
  --shadow-soft: 0 10px 22px rgba(120, 66, 36, 0.1);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --about-bg: #fff5ea;
  --bottom-nav-height: 112px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Manrope", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.35;
}

img { max-width: 100%; display: block; }

.header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 9px;
  background: linear-gradient(180deg, #fff8f1 0%, #fff1e5 100%);
  border-bottom: 1px solid #d9e4ee;
  box-shadow: 0 8px 18px rgba(7, 25, 42, 0.08);
}

.header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #e46a2c 0%, #ff9a3d 100%);
}

.header-brand {
  display: grid;
  gap: 2px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.logo img { height: 24px; }
.header-actions.header-empty { width: 1px; }

.header-actions { display: flex; gap: 8px; position: relative; z-index: 210; }
.header-cta {
  border: none;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e46a2c, #ff9540);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(204, 93, 36, 0.3);
}
.header-cta:active { transform: translateY(1px); }

.icon-button {
  position: relative;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  color: var(--primary);
}
.icon-button:hover {
  border-color: rgba(12, 61, 90, 0.25);
  box-shadow: 0 6px 14px rgba(8, 43, 64, 0.12);
}

.icon-svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  pointer-events: none;
}

.main {
  padding: 16px 16px calc(var(--bottom-nav-height) + 16px);
  max-width: 920px;
  margin: 0 auto;
}

.screen { display: none; }
.screen.active { display: block; animation: screenIn 0.22s ease; }

.screen.closing { animation: screenOut 0.2s ease; }

@keyframes screenIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes screenOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(12px); }
}

.trust-chip {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d8e4ee;
  background: #fff;
  color: #20465e;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 5px 12px rgba(7, 25, 42, 0.08);
}

.about-card {
  margin-top: 4px;
  background: #f1f3f5;
  border-radius: var(--radius-lg);
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}
.about-card-compact .about-title { font-size: 20px; }
.about-card-compact .about-text { font-size: 13px; }
.about-card-compact .about-underline { width: 70px; height: 3px; }

.about-title {
  font-size: 22px;
  font-weight: 800;
}

.about-underline {
  width: 80px;
  height: 4px;
  background: var(--primary);
}

.about-text {
  font-size: 14px;
  line-height: 1.45;
  color: #2b2b2b;
}

.about-button { width: auto; }
.home-section-title {
  margin: 10px 4px 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-section-title-link {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.home-section-title::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0c3d5a, #1e7398);
}
.filter-bar {
  display: flex;
  gap: 10px;
  margin: 4px 0 12px;
}
.filter-input {
  flex: 2;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.filter-select {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.promo-row {
  margin-top: 6px;
  padding-bottom: 4px;
  overflow: hidden;
}
.promo-row-home {
  margin-top: 8px;
}
.promo-row-home .promo-track {
  --home-cards-per-row: 5;
  --home-cards-gap: 10px;
  gap: var(--home-cards-gap);
}
.promo-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 calc((100% - 24px) / 3);
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.promo-row-home .promo-card {
  flex: 0 0 calc((100% - (var(--home-cards-per-row) - 1) * var(--home-cards-gap)) / var(--home-cards-per-row));
  max-width: calc((100% - (var(--home-cards-per-row) - 1) * var(--home-cards-gap)) / var(--home-cards-per-row));
  min-width: calc((100% - (var(--home-cards-per-row) - 1) * var(--home-cards-gap)) / var(--home-cards-per-row));
  border-radius: 12px;
}
.promo-row-home .promo-card img {
  height: 52px;
}
.promo-row-home .promo-title {
  padding: 4px 6px 0;
  font-size: 10px;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: initial;
}
.promo-row-home .promo-price {
  padding: 3px 6px 8px;
  gap: 4px;
  margin-top: 4px;
}
.promo-row-home .promo-price .promo-new {
  font-size: 10px;
}
.promo-row-home .promo-price .promo-old {
  font-size: 9px;
}
.promo-row-home .promo-badge {
  width: 28px;
  height: 28px;
  font-size: 10px;
  top: 6px;
  right: 6px;
}

@media (max-width: 430px) {
  .promo-row-home .promo-track {
    --home-cards-per-row: 4;
    --home-cards-gap: 8px;
  }
}
.promo-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2aa645;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.promo-badge-inline {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2aa645;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  display: grid;
  place-items: center;
  z-index: 2;
}
.promo-card img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  background: #fff;
  display: block;
}
.promo-card .promo-title {
  padding: 6px 8px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  min-height: 28px;
  flex: 1;
}
.promo-card .promo-price {
  padding: 3px 8px 8px;
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin-top: auto;
}
.promo-card .promo-price .promo-new {
  font-size: 11px;
  color: var(--primary);
  font-weight: 800;
}
.promo-card .promo-price .promo-old {
  font-size: 10px;
  color: #8a97a5;
  text-decoration: line-through;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.promo-grid .promo-card img {
  height: 120px;
  object-fit: contain;
  background: #fff;
}
.promo-grid .promo-card .promo-title { font-size: 13px; min-height: 40px; }
.promo-grid .promo-card .promo-price .promo-new { font-size: 13px; }
.production-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: #f1f3f5;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.production-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.production-underline {
  width: 70px;
  height: 3px;
  background: var(--primary);
}
.production-text {
  font-size: 13px;
  color: #4c5a67;
  line-height: 1.45;
  margin-bottom: 4px;
}

.screen-head {
  position: sticky;
  top: 56px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px -6px 12px;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(244, 246, 248, 0.94);
  backdrop-filter: blur(6px);
}
.back-button { display: grid; }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.empty-state {
  padding: 16px;
  border-radius: 16px;
  background: #f4f6f8;
  border: 1px solid #e2e6ea;
}
.empty-title {
  font-weight: 700;
  color: #163147;
  margin-bottom: 6px;
}
.empty-text {
  color: #4c5a67;
  font-size: 14px;
}

.data-status {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f8fa;
  border: 1px solid #d9e1e8;
  font-size: 13px;
  color: #173246;
}
.data-status:empty {
  display: none !important;
}
.data-status.hidden { display: none; }
.category-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); }
.promo-category-card {
  position: relative;
}
.promo-category-card::after {
  content: "SALE";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2aa645;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.category-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  object-position: center;
}
.category-card span {
  display: block;
  padding: 10px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.28;
  min-height: 56px;
}
.category-card:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(7, 25, 42, 0.08);
}

.product-list { display: grid; gap: 12px; }
.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  background: #fff;
  border: 1px solid #d9e3ec;
  border-radius: var(--radius-md);
  padding: 11px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.product-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}
.product-title { font-weight: 700; }
.product-meta { font-size: 13px; color: var(--ink-soft); margin: 4px 0; }
.product-meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { font-weight: 700; margin-top: 6px; }
.product-card .product-title {
  line-height: 1.28;
}
.product-price .promo-new { font-weight: 800; color: var(--primary); margin-right: 6px; }
.product-price .promo-old { font-weight: 600; color: #8a97a5; text-decoration: line-through; font-size: 12px; }
.request-button {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 10px;
}
.product-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.product-actions.icon-actions { gap: 8px; align-items: center; }
.favorites-controls { justify-content: flex-end; margin-top: 8px; }

.card-icon {
  position: absolute;
  border: none;
  background: #fff;
  color: var(--primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(8, 43, 64, 0.12);
  cursor: pointer;
}

.card-icon .icon-svg {
  width: 18px;
  height: 18px;
}

.card-icon.favorite {
  top: 8px;
  right: 8px;
}

.card-icon.favorite.active {
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-icon.cart {
  bottom: 8px;
  right: 8px;
}

.card-qty {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: 0 6px 14px rgba(8, 43, 64, 0.12);
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.qty-count {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

.product-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
}

.primary-button, .secondary-button, .ghost-button {
  border: none; border-radius: 10px; padding: 8px 10px; font-weight: 700; cursor: pointer;
}
.primary-button { background: linear-gradient(135deg, var(--primary), #ff8d3a); color: #fff; box-shadow: 0 12px 24px rgba(204, 93, 36, 0.28); }
.secondary-button { background: linear-gradient(135deg, #ffd7ad, var(--accent)); color: #4a2d1e; }
.ghost-button { background: #fff8f1; border: 1px solid #e8cdb8; color: #a44a1b; }
.primary-button,
.secondary-button,
.ghost-button {
  min-height: 44px;
}
.primary-button:active,
.secondary-button:active,
.ghost-button:active {
  transform: translateY(1px);
}

.product-view { display: grid; gap: 12px; }
.product-hero { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-soft); }
.product-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.product-gallery img { height: 260px; border-radius: var(--radius-lg); object-fit: contain; background: #fff; scroll-snap-align: center; }
.product-back {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.detail-section { background: #fff; border-radius: var(--radius-md); padding: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.section-title { font-weight: 800; margin-bottom: 8px; color: var(--primary); }
.section-body { color: var(--ink); line-height: 1.5; }
.product-specs { display: grid; gap: 6px; }
.recommended-section {
  padding-bottom: 10px;
}
.recommended-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.recommended-track::-webkit-scrollbar { display: none; }
.recommended-card {
  flex: 0 0 164px;
  border: 1px solid #d9e3ec;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  text-align: left;
  scroll-snap-align: start;
}
.recommended-card img {
  width: 100%;
  height: 108px;
  object-fit: contain;
  border-radius: 10px;
  background: #f7fafc;
}
.recommended-title {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.recommended-price {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.favorites-actions { display: flex; gap: 8px; margin-bottom: 10px; }

.select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  margin-bottom: 6px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.check input { width: 18px; height: 18px; }

.select-actions { display: flex; gap: 8px; }

.select-dot {
  position: absolute;
  top: 8px;
  left: 8px;
}

.select-dot input {
  display: none;
}

.select-dot span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-block;
}

.select-dot input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  position: relative;
}

.select-dot input:checked + span::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cart-list { display: grid; gap: 8px; }
.cart-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 10px 10px 36px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
}
.cart-image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f3f5;
}
.cart-info { display: grid; gap: 4px; }
.cart-price { font-weight: 700; }
.cart-controls { grid-column: 2; }
.cart-title-link {
  border: none;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.cart-sku {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}
.cart-controls { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn .icon-svg { width: 16px; height: 16px; }
.icon-btn.active {
  background: #0a2f46;
  color: #fff;
  border-color: #0a2f46;
}

.cart-summary { margin: 12px 0; font-weight: 700; }

.order-form { background: linear-gradient(180deg, #fffdfb, #fff6ee); border: 1px solid #efcfb6; border-radius: var(--radius-md); padding: 14px; display: grid; gap: 12px; box-shadow: var(--shadow-soft); }
.order-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #7a4e35; text-transform: uppercase; letter-spacing: 0.2px; }
.order-form input { border: 1px solid #e8cdb8; border-radius: 12px; padding: 10px 12px; background: #fff; }
.checkbox { grid-template-columns: 20px 1fr; align-items: start; }
.status { font-size: 13px; color: var(--ink-soft); }
.order-status { font-size: 13px; color: var(--ink-soft); }

.cart-head {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
}

.cart-checkout {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 8px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.cart-checkout-button {
  width: 100%;
  margin-top: 12px;
}

.order-form.flat {
  border: none;
  padding: 0;
  box-shadow: none;
  gap: 12px;
}

.order-form.flat input {
  border: 1px solid #e8cdb8;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.order-form.flat select {
  border: 1px solid #e8cdb8;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.feedback-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}


.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: #ff8f4a;
  box-shadow: 0 0 0 3px rgba(255, 143, 74, 0.22);
}

.feedback-note {
  margin-bottom: 10px;
  font-size: 14px;
  color: #365468;
}

.orders-list {
  display: grid;
  gap: 12px;
}

.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
}

.order-title {
  font-size: 16px;
}

.order-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.order-total {
  font-weight: 700;
}

.order-repeat {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.order-toggle {
  background: #f3f6f8;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.order-items ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

.order-item-title {
  color: var(--text);
}

.order-item-qty {
  color: var(--text-muted);
  white-space: nowrap;
}

.cart-totals {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.cart-totals div {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.confirmation-head {
  margin-bottom: 14px;
}

.confirmation {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d8e4ee;
  border-radius: 18px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: 0 14px 30px rgba(8, 43, 64, 0.1);
  display: grid;
  gap: 10px;
}

.confirmation::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at top right, rgba(12, 61, 90, 0.08), transparent 54%);
  pointer-events: none;
}

.confirmation > * {
  position: relative;
  z-index: 1;
}

.confirmation-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 2px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0c4d72 0%, #0a3550 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(8, 43, 64, 0.26);
}

.confirmation-icon .icon-svg {
  width: 24px;
  height: 24px;
}

.confirmation-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: #0b2f47;
}

.confirmation-text {
  font-size: 17px;
  line-height: 1.45;
  color: #13394f;
}

.confirmation-note {
  background: rgba(12, 61, 90, 0.07);
  border: 1px solid rgba(12, 61, 90, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #23495f;
}

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

.confirmation-actions .primary-button,
.confirmation-actions .ghost-button {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
}

.text-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  line-height: 1.5;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.text-card p {
  margin: 0 0 12px;
}
.text-card p:last-child {
  margin-bottom: 0;
}
.about-sections {
  display: grid;
  gap: 18px;
}
.about-lead {
  font-size: 16px;
  line-height: 1.55;
}
.about-section {
  display: grid;
  gap: 10px;
}
.about-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.about-heading {
  font-size: 20px;
  font-weight: 800;
}
.about-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.about-list li {
  line-height: 1.55;
}

.menu-head { margin-bottom: 6px; }
.menu-list { display: grid; gap: 12px; margin-top: 8px; }
.menu-item {
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: left;
  padding: 6px 0;
  cursor: pointer;
}
.menu-caret { font-size: 14px; margin-left: 6px; }
.menu-sublist { display: block; }
.menu-catalog-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 8px 0;
  box-shadow: var(--shadow-soft);
}
.menu-catalog-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.menu-catalog-item + .menu-catalog-item {
  border-top: none;
}
.menu-catalog-item .menu-caret {
  font-size: 14px;
  transition: transform 0.2s ease;
}
.menu-catalog-item.open .menu-caret {
  transform: rotate(180deg);
}
.menu-catalog-children {
  padding: 4px 18px 12px;
  display: grid;
  gap: 8px;
}
.menu-subitem {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--ink);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: left;
  font-size: 15px;
}
.menu-footer { margin-top: 24px; display: grid; gap: 12px; }
.menu-phone { font-size: 22px; font-weight: 700; color: var(--ink); }
.drawer-socials { display: flex; gap: 10px; }
.social-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border);
}
.social-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.production-slider {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.production-track {
  display: flex;
  transition: transform 0.25s ease;
}

.production-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  padding: 20px;
  color: #fff;
  display: grid;
  align-content: end;
  gap: 8px;
}

.production-slide-1 {
  background: linear-gradient(135deg, #0e3f5f 0%, #1c6d98 100%);
}

.production-slide-2 {
  background: linear-gradient(135deg, #0b5a53 0%, #1f8a79 100%);
}

.production-slide-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.production-slide-text {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.production-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  background: #fff;
}

.production-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #dfe6eb;
  cursor: pointer;
}

.production-dots .dot.active {
  background: var(--primary);
  border-color: var(--primary);
}


.production-slide-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.production-slide-3 {
  background: linear-gradient(135deg, #9b3d19 0%, #db5f2b 100%);
}

.production-slide-4 {
  background: linear-gradient(135deg, #7c2f59 0%, #b84f7d 100%);
}

.presentation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.presentation-card {
  background: linear-gradient(180deg, #fff9f3, #fff1e6);
  border: 1px solid #efd2bd;
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.presentation-title {
  font-size: 15px;
  font-weight: 800;
  color: #8b3f16;
  margin-bottom: 6px;
}

.presentation-card p {
  font-size: 13px;
  color: #5e4537;
  line-height: 1.45;
}
.call-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  width: 220px;
}

.hidden { display: none !important; }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px calc(26px + env(safe-area-inset-bottom));
  gap: 6px;
  z-index: 260;
  border-radius: 0;
  margin: 0;
  box-shadow: 0 -6px 18px rgba(7, 25, 42, 0.08);
  transform: scale(0.96);
  transform-origin: bottom center;
}

.bottom-item {
  border: none;
  background: transparent;
  color: var(--primary);
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  line-height: 1.1;
  white-space: nowrap;
  padding: 6px 2px 4px;
  border-radius: 12px;
}

.bottom-item .icon-svg {
  width: 20px;
  height: 20px;
}

.bottom-center {
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 6px 5px;
  margin-top: -14px;
  box-shadow: 0 10px 20px rgba(8, 43, 64, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bottom-center .icon-svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.bottom-item .badge {
  top: -4px;
  right: 18%;
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(12, 61, 90, 0.2);
}

.bottom-item.active {
  color: var(--primary);
  background: rgba(12, 61, 90, 0.18);
  border: 1px solid rgba(12, 61, 90, 0.5);
}

.bottom-center.active {
  background: var(--primary-dark);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 26px rgba(8, 43, 64, 0.28);
}

.bottom-center .icon-svg {
  stroke: #fff;
}

.product-head {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.product-head h2 {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

.icon-only {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.filter-bar-sticky {
  position: sticky;
  top: 118px;
  z-index: 65;
  margin: 0 -4px 12px;
  padding: 8px 4px;
  background: rgba(244, 246, 248, 0.94);
  backdrop-filter: blur(6px);
  border-radius: 12px;
}

.filter-input,
.filter-select {
  min-height: 42px;
  font-size: 14px;
}

.product-card:active,
.order-card:active,
.category-card:active,
.menu-catalog-item:active,
.menu-subitem:active,
.promo-card:active {
  transform: translateY(1px);
}

.bottom-item {
  min-height: 54px;
}

@media (max-width: 420px) {
  .main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-card {
    grid-template-columns: 88px 1fr;
  }

  .product-card img {
    width: 88px;
    height: 88px;
  }

  .category-card img {
    height: 126px;
  }

  .presentation-grid {
    grid-template-columns: 1fr;
  }

}

/* Admin mode overlays */
.admin-panel {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(8, 12, 24, 0.88);
  backdrop-filter: blur(8px);
  padding: 8px;
}

.admin-panel-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-panel-row button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f6f8ff;
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
}

.admin-panel-hint {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(232, 240, 255, 0.72);
}

.admin-hold-pending {
  box-shadow: 0 0 0 3px rgba(255, 138, 76, 0.96), 0 8px 20px rgba(255, 138, 76, 0.22) !important;
  transform: scale(0.994);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-doubletap-flash {
  border-radius: 10px;
  animation: adminDoubleTapPulse 0.52s ease-out;
}

@keyframes adminDoubleTapPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(228, 106, 44, 0.95);
    background: rgba(228, 106, 44, 0.04);
  }
  45% {
    box-shadow: 0 0 0 3px rgba(228, 106, 44, 0.9), 0 0 0 8px rgba(228, 106, 44, 0.2);
    background: rgba(228, 106, 44, 0.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(228, 106, 44, 0);
    background: transparent;
  }
}

.admin-dragging {
  opacity: 0.86;
  transform: scale(0.99);
  box-shadow: 0 0 0 3px rgba(255, 138, 76, 0.96), 0 12px 28px rgba(0, 0, 0, 0.34);
  z-index: 6;
}

.admin-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 8, 16, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.admin-edit-card {
  width: min(620px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: #121a2b;
  padding: 12px;
  max-height: min(86dvh, 760px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-edit-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.admin-edit-input,
.admin-edit-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #0d1322;
  color: #f2f6ff;
  padding: 10px 12px;
}

.admin-edit-textarea {
  min-height: 170px;
  resize: vertical;
}

.admin-edit-actions {
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  background: #121a2b;
  padding-top: 4px;
  padding-bottom: 6px;
  z-index: 2;
}

.admin-edit-actions button.primary {
  background: #ff8d5d;
  color: #22150f;
}

.admin-edit-actions button.danger {
  background: #d45454;
  color: #fff;
}

.admin-header-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-header-button {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 10px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-header-button-primary {
  background: linear-gradient(135deg, #e46a2c, #f08f52);
  border-color: #f08f52;
  color: #fff;
}

.admin-header-button.active {
  background: linear-gradient(135deg, #e46a2c, #f08f52);
  border-color: #f08f52;
  color: #fff;
}

.admin-header-arrow {
  min-width: 36px;
  padding: 6px 8px;
}

.admin-header-arrow:disabled {
  opacity: 0.45;
}

.admin-actions-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(5, 8, 16, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 14px) 12px calc(env(safe-area-inset-bottom) + 18px);
}

.admin-actions-card {
  width: min(560px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: #121a2b;
  padding: 10px;
  max-height: min(78dvh, 720px);
  overflow: auto;
}

.admin-selected-target {
  box-shadow: 0 0 0 3px rgba(228, 106, 44, 0.95), 0 12px 26px rgba(0, 0, 0, 0.3) !important;
}

.admin-actions-title {
  font-size: 15px;
  font-weight: 700;
  color: #f3f7ff;
  margin-bottom: 8px;
}

.admin-actions-list {
  display: grid;
  gap: 6px;
}

.admin-actions-item,
.admin-actions-cancel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f7ff;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.admin-actions-item.danger {
  border-color: rgba(220, 89, 89, 0.55);
  color: #ff9f9f;
}

.admin-actions-cancel {
  margin-top: 8px;
  text-align: center;
}

.icon-only.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 2026-02-22: Lite premium redesign inspired by DavronAppleBot */
:root {
  --bg: #101114;
  --bg-soft: #17191f;
  --panel: #202229;
  --panel-soft: #272932;
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #f5f6f8;
  --muted: #9ea3ae;
  --accent: #6f737b;
  --accent-strong: #838894;
  --radius-xl: 26px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --bottom-nav-height: 108px;
}

body {
  background:
    radial-gradient(1200px 440px at 50% -200px, rgba(255, 255, 255, 0.1), transparent 70%),
    linear-gradient(180deg, #111217 0%, #0c0d11 60%, #0a0b0f 100%);
  color: var(--text);
  min-height: 100dvh;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: max(112px, calc(env(safe-area-inset-top) + 82px)) 18px 10px;
}

.header::before { display: none; }

.brand-logo-line {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.brand-name {
  font-size: clamp(18px, 5.4vw, 24px);
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.05;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-address {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.header-cta {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  color: var(--text);
  min-height: 34px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main {
  max-width: 860px;
  padding: 10px 16px calc(var(--bottom-nav-height) + 22px);
}

.home-section-title,
.section-title {
  color: var(--text);
  font-size: 28px;
  letter-spacing: 0.05em;
  font-weight: 800;
  text-transform: uppercase;
  margin: 18px 6px 12px;
}

.catalog-toolbar,
.profile-card,
.profile-manager-button,
.cart-item,
.text-card,
.feedback-card,
.order-card,
.cart-checkout,
.filter-bar,
.menu-item,
.menu-catalog-card,
.data-status {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.34);
}

.catalog-toolbar {
  padding: 12px;
  margin-top: 6px;
}

.catalog-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.catalog-chips::-webkit-scrollbar { display: none; }

.chip {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.chip-active,
.chip:active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.catalog-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.filter-input,
.filter-select,
.order-form input,
.order-form select,
.order-form textarea {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  color: var(--text);
}

.filter-input::placeholder,
.order-form input::placeholder {
  color: #838792;
}

.filter-select-compact {
  min-width: 124px;
}

.home-feature-wrap {
  margin-top: 14px;
}

.home-banner-slider {
  overflow: visible;
}

.home-banner-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease;
}

.banner-slide {
  min-width: 100%;
}

.home-banner-dots {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 6;
  padding-bottom: 4px;
}

.home-banner-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.home-banner-dots .dot.active {
  background: #f78fd5;
  border-color: #f78fd5;
  transform: scale(1.08);
}

.featured-promo {
  width: 100%;
  border: 0;
  color: var(--text);
  text-align: left;
  border-radius: var(--radius-xl);
  padding: 24px;
  min-height: 240px;
  background: linear-gradient(160deg, #1b2030 0%, #1a1c27 48%, #151722 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  position: relative;
  overflow: hidden;
}

.banner-slide-clean::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.banner-slide-clean::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.banner-slide-promo {
  background: linear-gradient(140deg, #7d2148 0%, #b73668 58%, #d24c79 100%);
}

.banner-slide-sales {
  background: linear-gradient(140deg, #1d2a5d 0%, #24407f 56%, #3566b3 100%);
}

.banner-slide-promo .featured-chip,
.banner-slide-sales .featured-chip {
  border-color: rgba(255, 255, 255, 0.56);
}

.banner-slide-promo .featured-text,
.banner-slide-sales .featured-text,
.banner-slide-promo .featured-text strong,
.banner-slide-sales .featured-text strong {
  color: #ffffff;
}

.featured-chip {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  margin-bottom: 10px;
}

.featured-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.05;
}

.featured-text {
  margin-top: 8px;
  max-width: 360px;
  color: #eef2ff;
  font-size: 17px;
  line-height: 1.38;
}

.featured-text strong {
  color: #ffffff;
  font-weight: 800;
}

.featured-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, rgba(255, 90, 162, 0.92), rgba(224, 84, 195, 0.92));
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.promo-row-home .promo-track {
  gap: 12px;
  padding-bottom: 4px;
}

.promo-card,
.category-card,
.product-card,
.cart-item,
.order-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
}

.product-title,
.order-title,
.profile-name,
.cart-summary-row strong,
.product-price,
.promo-new,
.confirmation-title {
  color: var(--text);
}

.product-meta,
.order-status,
.order-date,
.profile-handle,
.confirmation-note,
.confirmation-text,
.cart-sku,
.menu-phone {
  color: var(--muted);
}

.screen-head {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 4px 2px 14px;
}

.screen-head h2 {
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
}

.back-button,
.icon-only,
.icon-btn,
.qty-btn,
.card-icon {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.select-actions .icon-btn {
  color: var(--primary);
}

.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 16px;
  min-height: 52px;
  border: 1px solid var(--stroke);
  font-weight: 800;
}

.primary-button {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.secondary-button,
.ghost-button {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.promo-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}

#promoStatus {
  min-height: 20px;
  margin: -4px 2px 10px;
  color: var(--muted);
}

#homeRecentTrack .empty-state,
#homePopularTrack .empty-state {
  width: 100%;
  padding: 16px;
  border: 1px dashed var(--stroke);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

input:invalid,
select:invalid {
  box-shadow: none;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cart-summary-row,
.cart-totals,
.profile-theme-row {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.profile-card {
  padding: 14px;
}

.profile-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(140deg, #575d6a, #31343f);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.profile-name {
  font-size: 38px;
  line-height: 1;
}

.profile-handle {
  font-size: 30px;
  margin-top: 6px;
}

.profile-theme-row {
  margin-top: 16px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.profile-manager-button {
  width: 100%;
  text-align: left;
  color: var(--text);
  margin-top: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
}

.profile-manager-button small { color: var(--muted); }

.profile-admin-panel {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-admin-store {
  font-size: 14px;
  color: var(--text);
}

.profile-admin-store strong {
  letter-spacing: 0.04em;
}

.profile-admin-logout {
  width: 100%;
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(18, 20, 26, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  z-index: 300;
}

.bottom-item {
  min-height: 74px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.bottom-item.active {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.32);
}

.nav-hidden {
  display: none !important;
}

.badge {
  background: rgba(255, 255, 255, 0.88);
  color: #22242b;
}

.confirmation {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.data-status {
  color: var(--text);
  margin-bottom: 8px;
}

@media (max-width: 740px) {
  .header {
    padding-top: max(116px, calc(env(safe-area-inset-top) + 88px));
    gap: 6px;
  }
  .brand-name {
    font-size: clamp(16px, 6vw, 21px);
    letter-spacing: 0.05em;
  }
  .header-address { padding: 10px 12px; }
  .header-cta {
    min-height: 32px;
    font-size: 12px;
    padding: 7px 10px;
    max-width: 112px;
  }
  .featured-title { font-size: 32px; }
  .profile-name { font-size: 24px; }
  .profile-handle { font-size: 20px; }
  .home-section-title,
  .section-title,
  .screen-head h2 { font-size: 20px; }
}

/* 2026-02-23: re:Store-like dark UI layer */
:root {
  --bg: #0c0d12;
  --panel: #171922;
  --panel-2: #1f222c;
  --stroke: rgba(255, 255, 255, 0.1);
  --text: #f3f4f7;
  --muted: #9ba0ac;
  --accent: #e65cae;
  --accent-dark: #cc4f9a;
  --bottom-nav-height: 118px;
}

body {
  font-family: "SF Pro Display", "SF Pro Text", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 400px at 50% -220px, rgba(255, 255, 255, 0.1), transparent 70%),
    linear-gradient(180deg, #0f1016 0%, #0a0b10 100%);
}

.header {
  position: sticky;
  top: 0;
  z-index: 220;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 8px;
  background: linear-gradient(180deg, rgba(12, 13, 18, 0.98), rgba(12, 13, 18, 0.9) 76%, transparent);
  backdrop-filter: blur(10px);
}

.brand-logo-line {
  margin-bottom: 8px;
}

.brand-name {
  font-size: clamp(20px, 5.2vw, 28px);
  letter-spacing: 0.06em;
  color: var(--text);
}

.header-address,
.header-cta {
  border-color: var(--stroke);
  background: rgba(255, 255, 255, 0.05);
}

.header-address {
  color: var(--muted);
}

.main {
  padding-top: 8px;
}

.screen-head {
  top: calc(env(safe-area-inset-top) + 72px);
  margin-bottom: 10px;
}

.screen-head h2 {
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.catalog-toolbar,
.category-card,
.product-card,
.promo-card,
.cart-item,
.cart-summary-row,
.profile-card,
.profile-manager-button,
.text-card,
.feedback-card,
.order-card,
.cart-checkout,
.order-form,
.menu-catalog-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.text-card {
  color: var(--text);
}

.text-card p,
.about-lead,
.about-list li {
  color: rgba(240, 244, 255, 0.95);
}

.featured-promo {
  min-height: 260px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(8, 10, 17, 0.06), rgba(8, 10, 17, 0.78)),
    url("https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=1700&q=80") center/cover;
}

.featured-title {
  font-size: clamp(34px, 8vw, 54px);
  letter-spacing: -0.02em;
}

.featured-text {
  font-size: 16px;
}

.category-grid {
  gap: 10px;
}

.category-card img {
  height: 134px;
  background: rgba(255, 255, 255, 0.02);
}

.category-card span {
  color: var(--text);
  font-weight: 600;
}

.product-card {
  grid-template-columns: 112px 1fr;
}

.product-card img {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.product-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.product-meta {
  color: var(--muted);
}

.product-price .promo-new,
.product-price,
.promo-card .promo-price .promo-new {
  color: var(--text);
}

.primary-button {
  background: linear-gradient(140deg, var(--accent), var(--accent-dark));
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.secondary-button,
.ghost-button {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.promo-input-row .secondary-button {
  min-width: 140px;
}

.filter-input,
.filter-select,
.order-form input,
.order-form select {
  min-height: 46px;
}

.home-section-title,
.section-title {
  font-size: clamp(24px, 6vw, 34px);
  letter-spacing: -0.01em;
  text-transform: none;
}

.home-section-title::before {
  width: 24px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ff8fcf);
}

.profile-name {
  font-size: 34px;
}

.profile-handle {
  font-size: 20px;
}

.bottom-nav {
  left: 10px;
  right: 10px;
  bottom: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px 8px calc(14px + env(safe-area-inset-bottom));
  border-radius: 24px;
}

.bottom-item {
  min-height: 62px;
  border-radius: 16px;
  font-size: 11px;
  line-height: 1;
  text-transform: none;
}

.bottom-center {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.06);
}

.bottom-center.active {
  background: linear-gradient(140deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.bottom-center.active .icon-svg {
  stroke: #fff;
}

.bottom-item .badge {
  top: -2px;
  right: 10px;
  background: #fff;
  color: #12141b;
}

@media (max-width: 740px) {
  .header {
    padding-top: calc(env(safe-area-inset-top) + 8px);
  }

  .brand-name {
    font-size: clamp(18px, 7vw, 24px);
  }

  .header-cta {
    max-width: 104px;
  }

  .product-card {
    grid-template-columns: 94px 1fr;
  }

  .product-card img {
    width: 94px;
    height: 94px;
  }

  .product-title {
    font-size: 18px;
  }

  .bottom-item span {
    font-size: 10px;
  }
}

.home-article-slider {
  overflow: hidden;
}

.home-article-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 78%);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.home-article-track::-webkit-scrollbar {
  height: 0;
  width: 0;
}

.home-article-slide {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  text-align: left;
  display: grid;
  gap: 8px;
  cursor: pointer;
  padding: 16px;
  color: var(--text);
  scroll-snap-align: start;
  min-height: 158px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.home-article-slide:nth-child(1) {
  background: linear-gradient(145deg, rgba(206, 79, 154, 0.3), rgba(83, 41, 112, 0.18));
}

.home-article-slide:nth-child(2) {
  background: linear-gradient(145deg, rgba(65, 124, 235, 0.32), rgba(28, 56, 122, 0.2));
}

.home-article-slide:nth-child(3) {
  background: linear-gradient(145deg, rgba(46, 188, 161, 0.28), rgba(25, 95, 91, 0.2));
}

.home-article-slide:nth-child(4) {
  background: linear-gradient(145deg, rgba(235, 122, 65, 0.3), rgba(114, 59, 29, 0.18));
}

.home-article-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-article-slide strong {
  font-size: 20px;
  line-height: 1.1;
}

.home-article-slide span {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(250, 252, 255, 0.98);
}

.theme-toggle-button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
}

.profile-avatar.has-photo {
  padding: 0;
  overflow: hidden;
}

.profile-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html[data-theme="light"] {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --stroke: rgba(14, 18, 26, 0.12);
  --text: #0f1420;
  --muted: #667083;
}

html[data-theme="light"] body {
  background:
    radial-gradient(1000px 360px at 50% -220px, rgba(72, 94, 140, 0.14), transparent 70%),
    linear-gradient(180deg, #f8f9fc 0%, #f1f4f9 100%);
}

html[data-theme="light"] .header {
  background: linear-gradient(180deg, rgba(246, 247, 251, 0.98), rgba(246, 247, 251, 0.92) 76%, transparent);
}

html[data-theme="light"] .catalog-toolbar,
html[data-theme="light"] .category-card,
html[data-theme="light"] .product-card,
html[data-theme="light"] .promo-card,
html[data-theme="light"] .cart-item,
html[data-theme="light"] .cart-summary-row,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .profile-manager-button,
html[data-theme="light"] .text-card,
html[data-theme="light"] .feedback-card,
html[data-theme="light"] .order-card,
html[data-theme="light"] .cart-checkout,
html[data-theme="light"] .order-form,
html[data-theme="light"] .menu-catalog-card {
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 36, 64, 0.08);
}

html[data-theme="light"] .header-address,
html[data-theme="light"] .header-cta,
html[data-theme="light"] .chip,
html[data-theme="light"] .filter-input,
html[data-theme="light"] .filter-select,
html[data-theme="light"] .order-form input,
html[data-theme="light"] .order-form select,
html[data-theme="light"] .icon-only,
html[data-theme="light"] .icon-btn,
html[data-theme="light"] .qty-btn,
html[data-theme="light"] .card-icon {
  background: #fff;
  color: var(--text);
}

html[data-theme="light"] .featured-promo {
  background: linear-gradient(160deg, #2a2f40 0%, #202736 48%, #1b2230 100%);
}

html[data-theme="light"] .featured-text,
html[data-theme="light"] .product-meta,
html[data-theme="light"] .profile-handle,
html[data-theme="light"] .status,
html[data-theme="light"] .cart-sku {
  color: var(--muted);
}

html[data-theme="light"] .home-article-slide span {
  color: rgba(250, 252, 255, 0.97);
}

html[data-theme="light"] .text-card p,
html[data-theme="light"] .about-lead,
html[data-theme="light"] .about-list li {
  color: #3f4b5d;
}

html[data-theme="light"] .home-article-slide {
  border-color: rgba(15, 20, 32, 0.12);
  box-shadow: 0 10px 24px rgba(22, 36, 64, 0.11);
}

html[data-theme="light"] .home-article-kicker {
  border-color: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(12, 16, 24, 0.14);
  box-shadow: 0 12px 34px rgba(20, 32, 55, 0.14);
}

html[data-theme="light"] .bottom-item {
  background: #fff;
  color: #6a7487;
  border-color: rgba(12, 16, 24, 0.12);
}

html[data-theme="light"] .bottom-item.active {
  background: #f0f3f9;
  color: #111827;
}

html[data-theme="light"] .bottom-center {
  background: #eef2f8;
  color: #1f2a3d;
  border-color: rgba(12, 16, 24, 0.16);
}

html[data-theme="light"] .bottom-center .icon-svg {
  stroke: #1f2a3d;
}

html[data-theme="light"] .bottom-center.active {
  background: linear-gradient(140deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: rgba(12, 16, 24, 0.05);
}

html[data-theme="light"] .bottom-center.active .icon-svg {
  stroke: #fff;
}

@media (max-width: 740px) {
  .home-article-track {
    grid-auto-columns: minmax(240px, 88%);
    gap: 8px;
  }

  .home-article-slide {
    padding: 14px;
    min-height: 146px;
  }

  .home-article-slide strong {
    font-size: 18px;
  }

  .home-article-slide span {
    font-size: 12px;
  }
}

/* 2026-02-23: mobile scale + dock position hotfix */
html,
body {
  overflow-x: hidden;
}

@media (max-width: 740px) {
  :root {
    --bottom-nav-height: 88px;
  }

  .main {
    padding: 8px 12px calc(var(--bottom-nav-height) + 8px);
  }

  .header {
    padding: calc(env(safe-area-inset-top) + 6px) 12px 6px;
  }

  .brand-name {
    font-size: clamp(16px, 6.2vw, 20px);
    letter-spacing: 0.04em;
  }

  .header-address {
    font-size: 14px;
    padding: 9px 10px;
  }

  .header-cta {
    min-height: 30px;
    font-size: 11px;
    padding: 6px 9px;
    max-width: 96px;
  }

  .screen-head {
    top: calc(env(safe-area-inset-top) + 58px);
    margin-bottom: 8px;
  }

  .screen-head h2,
  .home-section-title,
  .section-title {
    font-size: 22px;
    line-height: 1.08;
  }

  .featured-promo {
    min-height: 192px;
    padding: 16px;
    border-radius: 18px;
  }

  .featured-title {
    font-size: clamp(26px, 8vw, 34px);
  }

  .featured-text {
    font-size: 14px;
  }

  .featured-cta {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .product-card {
    grid-template-columns: 84px 1fr;
    padding: 9px;
    gap: 8px;
  }

  .product-card img {
    width: 84px;
    height: 84px;
    border-radius: 12px;
  }

  .product-title {
    font-size: 16px;
  }

  .product-meta {
    font-size: 12px;
  }

  .bottom-nav {
    left: 8px;
    right: 8px;
    bottom: 0;
    border-radius: 20px;
    padding: 5px 6px calc(4px + env(safe-area-inset-bottom));
    gap: 6px;
  }

  .bottom-item {
    min-height: 50px;
    border-radius: 13px;
    padding: 4px 2px;
    gap: 4px;
  }

  .bottom-item .icon-svg {
    width: 18px;
    height: 18px;
  }

  .bottom-item span {
    font-size: 10px;
    line-height: 1;
  }

  .bottom-item .badge {
    top: -1px;
    right: 6px;
  }
}

@media (max-width: 430px) {
  :root {
    --bottom-nav-height: 80px;
  }

  body {
    font-size: 14px;
  }

  .main {
    padding: 6px 10px calc(var(--bottom-nav-height) + 6px);
  }

  .header {
    padding: calc(env(safe-area-inset-top) + 4px) 10px 4px;
    gap: 4px;
  }

  .brand-name {
    font-size: clamp(15px, 5.2vw, 18px);
    letter-spacing: 0.03em;
  }

  .header-address {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .header-cta {
    min-height: 28px;
    font-size: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    max-width: 86px;
  }

  .screen-head {
    top: calc(env(safe-area-inset-top) + 52px);
    margin-bottom: 6px;
  }

  .screen-head h2,
  .home-section-title,
  .section-title {
    font-size: 20px;
    line-height: 1.05;
  }

  .featured-promo {
    min-height: 168px;
    padding: 14px;
    border-radius: 16px;
  }

  .featured-chip {
    font-size: 10px;
    padding: 4px 9px;
    margin-bottom: 7px;
  }

  .featured-title {
    font-size: 16px;
    line-height: 1.06;
  }

  .featured-text {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.28;
  }

  .featured-cta {
    margin-top: 10px;
    min-height: 30px;
    border-radius: 10px;
    font-size: 12px;
    padding: 0 10px;
  }

  .product-card {
    grid-template-columns: 76px 1fr;
    padding: 8px;
    gap: 7px;
    border-radius: 14px;
  }

  .product-card img {
    width: 76px;
    height: 76px;
  }

  .product-title {
    font-size: 15px;
    line-height: 1.2;
  }

  .product-meta {
    font-size: 11px;
    margin: 3px 0;
  }

  .product-price {
    font-size: 14px;
  }

  .bottom-nav {
    left: 6px;
    right: 6px;
    bottom: 0;
    border-radius: 16px;
    padding: 4px 4px calc(2px + env(safe-area-inset-bottom));
    gap: 4px;
  }

  .bottom-item {
    min-height: 44px;
    border-radius: 11px;
    padding: 2px 1px;
    gap: 2px;
  }

  .bottom-item .icon-svg {
    width: 16px;
    height: 16px;
  }

  .bottom-item span {
    font-size: 8px;
    letter-spacing: 0;
  }

  .bottom-item .badge {
    top: -2px;
    right: 4px;
    font-size: 10px;
    padding: 1px 5px;
  }
}

/* 2026-02-23: reStore-like top bar + store selector screen */
.header {
  padding: calc(env(safe-area-inset-top) + 8px) 12px 6px;
}

.header-row {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) auto minmax(86px, 1fr);
  align-items: center;
  gap: 8px;
}

.header-store-button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--text);
  min-height: 32px;
  padding: 4px 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
}

.header-store-arrow {
  font-size: 22px;
  line-height: 1;
  opacity: 0.9;
  color: var(--primary);
}

.header .brand-logo-line {
  justify-self: center;
  margin-bottom: 0;
}

.brand-name {
  font-size: clamp(16px, 4.6vw, 24px);
  letter-spacing: 0.02em;
}

.header-search-form {
  justify-self: end;
  width: 100%;
  max-width: 120px;
}

.header-search-button {
  justify-self: end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: grid;
  place-items: center;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 520;
  background: rgba(4, 6, 10, 0.64);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.search-overlay.show {
  opacity: 1;
}

.search-sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: calc(env(safe-area-inset-top) + 12px) 12px 14px;
  background: linear-gradient(180deg, #12141b, #0f1118);
  border-bottom: 1px solid var(--stroke);
  transform: translateY(-16px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.search-overlay.show .search-sheet {
  transform: translateY(0);
  opacity: 1;
}

.search-sheet-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.search-sheet-form {
  width: 100%;
}

.search-sheet-input {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 15px;
  padding: 0 12px;
}

.search-sheet-input::placeholder {
  color: var(--muted);
}

.search-close-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  display: grid;
  place-items: center;
}

.search-sheet-body {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.search-block {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
}

.search-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.search-block-head.solo {
  margin-bottom: 4px;
}

.search-clear-button {
  border: 0;
  background: transparent;
  color: #d387b6;
  font-size: 12px;
}

.search-list {
  display: grid;
  gap: 6px;
}

.search-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: grid;
  gap: 3px;
}

.search-item-submit {
  color: #f1a6d0;
  font-weight: 700;
}

.search-item-title {
  font-size: 14px;
  font-weight: 600;
}

.search-item-meta {
  font-size: 12px;
  color: var(--muted);
}

.search-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 6px;
}

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

.store-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  color: var(--text);
  display: grid;
  gap: 6px;
}

.store-item.active {
  border-color: rgba(230, 92, 174, 0.9);
  box-shadow: 0 0 0 1px rgba(230, 92, 174, 0.4) inset;
}

.store-city {
  font-size: 16px;
  font-weight: 700;
}

.store-address {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

html[data-theme="light"] .header-search-button,
html[data-theme="light"] .search-close-button,
html[data-theme="light"] .search-sheet-input,
html[data-theme="light"] .search-item {
  background: #fff;
  color: var(--text);
}

html[data-theme="light"] .search-overlay {
  background: rgba(18, 22, 30, 0.42);
}

html[data-theme="light"] .search-sheet {
  background: linear-gradient(180deg, #f8f9fc, #f2f4f8);
}

html[data-theme="light"] .store-item {
  background: #fff;
}

html[data-theme="light"] .banner-slide-promo .featured-text,
html[data-theme="light"] .banner-slide-sales .featured-text,
html[data-theme="light"] .banner-slide-promo .featured-text strong,
html[data-theme="light"] .banner-slide-sales .featured-text strong {
  color: #fbfdff;
}

/* Product page readability fix with theme-aware surfaces */
#screen-product .product-price-row,
#screen-product .detail-section,
#screen-product .recommended-card {
  border: 1px solid var(--stroke);
}

html[data-theme="dark"] #screen-product .product-price-row,
html[data-theme="dark"] #screen-product .detail-section,
html[data-theme="dark"] #screen-product .recommended-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border-color: var(--stroke);
}

html[data-theme="dark"] #screen-product .product-title,
html[data-theme="dark"] #screen-product .product-price,
html[data-theme="dark"] #screen-product .section-title,
html[data-theme="dark"] #screen-product .recommended-title {
  color: #f3f6ff;
}

html[data-theme="dark"] #screen-product .product-meta,
html[data-theme="dark"] #screen-product .section-body,
html[data-theme="dark"] #screen-product .product-specs,
html[data-theme="dark"] #screen-product .recommended-price {
  color: #c6cfdf;
}

html[data-theme="dark"] #screen-product .recommended-card img {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] #screen-product .product-price-row,
html[data-theme="light"] #screen-product .detail-section,
html[data-theme="light"] #screen-product .recommended-card {
  background: #ffffff;
  border-color: #d7deeb;
}

html[data-theme="light"] #screen-product .product-title,
html[data-theme="light"] #screen-product .product-price,
html[data-theme="light"] #screen-product .section-title,
html[data-theme="light"] #screen-product .recommended-title {
  color: #1a2436;
}

html[data-theme="light"] #screen-product .product-meta,
html[data-theme="light"] #screen-product .section-body,
html[data-theme="light"] #screen-product .product-specs,
html[data-theme="light"] #screen-product .recommended-price {
  color: #44536a;
}

html[data-theme="light"] #screen-product .recommended-card img {
  background: #f3f6fb;
}

@media (max-width: 740px) {
  .header {
    padding: calc(env(safe-area-inset-top) + 6px) 10px 4px;
  }

  .header-row {
    grid-template-columns: minmax(76px, 1fr) auto minmax(76px, 1fr);
    gap: 6px;
  }

  .header-store-button {
    min-height: 28px;
    font-size: 14px;
  }

  .header-search-button {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: clamp(13px, 4.6vw, 18px);
  }
}

/* 2026-02-23: dock icon height + page title line width fix */
.bottom-nav {
  align-items: stretch;
}

.bottom-item {
  height: 100%;
  min-height: 58px;
  justify-content: center;
}

.screen-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.screen-head h2,
.product-head h2 {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-inline: 8px;
}

#screen-categories .screen-head {
  grid-template-columns: minmax(0, 1fr);
}

#screen-categories .screen-head h2 {
  padding-inline: 0;
}

@media (max-width: 740px) {
  .bottom-nav {
    padding-bottom: calc(2px + env(safe-area-inset-bottom));
  }

  .bottom-item {
    min-height: 54px;
    border-radius: 12px;
  }

  .screen-head h2,
  .product-head h2 {
    padding-inline: 6px;
    font-size: 21px;
  }
}

@media (max-width: 430px) {
  .bottom-item {
    min-height: 50px;
  }

  .screen-head h2,
  .product-head h2 {
    font-size: 19px;
    padding-inline: 4px;
  }
}

/* 2026-02-23: checkout typography/scale cleanup */
#screen-checkout .screen-head h2 {
  font-size: clamp(20px, 5.4vw, 28px);
}

#screen-checkout .cart-checkout {
  padding: 12px;
  border-radius: 16px;
}

#screen-checkout .order-form {
  gap: 10px;
}

#screen-checkout .order-form label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

#screen-checkout .order-form input,
#screen-checkout .order-form select {
  min-height: 44px;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 17px;
}

#screen-checkout .order-form.flat input,
#screen-checkout .order-form.flat select {
  background: rgba(19, 24, 38, 0.94);
  border: 1px solid rgba(154, 170, 208, 0.35);
  color: #f5f8ff;
}

#screen-checkout #inputDeliveryType {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 5.25L7 9.25L11.5 5.25' stroke='%23E46A2C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}

#screen-checkout .order-form.flat input::placeholder {
  color: #a7afc2;
}

#screen-checkout .order-form.flat label {
  color: #eef2ff;
  font-size: 15px;
}

#screen-checkout .checkbox span {
  color: #d8deee;
}

#screen-checkout #policyLink {
  color: #9ec1ff;
}

#screen-checkout .checkbox {
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
}

#screen-checkout .checkbox input {
  width: 24px;
  height: 24px;
}

#screen-checkout .checkbox span {
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  padding-top: 1px;
}

#screen-checkout .cart-totals {
  padding: 10px 14px;
  margin-top: 4px;
}

#screen-checkout .cart-totals div {
  font-size: 15px;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
}

#screen-checkout .cart-totals span,
#screen-checkout .cart-totals strong {
  color: #f4f7ff;
}

@media (max-width: 740px) {
  #screen-checkout .screen-head h2 {
    font-size: 22px;
  }

  #screen-checkout .cart-checkout {
    padding: 10px;
  }

  #screen-checkout .order-form label {
    font-size: 12px;
  }

  #screen-checkout .order-form input,
  #screen-checkout .order-form select {
    min-height: 42px;
    font-size: 16px;
    padding: 10px 13px;
  }

  #screen-checkout .order-form.flat label {
    font-size: 14px;
  }

  #screen-checkout .cart-totals {
    padding: 10px 12px;
  }
}

/* 2026-02-23: ensure readable product titles in dark theme */
html[data-theme="dark"] .product-title,
html[data-theme="dark"] .promo-title,
html[data-theme="dark"] .recommended-title,
html[data-theme="dark"] .cart-title-link,
html[data-theme="dark"] .search-item-title {
  color: #f5f7ff !important;
}

html[data-theme="dark"] .order-toggle {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke);
  color: #eef2ff;
}

/* 2026-02-24: global readability + light-theme border polish */
html[data-theme="dark"] .section-body,
html[data-theme="dark"] .product-specs,
html[data-theme="dark"] .order-status,
html[data-theme="dark"] .order-date,
html[data-theme="dark"] .status,
html[data-theme="dark"] .cart-sku,
html[data-theme="dark"] .product-meta {
  color: #c7d0e2;
}

html[data-theme="dark"] .order-title,
html[data-theme="dark"] .order-total,
html[data-theme="dark"] .order-item-title,
html[data-theme="dark"] .section-title {
  color: #f4f7ff;
}

html[data-theme="light"] .featured-title,
html[data-theme="light"] .featured-text,
html[data-theme="light"] .featured-text strong,
html[data-theme="light"] .featured-chip,
html[data-theme="light"] .featured-cta {
  color: #f8fbff;
}

html[data-theme="light"] .featured-chip {
  border-color: rgba(255, 255, 255, 0.52);
}

html[data-theme="light"] .home-article-slide strong {
  color: #101a2b;
}

html[data-theme="light"] .home-article-slide span {
  color: #2e3d53;
}

html[data-theme="light"] .home-article-kicker {
  color: #1f2d40;
  border-color: rgba(16, 26, 43, 0.18);
  background: rgba(255, 255, 255, 0.5);
}

/* Убираем техническую подложку под баннером в светлой теме */
html[data-theme="light"] .home-feature-wrap,
html[data-theme="light"] .home-banner-slider,
html[data-theme="light"] .home-banner-track {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .section-body,
html[data-theme="light"] .product-specs,
html[data-theme="light"] .order-status,
html[data-theme="light"] .order-date,
html[data-theme="light"] .status,
html[data-theme="light"] .cart-sku,
html[data-theme="light"] .product-meta {
  color: #526178;
}

html[data-theme="light"] .product-title,
html[data-theme="light"] .order-title,
html[data-theme="light"] .order-total,
html[data-theme="light"] .order-item-title,
html[data-theme="light"] .section-title {
  color: #0f172a;
}

html[data-theme="light"] .catalog-toolbar,
html[data-theme="light"] .category-card,
html[data-theme="light"] .product-card,
html[data-theme="light"] .promo-card,
html[data-theme="light"] .cart-item,
html[data-theme="light"] .cart-summary-row,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .profile-manager-button,
html[data-theme="light"] .text-card,
html[data-theme="light"] .feedback-card,
html[data-theme="light"] .order-card,
html[data-theme="light"] .cart-checkout,
html[data-theme="light"] .order-form,
html[data-theme="light"] .menu-catalog-card,
html[data-theme="light"] .home-article-slide,
html[data-theme="light"] .order-toggle,
html[data-theme="light"] .recommended-card,
html[data-theme="light"] .detail-section,
html[data-theme="light"] .product-price-row {
  border-color: rgba(14, 18, 26, 0.06) !important;
  box-shadow: 0 10px 24px rgba(22, 36, 64, 0.08);
}

html[data-theme="light"] .bottom-item {
  border-color: rgba(14, 18, 26, 0.08);
  box-shadow: inset 0 0 0 1px rgba(14, 18, 26, 0.04);
}

/* Admin analytics */
body.admin-mode .admin-hidden-nav {
  display: none !important;
}

body.admin-mode .bottom-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* В админке запрещаем выделение текста в интерфейсе,
   чтобы long-press не вызывал системное выделение поверх меню. */
body.admin-mode,
body.admin-mode *:not(input):not(textarea):not([contenteditable="true"]) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Ввод нового текста оставляем редактируемым и выделяемым. */
body.admin-mode input,
body.admin-mode textarea,
body.admin-mode [contenteditable="true"],
.admin-edit-input,
.admin-edit-textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.admin-analytics-card,
.admin-month-card,
.admin-order-card {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text);
  text-align: left;
}

.admin-analytics-card {
  padding: 12px;
}

.admin-analytics-label {
  font-size: 13px;
  color: var(--muted);
}

.admin-analytics-value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.admin-analytics-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.admin-analytics-months,
.admin-analytics-orders {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.admin-month-card,
.admin-order-card {
  padding: 10px 12px;
}

.admin-month-title {
  font-size: 15px;
  font-weight: 700;
}

.admin-month-meta,
.admin-order-meta {
  font-size: 13px;
  color: var(--muted);
}

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

.admin-order-head strong {
  color: var(--text);
}

.admin-order-head span {
  font-size: 12px;
  color: var(--muted);
}

.admin-report-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(5, 8, 16, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.admin-report-card {
  width: min(760px, 100%);
  max-height: 82vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #121a2b;
  color: #f2f6ff;
  padding: 12px;
}

.admin-report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-report-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.admin-report-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f2f6ff;
}

.admin-report-body {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.admin-report-body hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 4px 0;
}

.admin-modal-order {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .admin-analytics-card,
html[data-theme="light"] .admin-month-card,
html[data-theme="light"] .admin-order-card {
  border-color: rgba(18, 42, 62, 0.16);
  background: linear-gradient(150deg, #ffffff, #f6f8fc);
  color: #1c2735;
}

html[data-theme="light"] .admin-analytics-label,
html[data-theme="light"] .admin-analytics-meta,
html[data-theme="light"] .admin-month-meta,
html[data-theme="light"] .admin-order-meta,
html[data-theme="light"] .admin-order-head span {
  color: #5f6f82;
}

html[data-theme="light"] .admin-report-card {
  background: #ffffff;
  color: #1c2735;
  border-color: rgba(18, 42, 62, 0.16);
}

html[data-theme="light"] .admin-report-close {
  color: #1c2735;
  border-color: rgba(18, 42, 62, 0.2);
  background: #f5f7fa;
}

html[data-theme="light"] .admin-report-body hr {
  border-top-color: rgba(18, 42, 62, 0.2);
}

html[data-theme="light"] .admin-modal-order {
  border-color: rgba(18, 42, 62, 0.16);
  background: #f7f9fc;
}

html[data-theme="light"] .admin-header-button {
  color: #162033;
  border-color: rgba(18, 42, 62, 0.22);
  background: #ffffff;
}

html[data-theme="light"] .admin-header-button-primary {
  color: #ffffff;
  border-color: #e46a2c;
  background: linear-gradient(135deg, #e46a2c, #f08f52);
}

html[data-theme="light"] .admin-actions-card {
  background: #ffffff;
  border-color: rgba(18, 42, 62, 0.2);
}

html[data-theme="light"] .admin-actions-title {
  color: #111c2e;
}

html[data-theme="light"] .admin-actions-item,
html[data-theme="light"] .admin-actions-cancel {
  color: #162033;
  border-color: rgba(18, 42, 62, 0.2);
  background: #f8fbff;
}

html[data-theme="light"] .admin-edit-card {
  background: #ffffff;
  border-color: rgba(18, 42, 62, 0.2);
}

html[data-theme="light"] .admin-edit-actions {
  background: #ffffff;
}

/* Inline admin controls */
.admin-inline-plus {
  display: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

body.admin-mode .admin-inline-plus {
  display: inline-flex !important;
}

.home-feature-wrap {
  position: relative;
}

.admin-inline-plus-hero {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
}

.admin-catalog-controls {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

body.admin-mode .admin-catalog-controls {
  display: inline-flex;
}

.admin-catalog-select {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f6f8ff;
  border-radius: 10px;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-catalog-select.active {
  color: #ffffff;
  border-color: #f08f52;
  background: linear-gradient(135deg, #e46a2c, #f08f52);
}

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

.admin-add-row {
  min-height: 0;
  margin: 10px 0 14px;
  display: inline-flex;
  justify-content: center;
  justify-self: end;
  align-self: center;
  gap: 8px;
  padding: 6px 8px;
  max-width: calc(100vw - 32px);
  width: auto;
  margin-left: auto;
  margin-right: 8px;
  flex-wrap: wrap;
}

.home-blocks {
  display: grid;
  gap: 2px;
}

.home-admin-block {
  overflow: visible;
}

body:not(.admin-mode) .admin-add-row {
  display: none;
}

#screen-home .admin-add-row .admin-inline-plus {
  width: 34px;
  height: 34px;
}

.admin-inline-move {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

body.admin-mode .admin-inline-move {
  display: inline-flex !important;
}

body.admin-mode .admin-add-row {
  display: inline-flex !important;
  position: relative;
  z-index: 20;
  border-radius: 12px;
  background: rgba(16, 19, 29, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body.admin-mode .admin-inline-plus,
body.admin-mode .admin-inline-move {
  opacity: 1;
  visibility: visible;
  border-width: 2px;
  width: 40px !important;
  height: 40px !important;
  background: linear-gradient(135deg, #e46a2c, #f08f52);
  border-color: #f08f52;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(228, 106, 44, 0.35);
  line-height: 1;
  font-size: 22px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  text-indent: 0;
  overflow: visible;
}

html[data-theme="light"] .admin-inline-plus {
  color: #ffffff;
  border-color: #e46a2c;
  background: linear-gradient(135deg, #e46a2c, #f08f52);
}

html[data-theme="light"] .admin-catalog-select {
  color: #162033;
  border-color: rgba(18, 42, 62, 0.22);
  background: #ffffff;
}

html[data-theme="light"] .admin-inline-move {
  color: #ffffff;
  border-color: #e46a2c;
  background: linear-gradient(135deg, #e46a2c, #f08f52);
}

html[data-theme="light"] body.admin-mode .admin-add-row {
  background: rgba(244, 247, 252, 0.96);
  border-color: rgba(18, 42, 62, 0.15);
}

/* 2026-02-27: hard lock for home promo/popular card scale */
#screen-home .promo-row-home .promo-track {
  --home-cards-per-row: 5;
  --home-cards-gap: 10px;
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--home-cards-per-row) - 1) * var(--home-cards-gap)) / var(--home-cards-per-row));
  gap: var(--home-cards-gap) !important;
  overflow-x: auto;
}

#screen-home .promo-row-home .promo-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
}

@media (max-width: 430px) {
  #screen-home .promo-row-home .promo-track {
    --home-cards-per-row: 4;
    --home-cards-gap: 8px;
  }
}

.saas-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 10, 18, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.saas-auth-card {
  width: min(480px, 100%);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(19, 23, 34, 0.98), rgba(15, 18, 28, 0.98));
  border: 1px solid var(--stroke);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saas-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.saas-auth-tab {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.saas-auth-tab.active {
  border-color: rgba(230, 106, 44, 0.9);
  background: linear-gradient(135deg, #e46a2c, #f08f52);
  color: #fff;
}

.saas-auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.saas-auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.saas-auth-card .admin-modal-input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.saas-auth-card .admin-modal-input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.saas-auth-card .admin-modal-input:focus {
  border-color: rgba(230, 106, 44, 0.9);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(230, 106, 44, 0.2);
}

.saas-auth-error {
  border: 1px solid rgba(255, 112, 112, 0.45);
  background: rgba(139, 39, 39, 0.25);
  color: #ffd8d8;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

html[data-theme="light"] .saas-auth-modal {
  background: rgba(20, 24, 35, 0.45);
}

html[data-theme="light"] .saas-auth-card {
  background: #ffffff;
  border-color: rgba(18, 42, 62, 0.2);
}

html[data-theme="light"] .saas-auth-tab {
  border-color: rgba(18, 42, 62, 0.22);
  background: rgba(18, 42, 62, 0.05);
  color: #162033;
}

html[data-theme="light"] .saas-auth-card .admin-modal-input {
  border-color: rgba(18, 42, 62, 0.18);
  background: rgba(18, 42, 62, 0.05);
  color: #162033;
}

html[data-theme="light"] .saas-auth-card .admin-modal-input::placeholder {
  color: rgba(22, 32, 51, 0.45);
}

html[data-theme="light"] .saas-auth-card .admin-modal-input:focus {
  border-color: rgba(230, 106, 44, 0.75);
  background: rgba(18, 42, 62, 0.08);
  box-shadow: 0 0 0 3px rgba(230, 106, 44, 0.14);
}
