:root{
  --bg:#071316;
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --ok: rgba(0,220,160,.95);
  --warn: rgba(255,180,0,.95);
  --danger: rgba(255,80,80,.95);
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; font-family:-apple-system,system-ui,Segoe UI,Roboto,Arial; }

body{
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(0,180,180,.25), transparent 60%),
    radial-gradient(900px 600px at 60% 110%, rgba(0,80,255,.20), transparent 55%),
    var(--bg);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  color:var(--text);
}

.phone{
  width:min(420px, 94vw);
  border-radius:26px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  overflow:hidden;
}

.hero{
  position:relative;
  height:min(62vh, 540px);
  background:#000;
}

.hero__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hero__top{
  position:absolute;
  left:14px; right:14px; top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  pointer-events:none;
}

.hero__name{
  font-size:20px;
  font-weight:800;
  letter-spacing:.2px;
}
.hero__sub{
  margin-top:2px;
  font-size:13px;
  color:var(--muted);
}

.pill{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.25);
  font-size:12px;
  color:rgba(255,255,255,.85);
}
.pill__dot{
  width:8px; height:8px; border-radius:99px;
  background:var(--ok);
  box-shadow:0 0 14px rgba(0,220,160,.6);
}

.panel{
  padding:14px;
  background: linear-gradient(to bottom, rgba(0,0,0,.22), rgba(0,0,0,.40));
}

.card{
  border:1px solid var(--stroke);
  background: var(--card);
  border-radius:18px;
  padding:14px;
}

.msg{
  margin:0 0 12px;
  font-size:14px;
  line-height:1.35;
  color:rgba(255,255,255,.82);
}
.muted{ color:var(--muted); }

.btn{
  width:100%;
  border:0;
  border-radius:16px;
  padding:16px 14px;
  font-size:18px;
  font-weight:800;
  color:#071316;
  background: linear-gradient(90deg, rgba(0,220,160,1), rgba(70,170,255,1));
}
.btn:active{ transform: scale(.99); }
.btn[disabled]{ opacity:.6; }

.meter{
  margin-top:12px;
  height:10px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid var(--stroke);
  overflow:hidden;
}
.meter__bar{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(0,220,160,1), rgba(255,180,0,1), rgba(255,80,80,1));
  transition: width .08s linear;
}

.log{
  margin-top:12px;
  font-size:12px;
  color:rgba(255,255,255,.75);
  background: rgba(0,0,0,.25);
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:10px;
  white-space:pre-wrap;
  word-break:break-word;
  min-height:44px;
}
.log--err{ color:var(--danger); }