
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    background-color: #f9f9f9; /* Match footer color to prevent yellow below */
    display: flex;
    min-height: 100vh; /* Fallback for older devices */
    min-height: 100svh;
    flex-direction: column;
    overflow-y: auto;
}

.main-container {
    flex: 1; /*takes full remaining space */
    width: 100%;
    background-color: #F9CB35; /* Yellow background moved here */
    display: flex;
    flex-direction: column;     /* ✅ allow footer below */
    align-items: center;        /* horizontal center */
    justify-content: flex-start; 
    padding: 20px 0;
}
/* 🎯 Banner */
.banner {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 2 / 3;
    margin: auto;
    overflow: hidden;
}

/* Fix image zoom */
.banner-img{
    position:absolute;
    top:0;
    left:-1px;        /* extend slightly to left */
    width:calc(100% + 2px); /* extend both sides */
    height:100%;
    object-fit:cover;
}
html, body {
    overflow-x: hidden;
    margin:0;
}
.top-nav-icon {
        position: fixed;
        top: 9px;
        right: 12px;
        width: 20px;
        height: 20px;
        background: rgba(255,255,255,0.95);
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 20000;
        cursor: pointer;
        transition: transform 0.12s ease, box-shadow 0.12s ease;
    }
    .top-nav-icon:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.22); }
    .top-nav-icon img { width: 22px; height: 22px; display:block; }
/* 📦 Content scales with banner */
.content-box {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(65%, 72%, 78%);
    text-align: center;
}

/* 🔠 Responsive heading */
.content-box h1{
    font-size: clamp(1rem, 2.5vw, 1.4rem); /* fluid font scaling */
    line-height: 1.3;
    margin-bottom: clamp(8px, 2vh, 12px);  /* scales with viewport */
    font-weight: 600;
    color: #000;

    /* ensure wrapping inside content box */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    width: 100%;  /* fills the width of the content box */
    text-align: center;
}

/* 🔘 Buttons */
.btn {
    width: clamp(170px, 55%, 240px); /* stable width */
    padding: clamp(10px, 2vh, 14px);
    font-size: clamp(0.85rem, 2.2vw, 1rem);

    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: clamp(6px, 1.2vh, 10px) auto; /* center button */

    background-color: #43a047;
    color: #fff;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* QR Button with icon - moved slightly right */
.btn-scan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    white-space: nowrap; /* prevents line break */
}

/* QR icon inside button */
.qr-icon {
    width: clamp(18px, 3vw, 24px);
    height: clamp(18px, 3vw, 24px);
    object-fit: contain;
    flex-shrink: 0; /* prevents icon shrinking */
}

