* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #1b1d4a 0%, #070819 70%);
  color: #fff; min-height: 100vh;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 28px 16px 40px; text-align: center; }
.logo-circle {
  width: 170px; height: 170px; margin: 0 auto; border-radius: 50%;
  background: linear-gradient(135deg, #f5d27a, #7c5cff);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(124,92,255,.5);
}
.logo-x { font-size: 64px; font-weight: 800; color: #3b2a00; line-height: 1; }
.logo-text { font-size: 16px; font-weight: 700; color: #3b2a00; }
h1 { font-size: 26px; margin-top: 18px; }
.sub { color: #a5b4fc; margin: 8px 0 16px; font-size: 15px; }
.offer {
  display: inline-block; padding: 10px 26px; border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #4c1d95); color: #fcd34d;
  font-weight: 700; box-shadow: 0 0 20px rgba(252,211,77,.35);
}
.offer:empty { display: none; }
.tg-card {
  display: flex; align-items: center; gap: 12px; text-align: left;
  margin: 18px 0 22px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(124,92,255,.5);
}
.tg-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #2aa3ef; font-size: 20px; flex-shrink: 0;
}
.tg-card strong { display: block; font-size: 17px; }
.tg-card small { color: #a5b4fc; font-size: 12px; }
.arrow { margin-left: auto; font-size: 22px; color: #a5b4fc; }
.label { text-align: left; color: #fcd34d; font-size: 12px; font-weight: 600; letter-spacing: .5px; margin-bottom: 10px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 150px; padding: 16px; border-radius: 18px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.04); border: 1px solid rgba(124,92,255,.45);
  box-shadow: 0 0 18px rgba(124,92,255,.15); transition: transform .15s;
}
.card:active { transform: scale(.97); }
.badge {
  width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center;
  font-size: 26px; font-weight: 800; color: #fff;
}
.card span.name { font-weight: 600; font-size: 15px; }
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid;
  place-items: center; padding: 20px; z-index: 10;
}
.modal[hidden] { display: none; }
.modal-box {
  position: relative; width: 100%; max-width: 360px; padding: 26px 22px;
  border-radius: 20px; background: #12143a; border: 1px solid #7c5cff; text-align: center;
}
.modal-box h2 { font-size: 20px; margin-bottom: 8px; }
.modal-box p { color: #cbd5e1; font-size: 15px; margin-bottom: 16px; white-space: pre-line; }
.modal-box p:empty { display: none; }
.close {
  position: absolute; top: 8px; right: 12px; background: none; border: 0;
  color: #fff; font-size: 26px; cursor: pointer;
}
.btn {
  display: block; margin: 8px 0; padding: 12px; border-radius: 12px; text-decoration: none;
  color: #fff; font-weight: 600; background: #4c1d95;
}
.btn.tg { background: #2aa3ef; }
