.reviews-section {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.reviews-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

#header {
  position: relative;
  background: rgba(19, 17, 28, 0.3);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 120px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  flex-grow: 1;
  justify-content: center;
}

.header-title h2 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.add-review-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.add-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.add-review-btn i {
  font-size: 0.9rem;
}

.reviews-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
  perspective: 1000px;
}

.review-card {
  background: rgba(25, 25, 35, 0.75);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
}

.review-card:hover {
  transform: translateY(-5px) rotateX(2deg);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 40px -20px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(255, 255, 255, 0.05);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.review-avatar {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 6px 12px -6px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateZ(20px);
}

.review-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, 
              rgba(255,255,255,0.1) 0%, 
              rgba(255,255,255,0) 60%);
  z-index: 1;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
}

.review-card:hover .profile-pic {
  transform: scale(1.15);
}

.review-info {
  flex-grow: 1;
  transform: translateZ(10px);
}

.review-info h4 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
}

.review-info h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8ab4f8, transparent);
  transition: width 0.3s ease;
}

.review-card:hover .review-info h4::after {
  width: 100%;
}

.telegram-handle {
  margin-top: 0.4rem;
}

.telegram-handle a {
  color: #8ab4f8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  opacity: 0.9;
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: rgba(138, 180, 248, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(138, 180, 248, 0.2);
}

.telegram-handle a:hover {
  color: #fff;
  background: rgba(138, 180, 248, 0.2);
  border-color: rgba(138, 180, 248, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px -4px rgba(138, 180, 248, 0.3);
}

.review-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  position: relative;
  transform: translateZ(5px);
}

.review-content::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
  font-family: serif;
  line-height: 1;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateZ(15px);
}

/* Enhanced Star Rating */
.star-rating {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  margin: 1rem 0;
}

.star-rating i {
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffd700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3));
}

.star-rating i:hover {
  transform: scale(1.2) rotate(5deg);
  color: #ffed4a;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

.star-rating i.fas {
  animation: starPop 0.3s ease-out;
}

@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(1); }
}

/* Review Stars Display */
.review-stars {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.review-stars .stars-container {
  display: flex;
  gap: 0.15rem;
}

.review-stars i {
  font-size: 1.1rem;
  color: #ffd700;
  filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.2));
}

.review-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Verified Client Label */
.verified-client {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: rgba(72, 187, 120, 0.1);
  border: 1px solid rgba(72, 187, 120, 0.15);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #4ade80;
  font-weight: 500;
  margin-top: 0.6rem;
}

.verified-client i {
  font-size: 0.85rem;
  color: #4ade80;
  margin-right: 0.1rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.2rem;
}

.modal-title-icon {
  font-size: 1.7rem;
  margin-right: 0.2rem;
  filter: drop-shadow(0 2px 8px #8ab4f880);
}

.modal-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #e0e6f0;
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
  max-width: 80%;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, #8ab4f8 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close {
  position: static;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  margin-left: auto;
}
.close:hover {
  color: #fff;
  transform: rotate(90deg) scale(1.1);
}

.modal-divider {
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  margin-bottom: 1.1rem;
  border-radius: 2px;
}

.modal-content {
  position: relative;
  background: rgba(25, 25, 35, 0.65);
  backdrop-filter: blur(18px) saturate(1.2);
  margin: 7vh auto 0;
  padding: 2.2rem 2.7rem 1.5rem 2.7rem;
  width: 100%;
  max-width: 540px;
  min-width: 340px;
  border-radius: 28px;
  box-shadow: 0 16px 48px -12px rgba(0,0,0,0.45), 0 0 0 2px rgba(138,180,248,0.10), 0 0 32px 0 rgba(138,180,248,0.07) inset;
  border: 1.5px solid rgba(255,255,255,0.13);
  min-height: unset;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.3s, border 0.3s;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .modal-content {
    margin: 4vh auto 0;
    padding: 1.1rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
    min-width: unset;
    border-radius: 18px;
  }
  .modal-title {
    font-size: 1.1rem;
    max-width: 70%;
  }
}

.review-form {
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.floating-label {
  position: relative;
  margin-bottom: 0.2rem;
}
.floating-label input,
.floating-label textarea {
  background: rgba(30,30,40,0.95);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  padding: 0.9rem 1.1rem 0.9rem 1.1rem;
  width: 100%;
  transition: border 0.2s, background 0.2s;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04) inset;
}
.floating-label input:focus,
.floating-label textarea:focus {
  border-color: #8ab4f8;
  background: rgba(40,40,60,0.98);
}
.floating-label label {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #b6c2d6;
  font-size: 1rem;
  pointer-events: none;
  background: transparent;
  transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  padding: 0 0.2rem;
  z-index: 2;
}
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
  top: 0.2rem;
  left: 0.9rem;
  font-size: 0.85rem;
  color: #8ab4f8;
  background: rgba(25,25,35,0.85);
  padding: 0 0.3rem;
}

.social-handle-group {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
}
.social-select-wrapper {
  position: relative;
  width: 9.5rem;
  min-width: 7.5rem;
  max-width: 11rem;
}
.social-select-wrapper select {
  width: 100%;
  padding: 0.9rem 2.2rem 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(30,30,40,0.95);
  color: #8ab4f8;
  font-size: 1rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border 0.2s, background 0.2s;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04) inset;
}
.social-select-wrapper select:focus {
  border-color: #8ab4f8;
  background: rgba(40,40,60,0.98);
}
.social-select-wrapper select option {
  background: #23233a;
  color: #8ab4f8;
}
.social-select-icon {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #8ab4f8;
  font-size: 1.2rem;
  z-index: 3;
}

