:root{
  --bg:#0d0a1a;
  --card:#150f2a;
  --accent:#a855f7;
  --accent2:#7c3aed;
  --text:#ffffff;
  --muted:#b8aad4;
  --border:#2a1f4a;
}
*{box-sizing:border-box;margin:0;font-family:Inter,system-ui}
body{
  background:linear-gradient(180deg,#0d0a1a,#080612);
  color:var(--text);
}
.hidden{display:none}
.fade{animation:fade .35s ease}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1}}

/* HEADER */
.site-header{
  padding:20px;
  border-bottom:1px solid var(--border);
}
.site-header h1{font-size:22px}
.site-header p{color:var(--muted);font-size:14px;margin-top:4px}

/* SEARCH INPUT */
.search-input{
  position: relative;
}
input, textarea {
  touch-action: manipulation;
}
.search-input input{
  width: 100%;
  padding: 14px 44px 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(168,85,247,0.18);
  background: rgba(21,15,42,0.8);
  color: #fff;
  font-size: 16px;
}
.search-input input::placeholder{color:#8070a8}
.search-input input:focus{
  outline:none;
  border-color:rgba(168,85,247,0.5);
  box-shadow:0 0 0 2px rgba(168,85,247,.18);
}
.search-icon{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  font-size: 16px;
  pointer-events: none;
}

/* GRID */
.container{padding:16px}
.grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
@media(min-width:900px){
  .grid{grid-template-columns:repeat(6,1fr)}
}
.card{
  background:var(--card);
  border-radius:14px;
  padding:14px;
  cursor:pointer;
  transition:.2s;
  border:1px solid rgba(168,85,247,0.1);
}
.card:hover{
  transform:scale(1.05);
  border-color:rgba(168,85,247,0.35);
  box-shadow:0 8px 24px rgba(168,85,247,0.15);
}
.card img{width:100%;border-radius:12px}
.card h4{margin-top:10px}
.card span{color:#ffd34f;font-size:12px}

/* FOOTER */
footer{
  padding:20px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

/* DETAILS */
.back{padding:16px;color:var(--muted);cursor:pointer}
.hero{
  padding:24px;
  background:linear-gradient(120deg,rgba(168,85,247,.2),rgba(0,0,0,.7));
  border-bottom:1px solid var(--border);
}
.hero-top{
  display:flex;
  gap:16px;
  align-items:center;
}
.hero-top img{
  width:78px;
  height:78px;
  border-radius:18px;
}
.hero .meta{color:var(--muted);font-size:13px}
.full-download{
  margin-top:18px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  padding:16px;
  text-align:center;
  border-radius:16px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 0 20px rgba(168,85,247,.4);
}

/* SECTIONS */
.section{
  padding:20px;
  border-bottom:1px solid var(--border);
}
.section h3{margin-bottom:8px}
.section p{color:var(--muted);font-size:14px}
.info-row{
  display:flex;
  justify-content:space-between;
  padding:10px 0;
}

/* PERMISSIONS */
.permissions{padding:24px}
.permissions ul{list-style:none;margin-top:16px}
.permissions li{
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.allow{
  margin-top:20px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  padding:16px;
  text-align:center;
  border-radius:16px;
  font-weight:600;
  cursor:pointer;
}

/* PLAY STORE STYLE LOADER */
#loader, #finalLoader {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 24px 100px;
  position: relative;
}
#loader.hidden, #finalLoader.hidden { display: none; }

.ps-loader-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 48px;
  gap: 12px;
}

/* STEP INDICATORS */
.ps-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
  width: 100%;
  justify-content: center;
}
.ps-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  transition: color .3s;
}
.ps-step.active { color: var(--accent); }
.ps-step.done   { color: #4dff9e; }

.ps-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 2px solid #2a1f4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: background .3s, border-color .3s;
}
.ps-step.active .ps-step-dot {
  background: rgba(168,85,247,0.2);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(168,85,247,.4);
}
.ps-step.done .ps-step-dot {
  background: rgba(77,255,158,0.15);
  border-color: #4dff9e;
  color: #4dff9e;
}

