:root {
  --color-page: #f8cfc4;
  --color-surface: #efefef;
  --color-input: #f8f8f8;
  --color-text: #2d3344;
  --color-muted: #6f7280;
  --color-primary: #ee5b36;
  --color-primary-dark: #d94725;
  --color-border: #d6d6d6;
  --color-success: #16a34a;
  --color-danger: #dc2626;
  --color-facebook: #1877f2;
  --color-instagram: #e1306c;
  --color-zalo: #0068ff;
  --shadow-card: 0 8px 24px rgb(92 52 41 / 12%);
  --shadow-control: 0 4px 10px rgb(45 51 68 / 8%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --transition-fast: 160ms ease;
  --transition-normal: 240ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-page);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
}

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

button,
a {
  touch-action: manipulation;
}

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

.page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 12px 24px;
}

.hero {
  margin-bottom: 14px;
  text-align: center;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: clamp(24px, 7vw, 32px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-shadow: 0 2px 0 rgb(255 255 255 / 72%);
}

.hero-shopee-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.hero-domain {
  display: inline-flex;
  min-width: 160px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border: 2px solid rgb(238 91 54 / 30%);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 4px 12px rgb(128 59 42 / 12%);
  color: var(--color-primary-dark);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.card {
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.product-link-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(238 77 45 / 22%);
  border-radius: 10px;
  background: rgb(255 248 245 / 92%);
  color: var(--color-primary);
}

.product-link-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentcolor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-wrap {
  position: relative;
  display: flex;
  min-width: 0;
  height: 58px;
  overflow: hidden;
  border: 2px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-input);
  box-shadow: inset 0 1px 2px rgb(45 51 68 / 4%);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgb(238 91 54 / 14%);
}

.input-wrap.is-invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 4px rgb(220 38 38 / 12%);
}

.input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.3;
}

.input::placeholder {
  color: #8c8f99;
  opacity: 1;
}

.input-wrap-hint .input {
  padding-right: 54px;
}

.input-wrap-hint::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    rgb(255 238 232 / 68%),
    rgb(255 248 211 / 78%),
    rgb(255 232 226 / 68%)
  );
  background-size: 200% 100%;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.input-wrap-hint.is-hinting::before {
  opacity: 1;
  animation: input-glow-pulse 2.4s ease-in-out infinite;
}

.input-wrap-hint .input,
.input-wrap-hint .paste-btn {
  position: relative;
  z-index: 1;
}

.input-wrap-hint.is-hinting .input {
  animation: input-float-shake 2.2s ease-in-out infinite;
}

.input-wrap-hint .input::placeholder {
  transition: color 250ms ease, opacity 250ms ease, letter-spacing 250ms ease;
}

.input-wrap-hint.is-hinting .input::placeholder {
  color: var(--color-primary);
  opacity: 1;
  animation: placeholder-pulse 1.25s ease-in-out infinite;
}

.input-wrap-hint::after {
  position: absolute;
  top: 50%;
  right: 65px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  content: "";
  z-index: 2;
  pointer-events: none;
  transform: translateY(-50%) rotate(-45deg);
  opacity: 0;
}

.input-wrap-hint.is-hinting::after {
  animation: hint-slide 1.2s ease-in-out infinite;
}

.paste-btn {
  display: grid;
  width: 60px;
  min-width: 60px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 1px solid #dedede;
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.paste-btn:hover {
  background: #fff6f2;
}

.paste-btn:active {
  transform: scale(.95);
}

.icon-conatiner {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
}

.icon-conatiner svg {
  width: 100%;
  height: 100%;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgb(220 38 38 / 24%);
  border-radius: var(--radius-sm);
  background: #fff2f2;
  color: #a11212;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.alert-message {
  min-width: 0;
  flex: 1;
}

.alert-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  margin: -8px -10px -8px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 22px;
}

.alert-close:hover {
  background: rgb(220 38 38 / 8%);
}

