/* =========================
   RESET & VARIABLES
========================= */

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

:root {
  --pink: #f472a0;
  --pink-dark: #ed5f92;
  --pink-soft: #f7dce6;

  --ink: #171717;
  --muted: #666666;

  --paper: #fffdfd;
  --white: #ffffff;

  --line: rgba(20, 20, 20, 0.88);
  --soft-line: #e5d9de;

  --shadow:
    0 28px 80px rgba(71, 30, 45, 0.18);

  --transition: 180ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;

  color: var(--ink);
  background: var(--white);

  font-family:
    "Montserrat",
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

img {
  max-width: 100%;
}


/* =========================
   HERO
========================= */

.hero {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;

  display: grid;
  grid-template-columns: 43% 57%;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 27% 55%,
      rgba(244, 114, 160, 0.10),
      transparent 30%
    ),
    linear-gradient(
      110deg,
      #ffffff 0%,
      #ffffff 34%,
      #fceff4 51%,
      #f9dfe8 100%
    );
}


/* =========================
   HERO LEFT
========================= */

.hero-copy {
  position: relative;
  z-index: 2;

  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;

  padding:
    clamp(38px, 5.2vw, 78px)
    20px
    clamp(38px, 5.2vw, 78px)
    clamp(38px, 5.2vw, 78px);
}


/* =========================
   BRAND
========================= */

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 182px;
  height: 64px;

  padding: 0 32px;

  border-radius: 19px;

  color: #ffffff;
  background: var(--pink);

  font-size: clamp(32px, 3vw, 48px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.045em;

  text-decoration: none;

  transition:
    background var(--transition),
    transform var(--transition);
}

.brand:hover {
  background: var(--pink-dark);
}

.brand:focus-visible {
  outline: 3px solid rgba(244, 114, 160, 0.25);
  outline-offset: 4px;
}


/* =========================
   HERO CONTENT
========================= */

.hero-text {
  position: absolute;

  top: 49%;
  left: clamp(38px, 5.2vw, 78px);
  right: 0;

  transform: translateY(-35%);
}

.hero-text h1 {
  width: max-content;

  margin: 0 0 44px;

  display: flex;
  flex-direction: column;

  color: var(--pink);

  font-family:
    "Kaushan Script",
    "Brush Script MT",
    cursive;

  font-size: clamp(72px, 7vw, 114px);
  line-height: 0.99;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero-text h1 span {
  display: block;
}


/* =========================
   HERO ACTIONS
========================= */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}


/* =========================
   BUTTONS
========================= */

.btn {
  min-height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 28px;

  border-radius: 0;

  text-transform: uppercase;
  text-align: center;

  letter-spacing: 0.055em;

  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.btn:focus-visible {
  outline: 3px solid rgba(244, 114, 160, 0.20);
  outline-offset: 3px;
}

.btn-outline {
  color: var(--ink);

  background:
    rgba(255, 255, 255, 0.08);

  border:
    1.5px solid var(--line);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: #ffffff;
  background: var(--ink);

  transform: translateY(-1px);
}

.btn-solid {
  color: #ffffff;
  background: var(--pink);

  border:
    1.5px solid var(--pink);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--pink-dark);
  border-color: var(--pink-dark);

  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}


/* =========================
   HERO IMAGE
========================= */

.hero-visual {
  position: relative;

  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;

  overflow: hidden;
}

.hero-visual::before {
  content: "";

  position: absolute;
  inset: 0 auto 0 0;

  z-index: 1;

  width: 150px;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      #fceef3 0%,
      rgba(252, 238, 243, 0) 100%
    );
}

.hero-visual img {
  width: 100%;
  height: 100vh;
  height: 100svh;

  display: block;

  object-fit: cover;
  object-position: 54% center;
}


/* =========================
   MOBILE EXTRA CTA
========================= */

.mobile-note {
  display: none;
}


/* =========================
   MODAL
========================= */

.modal {
  position: fixed;
  inset: 0;

  z-index: 1000;

  display: grid;
  place-items: center;

  padding: 20px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(30, 14, 20, 0.48);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


/* =========================
   MODAL CARD
========================= */

.modal-card {
  position: relative;

  z-index: 1;

  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100svh - 40px);

  overflow-y: auto;
  overscroll-behavior: contain;

  padding:
    clamp(28px, 4vw, 48px);

  background:
    rgba(255, 253, 253, 0.98);

  border:
    1px solid rgba(244, 114, 160, 0.22);

  box-shadow:
    var(--shadow);

  transform:
    translateY(10px) scale(0.99);

  transition:
    transform var(--transition);
}

