:root {
  --bg: radial-gradient(circle at top, #0a0e17 0%, #05070d 55%, #030408 100%);
  --card: rgba(8, 12, 20, 0.7);
  --text: #e8edff;
  --muted: rgba(232, 237, 255, 0.5);
  --accent: #3d7bff;
  --accent-dark: #1a4fd8;
  --radius-xl: 30px;
  --shadow: 0 18px 45px rgba(0, 15, 60, 0.4);
  --soft-box: rgba(232, 237, 255, 0.02);
  --border-soft: rgba(232, 237, 255, 0.04);
}

* {
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

html, body {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-color: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  position: relative;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(61, 123, 255, 0.03) 1px, transparent 0);
  background-size: 200px 200px;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(61, 123, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(12px);
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}

body::before {
  top: -120px;
  right: -110px;
}

body::after {
  bottom: -210px;
  left: -210px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.27; }
  50% { transform: translateY(30px) translateX(22px); opacity: 0.6; }
}

.wrap {
  width: min(950px, 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.card {
  width: min(520px, 100%);
  background: radial-gradient(circle at 20% 20%, rgba(61, 123, 255, 0.08) 0%, rgba(3, 6, 12, 0.7) 28%, rgba(4, 8, 15, 0.3) 100%), rgba(8, 14, 24, 0.15);
  border: 1px solid rgba(26, 79, 216, 0.1);
  border-top: 1px solid rgba(61, 123, 255, 0.15);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
  padding: 28px 26px 26px;
  position: relative;
  overflow: hidden;
  margin: 24px 0 60px;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  height: 130%;
  background: linear-gradient(120deg, rgba(61, 123, 255, 0.05) 0%, rgba(26, 79, 216, 0.08) 50%, rgba(0, 0, 0, 0) 70%);
  animation: moveGlow 13s linear infinite;
  transform: rotate(-16deg);
  pointer-events: none;
}

@keyframes moveGlow {
  0% { transform: translateX(-30%) rotate(-16deg); }
  100% { transform: translateX(60%) rotate(-16deg); }
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.avatar-wrap {
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(61, 123, 255, 0.12) 0, rgba(5, 10, 18, 0.8) 50%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid rgba(61, 123, 255, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  position: relative;
  box-shadow: 0 0 40px rgba(61, 123, 255, 0.1);
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 1px dashed rgba(61, 123, 255, 0.4);
  animation: rotate 9s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.avatar {
  width: 87px;
  height: 87px;
  border-radius: 999px;
  background: #0f1524;
  box-shadow: inset 0 0 0 2px rgba(8, 15, 26, 0.6);
  position: relative;
  overflow: hidden;
}

.avatar img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.lang-inside {
  position: absolute;
  right: 16px;
  top: 8px;
  display: inline-flex;
  gap: 5px;
  background: rgba(8, 15, 26, 0.4);
  border: 1px solid rgba(61, 123, 255, 0.15);
  border-radius: 999px;
  padding: 3px 6px 3px 6px;
  backdrop-filter: blur(10px);
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(232, 237, 255, 0.55);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 3px 8px 3px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.16s ease-out;
  letter-spacing: 0.04em;
}

.lang-btn.active {
  background: rgba(61, 123, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(61, 123, 255, 0.4);
}

.title {
  font-size: clamp(30px, 3vw, 35px);
  letter-spacing: -0.02em;
  font-weight: 650;
  text-align: center;
  margin-bottom: 6px;
}

.subtitle {
  color: rgba(232, 237, 255, 0.55);
  font-size: 0.88rem;
  text-align: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.metric {
  background: radial-gradient(circle at 20% 20%, rgba(61, 123, 255, 0.15) 0%, rgba(12, 20, 35, 0.4) 65%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid rgba(61, 123, 255, 0.08);
  border-radius: 20px;
  padding: 13px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  backdrop-filter: blur(18px);
}

.metric span:first-child {
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1.1;
}

.metric span:last-child {
  font-size: 0.72rem;
  color: rgba(232, 237, 255, 0.5);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(120deg, rgba(61, 123, 255, 0.18) 0%, rgba(26, 79, 216, 0.05) 100%);
  color: #e8edff;
  border: 1px solid rgba(61, 123, 255, 0.25);
  border-radius: 999px;
  padding: 5px 12px 4px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  max-width: fit-content;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(232, 237, 255, 0.5);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.links {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(circle, rgba(12, 20, 35, 0.6) 0%, rgba(8, 15, 26, 0.1) 100%);
  border: 1px solid rgba(61, 123, 255, 0.05);
  border-radius: 18px;
  padding: 13px 15px 12px;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: 0.24s ease-out;
}

.link-card:hover {
  border-color: rgba(61, 123, 255, 0.4);
  transform: translateY(-2px);
  background: radial-gradient(circle, rgba(61, 123, 255, 0.08) 0%, rgba(12, 20, 35, 0.3) 100%);
}

.link-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.link-title {
  font-weight: 610;
  font-size: 0.78rem;
  display: flex;
  gap: 6px;
  align-items: center;
}

.t-name {
  color: rgba(232, 237, 255, 0.5);
  font-size: 0.61rem;
}

.link-count {
  font-size: 0.7rem;
  color: rgba(232, 237, 255, 0.6);
}

.badge-tg {
  font-weight: 560;
  font-size: 0.62rem;
  background: rgba(61, 123, 255, 0.12);
  border: 1px solid rgba(61, 123, 255, 0.4);
  border-radius: 999px;
  padding: 3px 10px 3px;
  color: #e8edff;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.k-dot {
  width: 6px;
  height: 6px;
  background: #3d7bff;
  border-radius: 999px;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.mt-space {
  margin-top: 26px;
}

.deal-flow {
  display: grid;
  gap: 11px;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.deal-step {
  display: flex;
  gap: 14px;
  background: radial-gradient(circle, rgba(61, 123, 255, 0.04) 0%, rgba(0,0,0,0) 100%);
  border: 1px solid rgba(61, 123, 255, 0.03);
  border-radius: 16px;
  padding: 11px 13px 11px;
  align-items: flex-start;
}

.deal-label {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  background: rgba(61, 123, 255, 0.25);
  border: 1px solid rgba(61, 123, 255, 0.7);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.75rem;
  flex: 0 0 auto;
}

.deal-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.72rem;
  color: rgba(232, 237, 255, 0.8);
}

.deal-title {
  font-weight: 600;
  font-size: 0.74rem;
}

.deal-block {
  background: radial-gradient(circle, rgba(61, 123, 255, 0.02) 0, rgba(0,0,0,0) 100%);
  border: 1px solid rgba(61, 123, 255, 0.02);
  border-radius: 14px;
  padding: 9px 12px 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.deal-subtitle {
  font-size: 0.74rem;
  color: rgba(232, 237, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.deal-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 2px;
  font-size: 0.72rem;
}

.crypto-line {
  font-size: 0.72rem;
  word-break: break-all;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.crypto-line span:last-child {
  background: rgba(61, 123, 255, 0.05);
  border: 1px solid rgba(61, 123, 255, 0.2);
  border-radius: 8px;
  padding: 4px 6px 3px;
  display: inline-block;
  margin-top: 4px;
}

.deal-block.warn {
  background: radial-gradient(circle, rgba(246, 201, 104, 0.03) 0, rgba(0,0,0,0) 100%);
  border: 1px solid rgba(246, 201, 104, 0.09);
}

.gray-flow {
  position: absolute;
  inset: 42% -30%;
  height: 90%;
  background: radial-gradient(circle, rgba(61, 123, 255, 0.1) 0, rgba(0,0,0,0) 80%);
  filter: blur(78px);
  animation: flow 25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes flow {
  0%, 100% { transform: translateX(0) translateY(0); opacity: 0.3; }
  50% { transform: translateX(12px) translateY(-12px); opacity: 0.6; }
}

.foot-hint {
  margin-top: 15px;
  font-size: 0.63rem;
  color: rgba(232, 237, 255, 0.3);
  text-align: center;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

@media (max-width: 620px) {
  body {
    padding: 12px;
    display: block;
    touch-action: pan-y;
  }
  .wrap {
    min-height: auto;
  }
  .card {
    width: 100%;
    padding: 22px 16px 18px;
    margin: 16px 0 60px;
  }
  .lang-inside {
    right: 12px;
    top: 6px;
  }
}