/* ================= GLOBAL ================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

body{
  background:linear-gradient(135deg,#667eea,#764ba2);
  color:#fff;
  transition:background 0.3s ease,color 0.3s ease;
  min-height:100vh;
  -webkit-tap-highlight-color:transparent;
}

/* Safe area for notch phones */
.container{
  padding:20px;
  padding-bottom:80px;
}

/* ================= HEADER ================= */

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 20px;
  background:rgba(0,0,0,0.25);
  backdrop-filter:blur(8px);
  position:sticky;
  top:0;
  z-index:999;
}

.topbar h2{
  font-size:18px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:6px;
}

.header-right{
  display:flex;
  align-items:center;
  gap:8px;
}

/* Small icon buttons (install/theme/refresh) */

.small-btn{
  width:38px;
  height:38px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,0.2);
  color:#fff;
  cursor:pointer;
  font-size:15px;
  transition:0.25s;
  display:flex;
  align-items:center;
  justify-content:center;
}

.small-btn:hover{
  transform:scale(1.08);
  background:rgba(255,255,255,0.3);
}

/* ================= Install BTN ========= */ 

#installBtn{
  background:#4caf50;
  color:#fff;
  padding:6px 12px;
  border:none;
  border-radius:8px;
  font-size:13px;
  cursor:pointer;
  margin-right:6px;
  display:none;
  transition:0.25s;
}

#installBtn:hover{
  opacity:0.9;
  transform:scale(1.05);
}

/* ================= CARD ================= */

.card{
  background:rgba(255,255,255,0.14);
  padding:22px;
  border-radius:16px;
  margin-bottom:22px;
  backdrop-filter:blur(12px);
  box-shadow:0 6px 18px rgba(0,0,0,0.18);
}

/* ================= FORM ================= */

.form-group{
  margin-bottom:16px;
}

.form-group label{
  font-size:13px;
  margin-bottom:5px;
  display:block;
  opacity:0.9;
}

select,input{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:none;
  outline:none;
  font-size:14px;
  min-height:44px;
}

input:focus,select:focus{
  box-shadow:0 0 0 2px rgba(255,255,255,0.35);
}

/* Two column */

.row-2{
  display:flex;
  gap:12px;
}

.row-2 .form-group{
  flex:1;
}

/* ================= MOBILE FIX ================= */

@media(max-width:768px){

  .container{
    padding:15px;
  }

  .row-2{
    flex-direction:column;
    gap:0;
  }

  .topbar h2{
    font-size:16px;
  }

  .small-btn{
    width:36px;
    height:36px;
  }

}

/* ================= BUTTON ================= */

button{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:none;
  background:linear-gradient(135deg,#36d1dc,#5b86e5);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  margin-top:10px;
  min-height:45px;
  transition:transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

button:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 15px rgba(0,0,0,0.25);
}

button:active{
  transform:scale(0.97);
}

button:focus{
  outline:none;
  box-shadow:0 0 0 2px rgba(255,255,255,0.4);
}

/* ================= ACTION BUTTON GROUP ================= */

.action-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.action-buttons button{
  flex:1;
  min-width:120px;
}

/* ====== PREMIUM BUTTONS ====*/

.pay-btn,
.whatsapp-btn,
.community-btn,
.telegram-btn{
  display:block;
  margin:10px 0;
  padding:12px;
  border-radius:12px;
  text-align:center;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  transition:transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

/* Individual colors */

.pay-btn{
  background:linear-gradient(135deg,#00c853,#009624);
}

.whatsapp-btn{
  background:#25D366;
}

.community-btn{
  background:#128C7E;
}

.telegram-btn{
  background:#0088cc;
}

/* Hover + tap */

.pay-btn:hover,
.whatsapp-btn:hover,
.community-btn:hover,
.telegram-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 5px 14px rgba(0,0,0,0.25);
}

.pay-btn:active,
.whatsapp-btn:active,
.community-btn:active,
.telegram-btn:active{
  transform:scale(0.96);
}

/* ================= QR IMAGE ================= */

.qr-img{
  width:170px;
  max-width:80%;
  margin:12px auto;
  display:block;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
}

/* ================= MOBILE FIX ================= */

@media(max-width:600px){

  .action-buttons{
    flex-direction:column;
  }

  .action-buttons button{
    width:100%;
  }

  .qr-img{
    width:150px;
  }

}

/* ================= TABLE ================= */

.table-wrapper{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:12px;
}

table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
  overflow:hidden;
  border-radius:12px;
}

th,td{
  padding:10px 8px;
  text-align:center;
  font-size:13px;
  white-space:nowrap;
}

th{
  background:rgba(0,0,0,0.35);
  font-weight:600;
}

td{
  background:rgba(255,255,255,0.12);
}

tr:nth-child(even) td{
  background:rgba(255,255,255,0.08);
}

/* ================= INVOICE (PDF SAFE) ================= */

#invoiceTemplate{
  position:fixed;
  top:0;
  left:0;
  opacity:0;
  pointer-events:none;
  z-index:-1;
  width:800px;
  background:#fff;
  color:#000;
  padding:20px;
  font-size:14px;
}