.modal.is-open .modal-card {
  transform:
    translateY(0) scale(1);
}

.modal-card-small {
  width: min(520px, 100%);
}


/* =========================
   MODAL CLOSE
========================= */

.modal-close {
  position: absolute;

  top: 13px;
  right: 17px;

  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;

  color: #555555;

  font-size: 31px;
  line-height: 1;

  transition:
    background var(--transition),
    color var(--transition);
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--ink);

  background:
    rgba(244, 114, 160, 0.10);

  outline: none;
}


/* =========================
   MODAL TYPOGRAPHY
========================= */

.eyebrow {
  margin: 0 0 10px;

  color: var(--pink-dark);

  text-transform: uppercase;
  letter-spacing: 0.14em;

  font-size: 12px;
  font-weight: 700;
}

.modal-card h2 {
  max-width: 500px;

  margin: 0;

  font-size:
    clamp(28px, 4vw, 42px);

  line-height: 1.06;

  letter-spacing:
    -0.045em;
}

.modal-copy {
  max-width: 520px;

  margin: 15px 0 28px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.7;
}


/* =========================
   QR SCAN
========================= */

.scan-box {
  width: 100%;
  min-height: 145px;

  padding: 25px;

  display: grid;
  place-items: center;

  gap: 7px;

  border:
    1.5px dashed
    rgba(244, 114, 160, 0.75);

  background: #fff8fb;

  color: var(--ink);

  text-align: center;

  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.scan-box:hover,
.scan-box:focus-visible {
  background: #fff2f7;

  border-color: var(--pink);

  transform: translateY(-1px);

  outline: none;
}

.scan-icon {
  color: var(--pink);

  font-size: 38px;
  line-height: 1;
}

.scan-box strong {
  font-size: 16px;
}

.scan-box small {
  max-width: 390px;

  color: #777777;

  font-size: 12px;
  line-height: 1.5;
}


/* =========================
   DIVIDER
========================= */

.divider {
  display: flex;
  align-items: center;

  gap: 12px;

  margin: 22px 0;

  color: #888888;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  font-size: 10px;
}

.divider::before,
.divider::after {
  content: "";

  height: 1px;

  flex: 1;

  background:
    var(--soft-line);
}


/* =========================
   FORM
========================= */

label {
  display: block;

  margin: 16px 0 8px;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}

input,
textarea {
  width: 100%;

  border:
    1px solid #d7cdd1;

  border-radius: 0;

  outline: none;

  padding: 14px 15px;

  color: var(--ink);

  background: #ffffff;

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

textarea {
  min-height: 110px;

  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #a69ca0;
}

input:focus,
textarea:focus {
  border-color: var(--pink);

  box-shadow:
    0 0 0 3px
    rgba(244, 114, 160, 0.10);
}


/* =========================
   VERIFICATION INPUT
========================= */

.input-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr) auto;

  gap: 10px;

  align-items: stretch;
}

.input-row .btn {
  min-width: 110px;
}


/* =========================
   RESULT
========================= */

.result-box {
  margin-top: 20px;

  padding: 15px;

  display: flex;

  gap: 12px;

  border:
    1px solid #f4c8d8;

  background: #fff5f8;
}

.result-box strong {
  font-size: 14px;
}

.result-box p {
  margin: 4px 0 0;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.5;
}

.status-dot {
  width: 11px;
  height: 11px;

  margin-top: 4px;

  flex: 0 0 auto;

  border-radius: 999px;

  background:
    var(--pink);
}

body.modal-open {
  overflow: hidden;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

  .hero {
    grid-template-columns:
      45% 55%;
  }

  .hero-text h1 {
    font-size:
      clamp(68px, 8vw, 98px);
  }
}


