/* =========================================================
   1️⃣ BASE LAYOUT + GLOBAL VARIABLES
========================================================= */
:root {
   /* shared width for header, image, footer */
  --main-bg: #000;
  --footer-bg: #000;
  --accent: #003366;
  --accent-light: #22c55e;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--main-bg);
  color: #333;
  scroll-behavior: smooth;
   width:100%;
  overflow-x:hidden;
  min-height:100svh;
  backgroun-color: white;
}

main.main{
  flex:1;
  display:flex;
  align-items:center;
}

/* Utility helpers */
.hidden { display: none !important; }

/* =========================================================
   2️⃣ HEADER (Sticky Top — Black Background)
========================================================= */
header.header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 15px;
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Header logo (non-circular, clean colors) */
header.header img.imglogo {
  max-height: 90px;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  background: transparent;
  transition: transform 0.2s ease;
  padding-right: 30px;
}
header.header img.imglogo:hover {
  transform: scale(1.05);
}

img.imglogo {
    padding-right: 20px;
}

img.imgavatar {
    max-height: 90px;
}

/* Header text/icons */
header.header i,
header.header span,
header.header strong {
  color: #fff !important;
}

/* =========================================================
   3️⃣ STATS PANEL (Dropdown Below Header)
========================================================= */
.stats-panel {
  position: absolute;
  top: 85px; /* below sticky header */
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--max-width) * 0.42); /* about 20% smaller */
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 15px 10px;
  z-index: 1000;
  display: none;
}
.stats-panel.is-open { display: block; }

/* Stats panel content */
.stats-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 10px;
}
.stats-subtle {
  font-size: 12px;
  color: #777;
}
.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f8f8;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.stat-icon {
  color: var(--accent-light);
  width: 26px;
  text-align: center;
}

.stat-label {
  flex: 1;
  text-align: left;
  margin-left: 8px;
  font-size: 14px;
  color: #333;
}
.stat-count {
  font-weight: bold;
  color: #000;
  font-size: 14px;
}

/* =========================================================
   4️⃣ PROMO IMAGE SECTION
========================================================= */

.image-container img.responsive-img {

  height: calc(100svh - 180px);
  width: auto;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;

  display: block;

  border-radius: 16px;

  background: #fff;

  box-shadow:
      0 18px 40px rgba(0,0,0,.6),
      0 8px 18px rgba(0,0,0,.45),
      inset 0 1px 0 rgba(255,255,255,.25);

  transition: all .35s ease;
}

/* =========================================================
   5️⃣ FOOTER (Static Bottom — Black Background)
========================================================= */
footer#footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: #000;
  color: #fff;
  padding: 6px 10px;
  border-top: 1px solid #222;
  display: flex;
  align-items: center;
  z-index: 1000;
  height: 40px;
}

/* Footer content */
footer#footer i,
footer#footer .promo-text,
footer#footer .countdown-row {
  color: #fff !important;
}

.fa-whatsapp:before {
    padding-right: 20px;
}

.fa-share-alt:before {
    padding-left: 20px;
}

/* Center countdown box */
footer#footer .countdown-box {
  flex: 1;
  text-align: center;
}

/* WhatsApp + Share icons inside footer */
footer#footer .whatsappButton,
footer#footer .shareButton {
  position: relative;
  right: 0;
}
footer#footer .whatsappButton a {
  color: #25D366;
  font-size: 50px;
  padding-right:5px;
}
footer#footer .shareButton i {
  color: #1da1f2;
  font-size: 28px;
}

#showSharerBtn {
  font-size: 34px;     /* overrides fa-2x (≈ 2em) */
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

#showWhatsappBtn {
  font-size: 1.5em;     /* overrides fa-2x (≈ 2em) */
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* =========================================================
   6️⃣ COUNTDOWN TIMER — responsive + aligned
========================================================= */
.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 auto;
  min-width: 0;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 6px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 260px; /* keeps total within icon spacing */
  box-sizing: border-box;
}

/* number boxes */
.countdown-timer .countdown-cell {
  background: #fff;
  color: #000;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  font-size: clamp(12px, 3vw, 16px);
  padding: 5px 0;
}

/* smaller seconds */
#seconds {
  background: #f2f2f2;
  opacity: 0.9;
  font-size: clamp(10px, 2.8vw, 14px);
}

/* bottom labels */
.countdown-text {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 6px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 260px;
  margin-top: 3px;
}

.countdown-cell1 {
  text-align: center;
  font-size: clamp(9px, 2.3vw, 11px);
  color: #ccc;
  line-height: 1.2;
}

