/* ═══════════════════════════════════════════════════════
   DocVRELinks – Public Bio Page Styles
   ═══════════════════════════════════════════════════════ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.dl-body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1d27;
  color: #e4e6f0;
  -webkit-font-smoothing: antialiased;
}

/* ── Video background ── */
.dl-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: .35;
}

/* ── Page container ── */
.dl-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

/* ── Profile ── */
.dl-profile {
  text-align: center;
  margin-bottom: 32px;
}

.dl-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .15);
  margin: 0 auto 16px;
  display: block;
  background: rgba(255, 255, 255, .05);
}

.dl-name {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.dl-bio {
  font-size: 15px;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 20px;
}

/* ── Social icons ── */
.dl-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.dl-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.dl-social-icon:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-2px);
}

.dl-social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Links list ── */
.dl-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Header/Group ── */
.dl-header-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .4);
  padding: 8px 0 2px;
  margin-top: 6px;
}

/* ── Link item ── */
.dl-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s, transform .15s, box-shadow .2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.dl-link-item:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
}

.dl-link-item:active {
  transform: scale(.98);
}

.dl-link-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.dl-link-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.dl-link-title {
  flex: 1;
}

.dl-link-arrow {
  font-size: 16px;
  opacity: .5;
  flex-shrink: 0;
  transition: transform .2s;
}

.dl-link-item:hover .dl-link-arrow {
  transform: translateX(3px);
  opacity: .8;
}

/* ── Type variants ── */
.dl-type-spotlight {
  background: linear-gradient(135deg, rgba(108, 99, 255, .3), rgba(255, 99, 200, .2));
  border-color: rgba(108, 99, 255, .4);
  box-shadow: 0 0 20px rgba(108, 99, 255, .2);
}

.dl-type-animated {
  border-color: rgba(255, 255, 255, .2);
}

/* ── Animations ── */
@keyframes dl-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(108, 99, 255, .5);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(108, 99, 255, 0);
  }
}

@keyframes dl-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-3px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(3px);
  }
}

@keyframes dl-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes dl-glow {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(108, 99, 255, .4);
  }

  50% {
    box-shadow: 0 0 24px rgba(108, 99, 255, .9);
  }
}

.dl-anim-pulse {
  animation: dl-pulse 2s ease-in-out infinite;
}

.dl-anim-shake {
  animation: dl-shake 1s ease-in-out infinite;
}

.dl-anim-bounce {
  animation: dl-bounce 1.2s ease-in-out infinite;
}

.dl-anim-glow {
  animation: dl-glow 1.5s ease-in-out infinite;
}

/* ── Embeds ── */
.dl-embed-wrapper {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .1);
}

.dl-embed-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.dl-embed-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  font-size: 16px;
  flex-shrink: 0;
}

.dl-embed-trigger:hover .dl-embed-play {
  background: rgba(255, 255, 255, .25);
}

/* ── Password gate ── */
.dl-link-pwd-gate {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, .2);
  border-radius: 0 0 14px 14px;
  margin-top: -12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-top: none;
}

.dl-pwd-input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
}

.dl-pwd-input:focus {
  outline: none;
  border-color: #6c63ff;
}

/* ── Contact form ── */
.dl-contact-form {
  padding: 28px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.dl-contact-form>input {
  margin-bottom: 16px;
}

.dl-contact-form h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}

.dl-contact-form button {
  margin-top: 12px;
}

.dl-cf-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-cf-form input,
.dl-cf-form textarea {
  padding: 12px 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
}

.dl-cf-form input::placeholder,
.dl-cf-form textarea::placeholder {
  color: rgba(255, 255, 255, .4);
}

.dl-cf-form input:focus,
.dl-cf-form textarea:focus {
  outline: none;
  border-color: #6c63ff;
}

.dl-cf-form textarea {
  resize: vertical;
  min-height: 80px;
}

.dl-cf-submit {
  padding: 12px 24px;
  background: #6c63ff;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.dl-cf-submit:hover {
  background: #574dff;
}

.dl-cf-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.dl-cf-msg {
  font-size: 13px;
  text-align: center;
  margin-top: 4px;
}

/* ── Template: Dark ── */
body.dl-tpl-dark {
  background: #0f172a;
  color: #f8fafc;
}

.dl-tpl-dark .dl-name {
  color: #f8fafc;
}

.dl-tpl-dark .dl-bio,
.dl-tpl-dark .dl-group-header,
.dl-tpl-dark .dl-header-group {
  color: #94a3b8;
}

.dl-tpl-dark .dl-link {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dl-tpl-dark .dl-link:hover {
  background: #334155;
  border-color: #475569;
  transform: translateY(-2px);
}

.dl-tpl-dark .dl-link--featured {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #fff;
}

.dl-tpl-dark .dl-avatar {
  border-color: #334155;
}

.dl-tpl-dark .dl-contact {
  background: #1e293b;
}

.dl-tpl-dark .dl-contact button {
  background-color: #3b82f6;
  border: 1px solid white;
  color: white;
}

/* ── Template: Neon ── */
body.dl-tpl-neon {
  background: #050510;
  color: #fff;
}

body.dl-tpl-neon::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(0, 255, 136, .1), transparent 60%);
}

