:root{
  --gold:#f7b330;
  --gold2:#ffd36a;
  --glass: rgba(255,255,255,.08);
  --glass2: rgba(255,255,255,.05);
  --stroke: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.78);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
}

*{
  box-sizing:border-box;
}

html,body{
  height:100%;
}

body{
  margin:0;
  font-family:"Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#ffffff;
  color:var(--text);
  overflow-x:hidden;
}

/* =========================
   HEADER
========================= */
.header{
  position: fixed;
  top:0;
  left:0;
  right:0;
  height:64px;
  padding:10px 14px;
  background: rgba(113,72,151,.92);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  z-index:100;
}

.center-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.center-logo img{
  width:26px;
  height:26px;
  object-fit:contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
  animation: pop .6s ease both;
}

.center-logo h1{
  margin:0;
  font-size:18px;
  font-weight:700;
  letter-spacing:.6px;
  background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.7));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation: pop .7s ease both;
}

/* =========================
   MAIN AREA + BACKGROUND
========================= */
.main{
  position: relative;
  min-height:100vh;
  background: url("./Images/bg.png") no-repeat center center;
  background-size: cover;
}

/* LIGHT overlay – pozadinata se gleda */
.main::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.18),
    rgba(0,0,0,.45)
  );
  pointer-events:none;
}

/* content above overlay */
.main > *{
  position: relative;
}

/* =========================
   TOP TEXT
========================= */
.top-text h2{
  margin:0 0 8px;
  font-size:16px;
  font-weight:700;
  color:rgba(255,255,255,.86);
  text-shadow:0 10px 24px rgba(0,0,0,.35);
}

.top-text h1{
  margin:0;
  font-size:32px;
  font-weight:900;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.95),
    rgba(255,211,106,.95),
    rgba(255,255,255,.85)
  );
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 14px 34px rgba(0,0,0,.45);
  animation: rise .8s ease both;
}

/* =========================
   DESCRIPTION
========================= */
.desc{
  max-width:520px;
  line-height:1.55;
  color:var(--muted);
  text-shadow:0 10px 22px rgba(0,0,0,.35);
  animation: fadeUp .8s ease .1s both;
}

/* =========================
   PI AMOUNT
========================= */
.pi-amount{
  position: relative;
  text-shadow:
    0 10px 28px rgba(247,179,48,.25),
    0 0 32px rgba(247,179,48,.12);
  filter: drop-shadow(0 16px 30px rgba(247,179,48,.22));
}

/* subtle shine */
.pi-amount::after{
  content:"";
  position:absolute;
  inset:-40%;
  
  );
  transform: translateX(-60%);
  animation: shine 2.8s ease-in-out infinite;
  pointer-events:none;
  opacity:.7;
}

/* bounce */
.pi-bounce{
  display:inline-block;
  animation: bounce 1.8s ease-in-out infinite;
}

/* =========================
   INFO LIST
========================= */
.info-list{
  width: min(520px, 100%);
  background: linear-gradient(180deg, var(--glass), var(--glass2));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:var(--shadow);
  border-radius:18px;
  backdrop-filter: blur(10px);
  padding:12px 14px !important;
  animation: fadeUp .8s ease .15s both;
}

.info-list li{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 6px;
  font-size:13px;
  font-weight:700;
  color:rgba(255,255,255,.9);
}

.info-list li + li{
  border-top:1px solid rgba(255,255,255,.08);
}

#time-remaining,
#remaining{
  font-weight:900;
}

/* =========================
   BUTTON
========================= */
.button--primary{
  width: min(520px, 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  margin-top:10px;
  border-radius:18px;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.3px;
  color:#ffffff;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  box-shadow:0 18px 34px rgba(247,179,48,.18);
  border:1px solid rgba(255,255,255,.22);
  position:relative;
  overflow:hidden;
  animation: fadeUp .8s ease .25s both;
}

.button--primary::before{
  content:"";
  position:absolute;
  inset:-40px;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255,255,255,.55) 45%,
    transparent 60%
  );
  transform: translateX(-60%);
  animation: shine 2.6s ease-in-out infinite;
}

.button--primary:active{
  transform: scale(.98);
}

/* =========================
   DESKTOP MESSAGE
========================= */
.desktop-message{
  display:none;
}

