/* ==========================================================================
   TrackYatra Reviews & Rating Flywheel Stylesheet (Isolated, Zero-Regression)
   Colors: Navy (#0e3d72), Blue (#1a5fa8), Accent Green (#9fd63a), Gold (#f59e0b)
   Fonts: Rajdhani (Headings), Nunito (Body)
   ========================================================================== */

:root {
  --primary-navy: #0e3d72;
  --primary-blue: #1a5fa8;
  --primary-dark: #071e3d;
  --accent-green: #9fd63a;
  --accent-green-hover: #8ec22f;
  --gold-star: #f59e0b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(14, 61, 114, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 61, 114, 0.1);
  --shadow-lg: 0 16px 40px rgba(14, 61, 114, 0.15);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body.rate-body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  padding-top: 104px; /* Essential offset for 78px fixed navbar */
}

body.reviews-body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
}

/* Header & Navbar */
.ty-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  color: #ffffff;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.ty-header-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ty-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.ty-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.ty-brand-text h1, .ty-brand-text .brand-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0;
}

.ty-brand-text p {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}

.ty-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ty-nav-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ty-nav-btn:hover {
  background: var(--accent-green);
  color: var(--primary-dark);
  border-color: var(--accent-green);
}

/* ==========================================================================
   RATE / REVIEW COLLECTOR PAGE (rate.html)
   ========================================================================== */

.rate-container {
  max-width: 640px;
  margin: 16px auto 60px;
  padding: 0 16px;
}

.rate-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

@media (max-width: 480px) {
  .rate-card {
    padding: 20px 16px;
  }
}

.rate-lang-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.lang-switch-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-tiles-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.lang-tiles-group-3 {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  gap: 3px;
  width: 100%;
}

.lang-tiles-group-3 .lang-tile {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang-tiles-group-3 .lang-tile:hover {
  color: #0f172a;
}

.lang-tiles-group-3 .lang-tile.active {
  background: #ffffff;
  color: #0e3d72;
  box-shadow: 0 2px 6px rgba(14, 61, 114, 0.12);
  font-weight: 800;
  border: 1px solid #cbd5e1;
}

.lang-tile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-tile:hover {
  color: #0f172a;
}

.lang-tile.active {
  background: #ffffff;
  color: #0e3d72;
  box-shadow: 0 2px 6px rgba(14, 61, 114, 0.12);
  font-weight: 800;
}

/* Google Account Prompt Box */
.google-account-prompt-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.google-prompt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e3a8a;
}

.google-user-active-badge {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.08);
}

.rate-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: var(--primary-blue);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border: 1px solid #bfdbfe;
}

.rate-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 6px;
}

.rate-title-en {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0284c7;
  margin-top: 4px;
  letter-spacing: 0.2px;
}

.rate-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.45;
}

.rate-subtitle-en {
  display: block;
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 4px;
}

/* 1-Tap Google Button */
.google-autofill-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 24px;
}

.btn-google-autofill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #374151;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  max-width: 320px;
}

.btn-google-autofill:hover {
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #9ca3af;
}

.google-icon {
  width: 20px;
  height: 20px;
}

.google-help-text {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 8px;
}

/* Form Groups */
.form-section {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-label span.req {
  color: #ef4444;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(26, 95, 168, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Star Rating */
.star-rating-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.star-group {
  display: flex;
  gap: 4px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  padding: 0 2px;
}

.star-btn.active, .star-btn:hover {
  color: var(--gold-star);
  transform: scale(1.15);
}

.star-label-text {
  font-weight: 800;
  color: #b45309;
  font-size: 0.95rem;
  margin-left: 8px;
}

/* Media Upload Box */
.media-upload-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 480px) {
  .media-upload-container {
    grid-template-columns: 1fr;
  }
}

.media-upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 12px;
  border: 1.5px dashed var(--primary-blue);
  background: #f0f7ff;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  color: var(--primary-navy);
  position: relative;
}

.media-upload-btn:hover {
  background: #e0effe;
  border-color: var(--primary-dark);
}

.media-upload-icon {
  font-size: 1.8rem;
}

.media-upload-title {
  font-weight: 700;
  font-size: 0.88rem;
}

.media-upload-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.media-file-input {
  display: none;
}

.media-preview-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.media-preview-box .remove-media-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

/* 12 Safe Feature Chips */
.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.chip-item:hover {
  border-color: var(--primary-blue);
  background: #e2e8f0;
}

.chip-item.selected {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 3px 10px rgba(14, 61, 114, 0.2);
}

.chip-item.selected::after {
  content: '✓';
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--accent-green);
}

/* AI Generated Review Cards */
.ai-review-wrapper {
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md);
  padding: 18px 16px;
  margin-bottom: 24px;
}

.ai-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #166534;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-generate-ai {
  background: #ffffff;
  border: 1.5px solid #16a34a;
  color: #166534;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-generate-ai:hover {
  background: #16a34a;
  color: #ffffff;
}

.ai-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-review-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.ai-review-card:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow-sm);
}

.ai-review-card.active {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15);
}

.ai-review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ai-card-stars {
  color: var(--gold-star);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.ai-card-radio {
  font-size: 0.75rem;
  font-weight: 800;
  color: #16a34a;
  display: none;
}

.ai-review-card.active .ai-card-radio {
  display: block;
}

.ai-card-text {
  font-size: 0.9rem;
  color: #1e293b;
  line-height: 1.5;
}

/* Custom Editable Textarea */
.custom-review-box {
  margin-top: 14px;
}

.custom-textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  resize: vertical;
}

