* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --orange: #FF5A00;
  --orange2: #FF8C00;
  --yellow: #FFD700;
  --dark: #1C0A00;
  --cream: #FFF8F0;
  --white: #FFFFFF;
  --green: #00A651;
  --red: #D32F2F;
  --muted: #7A4A2A;
}

html,
body {
  height: 100%;
  background: var(--orange);
  font-family: "Noto Sans Devanagari", sans-serif;
  overflow: hidden;
}

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(60px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  overflow-y: auto;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.screen.exit {
  opacity: 0;
  transform: translateX(-60px);
}

.top-band {
  background: var(--orange);
  padding: 1rem 1.2rem 0;
  flex-shrink: 0;
}

.top-band.top-band-transparent { background: transparent; }

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yippee-logo {
  font-family: "Bebas Neue", cursive;
  font-size: 2.8rem;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--dark), -1px -1px 0 rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.itc-badge {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
  line-height: 1.4;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.itc-badge-light { color: rgba(255, 255, 255, 0.8); }

.haat-tag {
  background: var(--yellow);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 2px solid var(--dark);
  margin-top: 0.5rem;
  display: inline-block;
  font-family: "Poppins", sans-serif;
}

.card {
  background: var(--cream);
  border-radius: 28px 28px 0 0;
  flex: 1;
  padding: 2rem 1.5rem 3rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0,
    var(--orange) 12px,
    var(--yellow) 12px,
    var(--yellow) 24px
  );
  border-radius: 28px 28px 0 0;
}

.card-loading {
  border-radius: 28px 28px 0 0;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.step-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 1.8rem;
  justify-content: center;
  padding-top: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #ccc;
  transition: all 0.3s;
}

.dot.done { background: var(--green); border-color: var(--green); }
.dot.active { background: var(--orange); border-color: var(--orange); width: 28px; border-radius: 5px; }

.hero-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange2) 60%, var(--yellow) 100%);
  border-radius: 20px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  margin-bottom: 1.8rem;
  border: 3px solid var(--dark);
  box-shadow: 4px 4px 0 var(--dark);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 18px 18px;
}

.free-pack-label {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  padding: 5px 18px;
  border-radius: 20px;
  border: 2px solid var(--dark);
  box-shadow: 2px 2px 0 var(--dark);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.hero-hindi {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.hero-sub-hindi {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.4rem;
  position: relative;
  z-index: 1;
}

.noodle-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
  animation: wiggle 2s ease-in-out infinite;
}

.field-group { margin-bottom: 1.2rem; }

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.field-label span { color: var(--orange); }

.field-input {
  width: 100%;
  background: #fff;
  border: 2.5px solid #E0C8B0;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  font-size: 1.1rem;
  font-family: "Noto Sans Devanagari", sans-serif;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.field-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.12);
}

.field-input.error {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.field-input::placeholder { color: #BBA090; font-size: 0.95rem; }

.phone-row { display: flex; gap: 8px; }

.country-code {
  background: #fff;
  border: 2.5px solid #E0C8B0;
  border-radius: 14px;
  padding: 0.9rem 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  width: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
}

.err-msg {
  color: var(--red);
  font-size: 0.78rem;
  margin-top: 0.3rem;
  display: none;
}

.err-msg.show { display: block; }
.err-msg.center { text-align: center; }

.age-options { display: flex; gap: 8px; flex-wrap: wrap; }

.age-btn {
  flex: 1;
  min-width: 70px;
  background: #fff;
  border: 2.5px solid #E0C8B0;
  border-radius: 12px;
  padding: 0.7rem 0.4rem;
  font-size: 0.9rem;
  font-family: "Noto Sans Devanagari", sans-serif;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.age-btn.selected {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 3px 0 var(--dark);
  transform: translateY(-2px);
}

.btn-primary {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: 3px solid var(--dark);
  border-radius: 16px;
  padding: 1.1rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: "Noto Sans Devanagari", sans-serif;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--dark);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

.btn-primary.mt-lg { margin-top: 1.5rem; }

.btn-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--dark); }
.btn-primary:disabled { background: #ccc; border-color: #aaa; box-shadow: 2px 2px 0 #aaa; cursor: not-allowed; transform: none; }

.btn-back {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 10px;
  font-family: "Noto Sans Devanagari", sans-serif;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}

.otp-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.otp-header-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.otp-header-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}

.otp-header-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.otp-info-box {
  background: rgba(255, 90, 0, 0.08);
  border: 2px solid rgba(255, 90, 0, 0.2);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.otp-phone-display {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  font-family: "Poppins", sans-serif;
}

.otp-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.btn-edit-mobile {
  margin-top: 0.8rem;
  background: transparent;
  border: 1.5px solid rgba(255, 90, 0, 0.35);
  color: var(--orange);
  border-radius: 12px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: "Noto Sans Devanagari", sans-serif;
  cursor: pointer;
}

.btn-edit-mobile:active { transform: translateY(1px); }

.otp-boxes { display: flex; gap: 10px; justify-content: center; margin: 1.5rem 0; }

.otp-box {
  width: 48px;
  height: 58px;
  background: #fff;
  border: 2.5px solid #E0C8B0;
  border-radius: 12px;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  font-family: "Poppins", sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: var(--orange);
}

.otp-box:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.15); }
.otp-box.filled { border-color: var(--orange); }
.otp-box.error-box { border-color: var(--red); animation: shake 0.4s ease; }

