/* [IBP:UI] File: /assets/css/service-feed.css | Version: 1.0.12 | Reason: Add lightweight states for real Service Feed comments API integration while preserving existing feed layout. */
:root {
  --sf-bg: #fff8f7;
  --sf-surface: #ffffff;
  --sf-surface-soft: #fff1ee;
  --sf-text: #201817;
  --sf-muted: #82706e;
  --sf-brand: #b65a52;
  --sf-brand-strong: #8f3833;
  --sf-brand-soft: rgba(182, 90, 82, 0.12);
  --sf-border: rgba(93, 62, 58, 0.14);
  --sf-danger: #d9304f;
  --sf-success: #16815f;
  --sf-gold: #d7a84f;
  --sf-radius-card: 0;
  --sf-radius-pill: 999px;
  --sf-shadow-card: 0 18px 48px rgba(83, 50, 46, 0.13);
  --sf-motion-fast: 200ms;
  --sf-motion-normal: 300ms;
  --sf-feed-width: 520px;
}

.sf-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(215, 168, 79, 0.18), transparent 34%),
    linear-gradient(180deg, var(--sf-bg), #ffffff 46%);
  color: var(--sf-text);
  padding: 0 0 56px;
}

/* [IBP:UI] v1.0.31: Override the global .site-main section padding so the Beautygram title card starts flush under the public header. */
.site-main .sf-page {
  padding: 0 0 56px;
}

.sf-hero,
.sf-stories,
.sf-feed,
.sf-feed-context {
  max-width: var(--sf-feed-width);
  margin-inline: auto;
}


.sf-feed-context {
  direction: rtl;
  padding: 0 1px 10px;
}

.sf-feed-context__title {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--sf-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(83, 50, 46, 0.08);
  padding: 10px 12px;
  color: var(--sf-text);
  font-size: clamp(17px, 4.4vw, 22px);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: -0.015em;
}


.sf-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 16px 14px;
}

.sf-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: var(--sf-radius-pill);
  background: var(--sf-brand-soft);
  color: var(--sf-brand-strong);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.sf-title {
  margin: 10px 0 6px;
  font-size: clamp(25px, 6vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.sf-subtitle {
  margin: 0;
  color: var(--sf-muted);
  font-size: 14px;
  line-height: 1.9;
}

.sf-hero__actions {
  display: flex;
  justify-content: flex-start;
}

.sf-hero__btn,
.sf-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--sf-radius-pill);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--sf-motion-fast) ease, box-shadow var(--sf-motion-fast) ease, background var(--sf-motion-fast) ease;
}

.sf-hero__btn--primary,
.sf-empty__btn {
  background: linear-gradient(135deg, var(--sf-brand), var(--sf-brand-strong));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(182, 90, 82, 0.24);
}

.sf-hero__btn:active,
.sf-empty__btn:active {
  transform: scale(0.97);
}

.sf-stories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding: 5px 8px 16px;
  margin-bottom: 6px;
}

.sf-stories::-webkit-scrollbar {
  display: none;
}

.sf-story {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sf-text);
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 66px;
  padding: 0;
  cursor: pointer;
}

.sf-story__ring {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--sf-brand), var(--sf-gold));
  transition: transform var(--sf-motion-normal) cubic-bezier(.2,.8,.2,1), filter var(--sf-motion-fast) ease;
}

.sf-story:not(.is-active) .sf-story__ring {
  background: linear-gradient(135deg, rgba(182, 90, 82, 0.28), rgba(215, 168, 79, 0.28));
}

.sf-story__avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sf-surface);
  color: var(--sf-brand-strong);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}

.sf-story__label {
  max-width: 70px;
  color: var(--sf-muted);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-story.is-active .sf-story__ring,
.sf-story:active .sf-story__ring {
  transform: scale(0.94);
  filter: saturate(1.2);
}

.sf-feed {
  display: grid;
  gap: 18px;
}

.sf-post,
.sf-empty {
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-card);
  box-shadow: var(--sf-shadow-card);
  overflow: hidden;
}

