:root {
  --yt: #ff0000; --yt2: #c4302b; --ink: #15151b; --muted: #6b7280;
  --card: #fff; --ok: #16a34a; --chrome: #1a73e8; --verify: #065fd4;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(160deg, #ff5a52 0%, #ff0000 45%, #c4302b 100%);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom)); min-height: 100vh;
}
.card {
  background: var(--card); width: 100%; max-width: 440px; border-radius: 24px;
  padding: 28px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.3); text-align: center;
}
.avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--yt); display: grid; place-items: center; font-size: 34px; color: #fff;
  overflow: hidden; border: 3px solid #fff; box-shadow: 0 0 0 2px #eee;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
h1 { font-size: 1.25rem; margin: 0 0 2px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.badge { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.handle { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.q { font-size: 1.12rem; font-weight: 600; margin: 4px 0 18px; line-height: 1.4; }

.btn {
  display: block; width: 100%; border: 0; border-radius: 14px; padding: 16px; margin-top: 10px;
  font-size: 1.05rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .08s ease;
}
.btn:first-of-type { margin-top: 0; }
.btn:active { transform: scale(.98); }
.btn-yt { background: var(--yt); color: #fff; }
.btn-verify { background: var(--verify); color: #fff; }
.btn-resource { background: var(--ok); color: #fff; }
.btn-chrome { background: var(--chrome); color: #fff; }
.btn-ghost { background: #f1f2f4; color: var(--ink); margin-top: 12px; font-size: .9rem; padding: 12px; }

.hidden { display: none !important; }
.check { font-size: 44px; }
.note { font-size: .82rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.status { min-height: 1.1em; margin: 12px 0 0; font-size: .9rem; color: var(--yt2); font-weight: 600; }
.steps-hint { background:#f8f9fb; border-radius:12px; padding:14px; margin-top:16px; font-size:.85rem; color:#374151; text-align:left; line-height:1.6; }
.steps-hint b { color: var(--ink); }
.spinner { width:56px; height:56px; border-radius:50%; border:5px solid #eee; border-top-color:var(--yt); margin:8px auto 16px; animation:spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade { animation: fade .35s ease both; }
@keyframes fade { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }

.list { display: grid; gap: 10px; text-align: left; }
.vcard {
  display: flex; align-items: center; gap: 12px; padding: 8px;
  border: 1px solid #eceef2; border-radius: 14px; background: #fff; cursor: pointer;
  transition: border-color .12s, transform .08s;
}
.vcard:active { transform: scale(.99); }
.vcard:hover { border-color: #f5a; }
.thumb { width: 72px; height: 72px; border-radius: 10px; flex: none; object-fit: cover; background: var(--yt); }
.vmeta { min-width: 0; }
.vmeta strong { display: block; font-size: .98rem; line-height: 1.3; }
.vmeta span { font-size: .8rem; color: var(--muted); }
.selected-strip { display:flex; align-items:center; gap:10px; background:#f8f9fb; border-radius:12px; padding:8px; margin-bottom:16px; text-align:left; }
.strip-thumb { width:46px; height:46px; border-radius:8px; object-fit:cover; flex:none; background:var(--yt); }
.selected-strip strong { font-size:.9rem; }

.btn-wa { background: #25D366; color: #fff; font-size: .98rem; }
.wa-wrap { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eceef2; }