.resend-row { text-align: center; margin-top: 0.5rem; }

.resend-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: "Noto Sans Devanagari", sans-serif;
  text-decoration: underline;
}

.resend-timer { color: var(--muted); font-size: 0.85rem; }

.otp-demo-note {
  background: #FFF3CD;
  border: 1.5px solid #FFD700;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  color: #7A6000;
  text-align: center;
  margin-bottom: 1rem;
}

.hidden { display: none !important; }

.app-toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 460px);
  z-index: 1200;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  border: 2px solid transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-toast.error {
  background: #FFE8E8;
  color: #8A1F1F;
  border-color: #FFB3B3;
}

.app-toast.success {
  background: #E9FFF1;
  color: #14532D;
  border-color: #B7F3CB;
}

.screen-code { background: linear-gradient(160deg, #FF5A00 0%, #FF8C00 100%); }
.screen-code .card { background: var(--cream); }

.confetti-area { text-align: center; padding: 0.5rem 0 1rem; }
.trophy { font-size: 4rem; animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; display: block; }

.congrats-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
  margin: 0.5rem 0 0.2rem;
}

.congrats-sub { color: var(--muted); font-size: 0.9rem; }

.code-display {
  background: var(--dark);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  border: 3px solid var(--yellow);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.code-display::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 8px,
    rgba(255, 215, 0, 0.04) 8px,
    rgba(255, 215, 0, 0.04) 16px
  );
}

.code-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  margin-bottom: 0.5rem;
  display: block;
}

.code-value {
  font-family: "Bebas Neue", cursive;
  font-size: 3.5rem;
  color: var(--yellow);
  letter-spacing: 8px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
  display: block;
}

.code-validity {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Poppins", sans-serif;
  margin-top: 0.4rem;
  position: relative;
  z-index: 1;
  display: block;
}

.user-summary {
  background: #fff;
  border: 2px solid #E0C8B0;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.summary-key {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 0.1rem;
  font-family: "Poppins", sans-serif;
}

.psr-instruction {
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  border: 3px solid var(--dark);
  box-shadow: 4px 4px 0 var(--dark);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.psr-icon { font-size: 2.4rem; flex-shrink: 0; }
.psr-text { color: #fff; }
.psr-title { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.psr-sub { font-size: 0.8rem; opacity: 0.85; margin-top: 0.2rem; }

.pack-visual {
  text-align: center;
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  border-radius: 16px;
  padding: 1.2rem;
  border: 2px solid #FFB300;
  margin-bottom: 1.2rem;
}

.pack-emoji { font-size: 2.5rem; margin-bottom: 0.4rem; }
.pack-title { font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.pack-subtitle { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }

.btn-share {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: 3px solid var(--dark);
  border-radius: 16px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Noto Sans Devanagari", sans-serif;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--dark);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-share:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--dark); }

.meta-note {
  text-align: center;
  font-size: 0.72rem;
  color: #BBA090;
  margin-top: 1rem;
}

.loading-note { font-size: 0.85rem; color: var(--muted); }

.confetti-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
  opacity: 0;
}

.screen-loading { background: var(--orange); }

.screen-loading .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.loading-noodle { font-size: 5rem; animation: spin 1s linear infinite; display: block; }
.loading-text { font-size: 1.2rem; font-weight: 700; color: var(--dark); text-align: center; }
.loading-dots span { animation: blink 1.2s infinite; display: inline-block; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

.loading-bar {
  width: 200px;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  width: 0;
  background: var(--orange);
  border-radius: 4px;
}

.scrollable { overflow-y: auto; -webkit-overflow-scrolling: touch; }

@keyframes wiggle { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes popIn { from { transform: scale(0.2) rotate(-15deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }
@keyframes fillBar { 0% { width: 0; } 100% { width: 100%; } }
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
