/*=============== FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --body-font-primary: "Inter", sans-serif;
  --secondary-font: "Akhanda Tamil", sans-serif;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-yellow: #ffc100;
  --color-blue: #55adc9;
  --color-dark-blue: #232fb3;
  --color-green: #008248;
  --color-orange: #ff510d;

  /* Typography */
  --fs-h1: 1.5rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.75rem;
  --fs-smallest: 0.5rem;

  /* Font Weight */
  --fw-reg: 400;
  --fw-med: 500;
  --fw-semi-bold: 600;
  --fw-bold: 700;
  --fw-bolder: 800;
}

/*=============== MEDIA QUERY CSS ===============*/
@media (min-width: 992px) {
  .col-md-12 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-md-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/*=============== BASE ===============*/
html {
  scroll-behavior: smooth;
  overflow: hidden;
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: var(--body-font-primary);
}

a:active,
a:hover,
a:focus,
a:visited {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--body-font-primary);
  font-style: normal;
  line-height: 1.2;
}

img {
  vertical-align: middle;
  border-style: none;
}

p {
  font-size: 1rem;
  line-height: 1.2;
  color: var(--thm-text);
  margin-top: 0;
  margin-bottom: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.text-start {
  text-align: start;
}

.text-center {
  text-align: center;
}

.text-end {
  text-align: end;
}

.row {
  display: flex;
}

.d-flex {
  display: flex;
}

.jc-center {
  justify-content: center;
}

.jc-start {
  justify-content: flex-start;
}

.jc-end {
  justify-content: flex-end;
}

.jc-sb {
  justify-content: space-between;
}

.ai-start {
  align-items: flex-start;
}

.ai-center {
  align-items: center;
}

.ai-end {
  align-items: flex-end;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.mt-0 {
  margin-top: 0rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.pb-1 {
  padding-bottom: 1rem;
}

.pb-2 {
  padding-bottom: 2rem;
}

.p-0 {
  padding: 0;
}

.p-1 {
  padding: 1rem;
}

.p-2 {
  padding: 2rem;
}

.pt-1 {
  padding-top: 1rem;
}

.pt-2 {
  padding-top: 2rem;
}

.px-0 {
  padding-inline: 0;
}

.px-1 {
  padding-inline: 1rem;
}

.text-upp {
  text-transform: uppercase;
}

.w-100 {
  width: 100%;
  height: auto;
}

.img-fit {
  width: 100%;
  height: auto;
  display: block;
}

.pos-rel {
  position: relative;
}

.pos-stat {
  position: static;
}

.fw-400 {
  font-weight: 400;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

/*=============== CUSTOM CSS STARTS ===============*/

.page-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--thm-dark-blue);
}

.main-wrapper {
  position: relative;
  width: 100%;
  height: 100svh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.yellow-bg {
  background: var(--color-yellow);
}

/* ══════════════════════════════════════════
   REUSABLE FRAME  —  frame-* classes
   Reuse .frame-outer on any page.
   Only swap out .frame-content children.
══════════════════════════════════════════ */
.page-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--thm-dark-blue);
}

.main-wrapper {
  position: relative;
  width: 100%;
  height: 100svh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: stretch;
  /* stretch so frame fills full height */
}

.yellow-bg {
  background: var(--color-yellow);
}

.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

/* ══════════════════════════════════════════
   REUSABLE FRAME  —  frame-* classes
══════════════════════════════════════════ */

/* Outermost yellow shell — full height, width capped to portrait ratio */
.frame-outer {
  position: relative;
  width: 100%;
  max-width: calc(100svh * 0.565);
  height: 100%;
  background: var(--color-yellow);
  /* thick yellow padding top/sides; bottom holds footer */
  padding: 22px 18px 22px 18px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* ── Orange diamond corners ──
   Positioned at the 4 corners of .frame-outer */
.frame-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--color-orange);
  transform: rotate(45deg);
  z-index: 3;
}

.frame-corner.tl {
  top: 14px;
  left: 10px;
}

.frame-corner.tr {
  top: 14px;
  right: 10px;
}

.frame-corner.bl {
  bottom: 14px;
  left: 10px;
}

.frame-corner.br {
  bottom: 14px;
  right: 10px;
}

/* ── Black outer ring ── */
.frame-border-outer {
  flex: 1;
  min-height: 0;
  border: 1px solid #000;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ── Green ring ── */
.frame-border {
  flex: 1;
  min-height: 0;
  border: 5px solid var(--color-green);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ── Black inner ring ── */
.frame-border-inner {
  flex: 1;
  min-height: 0;
  border: 1px solid #000;
  position: relative;
  /* overflow: hidden; */
}

/* Blue background canvas */
.frame-canvas {
  width: 100%;
  height: 100%;
  background-color: var(--color-blue);
  position: relative;
  /* overflow: hidden; */
}

/* Background image — centered, object-fit cover */
.frame-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

/* Content layers — #splash and #main both use this */
.frame-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ══════════════════════════════════════════
   FOOTER
   Lives in the bottom yellow padding area.
   Pill straddles the green border bottom edge.
══════════════════════════════════════════ */
.frame-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  /* matches bottom padding of .frame-outer */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 6px;
  z-index: 30;
}

/* Yellow pill — half overlaps into the blue canvas above */
.frame-footer-pill {
  background: var(--color-yellow);
  border-radius: 8px 8px 0 0;
  border: 1px solid #000;
  border-bottom: none;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.frame-footer-pill svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

/* Terms text */
.frame-footer-terms {
  font-size: 8px;
  color: var(--color-black);
  text-align: center;
  line-height: 1.2;
  font-weight: var(--fw-med);
  margin-top: 6px;
}

.frame-footer-terms a {
  color: var(--color-black);
  text-decoration: underline;
}

/*=============== SPLASH SCREEN START ===============*/
/* SPLASH EXIT ANIMATION */
#splash.hide-up {
  animation: splashUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splashUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-40px);
    /* 👈 adjust how much it goes up */
    opacity: 0;
  }
}