.social-handle-group .floating-label {
  flex: 1;
  margin-bottom: 0;
}

.star-rating.modern-stars {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  margin: 0.7rem 0 0.2rem 0;
}
.star-rating.modern-stars i {
  font-size: 2.1rem;
  color: #ffd700;
  filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3));
  transition: transform 0.2s, color 0.2s;
  cursor: pointer;
}
.star-rating.modern-stars i:hover,
.star-rating.modern-stars i.fas {
  color: #ffed4a;
  transform: scale(1.18) rotate(-5deg);
}

.submit-btn.modern-btn {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.9rem 0.5rem;
  border: none;
  border-radius: 22px;
  background: linear-gradient(90deg, #8B5CF6 0%, #6366F1 100%);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  box-shadow: 0 6px 24px -8px #8ab4f880;
  white-space: normal;
  text-align: center;
  margin-top: 1.3rem;
  margin-bottom: 0.1rem;
  letter-spacing: 0.2px;
}
.submit-btn.modern-btn .btn-icon {
  font-size: 1.25rem;
  margin-right: 0.3rem;
  display: inline-block;
}
.submit-btn.modern-btn .btn-text {
  white-space: normal;
  text-align: center;
  width: 100%;
  display: block;
}
.submit-btn.modern-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 32px -8px #8ab4f8cc;
  background: linear-gradient(90deg, #96bbf8 0%, #7a98ef 100%);
}

/* Notification Styles */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1.2rem 1.8rem;
  border-radius: 15px;
  background: rgba(20, 20, 25, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: slideIn 0.3s ease;
  backdrop-filter: blur(10px);
}

.notification.success {
  border-left: 4px solid #4caf50;
}

.notification.error {
  border-left: 4px solid #f44336;
}

.notification i {
  font-size: 1.3rem;
}

.notification.success i {
  color: #4caf50;
}

.notification.error i {
  color: #f44336;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  #header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  .logo,
  .header-social {
    display: none !important;
  }
  .header-title {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
  }
  .header-title h2 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .add-review-btn {
    width: 70%;
    max-width: 260px;
    min-width: 140px;
    margin: 0 auto;
    justify-content: center;
    margin-top: 0.5rem;
    display: block;
  }
  .reviews-section {
    padding: 2rem 1rem;
  }
  
  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin: 1rem 0 2rem;
    padding: 0;
    position: relative;
    width: 100%;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 2rem;
  }

  .review-card {
    padding: 1.5rem;
  }

  .review-avatar {
    width: 60px;
    height: 60px;
  }

  .notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    padding: 1rem 1.5rem;
  }

  /* Hide add-review-btn in header row on mobile, show below heading */
  .header-title {
    flex-direction: column;
    align-items: stretch;
  }
  .header-title h2 + .add-review-btn {
    order: 2;
    margin-top: 0.5rem;
    width: 100%;
    display: block;
  }
}

@media (max-width: 600px) {
  .modal-content {
    margin: 10vh auto 0;
    padding: 1.1rem 0.7rem 1rem 0.7rem;
    max-width: 98vw;
    min-width: unset;
    border-radius: 16px;
  }
}

/* Force show all elements without animation/transition */
.reviews-section *,
.section-header *,
.reviews-container * {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition: none !important;
}

.no-reviews {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  background: rgba(30, 30, 40, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.no-reviews.error {
  border-color: rgba(244, 67, 54, 0.3);
  color: #f44336;
}

.review-feedback {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feedback-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.feedback-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.feedback-btn.active {
  background: rgba(100, 255, 218, 0.1);
  border-color: rgba(100, 255, 218, 0.3);
  color: #64ffda;
}

.feedback-btn i {
  font-size: 0.9rem;
}

.total-reviews-card {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.total-reviews {
  background: rgba(30, 30, 40, 0.85);
  border-radius: 18px;
  box-shadow: 0 6px 24px -8px rgba(0,0,0,0.25), 0 0 0 1.5px rgba(138,180,248,0.10);
  border: 1.5px solid rgba(138, 180, 248, 0.18);
  padding: 1.2rem 2.4rem;
  min-width: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #8ab4f8;
  letter-spacing: 0.5px;
  position: relative;
  animation: cardPop 0.7s cubic-bezier(0.4,0,0.2,1);
  transition: box-shadow 0.3s, border 0.3s;
}

.total-reviews:hover {
  box-shadow: 0 20px 40px -20px rgba(255,255,255,0.10), 0 0 15px rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.total-reviews-sep {
  color: #b6c2d6;
  font-size: 1.2rem;
  font-weight: 600;
  opacity: 0.7;
  margin: 0 0.3rem;
  user-select: none;
}

.total-reviews-label {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-right: 0.3rem;
}

.total-reviews .review-count {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-left: 0.2rem;
  letter-spacing: 1px;
  text-shadow: none;
  animation: none;
  transition: color 0.3s, text-shadow 0.3s;
}

@keyframes cardPop {
  0% { opacity: 0; transform: scale(0.92) translateY(-18px); }
  60% { opacity: 1; transform: scale(1.04) translateY(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.total-reviews:hover {
  box-shadow: 0 20px 40px -20px rgba(255,255,255,0.10), 0 0 15px rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.2);
} 