/* ==========================================================================
   MODERN FIVERR PRO & UPWORK VERIFIED REVIEWS HUB
   ========================================================================== */

.fv-reviews-section {
  padding: 108px 0 116px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 45%, #F8FAFC 100%);
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  font-family: var(--sans, "DM Sans", system-ui, -apple-system, sans-serif);
  color: #0F172A;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.fv-reviews-section *,
.fv-reviews-section *::before,
.fv-reviews-section *::after {
  box-sizing: border-box;
}

#fiverrReviewsMount {
  width: 100%;
  max-width: 100%;
}

.fv-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 1. Top Editorial Intro + View Mode Switcher --- */
.fv-top-intro {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  gap: 24px;
  margin-bottom: 46px;
  width: 100%;
}

.fv-top-copy {
  flex: 1 1 480px;
  max-width: 680px;
  width: auto;
  margin: 0;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fv-kicker {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1DBF73;
  line-height: 1.4;
  margin: 0 0 10px 0;
  text-align: left;
}

.fv-reviews-section .fv-title,
.fv-reviews-section h2.fv-title {
  font-family: var(--font-heading, 'Satoshi', 'Inter', sans-serif);
  font-size: clamp(2.15rem, 4.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #0F172A;
  margin: 0 0 14px 0;
  text-align: left;
  text-wrap: balance;
  word-break: break-word;
}

.fv-reviews-section .fv-title .wa-ai-title-muted {
  display: block;
  margin-top: 4px;
  color: #475569;
  font-weight: 700;
}

.fv-reviews-section .fv-title .wa-ai-title-accent {
  background: linear-gradient(120deg, #1142CF 0%, #1D5CFF 45%, #0284C7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #1D5CFF;
}

.fv-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
  max-width: 62ch;
  text-align: left;
}

/* Segmented View Switcher (Slider vs Grid) */
.fv-view-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  flex-shrink: 0;
  margin: 0;
}

.fv-view-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.fv-view-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.fv-view-btn:hover {
  color: #0F172A;
}

.fv-view-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* --- 2. Controls Bar (Segmented Filter Tabs) --- */
.fv-controls-bar {
  display: block;
  width: 100%;
  margin-bottom: 24px;
}

.fv-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.fv-tab {
  appearance: none;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.2;
  white-space: nowrap;
}

.fv-tab:hover {
  border-color: #0F172A;
  color: #0F172A;
}

.fv-tab.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.fv-tab-count {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}

/* --- 3. Slider Arrow Buttons (Centered Bottom Under Reviews) --- */
.fv-nav-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.fv-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

@media (hover: hover) {
  .fv-nav-btn:hover:not(:disabled) {
    border-color: #0F172A;
    background: #0F172A;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  }
}

.fv-nav-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.fv-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.fv-nav-btn svg {
  width: 19px;
  height: 19px;
}

/* --- 4. Reviews Track (Horizontal Slider or 3-Column Grid) --- */
.fv-slider-viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 2px 0 6px;
}

.fv-slider-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  cursor: grab;
  padding: 4px 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fv-slider-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
  -webkit-user-select: none;
}

.fv-slider-track.is-dragging .fv-card {
  transition: none;
}

.fv-slider-track img {
  -webkit-user-drag: none;
  user-select: none;
}

.fv-slider-track::-webkit-scrollbar {
  display: none;
}

/* Grid Mode Layout */
.fv-slider-track.is-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  overflow: visible;
  scroll-snap-type: none;
  cursor: default;
}

.fv-slider-track.is-grid .fv-card {
  flex: initial !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* --- 5. Modern Fiverr Pro + Upwork Review Card --- */
.fv-card {
  flex: 0 0 calc((100% - 40px) / 3);
  width: calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .fv-card:hover {
    border-color: #94A3B8;
    transform: translateY(-2px);
  }
}

.fv-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Reviewer Profile Header */
.fv-card-reviewer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 14px;
  width: 100%;
  min-width: 0;
}

.fv-avatar-outer {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.fv-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
}

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

.fv-avatar-verified {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fv-avatar-verified svg {
  width: 16px;
  height: 16px;
  display: block;
}

.fv-reviewer-details {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.fv-username-row {
  display: block;
  width: 100%;
  margin-bottom: 4px;
}

.fv-username {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fv-meta-subrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 6px;
  row-gap: 3px;
  font-size: 13px;
  color: #64748B;
  line-height: 1.35;
}

.fv-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-weight: 500;
  min-width: 0;
  max-width: 100%;
}

.fv-flag {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.fv-meta-dot {
  color: #CBD5E1;
  flex-shrink: 0;
}

.fv-repeat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0F766E;
  white-space: nowrap;
  flex-shrink: 0;
}

.fv-repeat-badge svg {
  width: 12.5px;
  height: 12.5px;
  color: #0F766E;
  flex-shrink: 0;
}

/* Stars + Score + Timestamp */
.fv-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}

.fv-rating-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fv-card-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #FFB33E;
}

.fv-card-stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.fv-card-score {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
}