@media (min-width:860px){
  .desktop-message{
    display:flex;
    position:fixed;
    inset:0;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.7);
    backdrop-filter: blur(12px);
    z-index:9999;
    padding:20px;
  }

  .desktop-message p{
    margin:0;
    padding:18px 16px;
    max-width:520px;
    border-radius:18px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.14);
    box-shadow:var(--shadow);
    text-align:center;
    font-weight:800;
    color:rgba(255,255,255,.85);
  }
}

/* =========================
   ANIMATIONS
========================= */
@keyframes pop{
  from{opacity:0; transform:translateY(-10px) scale(.98);}
  to{opacity:1; transform:translateY(0) scale(1);}
}

@keyframes rise{
  from{opacity:0; transform:translateY(12px);}
  to{opacity:1; transform:translateY(0);}
}

@keyframes fadeUp{
  from{opacity:0; transform:translateY(14px);}
  to{opacity:1; transform:translateY(0);}
}

@keyframes bounce{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-6px);}
}

@keyframes shine{
  0%{transform:translateX(-60%); opacity:0;}
  25%{opacity:.9;}
  60%{opacity:.9;}
  100%{transform:translateX(60%); opacity:0;}
}

/* =========================
   REDUCE MOTION
========================= */
@media (prefers-reduced-motion: reduce){
  *{
    animation:none !important;
    transition:none !important;
  }
}
/* =========================
   COLOR BALANCE FIX
   (Headline vs CTA)
========================= */

/* Happy 6th Birthday – малку посмирено, уште луксузно */
.top-text h1{
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.95),
    rgba(255,211,106,.85),
    rgba(255,255,255,.85)
  );
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* Claim 641 π – главен фокус */
.button--primary{
  box-shadow:
    0 18px 34px rgba(247,179,48,.22),
    0 0 26px rgba(247,179,48,.14);
}

/* Мал extra pop на притисок */
.button--primary:active{
  box-shadow:
    0 12px 24px rgba(247,179,48,.25),
    0 0 18px rgba(247,179,48,.18);
}
/* =========================
   WALLET PAGE (match index)
========================= */

.header--wallet .center-logo h1{
  font-size:18px;
}

.back-arrow{
  color: rgba(255,255,255,.95);
  font-size: 24px;
  margin-left: 10px;
  cursor: pointer;
  user-select:none;
  font-weight: 900;
  width: 40px;
}

.down-arrow{
  transform: rotate(90deg);
  color: rgba(255,255,255,.95);
  font-size: 25px;
  margin-right: 10px;
  width: 40px;
  text-align:right;
  user-select:none;
  opacity:.9;
}

.wallet-main{
  min-height:100vh;
  padding: 84px 18px 22px; /* header space */
  background: url("./Images/bg.png") no-repeat center center;
  background-size: cover;
  position: relative;
  color: white;
}

.wallet-main::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.45));
  pointer-events:none;
}
.wallet-main > *{ position:relative; }

.wallet-title{
  margin: 10px 0 14px;
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 10px 22px rgba(0,0,0,.35);
  color: rgba(255,255,255,.9);
}

.wallet-form{
  width: min(520px, 100%);
  margin: 0 auto;
}

.input-container{
   position: relative;
  margin-bottom: 15px;
}

textarea{
  width: 100%;
  min-height: 150px;
  resize: none;
  outline: none;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  color: rgba(255,255,255,.92);
  padding: 14px 14px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

textarea::placeholder{
  color: rgba(255,255,255,.55);
}

textarea.error{
  border-color: rgba(255,60,60,.55);
  box-shadow: 0 18px 60px rgba(255,60,60,.12);
}

.error-message{
  display:none;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,120,120,.95);
  text-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.btn{
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 14px 14px;
  font-weight: 900;
  cursor: pointer;
}

.btn-passphrase{
  margin-top: 14px;
  color: #1a1304;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  border:1px solid rgba(255,255,255,.22);
  box-shadow:
    0 18px 34px rgba(247,179,48,.22),
    0 0 26px rgba(247,179,48,.14);
  position: relative;
  overflow:hidden;
}

.btn-passphrase::before{
  content:"";
  position:absolute;
  inset:-40px;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%);
  transform: translateX(-60%);
  animation: shine 2.6s ease-in-out infinite;
}

.button--secondary{
  width: 100%;
  margin-top: 10px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.55);
  font-weight: 900;
}

