/* Social & contact hub — polished link-in-bio card */

body.dl-social-page {
  background: #ffffff;
}

.dl-social-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 0 44px;
  background: #ffffff;
}

.dl-social-wrap {
  width: min(460px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 max(32px, env(safe-area-inset-bottom, 0px));
}

.dl-social-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid var(--dl-border);
  border-radius: 999px;
  background: #fff;
  color: var(--dl-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--dl-shadow);
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.dl-social-back:hover {
  color: var(--dl-primary);
  border-color: rgba(223, 10, 28, 0.35);
  background: var(--dl-primary-soft);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Main card */
.dl-social-card {
  border: 1px solid var(--dl-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(23, 23, 23, 0.04),
    0 10px 32px rgba(23, 23, 23, 0.07);
  overflow: hidden;
}

/* Hero */
.dl-social-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 26px;
  text-align: center;
  background: #ffffff;
  border-top: 3px solid var(--dl-primary);
  border-bottom: 1px solid var(--dl-border);
}

.dl-social-logo {
  display: block;
  width: 96px;
  max-width: 54%;
  height: auto;
  margin: 0 auto;
}

.dl-social-hero--compact {
  gap: 9px;
  padding: 28px 24px 20px;
}

.dl-social-hero--compact .dl-social-logo {
  width: 96px;
}

.dl-social-hero--compact .dl-social-sub {
  margin: 0;
  max-width: 26ch;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.dl-social-hero h1 {
  margin: 0 0 6px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--dl-ink);
}

.dl-social-tagline {
  margin: 0;
  color: var(--dl-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.dl-social-sub {
  margin: 6px auto 0;
  max-width: 28ch;
  color: var(--dl-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Sections */
.dl-social-block {
  padding: 20px 18px 8px;
}

.dl-social-block:last-of-type {
  padding-bottom: 20px;
}

.dl-social-block + .dl-social-block {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--dl-border);
}

.dl-social-block h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  color: var(--dl-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
}

.dl-social-block h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--dl-border);
}

/* Link rows */
.dl-social-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--dl-border);
  border-radius: 12px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

a.dl-social-row:hover {
  border-color: rgba(223, 10, 28, 0.35);
  background: #fff;
  box-shadow: 0 6px 20px rgba(223, 10, 28, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.dl-social-row__icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.dl-social-row__icon--default {
  background: var(--dl-primary-soft);
  color: var(--dl-primary);
}

.dl-social-row__icon--instagram {
  background: #fce8ef;
  color: #e4405f;
}

.dl-social-row__icon--facebook {
  background: #e8f0fe;
  color: #1877f2;
}

.dl-social-row__icon--youtube {
  background: #ffe5e5;
  color: #ff0000;
}

.dl-social-row__icon--whatsapp {
  background: #e7f7ef;
  color: #25d366;
}

.dl-social-row__icon--email {
  background: #eef4ff;
  color: #2563eb;
}

.dl-social-row__icon--website {
  background: #eef4ff;
  color: #2563eb;
}

.dl-social-row__icon--phone {
  background: var(--dl-primary-soft);
  color: var(--dl-primary);
}

.dl-social-row__icon--wechat {
  background: #e8f8ec;
  color: #09bb07;
}

.dl-social-row__icon--tiktok {
  background: var(--dl-primary-soft);
  color: var(--dl-primary);
}

.dl-social-row__icon--twitter {
  background: #f4f4f4;
  color: #111;
}

.dl-social-row__text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.dl-social-row__text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--dl-ink);
}

.dl-social-row__text span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--dl-muted);
}

.dl-social-row__chev {
  display: inline-flex;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--dl-border);
  color: var(--dl-muted);
  font-size: 11px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

a.dl-social-row:hover .dl-social-row__chev {
  color: #fff;
  background: var(--dl-primary);
  border-color: var(--dl-primary);
  transform: translateX(2px);
}

/* Expandable groups (multiple WhatsApp / phone / email, etc.) */
.dl-social-group {
  border: 1px solid var(--dl-border);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dl-social-group[open] {
  border-color: rgba(223, 10, 28, 0.24);
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.06);
}

.dl-social-group__summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.dl-social-group__summary::-webkit-details-marker {
  display: none;
}

.dl-social-group__summary.dl-social-row {
  border: none;
  border-radius: 0;
  margin: 0;
}

.dl-social-group__summary .dl-social-row__icon,
.dl-social-group__summary .dl-social-group__chev,
.dl-social-group__summary .dl-social-row__icon *,
.dl-social-group__summary .dl-social-group__chev * {
  pointer-events: none;
}

.dl-social-group__summary.dl-social-row:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  background: #fbfbfc;
}