/*=============== SPLASH SCREEN END ===============*/

/*=============== SIGN UP SCREEN START ===============*/
.signup-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* overflow: hidden; */
}

/* Header — logo + tamil title */
.signup-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 8px;
  gap: 6px;
  margin-top: -12px;
}

.signup-logo {
  width: 40px;
  height: auto;
  display: block;
}

.signup-title-img {
  width: 100%;
  max-width: 210px;
  height: auto;
  display: block;
}

/* Scrollable body */
.signup-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 26px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* hide scrollbar but keep scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.signup-body::-webkit-scrollbar {
  display: none;
}

.signup-heading {
  font-size: 22px;
  line-height: 1.2;
  font-weight: var(--fw-bold);
  color: var(--color-black);
  letter-spacing: 0;
  margin: 0 0 4px;
}

.signup-subtext {
  font-size: 12px;
  color: var(--color-black);
  text-align: center;
  line-height: 1.2;
  font-weight: var(--fw-reg);
  margin-bottom: 20px;
}

/* Form */
.signup-form {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.form-field {
  width: 100%;
}

.form-input {
  width: 100%;
  background: var(--color-yellow);
  border: 1.5px solid var(--color-black);
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
  color: var(--color-black);
  appearance: none;
  -webkit-appearance: none;
  height: 42px;
}

.form-input::placeholder {
  color: var(--color-black);
  opacity: 0.8;
}

/* Select with custom arrow */
.form-select-wrap {
  position: relative;
  width: 100%;
}

.form-select {
  padding-right: 40px;
  cursor: pointer;
}

/* Input with error icon */
.input-with-icon {
  position: relative;
}

.form-field.error .form-input {
  border: 2px solid var(--color-orange);
}

.form-field.error .error-icon {
  display: flex;
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.error-text {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: none;

  font-size: 12px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
  color: var(--color-black);
}

.form-field.error .error-text {
  display: block;
}

/* Error icon */
.error-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-black);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

/* Show only icon on error */
.form-field.error .error-icon {
  display: flex;
}

/* Hide placeholder when error */
.form-field.error .form-input::placeholder {
  opacity: 0;
}

/* ERROR STATE FIX */
.form-field.error .form-input {
  border: 2px solid var(--color-orange);

  color: transparent;
  /* 🔥 hide typed text */
  caret-color: transparent;
  /* 🔥 hide cursor */
}

/* hide placeholder */
.form-field.error .form-input::placeholder {
  opacity: 0;
}

/* ensure error text visible */
.form-field.error .error-text {
  display: block;
}

/* ensure icon visible */
.form-field.error .error-icon {
  display: flex;
}

.error-text,
.error-icon {
  pointer-events: none;
}

/* Dropdown arrow like design */
.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional: smooth rotate on focus (premium feel) */
.form-select:focus+.select-arrow svg {
  transform: rotate(180deg);
  transition: 0.3s ease;
}

/* Checkbox row */
.form-checkbox-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1px solid var(--color-black);
  border-radius: 6px;
  background: #f6ebc2;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin: 0;
  position: relative;
  /* IMPORTANT */
}

/* Checked state */
.form-checkbox:checked {
  background: var(--color-black);
}

/* ✅ Tick mark */
.form-checkbox:checked::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 12px;
  border: solid #f6ebc2;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
  top: 50%;
  left: 50%;
}

.form-checkbox-label {
  font-size: 9px;
  font-weight: var(--fw-reg);
  color: var(--color-black);
  line-height: 1.2;
  cursor: pointer;
}

.form-checkbox-label a {
  text-decoration: underline;
  color: var(--color-black);
}

/* reCAPTCHA placeholder */
.recaptcha-field {
  margin-top: 2px;
}

.recaptcha-placeholder {
  width: 100%;
  height: 40px;
  background: #f6ebc2;
  border: 1px solid var(--color-black);
  border-radius: 8px;
  padding: 10px;
  font-size: 1rem;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 5px;
}

/* Next button — decorative orange border style */

.btn-next {
  background: url("../images/button-bg.png") center / 100% 100% no-repeat;
  border: none;
  padding: 14px 16px;

  max-width: 180px;
  width: 100%;
  min-width: 180px;
  height: 54px;

  cursor: pointer;

  /* Smooth animation */
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  transform: translateY(0) scale(1);
}

/* Optional hover (very subtle) */
.btn-next:hover {
  transform: translateY(-1px) scale(1.01);
}

/* CLICK / PRESS */
.btn-next:active {
  transform: translateY(2px) scale(0.96);
}

/* TEXT */
.btn-next span {
  font-size: 18px;
  line-height: 1;
  font-weight: var(--fw-bold);
  color: var(--color-black);
  position: relative;
  z-index: 1;

  /* tiny press feel on text also */
  transition: transform 0.2s ease;
}

.btn-next:active span {
  transform: scale(0.98);
}

/* Already registered */
.signup-login {
  font-size: 12px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
  color: var(--color-black);
  text-align: center;
  margin-top: 24px;
}

.signup-login a {
  text-decoration: underline;
  color: var(--color-black);
}

/* Language Popup Start */
/* ── Overlay behind the popup ── */
#lang-select {
  position: absolute;
  /* relative to frame-canvas, not viewport */
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lang-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 11;
}

/* ── Outer scroll container ── */
.lang-scroll-wrap {
  width: 100%;
}

/* ── Inner content area ── */
.lang-scroll-inner {
  padding: 10px;
  text-align: center;
  position: relative;
  /* needed for overlay */
}

.lang-heading {
  position: absolute;
  top: 22%;
  /* adjust to sit just above the white radio boxes */
  left: 0;
  right: 0;
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--color-black);
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

/* ── Radio options row — floats over the image ── */
.lang-options {
  position: absolute;
  bottom: 24%;
  /* adjust up/down to align with the white boxes in image */
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 48px;
}

.lang-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  transition: all 0.15s ease;
}

/* hide default radio */
.lang-radio {
  display: none;
}

