:root {
  --bg: #f8cfc4;
  --card: #efefef;
  --block: #ececec;
  --input: #f7f7f7;
  --line: #dddddd;
  --text: #2d3344;
  --muted: #6e7380;
  --orange-1: #f4522f;
  --orange-2: #ff6835;
  --green-1: #2fd671;
  --green-2: #27cb68;
  --blue-1: #4c78e8;
  --blue-2: #416be0;
  --danger: #f05833;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

body,
input,
textarea,
button,
a {
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
a {
  touch-action: manipulation;
}

.hidden {
  display: none !important;
}

/* ===== Layout ===== */
.page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 12px 24px;
}

.hero {
  text-align: center;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 800;
  color: #ee5b36;
  text-shadow: 0 4px 14px rgba(238, 91, 54, 0.14);
}

.hero-domain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  max-width: 100%;
  padding: 0 16px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: #de643f;
  font-size: 16px;
  font-weight: 600;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.card + .card {
  margin-top: 12px;
}

.label {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
  font-weight: 800;
  color: #2d3344;
}

/* ===== Input ===== */
.input-wrap {
  display: flex;
  align-items: stretch;
  background: var(--input);
  border: 2px solid #dedee3;
  border-radius: 18px;
  overflow: hidden;
}

.input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: #515760;
}

.input::placeholder {
  color: #7a7f89;
}

.paste-btn {
  width: 60px;
  min-width: 60px;
  border: 0;
  border-left: 2px solid #dfdfe4;
  background: transparent;
  color: #555b66;
  font-size: 22px;
  cursor: pointer;
}

.create-btn {
  width: 100%;
  height: 54px;
  margin-top: 12px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--orange-1), var(--orange-2));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

/* ===== Input hint effect: chỉ cho chữ lớn trong input ===== */
.input-wrap-hint {
  position: relative;
  border-radius: 18px;
}

.input-wrap-hint::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  background: linear-gradient(
    90deg,
    rgba(238, 77, 45, 0.16),
    rgba(255, 179, 71, 0.16),
    rgba(238, 77, 45, 0.16)
  );
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.25s ease;
}

.input-wrap-hint.is-hinting::before {
  opacity: 1;
  animation: inputGlowPulse 1.8s ease-in-out infinite;
}

.input-wrap-hint .input,
.input-wrap-hint .paste-btn {
  position: relative;
  z-index: 1;
}

.input-wrap-hint .input {
  padding: 0 52px 0 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.input-wrap-hint.is-hinting .input {
  border-color: rgba(238, 77, 45, 0.35);
  box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.08);
  animation: inputFloatShake 2.2s ease-in-out infinite;
}

.input-wrap-hint .input::placeholder {
  color: #7a7f89;
  transition: color 0.25s ease, opacity 0.25s ease, letter-spacing 0.25s ease;
}

.input-wrap-hint.is-hinting .input::placeholder {
  color: #ee4d2d;
  opacity: 1;
  animation: placeholderPulse 1.25s ease-in-out infinite;
}