.sf-post {
  box-sizing: border-box;
  padding: 8px;
}

.sf-empty {
  padding: 28px 18px;
  text-align: center;
}

.sf-empty h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.sf-empty p {
  margin: 0 auto 18px;
  max-width: 360px;
  color: var(--sf-muted);
  line-height: 1.9;
}

.sf-post__head {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 10px;
}

.sf-post__menu {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--sf-surface-soft);
  color: var(--sf-muted);
  font-size: 17px;
  cursor: pointer;
}

.sf-provider {
  direction: rtl;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 9px;
  margin-inline-start: auto;
  color: var(--sf-text);
  text-decoration: none;
  min-width: 0;
  transition: transform var(--sf-motion-fast) ease;
}

.sf-provider:active {
  transform: scale(0.98);
}

.sf-provider__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(182, 90, 82, 0.24);
  background: var(--sf-surface-soft);
  flex: 0 0 auto;
}

.sf-provider__meta {
  display: grid;
  min-width: 0;
  text-align: left;
}

.sf-provider__name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.sf-provider__verified {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sf-success);
  color: #fff;
  font-size: 10px;
}

.sf-provider__city {
  color: var(--sf-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-carousel {
  position: relative;
  background: #140f0e;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.sf-carousel__track {
  height: 100%;
  display: flex;
  direction: ltr;
  transform: translateX(0);
  transition: transform var(--sf-motion-normal) cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.sf-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(182,90,82,.2), rgba(215,168,79,.14));
}

.sf-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-slide--video {
  background: #090909;
}

.sf-slide__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090909;
}

.sf-slide figcaption {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  border-radius: var(--sf-radius-pill);
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  backdrop-filter: blur(8px);
}

.sf-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  color: var(--sf-text);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  direction: ltr;
  transition: transform var(--sf-motion-fast) ease, background var(--sf-motion-fast) ease;
}

.sf-carousel__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  margin: auto;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 22px 22px;
  pointer-events: none;
}

.sf-carousel__btn--prev::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 6 9 12l6 6' fill='none' stroke='%231f2937' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sf-carousel__btn--next::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%231f2937' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sf-carousel__btn:active {
  transform: translateY(-50%) scale(0.92);
}

/* [IBP:UI] v1.0.7: carousel is clamped at the first/last slide, so edge buttons become disabled instead of wrapping. */
.sf-carousel__btn:disabled,
.sf-carousel__btn[aria-disabled="true"] {
  opacity: .38;
  cursor: default;
  pointer-events: none;
  transform: translateY(-50%);
}

.sf-carousel__btn--prev {
  left: 10px;
}

.sf-carousel__btn--next {
  right: 10px;
}

.sf-carousel__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 5px;
  direction: ltr;
}

.sf-carousel__dots button {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  padding: 0;
}

.sf-carousel__dots button.is-active {
  width: 18px;
  border-radius: var(--sf-radius-pill);
  background: #ffffff;
}

.sf-actions {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 4px;
}

.sf-actions__main {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.sf-action {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sf-text);
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--sf-motion-fast) cubic-bezier(.2,.8,.2,1), color var(--sf-motion-fast) ease, background var(--sf-motion-fast) ease;
}

.sf-action[data-sf-like],
.sf-action[data-sf-save],
.sf-action[data-sf-comments] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-width: 39px;
  padding-inline: 6px;
  border-radius: var(--sf-radius-pill);
}

.sf-action__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8px;
  color: currentColor;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  direction: ltr;
  pointer-events: none;
}

.sf-action:active,
.sf-action.is-burst {
  transform: scale(1.18);
}

/* [IBP:UI] v1.0.4: Use SVG heart for like state so browser/font fallback cannot render a hamburger-like glyph. */
.sf-heart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  pointer-events: none;
}

.sf-heart-icon__svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
  transition: fill var(--sf-motion-fast) ease, stroke var(--sf-motion-fast) ease, transform var(--sf-motion-fast) cubic-bezier(.2,.8,.2,1);
}

