:root {
  --yellow: #ffd800;
  --yellow-deep: #e0b900;
  --black: #05090d;
  --navy: #08141e;
  --card: #111b23;
  --line: rgba(255,255,255,.13);
  --white: #fff;
  --muted: #b8c0ca;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; background: transparent; color: var(--white); font-family: "Poppins", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.reviews-widget {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 4.2vw, 60px) clamp(28px, 5.2vw, 72px) 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 53% -25%, rgba(32,56,72,.46), transparent 50%),
    linear-gradient(145deg, #08121a 0%, #03070a 58%, #08131b 100%);
  box-shadow: 0 18px 46px rgba(3,10,16,.14);
}

.glow { position: absolute; width: 270px; height: 270px; border: 1px solid rgba(255,216,0,.8); border-radius: 50%; pointer-events: none; }
.glow-one { top: -210px; left: -130px; }
.glow-two { right: -145px; bottom: -210px; }

.reviews-heading { position: relative; z-index: 1; text-align: center; }
.reviews-heading h1 { max-width: 1060px; margin: 0 auto; font-size: clamp(27px, 3.25vw, 47px); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; }
.reviews-heading h1 strong { color: var(--yellow); font-weight: 900; }
.reviews-heading p { margin: 10px 0 0; color: var(--muted); font-size: clamp(13px, 1.4vw, 17px); }
.reviews-heading p strong { color: var(--yellow); }

.rating-summary {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(700px, 100%);
  min-height: 92px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 24px auto 25px;
  padding: 14px 25px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.rating-number { font-size: clamp(39px, 4vw, 55px); line-height: 1; letter-spacing: -.05em; }
.divider { width: 1px; height: 42px; background: rgba(255,255,255,.35); }
.stars { color: var(--yellow); letter-spacing: .04em; line-height: 1; }
.stars-large { font-size: clamp(25px, 2.65vw, 38px); white-space: nowrap; }
.google-rating { display: flex; flex-direction: column; gap: 2px; }
.google-word { display: flex; align-items: center; gap: 7px; font-size: clamp(16px, 2vw, 25px); white-space: nowrap; }
.google-logo-text { display: inline-flex; align-items: baseline; font-weight: 700; letter-spacing: -.075em; }
.google-logo-text span { display: inline-block; }
.google-blue { color: #4285f4; }
.google-red { color: #ea4335; }
.google-yellow { color: #fbbc05; }
.google-green { color: #34a853; }
.google-word strong { margin-left: 4px; }
.google-rating small { color: #c4ccd5; font-size: 12px; }

.carousel-shell { position: relative; z-index: 1; }
.reviews-track { display: grid; grid-auto-columns: calc((100% - 42px) / 4); grid-auto-flow: column; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card { display: flex; min-width: 0; min-height: 267px; flex-direction: column; scroll-snap-align: start; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); box-shadow: 0 12px 25px rgba(0,0,0,.12); }
.review-card.featured { border-color: rgba(255,216,0,.9); box-shadow: inset 0 0 0 1px rgba(255,216,0,.18), 0 12px 25px rgba(0,0,0,.13); }
.review-author { display: flex; align-items: center; gap: 11px; }
.author-photo, .author-initial { display: grid; flex: 0 0 47px; width: 47px; height: 47px; place-items: center; border-radius: 50%; object-fit: cover; color: #fff; font-size: 19px; font-weight: 700; }
.author-initial { background: linear-gradient(135deg, #1e9b77, #0b5f7f); }
.author-meta { min-width: 0; }
.author-meta strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.author-meta small { display: block; margin-top: 2px; color: #aeb8c3; font-size: 10px; }
.card-stars { margin-top: 11px; font-size: 20px; letter-spacing: .01em; }
.review-text { display: -webkit-box; overflow: hidden; margin: 9px 0 14px; color: #f3f5f7; font-size: 12.5px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.review-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.read-more { padding: 0; border: 0; border-bottom: 1px solid rgba(255,216,0,.65); background: transparent; color: var(--yellow); font-size: 11px; font-weight: 700; cursor: pointer; }
.read-more:hover { color: #fff; border-bottom-color: #fff; }
.google-g { margin-left: auto; font-size: 21px; }
.google-logo-small { font-size: 21px; font-weight: 800; }
.carousel-arrow { position: absolute; z-index: 3; top: 50%; display: grid; width: 43px; height: 43px; place-items: center; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(6,13,18,.9); color: #fff; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.carousel-arrow:hover { border-color: var(--yellow); background: var(--yellow); color: #071018; transform: translateY(-50%) scale(1.05); }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow.previous { left: -53px; }
.carousel-arrow.next { right: -53px; }
.carousel-arrow:disabled { opacity: .28; cursor: default; }

.carousel-dots { position: relative; z-index: 1; display: flex; justify-content: center; gap: 8px; margin-top: 21px; }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; cursor: pointer; }
.carousel-dots button.active { border-color: var(--yellow); background: var(--yellow); }
.sync-status { height: 0; margin: 0; overflow: hidden; color: transparent; font-size: 1px; }
.modal-open { overflow: hidden; }
.review-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.review-modal[hidden] { display: none; }
.review-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.78); cursor: pointer; }
.review-modal-dialog { position: relative; width: min(560px, 100%); max-height: min(620px, calc(100vh - 40px)); overflow-y: auto; padding: 29px; border: 1px solid rgba(255,216,0,.7); border-radius: 20px; background: linear-gradient(145deg, #14212b, #070e14); box-shadow: 0 24px 70px rgba(0,0,0,.48); }
.review-modal-close { position: absolute; top: 12px; right: 14px; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.05); color: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
.review-modal-close:hover { border-color: var(--yellow); background: var(--yellow); color: #071018; }
.review-modal-author { display: flex; align-items: center; gap: 11px; padding-right: 42px; }
.review-modal-dialog > p { margin: 15px 0 22px; color: #f7f8f9; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.review-modal-dialog #modalGoogle { display: block; width: max-content; margin-left: auto; font-size: 23px; }

@media (max-width: 960px) {
  .reviews-track { grid-auto-columns: calc((100% - 28px) / 3); }
  .carousel-arrow.previous { left: -48px; }
  .carousel-arrow.next { right: -48px; }
}

@media (max-width: 700px) {
  .reviews-widget { width: 100%; padding: 28px 14px 23px; border-radius: 22px; }
  .reviews-heading h1 { font-size: clamp(25px, 7.6vw, 34px); line-height: 1.16; }
  .reviews-heading p { max-width: 330px; margin: 10px auto 0; font-size: 12px; line-height: 1.5; }
  .rating-summary { min-height: 88px; gap: 11px; margin: 20px auto 16px; padding: 12px; }
  .rating-number { font-size: 38px; }
  .divider { height: 37px; }
  .stars-large { font-size: 22px; letter-spacing: 0; }
  .google-word { font-size: 14px; }
  .google-rating small { font-size: 8.5px; }
  .reviews-track { grid-auto-columns: 88%; gap: 10px; padding-right: 10%; }
  .review-card { min-height: 255px; padding: 18px; }
  .review-modal { padding: 14px; }
  .review-modal-dialog { padding: 24px 20px; border-radius: 17px; }
  .carousel-arrow { display: none; }
  .carousel-dots { margin-top: 15px; }
  .glow { width: 180px; height: 180px; }
  .glow-one { top: -140px; left: -90px; }
  .glow-two { right: -95px; bottom: -145px; }
}

@media (max-width: 390px) {
  .rating-summary { display: grid; grid-template-columns: auto 1px 1fr; gap: 9px; }
  .stars-large { grid-column: 3; grid-row: 1; font-size: 19px; align-self: end; }
  .google-rating { grid-column: 3; grid-row: 1; align-self: end; transform: translateY(20px); }
  .google-rating small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