@keyframes inputGlowPulse {
  0% {
    transform: scale(1);
    filter: blur(0);
  }
  50% {
    transform: scale(1.01);
    filter: blur(1px);
  }
  100% {
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes inputFloatShake {
  0% {
    transform: translateY(0);
  }
  15% {
    transform: translateY(-1px);
  }
  30% {
    transform: translateY(0);
  }
  45% {
    transform: translateX(-1.5px);
  }
  60% {
    transform: translateX(1.5px);
  }
  75% {
    transform: translateX(0);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes placeholderPulse {
  0%,
  100% {
    opacity: 1;
    letter-spacing: 0;
  }
  50% {
    opacity: 0.72;
    letter-spacing: 0.3px;
  }
}

/* ===== Result area ===== */
.result-section {
  margin-top: 12px;
  background: #f1f1f1;
  border-radius: 18px;
  padding: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.result-box {
  position: relative;
  background: #f6f6f6;
  border: 2px solid #f05833;
  border-radius: 18px;
  padding: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.result-box.is-created {
  border-color: #ff6a3d;
  box-shadow:
    0 0 0 5px rgba(255, 106, 61, 0.1),
    0 14px 30px rgba(255, 106, 61, 0.16);
  animation: resultBoxPop 0.55s ease;
}

.result-box.is-created::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  pointer-events: none;
  border: 2px solid rgba(255, 106, 61, 0.22);
  animation: resultRingFade 1.2s ease-out infinite;
}

.result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.result-title {
  font-size: 19px;
  font-weight: 800;
  color: #2f3a4d;
}

.copy-btn {
  position: relative;
  z-index: 2;
  min-width: 98px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #f4522f, #ff6835);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(244, 82, 47, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
}

.copy-btn-wrap {
  display: inline-flex;
  align-items: center;
}

.copy-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 106, 61, 0.12),
    rgba(255, 196, 71, 0.14)
  );
  color: #ee5b36;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  border: 1px solid rgba(255, 106, 61, 0.18);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.result-box.is-created .copy-hint,
.result-box.show-copy-hint .copy-hint {
  opacity: 1;
  transform: translateY(0);
  animation: copyHintPulse 1.6s ease-in-out infinite;
}

.copy-hint.is-copied {
  background: rgba(31, 176, 110, 0.1);
  border-color: rgba(31, 176, 110, 0.18);
  color: #1f9d63;
}

.result-text {
  width: 100%;
  min-height: 106px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #404854;
  font-size: 16px;
  line-height: 1.45;
  padding: 0;
  word-break: break-word;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin-top: 10px;
  cursor: pointer;
  padding: 0 14px;
  text-align: center;
}

.buy-btn {
  background: linear-gradient(90deg, var(--green-1), var(--green-2));
}

.share-btn {
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
}

.buy-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

@keyframes resultBoxPop {
  0% {
    transform: scale(0.985);
  }
  45% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes resultRingFade {
  0% {
    opacity: 0.7;
    transform: scale(0.985);
  }
  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}

@keyframes copyHintPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

  50% {
    transform: scale(1.06);
  }
}

  50% {
    transform: translateY(-50%) translateX(6px);
  }
}

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

/* ===== Alerts ===== */
.alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.alert.success {
  background: #edf9f1;
  border: 1px solid #bee1ca;
  color: #1c7a42;
}

.alert.error {
  background: #fff1f1;
  border: 1px solid #efc5c5;
  color: #bf2b2b;
}

/* ===== Guide ===== */
.guide-card {
  padding-top: 16px;
}

.guide-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.guide-tabs::-webkit-scrollbar {
  display: none;
}

.guide-tab-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #445066;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 13px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 0 0 2px #dfe3ea;
  transition: all 0.2s ease;
}

.guide-tab-btn.active {
  background: linear-gradient(90deg, #f4522f, #ff6835);
  color: #fff;
  box-shadow: 0 8px 18px rgba(244, 82, 47, 0.16);
}

.guide-panel {
  width: 100%;
}

.guide-list {
  margin: 0 0 14px 18px;
  padding: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #2b2f38;
}

.guide-list li + li {
  margin-top: 8px;
}

.facebook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid #2f80ff;
  color: #2f80ff;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.voucher-image-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f4f4;
}

.voucher-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== Guide image: slider ngang trên mobile ===== */
.guide-image-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 6px;
  margin: 0 -2px;
  scrollbar-width: none;
}

.guide-image-list::-webkit-scrollbar {
  display: none;
}

.guide-image-step {
  flex: 0 0 86%;
  min-width: 86%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #f8f8f8;
  border: 1.5px solid #e5e5e5;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.guide-image-title {
  font-size: 15px;
  font-weight: 800;
  color: #2d3344;
  line-height: 1.35;
  margin-bottom: 8px;
}

.guide-step-image {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  border: 1px solid #ececec;
  background: #fff;
  object-fit: cover;
}

