* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

.top-navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.site-logo img {
  height: 38px;
  width: auto;
  display: block;
}

#themeToggle {
  font-size: 1.1rem;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(0,0,0,.05);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .top-navbar {
    height: 64px;
    padding: 0 12px;
  }

  .site-logo img {
    height: 32px;
  }

  #themeToggle {
    font-size: 1rem;
    padding: 7px;
  }
}

/* DARK MODE NAVBAR */
html.dark .top-navbar {
  background: rgba(15,23,42,0.92);
  border-bottom: 1px solid #334155;
}

html.dark #themeToggle {
  background: rgba(255,255,255,0.08);
  color: white;
}


.testimonials-ref {
  padding: 40px 20px 90px;
  background: #f6f8ff;
  text-align: center;
  transition: background 0.3s ease;
}

.testimonials-ref h2 {
  font-size: 36px;
  color: #111;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.subtitle {
  max-width: 720px;
  margin: 12px auto 40px;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.rating-card {
  max-width: 900px;
  margin: 0 auto 70px;
  padding: 32px;
  background: #fff;
  border-radius: 18px;
  display: flex;
  gap: 40px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.rating-left {
  flex-shrink: 0;
}

.rating-left h1 {
  font-size: 42px;
  color: #111;
  transition: color 0.3s ease;
}

.rating-left span {
  font-size: 18px;
  color: #666;
}

.stars {
  color: #7b3ff2;
  font-size: 20px;
  margin: 8px 0;
}

.rating-left p {
  color: #666;
  font-size: 14px;
  margin-top: 8px;
}

.rating-bars {
  flex: 1;
}

.rating-bars div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rating-bars span {
  font-weight: 600;
  width: 12px;
  color: #333;
}

.bar {
  width: 100%;
  max-width: 220px;
  height: 6px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  background: #7b3ff2;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.rating-bars b {
  width: 40px;
  text-align: right;
  font-size: 13px;
  color: #666;
}

.review-list {
  max-width: 900px;
  margin: auto;
}

.review-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 36px;
  gap: 16px;
}

.review-row.right {
  flex-direction: row-reverse;
}

.avatar {
  width: 64px;
  height: 64px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(45deg, #7b3ff2, #ec4899);
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.review-pill {
  max-width: 620px;
  padding: 20px 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: all 0.3s ease;
}

.review-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.name {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  display: inline-block;
}

.name.blue {
  background: #3b82f6;
}

.name.green {
  background: #22c55e;
}

.name.orange {
  background: #f97316;
}

.level {
  display: block;
  font-size: 11px;
  color: #7b3ff2;
  margin-top: 6px;
  font-weight: 500;
}

.review-pill p {
  font-size: 13.5px;
  color: #555;
  margin-top: 10px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.share-text {
  margin-top: 40px;
  font-size: 16px;
  color: #666;
  transition: color 0.3s ease;
}

.feedback-btn {
  margin-top: 20px;
  padding: 14px 34px;
  border-radius: 999px;
  background: #7b3ff2;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.feedback-btn:hover {
  background: #6b32d8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(123, 63, 242, 0.3);
}

.feedback-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.feedback-modal {
  width: 90%;
  max-width: 420px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1f1633, #0f0a1a);
  color: #fff;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.modal-sub {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.feedback-modal h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.feedback-modal label {
  display: block;
  font-size: 14px;
  margin-top: 16px;
  margin-bottom: 8px;
  color: #e5e7eb;
}

.rating-stars {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.rating-stars span {
  font-size: 28px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.rating-stars span:hover,
.rating-stars span.active {
  color: #ffdd00;
  transform: scale(1.1);
}

.feedback-modal select,
.feedback-modal textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.feedback-modal select:focus,
.feedback-modal textarea:focus {
  outline: none;
  border-color: #7b3ff2;
  background: rgba(255, 255, 255, 0.12);
}

.feedback-modal select option {
  background: #1f1633;
  color: #fff;
}

.feedback-modal textarea {
  resize: none;
  min-height: 100px;
  max-height: 150px;
}

.post-btn {
  width: 100%;
  padding: 13px;
  background: #7b3ff2;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.3s ease;
}

.post-btn:hover {
  background: #6b32d8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(123, 63, 242, 0.4);
}


/* ============================================================
   DARK MODE
   ============================================================ */
html.dark .testimonials-ref {
  background: #0f172a;
}

html.dark .testimonials-ref h2 {
  color: #ffffff;
}

html.dark .subtitle {
  color: #94a3b8;
}

html.dark .rating-card {
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

html.dark .rating-left h1 {
  color: #ffffff;
}

html.dark .rating-left span {
  color: #94a3b8;
}

html.dark .rating-left p {
  color: #94a3b8;
}

html.dark .rating-bars span {
  color: #cbd5e1;
}

html.dark .rating-bars b {
  color: #94a3b8;
}

html.dark .bar {
  background: #334155;
}

html.dark .review-pill {
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

html.dark .review-pill p {
  color: #94a3b8;
}

html.dark .share-text {
  color: #94a3b8;
}