@media (max-width: 980px) {

  .hero {
    grid-template-columns:
      46% 54%;
  }

  .hero-copy {
    padding: 40px 30px;
  }

  .hero-text {
    left: 30px;
  }

  .hero-text h1 {
    font-size:
      clamp(62px, 9vw, 92px);
  }

  .hero-actions {
    width: min(330px, 100%);

    display: grid;
    grid-template-columns: 1fr;

    gap: 10px;
  }

  /*
    Hanya tombol HERO yang full width.
    Tombol modal tidak ikut melebar.
  */
  .hero-actions .btn {
    width: 100%;
  }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 720px) {

  .hero {
    position: relative;

    min-height: 100svh;

    display: block;

    background: #f9dfe8;
  }


  /* IMAGE */

  .hero-visual {
    position: absolute;
    inset: 0;

    min-height: 100svh;
  }

  .hero-visual::before {
    inset: auto 0 0;

    width: auto;
    height: 62%;

    background:
      linear-gradient(
        0deg,
        rgba(255, 249, 251, 0.99) 0%,
        rgba(255, 249, 251, 0.94) 35%,
        rgba(255, 249, 251, 0.74) 56%,
        rgba(255, 249, 251, 0) 100%
      );
  }

  .hero-visual img {
    height: 100svh;

    object-position:
      61% center;
  }


  /* CONTENT */

  .hero-copy {
    position: relative;

    min-height: 100svh;

    padding:
      max(26px, env(safe-area-inset-top))
      22px
      max(26px, env(safe-area-inset-bottom));

    display: flex;

    flex-direction: column;

    justify-content:
      space-between;
  }


  /* LOGO */

  .brand {
    min-width: 118px;
    width: fit-content;

    height: 47px;

    padding: 0 22px;

    border-radius: 15px;

    font-size: 29px;
  }


  /* TEXT */

  .hero-text {
    position: relative;

    inset: auto;

    margin-top: auto;

    padding-bottom: 28px;

    transform: none;
  }

  .hero-text h1 {
    margin-bottom: 25px;

    font-size:
      clamp(58px, 18vw, 82px);

    line-height: 0.92;
  }


  /* BUTTONS */

  .hero-actions {
    width: 100%;
    max-width: none;

    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;

    min-height: 52px;

    background:
      rgba(255, 255, 255, 0.64);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
  }


  /* MODAL */

  .modal {
    padding: 12px;
  }

  .modal-card {
    width: 100%;

    max-height:
      calc(100svh - 24px);

    padding:
      34px 22px 26px;
  }

  .modal-card h2 {
    padding-right: 25px;

    font-size:
      clamp(27px, 8vw, 36px);
  }

  .modal-copy {
    margin-bottom: 22px;
  }

  .scan-box {
    min-height: 130px;

    padding: 20px;
  }


  /* FORM */

  .input-row {
    grid-template-columns: 1fr;
  }

  .input-row .btn {
    width: 100%;
  }

  .btn-full {
    width: 100%;
  }


  .mobile-note {
    display: none;
  }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 420px) {

  .hero-copy {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-text h1 {
    font-size:
      clamp(54px, 18vw, 72px);
  }

  .btn {
    min-height: 50px;

    padding-left: 18px;
    padding-right: 18px;

    font-size: 12px;
  }

  .modal {
    padding: 8px;
  }

  .modal-card {
    max-height:
      calc(100svh - 16px);

    padding:
      32px 18px 22px;
  }
}

/* =========================
   VERIFICATION STATUS
========================= */

.result-box {
  position: relative;
  overflow: hidden;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}


/* DEFAULT STATUS DOT */

.result-box .status-dot {
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}


/* =========================
   LOADING
========================= */

.result-box.is-loading {
  border-color: rgba(244, 114, 160, 0.35);
  background: #fff6f9;
}

.result-box.is-loading .status-dot {
  background: var(--pink);

  box-shadow:
    0 0 0 5px rgba(244, 114, 160, 0.12);

  animation:
    verificationPulse 1.25s ease-in-out infinite;
}

.result-box.is-loading strong {
  color: var(--ink);
}


/* =========================
   AUTHENTIC / SUCCESS
========================= */

.result-box.is-success {
  border-color: #b9dfca;
  background: #f2fbf6;
}

.result-box.is-success .status-dot {
  background: #2d9b61;

  box-shadow:
    0 0 0 5px rgba(45, 155, 97, 0.10);
}

.result-box.is-success strong {
  color: #176c41;
}

.result-box.is-success p {
  color: #49705c;
}


/* =========================
   WARNING
========================= */

.result-box.is-warning {
  border-color: #ead6a1;
  background: #fffaf0;
}

.result-box.is-warning .status-dot {
  background: #d89b24;

  box-shadow:
    0 0 0 5px rgba(216, 155, 36, 0.11);
}

.result-box.is-warning strong {
  color: #986813;
}

.result-box.is-warning p {
  color: #756540;
}


/* =========================
   INVALID / ERROR
========================= */

.result-box.is-error {
  border-color: #efc0c8;
  background: #fff5f6;
}

.result-box.is-error .status-dot {
  background: #d84b64;

  box-shadow:
    0 0 0 5px rgba(216, 75, 100, 0.10);
}

.result-box.is-error strong {
  color: #a92d44;
}

.result-box.is-error p {
  color: #755158;
}


/* =========================
   STATUS ANIMATION
========================= */

@keyframes verificationPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.72);
    opacity: 0.55;
  }
}