/* ===== Toast popup ===== */
.toast-popup {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 420px;
  z-index: 9999;
  pointer-events: none;
}

.toast-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 14px;
  min-height: 62px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  border: 1px solid #efefef;
}

.toast-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: 3px solid #dff1d8;
  color: #8fd27d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.toast-message {
  color: #4a4a4a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

/* ===== Desktop ===== */
@media (min-width: 768px) {
  .page {
    padding: 24px 14px 36px;
  }

  .hero {
    margin-bottom: 22px;
  }

  .hero-title {
    font-size: 34px;
    margin-bottom: 14px;
  }

  .hero-domain {
    min-width: 220px;
    height: 54px;
    padding: 0 22px;
    font-size: 23px;
  }

  .card {
    border-radius: 26px;
    padding: 18px;
  }

  .card + .card {
    margin-top: 16px;
  }

  .label {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .input-wrap {
    border-radius: 24px;
  }

  .input {
    height: 82px;
    padding: 0 24px;
    font-size: 24px;
  }

  .input-wrap-hint .input {
    padding: 0 78px 0 24px;
  }

  .paste-btn {
    width: 88px;
    min-width: 88px;
    font-size: 34px;
  }

  .create-btn {
    height: 76px;
    margin-top: 16px;
    border-radius: 24px;
    font-size: 28px;
  }

  .result-section {
    margin-top: 16px;
    border-radius: 22px;
    padding: 16px;
  }

  .result-box {
    border-radius: 24px;
    padding: 18px;
  }

  .result-title {
    font-size: 26px;
  }

  .copy-btn {
    min-width: 132px;
    height: 52px;
    border-radius: 16px;
    font-size: 21px;
  }

  
  .copy-hint {
    font-size: 18px;
    padding: 11px 14px;
  }

  .result-text {
    min-height: 160px;
    font-size: 22px;
  }

  .action-btn {
    min-height: 68px;
    border-radius: 22px;
    font-size: 26px;
    margin-top: 14px;
  }

  .alert {
    font-size: 16px;
    padding: 12px 14px;
  }

  .guide-card {
    padding-top: 20px;
  }

  .guide-title {
    font-size: 28px;
  }

  .guide-tabs {
    gap: 10px;
    margin-bottom: 16px;
    overflow: visible;
  }

  .guide-tab-btn {
    font-size: 18px;
    padding: 12px 18px;
    border-radius: 14px;
  }

  .guide-list {
    margin-left: 24px;
    font-size: 20px;
    line-height: 1.6;
  }

  .facebook-link {
    min-height: 48px;
    padding: 0 18px;
    font-size: 18px;
    margin-bottom: 14px;
  }

  .guide-image-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    margin: 0;
  }

  .guide-image-step {
    flex: none;
    min-width: 100%;
    border-radius: 18px;
    padding: 14px;
  }

  .guide-image-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .guide-step-image {
    aspect-ratio: auto;
    max-height: 680px;
    object-fit: contain;
  }

  .toast-popup {
    top: 76px;
    max-width: 500px;
  }

  .toast-card {
    min-height: 74px;
    padding: 14px 16px;
    gap: 12px;
    border-radius: 16px;
  }

  .toast-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 28px;
  }

  .toast-message {
    font-size: 18px;
  }
}
/* ===== Header Toggle ===== */
.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 4px 0 12px 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.guide-chevron {
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.3s ease;
}

