* {
  box-sizing: border-box;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hidden {
  display: none !important;
}

.btn {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.btn-primary {
  background: #165dff;
  color: #fff;
}

.btn-success {
  background: #059669;
  color: #fff;
}

.btn-dark {
  background: #1f2937;
  color: #fff;
}

.btn-muted {
  background: #e5e7eb;
  color: #1f2937;
}

.btn-ghost {
  background: #eff6ff;
  color: #165dff;
}

.field {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #1f2937;
  min-height: 40px;
  min-width: 0;
  padding: 8px 12px;
  width: 100%;
}

.field:focus {
  border-color: #165dff;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.18);
  outline: none;
}

.promo-card {
  background: linear-gradient(90deg, #fff7ed, #fefce8);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.promo-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}

.promo-media {
  aspect-ratio: 16 / 1.1;
  background: #0f172a;
  min-height: 52px;
  overflow: hidden;
  position: relative;
}

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

.promo-media::after {
  background: linear-gradient(180deg, transparent, rgba(124, 45, 18, 0.18));
  bottom: 0;
  content: "";
  height: 24px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.promo-badge {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  min-height: 18px;
  padding: 4px 7px;
  position: absolute;
  top: 7px;
  z-index: 1;
}

.promo-badge-left {
  background: #dc2626;
  left: 8px;
}

.promo-badge-right {
  background: #f59e0b;
  right: 8px;
}

.promo-chip {
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  bottom: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 4px;
  padding: 4px 7px;
  position: absolute;
  right: 8px;
  z-index: 1;
}

.promo-copy {
  padding: 6px 10px 7px;
  text-align: center;
}

.promo-title {
  align-items: center;
  color: #9a3412;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
}

.promo-subtitle {
  color: #c2410c;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 6px;
  justify-content: center;
  margin-top: 2px;
}

.promo-subtitle span:not(:last-child)::after {
  color: #fb923c;
  content: " ·";
  margin-left: 8px;
}

.promo-foot {
  color: rgba(194, 65, 12, 0.78);
  font-size: 11px;
  margin-top: 3px;
}

@media (max-width: 640px) {
  .promo-media {
    aspect-ratio: 16 / 2.4;
    min-height: 52px;
  }

  .promo-title {
    align-items: flex-start;
    font-size: 12px;
  }

  .promo-chip {
    left: 8px;
    right: auto;
  }
}

.notice {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  gap: 10px;
  left: 0;
  min-height: 48px;
  padding: 10px 16px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateY(-110%);
  transition: transform 180ms ease;
  z-index: 50;
}

.notice.show {
  transform: translateY(0);
}

.notice button {
  color: #6b7280;
  margin-left: auto;
}

.modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.56);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 60;
}

.modal-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  max-width: 420px;
  padding: 24px;
  width: 100%;
}
