:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #fbfbf8;
  --card: rgba(255, 255, 255, 0.96);
  --card-strong: rgba(255, 255, 255, 0.99);
  --text: #171d28;
  --muted: #656d7b;
  --line: rgba(26, 32, 44, 0.08);
  --primary: #24b233;
  --primary-2: #41c84b;
  --success: #24b233;
  --warning: #f5bf3d;
  --danger: #e43d3d;
  --shadow: 0 12px 34px rgba(44, 51, 63, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 8%, rgba(36, 178, 51, 0.06), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(245, 191, 61, 0.04), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfbf8 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

#app {
  min-height: 100vh;
}

#overlay-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
}

.system-toast-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 560px);
  z-index: 1200;
  pointer-events: none;
}

.system-toast-backdrop {
  position: absolute;
  inset: -14px -12px -14px -12px;
  border-radius: 26px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.84) 45%,
    rgba(255, 255, 255, 0.3) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 58%, rgba(0, 0, 0, 0.04) 100%);
  pointer-events: none;
}

.system-toast {
  position: relative;
  pointer-events: auto;
  margin: 0 auto;
  max-width: 100%;
  box-shadow: 0 20px 42px rgba(16, 20, 28, 0.16);
  border-radius: 18px;
}

.system-toast.notice {
  margin: 0;
}

.system-toast.notice.info {
  background: rgba(255, 255, 255, 0.94);
}

.system-toast.notice.success {
  background: rgba(233, 249, 236, 0.96);
}

.system-toast.notice.warning {
  background: rgba(255, 244, 211, 0.96);
}

.system-toast.notice.danger {
  background: rgba(255, 235, 235, 0.96);
}

.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 16px 112px;
}

.bottomnav-inner,
.row,
.row-between,
.row-center,
.nav,
.controls,
.stats,
.grid,
.product-grid,
.chip-row,
.stack,
.split {
  display: flex;
  gap: 12px;
}

.stack {
  flex-direction: column;
  min-width: 0;
}

.stack > * {
  min-width: 0;
}

.topbar-inner,
.row-between,
.row-center {
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow);
  font-weight: 800;
}

.brand-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #141a24;
}

.brand-subtitle,
.muted {
  color: #6d7480;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
}

.card-strong {
  background: var(--card-strong);
}

.panel {
  padding: 18px;
}

.hero {
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20px -42px auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(43, 181, 58, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 900;
  color: #141a24;
}

.hero-title strong {
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 64ch;
  color: #5f6774;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.55;
}

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(43, 181, 58, 0.12), rgba(73, 200, 77, 0.08));
  border: 1px solid rgba(43, 181, 58, 0.14);
}

.banner strong {
  display: block;
  overflow-wrap: anywhere;
}

.section {
  margin-top: 18px;
}

.offer-collapse {
  margin-top: 14px;
  overflow: visible;
  padding: 14px 14px 16px;
}

.offer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.offer-summary::-webkit-details-marker {
  display: none;
}

.offer-arrow {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-right: 4px;
}

.offer-collapse[open] .offer-arrow {
  transform: rotate(225deg);
}

.offer-text {
  margin-top: 12px;
  line-height: 1.45;
  color: #495262;
  font-size: 13px;
  overflow-wrap: anywhere;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer-paragraph {
  display: block;
  white-space: pre-wrap;
  margin: 0;
}

.offer-paragraph + .offer-paragraph {
  margin-top: 12px;
}

.offer-editor {
  min-height: 420px;
  line-height: 1.55;
}

.offer-page {
  padding-bottom: 16px;
}

.offer-actions {
  margin-top: 12px;
}

.section-title {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f6774;
  margin: 0 0 10px;
}

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

.grid.two {
  gap: 16px;
}

.grid.two > * {
  grid-column: span 6;
}

.grid.three > * {
  grid-column: span 4;
}

.grid.four > * {
  grid-column: span 3;
}

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

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

.achievement-card {
  appearance: none;
  border: 0;
  width: 100%;
  padding: 14px 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--text);
  display: grid;
  justify-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.achievement-card:hover {
  transform: translateY(-1px);
  border-color: rgba(43, 181, 58, 0.24);
  background: rgba(255, 255, 255, 0.85);
}

.achievement-card.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.achievement-emoji {
  font-size: 30px;
  line-height: 1;
}

.achievement-title {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.achievement-lock {
  font-size: 9px;
  color: var(--muted);
  line-height: 1;
}

.achievement-modal {
  width: min(420px, 100%);
}

.achievement-modal-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 14px;
}

.achievement-modal-emoji {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: rgba(39, 170, 56, 0.08);
  border: 1px solid var(--line);
}

.achievement-modal-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.achievement-modal-state {
  margin-top: 4px;
  font-size: 12px;
}

.achievement-modal-state.success {
  color: #27aa38;
}

.chip-row {
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.18s ease;
}

.chip.active,
.chip:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: rgba(36, 178, 51, 0.34);
  color: white;
  box-shadow: 0 10px 22px rgba(36, 178, 51, 0.18);
  transform: translateY(-1px);
}