/* =========================
   DISABLED BUTTON
========================= */

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none !important;
}


/* =========================
   RESULT ENTRANCE
========================= */

.result-box:not([hidden]) {
  animation:
    verificationResultIn 220ms ease both;
}

@keyframes verificationResultIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition: none !important;

    animation: none !important;
  }
}

/* =========================
   QR SCANNER
========================= */

.qr-scanner-layer {
  position: fixed;
  inset: 0;

  z-index: 2000;

  display: grid;
  place-items: center;

  padding: 20px;

  background:
    rgba(24, 12, 17, 0.76);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  animation:
    scannerFadeIn 180ms ease both;
}


/* =========================
   SCANNER CARD
========================= */

.qr-scanner-card {
  width: min(520px, 100%);

  padding: 28px;

  background: #fffdfd;

  border:
    1px solid
    rgba(244, 114, 160, 0.22);

  box-shadow:
    0 30px 90px
    rgba(20, 10, 15, 0.28);
}


/* =========================
   SCANNER HEADER
========================= */

.qr-scanner-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 10px;
}

.qr-scanner-header h3 {
  margin: 0;

  font-size:
    clamp(26px, 5vw, 38px);

  line-height: 1.05;

  letter-spacing: -0.045em;
}

.qr-scanner-header .eyebrow {
  margin-bottom: 7px;
}


/* =========================
   CLOSE
========================= */

.qr-scanner-close {
  width: 40px;
  height: 40px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background:
    rgba(244, 114, 160, 0.08);

  color: #555;

  font-size: 30px;

  line-height: 1;

  transition:
    background 180ms ease,
    color 180ms ease;
}

.qr-scanner-close:hover {
  color: #171717;

  background:
    rgba(244, 114, 160, 0.16);
}


/* =========================
   TEXT
========================= */

.qr-scanner-copy {
  margin:
    0 0 20px;

  color: #666;

  font-size: 13px;
  line-height: 1.6;
}


/* =========================
   CAMERA
========================= */

.qr-camera {
  position: relative;

  width: 100%;

  aspect-ratio: 1 / 1;

  overflow: hidden;

  background: #111;
}

.qr-camera video {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}


/* =========================
   CAMERA OVERLAY
========================= */

.qr-camera-overlay {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  pointer-events: none;

  background:
    radial-gradient(
      circle at center,
      transparent 0%,
      transparent 38%,
      rgba(0, 0, 0, 0.16) 70%,
      rgba(0, 0, 0, 0.34) 100%
    );
}


/* =========================
   QR FRAME
========================= */

.qr-frame {
  position: relative;

  width: 62%;
  aspect-ratio: 1 / 1;
}

.qr-frame span {
  position: absolute;

  width: 38px;
  height: 38px;
}


/* TOP LEFT */

.qr-frame span:nth-child(1) {
  top: 0;
  left: 0;

  border-top:
    4px solid #fff;

  border-left:
    4px solid #fff;
}


/* TOP RIGHT */

.qr-frame span:nth-child(2) {
  top: 0;
  right: 0;

  border-top:
    4px solid #fff;

  border-right:
    4px solid #fff;
}


/* BOTTOM LEFT */

.qr-frame span:nth-child(3) {
  bottom: 0;
  left: 0;

  border-bottom:
    4px solid #fff;

  border-left:
    4px solid #fff;
}


/* BOTTOM RIGHT */

.qr-frame span:nth-child(4) {
  right: 0;
  bottom: 0;

  border-right:
    4px solid #fff;

  border-bottom:
    4px solid #fff;
}