/* =========================================================
   7️⃣ ORDER FORM OVERLAY
========================================================= */
.order-wrap {
  background: #fff;
  border-radius: 10px;
  max-width: 420px;
  margin: 30px auto;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.order-title {
  text-align: center;
  margin-bottom: 15px;
  color: var(--accent);
}
.order-input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.btn-pay {
  background: var(--accent-light);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-pay:hover {
  background: #16a34a;
}

/* =========================================================
   8️⃣ AVATAR (Circular Crop)
========================================================= */
#avatarVcard img {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: none;
  box-shadow: none;
  background: none;
}

/* =========================================================
   9️⃣ MAP OVERLAY (Full-Screen Modal)
========================================================= */
#mapOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
}
#mapOverlay.is-open { display: flex; }

#mapSheet {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  width: 800px;
  max-width: 95%;
  max-height: 85vh;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}
#mapSheet iframe.map-frame {
  width: 100%;
  height: 70vh;
  border: none;
  display: block;
}
#closeMapBtn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  line-height: 36px;
  text-align: center;
  z-index: 10000;
  transition: all 0.2s ease;
}
#closeMapBtn:hover {
  background: #ff4444;
  color: #fff;
}

/* =========================================================
   🔟 RESPONSIVE ADJUSTMENTS
========================================================= */
@media (max-width: 768px) {
  header.header,
  .image-container,
  footer#footer {
    width: 100%;
  }
  .stats-panel {
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
  }
  .countdown-cell { min-width: 36px; }
  footer#footer .whatsappButton a { font-size: 40px; }
}

/* Stats panel – WhatsApp slightly larger */
.stats-panel .stat-icon.fa-whatsapp {
  font-size: 24px;
}

@media (max-width: 480px) {
  header.header img.imglogo { max-height: 60px; }
  .countdown-cell {
    font-size: 12px;
    padding: 5px 8px;
  }
  .btn-pay { font-size: 14px; }
}

/* =========================================================
   🔟 EXPIRED PROMO NAME (Large + Responsive)
========================================================= */

#expiredName {
  font-weight: bold;
  font-size: 2em;             /* 2× normal text size */
  color: #fff;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;        /* keeps single line */
  overflow: hidden;
  text-overflow: ellipsis;    /* prevent overlap if too long */
  margin-top: 8px;
}

/* Adjust font size responsively to prevent overlap with buttons */
@media (max-width: 768px) {
  #expiredName {
    font-size: 1.6em;
  }
}

@media (max-width: 480px) {
  #expiredName {
    font-size: 1.3em;
  }
}

.btn-pay {
  background-color: #28a745; /* bright green */
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 18px;
  width: 100%;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.25s;
}

.btn-order {
  background-color: #007bff; /* blue */
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 18px;
  width: 100%;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.25s;
}

.btn-order:hover {
  background-color: #0069d9;
}

#mapOverlay.is-open {
  display: flex !important;
}

.calendarButton i {
  font-size: 34px;   /* ⬅️ increase size (try 30–34px) */
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
}

.calendarButton i:hover {
  color: #ff0000;
}

.image-container {

  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
  padding: 10px;
  display:flex;
  justify-content:center;   /* horizontal center */
  align-items:center;       /* vertical center */

  height:calc(100svh - 170px);

  overflow:hidden;

}

/* =========================================================
   BUSINESS OPEN / CLOSED FOOTER
========================================================= */

#footer.business-open {
    background-color: #168c35 !important;
    transition: background-color 0.4s ease;
}

#footer.business-closed {
    background-color: #c62828 !important;
    transition: background-color 0.4s ease;
}

/* =========================================================
   BUSINESS HOURS POPUP
========================================================= */

/* Footer is clickable only when hours exist */

#footer.business-open,
#footer.business-closed {
    cursor: pointer;
}


/* Overlay */

.business-hours-overlay {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);

    z-index: 99999;
}

.business-hours-overlay.is-open {
    display: flex;
}


/* Popup */

.business-hours-popup {
    position: relative;

    width: 100%;
    max-width: 390px;

    background: #fff;

    border-radius: 18px;

    padding: 22px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.30);
}


/* Close button */

.business-hours-close {
    position: absolute;

    top: 10px;
    right: 12px;

    width: 38px;
    height: 38px;

    border: none;
    background: transparent;

    font-size: 30px;
    line-height: 1;

    color: #555;

    cursor: pointer;
}


/* Header */

.business-hours-popup-header {
    display: flex;
    align-items: center;

    gap: 14px;

    padding-right: 35px;
    margin-bottom: 18px;
}

.business-hours-popup-header > i {
    font-size: 30px;
    color: #333;
}

.business-hours-title {
    font-size: 21px;
    font-weight: 700;

    color: #222;
}


/* Current status */

.business-hours-current {
    margin-top: 3px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.5px;
}

.business-hours-current.is-open {
    color: #168c35;
}

.business-hours-current.is-closed {
    color: #c62828;
}


/* Hours list */

.business-hours-list {
    border-top: 1px solid #eee;
}

.business-hours-list-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 11px 5px;

    border-bottom: 1px solid #eee;

    font-size: 15px;
}


/* Today */