.lang-radio-custom {
  width: 24px;
  height: 30px;
  background: #fff;
  border: 1.5px solid #1a1a1a;
  border-radius: 8px;
  position: relative;
  transition: all 0.15s ease;
}

/* 👇 BLACK when selected */
.lang-radio:checked+.lang-radio-custom {
  background: #1a1a1a;
  transform: scale(1.05);
}

/* tick */
.lang-radio-custom::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 12px;
  border: solid #fff;
  /* ✅ white tick */
  border-width: 0 2px 2px 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%) rotate(45deg);
  opacity: 0;
  transition: 0.2s ease;
}

/* show tick when checked */
.lang-radio:checked+.lang-radio-custom::after {
  opacity: 1;
}

.lang-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-black);
}

/* ── Bottom footer section (dark brown bar + button) ── */
.lang-scroll-footer {
  background: transparent;
  border: none;
  border-radius: 0 0 14px 14px;
  padding: 10px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* version / instance bar */
.lang-version-bar {
  background: #3a2208;
  border: 2px solid #7a5020;
  border-radius: 8px;
  padding: 6px 24px;
  width: 100%;
  text-align: center;
}

.lang-version-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #d4a020;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

/* Splash content image behind the language popup */
.lang-bg-image {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  /* adjust this % to taste */
  height: auto;
  z-index: 0;
  display: block;
  opacity: 0.1;
}

/* Language Popup End */
/*=============== SIGN UP SCREEN END ===============*/

/*=============== OTP SCREEN START ===============*/
.otp-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.otp-body {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 60px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.otp-form {
  width: 80%;
}

/* OTP Wrapper */
.otp-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

/* OTP Input Box */
.otp-input {
  width: 30px;
  height: 38px;
  text-align: center;
  font-size: 16px;
  font-weight: var(--fw-reg);
  border-radius: 8px;
  border: 1px solid var(--color-black);
  background: var(--color-yellow);
  outline: none;
  transition: all 0.2s ease;
  padding: 5px;
}

/* Focus effect */
.otp-input:focus {
  border-color: var(--color-black);
  transform: scale(1.05);
}

/* OTP subtitle */
.otp-sent-text {
  font-size: 10px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
  color: var(--color-black);
  text-align: left;
  margin-bottom: 12px;
}

.otp-phone-link {
  color: var(--color-black);
  text-decoration: underline;
}

.otp-edit-icon {
  width: auto;
  height: 14px;
  vertical-align: middle;
  margin-left: 12px;
  cursor: pointer;
}

/* OTP timer / error row */
.otp-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 24px;
  gap: 10px;
}

/* Left side text */
.otp-expire-text,
.otp-error-text {
  font-size: 10px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
  color: var(--color-black);
  flex: 1;
  text-align: left;
}

/* Timer */
.otp-timer {
  font-size: 10px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
  color: var(--color-black);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Error state on OTP inputs */
.otp-input.otp-error {
  border: 2px solid var(--color-orange);
  animation: shake 0.25s ease;
}

/* Wrong OTP text — hidden by default */
.otp-error-text {
  display: none;
}

/* Resend Code link — hidden by default */
.otp-resend-link {
  display: none;
  font-size: 10px;
  font-weight: var(--fw-bold);
  color: var(--color-black);
  text-decoration: underline;
  cursor: pointer;
  text-align: right;
}

/* ================= ERROR STATE ================= */
.otp-form.has-error .otp-error-text {
  display: block;
}

.otp-form.has-error .otp-expire-text {
  display: none;
}

.otp-form.has-error #otpTimer {
  display: none;
}

.otp-form.has-error .otp-resend-link {
  display: block;
}

/*=============== OTP SCREEN END ===============*/

/*=============== LOG IN SCREEN START ===============*/
/* Header — logo + tamil title */
.login-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 8px;
  gap: 6px;
  margin-top: -12px;
}

/* Scrollable body */
.login-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 42px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* hide scrollbar but keep scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.login-body::-webkit-scrollbar {
  display: none;
}

.login-form {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.form-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-black);
  margin-bottom: 0;
  margin-top: 4px;
  display: block;
}

/* Match spacing */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-form .otp-wrapper {
  margin-top: -6px;
}

.login-form .otp-timer-row {
  margin-top: 0px;
  margin-bottom: 6px;
}

.login-form .btn-next {
  margin-top: 40px;
}

.login-form .form-field .error-text,
.login-form .form-field .error-icon {
  top: 44px;
}

/* ================= LOGIN FORM ERROR STATE ================= */
.login-form.has-error .otp-error-text {
  display: block;
}

.login-form.has-error .otp-expire-text {
  display: none;
}

.login-form.has-error #otpTimer {
  display: none;
}

.login-form.has-error .otp-resend-link {
  display: block;
}

/*=============== LOG IN SCREEN END ===============*/

/*=============== WELCOME BACK SCREEN START ===============*/
.scan-success-level-1-box-text.welcome-back-star p {
  font-size: 12px;
}

.scan-success-level-1-box-text.welcome-back-star .cashback-icon {
  width: 112px;
}

.welcome-back-footer a {
  font-size: 10px;
  margin-top: 10px;
  color: var(--color-white);
  font-weight: var(--fw-med);
}

/*=============== WELCOME BACK SCREEN END ===============*/