/* Hiệu ứng chữ đổi màu cho tiêu đề */
.animated-text {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  background: linear-gradient(90deg, #f4522f, #416be0, #f4522f);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 3s linear infinite;
}

@keyframes shineText {
  to {
    background-position: 200% center;
  }
}

/* ===== Logic Ẩn/Hiện Nội dung ===== */
.guide-body {
  display: none; /* Ẩn mặc định */
  animation: slideDown 0.3s ease forwards;
}

.guide-card.is-open .guide-body {
  display: block; /* Hiện khi có class is-open */
}

.guide-card.is-open .guide-chevron {
  transform: rotate(180deg); /* Xoay mũi tên lên */
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== Guide motion upgrade ===== */
.guide-card {
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(244, 82, 47, 0.14) 0%,
    rgba(244, 82, 47, 0.06) 35%,
    rgba(244, 82, 47, 0) 72%
  );
  pointer-events: none;
  animation: guideGlowFloat 5.5s ease-in-out infinite;
}

.guide-tabs {
  position: relative;
  z-index: 1;
}

.guide-tab-btn {
  position: relative;
  overflow: hidden;
}

.guide-tab-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 90%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.32),
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-22deg);
}

.guide-tab-btn.active::after {
  animation: guideTabShine 2.4s ease-in-out infinite;
}

.guide-panel.active {
  animation: guidePanelFadeUp 0.4s ease;
}

.guide-list li {
  animation: guideTextFade 0.45s ease both;
}

.guide-list li:nth-child(1) { animation-delay: 0.04s; }
.guide-list li:nth-child(2) { animation-delay: 0.08s; }
.guide-list li:nth-child(3) { animation-delay: 0.12s; }
.guide-list li:nth-child(4) { animation-delay: 0.16s; }
.guide-list li:nth-child(5) { animation-delay: 0.20s; }

.guide-image-step {
  animation: guideCardFloatIn 0.45s ease both;
}

.guide-image-step:nth-child(1) { animation-delay: 0.04s; }
.guide-image-step:nth-child(2) { animation-delay: 0.1s; }
.guide-image-step:nth-child(3) { animation-delay: 0.16s; }

.guide-image-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.guide-step-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-image-step:hover .guide-step-image {
  transform: scale(1.015);
}

@keyframes guideGlowFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(-10px, 10px, 0) scale(1.06);
    opacity: 1;
  }
}

@keyframes guideIconBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-2px) rotate(-6deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-1px) rotate(6deg);
  }
}

@keyframes guideUnderlineFlow {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes guideTabShine {
  0% {
    left: -130%;
  }
  100% {
    left: 150%;
  }
}

@keyframes guidePanelFadeUp {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes guideTextFade {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes guideCardFloatIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.guide-extra-image-wrap {
  margin-top: 14px;
  background: #f8f8f8;
  border: 1.5px solid #e5e5e5;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  animation: guideCardFloatIn 0.45s ease both;
}

.guide-extra-image-title {
  font-size: 15px;
  font-weight: 800;
  color: #2d3344;
  line-height: 1.35;
  margin-bottom: 8px;
}

.guide-extra-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #ececec;
  background: #fff;
  object-fit: contain;
}

@media (min-width: 768px) {
  .guide-extra-image-wrap {
    margin-top: 16px;
    border-radius: 18px;
    padding: 14px;
  }

  .guide-extra-image-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
}
.guide-title-box {
  position: relative;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f6f7fb);
  border: 1.5px solid rgba(244, 82, 47, 0.18);
  box-shadow:
    0 10px 24px rgba(34, 43, 69, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.guide-title-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 30%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: guideTitleShine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.guide-title-box::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 82, 47, 0.16), rgba(244, 82, 47, 0));
  pointer-events: none;
}

.guide-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.guide-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5ea2ff, #3f7ef7);
  color: #fff;
  font-size: 24px;
  box-shadow:
    0 10px 18px rgba(63, 126, 247, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: guideIconFloat 2.4s ease-in-out infinite;
}

.guide-title-text {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: #24344d;
  letter-spacing: 0.2px;
}

.guide-title-text::after {
  display: none;
}