.business-hours-list-row.today {
    font-weight: 700;

    background: #f5f5f5;

    margin-left: -8px;
    margin-right: -8px;

    padding-left: 13px;
    padding-right: 13px;

    border-radius: 8px;
}

.business-hours-day {
    color: #333;
}

.business-hours-day small {
    display: inline-block;

    margin-left: 5px;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    color: #777;
}


/* Time */

.business-hours-time {
    color: #333;

    font-weight: 600;

    white-space: nowrap;
}

.business-hours-time.closed {
    color: #c62828;
}


/* Mobile */

@media (max-width: 480px) {

    .business-hours-popup {
        max-width: 340px;

        padding: 20px 17px;
    }

    .business-hours-list-row {
        font-size: 14px;
    }
}

/* =========================================================
   WHATSAPP SHARE WARNING
========================================================= */

.wa-warning-overlay {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 999999;

    padding: 20px;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.72);
}

.wa-warning-overlay.show {
    display: flex;
}

.wa-warning-box {
    width: 100%;
    max-width: 380px;

    padding: 25px 20px;

    background: #fff;

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.35);
}

.wa-warning-icon {
    margin-bottom: 8px;

    color: #25D366;

    font-size: 46px;
}

.wa-warning-box h2 {
    margin: 0 0 12px;

    color: #222;

    font-size: 23px;
}

.wa-warning-box p {
    color: #555;

    line-height: 1.5;
}


/* =========================================================
   INSTRUCTION BOX
========================================================= */

.wa-important {
    margin: 17px 0;

    padding: 15px;

    background: #fff3cd;

    border: 1px solid #ffe69c;

    border-radius: 10px;

    color: #664d03;

    line-height: 1.5;
}

.wa-steps-title {
    display: block;

    margin-bottom: 14px;

    text-align: left;
}

.wa-steps {
    text-align: left;
}

.wa-step {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 13px;

    line-height: 1.4;
}

.wa-step:last-child {
    margin-bottom: 0;
}

.wa-step-number {
    flex: 0 0 27px;

    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #25D366;
    color: #fff;

    font-size: 14px;
    font-weight: 700;
}

.wa-step > span:last-child {
    padding-top: 3px;
}

.wa-small {
    font-size: 13px;
}


/* =========================================================
   BUTTONS
========================================================= */

.wa-continue {
    width: 100%;

    margin-top: 8px;

    padding: 15px;

    border: 0;
    border-radius: 10px;

    background: #25D366;
    color: #fff;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;
}

.wa-continue:active {
    transform: scale(0.98);
}

.wa-cancel {
    width: 100%;

    margin-top: 8px;

    padding: 12px;

    border: 0;

    background: transparent;

    color: #666;

    font-size: 15px;

    cursor: pointer;
}

/* =========================================================
   PROMO IMAGE - TWO COLUMN LAYOUT
========================================================= */

.promo-image-section {
    width: 100%;
}

.promo-image-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 24px;

    align-items: start;

    margin-top: 18px;
    margin-bottom: 22px;
}


/* =========================================================
   LEFT - IMAGE
========================================================= */

.promo-image-column {
    min-width: 0;
}

.promo-image-column .image-wrapper {
    width: 100%;
    margin: 0;
}

.promo-image-column .image-preview {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    border-radius: 10px;

    object-fit: contain;
}


/* =========================================================
   RIGHT - DESIGN HELP
========================================================= */

.promo-design-help {
    min-width: 0;
    margin: 0;

    text-align: left;
}

.promo-design-help > h3 {
    margin: 0 0 6px;
}

.promo-design-intro {
    margin: 0 0 15px;

    color: #ccc;

    font-size: 14px;
    line-height: 1.45;
}


/* =========================================================
   DESIGN CARDS
========================================================= */

.promo-design-card {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-bottom: 12px;
    padding: 16px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.06);
}

.promo-design-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.promo-design-content {
    flex: 1;
    min-width: 0;
}

.promo-design-content h4 {
    margin: 0 0 6px;

    color: #fff;
}

.promo-design-content p {
    margin: 0 0 12px;

    color: #ccc;

    font-size: 14px;
    line-height: 1.45;
}


/* =========================================================
   BUTTONS
========================================================= */

.promo-design-btn {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 9px 14px;

    border-radius: 7px;

    background: #0F62FE;

    color: #fff !important;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   UPLOAD FORM
========================================================= */

.upload-form {
    width: 100%;

    margin-top: 10px;
}

.upload-form label {
    display: block;

    margin-bottom: 8px;

    font-weight: 600;
}

.upload-form input[type="file"] {
    width: 100%;

    box-sizing: border-box;
}

.btn-upload {
    margin-top: 12px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .promo-image-layout {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    /*
       Image first.
       Design help underneath.
    */

    .promo-image-column {
        width: 100%;
    }

    .promo-design-help {
        width: 100%;
    }

}