.sf-action.is-active[data-sf-like] {
  color: var(--sf-danger);
}

.sf-action.is-active[data-sf-like] .sf-heart-icon__svg {
  fill: currentColor;
  stroke: currentColor;
  transform: scale(1.04);
}

/* [IBP:UI] v1.0.8: Save uses inline SVG so the empty bookmark does not break in RTL/mobile rendering. */
.sf-action--save {
  position: relative;
}

.sf-save-icon,
.sf-save-icon__svg {
  display: block;
  width: 25px;
  height: 25px;
}

.sf-save-icon__svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transition: fill var(--sf-motion-fast) ease, stroke var(--sf-motion-fast) ease, transform var(--sf-motion-fast) cubic-bezier(.2,.8,.2,1);
}

.sf-action.is-active[data-sf-save] {
  color: var(--sf-brand-strong);
  background: var(--sf-brand-soft);
}

.sf-action.is-active[data-sf-save] .sf-save-icon__svg {
  fill: currentColor;
  stroke: currentColor;
  transform: scale(1.04);
}

/* [IBP:UI] v1.0.26: Messenger send action uses a cleaner paper-plane mark. */
.sf-action--send {
  color: var(--sf-text);
}

.sf-send-icon,
.sf-send-icon__svg {
  display: block;
  width: 24px;
  height: 24px;
}

.sf-send-icon__svg {
  fill: rgba(182, 90, 82, 0.08);
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transition: transform var(--sf-motion-fast) cubic-bezier(.2,.8,.2,1), color var(--sf-motion-fast) ease, fill var(--sf-motion-fast) ease;
}

.sf-action--send:active .sf-send-icon__svg,
.sf-action--send.is-burst .sf-send-icon__svg {
  transform: translateY(-1px) rotate(-10deg) scale(1.05);
  fill: rgba(182, 90, 82, 0.14);
}

/* [IBP:UI] v1.0.10: Comment action uses SVG to avoid emoji/font fallback drift. */
.sf-action--comment {
  color: var(--sf-text);
}

.sf-action--comment.is-active {
  color: var(--sf-brand-strong);
  background: var(--sf-brand-soft);
}

.sf-comment-icon,
.sf-comment-icon__svg {
  display: block;
  width: 24px;
  height: 24px;
}

.sf-comment-icon__svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill var(--sf-motion-fast) ease, stroke var(--sf-motion-fast) ease, transform var(--sf-motion-fast) cubic-bezier(.2,.8,.2,1);
}

.sf-action--comment.is-active .sf-comment-icon__svg {
  fill: rgba(182, 90, 82, 0.12);
  stroke: currentColor;
  transform: scale(1.04);
}

/* [IBP:UI] v1.0.3: UI-only interaction feedback; persistence remains out of scope for this iteration. */
.sf-interaction-note {
  min-height: 22px;
  margin: -2px 12px 8px;
  padding-inline: 3px;
  color: var(--sf-muted);
  font-size: 12px;
  line-height: 1.8;
  transition: color var(--sf-motion-fast) ease, transform var(--sf-motion-fast) ease, opacity var(--sf-motion-fast) ease;
}

.sf-interaction-note.is-hot {
  color: var(--sf-brand-strong);
  transform: translateY(-1px);
}


.sf-toast-host {
  position: fixed;
  inset-inline: 14px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 9999;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}

.sf-toast {
  max-width: min(420px, calc(100vw - 28px));
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(32, 24, 23, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.8;
  box-shadow: 0 14px 34px rgba(32, 24, 23, 0.22);
  animation: sfToastIn 220ms ease both;
}

.sf-toast--success {
  background: rgba(22, 129, 95, 0.94);
}

.sf-toast--warning {
  background: rgba(143, 56, 51, 0.94);
}

.sf-toast.is-leaving {
  animation: sfToastOut 220ms ease both;
}

.sf-comment-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed rgba(182, 90, 82, 0.26);
  border-radius: 16px;
  background: rgba(255,255,255,0.56);
}