/* =========================
   HINT
========================= */

.qr-scanner-hint {
  margin:
    18px 0 0;

  text-align: center;

  color: #777;

  font-size: 12px;
  line-height: 1.5;
}


/* =========================
   SCANNER ANIMATION
========================= */

@keyframes scannerFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* =========================
   MOBILE SCANNER
========================= */

@media (max-width: 600px) {

  .qr-scanner-layer {
    padding: 10px;
  }

  .qr-scanner-card {
    padding:
      24px 18px 20px;
  }

  .qr-camera {
    aspect-ratio:
      4 / 5;
  }

  .qr-frame {
    width: 70%;
  }
}

/* =========================
   VERIFICATION MODE
========================= */

.verification-mode {
  display: grid;
  gap: 10px;

  margin:
    0 0 22px;

  padding: 0;

  border: 0;
}

.verification-mode legend {
  margin-bottom: 10px;

  color: var(--ink);

  font-size: 13px;
  font-weight: 700;
}


.mode-option {
  display: flex;
  align-items: center;

  gap: 10px;

  padding: 12px 14px;

  border:
    1px solid
    var(--soft-line);

  cursor: pointer;

  transition:
    border-color 180ms ease,
    background 180ms ease;
}


.mode-option:hover {
  border-color:
    rgba(244, 114, 160, 0.5);

  background: #fff8fa;
}


.mode-option input {
  width: auto;
  margin: 0;

  accent-color:
    var(--pink);
}


.mode-option span {
  font-size: 13px;
  font-weight: 600;
}


/* =========================
   4 DIGIT CODE
========================= */

.verification-code-field {
  margin-top: 18px;
}


.verification-code-field[hidden] {
  display: none;
}


.verification-code-field input {
  width: 100%;

  margin-top: 8px;

  padding:
    14px 16px;

  border:
    1px solid
    var(--soft-line);

  background: var(--white);

  font-family: inherit;
  font-size: 15px;

  letter-spacing: 0.18em;
}


.verification-code-field input:focus {
  outline: none;

  border-color:
    var(--pink);
}

/* =========================================================
   PREMIUM VERIFICATION RESULT
========================================================= */

.verification-result {
  position: relative;

  display: grid;
  grid-template-columns: 58px 1fr;

  gap: 18px;
  align-items: flex-start;

  margin-top: 24px;
  padding: 22px;

  border:
    1px solid
    rgba(30, 30, 30, 0.08);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #fffafb
    );

  box-shadow:
    0 18px 50px
    rgba(50, 30, 40, 0.08);

  overflow: hidden;

  animation:
    verificationResultIn
    220ms ease both;
}


/* =========================
   HIDDEN
========================= */

.verification-result[hidden] {
  display: none !important;
}


/* =========================
   ICON
========================= */

.verification-result-icon {
  width: 56px;
  height: 56px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border-radius: 50%;

  font-size: 25px;
  font-weight: 800;

  line-height: 1;
}


/* =========================
   CONTENT
========================= */

.verification-result-body {
  min-width: 0;
}


.verification-result-label {
  display: block;

  margin-bottom: 6px;

  color: #8f8589;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


.verification-result-title {
  display: block;

  margin:
    0 0 7px;

  font-size: 19px;
  font-weight: 700;

  line-height: 1.25;

  letter-spacing:
    -0.015em;
}


.verification-result-message {
  margin: 0;

  color: #70696c;

  font-size: 13px;

  line-height: 1.7;
}


/* =========================================================
   AUTHENTIC / SUCCESS
========================================================= */

.verification-result.is-success {
  border-color:
    rgba(39, 151, 99, 0.28);

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f3fff8 100%
    );
}


.verification-result.is-success
.verification-result-icon {
  background:
    #e2f6eb;

  color:
    #208958;

  box-shadow:
    0 0 0 7px
    rgba(39, 151, 99, 0.06);
}


.verification-result.is-success
.verification-result-icon::before {
  content: "✓";
}


.verification-result.is-success
.verification-result-title {
  color:
    #18744a;
}


/* =========================================================
   PREVIOUSLY VERIFIED
========================================================= */

.verification-result.is-warning {
  border-color:
    rgba(190, 132, 27, 0.32);

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #fffaf0 100%
    );
}