.invoice-title{
  text-align:center;
  margin-bottom:5px;
}

.dark-invoice .invoice-title{
  color:#ff9800 !important;
}
/* ================= LIGHT ================= */
.light-invoice th{
  background:linear-gradient(135deg,#667eea,#764ba2) !important;
}

.light-invoice tbody tr:nth-child(even){
  background:#f6f8ff;
}

.light-invoice #invoiceTotal{
  color:#4CAF50 !important;
  font-size:18px;
  font-weight:700;
}
/* ================= DARK PDF PRO ================= */
.dark-invoice{
  background:#121212 !important;
  color:#f5f5f5 !important;
  font-weight:600;
}

/* Header title */
.dark-invoice .invoice-title{
  color:#ff9800 !important;
  text-shadow:0 0 6px rgba(255,152,0,0.3);
}

/* Table */
.dark-invoice table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
  border-radius:10px;
  overflow:hidden;
}

/* Header row */
.dark-invoice th{
  background:linear-gradient(135deg,#ff9800,#ff5722) !important;
  color:#000 !important;
  padding:10px;
  font-size:13px;
}

/* Body rows */
.dark-invoice td{
  padding:9px;
  border-bottom:1px solid #2c2c2c !important;
  color:#eee !important;
}

/* Zebra effect */
.dark-invoice tbody tr:nth-child(even){
  background:#1a1a1a;
}

.dark-invoice tbody tr:nth-child(odd){
  background:#161616;
}

/* Total */
.dark-invoice #invoiceTotal{
  color:#00e676 !important;
  font-size:18px;
  font-weight:700;
}

/* Signature */
.dark-invoice .signature{
  color:#aaa !important;
}

/* ================= PREMIUM BOX ================= */

.premium-box{
  margin-top:15px;
  padding:16px;
  border-radius:12px;
  background:rgba(255,255,255,0.18);
  text-align:center;
  display:none;
  backdrop-filter:blur(10px);
  box-shadow:0 6px 18px rgba(0,0,0,0.2);
}

.premium-box h4{
  margin-bottom:6px;
  font-size:15px;
}

.premium-box button{
  background:linear-gradient(135deg,#ff9966,#ff5e62);
  margin-top:8px;
}

/* ================= UPDATE BANNER ================= */

#updateBanner{
  position:fixed;
  top:-80px;
  left:50%;
  transform:translateX(-50%);
  background:linear-gradient(135deg,#ff512f,#dd2476);
  color:#fff;
  padding:12px 25px;
  border-radius:30px;
  font-size:14px;
  box-shadow:0 10px 25px rgba(0,0,0,0.3);
  transition:top 0.4s ease;
  z-index:9999;
}

#updateBanner.show{
  top:20px;
}

/* ================= FLOATING SHARE BUTTON ================= */

