:root {
  --bg: #050708;
  --panel: rgba(20, 18, 22, .94);
  --line: rgba(65, 255, 244, .22);
  --cyan: #29fff2;
  --blue: #3154ff;
  --pink: #ff336d;
  --text: #f6f8ff;
  --muted: #99a0b3;
  --good: #31f08a;
  --bad: #ff416d;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(41,255,242,.08), transparent 28%),
    linear-gradient(315deg, rgba(255,51,109,.12), transparent 34%),
    repeating-linear-gradient(90deg, rgba(41,255,242,.035) 0 1px, transparent 1px 23px),
    repeating-linear-gradient(0deg, rgba(41,255,242,.025) 0 1px, transparent 1px 23px),
    var(--bg);
  overflow-x: hidden;
}

body {
  display: flex;
  justify-content: center;
  padding: max(10px, env(safe-area-inset-top)) 10px max(18px, env(safe-area-inset-bottom));
}

button,
input {
  font: inherit;
}

.shell {
  width: min(360px, 100%);
  animation: rise .42s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card {
  position: relative;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(24,28,31,.95), rgba(23,15,21,.95));
  box-shadow: 0 18px 42px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 2px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), transparent 42%, var(--pink));
}

.hero {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 11px;
  align-items: center;
  min-height: 88px;
}

.logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 28%, rgba(41,255,242,.24), transparent 36%),
    radial-gradient(circle at 76% 76%, rgba(255,51,109,.30), transparent 44%),
    #080c0e;
  border: 1px solid rgba(41,255,242,.42);
  box-shadow: 0 0 22px rgba(41,255,242,.20);
  overflow: hidden;
}

.logo img,
.chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: 22px;
  line-height: .9;
  letter-spacing: 0;
  font-weight: 950;
}

.hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #b2b7c8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.section-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.input {
  width: 100%;
  height: 42px;
  margin: 0 0 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  outline: 0;
  background: rgba(4,5,7,.70);
  color: white;
  padding: 0 13px;
  font-size: 15px;
  font-weight: 800;
}

.input:focus {
  border-color: rgba(41,255,242,.65);
  box-shadow: 0 0 0 3px rgba(41,255,242,.10);
}

.id-help {
  display: block;
  width: 100%;
  margin: 2px 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  text-align: left;
}

.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0;
}

.chip {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background: rgba(255,255,255,.055);
  color: white;
  font-size: 9px;
  font-weight: 900;
  overflow: hidden;
  text-align: center;
}

.chip.hot {
  color: #071011;
  background: linear-gradient(105deg, var(--cyan), #f6fbff 48%, var(--pink));
}

.chip img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
}

.btn {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  color: white;
  background: linear-gradient(105deg, #16d8cf, var(--blue) 52%, var(--pink));
  box-shadow: 0 8px 24px rgba(41,255,242,.12);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: transform .12s ease, opacity .12s ease, filter .12s ease;
}

.btn:active { transform: translateY(1px) scale(.985); filter: brightness(1.12); }
.btn:disabled { opacity: .38; filter: grayscale(.4); }
.btn.secondary { background: rgba(255,255,255,.075); border: 1px solid rgba(41,255,242,.25); color: var(--cyan); }
.btn.ghost { height: 34px; margin-top: 8px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.10); color: #c7ccd8; box-shadow: none; }
.btn.pink { background: linear-gradient(105deg, rgba(255,51,109,.92), rgba(41,255,242,.88)); }

.status {
  min-height: 38px;
  margin-top: 9px;
  padding: 10px 11px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(4,5,7,.58);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  text-align: center;
}

.status.good { color: var(--good); border-color: rgba(49,240,138,.26); }
.status.bad { color: var(--bad); border-color: rgba(255,65,109,.36); }

.ready {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.07);
}

.ring {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  border: 3px solid rgba(41,255,242,.75);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 0 22px rgba(41,255,242,.28);
  animation: pulse 1.4s ease-in-out infinite;
}

.ring.is-check {
  font-size: 23px;
}

@keyframes pulse {
  0%, 100% { transform: scale(.96); opacity: .74; }
  50% { transform: scale(1.03); opacity: 1; }
}

.ready h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
}

.ready p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
}

.feature b { display: block; font-size: 12px; line-height: 1.1; }
.feature span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 800; }

.mini {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(41,255,242,.12);
  color: var(--cyan);
  font-weight: 950;
}

.drop {
  width: 100%;
  min-height: 82px;
  display: grid;
  place-items: center;
  margin: 8px 0;
  padding: 14px;
  border: 1px dashed rgba(41,255,242,.42);
  border-radius: 14px;
  background: rgba(4,5,7,.42);
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.drop:disabled {
  opacity: .38;
  filter: grayscale(.5);
}

.drop b {
  display: block;
  margin-top: 4px;
  color: var(--cyan);
  font-size: 18px;
}

.action-card {
  display: grid;
  gap: 8px;
}

.foot {
  color: #747b8e;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  padding: 0 8px 12px;
}

body.locked .method-card,
body.locked .action-card {
  display: none;
}