.verification-result.is-warning
.verification-result-icon {
  background:
    #fff0c8;

  color:
    #a36a08;

  box-shadow:
    0 0 0 7px
    rgba(190, 132, 27, 0.06);
}


.verification-result.is-warning
.verification-result-icon::before {
  content: "✓";
}


.verification-result.is-warning
.verification-result-title {
  color:
    #93600a;
}


/* =========================================================
   INVALID / ERROR
========================================================= */

.verification-result.is-error {
  border-color:
    rgba(190, 60, 70, 0.28);

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #fff5f6 100%
    );
}


.verification-result.is-error
.verification-result-icon {
  background:
    #ffe4e7;

  color:
    #bd3a46;

  box-shadow:
    0 0 0 7px
    rgba(190, 60, 70, 0.05);
}


.verification-result.is-error
.verification-result-icon::before {
  content: "×";
}


.verification-result.is-error
.verification-result-title {
  color:
    #a92f3a;
}


/* =========================================================
   LOADING
========================================================= */

.verification-result.is-loading {
  border-color:
    rgba(244, 114, 160, 0.22);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #fff8fb
    );
}


.verification-result.is-loading
.verification-result-icon {
  width: 52px;
  height: 52px;

  border:
    3px solid
    rgba(244, 114, 160, 0.17);

  border-top-color:
    var(--pink);

  background:
    transparent;

  animation:
    drveVerificationSpin
    0.8s linear infinite;
}


.verification-result.is-loading
.verification-result-icon::before {
  content: "";
}


/* =========================
   LOADING ANIMATION
========================= */

@keyframes drveVerificationSpin {

  to {
    transform:
      rotate(360deg);
  }
}


/* =========================
   RESULT ENTRANCE
========================= */

@keyframes verificationResultIn {

  from {
    opacity: 0;

    transform:
      translateY(7px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}


/* =========================================================
   CHECK ANOTHER PRODUCT
========================================================= */

.verify-again-button {
  display: inline-flex;

  align-items: center;

  margin-top: 15px;

  padding: 0;

  border: 0;

  background:
    transparent;

  color:
    var(--pink-dark);

  font: inherit;

  font-size: 12px;
  font-weight: 700;

  letter-spacing:
    0.015em;

  cursor: pointer;
}


.verify-again-button[hidden] {
  display: none !important;
}


.verify-again-button:hover,
.verify-again-button:focus-visible {
  color:
    #c94b78;

  text-decoration:
    underline;

  outline: none;
}


/* =========================================================
   MVP — TYPE 1 ONLY
========================================================= */

/*
  Type 2 tetap tersedia di HTML + backend.
  Untuk MVP sementara hanya Type 1
  yang ditampilkan ke customer.
*/

.verification-mode {
  display: none !important;
}


.verification-code-field {
  display: none !important;
}


/* =========================================================
   PREMIUM RESULT — MOBILE
========================================================= */

@media (max-width: 520px) {

  .verification-result {
    grid-template-columns:
      46px minmax(0, 1fr);

    gap: 14px;

    margin-top: 20px;

    padding: 18px;

    border-radius: 15px;
  }


  .verification-result-icon {
    width: 46px;
    height: 46px;

    font-size: 21px;
  }


  .verification-result.is-loading
  .verification-result-icon {
    width: 42px;
    height: 42px;
  }


  .verification-result-title {
    font-size: 17px;
  }


  .verification-result-message {
    font-size: 12px;

    line-height: 1.65;
  }


  .verify-again-button {
    margin-top: 12px;

    font-size: 11px;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .verification-result {
    animation: none;
  }


  .verification-result.is-loading
  .verification-result-icon {
    animation: none;
  }
}

.verification-card {
  width: min(92%, 520px);
  padding: 48px 40px;

  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  text-align: center;
}

.verification-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.verification-page::before {
  content: "";
  position: absolute;
  inset: -30px;

  background:
    linear-gradient(
      rgba(255, 238, 243, 0.35),
      rgba(245, 212, 220, 0.45)
    ),
    url("/assets/product.jpg") center / cover no-repeat;

  filter: blur(18px);
  transform: scale(1.08);
}

.verification-page::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      rgba(255,255,255,0.12),
      rgba(20,10,15,0.22)
    );
}

.verification-card {
  position: relative;
  z-index: 2;
}