.super-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 18px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ff7a45, var(--color-primary), #df3d1b);
  box-shadow: 0 8px 18px rgb(220 68 34 / 28%);
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.2;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.super-button:hover {
  box-shadow: 0 10px 22px rgb(220 68 34 / 34%);
  transform: translateY(-1px);
}

.super-button:active {
  transform: translateY(1px) scale(.99);
}

.super-button:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.super-button .arrow {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.result-section {
  margin: 30px 0;
  padding: 0;
  background: transparent;
}

.product-card {
  display: grid;
  grid-template-columns: clamp(80px, 26vw, 112px) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #e3e3e3;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-control);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f3f3;
  object-fit: cover;
}

.product-info {
  align-self: center;
  min-width: 0;
}

.product-card.product-card--no-image {
  grid-template-columns: minmax(0, 1fr);
}

.product-name {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 8px;
}

.product-price {
  color: var(--color-primary);
  font-size: 17px;
  font-weight: 850;
}

.product-price-old {
  color: #9699a1;
  font-size: 12px;
  text-decoration: line-through;
}

.affiliate-options {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.affiliate-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(45 51 68 / 6%);
}

.affiliate-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
}

.affiliate-icon svg {
  width: 100%;
  height: 100%;
}

.affiliate-copy {
  min-width: 0;
}

.affiliate-title {
  margin: 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.affiliate-subtitle {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 12px;
  color: #242424;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voucher-badge {
  max-width: 112px;
  padding: 6px 8px;
  border: 1px solid rgb(255 122 0 / 28%);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #fff8d9, #ffe8c7);
  box-shadow: 0 4px 12px rgb(255 112 0 / 14%);
  color: #e65100;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.voucher-badge-line {
  display: block;
}

.voucher-badge-schedule {
  font-size: 10px;
  letter-spacing: 0;
  white-space: nowrap;
}

.voucher-badge-status {
  margin-top: 2px;
}

.voucher-action {
  position: relative;
  display: inline-flex;
  min-width: 91px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  padding: 0 7px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgb(24 119 242 / 32%);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  isolation: isolate;
  text-decoration: none;
  animation: voucher-action-breathe 3s ease-in-out infinite;
  transition: transform 280ms ease, box-shadow 280ms ease, opacity 280ms ease;
}

.voucher-action::after {
  position: absolute;
  z-index: 0;
  top: -45%;
  left: -40%;
  width: 32%;
  height: 190%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 55%), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0) rotate(18deg);
  animation: voucher-action-shine 4.2s ease-in-out infinite;
}

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

.voucher-action:hover {
  animation-play-state: paused;
  box-shadow: 0 7px 16px rgb(45 51 68 / 21%);
  transform: translateY(-1px);
}

.voucher-action:active {
  animation-play-state: paused;
  transform: scale(.98);
}

.voucher-action:hover::after,
.voucher-action:active::after {
  animation-play-state: paused;
}

.voucher-action.disabled {
  animation: none;
  cursor: not-allowed;
  opacity: .5;
  pointer-events: none;
}

.voucher-action.disabled::after,
.voucher-action.disabled .voucher-cart-icon {
  animation: none;
}

.voucher-cart-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  transform-origin: center;
  animation: voucher-cart-nudge 1.8s ease-in-out infinite;
}

