/* --- Reviews UI (SoulMC Style) --- */
.rv-btn {
  background: linear-gradient(135deg, #6b46c1, #4f46e5);
  border: none;
  color: white;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
  margin-left: 8px;
}
.rv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107,70,193,0.4);
}

/* --- Modal (Form + List) --- */
#rv-modal, #rv-list-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid rgba(107,70,193,0.4);
  backdrop-filter: blur(14px);
  color: #f3f4f6;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  width: 90%;
  max-width: 420px;
  z-index: 99999;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.rv-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  cursor: pointer;
  color: #bbb;
  transition: color 0.2s;
}
.rv-close:hover { color: #fff; }

.rv-field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}
.rv-field input, .rv-field select, .rv-field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
}
.rv-field textarea { resize: none; }

.rv-submit {
  background: linear-gradient(135deg, #4f46e5, #6b46c1);
  border: none;
  border-radius: 10px;
  color: white;
  padding: 10px 0;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
}
.rv-submit:hover {
  background: linear-gradient(135deg, #6d28d9, #6366f1);
  transform: translateY(-1px);
}

.rv-small {
  font-size: 13px;
  color: #aaa;
  text-align: center;
  margin-top: 6px;
}

/* --- Review List --- */
#rv-list-container {
  max-height: 400px;
  overflow-y: auto;
  padding-top: 6px;
  padding-right: 4px;
}
#rv-list-container::-webkit-scrollbar {
  width: 6px;
}
#rv-list-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6b46c1, #4f46e5);
  border-radius: 10px;
}
#rv-list-container::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

/* --- Individual Review Card --- */
.rv-review {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  color: #eee;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.rv-review:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(107,70,193,0.35);
}
.rv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.rv-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
}
.rv-stars-display {
  font-size: 18px;
  color: #ffce45;
  letter-spacing: 1px;
}
.rv-date {
  font-size: 12px;
  color: #aaa;
  font-style: italic;
}
.rv-comment {
  color: #ddd;
  font-size: 14px;
  padding-left: 2px;
}

/* --- Title spacing --- */
#rv-list-modal h3 {
  margin-bottom: 22px;
  text-align: center;
  font-size: 20px;
  color: #fff;
}

/* --- Star Rating in Form --- */
.rv-stars {
  display: flex;
  gap: 6px;
  font-size: 26px;
  cursor: pointer;
  margin-top: 4px;
}
.rv-stars i {
  color: #555;
  transition: color 0.2s;
}
.rv-stars i.active {
  color: #ffce45;
}

/* --- Floating Buttons Modern Style --- */
#reviews-buttons {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Main FAB */
.rv-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #6b46c1, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: all 0.35s cubic-bezier(.2,.9,.2,1);
  min-width: 48px;
  max-width: 48px;
}

/* Icon */
.rv-fab i {
  font-size: 18px;
  transition: transform 0.25s ease;
  display: inline-block;
}

/* Text (hidden initially) */
.rv-fab span {
  opacity: 0;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  display: inline-block;
  transition: all 0.35s cubic-bezier(.2,.9,.2,1);
  margin-left: 6px;
  font-size: 14px;
}

/* Expand on hover */
.rv-fab:hover {
  max-width: 220px;
  padding: 12px 18px;
  border-radius: 28px;
  box-shadow: 0 8px 22px rgba(107,70,193,0.35);
}
.rv-fab:hover span {
  opacity: 1;
  max-width: 200px;
  transition-delay: 0.06s;
}
.rv-fab:hover i {
  transform: translateX(2px) scale(1.06);
}
.rv-fab:active {
  transform: scale(0.985);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .rv-fab:hover {
    max-width: 160px;
  }
  .rv-fab span { font-size: 13px; }
}