/* ================= SCAN SCREEN START ================= */
.frame-yellow-bg {
  position: relative;
  width: 100%;
  max-width: calc(100svh * 0.565);
  height: 100%;
  background: var(--color-yellow);
  padding: 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.frame-green-corners {
  flex: 1;
  min-height: 0;
  background-color: var(--color-green);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 16px;
  border: 1px solid var(--color-black);
}

.br-16 {
  border-radius: 16px;
}

.container-full {
  width: 100%;
  height: 100%;
}

.top-logo {
  margin-top: -16px;
}

.top-logo img {
  width: 164px;
  height: auto;
  margin: 0 auto;
}

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

.camera-container {
  position: relative;
  width: 100%;
  height: calc(100% - 60px);
  padding: 20px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

/* Scan text */
.scan-text {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--color-black);
  text-align: center;
  margin-top: 10px;
}

/* Scanner area */
.scanner-box {
  position: relative;
  width: 85%;
  height: 65%;
  max-height: 380px;
}

/* Corner base */
.corner {
  position: absolute;
  width: 60px;
  height: 70px;
}

/* Positions */
.corner.tl {
  top: 0;
  left: 0;
}

.corner.tr {
  top: 0;
  right: 0;
}

.corner.bl {
  bottom: 0;
  left: 0;
}

.corner.br {
  bottom: 0;
  right: 0;
}

/* Camera button */
.camera-btn {
  width: 86px;
  height: 86px;
  aspect-ratio: 1 / 1;
  background: var(--color-yellow);
  border-radius: 50%;
  border: 6px solid var(--color-orange);
  margin-top: 16px;

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

  cursor: pointer;

  /* 🔥 reset button defaults */
  padding: 0;
  outline: none;
}

/* remove default button focus outline (optional) */
.camera-btn:focus {
  outline: none;
}

/* click effect (nice UX) */
.camera-btn:active {
  transform: scale(0.95);
}

.camera-btn img {
  width: 36px;
  height: auto;
}

/* SCAN POPUP */

/* ===== POPUP OVERLAY ===== */
.scan-popup {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  overflow: hidden;
}

/* Rays effect */
.popup-rays {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 1;
  z-index: 0;
}

/* ===== CARD ===== */
.popup-card {
  position: relative;
  width: 85%;
  max-width: 240px;
  background: var(--color-green);
  border: 1px solid #000;
  padding: 6px;
  z-index: 2;
}

/* ===== INNER BOX ===== */
.popup-inner {
  background: #f6ebc2;
  border: 1px solid #000;
  border-radius: 20px;
  padding: 16px;
  text-align: center;
}

/* ====== REUSABLE POPUP CLOSE BUTTON ====== */
.howtp-close-btn {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 30px;
  height: 30px;
  background: #ff510d;
  border: 1px solid #000000;
  border-radius: 0;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.howtp-close-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ====== POPUP CLOSE ANIMATION ====== */

@keyframes howtp-fadeup {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-20px);
    opacity: 0;
  }
}

.howtp-popup-hiding {
  animation: howtp-fadeup 0.6s ease forwards;
}

/* TEXT */
.popup-text {
  font-size: 14px;
  line-height: 1.2;
  font-weight: var(--fw-bold);
  margin-bottom: 10px;
}

.popup-text span {
  font-weight: var(--fw-reg);
}

/* IMAGE PLACEHOLDER */
.popup-image {
  width: 100%;
  height: 150px;
  background: #d9d9d9;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ===== STAR ===== */
.popup-star {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
}

/* ===== BUTTON ===== */
.popup-btn {
  position: absolute;
  bottom: -27px;
  left: 50%;
  transform: translateX(-50%);
}

.popup-btn:active {
  transform: translateX(-50%) scale(0.96);
}

.popup-btn:hover {
  transform: translateX(-50%) scale(1.01);
}

/*=============== SCAN SCREEN END ===============*/

/* ================= SCAN LEVEL 1 START ================= */
.biscuit-scan-level1-page .frame-green-corners {
  padding: 16px 16px;
}

.biscuit-scan-level1-page .camera-btn {
  margin-top: 4px;
}

.question-icon {
  width: 20px;
  height: 20px;
  margin-left: 4px;
}

.get-help-foot {
  z-index: 2;
}

.get-help-foot h3,
.get-help-foot h3 a {
  font-size: 16px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
  color: var(--color-black);
  margin-top: 0;
  margin-bottom: 0;
  text-decoration: none;
}

.get-help-foot.frame-footer {
  padding-bottom: 3px;
}

.get-help-foot .frame-footer-pill {
  width: 112px;
  padding: 4px 12px 2px 12px;
  justify-content: center;
}

.get-help-foot .frame-footer-terms {
  margin-top: 3px;
}

/* Error Screen Popup */
.biscuit-error-box {
  width: 80%;
}

.bis-error-scroll-inner {
  padding: 10px;
  text-align: center;
  position: relative;
}

.bis-error-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  margin: 0;
  width: 100%;
}

.submit-fail-error-text p {
  max-width: 216px;
  width: 100%;
  margin: 0 auto;
}

.oops-icon {
  width: 75px;
  height: auto;
  margin-bottom: 16px;
}

.bis-error-text p {
  font-size: 14px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
}

.bis-error-scroll-footer {
  background: transparent;
  border: none;
  padding: 10px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Scan Success - Level 1 Popup */
.scan-success-level-1-box {
  width: 80%;
  animation:
    popupScale 0.6s ease-out,
    floatBox 3s ease-in-out infinite;
}

@keyframes popupScale {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  60% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes floatBox {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.star-rotate {
  animation: rotateStar 6s linear infinite;
}

@keyframes rotateStar {
  0% {
    transform: scale(1) rotate(0deg);
  }

  100% {
    transform: scale(1) rotate(360deg);
  }
}

.scan-success-level-1-box-inner img.orange-star-bg {
  animation: starPop 0.6s ease-out;
}

@keyframes starPop {
  0% {
    transform: scale(0) rotate(-10deg);
  }

  60% {
    transform: scale(1.1) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.scan-success-level-1-box-inner {
  padding: 10px;
  text-align: center;
  position: relative;
}

.scan-success-level-1-box-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  margin: 0;
  width: 100%;
}

.cashback-icon {
  width: 135px;
  height: auto;
  padding: 0;
  margin-bottom: 6px;

  animation:
    rewardPop 0.5s ease-out,
    glowPulse 0.6s ease-out;
}

@keyframes rewardPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  60% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

@keyframes glowPulse {
  0% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.4);
  }

  100% {
    filter: brightness(1);
  }
}

/* THIN SHINE LINE */
.cashback-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

/* PERFECT SHINE LINE */
.cashback-wrapper::after {
  content: "";
  position: absolute;

  width: 150%;
  height: 5px;

  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.9) 52%, rgba(255, 255, 255, 0) 100%);

  top: -40%;
  left: -120%;

  transform: rotate(25deg);

  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);

  animation: shineLine 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s forwards;
}