.ps-step-line {
  flex: 1;
  height: 2px;
  background: #2a1f4a;
  margin: 0 6px;
  margin-bottom: 22px;
  min-width: 30px;
  transition: background .3s;
}
.ps-step-line.done { background: #4dff9e; }

/* RING + ICON */
.ps-ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 8px 0 4px;
}
.ps-ring {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
  position: absolute;
  top: 0; left: 0;
}
.ps-ring-bg {
  fill: none;
  stroke: #2a1f4a;
  stroke-width: 6;
}
.ps-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.5s ease;
  filter: drop-shadow(0 0 6px rgba(168,85,247,.7));
}
.ps-app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}

.ps-percent {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.ps-app-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.ps-status-text {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  min-height: 18px;
  transition: color .3s;
}
.ps-size-text {
  font-size: 12px;
  color: #8070a8;
  text-align: center;
}

/* PILL PROGRESS BAR */
.ps-bar-wrap {
  width: 100%;
  height: 8px;
  background: #100c20;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #2a1f4a;
}
.ps-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a855f7, #c084fc, #a855f7);
  background-size: 200% 100%;
  animation: flow 1.8s linear infinite;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(168,85,247,.5);
  transition: width 0.5s ease;
}
@keyframes flow {
  0%  { background-position: 0% }
  100%{ background-position: 200% }
}

/* STATUS CHIPS */
.ps-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}
.ps-chip {
  background: rgba(77,255,158,0.08);
  border: 1px solid rgba(77,255,158,0.2);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #4dff9e;
  animation: chipIn .3s ease both;
}
@keyframes chipIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vanta-bg{
  position: relative;
}
.vanta-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(13,10,26,.85),rgba(13,10,26,.95));
  z-index:0;
}
.vanta-bg > *{
  position:relative;
  z-index:1;
}
#vanta-root{
  position: relative;
  min-height: 100vh;
}
#vanta-root::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(13,10,26,0.88),rgba(13,10,26,0.95));
  z-index: 0;
}
#vanta-root > *{
  position: relative;
  z-index: 1;
}

/* DARK CONTENT BOX */
.content-box{
  background: rgba(8,5,18,0.94) !important;
  border: 1px solid #2a1f4a;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}
.section{
  margin: 16px;
  background: none !important;
}
.section.content-box{
  padding:18px;
}
.permissions-box{
  max-width:520px;
  margin:40px auto;
}

/* BOTTOM NAV */
.bottom-nav{
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13,10,28,.95);
  border: 1px solid #2a1f4a;
  border-radius: 20px;
  display: flex;
  gap: 8px;
  padding: 10px;
  z-index: 999;
  backdrop-filter: blur(8px);
}
.nav-item{
  flex: 1;
  padding: 12px 18px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: .2s;
}
.nav-item.active{
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  color: #fff;
}
.nav-item svg{
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}
.bottom-nav.hidden-nav{
  display: none !important;
}

/* APP CARD BADGE */
.card-icon-wrap{
  position: relative;
}
.app-badge{
  position: absolute;
  top: -6px;
  left: -6px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(168,85,247,.5);
  text-transform: uppercase;
}

/* HEADER */
.header-center{ text-align: center; }
.site-title{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #e0b8ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-tagline {
  font-size: 13px;
  margin-top: 8px;
  color: #9a8cbf;
  letter-spacing: 1px;
}

/* CARD FEATURE TEXT */
.card-feature{
  margin-top: 4px;
  font-size: 12px;
  color: #c084fc;
  font-weight: 600;
  line-height: 1.3;
}
.star-rating{
  margin-top: 4px;
  color: #ffd34f;
  font-size: 14px;
  letter-spacing: 1px;
}

/* GLASS HEADER */


/* DOWNLOAD READY SCREEN */
#downloadReady{
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px 100px;
}
#downloadReady.hidden{ display: none; }