@keyframes guideTitleShine {
  0% {
    transform: translateX(-120%);
  }
  55% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes guideIconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (min-width: 768px) {
  .guide-title-box {
    padding: 16px 18px;
    border-radius: 24px;
    margin-bottom: 16px;
  }

  .guide-title-icon {
    width: 54px;
    height: 54px;
    font-size: 28px;
    border-radius: 16px;
  }

  .guide-title-text {
    font-size: 30px;
  }
}
.facebook-quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 14px;
  border: 2px solid #2f80ff;
  background: #ffffff;
  color: #2f80ff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(47, 128, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.facebook-quick-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(47, 128, 255, 0.12);
}

.facebook-quick-btn:active {
  transform: translateY(0);
}

.facebook-quick-btn-icon {
  font-size: 18px;
  line-height: 1;
}

@media (min-width: 768px) {
  .facebook-quick-btn {
    min-height: 62px;
    margin-top: 12px;
    border-radius: 16px;
    font-size: 20px;
    gap: 10px;
  }

  .facebook-quick-btn-icon {
    font-size: 22px;
  }
}
.guide-card {
  padding-top: 12px;
}

.guide-tabs {
  margin-top: 0;
  margin-bottom: 10px;
}
.super-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  height: 54px;
  margin-top: 12px;
  padding: 0 22px;

  background: linear-gradient(90deg, #f4522f, #ff6835);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;

  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;

  cursor: pointer;
  overflow: hidden;
  transition: all 0.35s ease-in-out;
  box-shadow:
    0 10px 22px rgba(244, 82, 47, 0.22),
    0 0 18px rgba(255, 104, 53, 0.18);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.super-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #00ffff, #ff00ff, #00ffff);
  animation: rotate 4s linear infinite;
  z-index: -2;
}

.super-button::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(90deg, #f4522f, #ff6835);
  border-radius: inherit;
  z-index: -1;
}

.super-button:hover {
  transform: scale(1.03);
  box-shadow:
    0 12px 28px rgba(244, 82, 47, 0.28),
    0 0 26px rgba(255, 104, 53, 0.28);
}

.super-button:hover .arrow {
  transform: translateX(5px);
}

.super-button:active {
  transform: scale(0.99);
}

.super-button:disabled {
  opacity: 0.9;
  cursor: not-allowed;
}

.arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease-in-out;
  color: #fff;
  flex-shrink: 0;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .super-button {
    height: 76px;
    margin-top: 16px;
    border-radius: 24px;
    font-size: 28px;
    gap: 12px;
    padding: 0 28px;
  }

  .arrow {
    width: 24px;
    height: 24px;
  }
}