.sf-comment-composer span {
  color: var(--sf-muted);
  font-size: 12px;
  font-weight: 800;
}

.sf-comment-composer button {
  min-height: 30px;
  border: 0;
  border-radius: var(--sf-radius-pill);
  padding: 0 12px;
  background: rgba(130,112,110,0.16);
  color: var(--sf-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
}

/* [IBP:UI] v1.0.12: Per-post comment panel is connected to real comment APIs with lightweight loading/error/success states. */
.sf-comment-panel {
  margin: 0 12px 10px;
  padding: 6px;
  border: 1px solid rgba(182, 90, 82, 0.14);
  border-radius: 20px;
  background: var(--sf-surface-soft);
  box-shadow: 0 12px 28px rgba(83, 50, 46, 0.06);
  animation: sfFadeSlide var(--sf-motion-normal) cubic-bezier(.2,.8,.2,1);
}

.sf-comment-panel__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 4px;
}

.sf-comment-panel__head strong {
  color: var(--sf-text);
  font-size: 14px;
  font-weight: 900;
}

.sf-comment-panel__close {
  appearance: none;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(130,112,110,0.12);
  color: var(--sf-muted);
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--sf-motion-fast) ease, background var(--sf-motion-fast) ease, color var(--sf-motion-fast) ease;
}

.sf-comment-panel__close:active {
  transform: scale(0.94);
}

/* [IBP:UI] v1.0.25: Comment panel closes through the comment icon and caption “کمتر”; the visual × control is intentionally removed. */
.sf-comment-panel__close {
  display: none;
}


.sf-comment-panel__hint,
.sf-comment-panel__empty {
  margin: 0 0 10px;
  color: var(--sf-muted);
  font-size: 12px;
  line-height: 1.8;
}

.sf-comment-panel__message {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(130,112,110,0.16);
  color: var(--sf-muted);
  font-size: 12px;
  line-height: 1.8;
}

.sf-comment-panel__message.is-success {
  color: var(--sf-success);
  border-color: rgba(22,129,95,0.22);
  background: rgba(22,129,95,0.08);
}

.sf-comment-panel__message.is-warning {
  color: var(--sf-brand-strong);
  border-color: rgba(182,90,82,0.22);
  background: rgba(182,90,82,0.08);
}

.sf-comment-panel__message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sf-comment-panel__message-actions a,
.sf-comment-panel__message-actions button {
  appearance: none;
  min-height: 32px;
  border: 0;
  border-radius: var(--sf-radius-pill);
  padding: 0 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.sf-comment-panel__message-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sf-brand), var(--sf-brand-strong));
  color: #ffffff;
}

.sf-comment-panel__message-actions button {
  background: rgba(130,112,110,0.14);
  color: var(--sf-muted);
}

.sf-comment-form {
  display: block;
  margin-bottom: 10px;
}

.sf-comment-form__label {
  display: none;
}

.sf-comment-form__field {
  position: relative;
}

.sf-comment-form__input {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 56px;
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  color: var(--sf-text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  padding: 9px 12px;
  padding-inline-end: 52px;
  outline: none;
  transition: border-color var(--sf-motion-fast) ease, box-shadow var(--sf-motion-fast) ease, background var(--sf-motion-fast) ease;
}

.sf-comment-form__input:focus {
  border-color: rgba(182,90,82,0.42);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(182,90,82,0.10);
}

.sf-comment-form__input:disabled {
  cursor: not-allowed;
  opacity: 0.74;
}

.sf-comment-form__submit {
  appearance: none;
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sf-brand), var(--sf-brand-strong));
  color: #ffffff;
  cursor: pointer;
  transition: transform var(--sf-motion-fast) ease, opacity var(--sf-motion-fast) ease;
}

.sf-comment-form__submit:active {
  transform: translateY(-50%) scale(0.94);
}

