:root {
  --bg: #0f0f0f;
  --card-bg: #141414;
  --pill-bg: #181818;
  --icon-box-bg: #242424;
  --text-primary: #ffffff;
  --text-secondary: #919191;
  --text-tertiary: #8a8a8a;
  --border: rgba(255, 255, 255, 0.09);
  --accent: #ff5588;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 16px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px circle at 50% 0%, rgba(255, 85, 136, 0.1), transparent 60%),
    radial-gradient(520px circle at 50% 100%, rgba(59, 149, 245, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: card-fade-in 0.6s ease both;
}

@keyframes card-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
}

/* Profile */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.profile h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.verified-badge {
  width: 16px;
  height: 16px;
  flex: none;
}

.subtitle {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.stats {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pill-bg);
  border-radius: 16px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.stat:hover {
  background: #202020;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat:focus-visible,
.link-card:focus-visible,
.contact-main:focus-visible,
.play-btn:focus-visible,
.copy-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.icon-mask {
  width: 14px;
  height: 14px;
  display: inline-block;
  background-color: var(--text-primary);
  -webkit-mask-image: var(--icon-svg);
  mask-image: var(--icon-svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.divider {
  height: 1px;
  background: var(--border);
}

.tagline {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 360px;
}

.chart {
  width: 100%;
  height: auto;
  margin-top: 8px;
  opacity: 0.95;
}

/* Link cards */

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--pill-bg);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.link-card:hover {
  background: #202020;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.link-card.featured {
  border-color: rgba(255, 85, 136, 0.35);
  background: linear-gradient(180deg, rgba(255, 85, 136, 0.08), rgba(255, 85, 136, 0.02)), var(--pill-bg);
}

.link-card.featured:hover {
  border-color: rgba(255, 85, 136, 0.55);
}

.link-card.featured .link-icon {
  background: rgba(255, 85, 136, 0.15);
  color: var(--accent);
}

.pulse-dot {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 85, 136, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 85, 136, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 85, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 85, 136, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot {
    animation: none;
  }
}

.link-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--icon-box-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.link-icon svg {
  width: 18px;
  height: 18px;
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.link-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.link-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.link-arrow {
  flex: none;
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.link-arrow svg {
  width: 100%;
  height: 100%;
}

.link-card:hover .link-arrow,
.link-card:focus-visible .link-arrow,
.contact-main:hover .link-arrow,
.contact-main:focus-visible .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Video */

.video-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-block h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.video-card {
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--icon-box-bg);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.play-btn:hover {
  background: rgba(255, 85, 136, 0.75);
  transform: scale(1.06);
}

.play-btn svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.contact {
  margin-top: 4px;
}

.contact-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}

.copy-btn {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

.copy-btn .icon-check {
  display: none;
  color: #4ade80;
}

.copy-btn.copied .icon-copy {
  display: none;
}

.copy-btn.copied .icon-check {
  display: block;
}

/* Chartbooks modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.open {
  opacity: 1;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--pill-bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: #242424;
  color: var(--text-primary);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 85, 136, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 20px;
  height: 20px;
}

.modal h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-bg);
  border-radius: 10px;
  padding: 8px 8px 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px;
  border-radius: 10px;
  background: var(--accent);
  color: #1a0510;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.modal-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.modal-cta:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .card {
    padding: 28px 18px 24px;
    border-radius: 14px;
  }
  body {
    padding: 24px 12px;
  }
  .link-title {
    font-size: 14px;
  }
}
