:root{
  --bg:#060816;
  --panel:rgba(14,18,41,.74);
  --text:#edf2ff;
  --muted:#b6bfd8;
  --primary-1:#7c3aed;
  --primary-2:#4f46e5;
  --primary-3:#06b6d4;
  --accent:#f472b6;
}

*{margin:0;padding:0;box-sizing:border-box}
html,body{width:100%;height:100%}
body{
  font-family:'Inter',sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124,58,237,.24), transparent 28%),
    radial-gradient(circle at top right, rgba(6,182,212,.18), transparent 26%),
    linear-gradient(180deg,#050713 0%,#090d1f 55%,#060816 100%);
  color:var(--text);
  overflow:hidden;
}

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

.app-bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
}
.orb{
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  opacity:.35;
}
.orb-1{width:320px;height:320px;background:#7c3aed;left:-40px;top:50px}
.orb-2{width:280px;height:280px;background:#06b6d4;right:-20px;top:140px}
.orb-3{width:260px;height:260px;background:#f472b6;left:36%;bottom:40px}

.transition-screen{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:20;
  background:rgba(5,8,22,.76);
  backdrop-filter:blur(14px);
  transition:opacity .55s ease, visibility .55s ease;
}
.transition-screen.hidden{
  opacity:0;
  visibility:hidden;
}
.transition-card{
  width:min(700px,100%);
  background:linear-gradient(180deg, rgba(19,25,57,.86), rgba(10,14,34,.88));
  border:1px solid rgba(255,255,255,.10);
  border-radius:30px;
  padding:34px;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
  text-align:center;
}
.brand-line{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.09);
  font-weight:800;
  margin-bottom:18px;
}
.brand-dot{
  width:12px;height:12px;border-radius:50%;
  background:linear-gradient(135deg,var(--primary-3),var(--primary-1),var(--accent));
  box-shadow:0 0 18px rgba(124,58,237,.8);
}
.transition-card h1{
  font-size:clamp(2rem,4vw,3.2rem);
  line-height:1.06;
  margin-bottom:14px;
}
.transition-card p{
  color:var(--muted);
  max-width:560px;
  margin:0 auto 24px;
}

.progress-wrap{margin-bottom:24px}
.progress-bar{
  width:100%;
  height:14px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}
.progress-fill{
  width:0%;
  height:100%;
  background:linear-gradient(90deg,var(--primary-1),var(--primary-2),var(--primary-3));
  border-radius:999px;
  transition:width .45s ease;
}

.steps{
  display:grid;
  gap:12px;
  text-align:left;
}
.step{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  color:#d6ddf5;
  opacity:.55;
  transition:.25s ease;
}
.step.active{
  opacity:1;
  border-color:rgba(255,255,255,.15);
  transform:translateY(-1px);
}
.step-icon{
  width:30px;height:30px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--primary-1),var(--primary-3));
  font-weight:900;
}

.loading-rings{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:26px;
}
.loading-rings span{
  width:12px;height:12px;border-radius:50%;
  background:#fff;
  animation:bounce 1s infinite ease-in-out;
}
.loading-rings span:nth-child(2){animation-delay:.15s}
.loading-rings span:nth-child(3){animation-delay:.3s}

@keyframes bounce{
  0%,80%,100%{transform:scale(.6);opacity:.45}
  40%{transform:scale(1);opacity:1}
}

.app-shell{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  padding:14px;
  opacity:0;
  transform:scale(.985);
  transition:opacity .55s ease, transform .55s ease;
}
.app-shell.visible{
  opacity:1;
  transform:scale(1);
}
.app-topbar{
  min-height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 10px 12px;
}
.app-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:1.08rem;
}
.app-status{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#dbe5ff;
}
.status-dot{
  width:10px;height:10px;border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 0 rgba(34,197,94,.7);
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(34,197,94,.7)}
  70%{box-shadow:0 0 0 10px rgba(34,197,94,0)}
  100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}
}

.iframe-stage{
  flex:1;
  min-height:0;
}
.iframe-frame{
  width:100%;
  height:100%;
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  box-shadow:0 18px 60px rgba(0,0,0,.45);
}
.iframe-frame iframe{
  width:100%;
  height:100%;
  border:none;
  display:block;
  background:#000;
}

@media (max-width: 768px){
  .transition-card{
    padding:24px;
    border-radius:24px;
  }
  .app-topbar{
    flex-direction:column;
    align-items:flex-start;
  }
  .app-status{
    width:100%;
    justify-content:center;
  }
}