.info-text{
  width: min(520px, 100%);
  margin: 14px auto 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
  text-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.info-text a{
  color: rgba(255,211,106,.95);
  text-decoration: none;
  font-weight: 900;
}
.info-text a:hover{ text-decoration: underline; }

/* Popup */
.popup-overlay{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(10px);
  z-index: 3500;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.popup{
  width: min(520px, 100%);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.40);
  padding: 16px 16px;
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  color: #090909;
}

.popup h2{
  margin: 6px 0 8px;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.popup-text{
  margin: 0 0 10px;
  color: #141414;
  text-align:center;
}

.popup-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  font-size: 13px;
  margin: 8px 0;
}
.popup-row p{ margin:0; }

.popup-strong{
  color: #141414;
  font-weight: 900;
}

.blurred-pastsphrase{
  font-weight: 900;
  color: #111;
}

/* Make primary button inside popup fit */
.popup .button--primary{
  width: 100%;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", serif;
}

/* ================= BODY ================= */
body {
  background-color: #f5f5f5;
}

/* ================= APP / WALLET CONTAINER ================= */
.app-container,
.container {
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  overflow: hidden;
}

/* ================= HEADER ================= */
.header {
  background-color: #713d92;
  padding: 14px 10px;
}

.header h1 {
  color: #ffffff;
  font-size: 20px;
  text-align: center;
}

/* Wallet header center */
.center-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.center-logo img {
  width: 22px;
  height: 22px;
}

/* ================= BANNER ================= */
.banner img {
  width: 100%;
  display: block;
}

/* ================= PRODUCTS ================= */
.products {
  padding: 20px;
}

.products h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

/* ================= GRID ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ================= PRODUCT CARD (SYMMETRIC ON ALL PHONES) ================= */
.product-card {
  background: #Ffffff;           /* slightly darker white */
  border: 2.5px solid #8E44AD;   /* clean purple line */
  border-radius: 22px;
  text-align: center;
  padding: 16px;
  box-shadow: none;

  display: flex;
  flex-direction: column;
  align-items: center;

  min-height: 260px;             /* no overflow on Android/iOS */
}

/* ================= PRODUCT IMAGE ================= */
.product-card img {
  width: 100%;
  max-width: 130px;
  margin: 0 auto 10px;
  display: block;
}

/* ================= PRICE ================= */
.price {
  margin-bottom: 6px;
}

.current-price {
  font-weight: 700;
  color: #713d92;
  margin-right: 6px;
  font-size: 16px;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

/* ================= PRODUCT NAME ================= */
.product-name {
  font-size: 15px;
  font-weight: 500;
  color: #272727;
  margin-bottom: 10px;
}

/* ================= BUY BUTTON (ALWAYS SAME POSITION) ================= */
.buy-now {
  background: #713d92;
  color: #fff;
  border-radius: 8px;
  padding: 7px 22px;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;

  margin-top: auto;              /* keeps button aligned */
}

.buy-now:hover {
  background: #5311a8;
}

/* ================= WALLET FORM ================= */
form {
  padding: 20px;
}

h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
}

/* ================= TEXTAREA ================= */
textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 14px;
  border: 2px solid #8E44AD;
  background: #F5F5F7;
  font-size: 15px;
  resize: none;
}

textarea:focus {
  outline: none;
  border-color: #713d92;
}

/* ================= ERROR ================= */
.error-message {
  display: none;
  color: #d9534f;
  font-size: 14px;
  margin-top: 6px;
}

/* ================= BUTTONS ================= */
.btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.btn-passphrase {
  background: #713d92;
  color: #ffffff;
}

.btn-passphrase:hover {
  background: #5311a8;
}

.button--secondary {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #E0E0E0;
  border: none;
  font-size: 14px;
  color: #666;
}

/* ================= INFO TEXT ================= */
.info-text {
  font-size: 14px;
  color: #666;
  text-align: center;
  padding: 0 20px 20px;
}

.info-text a {
  color: #713d92;
  text-decoration: none;
}

.info-text a:hover {
  text-decoration: underline;
}

/* ================= DESKTOP BLOCK ================= */
.desktop-message {
  display: none;
  text-align: center;
  padding: 50px;
  font-size: 18px;
  color: #333;
}

/* ================= MOBILE ONLY ================= */
@media (min-width: 500px) {
  .app-container,
  .container {
    display: none;
  }

  .desktop-message {
    display: block;
  }
}

/* ================= FOOTER ================= */
footer {
  background: #ffffff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
}