.dl-social-group__summary:focus {
  outline: none;
}

.dl-social-group__summary:focus-visible {
  outline: 2px solid rgba(223, 10, 28, 0.45);
  outline-offset: -2px;
}

.dl-social-row__text .dl-social-group__meta {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f4f5f7;
  color: var(--dl-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.dl-social-group[open] .dl-social-group__chev i {
  transform: rotate(180deg);
}

.dl-social-group__chev i {
  transition: transform 0.2s ease;
}

.dl-social-group__panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 10px;
  border-top: 1px solid var(--dl-border);
  background: #fafafa;
}

.dl-social-row--child {
  position: relative;
  gap: 9px;
  margin: 0;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.dl-social-row--child + .dl-social-row--child {
  margin-top: 0;
}

.dl-social-row--child:first-child {
  margin-top: 0;
}

.dl-social-row__child-mark {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--dl-primary);
  box-shadow: 0 0 0 3px #fde9eb;
}

.dl-social-row--child .dl-social-row__text strong {
  font-size: 14px;
  font-weight: 600;
}

.dl-social-row--child .dl-social-row__text span {
  margin-top: 2px;
  font-size: 12px;
  color: var(--dl-muted);
  word-break: break-word;
}

.dl-social-row__chev--child {
  width: 22px;
  height: 22px;
  font-size: 10px;
  background: transparent;
  border-color: transparent;
}

a.dl-social-row--child:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(223, 10, 28, 0.16);
  background: #fff;
}

a.dl-social-row--child:hover .dl-social-row__chev--child {
  color: var(--dl-primary);
  background: var(--dl-primary-soft);
  border-color: rgba(223, 10, 28, 0.2);
  transform: none;
}

.dl-social-foot {
  padding: 18px 20px 24px;
  border-top: 1px solid var(--dl-border);
  text-align: center;
  background: #ffffff;
}

.dl-social-foot p {
  margin: 0;
  color: var(--dl-muted);
  font-size: 12px;
  line-height: 1.5;
}

.dl-social-foot p + p {
  margin-top: 4px;
}

@media (max-width: 420px) {
  .dl-social-main {
    padding: 18px 0 34px;
  }

  .dl-social-wrap {
    width: calc(100% - 18px);
  }

  .dl-social-hero {
    padding: 24px 18px 20px;
  }

  .dl-social-hero h1 {
    font-size: 1.5rem;
  }

  .dl-social-block {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dl-social-block + .dl-social-block {
    margin-top: 4px;
    padding-top: 16px;
  }

  .dl-social-row {
    gap: 10px;
    padding: 12px;
  }

  .dl-social-row__icon {
    width: 40px;
    height: 40px;
  }

  .dl-social-group__panel {
    padding: 8px;
  }

  .dl-social-row--child {
    padding: 9px 8px;
  }

}

/* WeChat trigger rows (button styled like links) */
button.dl-social-row,
button.dl-social-tile {
  width: 100%;
  margin: 0;
  border: 1px solid var(--dl-border);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button.dl-social-row:focus-visible,
button.dl-social-tile:focus-visible {
  outline: 2px solid var(--dl-primary);
  outline-offset: 2px;
}

/* WeChat QR modal */
.dl-wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.dl-wechat-modal.is-open {
  display: flex;
}

.dl-wechat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.42);
  backdrop-filter: blur(3px);
}

.dl-wechat-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 26px 22px 22px;
  border: 1px solid var(--dl-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(23, 23, 23, 0.04),
    0 16px 40px rgba(23, 23, 23, 0.14);
  text-align: center;
  animation: dl-wechat-modal-in 0.22s ease;
}

@keyframes dl-wechat-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dl-wechat-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--dl-border);
  border-radius: 50%;
  background: #fff;
  color: var(--dl-muted);
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.dl-wechat-modal__close:hover {
  color: var(--dl-primary);
  border-color: rgba(223, 10, 28, 0.35);
  background: var(--dl-primary-soft);
}

.dl-wechat-modal__head {
  margin-bottom: 16px;
}

.dl-wechat-modal__badge {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 14px;
  background: #e8f8ec;
  color: #09bb07;
  font-size: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.dl-wechat-modal__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dl-ink);
}

.dl-wechat-modal__subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--dl-muted);
}

.dl-wechat-modal__frame {
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--dl-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfbfc 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dl-wechat-modal__qr {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.dl-wechat-modal__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--dl-muted);
}

.dl-wechat-modal__hint strong {
  color: var(--dl-ink);
  font-weight: 600;
}

body.dl-wechat-modal-open {
  overflow: hidden;
}