.sf-comment-form__submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.sf-comment-form__submit-icon,
.sf-comment-form__submit-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.sf-comment-form__submit-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-comment-panel__list {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.sf-comment-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 1px 0;
  background: transparent;
  border: 0;
}

.sf-comment-item + .sf-comment-item {
  margin-top: 0;
}

.sf-comment-item__avatar-wrap {
  width: 34px;
  height: 34px;
}

.sf-comment-item__avatar {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(130,112,110,0.14);
  border: 1px solid rgba(130,112,110,0.12);
}

.sf-comment-item__content {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.sf-comment-item__head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 7px;
  min-height: 20px;
}

.sf-comment-item__head strong {
  color: var(--sf-text);
  font-size: 13px;
  font-weight: 900;
}

.sf-comment-item__meta {
  color: var(--sf-muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.sf-comment-item__body {
  margin: 0;
  color: var(--sf-text);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sf-comment-item__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 8px;
  white-space: nowrap;
  vertical-align: baseline;
}

.sf-comment-item__actions button {
  appearance: none;
  min-height: 22px;
  border: 0;
  border-radius: var(--sf-radius-pill);
  padding: 0 7px;
  background: rgba(130,112,110,0.10);
  color: var(--sf-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.sf-comment-item__actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.sf-comment-panel__empty {
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.62);
  border: 1px dashed rgba(130,112,110,0.18);
}

.sf-caption {
  padding: 0 12px 10px;
}

.sf-caption__title {
  margin: 0 0 6px;
  color: var(--sf-text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.7;
}

.sf-caption__line {
  margin: 0;
  color: var(--sf-text);
  font-size: 13px;
  line-height: 1.9;
}

.sf-caption__line a {
  color: var(--sf-text);
  font-weight: 900;
  text-decoration: none;
  margin-inline-end: 5px;
}

.sf-more {
  appearance: none;
  border: 0;
  background: rgba(130,112,110,0.10);
  color: var(--sf-muted);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-inline-start: 4px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  vertical-align: middle;
}

.sf-more__icon {
  display: block;
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--sf-motion-fast) ease;
}

.sf-more[aria-expanded="true"] .sf-more__icon {
  transform: translateY(2px) rotate(225deg);
}

.sf-caption__more {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  background: var(--sf-surface-soft);
  color: var(--sf-muted);
  font-size: 13px;
  line-height: 1.9;
  animation: sfFadeSlide var(--sf-motion-normal) cubic-bezier(.2,.8,.2,1);
}

.sf-caption__more h3 {
  color: var(--sf-text);
  font-size: 15px;
  margin: 0 0 6px;
}

.sf-caption__more p {
  margin: 0 0 8px;
}

.sf-caption__price {
  color: var(--sf-brand-strong);
  font-weight: 900;
}

.sf-comments-preview {
  border-top: 1px solid var(--sf-border);
  margin-top: 10px;
  padding-top: 10px;
}

.sf-comments-preview strong {
  color: var(--sf-text);
}

.sf-post__footer {
  display: flex;
  gap: 10px;
  padding: 0 12px 14px;
}

.sf-post__cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--sf-radius-pill);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform var(--sf-motion-fast) ease, background var(--sf-motion-fast) ease;
}

.sf-post__cta:active {
  transform: scale(0.97);
}

.sf-post__cta--primary {
  background: linear-gradient(135deg, var(--sf-brand), var(--sf-brand-strong));
  color: #fff;
}

.sf-post__cta--ghost {
  color: var(--sf-brand-strong);
  background: var(--sf-brand-soft);
}

@keyframes sfToastIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sfToastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
}