.affiliate-option--fb {
  border-color: #cfe2f6;
  background: linear-gradient(105deg, #f7fbff, #eef7ff);
}

.affiliate-option--ig {
  border-color: #efd5df;
  background: linear-gradient(105deg, #fff8fa, #fff2ed);
}

.affiliate-option--zalo {
  border-color: #c9ddff;
  background: linear-gradient(105deg, #f7fbff, #eef5ff);
}

.voucher-action--fb {
  background: linear-gradient(135deg, #438bf0, var(--color-facebook));
  box-shadow: 0 6px 16px rgb(24 119 242 / 42%);
}

.voucher-action--ig {
  background: linear-gradient(135deg, #f0442f, #ff8500);
  box-shadow: 0 6px 16px rgb(255 92 26 / 42%);
}

.voucher-action--zalo {
  background: linear-gradient(135deg, #1b8cff, var(--color-zalo));
  box-shadow: 0 6px 16px rgb(0 104 255 / 42%);
}

.facebook-group-link {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid rgb(24 119 242 / 22%);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 82%);
  box-shadow: var(--shadow-control);
  color: #165dbb;
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.facebook-group-link:hover {
  background: #f4f8ff;
  transform: translateY(-1px);
}

.facebook-group-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--color-facebook);
  color: #fff;
}

.facebook-group-icon svg {
  width: 20px;
  height: 20px;
}

.facebook-group-text {
  min-width: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.facebook-group-arrow {
  flex: 0 0 auto;
  font-size: 21px;
  line-height: 1;
}

.facebook-group-arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voucher-guide-card {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 72%);
  box-shadow: var(--shadow-card);
}

.voucher-guide-browser {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid #ddd;
  border-radius: 14px 14px 0 0;
  background: #ececec;
}

.voucher-guide-circles {
  display: flex;
  gap: 5px;
}

.voucher-guide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5c5c5;
}

.voucher-guide-search {
  min-width: 0;
  flex: 1;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #6f7280;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
}

.voucher-guide-body {
  padding: 14px;
  text-align: center;
}

.voucher-guide-title {
  margin: 0 0 7px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
}

.voucher-guide-text {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.voucher-guide-image {
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

html.notice-open,
body.notice-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.notice-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgb(28 30 39 / 52%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.notice-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.floating-notice-card {
  position: relative;
  display: flex;
  width: min(100%, 330px);
  min-height: 220px;
  max-height: calc(100dvh - 24px);
  align-items: center;
  gap: 12px;
  overflow-x: clip;
  overflow-y: auto;
  padding: 16px 58px 16px 14px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fff, #fff4ef);
  box-shadow: 0 18px 48px rgb(26 30 42 / 30%);
  transform: translateY(12px) scale(.98);
  transition: transform var(--transition-normal);
}

.notice-modal.show .floating-notice-card {
  transform: translateY(0) scale(1);
}

.floating-notice-badge {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8458, var(--color-primary));
  box-shadow: 0 6px 16px rgb(238 91 54 / 25%);
  color: #fff;
  font-size: 24px;
}

.floating-notice-content {
  min-width: 0;
  flex: 1;
}

.floating-notice-title {
  margin: 0 0 7px;
  color: var(--color-primary-dark);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
}

.floating-notice-message {
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-line;
}

.floating-notice-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.floating-notice-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 11px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.floating-notice-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6f7280;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.floating-notice-close:hover {
  background: rgb(45 51 68 / 7%);
}

.notice-modal.has-image {
  padding: 8px;
}

.notice-modal.has-image .floating-notice-card {
  width: min(100%, 430px);
  min-height: 0;
  max-height: calc(100dvh - 16px);
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  padding: 52px 12px 12px;
}

.notice-modal.has-image .floating-notice-badge {
  display: none;
}

.notice-modal.has-image .floating-notice-content {
  flex: 0 0 auto;
  text-align: center;
}

.toast-popup {
  position: fixed;
  z-index: 11000;
  top: 14px;
  left: 50%;
  width: min(calc(100% - 20px), 390px);
  pointer-events: none;
  transform: translateX(-50%);
}

.toast-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  overflow: hidden;
  padding: 11px 14px;
  border: 1px solid rgb(22 163 74 / 20%);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 34px rgb(25 34 45 / 25%);
  animation: toast-in .22s ease-out both;
}

.toast-popup.toast-error .toast-card {
  border-color: rgb(220 38 38 / 22%);
}

.toast-popup.is-hiding .toast-card {
  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transition: opacity .3s ease, transform .3s ease;
}

.toast-wave {
  display: none;
}

.toast-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #e9f9ef;
  color: var(--color-success);
}

.toast-popup.toast-error .toast-icon {
  background: #fff0f0;
  color: var(--color-danger);
}

.toast-check-icon {
  width: 23px;
  height: 23px;
  overflow: visible;
}

.toast-check-circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}

.toast-check-mark {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast-title {
  margin: 0 0 2px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.toast-message {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.toast-content {
  min-width: 0;
}

.toast-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--color-success);
  transform-origin: left;
  animation: toast-progress var(--toast-duration, 2s) linear forwards;
}

.toast-popup.toast-error .toast-progress {
  background: var(--color-danger);
}

.page-loader {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(30 32 40 / 52%);
}

.page-loader-box {
  display: flex;
  min-width: 190px;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 16px 44px rgb(25 30 40 / 30%);
}

.page-loader-rings {
  position: relative;
  width: 54px;
  height: 54px;
}

.page-loader-ring {
  position: absolute;
  inset: 0;
  border: 5px solid transparent;
  border-radius: 50%;
  animation: loader-spin .9s linear infinite;
}

.page-loader-ring:nth-child(1) {
  border-top-color: var(--color-primary);
}

.page-loader-ring:nth-child(2) {
  inset: 8px;
  border-right-color: #ffb29c;
  animation-direction: reverse;
  animation-duration: .7s;
}

.page-loader-ring:nth-child(3) {
  inset: 16px;
  border-bottom-color: var(--color-primary-dark);
  animation-duration: .55s;
}

.page-loader-text {
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

:focus-visible {
  outline: 3px solid #1c64d1;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .page {
    padding-right: 8px;
    padding-left: 8px;
  }

  .card {
    padding-right: clamp(8px, 3vw, 13px);
    padding-left: clamp(8px, 3vw, 13px);
  }

  .affiliate-option {
    grid-template-columns: 38px minmax(0, 1fr) 90px 104px;
    gap: 4px;
    padding: 8px 7px;
    border-radius: 18px;
  }

  .affiliate-icon {
    width: 38px;
    height: 38px;
  }

  .affiliate-title,
  .voucher-badge,
  .voucher-action {
    font-size: 12px;
  }

  .affiliate-subtitle {
    font-size: 11.5px;
    letter-spacing: -.65px;
  }

  .affiliate-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    white-space: normal;
  }

  .voucher-badge {
    width: 100%;
    max-width: 90px;
    padding: 5px 1px;
  }

  .voucher-action {
    width: 104px;
    min-width: 104px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 13px;
    white-space: nowrap;
  }

  .voucher-cart-icon {
    width: 16px;
    height: 16px;
  }

  .notice-modal {
    padding: 8px;
  }

  .floating-notice-card {
    width: min(100%, 330px);
    max-height: calc(100dvh - 16px);
  }
}

@media (max-width: 360px) {
  .affiliate-subtitle {
    display: none;
  }
}

@media (max-width: 350px) {
  .hero-title {
    font-size: 22px;
  }

  .card {
    padding-right: 7px;
    padding-left: 7px;
  }

  .affiliate-option {
    grid-template-columns: 32px minmax(0, 1fr) 90px 88px;
    gap: 3px;
    padding: 7px 5px;
  }

  .affiliate-icon {
    width: 32px;
    height: 32px;
  }

  .voucher-badge {
    max-width: 90px;
    padding-right: 2px;
    padding-left: 2px;
  }

  .voucher-action {
    width: 88px;
    min-width: 88px;
    gap: 3px;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 12px;
  }

  .voucher-cart-icon {
    display: block;
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 640px) {
  .floating-notice-card {
    min-height: 0;
    padding: 52px 14px 16px;
    flex-direction: column;
    text-align: center;
  }

  .floating-notice-title {
    font-size: 21px;
  }
}

@media (min-width: 768px) {
  .page {
    padding: 24px 14px 36px;
  }

  .hero {
    margin-bottom: 22px;
  }

  .hero-title {
    gap: 11px;
    margin-bottom: 14px;
    font-size: 34px;
  }

  .hero-shopee-icon {
    width: 40px;
    height: 40px;
  }

  .hero-domain {
    min-width: 220px;
    min-height: 54px;
    padding-right: 30px;
    padding-left: 30px;
    font-size: 23px;
  }

  .card {
    padding: 18px;
    border-radius: 26px;
  }

  .label {
    gap: 10px;
    margin-bottom: 14px;
    font-size: 24px;
  }

  .product-link-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

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

  .input-wrap {
    height: 82px;
    border-radius: 24px;
  }

  .input {
    padding-right: 20px;
    padding-left: 20px;
    font-size: 21px;
  }

  .input-wrap-hint .input {
    padding-right: 70px;
  }

  .input-wrap-hint::after {
    right: 96px;
    width: 9px;
    height: 9px;
  }

  .paste-btn {
    width: 88px;
    min-width: 88px;
  }

  .icon-conatiner {
    width: 34px;
    height: 34px;
  }

  .super-button {
    min-height: 70px;
    margin-top: 16px;
    border-radius: 20px;
    font-size: 22px;
  }

  .product-card {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
  }

  .product-name {
    font-size: 19px;
  }

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

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

  .affiliate-options {
    gap: 14px;
  }

  .affiliate-option {
    grid-template-columns: 54px minmax(0, 1fr) 144px 152px;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 22px;
  }

  .affiliate-icon {
    width: 54px;
    height: 54px;
  }

  .affiliate-title {
    font-size: 20px;
  }

  .affiliate-subtitle {
    font-size: 17px;
  }

  .voucher-badge {
    width: 144px;
    max-width: 144px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .voucher-badge-schedule {
    font-size: 11px;
  }

  .voucher-action {
    width: 152px;
    min-width: 152px;
    min-height: 52px;
    gap: 8px;
    padding: 0 16px;
    border-radius: 17px;
    font-size: 18px;
  }

  .voucher-cart-icon {
    width: 23px;
    height: 23px;
  }

  .facebook-group-link {
    min-height: 62px;
    padding: 12px 16px;
  }

  .facebook-group-icon {
    width: 42px;
    height: 42px;
  }

  .facebook-group-text {
    font-size: 18px;
  }

  .voucher-guide-card {
    padding: 16px;
  }

  .voucher-guide-title {
    font-size: 22px;
  }

  .voucher-guide-text {
    font-size: 16px;
  }
}

@keyframes hint-slide {
  0%, 100% {
    opacity: .35;
    transform: translate(-4px, -50%) rotate(-45deg);
  }
  50% {
    opacity: 1;
    transform: translate(2px, -50%) rotate(-45deg);
  }
}

@keyframes input-glow-pulse {
  0%, 100% {
    background-position: 0% 50%;
    opacity: .65;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

@keyframes input-float-shake {
  0%, 30%, 75%, 100% { transform: translate(0, 0); }
  15% { transform: translateY(-1px); }
  45% { transform: translateX(-1.5px); }
  60% { transform: translateX(1.5px); }
}

@keyframes placeholder-pulse {
  0%, 100% {
    opacity: 1;
    letter-spacing: 0;
  }
  50% {
    opacity: .72;
    letter-spacing: .3px;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes voucher-action-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@keyframes voucher-action-shine {
  0%, 58% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(18deg);
  }
  68% { opacity: .75; }
  88% {
    opacity: 0;
    transform: translate3d(450%, 0, 0) rotate(18deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(450%, 0, 0) rotate(18deg);
  }
}

@keyframes voucher-cart-nudge {
  0%, 68%, 100% { transform: translateX(0) rotate(0); }
  82% { transform: translateX(2px) rotate(-5deg); }
}

.hidden,
.notice-modal.hidden,
.notice-modal .hidden,
.toast-popup.hidden,
.page-loader.hidden {
  display: none;
}
