/* Social Media Template Downloads */
.smtd-wrap,
.smtd-wrap * {
  box-sizing: border-box;
}

.smtd-wrap {
  --smtd-ink: #172033;
  --smtd-muted: #6b7280;
  --smtd-line: #e5e7eb;
  --smtd-soft: #f8fafc;
  --smtd-soft-blue: #eaf3ff;
  --smtd-shadow: 0 18px 45px rgba(31, 41, 55, 0.10);
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  color: var(--smtd-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.smtd-hero {
  background: linear-gradient(135deg, var(--smtd-brand), #005fcc);
  color: white;
  border-radius: 34px;
  padding: 36px;
  box-shadow: var(--smtd-shadow);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.smtd-pill,
.smtd-tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .78rem;
  font-weight: 1000;
  background: rgba(255,255,255,.16);
  color: white;
  border: 1px solid rgba(255,255,255,.18);
}

.smtd-hero h2 {
  color: white;
  margin: 14px 0 12px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: .9;
  letter-spacing: -.07em;
}

.smtd-hero p {
  color: rgba(255,255,255,.84);
  line-height: 1.6;
  font-size: 1.05rem;
  margin: 0;
}

.smtd-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.smtd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 1000;
  text-decoration: none !important;
  transition: .16s ease;
}

.smtd-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(31,41,55,.14);
}

.smtd-primary {
  background: var(--smtd-brand);
  color: white !important;
}

.smtd-hero .smtd-primary {
  background: white;
  color: var(--smtd-brand) !important;
}

.smtd-light {
  background: #f8fafc;
  color: var(--smtd-ink) !important;
  border: 1px solid var(--smtd-line);
}

.smtd-hero .smtd-light {
  background: rgba(255,255,255,.13);
  color: white !important;
  border: 1px solid rgba(255,255,255,.18);
}

.smtd-preview {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  padding: 20px;
  display: grid;
  gap: 10px;
}

.smtd-preview strong {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.smtd-preview span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 11px;
  color: rgba(255,255,255,.86);
  font-weight: 850;
}

.smtd-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 28px 0 14px;
}

.smtd-section-title h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.smtd-section-title p {
  margin: 5px 0 0;
  color: var(--smtd-muted);
  line-height: 1.5;
}

.smtd-section-title .smtd-tag {
  background: var(--smtd-soft-blue);
  color: var(--smtd-brand);
  border: 1px solid rgba(0,123,255,.15);
}

.smtd-premium-tag {
  background: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

.smtd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.smtd-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--smtd-shadow);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.smtd-image {
  height: 175px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0,123,255,.14), rgba(0,95,204,.10)), #f8fbff;
  border: 2px dashed rgba(0,123,255,.28);
  color: var(--smtd-brand);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 1000;
  margin-bottom: 14px;
  overflow: hidden;
}

.smtd-image.smtd-has-image {
  border: 0;
  padding: 0;
  background: #f8fbff;
}

.smtd-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smtd-premium-image {
  background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(0,123,255,.10)), #fffdf5;
  border-color: #fde68a;
  color: #b45309;
}

.smtd-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.smtd-card h4 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.smtd-price {
  flex: 0 0 auto;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: .78rem;
  font-weight: 1000;
  white-space: nowrap;
}

.smtd-free-price {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}

.smtd-card p {
  margin: 0 0 16px;
  color: var(--smtd-muted);
  line-height: 1.55;
  font-size: .94rem;
}

.smtd-card .smtd-btn {
  margin-top: auto;
  width: 100%;
}

.smtd-premium-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(0,123,255,.16);
}

.smtd-upgrade {
  margin-top: 24px;
  background: #111827;
  color: white;
  border-radius: 30px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: var(--smtd-shadow);
}

.smtd-upgrade h3 {
  color: white;
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.smtd-upgrade p {
  color: rgba(255,255,255,.72);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .smtd-hero,
  .smtd-upgrade {
    grid-template-columns: 1fr;
  }

  .smtd-grid {
    grid-template-columns: 1fr;
  }

  .smtd-section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .smtd-wrap {
    padding: 14px;
  }

  .smtd-hero,
  .smtd-upgrade {
    border-radius: 26px;
    padding: 24px;
  }

  .smtd-card-top {
    flex-direction: column;
  }
}