/* Resize lại để giống icon paste cũ trong ô input */
.icon-conatiner {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.paste-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-conatiner svg {
  width: 24px;
  height: 45px;
  display: block;
}

.icon-conatiner svg:last-child {
  position: absolute;
  top: 2px;
  left: 3px;
}
.icon-conatiner:active {
  animation: press 0.2s 1 linear;
}

.icon-conatiner:active svg:last-child {
  animation: bounce 0.2s 1 linear;
}

@keyframes press {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bounce {
  50% {
    transform: rotate(5deg) translate(6px, -10px);
  }
  100% {
    transform: scale(0.9) rotate(10deg) translate(12px, -16px);
    opacity: 0;
  }
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 244, 239, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(238, 77, 45, 0.15);
  box-shadow: 0 16px 40px rgba(238, 77, 45, 0.15);
  border-radius: 24px;
  padding: 18px 22px;
}

.page-loader-text {
  font-size: 15px;
  font-weight: 700;
  color: #ee4d2d;
  text-align: center;
}

.pl {
  width: 5.2em;
  height: 5.2em;
}

.pl__ring {
  animation: ringA 2s linear infinite;
}

.pl__ring--a {
  stroke: #f42f25;
}

.pl__ring--b {
  animation-name: ringB;
  stroke: #f49725;
}

.pl__ring--c {
  animation-name: ringC;
  stroke: #255ff4;
}

.pl__ring--d {
  animation-name: ringD;
  stroke: #f42582;
}

@keyframes ringA {
  from, 4% {
    stroke-dasharray: 0 660;
    stroke-width: 20;
    stroke-dashoffset: -330;
  }
  12% {
    stroke-dasharray: 60 600;
    stroke-width: 30;
    stroke-dashoffset: -335;
  }
  32% {
    stroke-dasharray: 60 600;
    stroke-width: 30;
    stroke-dashoffset: -595;
  }
  40%, 54% {
    stroke-dasharray: 0 660;
    stroke-width: 20;
    stroke-dashoffset: -660;
  }
  62% {
    stroke-dasharray: 60 600;
    stroke-width: 30;
    stroke-dashoffset: -665;
  }
  82% {
    stroke-dasharray: 60 600;
    stroke-width: 30;
    stroke-dashoffset: -925;
  }
  90%, to {
    stroke-dasharray: 0 660;
    stroke-width: 20;
    stroke-dashoffset: -990;
  }
}

@keyframes ringB {
  from, 12% {
    stroke-dasharray: 0 220;
    stroke-width: 20;
    stroke-dashoffset: -110;
  }
  20% {
    stroke-dasharray: 20 200;
    stroke-width: 30;
    stroke-dashoffset: -115;
  }
  40% {
    stroke-dasharray: 20 200;
    stroke-width: 30;
    stroke-dashoffset: -195;
  }
  48%, 62% {
    stroke-dasharray: 0 220;
    stroke-width: 20;
    stroke-dashoffset: -220;
  }
  70% {
    stroke-dasharray: 20 200;
    stroke-width: 30;
    stroke-dashoffset: -225;
  }
  90% {
    stroke-dasharray: 20 200;
    stroke-width: 30;
    stroke-dashoffset: -305;
  }
  98%, to {
    stroke-dasharray: 0 220;
    stroke-width: 20;
    stroke-dashoffset: -330;
  }
}

@keyframes ringC {
  from {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: 0;
  }
  8% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -5;
  }
  28% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -175;
  }
  36%, 58% {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: -220;
  }
  66% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -225;
  }
  86% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -395;
  }
  94%, to {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: -440;
  }
}

@keyframes ringD {
  from, 8% {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: 0;
  }
  16% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -5;
  }
  36% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -175;
  }
  44%, 50% {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: -220;
  }
  58% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -225;
  }
  78% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -395;
  }
  86%, to {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: -440;
  }
}
.result-box.result-focus {
  animation: resultFocusPulse 1.2s ease 2;
  box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.12), 0 18px 38px rgba(238, 77, 45, 0.18);
  transform: translateY(-2px);
}

@keyframes resultFocusPulse {
  0% {
    transform: translateY(12px) scale(0.985);
    box-shadow: 0 0 0 0 rgba(238, 77, 45, 0.00), 0 0 0 rgba(238, 77, 45, 0.00);
  }
  50% {
    transform: translateY(0) scale(1.01);
    box-shadow: 0 0 0 6px rgba(238, 77, 45, 0.12), 0 18px 38px rgba(238, 77, 45, 0.18);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.10), 0 18px 38px rgba(238, 77, 45, 0.16);
  }
}

  50% {
    transform: translateY(-50%) translateX(12px) scale(1.05);
  }
}

  50% {
    opacity: 0.55;
  }
}

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

  50% {
    transform: translateY(-2px);
  }
}

.result-box {
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  
  
  
  
  }

/* ===== Mobile fix for result area ===== */
@media (max-width: 640px) {
  .result-section {
    padding: 10px;
  }

  .result-box {
    padding: 12px;
    border-radius: 16px;
  }

  .result-top {
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
  }

  .result-title {
    font-size: 16px;
    line-height: 1.2;
  }

  .copy-btn {
    min-width: 84px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
  }

  
  
  
  
  
  .result-text {
    min-height: 82px;
    font-size: 13px;
    line-height: 1.5;
  }

  .action-btn {
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.2;
    white-space: normal;
  }
}
.guide-video-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.guide-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16; /* video dọc điện thoại */
  background: #000;
}
