/* ──────────────── GLOBAL RESET ──────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

/* body's overflow-x alone doesn't stop this: fixed-position elements
   (ad iframes, anchor ads) are clipped by the ROOT (html) element's
   overflow, not the body's. Without this, a slightly-oversized ad can
   widen the document just enough that mobile browsers auto-zoom the
   whole page out to fit it — and any position:fixed;left:50% popup
   (loading toasts, modals) recenters against that wider width instead
   of the visible screen. */
html {
  overflow-x: hidden;
  width: 100%;
}

/* ──────────────── BODY ──────────────── */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
  transition: all 0.3s ease-in-out;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* Extra safety net specifically for ad units — cap them at the
   viewport width so a temporarily-oversized ad render can never push
   document width past 100vw in the first place. */
ins.adsbygoogle,
.grid-ad-wrapper {
  max-width: 100vw !important;
  overflow: hidden;
}

/* ──────────────── ANCHOR TAG ──────────────── */
a {
  text-decoration: none;
  color: #0056b3;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #003d82;
}

#nav a {
  color: white !important;
  font-weight: 500;
}

#nav a:hover {
  color: yellow !important;
}

main a,
.a,
.subject-section a,
.exam-tips a,
.faq-section a,
.info-banner a {
  color: #0056b3 !important;
  font-weight: 500;
}

main a:hover,
.content-intro a:hover,
.subject-section a:hover,
.exam-tips a:hover,
.faq-section a:hover,
.info-banner a:hover {
  color: #003d82 !important;
  text-decoration: underline;
}

/* ──────────────── SHARE BUTTON ──────────────── */
.cta-section {
  text-align: center;
  margin: 3rem 0;
}

.share-button {
  background: linear-gradient(135deg, #007bff, #6a11cb);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
  transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.share-button i {
  margin-right: 0.5rem;
}

.share-button:hover {
  background: linear-gradient(135deg, #6a11cb, #007bff);
  box-shadow: 0 8px 20px rgba(106, 17, 203, 0.6);
  transform: translateY(-5px);
}

@media screen and (max-width: 1024px) {
  .cta-section { margin: 2.5rem 0; }
  .share-button { padding: 0.8rem 2rem; font-size: 1.1rem; }
}

@media screen and (max-width: 768px) {
  .cta-section { margin: 2rem 0; }
  .share-button { padding: 0.7rem 1.8rem; font-size: 1rem; }
}

@media screen and (max-width: 576px) {
  .cta-section { margin: 1.5rem 0; }
  .share-button { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
}

@media screen and (max-width: 360px) {
  .cta-section { margin: 1rem 0; }
  .share-button { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
}

/* ──────────────── POP-UP ──────────────── */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.popup.show {
  visibility: visible;
  opacity: 1;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.popup-close:hover {
  color: red;
  transform: scale(1.2);
}

h3 {
  color: #0056b3;
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: bold;
}

h3 span {
  font-size: 30px;
  margin-left: 10px;
}

p {
  margin: 15px 0;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
}

p strong {
  color: #0056b3;
}

/* ──────────────── TABLE ──────────────── */
.table-wrapper {
  margin: 2rem auto;
  max-width: 1000px;
  padding: 2rem;
  background: #ffffff;
  border-radius: 15px;
  border: 3px solid rgba(220, 53, 69, 0.6);
  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.2),
    0 0 10px rgba(220, 53, 69, 0.35);
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  position: relative;
  overflow: hidden;
}

.table-wrapper::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 20%, transparent 80%);
  transform: rotate(-45deg);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.table-wrapper:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.table-wrapper:hover::before {
  background: radial-gradient(circle, rgba(0, 123, 255, 0.2) 20%, transparent 80%);
}

.semester-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 1rem;
  z-index: 1;
  position: relative;
}

.semester-table caption {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: left;
  color: #0056b3;
  text-transform: uppercase;
}

.semester-table th,
.semester-table td {
  border: 1px solid #ddd;
  padding: 1.2rem;
  text-align: left;
}

.semester-table th {
  background: linear-gradient(135deg, #0056b3, #003d82);
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.semester-table tbody tr {
  transition: background-color 0.3s ease-in-out;
}

.semester-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.semester-table tbody tr:hover {
  background-color: #e6f7ff;
  cursor: pointer;
  transform: scale(1.01);
}

.semester-table td:nth-child(2) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.semester-table td a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out, transform 0.2s ease;
  text-align: center;
  text-transform: capitalize;
  box-shadow: 0 3px 10px rgba(255, 106, 0, 0.3);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  flex: 0 1 auto;
}

.semester-table td a:hover {
  background: linear-gradient(135deg, #ee0979, #ff6a00);
  box-shadow: 0 5px 15px rgba(238, 9, 121, 0.5);
  transform: translateY(-2px);
}

.semester-table td a:active {
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .table-wrapper { padding: 1.5rem; }
  .semester-table caption { font-size: 1.4rem; }
  .semester-table th,
  .semester-table td { padding: 1rem; }
  .semester-table td a { padding: 0.6rem 1rem; font-size: 0.9rem; }
}

@media (max-width: 768px) {
  .table-wrapper { padding: 1.2rem; }
  .semester-table caption { font-size: 1.2rem; }
  .semester-table th,
  .semester-table td { padding: 0.8rem; }

  .semester-table td:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    padding: 0.8rem;
  }

  .semester-table td a {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 25px;
    flex: 0 1 auto;
    min-width: 70px;
  }
}

@media (max-width: 576px) {
  .table-wrapper { padding: 1rem; }
  .semester-table caption { font-size: 1rem; }
  .semester-table th,
  .semester-table td { padding: 0.6rem; }

  .semester-table td:nth-child(2) {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    padding: 0.6rem;
  }

  .semester-table td a {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 20px;
    flex: 1 1 auto;
    min-width: 60px;
  }
}

@media (max-width: 480px) {
  .table-wrapper { padding: 0.8rem; margin: 1rem auto; }
  .semester-table caption { font-size: 0.95rem; }
  .semester-table th,
  .semester-table td { padding: 0.5rem; font-size: 0.85rem; }

  .semester-table td:nth-child(2) {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem;
    min-height: 36px;
  }

  .semester-table td a {
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 18px;
    flex: 1 1 auto;
    min-width: 50px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .table-wrapper { padding: 0.6rem; margin: 0.8rem auto; border-width: 2px; }
  .semester-table caption { font-size: 0.85rem; margin-bottom: 0.5rem; }
  .semester-table th,
  .semester-table td { padding: 0.4rem; font-size: 0.75rem; }
  .semester-table th { font-size: 0.7rem; }

  .semester-table td:nth-child(2) {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    justify-content: flex-start;
    padding: 0.4rem;
    min-height: 32px;
  }

  .semester-table td a {
    padding: 0.3rem 0.4rem;
    font-size: 0.65rem;
    border-radius: 15px;
    flex: 1 1 auto;
    min-width: 45px;
    height: 24px;
  }
}

/* ──────────────── BLINK ──────────────── */
.blink {
  animation: blink-animation 1.5s infinite;
  color: #1a1a1a;
  font-weight: bold;
  font-size: 1rem;
  transform: translateZ(0);
  will-change: opacity;
}

.blink:not(td) {
  font-size: clamp(16px, 3vw, 36px);
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.7), 0 0 12px rgba(0, 255, 0, 0.5);
}

@keyframes blink-animation {
  50% { opacity: 0; }
}

@keyframes glow {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(0, 255, 0, 0.7),
      0 0 12px rgba(0, 255, 0, 0.5);
  }
  50% {
    text-shadow:
      0 0 20px rgba(0, 255, 0, 0.9),
      0 0 25px rgba(0, 255, 0, 0.7);
  }
}

/* ──────────────── SEMESTER SECTION ──────────────── */
.semester-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
}

.semester-table thead th {
  background-color: #0056b3;
  color: #ffffff;
  padding: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

.semester-table td {
  padding: 12px;
  font-size: 1rem;
  color: #555;
}

.semester-link {
  text-decoration: none;
  color: #0073e6;
  font-weight: bold;
  border: 2px solid #0073e6;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.semester-link:hover {
  background-color: #0073e6;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .semester-section { padding: 15px; margin: 30px auto; }
  .semester-table thead th { font-size: 1.1rem; }
  .semester-table td { padding: 10px; font-size: 0.95rem; }
  .semester-link { padding: 4px 8px; font-size: 0.95rem; }
}

@media (max-width: 768px) {
  .semester-section { padding: 10px; margin: 20px auto; }
  .semester-table thead th { font-size: 1rem; padding: 8px; }
  .semester-table td { padding: 8px; font-size: 0.9rem; }
  .semester-link { padding: 3px 6px; font-size: 0.9rem; }
}

@media (max-width: 576px) {
  .semester-section { padding: 8px; margin: 15px auto; }
  .semester-table thead th { font-size: 0.95rem; padding: 7px; }
  .semester-table td { padding: 6px; font-size: 0.85rem; }
  .semester-link { padding: 3px 5px; font-size: 0.85rem; }
}

@media (max-width: 360px) {
  .semester-section { padding: 5px; margin: 10px auto; }
  .semester-table thead th { font-size: 0.9rem; padding: 6px; }
  .semester-table td { padding: 5px; font-size: 0.8rem; }
  .semester-link { padding: 2px 4px; font-size: 0.8rem; }
}

/* ──────────────── HEADER ──────────────── */
header {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 14px;
  text-align: center;
}

.semester-nav {
  margin-bottom: 14px;
}

.semester-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 500;
}

.semester-nav a:hover {
  text-decoration: underline;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 8px;
}

header p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin: 0 auto 12px;
  max-width: 750px;
}

/* ──────────────── SEARCH ──────────────── */
.search-container-3 {
  max-width: 550px;
  margin: 0 auto;
}

.search-label-3 {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7c3aed;
  margin-bottom: 6px;
}

.search-box-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #c4b5fd;
  transform: translateZ(0);
  isolation: isolate;
  contain: layout style;
}

.search-box-wrapper::before {
  content: "";
  position: absolute;
  width: 220%;
  height: 220%;
  top: -60%;
  left: -60%;
  background: conic-gradient(
    #7c3aed,
    #3b82f6,
    #06b6d4,
    #6366f1,
    #7c3aed
  );
  animation: rotateBorder 3s linear infinite;
  opacity: 0.85;
}

.search-box-wrapper::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #fff;
  border-radius: 7px;
  z-index: 1;
}

.search-input-3 {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: none;
  outline: none;
  background: transparent;
}

@keyframes rotateBorder {
  100% { transform: rotate(360deg); }
}

.search-box-wrapper:focus-within::before {
  animation-duration: 3.2s;
  opacity: 1;
}

.search-count-3 {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #666;
  z-index: 2;
}

.no-results-3 {
  font-size: 0.8rem;
  color: #c2410c;
  margin-top: 8px;
  display: none;
}

.no-results-3.active {
  display: block;
}

@media (max-width: 768px) {
  header { max-width: 100%; margin: 16px auto; }
  header h1 { font-size: 1.35rem; }
  header p { font-size: 0.9rem; }
}