@keyframes shineLine {
  0% {
    left: -120%;
    top: -40%;
  }

  100% {
    left: 120%;
    top: 90%;
  }
}

.scan-success-level-1-box-text p {
  font-size: 14px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
  max-width: 165px;
  width: 100%;
  margin: 0 auto;
}

.scan-success-level-1-box-footer {
  background: transparent;
  border: none;
  padding: 10px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ================= SCAN LEVEL 1 END ================= */

/* ================= KURAL SCREEN START ================= */
.kural-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.kural-top {
  width: 100%;
  padding: 12px 16px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.kural-head-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.kural-top .logo-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.logo-head .milk-bikis-logo {
  width: 142px;
}

/* Pill */
.kuran-lang-switch .kuran-lang-switch__pill {
  position: relative;
  width: 60px;
  height: 26px;
  background: #f6ebc2;
  border-radius: 50px;
  z-index: 9999;

  display: flex;
  padding: 0;
  overflow: hidden;
  border: none;          /* 🔥 remove border */
  outline: none;         /* optional: remove focus outline */
  box-shadow: none; 
}

/* Each option = exact half */
.kuran-lang-switch .kuran-lang-switch__option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;

  font-size: 10px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
  transition: color 0.3s ease;
}

/* Colors */
.kuran-lang-switch .kuran-lang-switch__option--tm {
  color: var(--color-black);
}

.kuran-lang-switch .kuran-lang-switch__option--en {
  color: var(--color-white);
}

/* Slider */
.kuran-lang-switch .kuran-lang-switch__slider {
  position: absolute;
  width: 50%;
  height: 100%;
  background: var(--color-orange);
  border-radius: 50px;
  top: 0;
  left: 50%;
  /* default EN */
  transition: all 0.3s ease;
  z-index: 1;
}

/* ACTIVE → TM */
.kuran-lang-switch .kuran-lang-switch__pill.is-tm .kuran-lang-switch__slider {
  left: 0;
}

.kuran-lang-switch .kuran-lang-switch__pill.is-tm .kuran-lang-switch__option--tm {
  color: var(--color-white);
}

.kuran-lang-switch .kuran-lang-switch__pill.is-tm .kuran-lang-switch__option--en {
  color: var(--color-black);
}

.menu-head-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-bar-box {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.user-profile {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

.user-profile .user-icon {
  width: 23px;
  height: 23px;
}

.user-profile p,
.user-profile p a {
  font-size: 12px;
  line-height: 1.2;
  font-weight: var(--fw-bold);
  color: var(--color-black);
  text-decoration: none;
}

.menu-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
}

.menu-bars span {
  display: block;
  width: 22px;
  height: 4px;
  background-color: #f6ebc2;
  border: 1px solid var(--color-black);
  border-radius: 50px;
}

.kural-head-box {
  position: relative;
}

.text-kural-heading {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;

  width: 100%;
  padding: 10px;
}

.kural-head-text {
  width: 185px;
  margin: 0 auto 8px;
}

.text-kural-heading p {
  font-size: 8px;
  line-height: 1.2;
  font-weight: var(--fw-semi-bold);
}

.biscuit-element-1 {
  position: absolute;
  top: -10px;
  right: 16px;
}

.biscuit-element-2 {
  position: absolute;
  bottom: 0;
  left: 0;
}

.biscuit-element-1 img {
  width: 48px;
}

.biscuit-element-2 img {
  width: 60px;
}

/* SECTION */
.kural-section {
  width: 100%;
  text-align: center;
  padding: 0 4px;
}

/* WRAPPER (for proper shadow offset) */
.kural-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 36px;
  width: 100%;
}

/* ORANGE BACK CARD */
.kural-wrapper.orange {
  border: 1px solid #FF510D;
  border-radius: 8px;
}

/* MAIN CARD */
.kural-card {
  position: relative;
  background: #e6d8a8;
  border-radius: 8px;
  padding: 26px 16px;
  width: 100%;
  max-width: 100%;
  z-index: 2;
}

/* TITLE */
.kural-title {
  font-family: "akhand-tamil", sans-serif;
  font-size: 34px;
  line-height: 1.2;
  font-weight: var(--fw-bold);
  margin-bottom: 24px;
  margin-top: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* STAR */
.kural-title .star {
  margin-top: -4px;
}

.kural-title .star img {
  width: 18px;
}

/* LINES */
.kural-lines {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* LINE GROUP */
.line-group {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

/* LINE */
.line {
  width: 56px;
  height: 1px;
  background: var(--color-orange);
}

/* WORD */
.word {
  width: 46px;
  font-size: 10px;
  border-bottom: 1px solid var(--color-orange);
  padding: 2px;
  text-align: center;
}

/* SLASH */
.slash img {
  width: 6px;
}

.kural-bottom {
  width: 100%;
}

.kural-steps {
  width: 100%;
  background-color: #80cfe8;
  border-top: 1px solid var(--color-black);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;

  padding: 6px 16px;
  font-weight: var(--fw-semi-bold);
  font-size: 8px;
  color: var(--color-black);
  text-transform: uppercase;
}

/* Arrow Image Styling */
.arrow-img {
  width: auto;
  height: 8px;
}

.scan-submit-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

/* .kural-section .btn-next {
  width: 127px;
  min-width: 127px;
  height: 45px;
  padding: 10px 14px;
} */

.kural-section .btn-next {
  width: 120px;
  min-width: 120px;
  height: 36px;
  padding: 10px 10px;
}

.kural-section .btn-next span {
  font-size: 16px;
  line-height: 1.2;
}

.scan-submit-btns .btn-next span {
  font-size: 14px;
}

/* Kural 2 */
.kural-second .kural-top {
  gap: 6px;
}

.kural-second .kural-wrapper {
  margin-bottom: 12px;
}

/* .kural-second .btn-next {
  margin-top: 4px;
} */

/* GREEN BACK CARD */
.kural-wrapper.green {
  border: 1px solid #00A25A;
  border-radius: 8px;
}

.kural-second .kural-card {
  padding: 16px 16px;
}

.kural-second .kural-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.kural-second .scan-submit-btns {
  margin-top: 0px;
  flex-wrap: wrap;
  gap: 6px;
}

/* Kural 3 */
.kural-third .kural-section {
  width: 100%;
}

.kural-third .kural-top {
  gap: 6px;
}

.kural-third .kural-wrapper {
  margin-bottom: 10px;
}

.kural-third .btn-next {
  margin-top: 10px;
}

/* BLUE BACK CARD */
.kural-wrapper.blue {
  border: 1px solid #232FB3;
  border-radius: 8px;
}

.kural-third .kural-card {
  padding: 8px;
}

.kural-third .kural-title {
  font-size: 18px;
  margin-bottom: 6px;
  gap: 4px;
}

.kural-third .kural-title .star img {
  width: 12px;
}

.kural-third .kural-lines {
  gap: 6px;
}

.kural-third .slash img {
  width: 6px;
}

.kural-third .word {
  font-size: 8px;
}

/* How to Play Popup Start */
.how-to-play-popup .popup-inner {
  padding: 24px 20px;
}

.how-top-biscuit {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
}

.how-to-text {
  width: 100%;
}

.how-to-text img {
  width: 170px;
  margin: 18px auto 14px;
}

.level-box {
  padding: 5px;
  text-align: center;
  background-color: var(--color-yellow);
  border: 1px solid var(--color-black);
  width: 65px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 2px;

  font-size: 12px;
  line-height: 1;
  font-weight: var(--fw-bold);
}

.how-level-con {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.how-level-con p {
  font-size: 12px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
  margin-bottom: 14px;
}

/* How to Play Popup End */

/* Select Kural Popup Start */
/* Wrapper */
.kural-select-ui {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

/* Each option */
.kural-select-ui__option {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

/* Hide default radio */
.kural-select-ui__input {
  display: none;
}

/* Custom box */
.kural-select-ui__box {
  width: 26px;
  height: 26px;
  background: #55ADC9;
  border: 1px solid var(--color-black);
  border-radius: 8px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Checked state */
.kural-select-ui__input:checked+.kural-select-ui__box {
  background: #ffc100;
  transform: scale(1.05);
}

/* Tick */
.kural-select-ui__input:checked+.kural-select-ui__box::after {
  content: "";
  width: 6px;
  height: 12px;
  border: solid var(--color-black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: block;
}

/* Text */
.kural-select-ui__text {
  font-size: 14px;
  line-height: 1.2;
  font-weight: var(--fw-bold);
  color: var(--color-black);
}

.select-kural-popup .popup-inner {
  padding: 20px 16px;
}

.select-kural-popup .popup-btn {
  position: absolute;
  bottom: -66px;
  left: 50%;
  transform: translateX(-50%);
}

/* Select Kural Popup End */

/* ================= KURAL SCREEN END ================= */

/* ================= RECORD VIDEO LEVEL 2 START ================= */
.record-video-level2-page .frame-green-corners {
  padding: 16px 16px;
}

.record-video-level2-page .camera-btn {
  margin-top: 0px;
}

.record-video-level2-page .video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 27px;
}

.cong-img {
  width: 140px;
  margin: 18px auto;
}

.cong-subtext {
  font-size: 14px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
  margin-top: 0;
  margin-bottom: 36px;
}

/* ================= RECORD VIDEO LEVEL 2 END ================= */

/* ================= REVIEW VIDEO LEVEL 2 START ================= */
.review-video-level2-page .frame-green-corners {
  padding: 16px 16px;
}

.review-video-level2-page .camera-btn {
  margin-top: 0px;
}

.review-video-level2-page .scan-text {
  margin-top: 4px;
}

.review-video-level2-page .camera-container {
  gap: 18px;
}

.review-video-level2-page .video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 27px;
}

.review-video-level2-page .scanner-box {
  height: auto;
}

.review-video-frame {
  max-width: 232px;
  margin: 0 auto;
}

.review-submit-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.review-submit-btns .btn-next {
  padding: 4px 10px;
  max-width: 114px;
  min-width: 114px;
  height: 40px;
}

.review-submit-btns .btn-next span {
  font-size: 17px;
}

/* ================= REVIEW VIDEO LEVEL 2 END ================= */

/* ================= STAY TUNED LEVEL 2 START ================= */
.submit-success-popup .popup-card {
  padding: 4px;
}

.submit-success-popup .popup-inner {
  border-radius: 0;
}

.corner-elements-success .success-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--color-orange);
  transform: rotate(45deg);
  z-index: 3;
}

.success-corner.tl {
  top: -6px;
  left: -6px;
}

.success-corner.tr {
  top: -6px;
  right: -6px;
}

.success-corner.bl {
  bottom: -6px;
  left: -6px;
}

.success-corner.br {
  bottom: -6px;
  right: -6px;
}

.submit-success-popup .popup-inner img.stay-tuned-img {
  width: 125px;
  margin: 0 auto 14px;
}

.submit-success-popup .popup-inner p {
  font-size: 12px;
  line-height: 1.2;
  font-weight: var(--fw-reg);
}

.submit-success-popup .popup-btn {
  bottom: -76px;
}

/* ================= STAY TUNED LEVEL 2 END ================= */

/* ================= SUBMIT SUCCESS LEVEL 2 START ================= */
.submit-success-card {
  position: relative;
  width: 85%;
  max-width: 240px;
  background: transparent;
  border: none;
  padding: 6px;
  z-index: 2;
  animation:
    popupScale 0.6s ease-out,
    floatBox 3s ease-in-out infinite;
}

.submit-success-inner {
  width: 100%;
  text-align: center;
  position: relative;
}

.submit-success-bg {
  animation: starPop 0.6s ease-out;
}

.submit-success-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.submit-success-content img.entry-successful {
  width: 156px;
  margin: 0 auto;
  padding: 0;
  animation:
    rewardPop 0.5s ease-out,
    glowPulse 0.6s ease-out;
}

/* THIN SHINE LINE */
.submit-success-content .entry-img-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

/* PERFECT SHINE LINE */
.submit-success-content .entry-img-wrapper::after {
  content: "";
  position: absolute;

  width: 150%;
  height: 5px;

  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.9) 52%, rgba(255, 255, 255, 0) 100%);

  bottom: 0%;
  left: -120%;

  transform: rotate(25deg);

  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);

  animation: shineLine2 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s forwards;
}

@keyframes shineLine2 {
  0% {
    left: -120%;
    bottom: -40%;
  }

  100% {
    left: 120%;
    bottom: 90%;
  }
}

.submit-success-inner .popup-btn {
  bottom: -76px;
}

/* ================= SUBMIT SUCCESS LEVEL 2 END ================= */

/* LOADING START */
.frame-canvas.orange-bg {
  background-color: var(--color-orange);
}

/* LOADING END */

/* ================= SCAN SUCCESSFUL START ================= */
.rot-star-ele {
  max-width: 200px;
  width: 100%;
  margin: 0 auto;
}

/* ================= SCAN SUCCESSFUL END ================= */

/*=============== MENU PAGE START ===============*/
.menu-popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.menu-popup-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: calc(100% - 48px);
}

.menu-popup-header {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 16px;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--color-black);
  border-left: 1px solid var(--color-black);
  border-right: 1px solid var(--color-black);
}