.chip.active {
  font-weight: 700;
}

.btn {
  border: 0;
  color: white;
  border-radius: 14px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(36, 178, 51, 0.16);
  font-weight: 700;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--text);
}

.btn.success {
  background: linear-gradient(135deg, #27aa38, #2ec442);
}

.btn.warning {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1b1200;
}

.btn.danger {
  background: linear-gradient(135deg, #e03637, #f04243);
}

.btn.block {
  width: 100%;
}

.field,
.field-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.input,
.textarea,
.select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(39, 170, 56, 0.5);
  box-shadow: 0 0 0 3px rgba(39, 170, 56, 0.12);
}

.search-field {
  position: relative;
}

.search-field .input {
  padding-right: 82px;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  color: var(--primary);
  pointer-events: none;
  transform: translateY(-50%);
}

.search-clear {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 178, 51, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: var(--text);
}

.pill.soft {
  color: var(--muted);
}

.pill.success {
  color: #1f8f2c;
  background: rgba(36, 178, 51, 0.14);
}

.pill.accent {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: rgba(36, 178, 51, 0.18);
  box-shadow: 0 8px 20px rgba(36, 178, 51, 0.16);
}

.pill.warning {
  color: #3b2600;
  background: linear-gradient(135deg, #f5bf3d, #ffd54d);
  border-color: rgba(245, 191, 61, 0.5);
  box-shadow: 0 8px 18px rgba(245, 191, 61, 0.12);
}

.pill.danger {
  color: #cc3333;
  background: rgba(228, 61, 61, 0.13);
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  display: grid;
  place-items: center;
}

.icon-btn-glyph {
  font-size: 18px;
  line-height: 1;
}

.icon-btn-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e03637;
  border: 2px solid #ffffff;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.product-card.locked {
  opacity: 0.72;
}

.product-open,
.product-title-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.product-open {
  display: block;
  width: 100%;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 14px;
  min-width: 0;
}

.product-title-link {
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-card-category {
  font-size: 12px;
  color: var(--muted);
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.25;
}

.product-card-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(36, 178, 51, 0.08);
  border: 1px solid rgba(36, 178, 51, 0.08);
}

.product-city-line {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #1f8f2c;
  overflow-wrap: anywhere;
}

.product-city-line::before {
  content: "Город: ";
  color: var(--muted);
  font-weight: 600;
}

.product-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-quantity {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(36, 178, 51, 0.04);
  border: 1px solid rgba(36, 178, 51, 0.08);
  min-width: 0;
  width: 100%;
}

.product-card-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.product-card-line .price {
  font-size: 18px;
}

.lock-badge {
  right: 10px;
  left: auto;
  background: rgba(224, 54, 55, 0.85);
  color: white;
}

.reward-split-image {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.reward-split-strip {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-size: 200% 200%;
  background-repeat: no-repeat;
  border: 1px solid rgba(224, 232, 240, 0.92);
  background-color: #f3f4f6;
}

.reward-split-strip.unlocked {
  filter: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(39, 170, 56, 0.22),
    0 0 24px rgba(39, 170, 56, 0.28);
  z-index: 1;
}

.reward-split-strip.locked {
  background-image: none !important;
  background: #d1d5db;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.reward-split-strip.locked::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: rgba(71, 85, 105, 0.86);
  background: transparent;
}

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

.week-chip {
  justify-content: center;
  width: 100%;
}

.product-image {
  aspect-ratio: 1.2 / 1;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(39, 170, 56, 0.06), rgba(46, 196, 66, 0.03)),
    radial-gradient(circle at top, rgba(39, 170, 56, 0.08), transparent 40%);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-stack {
  align-items: flex-start;
}

.product-detail-stack .price,
.product-detail-stack .muted-block,
.product-detail-stack .notice,
.product-detail-stack .controls {
  width: 100%;
}

.product-detail-stack .pill {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f05f55, #e83d3d);
  border: 1px solid rgba(228, 61, 61, 0.58);
  color: white;
  box-shadow: 0 8px 18px rgba(228, 61, 61, 0.2);
}

.badge-green {
  background: linear-gradient(135deg, #24b233, #41c84b);
  border-color: rgba(36, 178, 51, 0.58);
  box-shadow: 0 8px 18px rgba(36, 178, 51, 0.2);
}

.badge-yellow {
  background: linear-gradient(135deg, #f5bf3d, #ffd54d);
  border-color: rgba(245, 191, 61, 0.58);
  color: #3b2600;
  box-shadow: 0 8px 18px rgba(245, 191, 61, 0.2);
}

.badge-red {
  background: linear-gradient(135deg, #f05f55, #e83d3d);
  border-color: rgba(228, 61, 61, 0.58);
  box-shadow: 0 8px 18px rgba(228, 61, 61, 0.2);
}

.badge-blue {
  background: linear-gradient(135deg, #4a86ff, #2563eb);
  border-color: rgba(37, 99, 235, 0.58);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.tiny {
  font-size: 12px;
}

.muted-block {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.step {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.step .num {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  margin-bottom: 10px;
  font-weight: 800;
  color: white;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1001;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.bottomnav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nav-link {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  padding: 10px 8px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.nav-link.active {
  color: var(--primary);
  background: rgba(36, 178, 51, 0.1);
  border-color: rgba(36, 178, 51, 0.16);
}

.nav-icon {
  font-size: 20px;
  line-height: 1;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 1010;
  pointer-events: auto;
}

.modal {
  width: min(680px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 178, 51, 0.7) transparent;
}

.modal::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background: rgba(36, 178, 51, 0.55);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.modal::-webkit-scrollbar-corner {
  background: transparent;
}

.modal .title {
  margin: 0 0 8px;
  font-size: 22px;
}

.notifications-modal {
  width: min(680px, 100%);
}

.notifications-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.notification-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification-item strong {
  color: #153f1d;
}

.order-card {
  position: relative;
  min-height: 92px;
}

.order-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding-right: 96px;
}

.order-card-content strong {
  color: #151c27;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.orders-scroll {
  max-height: 368px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.orders-scroll .stack {
  gap: 10px;
}

.order-payment-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(36, 178, 51, 0.14);
}

.order-payment-badge.success {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: rgba(36, 178, 51, 0.3);
}

.order-payment-badge.warning {
  color: #3b2600;
  background: linear-gradient(135deg, #ffd54d, #ffbd2d);
  border-color: rgba(245, 191, 61, 0.38);
  box-shadow: 0 8px 18px rgba(245, 191, 61, 0.18);
}

.order-payment-badge.accent {
  color: white;
  background: linear-gradient(135deg, #24b233, #41c84b);
  border-color: rgba(36, 178, 51, 0.3);
}

.product-card-quantity .qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(4px, 1.5vw, 8px);
  width: 100%;
  min-width: 0;
}

.product-card-quantity .qty-stepper-value {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.product-card-quantity .qty-stepper .btn.secondary.tiny {
  flex: 0 0 auto;
  min-width: clamp(34px, 10vw, 42px);
  padding-inline: clamp(8px, 2vw, 12px);
}

@media (max-width: 420px) {
  .product-card-quantity {
    padding: 9px 10px;
    gap: 6px;
  }

  .product-card-quantity .qty-stepper {
    gap: 4px;
  }

  .product-card-quantity .qty-stepper-value {
    font-size: 16px;
  }

  .product-card-quantity .qty-stepper .btn.secondary.tiny {
    min-width: 34px;
    padding-inline: 8px;
  }
}

.stack-tight {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.icon-delete {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  font-size: 14px;
  vertical-align: top;
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(36, 178, 51, 0.08);
  border: 1px solid rgba(36, 178, 51, 0.12);
  color: var(--text);
}

.notice.success {
  background: rgba(36, 178, 51, 0.14);
  border-color: rgba(36, 178, 51, 0.18);
  color: #1f7e2a;
}

.notice.info {
  background: rgba(36, 178, 51, 0.05);
  border-color: rgba(36, 178, 51, 0.08);
  color: var(--text);
}

.notice.gradient {
  background: linear-gradient(135deg, rgba(36, 178, 51, 0.16), rgba(65, 200, 75, 0.1));
  border-color: rgba(36, 178, 51, 0.16);
  color: #167323;
}

.admin-actions {
  flex-wrap: wrap;
}

.admin-actions .btn {
  flex: 1 1 180px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-card-grid {
  align-items: start;
}

.admin-card-grid .field,
.admin-card-grid .kpi,
.admin-card-grid .pill,
.admin-card-grid .input,
.admin-card-grid .textarea,
.admin-card-grid .select {
  min-width: 0;
}

.admin-card-grid .field {
  overflow: hidden;
}

.admin-card-grid .textarea {
  min-height: 96px;
}

.admin-check {
  width: 100%;
  justify-content: flex-start;
  overflow: hidden;
}

.admin-check span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.raffle-result {
  overflow: hidden;
}

.raffle-result .chip-row {
  max-width: 100%;
}

.raffle-actions .btn {
  flex: 1 1 160px;
}

.collapsible {
  width: 100%;
  overflow: hidden;
}

.collapsible > summary {
  list-style: none;
}

.collapsible > summary::-webkit-details-marker {
  display: none;
}

.collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
}

.collapsible-summary-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.collapsible-summary-text strong {
  font-size: 16px;
  line-height: 1.25;
  color: #171d28;
  overflow-wrap: anywhere;
}

.collapsible[open] .collapsible-summary {
  margin-bottom: 2px;
}

.collapsible .btn.danger.tiny {
  flex: 0 0 auto;
}

.kpi {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.kpi strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.spacer {
  height: 16px;
}

.shop-title {
  font-size: clamp(30px, 5vw, 44px);
  margin-top: 2px;
  margin-bottom: 0;
  color: #171d28;
}

.shop-hero-copy {
  min-width: 0;
}

.shop-hero-copy strong {
  display: block;
  font-size: clamp(25px, 3.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 900;
  color: #171d28;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.98),
    0 0 22px rgba(255, 255, 255, 0.9),
    0 0 42px rgba(255, 255, 255, 0.68);
  filter: none;
}

.shop-hero-copy .muted {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: rgba(23, 29, 40, 0.88);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.94),
    0 0 18px rgba(255, 255, 255, 0.82),
    0 0 34px rgba(255, 255, 255, 0.58);
  filter: none;
}

.shop-hero-banner {
  position: relative;
  min-height: 164px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 255, 247, 0.72)),
    linear-gradient(135deg, #f5fff7 0%, #fffdf7 100%);
  background-size: cover;
  background-position: center;
}

.shop-hero-banner.has-image::before {
  content: none;
}

.shop-hero-banner::after {
  content: none;
}

.shop-hero-cta {
  position: relative;
  z-index: 1;
  min-width: 148px;
  min-height: 54px;
  border-radius: 20px;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  white-space: normal;
  text-align: center;
  background: linear-gradient(135deg, #24b233, #41c84b);
  color: #fff;
  box-shadow: 0 18px 38px rgba(36, 178, 51, 0.24);
  animation: heroPulse 2.8s ease-in-out infinite;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.shop-hero-cta:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 20px 42px rgba(36, 178, 51, 0.3);
}

.shop-hero-cta:active {
  transform: translateY(0) scale(0.97);
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.ref-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 900px) {
  .grid.two > *,
  .grid.three > *,
  .grid.four > * {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .banner,
  .row-between {
    align-items: flex-start;
    gap: 10px;
  }

  .topbar-inner,
  .banner {
    flex-direction: column;
  }

  .banner .btn.secondary,
  .topbar .pill {
    width: 100%;
  }

  .shop-hero-cta {
    min-width: 132px;
    min-height: 56px;
    width: auto;
  }

  .shop-hero-banner {
    min-height: 148px;
    align-items: flex-start;
  }

  .shop-hero-banner.has-image::before {
    content: none;
  }

  .row-between {
    flex-wrap: wrap;
  }

  .admin-actions .btn {
    flex: 1 1 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card-body {
    padding: 10px 10px 12px;
    gap: 6px;
  }

  .product-title-link {
    font-size: 14px;
  }

  .product-card-desc {
    -webkit-line-clamp: 2;
    font-size: 12px;
  }

  .product-card-line .price {
    font-size: 15px;
  }

  .product-card-line .btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .app-shell {
    padding-bottom: 120px;
    padding-inline: 12px;
  }

  .hero {
    padding: 16px;
  }

  .panel {
    padding: 14px;
  }

  .grid.two > *,
  .grid.three > *,
  .grid.four > * {
    grid-column: span 12;
  }

  .bottomnav-inner {
    padding-inline: 8px;
    gap: 6px;
  }

  .chip {
    padding: 9px 12px;
  }

  .product-image {
    aspect-ratio: 1 / 1;
  }

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

  .shop-title {
    font-size: clamp(28px, 7vw, 38px);
  }

  .input,
  .textarea,
  .select {
    font-size: 16px;
  }
}
