.yoper-home-modal-open {
  overflow: hidden;
}

.yoper-home-social-shell {
  --home-bg: #fafafa;
  --home-surface: #ffffff;
  --home-line: #dbdbdb;
  --home-line-soft: #efefef;
  --home-text: #101010;
  --home-muted: #737373;
  --home-link: #00376b;
  --home-btn: #0095f6;
  --home-btn-text: #ffffff;
  --home-overlay: rgba(0, 0, 0, 0.32);
  background: var(--home-bg);
  color: var(--home-text);
  min-height: 100vh;
  padding: 0 12px 72px;
}

body.yoper-home-color-dark .yoper-home-social-shell {
  --home-bg: #000000;
  --home-surface: #000000;
  --home-line: #262626;
  --home-line-soft: #181818;
  --home-text: #f5f5f5;
  --home-muted: #a3a3a3;
  --home-link: #e0f1ff;
  --home-btn: #1d9bf0;
  --home-btn-text: #ffffff;
  --home-overlay: rgba(0, 0, 0, 0.42);
}

@media (prefers-color-scheme: dark) {
  body.yoper-home-color-auto .yoper-home-social-shell {
    --home-bg: #000000;
    --home-surface: #000000;
    --home-line: #262626;
    --home-line-soft: #181818;
    --home-text: #f5f5f5;
    --home-muted: #a3a3a3;
    --home-link: #e0f1ff;
    --home-btn: #1d9bf0;
    --home-btn-text: #ffffff;
    --home-overlay: rgba(0, 0, 0, 0.42);
  }
}

.yoper-home-social-container {
  width: min(980px, 100%);
  margin: 0 auto;
}

.yoper-home-topbar {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--home-line);
  background: var(--home-surface);
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 2px;
}

.yoper-home-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.yoper-home-topbar-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--home-btn);
  flex: 0 0 auto;
}

.yoper-home-topbar-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--home-line);
  background: var(--home-line-soft);
  flex: 0 0 auto;
}

.yoper-home-topbar-title {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yoper-home-topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  color: var(--home-text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  background: transparent;
}

.yoper-home-profile {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--home-line);
}

.yoper-home-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.yoper-home-profile-avatar-col {
  display: flex;
  justify-content: center;
}

.yoper-home-avatar {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--home-line);
  background: var(--home-line-soft);
  display: block;
}

.yoper-home-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
}

.yoper-home-profile-main {
  display: grid;
  gap: 10px;
}

.yoper-home-profile-name-row h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
}

.yoper-home-category {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.92rem;
}

.yoper-home-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.yoper-home-profile-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.92rem;
}

.yoper-home-profile-stat strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.yoper-home-profile-bio-wrap {
  display: grid;
  gap: 4px;
}

.yoper-home-bio {
  margin: 0;
  white-space: normal;
  line-height: 1.45;
  font-size: 0.92rem;
}

.yoper-home-aux {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.88rem;
}

.yoper-home-profile-link {
  color: var(--home-link);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-all;
}

.yoper-home-ctas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.yoper-home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--home-line);
  color: var(--home-text);
  background: transparent;
  text-align: center;
}

.yoper-home-cta-primary {
  background: var(--home-btn);
  border-color: var(--home-btn);
  color: var(--home-btn-text);
}

.yoper-home-cta-secondary {
  background: transparent;
}

.yoper-home-cta-ghost {
  background: transparent;
}

.yoper-home-section {
  padding: 14px 0 0;
}

.yoper-home-section-flat {
  border-bottom: 1px solid var(--home-line);
  padding-bottom: 12px;
}

.yoper-home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.yoper-home-section-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.yoper-home-section-head p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.82rem;
}

.yoper-home-link-btn {
  border: 0;
  background: transparent;
  color: var(--home-link);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
}

.yoper-home-stories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.yoper-home-story {
  color: inherit;
  text-decoration: none;
  width: 74px;
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.yoper-home-story-ring {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  border: 1px solid var(--home-line);
  padding: 3px;
  display: grid;
  place-items: center;
  background: var(--home-surface);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.yoper-home-story:hover .yoper-home-story-ring {
  transform: scale(1.03);
  opacity: 0.9;
}

.yoper-home-story-ring img,
.yoper-home-story-fallback {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: var(--home-line-soft);
}

.yoper-home-story-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
}

.yoper-home-story-label {
  width: 100%;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yoper-home-grid-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 0 0 8px;
  color: var(--home-muted);
}

.yoper-home-grid-nav-icon {
  font-size: 0.9rem;
}

.yoper-home-grid-nav-line {
  width: 56px;
  height: 1px;
  background: var(--home-line);
}

.yoper-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.yoper-home-grid-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 2px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--home-line-soft);
}

.yoper-home-grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yoper-home-grid-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.yoper-home-grid-card:hover .yoper-home-grid-overlay,
.yoper-home-grid-card:focus-visible .yoper-home-grid-overlay {
  opacity: 1;
  background: var(--home-overlay);
}

.yoper-home-grid-overlay-center {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
}

.yoper-home-grid-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  padding: 2px 7px;
  font-size: 0.66rem;
  font-weight: 600;
}

.yoper-home-empty {
  border: 1px dashed var(--home-line);
  color: var(--home-muted);
  text-align: center;
  border-radius: 8px;
  padding: 18px 10px;
  margin-bottom: 8px;
}

.yoper-home-empty p {
  margin: 0;
  font-size: 0.88rem;
}

.yoper-home-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yoper-home-chip {
  border: 1px solid var(--home-line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--home-muted);
}

.yoper-home-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.yoper-home-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.yoper-home-modal-card {
  position: relative;
  width: min(860px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  margin: 10px auto;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 8px;
  overflow: auto;
}

.yoper-home-modal-card-compact {
  width: min(520px, calc(100vw - 20px));
}

.yoper-home-modal-media {
  background: var(--home-line-soft);
}

.yoper-home-modal-media img {
  width: 100%;
  height: auto;
  display: block;
}

.yoper-home-modal-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.yoper-home-modal-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.yoper-home-modal-body p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.4;
  white-space: pre-line;
}

.yoper-home-modal-badge {
  justify-self: start;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.74rem;
  background: var(--home-line-soft);
}

.yoper-home-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.yoper-home-quick-nav {
  display: grid;
  gap: 8px;
}

.yoper-home-quick-nav a {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--home-text);
}

.yoper-home-whatsapp-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  z-index: 9990;
}

@media (min-width: 760px) {
  .yoper-home-social-shell {
    padding: 0 18px 84px;
  }

  .yoper-home-topbar {
    min-height: 64px;
  }

  .yoper-home-profile {
    padding: 28px 0 20px;
  }

  .yoper-home-profile-grid {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
  }

  .yoper-home-avatar {
    width: 164px;
    height: 164px;
  }

  .yoper-home-profile-avatar-col {
    justify-content: center;
  }

  .yoper-home-ctas {
    grid-template-columns: repeat(3, minmax(0, max-content));
    justify-content: start;
  }
}

@media (min-width: 900px) {
  .yoper-home-stories {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: nowrap;
  }

  .yoper-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}

@media (max-width: 559px) {
  .yoper-home-topbar {
    justify-content: center;
    position: static;
  }

  .yoper-home-topbar-cta {
    display: none;
  }

  .yoper-home-profile-main {
    text-align: center;
  }

  .yoper-home-profile-stats {
    justify-content: center;
  }

  .yoper-home-ctas {
    grid-template-columns: 1fr 1fr;
  }
}