.fv-time-ago {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Review Comment Body */
.fv-review-text {
  font-size: 15px;
  line-height: 1.65;
  color: #1E293B;
  margin: 0 0 20px 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex: 1;
}

.fv-read-more-btn {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin-left: 5px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.fv-read-more-btn:hover {
  color: #1DBF73;
}

/* Structured Fiverr 2-Column Metadata Footer (Collision-Proof Grid) */
.fv-card-footer {
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px auto;
  align-items: center;
  column-gap: 12px;
  width: 100%;
}

.fv-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fv-meta-col-right {
  text-align: right;
  flex-shrink: 0;
}

.fv-meta-divider {
  width: 1px;
  height: 26px;
  background: #E2E8F0;
  flex-shrink: 0;
}

.fv-meta-val {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fv-meta-lbl {
  display: block;
  font-size: 11.5px;
  color: #64748B;
  font-weight: 500;
  line-height: 1.25;
}

/* --- 6. Bottom Centered Navigation, Progress & Show More Bar --- */
.fv-bottom-bar {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.fv-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.fv-progress-track {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  max-width: 220px;
}

.fv-progress-fill {
  height: 100%;
  background: #0F172A;
  width: 100%;
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0.12);
  transition: transform 0.16s ease-out;
}

.fv-showing-text {
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.fv-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  width: 100%;
}

.fv-load-more-btn {
  appearance: none;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fv-load-more-btn svg {
  width: 16px;
  height: 16px;
}

.fv-load-more-btn:hover {
  border-color: #0F172A;
  background: #F8FAFC;
}

.fv-empty-state {
  width: 100%;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed #CBD5E1;
  border-radius: 14px;
  color: #64748B;
  font-size: 15px;
  background: #FFFFFF;
}

/* --- 7. Tablet Breakpoint (2 Cards in Slider / 2 Columns in Grid) --- */
@media (max-width: 1024px) {
  .fv-reviews-section {
    padding: 84px 0 92px;
  }

  .fv-slider-track {
    gap: 16px;
  }

  .fv-card {
    flex: 0 0 calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }

  .fv-slider-track.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* --- 8. Mobile & Small Tablet Breakpoint (<= 768px) --- */
@media (max-width: 768px) {
  .fv-reviews-section {
    padding-top: 64px !important;
    padding-bottom: 72px !important;
  }

  /* styles.css already applies 15px horizontal padding to <section> on <= 768px */
  .fv-container {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .fv-top-intro {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 36px;
  }

  .fv-top-copy {
    flex: none;
    width: 100%;
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .fv-kicker {
    margin: 0 auto 10px;
    text-align: center;
  }

  .fv-reviews-section .fv-title,
  .fv-reviews-section h2.fv-title {
    font-size: clamp(1.85rem, 6.2vw, 2.35rem);
    line-height: 1.15 !important;
    margin: 0 auto 10px !important;
    text-align: center;
  }

  .fv-subtitle {
    font-size: 14.75px;
    line-height: 1.58;
    margin: 0 auto;
    text-align: center;
  }

  .fv-view-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 auto;
  }

  .fv-view-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 13px;
  }

  .fv-controls-bar {
    margin-bottom: 18px;
  }

  .fv-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }

  .fv-tab {
    font-size: 12.5px;
    padding: 8px 12px;
    border-radius: 8px;
  }
}

/* --- 9. Phone Breakpoint (<= 640px: 1 Full Card Per View, Zero Overlap) --- */
@media (max-width: 640px) {
  .fv-reviews-section {
    padding-top: 52px !important;
    padding-bottom: 60px !important;
  }

  .fv-kicker {
    font-size: 10.5px;
    letter-spacing: 0.13em;
    margin-bottom: 8px;
  }

  .fv-reviews-section .fv-title,
  .fv-reviews-section h2.fv-title {
    font-size: clamp(1.68rem, 6.8vw, 2.05rem);
    line-height: 1.16 !important;
    margin: 0 auto 10px !important;
  }

  .fv-subtitle {
    font-size: 14px;
    line-height: 1.55;
  }

  .fv-tab {
    font-size: 12px;
    padding: 7px 11px;
  }

  .fv-slider-track {
    gap: 14px;
    padding: 2px 0 10px;
  }

  .fv-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding: 18px;
    border-radius: 14px;
  }

  .fv-slider-track.is-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fv-card-reviewer {
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .fv-avatar-outer,
  .fv-avatar-wrap {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .fv-username {
    font-size: 14.5px;
  }

  .fv-meta-subrow {
    font-size: 12px;
  }

  .fv-repeat-badge {
    font-size: 11.5px;
  }

  .fv-review-text {
    font-size: 14.25px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .fv-card-footer {
    padding-top: 12px;
    column-gap: 10px;
  }

  .fv-meta-val {
    font-size: 12.5px;
  }

  .fv-meta-lbl {
    font-size: 11px;
  }

  .fv-bottom-bar {
    margin-top: 14px;
    gap: 12px;
  }

  .fv-load-more-btn {
    width: 100%;
    max-width: 320px;
    min-height: 44px;
  }
}