/* --- OR --- */
.or-text {
    margin: clamp(8px, 1.5vh, 14px) 0;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: bold;
    color: #444;
}
 .hidden {
      display: none !important;
    }
    .popup-overlay {
      display: none;
      position: fixed;
      top: 0; 
      left: 0;
      width: 100%; 
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .popup-overlay.show {
      display: flex !important;
    }

    .popup {
      background: #fff;
      border-radius: 12px;
      width: 90%;
      max-width: 340px;
      max-height: 85vh;
      padding: 25px 20px;
      text-align: center;
      position: relative;
      box-shadow: 0 6px 25px rgba(0,0,0,0.3);
      animation: popupShow 0.3s ease;
      overflow-y: auto;
    }

    @keyframes popupShow {
      from { transform: scale(0.9); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
      /* Make the popup box the reference for positioning */
.terms-box{
  position: relative;
}

/* Position the close button */
.terms-box .close-btn{
  position: absolute;
  top: -2px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #444;
  z-index: 10;
}

    .popup .close-btn {
      position: absolute;
      top: 8px;
      right: 12px;
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
      color: #444;
    }

    .popup h2 {
      font-size: 18px;
      color: #2e7d32;
      margin-bottom: 8px;
    }

    .popup p {
      font-size: 13px;
      color: #000;
      margin-bottom: 10px;
    }
.popup h2 {
      font-size: 18px;
      color: #2e7d32;
      margin-bottom: 8px;
    }

    .popup p {
      font-size: 13px;
      color: #000;
      margin-bottom: 10px;
    }

    .offer-box {
    border: 1px solid #43a047;
    border-radius: 12px;
     padding: 0 0 15px 0;
    margin: 15px 0;
    background: #f0fff0;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    }

    .offer-box:hover {
    transform: translateY(-3px);
}

/* Banner Image inside popup */
.offer-image {
    width: 100%;
    aspect-ratio:4/3; /* increase height if you want */
    overflow: hidden;
    border-radius: 12px 12px 0 0; /* match top corners */
    margin-bottom: 12px;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Business Name */
.offer-box .business-name {
    font-size: 17px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

/* Offer Text */
.offer-box .offer-text,
.offer-box .valid-text {
    align-self: flex-start;   /* move left inside flex */
    text-align: left;
    padding-left: 15px;
}
.offer-box .offer-text {
    font-size: 14px;
    font-weight: 600;
     font-style: italic;
    margin-bottom: 6px;
    white-space: normal;          /* allow multiple lines */
    word-wrap: break-word;        /* break long words */
    overflow-wrap: break-word;    /* modern version */
    word-break: break-word; 
}

/* Valid Text */
.valid-text {
    font-size: 12px;
    color: #444;
    margin-bottom: 10px;
}

/* Social Icons inside popup */
/* Social Icons inside popup */
.offer-box .social-icons {
    display: flex;
    align-items: center;     /* vertical align */
    justify-content: center; /* center whole row */
    gap: 10px;               /* smaller gap */
    margin-top: 8px;
    flex-wrap: nowrap;       /* prevent wrapping */
}

/* Follow text */
.follow-text {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-right: 6px;
    white-space: nowrap;     /* keep text in one line */
}

/* Icons smaller */
.offer-box .social-icons img {
    width: 20px;   /* reduced from 26px */
    height: 20px;
    transition: 0.2s ease;
}

.offer-box .social-icons img:hover {
    transform: scale(1.1);
}
    .terms {
      border-top: 1px solid #ccc;
      margin-top: 12px;
      padding-top: 8px;
      font-size: 11px;
      text-align: left;
      display: none;
    }

    .offer-box .terms {
      display: block;
    }
    .cupon-terms {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #555;
    font-weight: 500;
    width: 100%;
}

    .save-explore-container {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
      margin-top: 12px;
      margin-bottom: 14px;
    }

    .save-btn, .explore-btn {
      flex: 1;
      background: #43a047;
      color: white;
      border: 2px solid #43a047;
      border-radius: 8px;
      padding: 10px 15px;
      font-size: 14px;
      cursor: pointer;
      font-weight: 600;
    }

    .terms-popup {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10000;
    }

    .terms-box {
      background: #fff;
      width: 90%;
      max-width: 450px;
      max-height: 85vh;
      padding: 20px;
      border-radius: 12px;
      overflow-y: auto;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      position: relative;
      text-align: left;
    }

    .terms-box h2 {
      margin-top: 0;
      text-align: center;
      color: #333;
    }

    .terms-box h3 {
      font-size: 13px;
      color: #2e7d32;
      margin-top: 12px;
      margin-bottom: 8px;
    }

    .terms-box p {
      font-size: 13px;
      line-height: 1.5;
      margin: 8px 0;
      color: #000;
      font-style:bold
    }

    .terms-box ul {
      margin: 8px 0;
      padding-left: 20px;
    }

    .terms-box li {
      font-size: 12px;
      margin: 4px 0;
      color: #000;
    }

    .terms-box a {
      color: #007BFF;
      text-decoration: none;
    }

    .terms-box a:hover {
      text-decoration: underline;
    }
     #toast {
      position: fixed;
      left: 50%;
      transform: translateX(-50%);
      bottom: 100px;
      background: rgba(0,0,0,0.8);
      color: #fff;
      padding: 10px 16px;
      border-radius: 8px;
      font-weight: 600;
      z-index: 4000;
      opacity: 0;
      transition: opacity 0.18s ease;
      pointer-events: none;
    }

    #toast.show { opacity: 1; }
    #qr-reader {
      width: 90%;
      margin: 15px auto;
      border: 1px solid #ccc;
      border-radius: 8px;
    }

    #qr-reader-result {
      margin-top: 15px;
      font-weight: bold;
      color: #43a047;
    }
.loader-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(250, 218, 39, 0.95);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 999999;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .loader-overlay.show {
      opacity: 1;
    }

    .loader-overlay.hidden {
      display: none !important;
    }

    .loader-container {
      text-align: center;
      background: white;
      padding: 30px 40px;
      border-radius: 12px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    .loader-spinner {
      width: 60px;
      height: 60px;
      border: 5px solid #f3f3f3;
      border-top: 5px solid #43a047;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto 20px;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .loader-text {
      font-size: 16px;
      font-weight: 600;
      color: #333;
      font-family: 'Poppins', sans-serif;
    }
/* Terms */
.terms-text {
    position: absolute;
    bottom: 8%;
    left: 7%;
    text-decoration: underline;
    font-weight: 500;
    font-size: clamp(0.6rem, 1.2vw, 0.8rem);
    color: #000;
}
.force-font-render * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}
.download-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: 0.2s ease;
}

.download-icon img {
    width: 18px;
    height: 18px;
}

.download-icon:hover {
    transform: scale(1.1);
}
.blink-offer {
    color: #ff0000;
    font-weight: bold;
    animation: blinkAnimation 1s infinite;
}
.content-wrapper {
    display: flex;
    justify-content: center;
}

/* Fix paragraph styling */
.home-description {
    max-width: 420px;
    margin: 20px auto;
    padding: 0 16px;
    text-align: center;
}

/* ✅ FIXED TEXT BEHAVIOR */
.home-description {
    max-width: 420px;
    margin: 20px auto;
    padding: 0 16px;

    text-align: center;

    font-size: clamp(13px, 2vw, 15px);
    line-height: 1.7;

    color: #444;                 /* softer than pure black */
    font-weight: 400;            /* normal readable weight */
    letter-spacing: 0.3px;       /* improves readability */

    font-style: italic;
}
.footer-links a {
  color: #474df5;
  
}

.footer-links a:visited {
  color: #474df5;
}

.footer-links a:hover {
  color: #43a047; /* optional hover effect */
}
.seo-footer {
  width: 100%;
  background: #f9f9f9;
  font-size: 14px;
  color: #555;
  text-align: center;
  padding: 15px 20px;
  font-style: italic;
  line-height: 1.6;
  border-top: 1px solid #ddd;
  margin-top: auto;
}
@keyframes blinkAnimation {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

/* 📱 Small screens */
@media (max-width: 480px) {

    .banner {
        width: 95vw;
    }

    .btn-scan {
        
        margin-bottom: 10px;
    }

    .content-box h2 {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
    
    

}

/* 📱 Medium screens (tablets) */
@media (min-width: 481px) and (max-width: 768px) {

    .banner {
        width: 80vw;
    }

    .btn-scan {
       
        margin-bottom: 15px;
    }
    .content-box h2 {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }
    

}

/* 💻 Medium-large screens (laptops, etc.) */
@media (min-width: 769px) and (max-width: 1199px) {

    .banner {
        width: min(70vw, 60vh);
    }

    .content-box {
        width: 70%;
        max-width: 420px;
        margin: auto;
        text-align: center;
    }
    .content-box h2 {
        font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    }

    .btn,
    .btn-scan {
        width: 70%;
        max-width: 220px;
        margin: 8px auto;
        
    }

}

/* 💻 Large screens */
@media (min-width: 1200px) {

    .banner {
        width: min(50vw, 70vh);
    }

    .content-box {
        width: 65%;       /* relative to banner */
        max-width: 420px; /* prevents it from becoming too big */
        text-align: center;
         margin: auto;
    }
.content-box h2 {
        font-size: clamp(0.85rem, 1.5vw, 1rem);
    }
    .btn,
    .btn-scan {
        width: 100%;
        max-width: 220px; /* keeps buttons readable */
       margin: 8px auto;
        
    }

}
