:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-soft: #eff6ff;
  --color-deal: #c92d43;
  --color-deal-soft: #fff1f0;
  --color-success: #167444;
  --color-success-soft: #f0fdf4;
  --color-accent: #fbbf24;
  --color-text: #18212f;
  --color-text-secondary: #4e5b6b;
  --color-text-tertiary: #626e7d;
  --color-border: #dce1e7;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --shadow-soft: 0 8px 24px rgba(24, 33, 47, 0.1);
  --shadow-card: 0 2px 6px rgba(24, 33, 47, 0.04);
  --radius-card: 14px;
  --radius-control: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 72px;
  --content-width: 100%;
  --page-gutter: 16px;
  --header-height: 68px;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--color-text);
  background: var(--color-bg);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #eef0f3;
  color: var(--color-text);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

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

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

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

input::placeholder {
  color: var(--color-text-tertiary);
  opacity: 1;
}

.ui-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
  vertical-align: middle;
}

.desktop-stage {
  min-height: 100vh;
}

.app-shell {
  width: var(--content-width);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-border);
}

.screen {
  min-height: 100vh;
  padding: 0 var(--page-gutter) calc(var(--nav-height) + var(--safe-bottom) + 32px);
}

.screen.has-sticky-cta {
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 104px);
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  margin: 0 calc(-1 * var(--page-gutter)) 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--page-gutter) 10px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.top-bar.plain {
  border-bottom: 0;
  margin-bottom: 0;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.brand-word {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.location-button,
.ghost-button,
.icon-button,
.small-link,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-control);
}