@media (max-width: 576px) {
  header { margin: 12px auto; padding: 0 10px; }

  header h1 { font-size: 1.15rem; line-height: 1.25; }

  header p {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .search-input-3 { font-size: 0.9rem; padding: 9px 10px; }
  .search-label-3 { font-size: 0.8rem; }
}

@media (max-width: 360px) {
  header h1 { font-size: 1rem; }
  header p { font-size: 0.8rem; }
}

/* ──────────────── DISCLAIMER ──────────────── */
.disclaimer {
  font-size: 1rem;
  color: #555;
  text-align: center;
  margin: 20px auto;
  max-width: 90%;
  line-height: 1.5;
}

@media screen and (max-width: 768px) { .disclaimer { font-size: 0.9rem; margin: 15px auto; } }
@media screen and (max-width: 576px) { .disclaimer { font-size: 0.85rem; margin: 10px auto; line-height: 1.4; } }
@media screen and (max-width: 480px) { .disclaimer { font-size: 0.8rem; margin: 8px auto; max-width: 95%; line-height: 1.3; } }
@media screen and (max-width: 360px) { .disclaimer { font-size: 0.75rem; margin: 5px auto; max-width: 100%; line-height: 1.2; } }

/* ──────────────── INFO BANNER ──────────────── */
.info-banner {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 10px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.notice-banner {
  background: #0f172a;
  color: #ffffff;
}

.notice-banner a {
  color: #38bdf8;
  text-decoration: underline;
}

.request-banner {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: #ffffff;
}

.request-banner a {
  color: #fde047;
  font-weight: 700;
  text-decoration: underline;
}

.note-text {
  font-weight: 400;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .info-banner { font-size: 13px; padding: 8px 10px; }
}

/* ──────────────── CONTENT INTRO & SUBJECT INTRO ──────────────── */

.content-intro {
  padding: 0.4rem 1rem;
  margin: 0.5rem auto 0.25rem auto;
  border: 1px solid #007bff;
  border-left: 3px solid rgb(255, 0, 238);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(11, 110, 246, 0.1);
  position: relative;
  overflow: visible !important;
  max-width: 900px;
  transition: all 0.3s ease;
  line-height: 1.5;
  max-height: none !important;
}

.content-intro:hover {
  border-left-color: #0056b3;
  border-color: #0b6ef6;
  box-shadow: 0 4px 12px rgba(11, 110, 246, 0.2);
  transform: translateX(5px);
}

.content-intro p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444444;
  font-weight: 500;
}

.content-intro p:first-child {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}

.content-intro p:last-child {
  margin-bottom: 0;
}

/* Wrapper controls the collapse/expand */
.collapsible-content {
  max-height: 4.5em;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content.expanded {
  max-height: none;
}

/* Read More / Read Less button */
.toggle-btn {
  display: inline-block;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0.2rem 0.9rem;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: linear-gradient(135deg, #0056b3, #003d82);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.4);
  transform: translateY(-2px);
}

.toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.toggle-btn::after {
  content: " ▼";
  font-size: 0.7rem;
  margin-left: 5px;
  opacity: 0.8;
}

.toggle-btn.expanded::after {
  content: " ▲";
}

/* ──────────────── SUBJECT SECTION ──────────────── */

.subject-section {
  margin: 2rem auto;
  padding: 0;
  transition: all 0.3s ease;
  max-width: 900px;
}

.subject-section:hover {
  transform: translateY(-2px);
}

.subject-intro-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.subject-collapsible-content {
  max-height: 4.5em;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.subject-collapsible-content.expanded {
  max-height: none;
}

.subject-intro {
  padding: 0.4rem 1rem;
  margin: 0.5rem auto 0.25rem auto;
  border: 1px solid #0b6ef6;
  border-left: 3px solid #0b6ef6;
  border-radius: 6px;
  background: transparent;
  box-shadow: 0 2px 4px rgba(11, 110, 246, 0.08);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444444;
  font-weight: 500;
  transition: all 0.3s ease;
}

.subject-intro:hover {
  border-left-color: #0056b3;
  border-color: #0056b3;
  box-shadow: 0 3px 8px rgba(11, 110, 246, 0.12);
  transform: translateX(3px);
}

.subject-toggle-btn {
  margin-top: 0.3rem;
  margin-bottom: 0.25rem;
}

/* ──────────────── EXAM TIPS ──────────────── */

.exam-tips {
  padding: 2.5rem 1.5rem;
  margin: 3rem auto;
  border: 2px solid #28a745;
  border-left: 6px solid #28a745;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
  position: relative;
  overflow: visible;
  max-width: 1000px;
  transition: all 0.3s ease;
}

.exam-tips:hover {
  border-left-color: #1e7e34;
  border-color: #28a745;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.exam-tips h2 {
  color: #1a4d2e;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  text-shadow: none;
  letter-spacing: 0px;
}

.exam-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

.exam-tips li {
  margin: 1.2rem 0;
  padding: 1.2rem;
  padding-left: 2rem;
  border-radius: 0;
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
  box-shadow: none;
  transition: all 0.3s ease;
  border-left: 3px solid #ffc107;
  position: relative;
}

.exam-tips li::before {
  content: '•';
  position: absolute;
  left: 0.8rem;
  top: 1.2rem;
  color: #ffc107;
  font-weight: bold;
  font-size: 1.2rem;
}

.exam-tips li:hover {
  transform: translateX(5px);
  border-left-color: #ff9800;
}

.exam-tips strong {
  color: #1a4d2e;
  font-weight: 700;
}

/* Semantic fix: Google ads inside exam-tips list */
.exam-tips ul > div,
.exam-tips ul > ins {
  display: contents !important;
  order: 100;
}

/* ──────────────── TAILWIND UTILITY CLASSES ──────────────── */

.block        { display: block; }
.hidden       { display: none; }
.relative     { position: relative; }
.absolute     { position: absolute; }
.w-full       { width: 100%; }
.right-4      { right: 1rem; }

.mt-1         { margin-top: 0.25rem; }
.mt-3         { margin-top: 0.75rem; }
.mt-4         { margin-top: 1rem; }
.mt-6         { margin-top: 1.5rem; }
.mb-2         { margin-bottom: 0.5rem; }
.mb-4         { margin-bottom: 1rem; }

.p-4          { padding: 1rem; }
.pl-6         { padding-left: 1.5rem; }

.space-y-3 > * + * { margin-top: 0.75rem; }

.text-xs      { font-size: 0.75rem; line-height: 1rem; }
.text-sm      { font-size: 0.875rem; line-height: 1.25rem; }
.text-base    { font-size: 1rem; line-height: 1.5rem; }
.text-2xl     { font-size: 1.5rem; line-height: 2rem; }

.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }

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

.text-gray-500   { color: #6b7280; }
.text-gray-700   { color: #444444; }
.text-gray-900   { color: #444444; }
.text-blue-600   { color: #2563eb; }

.bg-gray-100       { background-color: #f3f4f6; }
.border-2          { border-width: 2px; border-style: solid; }
.rounded-lg        { border-radius: 0.5rem; }

.hover\:underline:hover         { text-decoration: underline; }
.focus\:outline-none:focus      { outline: none; }
.focus\:ring-2:focus            { box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25); }

/* ──────────────── STRONG TAG ──────────────── */

strong {
  color: #0056b3;
  font-weight: 700;
}

/* Override for containers that set their own text color */
.text-gray-700 strong,
.text-gray-900 strong {
  color: #0056b3 !important;
  font-weight: 700;
}

/* ──────────────── CONTRIBUTE LINK ──────────────── */

.contrib-link {
  color: #0056b3 !important;
  font-weight: 600;
  text-decoration: underline;
  background-color: transparent !important;
  transition: all 0.3s ease;
}

.contrib-link:hover {
  color: #003d82;
  text-decoration-thickness: 2px;
}

/* Underline anchors except nav, buttons, and special sections */
a:not(nav a):not(#nav a):not(.profile-menu a):not(#profileMenu a):not(.semester-link):not(.social-links a):not(.about-page a):not(#auth a):not(.btn a):not(button a) {
  text-decoration: underline;
}

/* ──────────────── ICON STYLES ──────────────── */

.fas, .fab {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  vertical-align: middle;
}

.fa-user-circle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'%3E%3Cpath fill='%23fbbf24' d='M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z'/%3E%3C/svg%3E");
}

.fa-chevron-down {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='currentColor' d='M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-153.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z'/%3E%3C/svg%3E");
}

.fa-sign-in-alt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z'/%3E%3C/svg%3E");
}

.fa-share {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='currentColor' d='M576 240c0 9-3 17-8 24L400 416c-15 15-40 4-40-17v-80c-154 0-201 90-213 176-2 15-17 22-29 15C93 497 0 407 0 304 0 189 95 82 240 64V-48c0-21 25-32 40-17l168 168c5 7 8 15 8 23z'/%3E%3C/svg%3E");
}

.fa-envelope {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Crect x='48' y='64' width='416' height='384' rx='24' ry='24' fill='none' stroke='%231e3a8a' stroke-width='64' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M464 128L256 288 48 128' fill='none' stroke='%231e3a8a' stroke-width='64' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ──────────────── STATS SECTION ──────────────── */

.stats-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  padding: 60px 20px;
  margin: 50px 0;
  border-radius: 12px;
  text-align: center;
}

.stats-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.stats-section .subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 45px;
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: white;
  padding: 35px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e0e6ed;
  animation: fadeInUp 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Merged: .stat-icon had two separate rule blocks */
.stat-icon {
  font-size: 40px;
  margin-bottom: 15px;
  animation: bounce 2s infinite;
}

.stat-card:nth-child(1) .stat-icon { animation-delay: 0s; }
.stat-card:nth-child(2) .stat-icon { animation-delay: 0.2s; }
.stat-card:nth-child(3) .stat-icon { animation-delay: 0.4s; }

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: #3b82f6;
  margin: 15px 0;
  letter-spacing: -1px;
}

.stat-card:nth-child(2) .stat-number { color: #047857; }
.stat-card:nth-child(3) .stat-number { color: #b45309; }

.stat-label {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.stat-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* ──────────────── PREVIEW MODAL ──────────────── */

#previewModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.preview-header {
  padding: 18px 26px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: #ffffff;
}

/* ──────────────── COURSE GRID ──────────────── */

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  padding: 20px;
  max-width: 1100px;
  margin: auto;
}

.course-grid .card-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}

.course-grid .card-link h3,
.course-grid .card-link p {
  text-decoration: none;
  color: inherit;
}

.course-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  border: 2px solid transparent;
}

.course-grid .card-link:hover .course-card {
  transform: translateY(-5px);
  border-color: #1a73e8;
}

.course-card h3 {
  font-size: 1.1rem;
  line-height: 1.2;
  white-space: nowrap;
  margin-bottom: 10px;
}

.course-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}

.action-btn {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.course-grid .card-link:hover .action-btn {
  background: linear-gradient(135deg, #1e3a8a, #172554);
  transform: scale(1.05);
}

.disabled-card {
  opacity: 0.6;
  cursor: not-allowed;
}

.disabled-btn {
  background: #ccc;
  color: #4a4a4a;
  box-shadow: none;
}

/* Hero button */
.assignment-btn {
  background: linear-gradient(to right, #1d4ed8, #1e40af);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 15px;
}

/* ──────────────── AD OVERFLOW FIX ──────────────── */
/* overflow:hidden removed — it was clipping multiplex/autorelaxed ads
   before Google's resize script could set their final dynamic height. */

ins.adsbygoogle,
[data-ad-slot],
[id^="google_ads"],
.adsbygoogle {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.grid-ad-wrapper {
  width: 100%;
  margin: 25px 0 32px 0;
  text-align: center;
  min-height: 280px;
}

.grid-ad-wrapper ins {
  display: block !important;
  max-width: 100%;
}

/* ──────────────── ANIMATIONS ──────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ──────────────── RESPONSIVE ──────────────── */

/* Large Desktop 1440px+ */
@media (min-width: 1440px) {
  .content-intro {
    max-width: 1000px;
    padding: 0.5rem 1.2rem;
  }

  .content-intro p         { font-size: 1rem; }
  .content-intro p:first-child { font-size: 1.1rem; }

  .subject-section {
    max-width: 1000px;
    margin: 2.5rem auto;
  }

  .subject-intro {
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
  }

  .toggle-btn {
    padding: 0.25rem 1rem;
    font-size: 0.95rem;
  }
}

/* Tablet 1024px */
@media (max-width: 1024px) {
  .content-intro {
    padding: 0.35rem 0.9rem;
    max-width: 95%;
  }

  .content-intro p             { font-size: 0.9rem; }
  .content-intro p:first-child { font-size: 1rem; }

  .subject-section {
    max-width: 95%;
    margin: 1.8rem auto;
  }

  .subject-intro {
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
  }

  .toggle-btn {
    padding: 0.18rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* Mobile 768px */
@media (max-width: 768px) {
  /* Content intro */
  .content-intro {
    padding: 0.3rem 0.8rem;
    margin: 0.4rem auto 0.2rem auto;
    border-left-width: 2px;
  }

  .collapsible-content { max-height: 4.2em; }

  .content-intro p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .content-intro p:first-child {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .toggle-btn {
    margin-top: 0.4rem;
    padding: 0.15rem 0.7rem;
    font-size: 0.8rem;
  }

  /* Subject section */
  .subject-section { margin: 1.5rem auto; }

  .subject-collapsible-content { max-height: 4.2em; }

  .subject-intro {
    padding: 0.3rem 0.8rem;
    margin: 0.4rem auto 0.2rem auto;
    border-left-width: 2px;
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .subject-toggle-btn { margin-top: 0.25rem; }

  /* Stats */
  .stats-section {
    padding: 40px 15px;
    margin: 30px 0;
  }

  .stats-section h2 { font-size: 24px; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-number { font-size: 36px; }
  .stat-label  { font-size: 16px; }

  /* Course grid */
  .course-grid {
    gap: 18px;
    padding: 15px;
  }

  .action-btn {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .course-card h3 { font-size: 1rem; }

  /* Preview modal */

  .preview-header { padding: 16px 20px; }

}

/* Small Mobile 576px */
@media (max-width: 576px) {
  .content-intro {
    padding: 0.25rem 0.7rem;
    margin: 0.3rem auto 0.15rem auto;
    border-radius: 4px;
  }

  .collapsible-content { max-height: 4em; }

  .content-intro p {
    margin: 0.2rem 0;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .content-intro p:first-child {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  .toggle-btn {
    margin-top: 0.35rem;
    padding: 0.12rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 20px;
  }

  .toggle-btn::after {
    font-size: 0.6rem;
    margin-left: 3px;
  }

  .subject-section { margin: 1.2rem auto; }

  .subject-collapsible-content { max-height: 4em; }

  .subject-intro {
    padding: 0.25rem 0.7rem;
    margin: 0.3rem auto 0.15rem auto;
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .subject-toggle-btn { margin-top: 0.2rem; }

  .content-intro:hover,
  .subject-intro:hover { transform: translateX(3px); }
}

/* Extra Small Mobile 480px */
@media (max-width: 480px) {
  .content-intro {
    padding: 0.2rem 0.6rem;
    margin: 0.25rem auto 0.1rem auto;
  }

  .collapsible-content { max-height: 3.8em; }

  .content-intro p {
    margin: 0.15rem 0;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .content-intro p:first-child { font-size: 0.85rem; }

  .toggle-btn {
    margin-top: 0.3rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
  }

  .subject-section { margin: 1rem auto; }

  .subject-collapsible-content { max-height: 3.8em; }

  .subject-intro {
    padding: 0.2rem 0.6rem;
    margin: 0.25rem auto 0.1rem auto;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .subject-toggle-btn { margin-top: 0.15rem; }

  /* Preview */
}

/* Tiny Mobile 360px */
@media (max-width: 360px) {
  .content-intro {
    padding: 0.15rem 0.5rem;
    margin: 0.2rem auto 0.1rem auto;
    border-width: 0.5px;
  }

  .collapsible-content { max-height: 3.5em; }

  .content-intro p {
    margin: 0.1rem 0;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .content-intro p:first-child { font-size: 0.8rem; }

  .toggle-btn {
    margin-top: 0.25rem;
    padding: 0.08rem 0.45rem;
    font-size: 0.65rem;
  }

  .toggle-btn::after {
    font-size: 0.5rem;
    margin-left: 2px;
  }

  .subject-section { margin: 0.8rem auto; }

  .subject-collapsible-content { max-height: 3.5em; }

  .subject-intro {
    padding: 0.15rem 0.5rem;
    margin: 0.2rem auto 0.1rem auto;
    border-width: 0.5px;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .subject-toggle-btn { margin-top: 0.1rem; }

  .content-intro:hover,
  .subject-intro:hover { transform: translateX(2px); }
}

/* =================================================================== */
/* ═══════════════════════════════════════
   UniversityNotes — Welcome Modal
   Theme: #0b6ef6 (primary blue)
═══════════════════════════════════════ */

#welcomeOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

.un-welcome-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  animation: unWmPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes unWmPop {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ── Header ── */
.un-wm-header {
  background: linear-gradient(135deg, #0b6ef6, #0050c8);
  padding: 14px 16px 12px;
  position: relative;
  text-align: center;
}
.un-wm-emoji {
  font-size: 22px;
  margin-bottom: 4px;
  display: block;
}
.un-wm-header h2 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.un-wm-header p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.un-wm-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: visible;
  opacity: 1;
}

/* ── Gift box — horizontal layout to save vertical space ── */
.un-wm-gift {
  background: linear-gradient(135deg, #fff9e6, #fff3cc);
  border: 2px solid #fbbf24;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  margin: 10px 12px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.un-wm-gift-label {
  font-size: 10px;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.un-wm-gift-num {
  font-size: 38px;
  font-weight: 900;
  color: #d97706;
  line-height: 1;
  margin: 0;
}
.un-wm-gift-sub {
  font-size: 12px;
  color: #b45309;
  font-weight: 600;
  margin: 0;
}

/* ── Section label ── */
.un-wm-slabel {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  padding: 0 12px;
  display: block;
}

/* ── Tiers ── */
.un-wm-tiers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 12px 8px;
}
.un-wm-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 8px 10px;
  position: relative;
}
.un-wm-tier.t-green { background: #f0fdf4; border: 1.5px solid #86efac; }
.un-wm-tier.t-blue  { background: #eff6ff; border: 1.5px solid #93c5fd; }
.un-wm-tier.t-best  { background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 2px solid #fb923c; }

.un-wm-tier-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.un-wm-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.un-wm-icon.i-green  { background: #dcfce7; }
.un-wm-icon.i-blue   { background: #dbeafe; }
.un-wm-icon.i-orange { background: #ffedd5; }

.un-wm-tier-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1px;
}
.un-wm-tier-sub {
  font-size: 10.5px;
  color: #6b7280;
  margin: 0;
}
.un-wm-best-badge {
  position: absolute;
  top: -9px;
  right: 8px;
  background: #f97316;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}
.un-wm-pill {
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  visibility: visible;
  opacity: 1;
}
.un-wm-pill strong { font-size: 13px; font-weight: 900; }
.un-wm-pill.p-green  { background: #dcfce7; color: #166534; }
.un-wm-pill.p-blue   { background: #dbeafe; color: #1d4ed8; }
.un-wm-pill.p-orange { background: #ffedd5; color: #c2410c; }

/* ── Process flow ── */
.un-wm-flow {
  margin: 0 12px 8px;
  background: #f0f7ff;
  border-left: 3px solid #0b6ef6;
  border-radius: 0 6px 6px 0;
  padding: 7px 10px;
  font-size: 11.5px;
  color: #1e40af;
  line-height: 1.65;
}

/* ── Rules ── */
.un-wm-rules {
  margin: 0 12px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.un-wm-rule {
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 11px;
  line-height: 1.45;
}
.un-wm-rule.r-allow { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.un-wm-rule.r-deny  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.un-wm-rule-title {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 3px;
}

/* ── Footer buttons ── */
.un-wm-footer {
  display: flex;
  gap: 8px;
  padding: 0 12px 14px;
}
.un-wm-btn-close {
  flex: 1;
  padding: 11px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  background: #f3f4f6;
  border: 2px solid #d1d5db;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  visibility: visible;
  opacity: 1;
}
.un-wm-btn-share {
  flex: 2;
  padding: 11px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0b6ef6, #0050c8);
  border: 2px solid #0050c8;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  visibility: visible;
  opacity: 1;
}
.un-wm-btn-close:hover { background: #e5e7eb; }
.un-wm-btn-share:hover { background: linear-gradient(135deg, #0050c8, #003da0); }

/* ── Very small screens (≤ 360px height like iPhone SE) ── */
@media (max-height: 650px) {
  .un-wm-header       { padding: 10px 16px 9px; }
  .un-wm-emoji        { font-size: 18px; margin-bottom: 2px; }
  .un-wm-header h2    { font-size: 15px; }
  .un-wm-gift         { padding: 6px 12px; margin: 8px 12px 6px; }
  .un-wm-gift-num     { font-size: 30px; }
  .un-wm-tiers        { gap: 5px; margin-bottom: 6px; }
  .un-wm-tier         { padding: 7px 9px; }
  .un-wm-tier-name    { font-size: 12px; }
  .un-wm-tier-sub     { font-size: 10px; }
  .un-wm-icon         { width: 24px; height: 24px; font-size: 13px; }
  .un-wm-flow         { padding: 6px 9px; font-size: 11px; margin-bottom: 6px; }
  .un-wm-rules        { gap: 5px; margin-bottom: 8px; }
  .un-wm-rule         { padding: 6px 7px; font-size: 10.5px; }
  .un-wm-footer       { padding: 0 12px 12px; }
  .un-wm-btn-close,
  .un-wm-btn-share    { padding: 10px 8px; font-size: 12.5px; }
}

@media (max-height: 580px) {
  .un-wm-header h2    { font-size: 14px; }
  .un-wm-header p     { display: none; }
  .un-wm-gift-num     { font-size: 26px; }
  .un-wm-gift-label,
  .un-wm-gift-sub     { font-size: 10px; }
  .un-wm-tiers        { gap: 4px; margin-bottom: 5px; }
  .un-wm-tier         { padding: 6px 8px; }
  .un-wm-flow         { padding: 5px 8px; font-size: 10.5px; margin-bottom: 5px; }
  .un-wm-rules        { margin-bottom: 6px; }
  .un-wm-rule         { padding: 5px 7px; font-size: 10px; }
  .un-wm-footer       { padding: 0 12px 10px; }
}

/* ── Narrow width (≤ 360px) ── */
@media (max-width: 360px) {
  .un-wm-rules        { grid-template-columns: 1fr; }
  .un-wm-gift         { gap: 8px; }
}

/* ── Landscape on small phones ── */
@media (max-height: 500px) and (orientation: landscape) {
  #welcomeOverlay     { align-items: flex-start; padding: 6px; overflow-y: auto; }
  .un-welcome-modal   { border-radius: 12px; }
  .un-wm-header p,
  .un-wm-slabel       { display: none; }
  .un-wm-emoji        { display: none; }
  .un-wm-header       { padding: 8px 16px; }
  .un-wm-gift         { margin: 6px 12px; padding: 5px 12px; }
  .un-wm-gift-num     { font-size: 24px; }
  .un-wm-tiers        { gap: 4px; margin: 0 12px 5px; }
  .un-wm-tier         { padding: 5px 8px; }
  .un-wm-flow         { padding: 5px 8px; font-size: 10px; margin-bottom: 5px; }
  .un-wm-rules        { margin-bottom: 6px; }
  .un-wm-footer       { padding: 0 12px 8px; }
  .un-wm-btn-close,
  .un-wm-btn-share    { padding: 9px 8px; font-size: 12px; }
}

/* ============================================================================================== */

/* ============================================ download limit modal ========================================== */

/* Overlay — full screen, centers modal */

.custom-dl-modal {
    background: white;
    max-width: 380px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: dlPop 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.dl-header {
    padding: 16px 20px 12px;
    background: linear-gradient(135deg, #fff5e6, #fefce8);
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.dl-header h2 {
    margin: 0;
    font-size: 18px;
    color: #b45309;
    line-height: 1.3;
}

.dl-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}

/* ── Body ── */
.dl-body {
    padding: 16px 20px;
    flex-shrink: 0;
}

.dl-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.dl-card {
    background: white;
    padding: 14px 10px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.dl-card.left  { border-left: 5px solid #f59e0b; }
.dl-card.right { border-left: 5px solid #10b981; }

.dl-label {
    font-size: 11.5px;
    color: #6b7280;
    margin-bottom: 5px;
    line-height: 1.3;
}

.dl-num {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.dl-tip {
    background: #f9fafb;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    color: #374151;
    text-align: center;
    line-height: 1.5;
}

/* ── Footer ── */
.dl-footer {
    padding: 12px 16px 16px;
    display: flex;
    gap: 8px;
    background: #f8fafc;
    flex-shrink: 0;
}

.dl-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
}

.dl-btn-close { background: #e2e8f0; color: #334155; }
.dl-btn-earn  { background: #10b981; color: white; }
.dl-btn-buy   { background: #3b82f6; color: white; }

/* ── Animation ── */
@keyframes dlPop {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Desktop / Large screens (≥ 600px) ── */
@media (min-width: 600px) {
    .custom-dl-modal {
        max-width: 400px;
        border-radius: 24px;
    }

    .dl-header { padding: 20px 24px 15px; }
    .dl-header h2 { font-size: 20px; }

    .dl-body { padding: 20px 24px; }
    .dl-stats-grid { gap: 12px; margin-bottom: 16px; }

    .dl-card { padding: 16px 12px; }
    .dl-label { font-size: 12px; }
    .dl-num { font-size: 32px; }

    .dl-tip { font-size: 13.5px; padding: 14px; }

    .dl-footer { padding: 16px 20px 20px; gap: 10px; }
    .dl-btn { padding: 14px 12px; font-size: 14.5px; }
}

/* ── Small phones (≤ 380px) ── */
@media (max-width: 380px) {

    .dl-header { padding: 12px 14px 10px; }
    .dl-header h2 { font-size: 16px; }
    .dl-close-btn { font-size: 21px; top: 8px; right: 10px; }

    .dl-body { padding: 12px 14px; }
    .dl-stats-grid { gap: 8px; margin-bottom: 10px; }

    .dl-card { padding: 11px 8px; border-radius: 10px; }
    .dl-label { font-size: 10.5px; margin-bottom: 4px; }
    .dl-num { font-size: 26px; }

    .dl-tip { font-size: 12px; padding: 10px; border-radius: 10px; }

    .dl-footer { padding: 10px 12px 12px; gap: 7px; }
    .dl-btn { padding: 11px 6px; font-size: 12.5px; border-radius: 10px; }
}

/* ── Very small phones (≤ 320px — e.g. iPhone SE 1st gen) ── */
@media (max-width: 320px) {
    .dl-header h2 { font-size: 14.5px; }
    .dl-num { font-size: 22px; }
    .dl-label { font-size: 10px; }
    .dl-tip { font-size: 11px; padding: 9px; }
    .dl-btn { font-size: 11.5px; padding: 10px 4px; }
}

/* ── Landscape small phones (height ≤ 500px) ── */
@media (max-height: 500px) and (orientation: landscape) {
    .dl-header { padding: 8px 14px 7px; }
    .dl-header h2 { font-size: 15px; }

    .dl-body { padding: 10px 14px; }
    .dl-stats-grid { gap: 7px; margin-bottom: 8px; }

    .dl-card { padding: 9px 8px; }
    .dl-num { font-size: 22px; }
    .dl-label { font-size: 10px; margin-bottom: 3px; }

    .dl-tip { font-size: 11.5px; padding: 8px; }

    .dl-footer { padding: 8px 12px 10px; gap: 7px; }
    .dl-btn { padding: 9px 6px; font-size: 12px; }
}

/* ============================================================================= */

/* ============================custom reward modal===================================== */

/* Overlay */

.custom-reward-modal {
    background: white;
    max-width: 380px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: rewardPop 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.reward-header {
    padding: 16px 20px 12px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.reward-header h2 {
    margin: 0;
    font-size: 19px;
    color: #166534;
    line-height: 1.3;
}

.reward-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}

/* ── Body ── */
.reward-body {
    padding: 14px 18px;
    flex-shrink: 0;
}

.reward-subtitle {
    font-size: 12.5px;
    color: #6b7280;
    margin: 0 0 12px 0;
    text-align: center;
    line-height: 1.4;
}

.rw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.rw-row:active { transform: scale(0.97); }

.green  { background: #f0fdf4; border-color: #86efac; }
.blue   { background: #f0f9ff; border-color: #93c5fd; }
.orange { background: #fff7ed; border-color: #fb923c; }

.rw-left { font-size: 14px; font-weight: 600; }
.rw-sub  { font-size: 11px; color: #6b7280; margin-top: 3px; }
.rw-right-side { text-align: right; flex-shrink: 0; }

.rw-right {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.rw-badge {
    background: #f97316;
    color: white;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 6px;
    white-space: nowrap;
}

.rw-cta {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
}

/* ── Footer ── */
.reward-footer {
    padding: 12px 20px 18px;
    background: #f8fafc;
    text-align: center;
    flex-shrink: 0;
}

.reward-back-btn {
    background: #e2e8f0;
    color: #334155;
    border: none;
    padding: 11px 26px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}

/* ── Animation ── */
@keyframes rewardPop {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Desktop (≥ 600px) ── */
@media (min-width: 600px) {
    .custom-reward-modal { max-width: 400px; border-radius: 24px; }

    .reward-header { padding: 20px 24px 15px; }
    .reward-header h2 { font-size: 21px; }

    .reward-body { padding: 20px 24px; }
    .reward-subtitle { font-size: 13px; margin-bottom: 16px; }

    .rw-row { padding: 14px 16px; margin-bottom: 12px; border-radius: 14px; }
    .rw-left { font-size: 14.5px; }
    .rw-right { font-size: 26px; }
    .rw-badge { font-size: 11px; }

    .rw-cta { padding: 16px; font-size: 15.5px; margin-top: 8px; border-radius: 14px; }

    .reward-footer { padding: 16px 24px 24px; }
    .reward-back-btn { padding: 12px 28px; font-size: 15px; }
}

/* ── Small phones (≤ 380px) ── */
@media (max-width: 380px) {

    .reward-header { padding: 11px 14px 9px; }
    .reward-header h2 { font-size: 16.5px; }
    .reward-close-btn { font-size: 21px; top: 8px; right: 10px; }

    .reward-body { padding: 11px 13px; }
    .reward-subtitle { font-size: 11.5px; margin-bottom: 10px; }

    .rw-row { padding: 10px 11px; margin-bottom: 8px; border-radius: 10px; }
    .rw-left { font-size: 13px; }
    .rw-sub { font-size: 10.5px; }
    .rw-right { font-size: 21px; }
    .rw-badge { font-size: 10px; padding: 2px 6px; }

    .rw-cta { padding: 12px; font-size: 14px; border-radius: 10px; }

    .reward-footer { padding: 10px 14px 14px; }
    .reward-back-btn { padding: 10px 20px; font-size: 13.5px; border-radius: 10px; }
}

/* ── Very small phones (≤ 320px) ── */
@media (max-width: 320px) {
    .reward-header h2 { font-size: 14.5px; }
    .reward-subtitle { font-size: 10.5px; }

    .rw-row { padding: 9px 10px; margin-bottom: 7px; }
    .rw-left { font-size: 12px; }
    .rw-sub { font-size: 10px; }
    .rw-right { font-size: 19px; }
    .rw-badge { font-size: 9.5px; padding: 1px 5px; }

    .rw-cta { padding: 11px; font-size: 13px; }
    .reward-back-btn { padding: 9px 16px; font-size: 13px; }
}

/* ── Landscape small phones (height ≤ 500px) ── */
@media (max-height: 500px) and (orientation: landscape) {
    .reward-header { padding: 7px 14px 6px; }
    .reward-header h2 { font-size: 15px; }

    .reward-body { padding: 8px 13px; }
    .reward-subtitle { font-size: 11px; margin-bottom: 7px; }

    .rw-row { padding: 8px 10px; margin-bottom: 6px; border-radius: 10px; }
    .rw-left { font-size: 12.5px; }
    .rw-sub { font-size: 10px; margin-top: 2px; }
    .rw-right { font-size: 19px; }

    .rw-cta { padding: 10px; font-size: 13px; margin-top: 4px; }

    .reward-footer { padding: 8px 14px 10px; }
    .reward-back-btn { padding: 8px 18px; font-size: 13px; }
}

/* ======================================================================================== */

/* ========================custom payment modal============================ */

/* Overlay */

.custom-payment-modal {
    background: white;
    max-width: 380px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: paymentPop 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.payment-header {
    padding: 16px 20px 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.payment-header h2 {
    margin: 0;
    font-size: 19px;
    color: #1e40af;
    line-height: 1.3;
}

.payment-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}

/* ── Body ── */
.payment-body {
    padding: 14px 18px;
    flex-shrink: 0;
}

.pp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #bfdbfe;
    background: #f0f9ff;
    box-sizing: border-box;
}

.pp-row:active { transform: scale(0.97); }
.pp-row:hover  { border-color: #3b82f6; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15); }

.pp-row.gold       { background: #fef9e7; border-color: #fde68a; }
.pp-row.gold:hover { border-color: #d97706; box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15); }

.pp-label      { font-size: 14px;   font-weight: 600; color: #1e40af; }
.pp-label.gold { color: #b45309; }

.pp-sub { font-size: 11px; color: #6b7280; margin-top: 2px; line-height: 1.3; }

.pp-right { text-align: right; flex-shrink: 0; }

.pp-price      { font-size: 21px; font-weight: 800; color: #3b82f6; line-height: 1; }
.pp-price.gold { color: #d97706; }

.pp-dl { font-size: 11.5px; font-weight: 600; color: #047857; }

.pp-badge {
    background: #fbbf24;
    color: #78350f;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    white-space: nowrap;
}

.pp-note {
    font-size: 11.5px;
    color: #991b1b;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
    line-height: 1.5;
    box-sizing: border-box;
}

/* ── Footer ── */
.payment-footer {
    padding: 12px 20px 18px;
    background: #f8fafc;
    text-align: center;
    flex-shrink: 0;
}

.payment-back-btn {
    background: #e2e8f0;
    color: #334155;
    border: none;
    padding: 11px 28px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}

/* ── Animation ── */
@keyframes paymentPop {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Desktop (≥ 600px) ── */
@media (min-width: 600px) {
    .custom-payment-modal { max-width: 400px; border-radius: 24px; }

    .payment-header { padding: 20px 24px 15px; }
    .payment-header h2 { font-size: 21px; }

    .payment-body { padding: 20px 24px; }

    .pp-row { padding: 14px 16px; margin-bottom: 12px; border-radius: 14px; }
    .pp-label { font-size: 14.5px; }
    .pp-sub { font-size: 11.5px; }
    .pp-price { font-size: 22px; }
    .pp-dl { font-size: 12px; }
    .pp-badge { font-size: 10px; }

    .pp-note { font-size: 12px; padding: 12px 14px; margin-top: 10px; }

    .payment-footer { padding: 16px 24px 24px; }
    .payment-back-btn { padding: 12px 32px; font-size: 15px; }
}

/* ── Small phones (≤ 380px) ── */
@media (max-width: 380px) {

    .payment-header { padding: 11px 14px 9px; }
    .payment-header h2 { font-size: 16.5px; }
    .payment-close-btn { font-size: 21px; top: 8px; right: 10px; }

    .payment-body { padding: 11px 13px; }

    .pp-row { padding: 10px 11px; margin-bottom: 8px; border-radius: 10px; }
    .pp-label { font-size: 13px; }
    .pp-sub { font-size: 10.5px; }
    .pp-price { font-size: 19px; }
    .pp-dl { font-size: 11px; }
    .pp-badge { font-size: 9.5px; padding: 2px 5px; }

    .pp-note { font-size: 11px; padding: 9px 11px; }

    .payment-footer { padding: 10px 14px 14px; }
    .payment-back-btn { padding: 10px 22px; font-size: 13.5px; border-radius: 10px; }
}

/* ── Very small phones (≤ 320px) ── */
@media (max-width: 320px) {
    .payment-header h2 { font-size: 14.5px; }

    .pp-row { padding: 9px 10px; margin-bottom: 7px; }
    .pp-label { font-size: 12px; }
    .pp-sub { font-size: 10px; }
    .pp-price { font-size: 17px; }
    .pp-dl { font-size: 10.5px; }
    .pp-badge { font-size: 9px; }

    .pp-note { font-size: 10.5px; padding: 8px 10px; }
    .payment-back-btn { padding: 9px 16px; font-size: 13px; }
}

/* ── Landscape small phones (height ≤ 500px) ── */
@media (max-height: 500px) and (orientation: landscape) {
    .payment-header { padding: 7px 14px 6px; }
    .payment-header h2 { font-size: 15px; }

    .payment-body { padding: 8px 13px; }

    .pp-row { padding: 8px 10px; margin-bottom: 6px; border-radius: 10px; }
    .pp-label { font-size: 12.5px; }
    .pp-sub { font-size: 10px; }
    .pp-price { font-size: 17px; }
    .pp-dl { font-size: 10.5px; }

    .pp-note { font-size: 10.5px; padding: 8px 10px; margin-top: 6px; }

    .payment-footer { padding: 8px 14px 10px; }
    .payment-back-btn { padding: 8px 18px; font-size: 13px; }
}

/* ========================================================================================= */

/* =======================custom instruction================================= */

/* Overlay */

.custom-instructions-modal {
    background: white;
    max-width: 380px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: instrPop 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.instructions-header {
    padding: 16px 20px 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.instructions-header h2 {
    margin: 0;
    font-size: 17px;
    color: #1e40af;
    line-height: 1.3;
}

.instructions-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}

/* ── Body ── */
.instructions-body {
    padding: 14px 18px;
    flex-shrink: 0;
}

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

.pi-qr img {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.qr-caption {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
}

.pi-upi {
    background: #f0f9ff;
    border: 2px solid #3b82f6;
    border-radius: 11px;
    padding: 11px 12px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.upi-label {
    margin: 0 0 5px 0;
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
}

.upi-code {
    display: block;
    background: white;
    padding: 9px 10px;
    border-radius: 8px;
    color: #0369a1;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    user-select: all;
    word-break: break-all;
    margin-bottom: 5px;
    border: 1px solid #bfdbfe;
    box-sizing: border-box;
}

.upi-info {
    margin: 0;
    font-size: 11.5px;
    color: #0369a1;
    line-height: 1.3;
}

.pi-steps {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    border-radius: 10px;
    padding: 11px 12px;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: #166534;
    line-height: 1.65;
    box-sizing: border-box;
}

.pi-warn {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 12px;
    color: #991b1b;
    line-height: 1.55;
    box-sizing: border-box;
}

/* ── Footer ── */
.instructions-footer {
    padding: 12px 18px 16px;
    background: #f8fafc;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-back, .btn-paid {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-back { background: #e2e8f0; color: #334155; }
.btn-paid { background: #10b981; color: white; }

/* ── Animation ── */
@keyframes instrPop {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Desktop (≥ 600px) ── */
@media (min-width: 600px) {
    .custom-instructions-modal { max-width: 400px; border-radius: 24px; }

    .instructions-header { padding: 20px 24px 15px; }
    .instructions-header h2 { font-size: 19px; }

    .instructions-body { padding: 20px 24px; }

    .pi-qr { margin-bottom: 18px; }
    .pi-qr img { width: 160px; height: 160px; border-radius: 12px; }
    .qr-caption { font-size: 13px; margin-top: 8px; }

    .pi-upi { padding: 14px; margin-bottom: 16px; border-radius: 12px; }
    .upi-label { font-size: 12.5px; margin-bottom: 6px; }
    .upi-code { padding: 10px; font-size: 14px; margin-bottom: 6px; }
    .upi-info { font-size: 12px; }

    .pi-steps { padding: 14px; margin-bottom: 16px; font-size: 13.5px; }
    .pi-warn  { padding: 14px; font-size: 12.5px; }

    .instructions-footer { padding: 16px 24px 24px; gap: 12px; }
    .btn-back, .btn-paid { padding: 14px; font-size: 15px; }
}

/* ── Small phones (≤ 380px) ── */
@media (max-width: 380px) {

    .instructions-header { padding: 10px 13px 9px; }
    .instructions-header h2 { font-size: 15.5px; }
    .instructions-close-btn { font-size: 21px; top: 8px; right: 10px; }

    .instructions-body { padding: 11px 13px; }

    .pi-qr { margin-bottom: 11px; }
    .pi-qr img { width: 110px; height: 110px; }
    .qr-caption { font-size: 11px; }

    .pi-upi { padding: 9px 10px; margin-bottom: 10px; border-radius: 9px; }
    .upi-label { font-size: 11px; }
    .upi-code { font-size: 12px; padding: 8px; }
    .upi-info { font-size: 11px; }

    .pi-steps { padding: 9px 10px; margin-bottom: 10px; font-size: 11.5px; border-radius: 9px; }
    .pi-warn  { padding: 9px 10px; font-size: 11px; border-radius: 9px; }

    .instructions-footer { padding: 10px 13px 13px; gap: 8px; }
    .btn-back, .btn-paid { padding: 11px; font-size: 13px; border-radius: 10px; }
}

/* ── Very small phones (≤ 320px) ── */
@media (max-width: 320px) {
    .instructions-header h2 { font-size: 14px; }

    .pi-qr img { width: 95px; height: 95px; }
    .qr-caption { font-size: 10.5px; }

    .upi-label { font-size: 10.5px; }
    .upi-code  { font-size: 11.5px; padding: 7px; }
    .upi-info  { font-size: 10.5px; }

    .pi-steps { font-size: 11px; padding: 8px 9px; }
    .pi-warn  { font-size: 10.5px; padding: 8px 9px; }

    .btn-back, .btn-paid { padding: 10px; font-size: 12.5px; }
}

/* ── Landscape small phones (height ≤ 500px) ── */
@media (max-height: 500px) and (orientation: landscape) {
    .instructions-header { padding: 7px 13px 6px; }
    .instructions-header h2 { font-size: 14.5px; }

    .instructions-body { padding: 8px 13px; }

    .pi-qr { margin-bottom: 8px; }
    .pi-qr img { width: 80px; height: 80px; }
    .qr-caption { font-size: 10.5px; margin-top: 4px; }

    .pi-upi { padding: 8px 10px; margin-bottom: 8px; }
    .upi-label { font-size: 11px; margin-bottom: 4px; }
    .upi-code  { font-size: 12px; padding: 7px; margin-bottom: 4px; }
    .upi-info  { font-size: 10.5px; }

    .pi-steps { font-size: 11px; padding: 8px 10px; margin-bottom: 8px; line-height: 1.5; }
    .pi-warn  { font-size: 10.5px; padding: 8px 10px; line-height: 1.45; }

    .instructions-footer { padding: 8px 13px 10px; gap: 8px; }
    .btn-back, .btn-paid { padding: 9px; font-size: 13px; }
}

/* ==================================================================== */

/* ========================================payment verification modal======================== */

.custom-verification-modal {
    background: white;
    max-width: 420px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: verifyPop 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 24px);
}

/* ── Header ── */
.verification-header {
    padding: 14px 20px 10px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.verification-header h2 {
    margin: 0;
    font-size: 17px;
    color: #166534;
    line-height: 1.2;
}

.verification-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}

/* ── Body ── */
.verification-body {
    padding: 12px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
}

.amount-info {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 12px;
    font-size: 13px;
    color: #166534;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Single-row fields */
.form-group {
    margin-bottom: 10px;
}

/* Email + Phone side by side */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    padding: 9px 11px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px; /* prevents iOS zoom */
    box-sizing: border-box;
    font-family: inherit;
    color: #111827;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
}

textarea.form-input {
    min-height: 58px;
    resize: none;
    line-height: 1.4;
}

.required { color: #dc2626; }

small {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
    color: #6b7280;
    line-height: 1.3;
}

/* Combined notice box */
.combined-notice {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 0 8px 8px 0;
    padding: 9px 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #991b1b;
    line-height: 1.5;
    box-sizing: border-box;
}

.combined-notice .warning-title {
    font-weight: 700;
    margin: 0 0 4px 0;
    font-size: 12.5px;
}

.combined-notice p { margin: 0; }

.info-box {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    padding: 8px 12px;
    font-size: 12px;
    color: #1e40af;
    line-height: 1.45;
    box-sizing: border-box;
}

.info-box p { margin: 0; }

/* Keep old selectors working if HTML still uses them */

.warning-title {
    font-weight: 700;
    margin: 0 0 4px 0;
}

/* ── Footer ── */
.verification-footer {
    padding: 10px 16px 14px;
    background: #f8fafc;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-back,
.btn-submit {
    flex: 1;
    padding: 11px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-back   { background: #e2e8f0; color: #334155; }
.btn-submit { background: #10b981; color: white; }

/* ── Animation ── */
@keyframes verifyPop {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Desktop (≥ 600px) ── */
@media (min-width: 600px) {
    .custom-verification-modal { max-width: 440px; }

    .verification-header { padding: 16px 24px 12px; }
    .verification-header h2 { font-size: 19px; }

    .verification-body { padding: 14px 20px; }

    .amount-info { padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px; }

    .form-group { margin-bottom: 12px; }
    .form-row-2 { gap: 12px; margin-bottom: 12px; }
    .form-group label { font-size: 13px; margin-bottom: 5px; }
    .form-input { padding: 10px 13px; }
    textarea.form-input { min-height: 66px; }

    .combined-notice { padding: 11px 14px; margin-bottom: 12px; font-size: 13px; }
    .combined-notice .warning-title { font-size: 13px; }
    .info-box { padding: 10px 14px; font-size: 13px; }

    .verification-footer { padding: 12px 20px 18px; gap: 12px; }
    .btn-back,
    .btn-submit { padding: 13px; font-size: 15px; }
}

/* ── Small phones (≤ 380px) ── */
@media (max-width: 380px) {
    .custom-verification-modal { border-radius: 16px; }

    .verification-header { padding: 10px 14px 8px; }
    .verification-header h2 { font-size: 15px; }
    .verification-close-btn { font-size: 20px; top: 8px; right: 10px; }

    .verification-body { padding: 10px 12px; }

    .amount-info { padding: 7px 10px; margin-bottom: 9px; font-size: 12px; }

    /* Stack email+phone on very small screens */
    .form-row-2 { grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }

    .form-group { margin-bottom: 8px; }
    .form-group label { font-size: 11.5px; }
    .form-input { padding: 8px 10px; border-radius: 7px; }
    textarea.form-input { min-height: 50px; }
    small { font-size: 10px; }

    .combined-notice { padding: 8px 10px; font-size: 11.5px; margin-bottom: 8px; }
    .info-box { padding: 7px 10px; font-size: 11.5px; }

    .verification-footer { padding: 9px 12px 12px; gap: 8px; }
    .btn-back,
    .btn-submit { padding: 10px; font-size: 13px; border-radius: 10px; }
}

/* ── Very small phones (≤ 320px) ── */
@media (max-width: 320px) {
    .verification-header h2 { font-size: 14px; }
    .amount-info { font-size: 11.5px; }
    .form-group label { font-size: 11px; }
    .combined-notice,
    .info-box { font-size: 11px; padding: 7px 9px; }
    .btn-back,
    .btn-submit { padding: 9px; font-size: 12.5px; }
}

/* ── Landscape (height ≤ 500px) ── */
@media (max-height: 500px) and (orientation: landscape) {
    .custom-verification-modal { max-height: calc(100vh - 16px); }

    .verification-header { padding: 7px 14px 6px; }
    .verification-header h2 { font-size: 14px; }

    .verification-body { padding: 8px 13px; }

    .amount-info { padding: 6px 10px; margin-bottom: 8px; font-size: 12px; }

    .form-row-2 { gap: 8px; margin-bottom: 8px; }
    .form-group { margin-bottom: 7px; }
    .form-group label { font-size: 11px; margin-bottom: 3px; }
    .form-input { padding: 7px 10px; }
    textarea.form-input { min-height: 44px; }
    small { display: none; } /* hide hints in landscape to save space */

    .combined-notice { padding: 7px 10px; margin-bottom: 7px; font-size: 11px; }
    .combined-notice .warning-title { margin-bottom: 2px; }
    .info-box { padding: 6px 10px; font-size: 11px; }

    .verification-footer { padding: 7px 13px 9px; gap: 8px; }
    .btn-back,
    .btn-submit { padding: 9px; font-size: 13px; }
}

/* ================================================================================ */

/* ============================ payment pending modal ========================== */

/* Overlay */

.custom-pending-modal {
    background: white;
    max-width: 420px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: pendingPop 0.4s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 24px);
}

/* ── Header ── */
.pending-header {
    padding: 16px 20px 12px;
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    text-align: center;
    flex-shrink: 0;
}

.pending-header h2 {
    margin: 0;
    font-size: 18px;
    color: #b45309;
    line-height: 1.3;
}

/* ── Body — scrollable ── */
.pending-body {
    padding: 14px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
}

.pending-status {
    background: linear-gradient(135deg, #fef3c7, #fef9e7);
    border-left: 5px solid #f59e0b;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: #b45309;
    line-height: 1.6;
    font-weight: 500;
    box-sizing: border-box;
}

.session-box {
    background: #f0f9ff;
    border: 2px solid #0369a1;
    border-radius: 11px;
    padding: 12px 13px;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.session-title {
    margin: 0 0 8px 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #0369a1;
}

.session-id-container {
    background: white;
    padding: 10px 11px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    margin-bottom: 7px;
    box-sizing: border-box;
}

.session-id {
    display: block;
    color: #0369a1;
    word-break: break-all;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.session-hint {
    margin: 0;
    font-size: 11px;
    color: #0369a1;
    line-height: 1.3;
}

.timeline {
    background: #f9fafb;
    border-radius: 11px;
    padding: 13px;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.timeline-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.timeline-step {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.timeline-step:last-child { margin-bottom: 0; }

.step-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d1d5db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-icon.active { background: #f59e0b; }

.step-title {
    margin: 0 0 2px 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #1f2937;
}

.step-desc {
    margin: 0;
    font-size: 11.5px;
    color: #6b7280;
    line-height: 1.4;
}

.info-box,
.help-box {
    padding: 11px 13px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 12.5px;
    line-height: 1.55;
    box-sizing: border-box;
}

.info-box {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.help-box {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.info-title,
.help-title {
    font-weight: 700;
    margin: 0 0 6px 0;
}

/* ── Footer ── */
.pending-footer {
    padding: 12px 18px 16px;
    background: #f8fafc;
    text-align: center;
    flex-shrink: 0;
}

.btn-understood {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 13px 40px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

/* ── Animation ── */
@keyframes pendingPop {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Desktop (≥ 600px) ── */
@media (min-width: 600px) {
    .custom-pending-modal {
        max-width: 440px;
        border-radius: 24px;
        max-height: calc(100vh - 40px);
    }

    .pending-header { padding: 24px 24px 15px; }
    .pending-header h2 { font-size: 20px; }

    .pending-body { padding: 20px 24px; }

    .pending-status { padding: 16px; margin-bottom: 20px; font-size: 14.5px; }

    .session-box { padding: 16px; margin-bottom: 20px; border-radius: 12px; }
    .session-title { font-size: 13px; margin-bottom: 10px; }
    .session-id-container { padding: 12px; margin-bottom: 8px; }
    .session-id { font-size: 13.5px; }
    .session-hint { font-size: 11px; }

    .timeline { padding: 16px; margin-bottom: 20px; border-radius: 12px; }
    .timeline-title { font-size: 13px; margin-bottom: 14px; }
    .timeline-step { gap: 12px; margin-bottom: 16px; }
    .step-icon { width: 28px; height: 28px; font-size: 13px; }
    .step-title { font-size: 13px; margin-bottom: 3px; }
    .step-desc { font-size: 12px; }

    .info-box,
    .help-box { padding: 14px 16px; margin-bottom: 16px; font-size: 13px; }
    .info-title,
    .help-title { margin-bottom: 8px; }

    .pending-footer { padding: 20px 24px 24px; }
    .btn-understood { padding: 14px 40px; font-size: 16px; }
}

/* ── Small phones (≤ 380px) ── */
@media (max-width: 380px) {

    .custom-pending-modal {
        border-radius: 16px;
        max-height: calc(100vh - 20px);
    }

    .pending-header { padding: 11px 14px 9px; }
    .pending-header h2 { font-size: 16px; }

    .pending-body { padding: 11px 13px; }

    .pending-status { padding: 10px 11px; margin-bottom: 11px; font-size: 12.5px; }

    .session-box { padding: 10px 11px; margin-bottom: 11px; border-radius: 9px; }
    .session-title { font-size: 11.5px; margin-bottom: 7px; }
    .session-id-container { padding: 9px 10px; margin-bottom: 6px; }
    .session-id { font-size: 11.5px; }
    .session-hint { font-size: 10.5px; }

    .timeline { padding: 11px; margin-bottom: 11px; border-radius: 9px; }
    .timeline-title { font-size: 11.5px; margin-bottom: 10px; }
    .timeline-step { gap: 9px; margin-bottom: 10px; }
    .step-icon { width: 23px; height: 23px; font-size: 11px; }
    .step-title { font-size: 11.5px; }
    .step-desc { font-size: 11px; }

    .info-box,
    .help-box { padding: 9px 11px; margin-bottom: 10px; font-size: 12px; border-radius: 9px; }
    .info-title,
    .help-title { margin-bottom: 5px; }

    .pending-footer { padding: 10px 13px 13px; }
    .btn-understood { padding: 12px; font-size: 14px; border-radius: 10px; }
}

/* ── Very small phones (≤ 320px) ── */
@media (max-width: 320px) {
    .pending-header h2 { font-size: 14.5px; }

    .pending-status { font-size: 11.5px; padding: 9px 10px; }

    .session-box { padding: 9px 10px; }
    .session-title { font-size: 11px; }
    .session-id { font-size: 11px; }
    .session-hint { font-size: 10px; }
    .session-id-container { padding: 8px 9px; }

    .timeline { padding: 9px; }
    .timeline-title { font-size: 11px; }
    .step-icon { width: 21px; height: 21px; font-size: 10px; }
    .step-title { font-size: 11px; }
    .step-desc { font-size: 10.5px; }

    .info-box,
    .help-box { font-size: 11.5px; padding: 8px 10px; }

    .btn-understood { padding: 11px; font-size: 13.5px; }
}

/* ── Landscape small phones (height ≤ 500px) ── */
@media (max-height: 500px) and (orientation: landscape) {
    .custom-pending-modal { max-height: calc(100vh - 16px); }

    .pending-header { padding: 7px 14px 6px; }
    .pending-header h2 { font-size: 14.5px; }

    .pending-body { padding: 8px 13px; }

    .pending-status { padding: 8px 10px; margin-bottom: 8px; font-size: 12px; line-height: 1.45; }

    .session-box { padding: 8px 10px; margin-bottom: 8px; }
    .session-title { font-size: 11px; margin-bottom: 6px; }
    .session-id-container { padding: 7px 9px; margin-bottom: 5px; }
    .session-id { font-size: 11.5px; }
    .session-hint { font-size: 10px; }

    .timeline { padding: 9px; margin-bottom: 8px; }
    .timeline-title { font-size: 11px; margin-bottom: 8px; }
    .timeline-step { gap: 8px; margin-bottom: 8px; }
    .step-icon { width: 22px; height: 22px; font-size: 10px; }
    .step-title { font-size: 11px; }
    .step-desc { font-size: 10.5px; }

    .info-box,
    .help-box { padding: 8px 10px; margin-bottom: 8px; font-size: 11.5px; line-height: 1.4; }
    .info-title,
    .help-title { margin-bottom: 4px; }

    .pending-footer { padding: 8px 13px 10px; }
    .btn-understood { padding: 10px; font-size: 14px; }
}

/* =================================================================================== */

/* ========================= shared form-group / textarea / btn-back / btn-submit ====================================== */

.form-group {
    margin-top: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

textarea {
    width: 100%;
    padding: 11px 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    resize: vertical;
    min-height: 72px;
    font-size: max(16px, 13px); /* prevents iOS zoom */
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: #10b981;
}

.btn-back,
.btn-submit {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-back   { background: #e2e8f0; color: #334155; }
.btn-submit { background: #10b981; color: white; }

/* ── Responsive (shared with payment modal) ── */
@media (min-width: 600px) {
    .form-group { margin-top: 16px; }
    .form-group label { font-size: 14px; margin-bottom: 6px; }
    textarea { padding: 12px; min-height: 80px; }

    .btn-back,
    .btn-submit { padding: 14px; font-size: 15px; }
}

@media (max-width: 380px) {
    .form-group { margin-top: 11px; }
    .form-group label { font-size: 12px; }
    textarea { padding: 10px; min-height: 64px; border-radius: 7px; }

    .btn-back,
    .btn-submit { padding: 11px; font-size: 13px; border-radius: 10px; }
}

@media (max-width: 320px) {
    .form-group label { font-size: 11.5px; }
    textarea { min-height: 58px; padding: 9px; }

    .btn-back,
    .btn-submit { padding: 10px; font-size: 12.5px; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .form-group { margin-top: 8px; }
    .form-group label { font-size: 12px; margin-bottom: 4px; }
    textarea { min-height: 54px; padding: 8px 10px; }

    .btn-back,
    .btn-submit { padding: 9px; font-size: 13px; }
}

/* ============================================================ */
/* ──────────────── WHATSAPP CHANNEL BANNER ──────────────── */

#waBanner {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 76px;
  z-index: 500;
  max-width: 420px;
  margin: 0 auto;
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  color: #1a1a2e;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 44px rgba(7, 94, 84, 0.22), 0 0 0 1px rgba(37, 211, 102, 0.12);
  font-family: 'Poppins', sans-serif;
  transform: translateY(-120%) scale(0.96);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  overflow: hidden;
}

#waBanner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #075E54, #25D366, #128C7E, #25D366);
  background-size: 300% 100%;
  animation: waGradientMove 3s linear infinite;
}

#waBanner.wa-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#waBanner .wa-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  animation: waPulse 2.2s infinite, waBounce 2.4s ease-in-out infinite;
}

#waBanner .wa-body {
  flex: 1 1 auto;
  min-width: 0;
}

#waBanner .wa-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#waBanner .wa-title::after {
  content: '🔥';
  font-size: 13px;
}

#waBanner .wa-text {
  font-size: 13px;
  color: #555;
  line-height: 1.45;
  margin-bottom: 12px;
}

#waBanner .wa-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#waBanner .wa-btn {
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

#waBanner .wa-btn:active { transform: scale(0.96); }

#waBanner .wa-btn-join {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

#waBanner .wa-btn-join::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: waSheen 2.6s ease-in-out infinite;
}

#waBanner .wa-btn-join:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

#waBanner .wa-btn-later {
  background: #f1f2f6;
  color: #444;
}

#waBanner .wa-btn-later:hover { background: #e6e7eb; }

#waBanner .wa-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease, transform 0.15s ease;
}

#waBanner .wa-close:hover { color: #555; transform: rotate(90deg); }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); }
}

@keyframes waBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

@keyframes waSheen {
  0%   { left: -60%; }
  50%  { left: 130%; }
  100% { left: 130%; }
}

@keyframes waGradientMove {
  0%   { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

@media (max-width: 480px) {
  #waBanner {
    left: 10px;
    right: 10px;
    top: 66px;
    padding: 14px;
  }

  #waBanner .wa-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  #waBanner .wa-title { font-size: 14px; }
  #waBanner .wa-text  { font-size: 12.5px; }
  #waBanner .wa-btn   { font-size: 12.5px; padding: 8px 14px; }
}

/* ──────────────── NOTES UPLOAD REMINDER POPUP ──────────────── */

@keyframes unPopupScale {
  from { opacity:0; transform:translate(-50%,-47%) scale(.9); }
  to   { opacity:1; transform:translate(-50%,-50%) scale(1); }
}
@keyframes unEmojiBounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-4px) rotate(4deg); }
}
@keyframes unTagGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}
@keyframes unBtnSheen {
  0%   { left: -60%; }
  50%  { left: 130%; }
  100% { left: 130%; }
}
@keyframes unBadgePop {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.03); }
}

#un-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 24px);
  max-width: 320px;
  max-height: 88vh;
  overflow-y: auto;
  border: none;
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: linear-gradient(160deg, #ffffff, #f5f9ff);
  box-shadow: 0 16px 50px rgba(0,0,0,0.24);
  z-index: 999999;
  font-family: 'Poppins', Arial, sans-serif;
  box-sizing: border-box;
  color: #222;
  animation: unPopupScale .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: none;
}
#un-popup::-webkit-scrollbar { display: none; }

#un-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  z-index: 999998;
}

#un-popup .un-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f3f4f6;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#un-popup .un-close-btn:hover {
  background: #e5e7eb;
  color: #111827;
  transform: rotate(90deg);
}

#un-popup .un-emoji {
  font-size: 32px;
  margin-bottom: 4px;
  display: inline-block;
  animation: unEmojiBounce 2.4s ease-in-out infinite;
}

#un-popup h2 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #111827;
  line-height: 1.3;
  font-weight: 700;
}

#un-popup .un-tagline {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.04em;
  background: #eaf1ff;
  padding: 5px 10px;
  border-radius: 20px;
  animation: unTagGlow 2.4s infinite;
}

#un-popup .un-desc {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #4b5563;
}

#un-popup .un-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

#un-popup .un-chip {
  flex: 1 1 auto;
  background: #eef4ff;
  color: #1e40af;
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

#un-popup .un-rewards {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  text-align: left;
}

#un-popup .un-reward-row {
  font-size: 11.5px;
  color: #065f46;
  line-height: 1.7;
  font-weight: 500;
}

#un-popup .un-reward-row b { color: #047857; }

#un-popup .un-reward-highlight {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 5px 8px;
  margin: -2px -2px 4px;
  font-weight: 700;
  color: #92400e;
  animation: unBadgePop 1.8s ease-in-out infinite;
}

#un-popup .un-reward-highlight b { color: #b45309; }

#un-popup .un-courses-text {
  margin: 0 0 12px;
  font-size: 11px;
  color: #78350f;
  background: #fff7ed;
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1.5;
  text-align: left;
}

#un-popup .un-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#un-popup .un-actions a,
#un-popup .un-actions button {
  flex: 1;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#un-popup .un-actions a:active,
#un-popup .un-actions button:active { transform: scale(0.96); }

#un-popup .un-upload-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

#un-popup .un-upload-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: unBtnSheen 2.8s ease-in-out infinite;
}

#un-popup .un-later-btn {
  border: none;
  background: #f3f4f6;
  color: #111827;
}

#un-popup .un-later-btn:hover { background: #e5e7eb; }

@media (max-width: 380px) {
  #un-popup { padding: 16px 14px 14px; max-width: 290px; }
  #un-popup .un-emoji { font-size: 28px; }
  #un-popup h2 { font-size: 14.5px; }
  #un-popup .un-desc { font-size: 11.5px; }
  #un-popup .un-chip { font-size: 10px; padding: 5px 8px; }
  #un-popup .un-reward-row { font-size: 10.5px; }
  #un-popup .un-actions a,
  #un-popup .un-actions button { font-size: 12px; padding: 10px; min-width: 100%; }
}

@media (max-height: 480px) {
  #un-popup { max-height: 94vh; padding: 12px 14px 12px; }
  #un-popup .un-emoji { font-size: 22px; margin-bottom: 2px; }
  #un-popup h2 { margin-bottom: 2px; }
  #un-popup .un-tagline { margin-bottom: 6px; }
  #un-popup .un-chips, #un-popup .un-rewards, #un-popup .un-courses-text { margin-bottom: 6px; }
}

/* ============================================================================
   💳 PAYMENT MODALS — RESPONSIVE FIT (no inner scroll, no background scroll)
   Plans modal + UPI instructions modal + Confirm-payment form + QR zoom
   ============================================================================ */

/* Background scroll lock (JS adds .un-scroll-locked) */
html.un-scroll-locked { overflow: hidden !important; overscroll-behavior: none; }
body.un-scroll-locked {
    overflow: hidden !important;
    position: fixed;
    left: 0; right: 0;
    overscroll-behavior: none;
}

/* Overlay: navbar (z-index 2147483647) ke upar, exact visible screen jitna */
.pay-overlay {
    z-index: 2147483647 !important;
    position: fixed !important;
    inset: 0 !important;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: contain;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)) !important;
    box-sizing: border-box;
}

/* Modal = screen se kabhi bada nahi */
.pay-overlay .custom-payment-modal,
.pay-overlay .custom-instructions-modal,
.pay-overlay .vf-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
}
.pay-overlay .payment-content,
.pay-overlay .instructions-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: inherit;
}
/* Body sirf tab scroll kare jab screen sach me bahut chhoti ho (safety net) */
.pay-overlay .payment-body,
.pay-overlay .instructions-body,
.pay-overlay .vf-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* ───────── UPI instructions modal: screen height ke hisaab se fluid ───────── */
.pay-overlay .custom-instructions-modal { max-width: 400px; }
.pay-overlay .instructions-header { padding: clamp(8px, 1.6vh, 18px) 44px clamp(6px, 1.3vh, 14px); }
.pay-overlay .instructions-header { padding: clamp(8px, 1.6dvh, 18px) 44px clamp(6px, 1.3dvh, 14px); }
.pay-overlay .instructions-header h2 { font-size: clamp(14px, 2.3vh, 19px); font-size: clamp(14px, 2.3dvh, 19px); }
.pay-overlay .instructions-body { padding: clamp(8px, 1.5vh, 18px) clamp(12px, 3vw, 22px); padding: clamp(8px, 1.5dvh, 18px) clamp(12px, 3vw, 22px); }
.pay-overlay .pi-qr { margin-bottom: clamp(6px, 1.2vh, 14px); margin-bottom: clamp(6px, 1.2dvh, 14px); }
.pay-overlay .pi-qr img {
    width: clamp(90px, 19vh, 150px); height: clamp(90px, 19vh, 150px);
    width: clamp(90px, 19dvh, 150px); height: clamp(90px, 19dvh, 150px);
    cursor: zoom-in;
    background: #fff;
    object-fit: contain;
}
.pay-overlay .qr-caption { font-size: clamp(10.5px, 1.6vh, 13px); font-size: clamp(10.5px, 1.6dvh, 13px); }
.pay-overlay .qr-zoom-hint { color: #2563eb; font-weight: 600; }
.pay-overlay .pi-upi { padding: clamp(6px, 1.2vh, 13px) 12px; margin-bottom: clamp(6px, 1.1vh, 12px); padding: clamp(6px, 1.2dvh, 13px) 12px; margin-bottom: clamp(6px, 1.1dvh, 12px); }
.pay-overlay .upi-label { font-size: clamp(10.5px, 1.6vh, 12.5px); margin-bottom: 4px; font-size: clamp(10.5px, 1.6dvh, 12.5px); }
.pay-overlay .upi-code { font-size: clamp(11.5px, 1.75vh, 14px); padding: clamp(6px, 1.1vh, 10px); margin-bottom: 4px; font-size: clamp(11.5px, 1.75dvh, 14px); padding: clamp(6px, 1.1dvh, 10px); }
.pay-overlay .upi-info { font-size: clamp(10.5px, 1.5vh, 12px); font-size: clamp(10.5px, 1.5dvh, 12px); }
.pay-overlay .pi-steps { font-size: clamp(11px, 1.65vh, 13.5px); padding: clamp(6px, 1.1vh, 12px) 12px; margin-bottom: clamp(6px, 1.1vh, 12px); line-height: 1.55; font-size: clamp(11px, 1.65dvh, 13.5px); padding: clamp(6px, 1.1dvh, 12px) 12px; margin-bottom: clamp(6px, 1.1dvh, 12px); }
.pay-overlay .pi-warn { font-size: clamp(10.5px, 1.55vh, 12.5px); padding: clamp(6px, 1.1vh, 12px) 12px; line-height: 1.45; font-size: clamp(10.5px, 1.55dvh, 12.5px); padding: clamp(6px, 1.1dvh, 12px) 12px; }
.pay-overlay .instructions-footer { padding: clamp(8px, 1.4vh, 16px) clamp(12px, 3vw, 22px) clamp(10px, 1.8vh, 20px); padding: clamp(8px, 1.4dvh, 16px) clamp(12px, 3vw, 22px) clamp(10px, 1.8dvh, 20px); gap: 10px; }
.pay-overlay .btn-back, .pay-overlay .btn-paid { padding: clamp(9px, 1.5vh, 14px); font-size: clamp(13px, 1.9vh, 15px); padding: clamp(9px, 1.5dvh, 14px); font-size: clamp(13px, 1.9dvh, 15px); }

/* ───────── Plans modal (Buy Downloads) ───────── */
.pay-overlay .custom-payment-modal { max-width: 400px; }
.pay-overlay .payment-header { padding: clamp(10px, 1.8vh, 20px) 44px clamp(8px, 1.4vh, 14px); padding: clamp(10px, 1.8dvh, 20px) 44px clamp(8px, 1.4dvh, 14px); }
.pay-overlay .payment-body { padding: clamp(10px, 1.8vh, 20px) clamp(12px, 3vw, 22px); padding: clamp(10px, 1.8dvh, 20px) clamp(12px, 3vw, 22px); }
.pay-overlay .pp-row { padding: clamp(8px, 1.5vh, 14px) 14px; margin-bottom: clamp(6px, 1.2vh, 12px); padding: clamp(8px, 1.5dvh, 14px) 14px; margin-bottom: clamp(6px, 1.2dvh, 12px); }
.pay-overlay .payment-footer { padding: clamp(8px, 1.4vh, 16px) 20px clamp(10px, 1.8vh, 20px); padding: clamp(8px, 1.4dvh, 16px) 20px clamp(10px, 1.8dvh, 20px); }

/* ───────── Confirm-payment form (STEP 3) ───────── */
.pay-overlay .vf-modal { max-width: 440px; }
.pay-overlay .vf-body { padding: 14px clamp(12px, 3vw, 20px) 4px; }
.pay-overlay .vf-input { min-height: 0; }

/* 860px se chhoti screen height: hints chhupao + compact spacing => scroll nahi */
@media (max-height: 860px) {
    .pay-overlay .vf-header { padding-top: 8px; padding-bottom: 8px; }
    .pay-overlay .vf-header h2 { font-size: 16.5px; }
    .pay-overlay .vf-step { font-size: 10px; margin-bottom: 2px; }
    .pay-overlay .vf-body { padding-top: 10px; }
    .pay-overlay .vf-summary { padding: 8px; margin-bottom: 10px; }
    .pay-overlay .vf-summary strong { font-size: 15.5px; }
    .pay-overlay .vf-field { margin-bottom: 9px; }
    .pay-overlay .vf-field label { font-size: 13px; margin-bottom: 4px; }
    .pay-overlay .vf-input { padding: 9px 11px; }
    .pay-overlay input[type=file].vf-input { padding: 6px 8px; font-size: 13px; }
    .pay-overlay .vf-hint { display: none; }
    .pay-overlay .vf-shot { max-height: 54px; margin-top: 6px; }
    .pay-overlay .vf-check { padding: 9px 11px; font-size: 13.5px; }
    .pay-overlay .vf-more summary { padding: 2px 0; }
    .pay-overlay .vf-note { font-size: 11.5px; padding: 8px 10px; margin: 8px 0 6px; line-height: 1.4; }
    .pay-overlay .vf-footer { padding: 8px clamp(12px, 3vw, 20px) 10px; }
    .pay-overlay .vf-btn { padding: 11px 10px; font-size: 14.5px; }
}
@media (max-height: 640px) {
    .pay-overlay .vf-step { display: none; }
    .pay-overlay .vf-summary { margin-bottom: 8px; padding: 6px; }
    .pay-overlay .vf-field { margin-bottom: 7px; }
    .pay-overlay .vf-note { display: none; }
    .pay-overlay .vf-btn { padding: 9px 8px; font-size: 14px; }
    .pay-overlay .pp-sub { display: none; }
    .pay-overlay .pp-note { display: none; }
}

/* ───────── Landscape phones: 2-column instructions so sab ek screen me aaye ───────── */
@media (max-height: 520px) and (orientation: landscape) {
    .pay-overlay .custom-instructions-modal { max-width: 640px; }
    .pay-overlay .instructions-body {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 14px;
        align-items: start;
    }
    .pay-overlay .pi-qr { grid-row: 1 / span 3; margin: 0; }
    .pay-overlay .pi-qr img { width: clamp(84px, 38vh, 150px); height: clamp(84px, 38vh, 150px); width: clamp(84px, 38dvh, 150px); height: clamp(84px, 38dvh, 150px); }
    .pay-overlay .pi-upi, .pay-overlay .pi-steps, .pay-overlay .pi-warn { grid-column: 2; margin-bottom: 6px; }
    .pay-overlay .vf-modal { max-width: 640px; }
    .pay-overlay .vf-hint { display: none; }
}

/* ───────── QR zoom (QR par click) ───────── */
#qrZoomOverlay {
    position: fixed; inset: 0;
    z-index: 2147483647;
    background: rgba(0, 0, 0, 0.82);
    display: flex; align-items: center; justify-content: center;
    padding: 14px; box-sizing: border-box;
    height: 100vh; height: 100dvh;
    cursor: zoom-out;
    animation: qrZoomIn .18s ease;
}
#qrZoomOverlay .qr-zoom-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px 14px 12px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    max-width: 100%;
    box-sizing: border-box;
}
#qrZoomOverlay img {
    display: block;
    width: min(70vw, 38vh, 250px);
    width: min(70vw, 38dvh, 250px);
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}
#qrZoomOverlay p { margin: 8px 0 8px; font-size: 13px; color: #475569; font-family: inherit; }
#qrZoomOverlay .qr-zoom-close {
    border: none; border-radius: 10px; padding: 9px 26px;
    background: #e2e8f0; color: #334155; font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit;
}
@keyframes qrZoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

/* ───────── Confirm form: optional fields ab dikhte hain (compact) ───────── */
.pay-overlay .vf-more { margin-bottom: 8px; }
.pay-overlay .vf-more summary { display: none; }
.pay-overlay .vf-more-inner {
    padding-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 8px;
}
.pay-overlay .vf-more-inner .vf-field { margin-bottom: 8px; }
.pay-overlay .vf-more-inner .vf-field:last-child { grid-column: 1 / -1; }
.pay-overlay .vf-more-inner textarea.vf-input { min-height: 0; resize: none; }
@media (max-height: 860px) {
    .pay-overlay .vf-more-inner .vf-field label {
        position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
    .pay-overlay .vf-more-inner .vf-hint { display: none; }
}
@media (max-width: 340px) {
    .pay-overlay .vf-more-inner { grid-template-columns: 1fr; }
}

/* ───────── After-submit "Verification Request Submitted" modal ───────── */
.pay-overlay .custom-pending-modal { max-width: 440px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
.pay-overlay .pending-body { overscroll-behavior: contain; }
@media (max-height: 900px) {
    .pay-overlay .pending-header { padding: 10px 44px 8px; }
    .pay-overlay .pending-header h2 { font-size: 16px; }
    .pay-overlay .pending-body { padding: 10px 16px; }
    .pay-overlay .pending-status { padding: 8px 11px; margin-bottom: 9px; font-size: 12.5px; line-height: 1.45; }
    .pay-overlay .session-box { padding: 8px 11px; margin-bottom: 9px; }
    .pay-overlay .session-title { font-size: 11.5px; margin-bottom: 5px; }
    .pay-overlay .session-id-container { padding: 7px 9px; margin-bottom: 4px; }
    .pay-overlay .session-id { font-size: 11.5px; word-break: break-all; }
    .pay-overlay .session-hint { font-size: 10.5px; }
    .pay-overlay .timeline { padding: 9px 11px; margin-bottom: 9px; }
    .pay-overlay .timeline-title { font-size: 12px; margin-bottom: 7px; }
    .pay-overlay .timeline-step { margin-bottom: 7px; gap: 9px; }
    .pay-overlay .step-icon { width: 22px; height: 22px; font-size: 11px; }
    .pay-overlay .step-title { font-size: 12px; margin-bottom: 1px; }
    .pay-overlay .step-desc { font-size: 11px; line-height: 1.35; }
    .pay-overlay .info-box { display: none; }   /* non-refundable pehle hi 2 screens par bata diya hai */
    .pay-overlay .help-box { padding: 8px 11px; margin-bottom: 6px; font-size: 11.5px; line-height: 1.4; }
    .pay-overlay .pending-footer { padding: 8px 16px 10px; }
    .pay-overlay .btn-understood { padding: 10px 28px; font-size: 14.5px; }
}
@media (max-height: 700px) {
    .pay-overlay .step-desc { display: none; }
    .pay-overlay .session-hint { display: none; }
    .pay-overlay .help-box strong { display: none; }
}