@keyframes sfFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 760px) {
  .sf-page {
    padding-block-start: 10px;
  }

  /* [IBP:UI] v1.0.28: Keep the 4/5 media ratio intact and reduce the desktop feed image by 20% versus the previous verified 420px feed width. */
  .sf-feed,
  .sf-feed-context {
    max-width: 336px;
  }

  .sf-feed-context {
    padding-inline: 1px;
  }

  .sf-post,
  .sf-empty {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-story__ring,
  .sf-carousel__track,
  .sf-action,
  .sf-interaction-note,
  .sf-comment-panel,
  .sf-comment-icon__svg,
  .sf-caption__more,
  .sf-post__cta,
  .sf-hero__btn,
  .sf-empty__btn {
    transition: none !important;
    animation: none !important;
  }
}


/* [IBP:UI] v1.0.29: Mobile feed cards reach the viewport edges while preserving the carousel aspect ratio. */
@media (max-width: 759px) {
  .sf-feed {
    box-sizing: border-box;
    max-width: none;
    padding-inline: 0;
    margin-inline: -14px;
  }

  .sf-carousel__btn {
    display: none;
  }
}

/* [IBP:UI] v1.0.1: Button-based compare CTA shares the same visual language as link CTAs. */
button.sf-post__cta {
  font-family: inherit;
  cursor: pointer;
}

.sf-post__cta.is-active {
  border-color: var(--sf-brand);
  color: var(--sf-brand);
  background: var(--sf-brand-soft);
}


/* [IBP:UI] v1.0.2 | Service Feed compare tray: page-scoped bottom sheet so the global compare message does not render awkwardly. */
.sf-page .compare-tray{
  position: fixed;
  right: auto;
  left: 50%;
  bottom: 14px;
  width: min(var(--sf-feed-width), calc(100vw - 24px));
  z-index: 1200;
  opacity: 0;
  transform: translateX(-50%) translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--sf-motion-fast) ease, transform var(--sf-motion-fast) ease;
}

.sf-page .compare-tray.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.sf-page .compare-tray__inner{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(32, 24, 23, 0.92);
  color: #fff;
  box-shadow: 0 20px 48px rgba(32,24,23,0.24);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.sf-page .compare-tray__count{
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sf-page .compare-tray__countStrong{
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.6;
}

.sf-page .compare-tray__hint{
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  line-height: 1.6;
}

.sf-page .compare-tray__actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-page .compare-tray__cta,
.sf-page .compare-tray__clear{
  appearance: none;
  -webkit-appearance: none;
  min-height: 36px;
  border-radius: var(--sf-radius-pill);
  border: 0;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.sf-page .compare-tray__cta{
  background: #fff;
  color: var(--sf-text);
}

.sf-page .compare-tray__cta[disabled]{
  cursor: default;
  opacity: 0.55;
}

.sf-page .compare-tray__clear{
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
}

.sf-page .sf-post__cta--ghost.is-selected,
.sf-page .sf-post__cta--ghost[aria-pressed="true"]{
  background: var(--sf-brand-soft);
  color: var(--sf-brand-strong);
  border-color: rgba(182, 90, 82, 0.42);
}

.sf-page .sf-post__cta--ghost.is-loading{
  opacity: 0.68;
  cursor: wait;
}

@media (max-width: 680px){
  .sf-page .compare-tray{
    bottom: 10px;
    width: calc(100vw - 18px);
  }

  .sf-page .compare-tray__inner{
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .sf-page .compare-tray__actions{
    width: 100%;
    justify-content: stretch;
  }

  .sf-page .compare-tray__cta,
  .sf-page .compare-tray__clear{
    flex: 1 1 0;
  }
}


/* [IBP:UI] v1.0.8 | Admin inline moderation for owner-hidden comments. */
.sf-comment-item.is-hidden-by-owner {
  border-color: rgba(182,90,82,0.28);
  background: rgba(255,246,244,0.92);
}

.sf-comment-item__status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: var(--sf-radius-pill);
  padding: 0 8px;
  background: rgba(182,90,82,0.12);
  color: var(--sf-brand-strong);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.sf-comment-item__actions {
  gap: 8px;
  flex-wrap: wrap;
}

.sf-comment-item__actions [data-sf-comment-restore] {
  background: var(--sf-brand-soft);
  color: var(--sf-brand-strong);
}


.sf-post.is-review-target{
  outline:3px solid rgba(251,146,60,.55);
  outline-offset:6px;
  border-radius:22px;
}