.location-button {
  justify-content: flex-start;
  min-height: 24px;
  padding: 0;
  background: transparent;
  color: var(--color-text-secondary);
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.location-button .ui-icon {
  width: 15px;
  height: 15px;
}

.ghost-button {
  min-width: 44px;
  padding: 0 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 750;
}

.icon-button {
  width: 44px;
  flex: 0 0 44px;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 18px;
  font-weight: 700;
}

.page-title {
  margin: 0;
  color: var(--color-text);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.3;
}

.bar-title {
  min-width: 0;
  text-align: center;
}

.nav-spacer {
  width: 44px;
  min-width: 44px;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.mini-section-title {
  font-size: 18px;
}

.page-subtitle {
  margin: 4px 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.search-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin: 10px 0 18px;
  padding: 0 14px;
  border: 1px solid #b5c8ee;
  border-radius: var(--radius-control);
  background: #f6f8fc;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
}

.search-entry > .ui-icon {
  color: var(--color-primary);
}

.search-form {
  position: sticky;
  top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -16px calc(-1 * var(--page-gutter)) 24px;
  padding: 12px var(--page-gutter);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-input-wrap > .ui-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 40px;
  border: 1px solid #a5b2c3;
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 16px;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 30px;
}

.category-pill {
  display: flex;
  min-width: 0;
  min-height: 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 2px;
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.category-pill span {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.category-icon {
  display: grid;
  width: 48px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #f1f4f8;
  color: #405369;
}

.category-pill[data-category="food"] .category-icon {
  background: #fff0f2;
  color: #b1354d;
}

.category-pill[data-category="spa"] .category-icon {
  background: #eaf6f0;
  color: #18734d;
}

.category-pill[data-category="cafe"] .category-icon {
  background: #fff5db;
  color: #85590b;
}

.section {
  margin: 0 0 32px;
}

.section.compact {
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.section-title {
  margin: 0;
  color: var(--color-text);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.35;
}

.section-caption {
  margin: 3px 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.small-link,
.link-button {
  padding: 0;
  background: transparent;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.link-button {
  min-height: 32px;
}

.hero-card,
.deal-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.hero-card {
  border-color: var(--color-border);
}

.hero-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #edf0f3;
}

.image-shell {
  position: relative;
  overflow: hidden;
  background: #edf0f3;
}

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

.image-shell img.image-failed {
  display: none;
}

.hero-card .hero-content {
  padding: 16px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.deal-badge,
.sponsored-badge,
.new-badge,
.tiny-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.deal-badge {
  background: var(--color-deal);
  color: #fff;
}

.sponsored-badge {
  background: #eef2ff;
  color: #4338ca;
}

.new-badge {
  background: #fffbeb;
  color: #92400e;
}

.tiny-badge {
  min-height: 22px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 12px;
}

.deal-title {
  margin: 10px 0 4px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.deal-store,
.meta-line,
.caption-line {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.deal-store {
  font-weight: 500;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin-top: 8px;
}

.original-price {
  order: 2;
  color: var(--color-text-tertiary);
  font-size: 13px;
  text-decoration: line-through;
  white-space: nowrap;
}

.deal-price {
  order: 1;
  color: var(--color-text);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.save-price {
  color: var(--color-deal);
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.card-scroll {
  display: flex;
  gap: 12px;
  margin: 0 calc(-1 * var(--page-gutter));
  padding: 0 var(--page-gutter) 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #b9c4d3 transparent;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.deal-card.vertical {
  flex: 0 0 246px;
  scroll-snap-align: start;
}

.deal-card.vertical .card-image {
  aspect-ratio: 4 / 3;
}

.deal-card.vertical .card-body {
  padding: 14px;
}

.deal-card.horizontal {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 116px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: none;
}

.deal-card.horizontal + .deal-card.horizontal {
  margin-top: 12px;
}

.deal-card.horizontal .card-image {
  height: 100%;
  min-height: 116px;
}

.deal-card.horizontal .card-body {
  min-width: 0;
  padding: 14px 12px;
}

.deal-card.horizontal .deal-title {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  font-size: 16px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.deal-card.horizontal .deal-price {
  font-size: 20px;
}

.chip-row {
  display: flex;
  gap: 8px;
  margin: 0 calc(-1 * var(--page-gutter)) 16px;
  padding: 0 var(--page-gutter) 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row.tight {
  margin-bottom: 8px;
}

.chip-row.no-gap-bottom {
  margin-bottom: 0;
}

.suggestion-group {
  margin-bottom: 11px;
}

.suggestion-title {
  margin-bottom: 6px;
}

.chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 650;
}

.chip.active {
  border-color: rgba(37, 99, 235, 0.22);
  background: var(--color-primary);
  color: #fff;
}

.status-chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 650;
}

.status-chip.success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.status-chip.primary {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.status-chip.warning {
  background: #fffbeb;
  color: #92400e;
}

.time-deal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.time-window {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 820;
}

.time-price {
  text-align: right;
}

.time-price .price-row {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.deal-meta {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.distance-line {
  display: flex;
  align-items: center;
  gap: 4px;
}

.distance-line .ui-icon {
  width: 14px;
  height: 14px;
}

.availability-line.available {
  color: var(--color-success);
  font-weight: 600;
}

.hero-card .deal-meta {
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}

.creator-strip {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.creator-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 13px;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  place-items: center;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.avatar-row.compact {
  margin-top: 7px;
}

.avatar {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 850;
}

.avatar.small {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.detail-media {
  position: relative;
  margin: -16px calc(-1 * var(--page-gutter)) 0;
  aspect-ratio: 4 / 3;
  background: #edf0f3;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-overlay-pill {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.76);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.media-dots {
  position: absolute;
  right: 16px;
  bottom: 18px;
  display: flex;
  gap: 5px;
}

.media-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.media-dots span:first-child {
  width: 16px;
  background: #fff;
}

.detail-main {
  margin: 0;
  padding: 24px 0 0;
}

.detail-title {
  margin: 10px 0 3px;
  color: var(--color-text);
  font-size: 25px;
  font-weight: 750;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.detail-price {
  margin-top: 13px;
}

.detail-price .deal-price {
  font-size: 29px;
}

.facts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.info-box,
.trust-box,
.store-box,
.review-card,
.metric-card,
.merchant-panel,
.coupon-card,
.empty-state,
.demo-panel,
.admin-table {
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.info-box,
.trust-box,
.store-box,
.empty-state,
.profile-card {
  border-radius: 0;
  box-shadow: none;
}

.info-box {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #f6f8fa;
}

.info-box,
.trust-box,
.store-box,
.merchant-panel,
.empty-state,
.demo-panel,
.admin-table {
  padding: 15px;
}

.section-offset {
  margin-top: 24px;
}

.actions-offset {
  margin-top: 14px;
}

.actions-offset-small {
  margin-top: 9px;
}

.nearby-empty-wrap {
  margin-top: 16px;
}

.review-card-body {
  padding: 14px;
}

.review-text {
  margin: 10px 0 0;
  color: var(--color-text);
}

.review-author {
  margin-top: 8px;
}

.info-box h3,
.store-box h3,
.merchant-panel h3,
.demo-panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 820;
}

.info-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 12px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.info-row dd {
  margin: 0;
  text-align: right;
}

.info-row strong {
  overflow-wrap: anywhere;
}

.info-row strong {
  color: var(--color-text);
  font-weight: 780;
  text-align: right;
}

details {
  margin-top: 12px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

summary {
  min-height: 34px;
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 760;
}

.trust-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trust-item {
  min-width: 0;
  padding: 12px 8px;
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-value {
  display: block;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
}

.trust-label {
  display: block;
  margin-top: 4px;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.creator-mini {
  min-width: 0;
}

.creator-mini .creator-thumb {
  width: 100%;
}

.creator-mini p {
  display: -webkit-box;
  min-height: 33px;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.map-stage {
  position: relative;
  height: min(44vh, 420px);
  min-height: 330px;
  margin: 0 calc(-1 * var(--page-gutter));
  overflow: hidden;
  background:
    linear-gradient(26deg, transparent 0 46%, rgba(255, 255, 255, 0.75) 46% 49%, transparent 49%),
    linear-gradient(104deg, transparent 0 37%, rgba(255, 255, 255, 0.78) 37% 40%, transparent 40%),
    linear-gradient(162deg, transparent 0 58%, rgba(255, 255, 255, 0.72) 58% 61%, transparent 61%),
    #edf2f7;
}

.map-label {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 1;
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 720;
  box-shadow: var(--shadow-card);
}

.map-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 64px;
  height: 44px;
  padding: 0 10px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--color-deal);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
  font-size: 14px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.map-pin.active {
  z-index: 3;
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.nearby-preview {
  position: relative;
  z-index: 4;
  margin: 16px 0 22px;
}

.nearby-preview .deal-card.horizontal {
  box-shadow: var(--shadow-soft);
}

.coupon-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.78);
}

.coupon-card + .coupon-card {
  margin-top: 12px;
}

.coupon-card.expired,
.coupon-card.redeemed {
  background: #f6f8fa;
}

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

.coupon-title {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
}

.coupon-meta {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.tab-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 14px;
  padding: 4px;
  border-radius: 15px;
  background: #edf2f7;
}

.tab-button {
  min-height: 44px;
  border-radius: 11px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 780;
}

.tab-button.active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.primary-button {
  background: var(--color-primary);
  color: #fff;
}

.primary-button:hover {
  background: var(--color-primary-dark);
}

.secondary-button {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.danger-button {
  background: var(--color-deal-soft);
  color: var(--color-deal);
}

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

.sticky-cta {
  position: fixed;
  right: 50%;
  bottom: calc(var(--nav-height) + var(--safe-bottom));
  z-index: 35;
  display: grid;
  width: var(--content-width);
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 16px;
  transform: translateX(50%);
  border-top: 1px solid rgba(229, 231, 235, 0.85);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.wishlist-button {
  display: grid;
  min-height: 56px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 22px;
}

.wishlist-button.active {
  border-color: rgba(255, 77, 79, 0.25);
  background: var(--color-deal-soft);
  color: var(--color-deal);
}

.cta-main {
  display: grid;
  min-height: 56px;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}

.cta-main strong {
  display: block;
  font-size: 17px;
  font-weight: 880;
  line-height: 1.15;
}

.cta-main span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 650;
}

.bottom-nav {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 40;
  display: grid;
  width: var(--content-width);
  height: calc(var(--nav-height) + var(--safe-bottom));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 7px 8px calc(7px + var(--safe-bottom));
  transform: translateX(50%);
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  display: grid;
  min-width: 0;
  min-height: 55px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: var(--radius-control);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.bottom-nav a .nav-icon {
  display: grid;
  height: 24px;
  place-items: center;
}

.bottom-nav a.active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.qr-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.qr-visual {
  display: grid;
  width: min(72vw, 250px);
  aspect-ratio: 1;
  margin: 16px auto;
  place-items: center;
  border: 12px solid #fff;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #111827 12px, transparent 12px) 0 0 / 34px 34px,
    linear-gradient(#111827 12px, transparent 12px) 0 0 / 34px 34px,
    #fff;
  box-shadow: inset 0 0 0 1px var(--color-border), var(--shadow-card);
}

.qr-code {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  background: #f3f4f6;
  color: var(--color-text);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
}

.qr-title {
  font-size: 22px;
}

.qr-instructions {
  margin-top: 12px;
}

.demo-link {
  margin-top: 10px;
}

.demo-note {
  margin: 12px 0 0;
  color: var(--color-text-tertiary);
  font-size: 12px;
  line-height: 1.45;
}

.review-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 16px 0;
}

.star-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  font-size: 22px;
}

.list-menu {
  display: grid;
  gap: 0;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 14px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 720;
}

.menu-row span:last-child {
  color: var(--color-text-tertiary);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.profile-copy .section-title {
  font-size: 20px;
}

.profile-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  background: var(--color-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

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

.metric-card {
  padding: 14px;
  border: 1px solid var(--color-border);
}

.metric-label {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 720;
}

.metric-value {
  margin-top: 6px;
  color: var(--color-text);
  font-size: 22px;
  font-weight: 880;
}

.metric-sub {
  margin-top: 2px;
  color: var(--color-text-tertiary);
  font-size: 13px;
  line-height: 1.35;
}

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

.performance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px;
  border-radius: 14px;
  background: var(--color-surface);
}

.merchant-input {
  width: 100%;
  min-height: 54px;
  margin: 8px 0 12px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
}

.merchant-form {
  margin-top: 14px;
}

.merchant-result {
  margin-top: 14px;
}

.compact-empty {
  min-height: 120px;
}

.admin-table {
  overflow: hidden;
  padding: 0;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 26px 18px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 840;
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.redeemed-state {
  margin-top: 18px;
}

.redeemed-title {
  margin-top: 12px;
}

.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.sheet-root.active {
  display: block;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.sheet-panel {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: min(100%, 480px);
  max-height: min(88vh, 720px);
  overflow: auto;
  transform: translateX(50%);
  border-radius: 22px 22px 0 0;
  background: var(--color-surface);
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.18);
}

.sheet-content {
  padding: 10px 20px calc(24px + var(--safe-bottom));
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 8px auto 14px;
  border-radius: 999px;
  background: #d1d5db;
}

.sheet-title {
  margin: 0;
  font-size: 21px;
  font-weight: 880;
  line-height: 1.28;
}

.sheet-copy {
  margin: 8px 0 16px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.sheet-actions {
  display: grid;
  gap: 9px;
}

.sheet-actions.offset {
  margin-top: 14px;
}

.creator-sheet-card {
  margin-top: 12px;
}

.toast-root {
  position: fixed;
  right: 50%;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 14px);
  z-index: 95;
  width: min(calc(100% - 32px), 398px);
  transform: translateX(50%);
  pointer-events: none;
}

.toast {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.24);
}

.skeleton-stack {
  display: grid;
  gap: 12px;
}

.skeleton-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  min-height: 116px;
  padding: 10px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.skeleton-block,
.skeleton-line {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #e5e7eb;
}

.skeleton-block::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmer 1.3s infinite;
}

.skeleton-block {
  min-height: 96px;
}

.skeleton-copy {
  display: grid;
  align-content: center;
  gap: 9px;
}

.skeleton-line {
  height: 13px;
}

.skeleton-line.short {
  width: 62%;
}

.skeleton-line.price {
  width: 45%;
  height: 21px;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.dev-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-caption {
  margin-bottom: 12px;
}

.attribution-label {
  margin: 14px 0 8px;
}

.admin-link {
  margin-top: 9px;
}

.dev-row .chip {
  min-height: 35px;
  font-size: 12px;
}

.hidden {
  display: none !important;
}

.noscript {
  max-width: 430px;
  margin: 40px auto;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  text-align: center;
}

@media (max-width: 359px) {
  :root {
    --page-gutter: 12px;
  }

  .deal-card.horizontal {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .time-deal {
    grid-template-columns: minmax(0, 1fr);
  }

  .time-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .time-price .price-row {
    display: flex;
    gap: 8px;
    margin: 0;
  }
}

@media (min-width: 768px) {
  :root {
    --content-width: 430px;
  }

  .app-shell {
    min-height: 100vh;
  }

  .sheet-panel {
    width: 430px;
    bottom: 24px;
    border-radius: 18px;
  }
}

@media (hover: hover) {
  .deal-card:hover,
  .hero-card:hover,
  .time-deal:hover {
    border-color: #829ac0;
  }

  .category-pill:hover,
  .secondary-button:hover,
  .menu-row:hover,
  .chip:not(.active):hover {
    background: #f0f4f9;
  }

  .cta-main:hover {
    background: var(--color-primary-dark);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block::after,
  .skeleton-line::after {
    animation: none;
  }
}