.dl-ready-wrap{
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.dl-ready-check{
  font-size: 64px;
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn{
  from{ transform: scale(0); opacity: 0; }
  to  { transform: scale(1); opacity: 1; }
}
.dl-ready-title{
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.dl-ready-sub{
  font-size: 14px;
  color: var(--muted);
  margin-top: -6px;
}
.dl-file-card{
  width: 100%;
  text-align: left;
  padding: 20px !important;
}
.dl-file-header{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2a1f4a;
}
.dl-file-icon{
  width: 58px;
  height: 58px;
  border-radius: 14px;
  flex-shrink: 0;
}
.dl-file-name{
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.dl-file-ver{
  font-size: 13px;
  color: var(--accent);
  margin-top: 3px;
}
.dl-info-grid{
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dl-info-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(42,31,74,.6);
  font-size: 14px;
}
.dl-info-row:last-child{ border-bottom: none; }
.dl-info-label{
  color: var(--muted);
  font-size: 13px;
}
.dl-info-val{
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-align: right;
  max-width: 56%;
  word-break: break-all;
}
.dl-safe{ color: #4dff9e; }

.dl-now-btn{
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(168,85,247,.45);
  transition: transform .15s, box-shadow .15s;
  letter-spacing: 0.3px;
}
.dl-now-btn:active{
  transform: scale(0.97);
  box-shadow: 0 4px 14px rgba(168,85,247,.3);
}

/* DEVICE VERIFICATION REQUIRED */
#verifyBanner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px 100px;
}
#verifyBanner.hidden { display: none; }

.vr-screen {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
}
.vr-top { width: 100%; }
.vr-frozen-bar-wrap {
  width: 100%;
  background: rgba(8,5,18,0.94);
  border: 1px solid #2a1f4a;
  border-radius: 14px;
  padding: 14px 16px;
}
.vr-frozen-bar {
  width: 100%;
  height: 8px;
  background: #100c20;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid #2a1f4a;
}
.vr-frozen-bar::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #c084fc);
  border-radius: 999px;
}
.vr-frozen-bar::before {
  content: "";
  position: absolute;
  left: calc(50% - 5px);
  top: -3px;
  width: 10px;
  height: 14px;
  background: #ffcc44;
  border-radius: 3px;
  animation: warnPulse 1.2s ease-in-out infinite;
  z-index: 2;
}
@keyframes warnPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.7); }
}
.vr-frozen-label {
  margin-top: 8px;
  font-size: 12px;
  color: #ffcc44;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.vr-card {
  width: 100%;
  background: rgba(8,5,18,0.96);
  border: 1px solid #2a1f4a;
  border-radius: 22px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
}
.vr-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 4px;
}
.vr-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,165,0,0.5);
  animation: pulseRing 1.6s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.vr-icon { font-size: 48px; position: relative; z-index: 1; }
.vr-title { font-size: 22px; font-weight: 800; color: #fff; text-align: center; }
.vr-sub { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.6; }
.vr-sub strong { color: #ffcc44; }

.vr-steps-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #2a1f4a;
  border-radius: 14px;
  overflow: hidden;
}
.vr-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #2a1f4a;
  font-size: 14px;
}
.vr-step-item:last-child { border-bottom: none; }
.vr-step-item p { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.vr-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.vr-step-item.done { background: rgba(77,255,158,0.04); }
.vr-step-item.done .vr-step-num {
  background: rgba(77,255,158,0.15);
  color: #4dff9e;
  border: 1px solid rgba(77,255,158,0.3);
}
.vr-step-item.done strong { color: #4dff9e; }
.vr-step-item.pending { background: rgba(255,200,60,0.06); }
.vr-step-item.pending .vr-step-num {
  background: rgba(255,200,60,0.2);
  color: #ffcc44;
  border: 1px solid rgba(255,200,60,0.4);
  animation: warnPulse 1.2s ease-in-out infinite;
}
.vr-step-item.pending strong { color: #ffcc44; }
.vr-step-item.locked { opacity: 0.5; }
.vr-step-item.locked .vr-step-num {
  background: rgba(255,255,255,0.06);
  border: 1px solid #2a1f4a;
}
.vr-cta-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(168,85,247,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .15s, box-shadow .15s;
  letter-spacing: 0.3px;
}
.vr-cta-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 14px rgba(168,85,247,.25);
}
.vr-arrow { font-size: 18px; animation: arrowBounce 1s ease-in-out infinite; }
@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(4px); }
}
.vr-note { font-size: 12px; color: #6a5888; text-align: center; }
.top-header {
  display: flex;
  flex-direction: column;   /* 🔥 THIS FIXES ROW ISSUE */
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  gap: 6px;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 🔥 FIX LOGO SIZE */
.logo {
  width: 260px;
  transform: scale(2);     /* 🔥 makes logo visually bigger */
  transform-origin: center;
}
@media (max-width: 480px) {
  .logo {
    width: 180px;
    transform: scale(1.8);
  }
}