.custom-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(26, 95, 168, 0.12);
}

/* Main Action Submit Button */
.btn-submit-master {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit-master:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.btn-submit-master:active {
  transform: translateY(0);
}

.submit-guarantee-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Floating Guidance Toast */
.ty-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 440px;
  pointer-events: none;
}

.ty-toast {
  background: #0f172a;
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: auto;
}

.ty-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ty-toast-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.ty-toast-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-green);
  margin: 0 0 2px;
}

.ty-toast-content p {
  font-size: 0.82rem;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.4;
}

/* Digital Warranty Modal */
.ty-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 30, 61, 0.8);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
}

.ty-modal-overlay.active {
  display: flex;
}

.warranty-card-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.warranty-card-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-navy));
  color: #ffffff;
  padding: 24px;
  text-align: center;
  position: relative;
}

.warranty-header-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.warranty-card-header h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.warranty-card-header p {
  color: var(--accent-green);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.warranty-card-body {
  padding: 24px;
}

.warranty-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.warranty-details-table td {
  padding: 10px 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
}

.warranty-details-table td.label {
  color: var(--text-muted);
  font-weight: 600;
  width: 40%;
}

.warranty-details-table td.val {
  color: var(--primary-navy);
  font-weight: 700;
}

.warranty-actions {
  display: flex;
  gap: 10px;
}

.btn-download-cert {
  flex: 1;
  background: var(--primary-navy);
  color: #ffffff;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-download-cert:hover {
  background: var(--primary-blue);
}

.btn-close-cert {
  background: #e2e8f0;
  color: #334155;
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ==========================================================================
   PUBLIC REVIEWS SHOWCASE PAGE (reviews.html)
   ========================================================================== */

.reviews-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  color: #ffffff;
  padding: 120px 20px 70px; /* Offset for 78px fixed navbar */
  text-align: center;
  position: relative;
}

.reviews-hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.reviews-hero-tag {
  display: inline-block;
  background: rgba(159, 214, 58, 0.15);
  color: var(--accent-green);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid rgba(159, 214, 58, 0.3);
}

.reviews-hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.15;
}

.reviews-hero-sub {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 30px;
}

/* Aggregate Rating Summary Card */
.rating-summary-card {
  max-width: 820px;
  margin: -40px auto 30px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (max-width: 680px) {
  .rating-summary-card {
    grid-template-columns: 1fr;
    margin: -30px 16px 24px;
    padding: 20px;
    gap: 20px;
  }
}

.rating-score-box {
  text-align: center;
  border-right: 1px solid #f1f5f9;
  padding-right: 20px;
}

@media (max-width: 680px) {
  .rating-score-box {
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding-right: 0;
    padding-bottom: 16px;
  }
}

.rating-big-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1;
}

.rating-big-stars {
  color: var(--gold-star);
  font-size: 1.25rem;
  margin: 4px 0;
  letter-spacing: 2px;
}

.rating-total-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.rating-bars-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--gold-star);
  border-radius: 4px;
}

/* Filter Nav Tabs */
.reviews-filter-wrap {
  max-width: 1140px;
  margin: 0 auto 30px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.filter-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.btn-add-review-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
}

.btn-add-review-cta:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
}

/* Reviews Grid */
.reviews-grid-container {
  max-width: 1140px;
  margin: 0 auto 70px;
  padding: 0 16px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

@media (max-width: 480px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.public-review-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.public-review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.review-media-header {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0f172a;
  overflow: hidden;
}

.review-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.public-review-card:hover .review-media-img {
  transform: scale(1.04);
}

.media-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-stars {
  color: var(--gold-star);
  font-size: 1rem;
  letter-spacing: 1px;
}

.review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.review-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
  overflow: hidden;
}

.author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-vehicle {
  font-size: 0.78rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.verified-pill {
  font-size: 0.72rem;
  color: #16a34a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

@media (max-width: 768px) {
  body.rate-body {
    padding-top: 92px;
  }
  .reviews-hero {
    padding: 105px 16px 50px;
  }
}

@media (max-width: 480px) {
  .rate-title {
    font-size: 1.48rem;
  }
  .rate-title-en {
    font-size: 1.05rem;
  }
  .rate-lang-switcher {
    justify-content: center;
    text-align: center;
  }
  .lang-switch-label {
    width: 100%;
    justify-content: center;
  }
}

/* 100% Distraction-Free Mobile Screen on Rating Page */
@media (max-width: 768px) {
  .wa-float,
  .ai-copilot-trigger,
  #aiCopilotTrigger,
  #aiCopilotToggle,
  .ai-copilot-welcome-bubble,
  .ai-copilot-launcher,
  .ai-copilot-chat,
  .live-proof-toast,
  .mobile-bottom-bar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

body.rate-body .wa-float,
body.rate-body .ai-copilot-trigger,
body.rate-body #aiCopilotTrigger,
body.rate-body #aiCopilotToggle,
body.rate-body .ai-copilot-welcome-bubble,
body.rate-body .ai-copilot-launcher,
body.rate-body .live-proof-toast {
  display: none !important;
}

