:root {
  --bg-deep: #030816;
  --bg-mid: #081738;
  --bg-navy: #0e2659;
  --card-bg: rgba(9, 21, 48, 0.72);
  --card-border: rgba(147, 197, 253, 0.16);
  --panel-bg: rgba(13, 30, 68, 0.56);
  --text-main: #f1f5f9;
  --text-muted: #9fb3d9;
  --text-subtle: #6e86b4;
  --accent: #38bdf8;
  --accent-strong: #2563eb;
  --accent-hover: #3b82f6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1100px 700px at 12% 10%, rgba(37, 99, 235, 0.28), transparent 60%),
    radial-gradient(900px 650px at 88% 85%, rgba(14, 165, 233, 0.2), transparent 58%),
    linear-gradient(145deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-navy) 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px 18px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(148, 197, 255, 0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow-top {
  width: 360px;
  height: 360px;
  top: -110px;
  left: -80px;
  background: rgba(56, 189, 248, 0.2);
}

.glow-bottom {
  width: 420px;
  height: 420px;
  right: -110px;
  bottom: -120px;
  background: rgba(37, 99, 235, 0.26);
}

.container {
  width: 100%;
  max-width: 740px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 40px 38px 28px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 24px 70px rgba(2, 6, 23, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  margin-bottom: 20px;
}

.avatar-ring {
  width: 144px;
  height: 144px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 52%, #1d4ed8 100%);
  box-shadow:
    0 12px 34px rgba(37, 99, 235, 0.42),
    0 0 0 6px rgba(56, 189, 248, 0.09);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 24%;
  display: block;
  border: 3px solid #06122c;
  background-color: #0b1b3d;
}

.online-dot {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  border: 3px solid #081533;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.26);
  margin-bottom: 16px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 2.2s ease-in-out infinite;
}

.title {
  font-size: clamp(26px, 4.2vw, 35px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
}

.subtitle {
  max-width: 520px;
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.6;
  color: var(--text-muted);
}

.divider {
  height: 1px;
  margin: 30px 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(147, 197, 253, 0.24) 50%,
    transparent 100%
  );
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--panel-bg);
  border: 1px solid rgba(147, 197, 253, 0.12);
  border-radius: 22px;
  padding: 24px 26px;
}

.contact-info {
  min-width: 0;
}

.contact-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.contact-heading {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.contact-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.48);
}

.btn-secondary {
  color: #dbeafe;
  background: rgba(30, 58, 138, 0.36);
  border-color: rgba(147, 197, 253, 0.22);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(147, 197, 253, 0.38);
}

.btn-secondary.copied {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.16);
}

.tg-icon,
.copy-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-subtle);
  transition: transform 0.22s ease, color 0.22s ease;
}

.qr-box:hover {
  transform: translateY(-3px);
  color: #bae6fd;
}

.qr-frame {
  padding: 6px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    0 14px 36px rgba(2, 6, 23, 0.45),
    0 0 0 4px rgba(56, 189, 248, 0.14);
}

.qr-image {
  display: block;
  width: 172px;
  height: 172px;
  border-radius: 16px;
}

.qr-caption {
  font-size: 12px;
  font-weight: 500;
}

.footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-subtle);
}

.sep {
  opacity: 0.6;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

@media (max-width: 640px) {
  body {
    padding: 18px 14px;
  }

  .card {
    padding: 28px 18px 20px;
    border-radius: 22px;
  }

  .avatar-ring {
    width: 118px;
    height: 118px;
  }

  .title {
    font-size: 24px;
  }

  .divider {
    margin: 22px 0;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding: 20px 16px;
    gap: 20px;
  }

  .contact-desc {
    margin-bottom: 16px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .qr-image {
    width: 164px;
    height: 164px;
  }
}
