@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

body, html {
  margin:0; padding:0; height:100%; width:100%; font-family:'Poppins', Arial, sans-serif; overflow:hidden;
  background:#191e28;
}
.video-bg { position:fixed; width:100vw; height:100vh; top:0; left:0; z-index:1; background:#000; }
video { object-fit:cover; width:100vw; height:100vh; display:block; z-index:1;}
.video-overlay {
  position:absolute; top:0; left:0; width:100vw; height:100vh; z-index:4; pointer-events:none;
  background:linear-gradient(135deg, #191e2869 0%, #191e28 100%);
}
#ripple-water { position:absolute; top:0; left:0; width:100vw; height:100vh; z-index:5; pointer-events:none;}
.cta-area {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100vw;
  text-align: center;
  z-index: 12;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  transform: translateY(-50%);
}

.toss-btn { background:#111; color:#fff; padding:12px 20px; font-size:15px; border:none; border-radius:10px;
  box-shadow:0 4px 18px rgba(33,118,174,0.18); cursor:pointer; transition:background 0.2s,transform 0.1s; font-family:'Poppins'; text-transform: uppercase; font-weight: 500;}
.toss-btn:active { transform:scale(0.97);}

.mute-btn {
  width: 40px; height: 40px; border: none; border-radius: 50%; overflow: hidden;
  background: #00000054; box-shadow: 0 4px 14px rgba(0,0,0,0.13);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  backdrop-filter: blur(11px);
  transition: box-shadow 0.2s; padding: 5px;
}
.mute-btn:active { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mute-svg-bg {
  position: absolute; z-index: 1; left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(44,57,100,0.14);
  border-radius: 50%;
  pointer-events: none;
  backdrop-filter: blur(13px);
}
.mute-svg {
  z-index: 2; position: relative; transition: fill 0.2s;
  width: 38px; height: 38px;
  display: block;
}
.mute-svg .waves { transition: opacity 0.28s; }
.mute-svg .slash { transition: opacity 0.24s, transform 0.32s; transform-origin: 0 0;}
.mute-btn.muted .mute-svg .waves { opacity: 0; }
.mute-btn.muted .mute-svg .slash { opacity: 1; transform: scale(1); }
.mute-btn:not(.muted) .mute-svg .waves { opacity: 1; }
.mute-btn:not(.muted) .mute-svg .slash { opacity: 0; transform: scale(0); }
.coin3d-canvas { position:fixed; left:0; top:0; width:100vw; height:100vh; z-index:1005; pointer-events:none; }

/* HEADER & FOOTER */
.glass {
  background: rgba(40,45,56,0.22);
  backdrop-filter: blur(17px) saturate(1.3);
  -webkit-backdrop-filter: blur(17px) saturate(1.3);
  box-shadow: 0 4px 16px rgba(20,30,40,0.08);
}
.hed-right{
  display: flex; align-items: center; justify-content: center; cursor: pointer; gap: 20px;
}

.main-header {
  position:fixed; top:0; left:0; width:100vw; height:68px;
  z-index:2000; background:#8E001C; backdrop-filter:blur(17px) saturate(1.2);
  box-shadow: 0 6px 16px rgba(10,18,34,0.07); overflow:hidden;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform .68s cubic-bezier(.77,-.09,.25,1.21), opacity .54s;
}
.header-content {
  display:flex; align-items:center; justify-content:space-between;
  height:100%; max-width:1200px; margin:0 auto; padding:0 32px;
}
.site-logo { height:40px !important; width:auto; object-fit:contain; }
.header-nav { display:flex; gap:40px; }
.header-nav .nav-link {
  color:#fff; text-decoration:none; font-size:14px; font-weight:500;
  padding:0 10px; transition:color .2s,opacity .16s;
  line-height: 68px; display: inline-block;
}
.header-nav .nav-link:hover { color:#ffe073; opacity:.97; }
.menu-toggle {
  background:transparent; border:none; border-radius:50%;
  width:60px; height:60px; display:none; align-items:center; justify-content:center;
  cursor:pointer; z-index:2101; margin-left:20px; position:relative;
}
.menu-toggle svg { width:55px; height:55px; display:block; }
.menu-toggle .line {
  fill:#fff; transition:all .32s cubic-bezier(.8,1.6,.4,1.1);
}
.menu-toggle .line1 { width:24px; }
.menu-toggle .line2 { width:16.8px; transition:width .3s cubic-bezier(.4,1.7,.62,1.07);}
.menu-toggle.open .line1 { transform:translateY(4px) rotate(45deg);}
.menu-toggle.open .line2 { width:24px; transform:translateY(-4px) rotate(-45deg);}
.menu-toggle.open .line { transform-origin:19px 19px;}
/* Hide desktop nav and show menu button at mobile/tablet */
@media (max-width: 900px) {
  .header-nav { display:none;}
  .menu-toggle { display:flex;}
  .header-content { padding:0 10px;}
}

.mobile-menu-overlay {
  display: none;
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: #8E001C;
  z-index: 3000;
  align-items: center; justify-content: center; flex-direction: column;
  animation: fadeInMenu .35s both;
}
.mobile-menu-overlay.active { display: flex; }

@keyframes fadeInMenu { from { opacity: 0; } to { opacity: 1; } }
.close-btn {
  position: absolute; top: 28px; right: 26px;
  background: rgba(45,52,80,0.19); border: none; border-radius: 50%; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; z-index: 3100; cursor: pointer;
  transition: background .18s;
}
.close-btn:hover { background: rgba(45,52,80,0.36);}
.mobile-nav {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100vw; height: 100vh; gap: 0;
}
.mobile-menu-overlay .nav-link {
  color: #fff; text-decoration: none; font-size: 2.1rem; font-weight: 600;
  margin: 22px 0; opacity: 0; transform: translateY(36px);
  animation: fadeInNav .56s cubic-bezier(.77,1.55,.64,1.1) forwards;
  pointer-events: auto;
}
.mobile-menu-overlay.active .nav-link:nth-child(1) { animation-delay: .11s; }
.mobile-menu-overlay.active .nav-link:nth-child(2) { animation-delay: .27s; }
.mobile-menu-overlay.active .nav-link:nth-child(3) { animation-delay: .44s; }

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



.main-footer {
  position: fixed;
  left: 0; bottom: 0; width: 100vw;
  z-index: 2;
  background: #FFB300;
  backdrop-filter: blur(17px) saturate(1.3);
  -webkit-backdrop-filter: blur(17px) saturate(1.3);
  box-shadow: 0 -2px 16px rgba(20,30,40,0.10);
  font-size: 12px;
  box-sizing: border-box;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform .68s cubic-bezier(.77,-.09,.25,1.21), opacity .54s;
}

.footer-content {
  display: flex;
  color: #000;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 50px;
  box-sizing: border-box;
}

.footer-left {
  white-space: nowrap;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer-links {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-shrink: 1;
  flex-wrap: wrap;
  min-width: 0;
}

.footer-link {
  color: #000;
  text-decoration: none;
  opacity: .85;
  font-weight: 500;
  font-size: 12px;
  transition: color .18s, opacity .18s;
  white-space: nowrap;
  overflow: visible;
}

.footer-link:hover { color: #ffd76c; opacity: 1; }

@media (max-width: 900px) {
  .footer-content {
    padding: 0 12px;
    min-height: 50px;
  }
  .footer-links {
    gap: 16px;
  }
}

@media (max-width: 550px) {
  .footer-content {
    gap: 2px;
    padding: 2px 8px;
    min-height: 50px;
  }
  .footer-links { gap: 7px; }
  .footer-link { font-size: 12px; }
  .footer-left { font-size: 1em;}
}


/* Hide header/footer utility classes */
.hide-header {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .68s cubic-bezier(.77,-.09,.25,1.21), opacity .54s;
}
.hide-footer {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .68s cubic-bezier(.77,-.09,.25,1.21), opacity .54s;
}


/* WISH POPUP */
.wish-popup {
  position:fixed; left:0; top:0; width:100vw; height:100vh; display:flex; align-items:end; justify-content:center;
  z-index:5000; background:rgba(22,30,42,0.04); pointer-events:none; opacity:0; transition:opacity .32s; 
}
.wish-popup.active { pointer-events:auto; opacity:1; }
.wish-popup-inner {
  background:rgba(44,57,100,0.24); backdrop-filter:blur(12px) saturate(1.13);
  border-radius:36px 36px 0 0; margin-bottom:0;
  min-width:320px; width:95vw; max-width:450px; padding:44px 26px 36px;
  box-shadow:0 12px 32px rgba(10,18,34,0.13);
  display:flex; flex-direction:column; align-items:center;
  transform:translateY(80vh); opacity:0; transition:transform .66s cubic-bezier(.78,-.12,.27,1.3), opacity .44s;
}
.wish-popup.active .wish-popup-inner { transform:translateY(0); opacity:1; }
/* Real viewport height — JS sets --vh on load/resize */
:root { --vh: 1vh; }

/* Keep the full-screen overlay but prevent body from peeking/scrolling */
.wish-popup { overflow: hidden; }

/* Use the real viewport height inside the panel and allow it to scroll */
.wish-popup-inner {
  /* respects iOS/Android browser bars */
  max-height: calc(var(--vh) * 100 - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* keep your existing padding but add safe-area on devices with a home indicator */
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
}

/* Keep scroll space when keyboard is open */
.wish-popup-inner.keyboard-open {
  /* extra bottom padding so last element stays visible */
  padding-bottom: calc(200px + env(safe-area-inset-bottom));
  scroll-padding-bottom: 200px;
}
.wish-popup-inner.keyboard-open #wishInput{
  min-height: 160px;
}


.wish-popup h2 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 24px;
    font-weight: bold;
    text-transform: uppercase;
}
.wish-popup p {
  text-align: center;
  font-size: 13px;
  color: #fff;
  margin-top: -15px;
  margin-bottom: 30px;
}
#wishInput {
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  padding: 13px 18px;
  width: 100%;
  max-width: 360px;
  outline: none;
  background: #fff;
  height: 130px !important;
  color: #222;
  box-shadow: 0 2px 8px rgba(20,30,40,0.04);
  font-family: 'Poppins';
}
#popupTossBtn { width:100%; max-width:240px; margin-top:8px; }
.toss-btn .coin-icon {
  width: 28px;
  height: 28px;
  margin-right: 13px;
  vertical-align: middle;
  display: inline-block;
  filter: drop-shadow(0 2px 6px rgba(33,118,174,0.10));
  /* If you want it white, use filter: brightness(0) invert(1); */
}


/* WISH MESSAGE */
.wish-message {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 60px;
  margin: auto;
  width: fit-content;
  min-width: 220px;
  max-width: 90vw;
  text-align: center;
  z-index: 3001;
  opacity: 0;
  pointer-events: none;
  font-size: 15px;
  color: #fff;
  background: rgba(30,30,30,0.85);
  padding: 18px 38px;
  border-radius: 10px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 20px rgba(33,118,174,0.15);
  transform: translateY(40px);  /* Start slightly off the bottom */
  transition:
    opacity 0.35s cubic-bezier(.65,.01,.29,1.15),
    transform 0.35s cubic-bezier(.65,.01,.29,1.15);
}
.wish-message.visible {
  opacity: 1;
  transform: translateY(0);     /* Slide up into view */
}
.wish-message.hide {
  opacity: 0;
  transform: translateY(40px); /* Slide down out */
}
/* Stripe Elements neutral look */
/*#tfw-card-holder { box-shadow: 0 2px 8px rgba(20,30,40,0.08); }*/
#tfw-step2 label, #tfw-step2 select, #tfw-step2 input { font-family:'Poppins', Arial, sans-serif; }
#tfw-step2 select, #tfw-step2 input { border:none; outline:none; }

/* COUNTDOWN */
.countdown {
  display:none; position:fixed; left:0; top:0; width:100vw; height:100vh; z-index:4100;
  align-items:center; justify-content:center;
  font-size:140px; font-weight:900; color:#ffe073; text-shadow:0 8px 24px rgba(0,0,0,0.15);
  background:rgba(30,40,60,0.13); pointer-events:none;
  animation:fadeIn .35s;
}
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
.countdown .bignum { animation:bounce 0.45s; }
@keyframes bounce {
  0% { transform:scale(1.35);}
  60% { transform:scale(0.92);}
  100% { transform:scale(1);}
}

/* Responsive */
@media (max-width:650px) {
  .main-header { height:68px; padding:0 12px;}
  .main-header .site-logo { height:27px;}
  .header-nav .nav-link { font-size:.95rem;}
  .main-footer { height:50px; padding:0 8px; font-size:.85rem;}
  .wish-popup-inner { min-width:0; width:98vw; max-width:100vw; padding:45px 25px 45px;}
}
/* Popup back arrow */
.tfw-back{
  position:absolute; left:18px; top:16px; z-index:2;
  background:transparent; border:none; color:#fff; font-size:22px; line-height:1;
  opacity:.85; cursor:pointer; transition:opacity .2s, transform .2s;
}
.tfw-back:hover{ opacity:1; transform:translateX(-2px); }

/* Amount section (Step 1) */
.tfw-amount-label{
  color:#cfd6ff; font-size:13px; margin:18px 0 8px; letter-spacing:.01em;
}
.tfw-amount-buttons{
  display:flex; gap:10px; flex-wrap:wrap; margin:0 0 12px;
}
.tfw-amount-btn{
  appearance:none; border:none; cursor:pointer; padding:10px 14px;
  border-radius:12px; font-weight:600; letter-spacing:.01em; font-size:14px;
  color:#ffe9b0; background:linear-gradient(180deg, #2a3144, #1b2132);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 6px 16px rgba(10,18,34,.18);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.tfw-amount-btn:hover{ transform:translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 22px rgba(10,18,34,.24); }
.tfw-amount-btn.is-active{
  color:#0b0f19;
  background:linear-gradient(180deg, #FFD35A, #FFB300);
  box-shadow: 0 8px 26px rgba(255,179,0,.35);
}

/* Stripe panel host (Step 2 container tweaks) */
/*.tfw-card-holder{*/
/*  background: rgba(255,255,255,0.06);*/
/*  border-radius:16px; padding:14px; border:1px solid rgba(255,255,255,0.10);*/
/*  backdrop-filter: blur(8px);*/
/*}*/
.tfw-card-errors{
  min-height:18px; color:#ff8b8b; font-size:12px; margin-top:8px;
}
.tfw-recaptcha-note a{
    color: #ffd50b;
}
#tfw-card-errors {
    text-align: center;
}
#tfw-pay-status {
  text-align: center;
}
.tfw-recaptcha-note {
    text-align: center;
}



/* Terms row */
.tfw-terms-row{
  display:flex; gap:8px; align-items:flex-start; margin-top:12px; color:#cfd6ff; font-size:12px;
}
.tfw-terms-row a{ color:#ffd76c; text-decoration:underline; }

/* Pay status */
.tfw-pay-status{ color:#cfd6ff; font-size:12px; opacity:.9; margin-top:8px; }

/* Make the popup header spacing breathe a little on step2 */
#tfw-step2 + .tfw-recaptcha-note{ margin-top:8px; }
svg.icon {
    height: 24px;
}
svg {
    height: 31px;
}
button#popupNextBtn {
    width: 100%;
}
.grecaptcha-badge {
    z-index: 9;
}