.menu-popup-header .howtp-close-btn {
  top: -1px;
  left: -1px;
}

.menu-popup-icon {
  width: 156px;
  height: auto;
}

.menu-popup-close {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--color-orange);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--color-white);
  padding: 0;
}

.menu-popup-body-wrapper {
  background-color: var(--color-orange);
  padding: 20px;
  border: 1px solid var(--color-black);
}

.menu-popup-body {
  padding: 20px 30px;
  background-color: #f6ebc2;
  border-radius: 16px;
  border: 1px solid black;
}

.menu-popup-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-popup-item {
  display: flex;
  align-items: center;
  padding: 22px 0;
  gap: 14px;
}

.menu-item-number {
  font-family: var(--secondary-font);
  font-weight: var(--fw-bolder);
  font-size: 30px;
  color: var(--color-black);
}

.menu-popup-item img {
  width: auto;
  height: 28px;
  object-fit: contain;
}

.menu-item-text {
  font-weight: var(--fw-semi-bold);
  color: var(--color-black);
  font-size: 20px;
  line-height: 1.2;
}

.menu-popup-body-wrapper .menu-btn {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
}

/*=============== MENU PAGE END ===============*/

/*=============== KP RWD SCREEN START ===============*/

/* Make layout vertical correct */
.rwd-screen .kural-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* CENTER REWARDS */
.kp-rwd-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTENT WIDTH CONTROL */
.kp-rwd-content-box {
  width: 100%;
}