.dl-tpl-neon .dl-name {
  color: #00ff88;
  text-shadow: 0 0 16px rgba(0, 255, 136, .6);
  font-weight: 800;
  letter-spacing: 1px;
}

.dl-tpl-neon .dl-bio,
.dl-tpl-neon .dl-group-header,
.dl-tpl-neon .dl-header-group {
  color: #a1a1aa;
}

.dl-tpl-neon .dl-link {
  background: rgba(0, 0, 0, .6);
  border: 1px solid #00ff88;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 255, 136, .15), inset 0 0 8px rgba(0, 255, 136, .05);
  backdrop-filter: blur(8px);
}

.dl-tpl-neon .dl-link:hover {
  box-shadow: 0 0 20px rgba(0, 255, 136, .3), inset 0 0 12px rgba(0, 255, 136, .15);
  border-color: #00ffcc;
  transform: translateY(-2px);
}

.dl-tpl-neon .dl-avatar {
  border-color: #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 136, .3);
}

.dl-tpl-neon .dl-contact {
  background-color: transparent;
}

.dl-tpl-neon .dl-contact button {
  background-color: transparent;
  border: 1px solid #00ff88;
}

/* ── Template: Gradient ── */
body.dl-tpl-gradient {
  background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
  background-attachment: fixed;
  color: #1f2937;
}

.dl-tpl-gradient .dl-name {
  color: #111827;
  font-weight: 800;
}

.dl-tpl-gradient .dl-bio,
.dl-tpl-gradient .dl-group-header,
.dl-tpl-gradient .dl-header-group {
  color: #4b5563;
}

.dl-tpl-gradient .dl-link {
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .8);
  color: #111827;
  box-shadow: 0 8px 32px rgba(31, 38, 135, .07);
}

.dl-tpl-gradient .dl-link:hover {
  background: rgba(255, 255, 255, .9);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(31, 38, 135, .12);
}

.dl-tpl-gradient .dl-link--featured {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  color: #fff;
  border: none;
}

.dl-tpl-gradient .dl-avatar {
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(31, 38, 135, .15);
}

.dl-tpl-gradient .dl-contact {
  background: rgba(255, 255, 255, .6);
}

.dl-tpl-gradient .dl-contact button {
  background-color: #ff7eb3;
  border: 1px solid white;
  color: white;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .dl-page {
    padding: 28px 16px 60px;
  }

  .dl-avatar {
    width: 80px;
    height: 80px;
  }

  .dl-link-item {
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* ── Template: Bold ── */
body.dl-tpl-bold {
  background: #f9fafb;
  color: #111827;
}

.dl-tpl-bold .dl-name {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #111827;
}

.dl-tpl-bold .dl-bio {
  color: #374151;
}

.dl-tpl-bold .dl-link,
.dl-tpl-bold .dl-link-item {
  background: #111827;
  color: #f9fafb;
  border: 2px solid #111827;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #6366f1;
  backdrop-filter: none;
  font-weight: 700;
}

.dl-tpl-bold .dl-link:hover,
.dl-tpl-bold .dl-link-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #6366f1;
  background: #1f2937;
}

.dl-tpl-bold .dl-link--featured,
.dl-tpl-bold .dl-type-spotlight {
  background: #6366f1;
  border-color: #6366f1;
  box-shadow: 4px 4px 0 #111827;
  color: #fff;
}

.dl-tpl-bold .dl-link--featured:hover,
.dl-tpl-bold .dl-type-spotlight:hover {
  box-shadow: 6px 6px 0 #111827;
}

.dl-tpl-bold .dl-avatar {
  border: 4px solid #111827;
  box-shadow: 4px 4px 0 #6366f1;
}

.dl-tpl-bold .dl-group-header,
.dl-tpl-bold .dl-header-group {
  color: #111827;
  opacity: 1;
  font-size: .7rem;
  border-bottom: 2px solid #111827;
  padding-bottom: 4px;
}

/* ── Template: Glass ── */
body.dl-tpl-glass {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
  color: #f5f3ff;
  min-height: 100%;
  background-attachment: fixed;
}

.dl-tpl-glass .dl-name {
  color: #f5f3ff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.dl-tpl-glass .dl-bio {
  color: rgba(245, 243, 255, .75);
}

.dl-tpl-glass .dl-group-header,
.dl-tpl-glass .dl-header-group {
  color: rgba(245, 243, 255, .5);
}

.dl-tpl-glass .dl-link,
.dl-tpl-glass .dl-link-item {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  color: #f5f3ff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .15);
}

.dl-tpl-glass .dl-link:hover,
.dl-tpl-glass .dl-link-item:hover {
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
  transform: translateY(-2px);
}

.dl-tpl-glass .dl-link--featured,
.dl-tpl-glass .dl-type-spotlight {
  background: rgba(167, 139, 250, .35);
  border-color: rgba(167, 139, 250, .5);
  box-shadow: 0 4px 32px rgba(167, 139, 250, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.dl-tpl-glass .dl-avatar {
  border: 3px solid rgba(255, 255, 255, .35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.dl-tpl-glass .dl-contact {
  background: transparent;
}

.dl-tpl-glass .dl-contact button {
  background-color: #6366f1;
  border: 1px solid rgba(255, 255, 255, .2);
  color: white;
}