/**
 * Google Magic Review - Premium Google-Inspired Design System
 * Inspired by MagicQR customer workflow, crafted with custom Google aesthetics
 */

:root {
  /* Smart Review Pro Brand Color System */
  --brand-navy: #0B1B3D;
  --brand-navy-hover: #08142D;
  --brand-blue: #0052CC;
  --brand-blue-hover: #0040A8;
  --brand-blue-subtle: #EBF3FE;
  --brand-orange: #FF6D00;
  --brand-orange-end: #FF3D00;
  --brand-star: #FFB300;
  --brand-pro-gradient: linear-gradient(135deg, #FF7A00 0%, #FF3D00 100%);
  --brand-navy-gradient: linear-gradient(180deg, #0B1B3D 0%, #071228 100%);

  /* Google & Supporting UI Palette */
  --google-blue: #0052CC;
  --google-blue-hover: #0040A8;
  --google-blue-subtle: #ebf3fe;
  --google-red: #ea4335;
  --google-red-subtle: #fce8e6;
  --google-yellow: #fbbc04;
  --google-yellow-subtle: #fef7e0;
  --google-green: #34a853;
  --google-green-hover: #2d9249;
  --google-green-subtle: #e6f4ea;
  --google-text-dark: #0B1B3D;
  --google-text-muted: #5f6368;
  --google-border: #e2e8f0;
  --google-bg: #f8fafd;
  --google-card: #ffffff;
  --ai-purple: #8430ce;
  --ai-gradient: linear-gradient(135deg, #0052cc 0%, #8430ce 50%, #ff6d00 100%);
  --shadow-sm: 0 1px 3px rgba(11,27,61,0.08), 0 1px 2px rgba(11,27,61,0.04);
  --shadow-md: 0 4px 14px rgba(11,27,61,0.09), 0 1px 3px rgba(11,27,61,0.06);
  --shadow-lg: 0 14px 34px rgba(11,27,61,0.12), 0 4px 10px rgba(11,27,61,0.04);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--google-bg);
  color: var(--google-text-dark);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   Header & Navigation
   ========================================================== */
.app-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--google-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  padding: 0.75rem 1.25rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--google-text-dark);
  text-decoration: none;
}

.brand-logo:hover {
  color: var(--google-text-dark);
}

.nav-pills-google .nav-link {
  color: var(--google-text-muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-pills-google .nav-link:hover,
.nav-pills-google .nav-link.active {
  color: var(--google-blue);
  background-color: var(--google-blue-subtle);
}

/* ==========================================================
   Cards & Layout Components
   ========================================================== */
.card-google {
  background: var(--google-card);
  border: 1px solid var(--google-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-google:hover {
  box-shadow: var(--shadow-md);
}

.metric-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--google-border);
  box-shadow: var(--shadow-sm);
}

.metric-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.icon-blue { background: var(--google-blue-subtle); color: var(--google-blue); }
.icon-green { background: var(--google-green-subtle); color: var(--google-green); }
.icon-yellow { background: var(--google-yellow-subtle); color: #b06000; }
.icon-red { background: var(--google-red-subtle); color: var(--google-red); }
.icon-purple { background: #f3e8fd; color: var(--ai-purple); }

/* ==========================================================
   Google Magic Buttons
   ========================================================== */
.btn-google-primary {
  background-color: var(--google-blue);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.3rem;
  transition: all 0.2s ease;
}

.btn-google-primary:hover {
  background-color: var(--google-blue-hover);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(26,115,232,0.35);
}

.btn-google-secondary {
  background-color: #ffffff;
  color: var(--google-text-dark);
  border: 1px solid var(--google-border);
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.3rem;
  transition: all 0.2s ease;
}

.btn-google-secondary:hover {
  background-color: #f8f9fa;
  border-color: #b0b4ba;
  color: var(--google-text-dark);
}

.btn-google-review-cta {
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 3px rgba(60,64,67,0.3);
  font-weight: 600;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-google-review-cta:hover {
  background: #f8f9fa;
  border-color: #bdc1c6;
  box-shadow: 0 4px 12px rgba(60,64,67,0.2);
  color: #202124;
}

.btn-ai-sparkle {
  background: linear-gradient(135deg, #f1f6fd 0%, #f7effe 100%);
  color: var(--ai-purple);
  border: 1px solid #d4b5f8;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-ai-sparkle:hover {
  background: linear-gradient(135deg, #e4effd 0%, #edd9fc 100%);
  color: #5d1aa4;
  border-color: #b981f3;
  transform: translateY(-1px);
}

/* ==========================================================
   Customer Review Experience (Module 1 & 2)
   ========================================================== */
.review-app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem;
  background: radial-gradient(circle at 50% 10%, #ffffff 0%, #f4f6f8 100%);
}

.review-card-shell {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid var(--google-border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 2.2rem 1.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.business-avatar-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  background: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--google-blue);
  overflow: hidden;
}

.business-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Interactive Star Rating */
.star-rating-widget {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 12px;
  margin: 1.5rem 0 0.8rem;
}

.star-rating-widget input[type="radio"] {
  display: none;
}

.star-rating-widget label {
  font-size: 2.8rem;
  color: #dadce0;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  user-select: none;
}

.star-rating-widget label:hover,
.star-rating-widget label:hover ~ label,
.star-rating-widget input[type="radio"]:checked ~ label {
  color: var(--google-yellow);
  transform: scale(1.12);
}

.star-rating-widget label:active {
  transform: scale(0.95);
}

.rating-descriptor-text {
  font-size: 1.1rem;
  font-weight: 600;
  min-height: 28px;
  color: var(--google-text-muted);
  transition: color 0.2s ease;
}

/* Review Step Containers */
.review-step {
  display: none;
  animation: fadeInStep 0.3s ease forwards;
}

.review-step.active {
  display: block;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Photo Upload Box */
.photo-upload-zone {
  border: 2px dashed #dadce0;
  border-radius: 14px;
  padding: 1rem;
  background: #fafbfc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-upload-zone:hover {
  border-color: var(--google-blue);
  background: #f4f8fe;
}

.photo-preview-item {
  position: relative;
  display: inline-block;
  margin: 6px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.photo-preview-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  display: block;
}

.photo-preview-item .btn-remove-photo {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================
   AI Assistant Drawer / Modal (Module 2)
   ========================================================== */
.ai-modal-header {
  background: linear-gradient(135deg, #1a73e8 0%, #8430ce 100%);
  color: #ffffff;
  border-radius: 16px 16px 0 0;
  padding: 1.25rem 1.5rem;
}

.ai-tone-pill {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: var(--google-text-muted);
  transition: all 0.2s ease;
}

.ai-tone-pill.active {
  background: #e8f0fe;
  color: var(--google-blue);
  border-color: var(--google-blue);
}

.ai-suggestion-box {
  background: #f8faff;
  border: 1.5px solid #d4e4fc;
  border-radius: 14px;
  padding: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================
   Badges & Micro UI
   ========================================================== */
.badge-source {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-source-qr { background-color: #e8f0fe; color: #1a73e8; }
.badge-source-whatsapp { background-color: #dcf8c6; color: #075e54; }
.badge-source-sms { background-color: #fce8e6; color: #c5221f; }
.badge-source-email { background-color: #fef7e0; color: #b06000; }
.badge-source-link { background-color: #f1f3f4; color: #5f6368; }

/* ==========================================================
   Printable Poster / Stand Flyer (Module 3)
   ========================================================== */
.printable-stand-card {
  max-width: 440px;
  margin: 1.5rem auto;
  background: #ffffff;
  border: 3px solid var(--google-blue);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.stand-qr-wrapper {
  background: #ffffff;
  display: inline-block;
  padding: 16px;
  border-radius: 18px;
  border: 2px dashed #4285f4;
  margin: 1.4rem 0;
}

.stand-qr-wrapper canvas,
.stand-qr-wrapper img {
  display: block;
  max-width: 220px;
  height: auto;
}

/* ==========================================================
   4-Step Stepper & AI Generation Enhancements (MagicQR Workflow)
   ========================================================== */
.stepper-progress-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.stepper-track {
  position: absolute;
  top: 16px;
  left: 30px;
  right: 30px;
  height: 3px;
  background-color: #e2e8f0;
  z-index: 1;
}

.stepper-bar {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #2563eb 100%);
  transition: width 0.4s ease;
}

.stepper-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.stepper-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stepper-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.stepper-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.stepper-node.active .stepper-circle {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

.stepper-node.active .stepper-label {
  color: #0284c7;
  font-weight: 700;
}

.stepper-node.completed .stepper-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.stepper-node.completed .stepper-label {
  color: #10b981;
}

/* Service Pills */
.service-pill-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-pill-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}

.service-pill-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* AI Generating Animation Box */
.ai-generating-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.05) 0%, rgba(99, 102, 241, 0.06) 100%);
  border: 1.5px dashed #0284c7;
  border-radius: 14px;
  padding: 1.4rem;
  text-align: center;
}

.ai-pulse-sparkle {
  display: inline-block;
  animation: aiPulse 1.2s infinite alternate ease-in-out;
}

@keyframes aiPulse {
  0% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 3px rgba(2, 132, 199, 0.4)); }
  100% { transform: scale(1.18); opacity: 1; filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.8)); }
}

.ai-shimmer-bar {
  height: 5px;
  width: 140px;
  margin: 10px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284c7 0%, #a855f7 50%, #0284c7 100%);
  background-size: 200% 100%;
  animation: shimmerMove 1.5s infinite linear;
}

@keyframes shimmerMove {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Google-Inspired Button */
.btn-google-primary {
  background-color: #1a73e8;
  color: #ffffff;
  border: 1px solid #1a73e8;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-google-primary:hover {
  background-color: #1557b0;
  border-color: #1557b0;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
}

/* ==========================================================
   Clean Customer Review Page Layout (Direct Webpage Display)
   ========================================================== */
body.mobile-review-bg {
  background: radial-gradient(circle at 50% 18%, #f4f3ff 0%, #ede9fe 50%, #e2ddf8 100%) !important;
  min-height: 100vh;
  margin: 0;
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.review-page-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  body.mobile-review-bg {
    padding: 16px 12px;
  }
  .review-page-container {
    max-width: 100%;
  }
}

.company-header {
  margin-bottom: 16px;
  text-align: center;
}
.company-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #1e293b;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.company-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.review-white-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rating-card {
  text-align: center;
}

.company-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  margin-bottom: 12px;
}
.logo-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.logo-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
}

.card-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.card-subheading {
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 16px;
}

.interactive-stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.star-item {
  font-size: 2.3rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.star-item:hover {
  transform: scale(1.22);
}
.star-item.active {
  color: #f59e0b;
  transform: scale(1.08);
}
.star-item.hover-preview {
  color: #fbbf24;
  transform: scale(1.15);
}
.star-descriptor {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  min-height: 20px;
}

.feedback-card {
  animation: slideInUp 0.35s ease-out;
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.feedback-card-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  text-align: left;
}

.form-group-custom {
  margin-bottom: 12px;
  text-align: left;
}
.custom-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  height: 48px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.custom-input:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.custom-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
  color: #1e293b;
  resize: vertical;
  min-height: 95px;
  line-height: 1.5;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.custom-textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.textarea-hint {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 4px;
}

.custom-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
  display: block;
}
.service-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.service-chip:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.service-chip.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.tone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.tone-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}
.tone-pills {
  display: flex;
  gap: 4px;
}
.tone-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.tone-chip.active {
  background: #e0e7ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.btn-ai-sparkle {
  width: 100%;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1.5px dashed #3b82f6;
  border-radius: 12px;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1d4ed8;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ai-sparkle:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
  border-color: #2563eb;
}

.ai-draft-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}
.btn-copy-link {
  background: transparent;
  border: none;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.btn-copy-link:hover {
  text-decoration: underline;
}

.btn-submit-feedback {
  width: 100%;
  height: 50px;
  background: #1d5bd8;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(29, 91, 216, 0.32);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-submit-feedback:hover {
  background: #174ab8;
  box-shadow: 0 6px 18px rgba(29, 91, 216, 0.4);
  transform: translateY(-1px);
}
.btn-submit-feedback:active {
  transform: translateY(1px);
}

.btn-copy-review-alt {
  width: 100%;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-copy-review-alt:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}

/* ==========================================================
   Mobile-First Smartphone Review Layout (Matching Visual Reference)
   ========================================================== */
body.mobile-review-bg {
  background: radial-gradient(circle at 50% 18%, #f4f3ff 0%, #ede9fe 50%, #e2ddf8 100%) !important;
  min-height: 100vh;
  margin: 0;
  padding: 24px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.smartphone-frame {
  width: 100%;
  max-width: 410px;
  background: #f8faff;
  border: none;
  border-radius: 44px;
  box-shadow: 0 25px 60px -15px rgba(109, 40, 217, 0.22);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  body.mobile-review-bg {
    padding: 0;
    background: #f4f3ff !important;
  }
  .smartphone-frame {
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    min-height: 100vh;
    background: transparent;
  }
}

.smartphone-top-bar {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #4285f4 0% 25%, #00acc1 25% 50%, #fbbc05 50% 75%, #ea4335 75% 100%);
}

.smartphone-content {
  padding: 22px 16px 24px 16px;
}

.company-header {
  margin-bottom: 16px;
  text-align: center;
}
.company-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #1e293b;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.company-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.review-white-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rating-card {
  text-align: center;
}

.company-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  margin-bottom: 12px;
}
.logo-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.logo-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
}

.card-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.card-subheading {
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 16px;
}

.interactive-stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.star-item {
  font-size: 2.3rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.star-item:hover {
  transform: scale(1.22);
}
.star-item.active {
  color: #f59e0b;
  transform: scale(1.08);
}
.star-item.hover-preview {
  color: #fbbf24;
  transform: scale(1.15);
}
.star-descriptor {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  min-height: 20px;
}

.feedback-card {
  animation: slideInUp 0.35s ease-out;
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.feedback-card-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  text-align: left;
}

.form-group-custom {
  margin-bottom: 12px;
  text-align: left;
}
.custom-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  height: 48px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.custom-input:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.custom-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
  color: #1e293b;
  resize: vertical;
  min-height: 95px;
  line-height: 1.5;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.custom-textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.textarea-hint {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 4px;
}

.custom-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
  display: block;
}
.service-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.service-chip:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.service-chip.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.tone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.tone-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}
.tone-pills {
  display: flex;
  gap: 4px;
}
.tone-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.tone-chip.active {
  background: #e0e7ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.btn-ai-sparkle {
  width: 100%;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1.5px dashed #3b82f6;
  border-radius: 12px;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1d4ed8;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ai-sparkle:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
  border-color: #2563eb;
}

.ai-draft-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}
.btn-copy-link {
  background: transparent;
  border: none;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.btn-copy-link:hover {
  text-decoration: underline;
}

.btn-submit-feedback {
  width: 100%;
  height: 50px;
  background: #1d5bd8;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(29, 91, 216, 0.32);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-submit-feedback:hover {
  background: #174ab8;
  box-shadow: 0 6px 18px rgba(29, 91, 216, 0.4);
  transform: translateY(-1px);
}
.btn-submit-feedback:active {
  transform: translateY(1px);
}

.btn-copy-review-alt {
  width: 100%;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-copy-review-alt:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}

@media print {
  body {
    background: #ffffff !important;
    padding: 0 !important;
  }
  .no-print, header, nav, footer, .btn, .alert {
    display: none !important;
  }
  .printable-stand-card {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    page-break-inside: avoid;
  }
}

/* ==========================================================
   Admin Dashboard Unified Control Center Styles
   ========================================================== */
.dash-main-tabs .nav-link {
  font-weight: 600;
  color: var(--google-text-muted);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.15rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dash-main-tabs .nav-link:hover {
  background-color: rgba(26, 115, 232, 0.08);
  color: var(--google-blue);
}
.dash-main-tabs .nav-link.active {
  background-color: var(--google-blue);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.35);
}
.dash-main-tabs .nav-link .badge {
  font-weight: 700;
  font-size: 0.72rem;
}

.setting-card {
  border: 1px solid var(--google-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.setting-card:hover {
  box-shadow: var(--shadow-md);
}
.setting-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--google-text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}
.setting-card-desc {
  font-size: 0.84rem;
  color: var(--google-text-muted);
  margin-bottom: 1.25rem;
}
.setting-icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.logo-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background-color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}
.logo-dropzone:hover {
  border-color: var(--google-blue);
  background-color: #f0f7ff;
}
.logo-preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background-color: #f1f5f9;
}

.suggestion-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 4px;
  transition: all 0.15s ease;
}
.suggestion-chip-item .btn-chip-del {
  color: #ef4444;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  margin-left: 4px;
  line-height: 1;
}
.suggestion-chip-item .btn-chip-del:hover {
  color: #b91c1c;
}

.status-badge-resolved {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 600;
}
.status-badge-pending {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 600;
}
.status-badge-positive {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* ==========================================================
   MODERN SAAS UI/UX ENHANCEMENTS (GOOGLE MATERIAL 3 SYSTEM)
   Clean, intuitive, high-contrast, beautiful & fast
   ========================================================== */

/* Glassmorphism Sticky Admin Navbar */
.admin-navbar {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 10px 25px -10px rgba(0, 0, 0, 0.04);
  padding: 0.65rem 1.25rem;
  transition: all 0.2s ease;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.18rem;
  color: #1e293b;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.brand-badge:hover {
  transform: translateY(-1px);
  color: #0f172a;
}

.navbar-nav .nav-link {
  color: #475569 !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 10px;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
}

.navbar-nav .nav-link:hover {
  color: #1a73e8 !important;
  background-color: rgba(26, 115, 232, 0.07);
}

.navbar-nav .nav-link.active {
  color: #1a73e8 !important;
  background-color: rgba(26, 115, 232, 0.1);
  font-weight: 600;
}

/* Modern Card System */
.card-google, .card {
  border-radius: 18px !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04), 0 6px 18px -4px rgba(16, 24, 40, 0.03) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-google:hover {
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06), 0 16px 32px -8px rgba(16, 24, 40, 0.08) !important;
  transform: translateY(-2px);
}

/* Metric Cards */
.metric-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04), 0 4px 16px -2px rgba(16, 24, 40, 0.03);
  transition: all 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -4px rgba(16, 24, 40, 0.08);
  border-color: rgba(66, 133, 244, 0.3);
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.metric-card:hover .metric-icon {
  transform: scale(1.08);
}

/* Form Controls & Inputs */
.form-control, .form-select {
  border-radius: 11px !important;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
  color: #1e293b;
  transition: all 0.18s ease;
  background-color: #ffffff;
}

.form-control:focus, .form-select:focus {
  border-color: #1a73e8 !important;
  box-shadow: 0 0 0 3.5px rgba(26, 115, 232, 0.16) !important;
  outline: none;
}

/* Action Buttons */
.btn-google-primary {
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 11px !important;
  padding: 0.62rem 1.4rem !important;
  font-weight: 600 !important;
  font-size: 0.92rem;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.28);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-google-primary:hover {
  background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.4);
}

.btn-google-primary:active {
  transform: scale(0.98);
}

.btn-google {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.62rem 1.2rem;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-google:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Tables */
.table {
  --bs-table-bg: transparent;
  vertical-align: middle;
}

.table th {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.table td {
  padding: 1rem 0.9rem !important;
  border-bottom: 1px solid #f1f5f9;
}

.table-hover tbody tr:hover {
  background-color: rgba(241, 245, 249, 0.65) !important;
}

/* Dropdown Menus */
.dropdown-menu {
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03) !important;
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  color: #334155;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Dark Dropdown Contrast & Visibility Fix */
.dropdown-menu-dark {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45) !important;
}

.dropdown-menu-dark .dropdown-item {
  color: #f1f5f9 !important;
  font-weight: 500 !important;
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
  background-color: #334155 !important;
  color: #ffffff !important;
}

.dropdown-menu-dark .dropdown-item.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

.dropdown-menu-dark .dropdown-divider {
  border-color: #334155 !important;
}

/* Modals */
.modal-content {
  border-radius: 24px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.18) !important;
}

/* Auth Cards */
.auth-wrapper {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #eef4fe 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 10px 30px -5px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
  width: 100%;
}

/* ==========================================================
   Modern Clean SaaS UI/UX Overhaul (Uncluttered & Attractive)
   ========================================================== */
body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #1e293b;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
}

/* ==========================================================
   Enterprise SaaS Layout System (Sidebar + Topbar + Content)
   ========================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Sidebar - Enterprise Modern SaaS */
.app-sidebar {
  width: 260px;
  background: var(--brand-navy-gradient);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}

.app-sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

.sidebar-header {
  padding: 1.15rem 1.15rem 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-brand {
  display: block;
  color: #ffffff;
}

.sidebar-brand-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-brand-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.brand-name-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.4px;
  color: #ffffff;
  line-height: 1.2;
}

.sidebar-brand-tagline {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-top: 2px;
  line-height: 1.2;
}

/* Dedicated Role Indicator Strip */
.sidebar-role-strip {
  padding: 0.6rem 1.15rem 0.75rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.role-pill-badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  width: 100%;
}

.role-pill-super {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #ddd6fe;
}

.role-pill-super i {
  color: #f59e0b;
}

.role-pill-client {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.role-pill-client i {
  color: #10b981;
}

.sidebar-brand-switcher {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-sidebar-brand {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}

.btn-sidebar-brand:hover, .btn-sidebar-brand:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.text-emerald { color: #34d399 !important; }

/* Sidebar Brand Dropdown Styling - High Contrast & Sleek Glassmorphism */
.sidebar-brand-switcher .dropdown-menu,
.dropdown-menu-dark {
  background-color: #0b1329 !important;
  border: 1px solid #334155 !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 45px -4px rgba(0, 0, 0, 0.65) !important;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem !important;
}

.sidebar-brand-switcher .dropdown-item,
.dropdown-menu-dark .dropdown-item,
.sidebar-brand-switcher .dropdown-item span,
.dropdown-menu-dark .dropdown-item span {
  color: #f8fafc !important;
  border-radius: 8px !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  padding: 0.55rem 0.85rem !important;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.sidebar-brand-switcher .dropdown-item:hover,
.sidebar-brand-switcher .dropdown-item:focus,
.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
}

.sidebar-brand-switcher .dropdown-item:hover span,
.dropdown-menu-dark .dropdown-item:hover span {
  color: #38bdf8 !important;
}

.sidebar-brand-switcher .dropdown-item.active,
.dropdown-menu-dark .dropdown-item.active {
  background: linear-gradient(135deg, #0052CC 0%, #0066FF 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.4) !important;
}

.sidebar-brand-switcher .dropdown-item.active span,
.dropdown-menu-dark .dropdown-item.active span {
  color: #ffffff !important;
}

.sidebar-brand-switcher .dropdown-header,
.dropdown-menu-dark .dropdown-header {
  color: #94a3b8 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
}

/* Navigation links */
.sidebar-nav {
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.sidebar-nav-heading {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.85rem 0.75rem 0.35rem 0.75rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.58rem 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.86rem;
  text-decoration: none;
  border-radius: 9px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sidebar-nav-link i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  color: #94a3b8;
  transition: all 0.15s ease;
}

.sidebar-nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.sidebar-nav-link:hover i {
  color: #38bdf8;
  transform: scale(1.08);
}

.sidebar-nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0052CC 0%, #1a73e8 100%);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.45);
}

.sidebar-nav-link.active i {
  color: #ffffff;
}

/* Smart Review Pro Badge & Buttons */
.badge-pro {
  background: var(--brand-pro-gradient);
  color: #ffffff !important;
  font-weight: 800;
  font-style: italic;
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(255, 109, 0, 0.35);
  line-height: 1.2;
}

.btn-smart-primary {
  background-color: var(--brand-blue);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.6rem 1.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.25);
}
.btn-smart-primary:hover {
  background-color: var(--brand-blue-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 82, 204, 0.35);
}

.btn-smart-pro {
  background: var(--brand-pro-gradient);
  color: #ffffff;
  border: none;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.6rem 1.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}
.btn-smart-pro:hover {
  background: linear-gradient(135deg, #FF6D00 0%, #E63900 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.45);
}

/* Sidebar Bottom User Footer */
.sidebar-user-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-meta .user-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.2;
}

.user-meta .user-role {
  color: #64748b;
  font-size: 0.72rem;
}

.btn-logout {
  color: #ef4444;
  background: none;
  border: none;
  padding: 0.4rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  font-size: 0.9rem;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Main Layout Wrapper */
.app-main-wrapper {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8fafc;
  min-width: 0;
}

.app-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.8rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.app-content-body {
  flex: 1;
  padding: 1.5rem 1.75rem;
}

.app-content-body > .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
}

.app-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 0.85rem 1.75rem;
  font-size: 0.82rem;
  color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .app-sidebar.show {
    transform: translateX(0);
  }
  .app-main-wrapper {
    margin-left: 0;
  }
  .app-topbar {
    padding: 0.65rem 1rem !important;
  }
  .app-content-body {
    padding: 1rem 0.85rem !important;
  }
}

/* Mobile Sidebar Backdrop Overlay */
.sidebar-backdrop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1045;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-backdrop-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Minimalist Clean Dashboard Header */
.dashboard-topbar {
  background: transparent;
  padding: 0.5rem 0 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.75rem;
}

.dashboard-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.dashboard-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Clean Minimal Metric Cards */
.clean-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clean-stat-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.06);
}

.clean-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.clean-stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

.clean-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clean-stat-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.35rem;
}

/* Activity Feed Item (Clean Card Stream) */
.feedback-stream-item {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 1.1rem;
  margin-bottom: 0.85rem;
  transition: all 0.18s ease;
}

.feedback-stream-item:hover {
  background: #fafbfc;
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.feedback-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feedback-quote-box {
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  border-radius: 0 8px 8px 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.86rem;
  color: #334155;
  margin-top: 0.65rem;
  line-height: 1.45;
}

/* Sidebar Clean QR Widget */
.qr-preview-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
}

.qr-preview-box img {
  width: 170px;
  height: 170px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

/* Sleek Progress Bars for Rating Breakdown */
.rating-bar-clean {
  height: 7px;
  border-radius: 9999px;
  background-color: #f1f5f9;
  overflow: hidden;
}

.rating-bar-fill-5 { background-color: #10b981; }
.rating-bar-fill-4 { background-color: #34d399; }
.rating-bar-fill-3 { background-color: #f59e0b; }
.rating-bar-fill-2 { background-color: #f97316; }
.rating-bar-fill-1 { background-color: #ef4444; }

/* Stat Cards Pro */
.stat-card-pro {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.35rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.stat-card-pro:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.06);
}

.stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon-blue { background: #eff6ff; color: #2563eb; }
.stat-icon-green { background: #ecfdf5; color: #059669; }
.stat-icon-yellow { background: #fefce8; color: #d97706; }
.stat-icon-purple { background: #faf5ff; color: #7c3aed; }
.stat-icon-red { background: #fef2f2; color: #dc2626; }

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Status Pill Badges */
.badge-status-active {
  background-color: #dcfce7 !important;
  color: #15803d !important;
  font-weight: 700;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-status-trial {
  background-color: #fef3c7 !important;
  color: #b45309 !important;
  font-weight: 700;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-status-expired {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
  font-weight: 700;
  border: 1px solid #fecaca;
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-status-suspended {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Brand Card Pro */
.brand-card-pro {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.6rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-card-pro:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
  border-color: #93c5fd;
}

/* Star Rating Gold */
.star-rating-gold {
  color: #f59e0b;
  letter-spacing: 1px;
}

.star-rating-muted {
  color: #cbd5e1;
  letter-spacing: 1px;
}

/* Copy Toast Floating Pill */
.copy-toast-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 9999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 99999;
  animation: toastFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modern Tab Pills */
.nav-pills-modern .nav-link {
  color: #64748b;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.86rem;
  transition: all 0.2s ease;
  background: #f1f5f9;
  margin-right: 0.4rem;
}

.nav-pills-modern .nav-link:hover {
  color: #1e293b;
  background: #e2e8f0;
}

.nav-pills-modern .nav-link.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* Auth Split Modern */
.auth-split-shell {
  min-height: 100vh;
  display: flex;
  background: #ffffff;
}

.auth-split-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
  max-width: 520px;
  margin: 0 auto;
}

.auth-split-showcase {
  flex: 1.1;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e3a8a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 3rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

@media (max-width: 991px) {
  .auth-split-showcase {
    display: none;
  }
}

/* ==========================================================
   Mobile-First Optimization Rules for Clients & Landing Page
   ========================================================== */
@media (max-width: 768px) {
  /* Tables momentum scrolling */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }
  
  /* Modal optimization for mobile */
  .modal-dialog {
    margin: 0.75rem auto !important;
    max-width: 95vw !important;
  }
  .modal-content {
    border-radius: 20px !important;
  }
  .modal-body {
    padding: 1.25rem !important;
    max-height: 75vh;
    overflow-y: auto;
  }

  /* Stat cards on mobile */
  .clean-stat-card {
    padding: 1.1rem !important;
    border-radius: 16px !important;
  }
  .clean-stat-num {
    font-size: 1.6rem !important;
  }
  
  /* Touch target sizes */
  .btn {
    min-height: 40px;
  }
  .btn-lg, .btn-touch {
    min-height: 48px;
  }
  
  /* Stream list padding on phone */
  .feedback-stream-item {
    padding: 1rem !important;
    border-radius: 14px !important;
  }
  .feedback-quote-box {
    margin-left: 0 !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .dashboard-title {
    font-size: 1.35rem !important;
  }
  .dashboard-subtitle {
    font-size: 0.82rem !important;
  }
  .app-topbar {
    padding: 0.5rem 0.75rem !important;
  }
  .app-content-body {
    padding: 0.75rem 0.5rem !important;
  }
}