/* HEADER */
.kp-rwd-header {
  background-color: var(--color-dark-blue);
  padding: 16px;
  text-align: center;
  border-top: 1px solid var(--color-black);
  border-bottom: 1px solid var(--color-black);
}

.kp-rwd-icon {
  width: auto;
  height: 36px;
}

/* BODY */
.kp-rwd-body-wrap {
  background-color: var(--color-orange);
  padding: 16px;
  position: relative;
}

.kp-rwd-body {
  background-color: #f6ebc2;
  border-radius: 16px;
  border: 1px solid #000;
  padding: 16px;
  text-align: center;
}

/* CONTENT */
.kp-rwd-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kp-rwd-badge {
  background: #FFC100;
  border: 1px solid var(--color-black);
  font-weight: var(--fw-bold);
  font-size: 14px;
  padding: 4px 12px;
  margin-bottom: 12px;
  display: inline-block;
}

.kp-rwd-item p {
  font-size: 12px;
  text-align: left;
}

/* BUTTON */
.kp-rwd-btn {
  font-family: var(--body-font-primary);
  display: block;
  margin: 30px auto 0;
  background: url(../images/action-button-bg.png) center / 100% 100% no-repeat;
  border: none;
  padding: 14px 16px;
  max-width: 128px;
  width: 100%;
  min-width: 128px;
  height: 45px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0) scale(1);
  text-decoration: none;
  text-align: center;
  line-height: 1;
}

/* Optional hover (very subtle) */
.kp-rwd-btn:hover {
  transform: translateY(-1px) scale(1.01);
}

/* CLICK / PRESS */
.kp-rwd-btn:active {
  transform: translateY(2px) scale(0.96);
}

/* TEXT */
.kp-rwd-btn span {
  font-size: 18px;
  line-height: 1;
  font-weight: var(--fw-bold);
  color: var(--color-black);
  position: relative;
  z-index: 1;

  /* tiny press feel on text also */
  transition: transform 0.2s ease;
}

.kp-rwd-btn:active span {
  transform: scale(0.98);
}

/* KEEP BOTTOM ALWAYS BELOW */
.rwd-screen .kural-bottom {
  margin-top: auto;
}

/*=============== KP RWD SCREEN END ===============*/

/*=============== SCROLLBOX SCREEN START ===============*/
.kp-scrollbox {
  position: relative;
  background: #F6EBC2;
  border: 1px solid #000000;
  border-radius: 16px;
  padding: 16px;
  height: 300px;
  overflow: hidden;
  max-width: 400px;
  margin: auto;
}

/* CONTENT AREA */
.kp-scrollbox__content {
  height: 100%;
  overflow-y: auto;
  padding-right: 10px;
  -webkit-overflow-scrolling: touch;
}

/* Hide native scrollbar */
.kp-scrollbox__content::-webkit-scrollbar {
  display: none;
}

.kp-scrollbox__content {
  scrollbar-width: none;
}

/* SCROLLBAR TRACK */
.kp-scrollbox__track {
  position: absolute;
  top: 20px;
  right: 12px;
  width: 4px;
  height: calc(100% - 40px);
  background: #FFC100;
  border-radius: 10px;
  border: 1px solid #000000;
}