.fab{
  position:fixed;
  bottom:25px;
  right:20px;
  width:56px;
  height:56px;
  border-radius:50%;
  border:none;
  font-size:20px;
  background:linear-gradient(135deg,#ff9966,#ff5e62);
  color:#fff;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(0,0,0,0.3);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.fab:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(0,0,0,0.35);
}

.fab:active{
  transform:scale(0.95);
}

/* ================= MOBILE FIX ================= */

@media(max-width:600px){

  th,td{
    font-size:12px;
    padding:8px 6px;
  }

  .fab{
    bottom:18px;
    right:15px;
    width:50px;
    height:50px;
  }

}
/* ================= DARK MODE ================= */

body.dark{
  background:#121212;
  color:#f5f5f5;
}

body.dark .card{
  background:rgba(255,255,255,0.06);
}

body.dark th{
  background:#1e1e1e;
}

body.dark td{
  background:rgba(255,255,255,0.04);
}

body.dark tr:nth-child(even) td{
  background:rgba(255,255,255,0.02);
}

body.dark button{
  background:linear-gradient(135deg,#ff512f,#dd2476);
}

body.dark .small-btn{
  background:rgba(255,255,255,0.1);
}

body.dark .sub-card{
  background:rgba(255,255,255,0.05);
}

/* ================= BADGES ================= */

.premium-badge{
  padding:5px 12px;
  border-radius:20px;
  font-size:11px;
  font-weight:600;
  background:#ccc;
  color:#000;
  margin-left:8px;
}

.premium-active{
  background:linear-gradient(135deg,#FFD700,#FFA500);
  color:#000;
}

.trial-active{
  background:#4caf50;
  color:#fff;
}

.expired{
  background:#f44336;
  color:#fff;
}

/* ================= SUB CARD ================= */

.sub-card{
  padding:12px;
  border-radius:12px;
  margin-bottom:15px;
  background:rgba(255,255,255,0.12);
  font-size:14px;
  backdrop-filter:blur(8px);
}

/* ================= LOCK ANIMATION ================= */

.locked{
  animation: shake 0.45s ease;
}

@keyframes shake{
  0%{transform:translateX(0);}
  30%{transform:translateX(-4px);}
  60%{transform:translateX(4px);}
  100%{transform:translateX(0);}
}

/* ================= MOBILE ================= */

@media(max-width:768px){

  .container{
    padding:14px;
  }

  .card{
    padding:16px;
  }

  .row-2{
    flex-direction:column;
    gap:0;
  }

  th,td{
    font-size:12px;
    padding:7px 5px;
  }

}

/* ================= POLICY / ABOUT PAGES ================= */

.page-container{
  max-width:650px;
  margin:auto;
  padding:20px;
  line-height:1.6;
  font-family:'Poppins',sans-serif;
}

.page-container h2{
  margin-bottom:15px;
}

.page-container a{
  display:inline-block;
  margin-top:20px;
  color:#4caf50;
  text-decoration:none;
  font-weight:600;
}

/* ================= GOOGLE ADS (CLS SAFE) ================= */

.adsbygoogle{
  display:block;
  min-height:90px; /* CLS safe */
  margin:18px 0;
  text-align:center;
}




/* ================= THEME TRANSITION ================= */

body{
  transition: background 0.3s ease, color 0.3s ease;
}

/* ================= LIGHT MODE ================= */

body.light{
  background:#f5f7fb;
  color:#222;
}

body.light .card{
  background:#ffffff;
  color:#222;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

body.light .sub-card{
  background:#f0f2f8;
  color:#222;
}

body.light td{
  background:#fff;
  color:#222;
}

body.light th{
  background:#667eea;
  color:#fff;
}

/* ================= DARK MODE FIX ================= */

body.dark{
  background:#121212;
  color:#f5f5f5;
}

body.dark .card{
  background:rgba(255,255,255,0.07);
  color:#fff;
}

body.dark .sub-card{
  background:rgba(255,255,255,0.06);
  color:#fff;
}

body.dark td{
  background:#1e1e1e;
  color:#fff;
}

body.dark th{
  background:#333;
  color:#fff;
}

/* ================= COMMON ================= */

a{
  text-decoration:none;
  color:inherit;
}

#premiumBadge{
  transition:0.3s ease;
}

.table-wrapper{
  overflow-x:auto;
}
/* ======= header invoice ======= */ 
.invoice-header{
  text-align:center;
}

.invoice-logo{
  width:70px;
}

.invoice-header h2{
  color:#764ba2;
  margin:5px 0;
}

.invoice-table{
  width:100%;
  border-collapse:collapse;
  margin-top:15px;
}

.invoice-table th{
  background:#667eea;
  color:#fff;
  padding:8px;
  border:1px solid #ddd;
}

.invoice-table td{
  padding:8px;
  border:1px solid #ddd;
}

.invoice-total{
  text-align:right;
  margin-top:20px;
}

.invoice-sign{
  margin-top:40px;
  text-align:right;
}