/* SCROLLBAR THUMB */
.kp-scrollbox__thumb {
  position: absolute;
  top: 0;
  width: 10px;
  height: 30px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #000;
  left: 50%;
  transform: translateX(-50%);
  transition: top 0.15s ease-out;
}

/* TEXT */
.kp-scrollbox__content h2 {
  font-size: 14px;
  font-weight: var(--fw-bold);
  margin-top: 0;
  margin-bottom: 12px;
}

.kp-scrollbox__content p {
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 10px;
}

/*=============== SCROLLBOX SCREEN END ===============*/

.kural3-btm-btns {
  margin-top: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.kural3-btm-btns .btn-next {
  margin-top: 0;
  width: 138px;
  min-width: 130px;
  height: 42px;
  padding: 10px 10px;
}

/*=============== RESPONSIVE START ===============*/
/* ══════════════════════════════════════════
   DESKTOP FRAME — d-frame-* (ONLY DESKTOP)
══════════════════════════════════════════ */

@media (min-width: 1024px) {
  .main-wrapper {
    justify-content: flex-start;
    align-items: stretch;
  }

  .d-frame-outer {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: var(--color-yellow);
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Corners */
  .d-frame-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--color-orange);
    transform: rotate(45deg);
    z-index: 3;
  }

  .d-frame-corner.tl {
    top: 18px;
    left: 28px;
  }

  .d-frame-corner.tr {
    top: 18px;
    right: 28px;
  }

  .d-frame-corner.bl {
    bottom: 18px;
    left: 28px;
  }

  .d-frame-corner.br {
    bottom: 18px;
    right: 28px;
  }

  /* Borders */
  .d-frame-border-outer {
    flex: 1;
    border: none;
    display: flex;
    position: relative;
  }

  .d-frame-border {
    flex: 1;
    border: 12px solid var(--color-green);
    display: flex;
  }

  .d-frame-border-inner {
    flex: 1;
    border: none;
    position: relative;
  }

  .d-frame-canvas {
    width: 100%;
    height: 100%;
    background: var(--color-blue);
    position: relative;
    overflow: hidden;
  }

  .d-frame-star-bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 1;
    pointer-events: none;
  }

  .d-frame-content {
    position: absolute;
    inset: 0;
    z-index: 2;
  }

  /* Footer */
  .d-frame-footer {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
  }

  .desktop-center {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .desktop-content-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px;
  }

  .desktop-content-box h3 {
    font-size: 31px;
    line-height: 1.2;
    font-weight: var(--fw-med);
    margin-top: 0;
    margin-bottom: 0;
  }

  .desktop-content-box img.desktop-logo {
    width: 100%;
    max-width: 624px;
    height: auto;
  }

  .desktop-qr-box {
    position: relative;
    background: var(--color-green);
    border: 2px solid var(--color-yellow);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }

  .qr-left {
    padding-left: 25px;
  }

  /* TEXT */
  .qr-text {
    color: #f6ebc2;
    font-size: 28px;
    line-height: 1.2;
    font-weight: var(--fw-reg);
    max-width: 320px;
    text-align: left;
  }

  /* QR IMAGE */
  .qr-right img {
    width: 117px;
    height: 117px;
    background: #f6ebc2;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid var(--color-yellow);
  }

  /* CORNER BASE */
  .qr-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--color-yellow);
    z-index: 2;
    transform: rotate(45deg);
  }

  /* TOP LEFT */
  .qr-corner-tl {
    top: -9px;
    left: -9px;
  }

  /* TOP RIGHT */
  .qr-corner-tr {
    top: -9px;
    right: -9px;
  }

  /* BOTTOM LEFT */
  .qr-corner-bl {
    bottom: -9px;
    left: -9px;
  }

  /* BOTTOM RIGHT */
  .qr-corner-br {
    bottom: -9px;
    right: -9px;
  }

  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: flex;
  }
}

@media (max-height: 900px) {
  .desktop-content-box {
    gap: 30px;
  }

  .desktop-content-box h3 {
    font-size: 20px;
  }

  .desktop-content-box img.desktop-logo {
    width: 50%;
    max-width: 50%;
  }

  .qr-left {
    padding-left: 16px;
  }

  .qr-text {
    font-size: 18px;
  }

  .qr-right img {
    width: 80px;
    height: 80px;
  }
}

@media (max-height: 690px) {
  .kural-third .kural-wrapper {
    margin-bottom: 5px;
  }
}

@media (max-height: 670px) {
  .kural-third .kural-head-container {
    gap: 16px;
  }

  .kural-third .kural-card {
    padding: 5px;
  }

  .kural-third .kural-title {
    margin-bottom: 0;
  }

  .kural-third .btn-next {
    margin-top: 0px;
  }
}

@media (max-height: 650px) {
  .signup-title-img {
    max-width: 170px;
  }

  .signup-body {
    padding: 16px 16px 16px;
  }

  .signup-login {
    margin-top: 10px;
  }

  .kural-head-container {
    gap: 16px;
  }

  .kural-second .kural-card {
    padding: 12px 10px;
  }

  .kural-second .kural-title {
    font-size: 20px;
  }

  .kural-steps {
    padding: 4px 12px;
    font-size: 6px;
  }

  .review-submit-btns {
    margin-top: 8px;
  }

  .menu-popup-item {
    padding: 16px 0;
  }

  .kural3-btm-btns .btn-next {
    width: 130px;
    min-width: 130px;
    height: 42px;
  }

  .kp-rwd-header {
    padding: 10px;
  }

  .kp-rwd-icon {
    height: 30px;
  }

  .kp-rwd-btn {
    margin: 16px auto 0;
  }

}

@media (max-height: 620px) {
  .kural-third .kural-top {
    gap: 6px;
  }

  .kural3-btm-btns .btn-next {
    width: 124px;
    min-width: 124px;
    height: 40px;
  }
}

/*=============== RESPONSIVE END ===============*/