/**
 * ReviewSphere - Design System & UI Stylesheet
 * Pure CSS3 without third-party frameworks.
 * Modern SaaS aesthetic, accessible contrast, mobile-first responsive layout.
 */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Colors */
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-light: #eff6ff;
  --brand-border: #bfdbfe;

  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-header: #ffffff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #3b82f6;

  --star-color: #f59e0b;
  --star-empty: #cbd5e1;

  --color-success: #059669;
  --bg-success: #ecfdf5;
  --border-success: #a7f3d0;

  --color-warning: #d97706;
  --bg-warning: #fffbeb;
  --border-warning: #fde68a;

  --color-danger: #dc2626;
  --bg-danger: #fef2f2;
  --border-danger: #fecaca;

  --color-info: #0284c7;
  --bg-info: #f0f9ff;
  --border-info: #bae6fd;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1200px;
  --header-height: 70px;
}

/* Box sizing reset & Bulletproof Anti-Overflow */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Super & Unique Floating Island Capsule Header
   ========================================================================== */
.site-header-wrapper {
  position: sticky;
  top: 14px;
  z-index: 100;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 9999px;
  padding: 0.45rem 0.65rem 0.45rem 1.15rem;
  box-shadow: 0 14px 34px -10px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(255, 255, 255, 0.95) inset;
  transition: all 0.25s ease;
}

.site-header-capsule:hover {
  box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 1) inset;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--text-main);
  text-decoration: none !important;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #1e40af 100%);
  color: #fff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-icon {
  transform: scale(1.08) rotate(5deg);
}

.brand-accent {
  color: var(--brand-primary);
}

/* Island Capsule Pill Nav */
.site-header-capsule .header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(15, 23, 42, 0.035);
  padding: 0.25rem 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.nav-pill-link {
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.nav-pill-link:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.nav-pill-link.active {
  background: #0f172a;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}

/* Header Right Actions */
.header-actions-capsule {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.header-quick-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 170px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-quick-search:focus-within {
  width: 220px;
}

.header-quick-search input {
  width: 100%;
  padding: 0.42rem 2rem 0.42rem 2rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.82rem;
  outline: none;
  transition: all 0.2s ease;
}

.header-quick-search input:focus {
  background: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-mini-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-kbd-hint {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  background: #e2e8f0;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  pointer-events: none;
}

.btn-capsule-write {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #1e40af 100%);
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-capsule-write:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.btn-capsule-signin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a !important;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.btn-capsule-signin:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--brand-primary);
}

.user-capsule-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.user-pill-avatar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem 0.25rem 0.35rem;
  color: var(--text-main);
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.user-pill-avatar:hover {
  border-color: var(--brand-primary);
  background: #ffffff;
}

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

.avatar-mini-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-pill-text {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-capsule-role {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.48rem;
  border-radius: 6px;
  text-decoration: none !important;
  text-transform: uppercase;
}

.btn-capsule-signout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 9999px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-capsule-signout:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  color: #fff;
}

.btn-secondary {
  background-color: #fff;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  background-color: var(--bg-muted);
  border-color: #cbd5e1;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1.05rem;
}

.btn-outline {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background-color: transparent;
}
.btn-outline:hover {
  background-color: var(--brand-light);
}

.btn-danger {
  background-color: var(--color-danger);
  color: #fff;
}
.btn-danger:hover {
  background-color: #b91c1c;
}

/* =====================================================================
   SOCIAL OAUTH BUTTONS (GOOGLE & APPLE SIGN-IN)
   ===================================================================== */
.oauth-buttons-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.72rem 1.25rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
}

.btn-oauth-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn-oauth-google:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-oauth-google:active {
  transform: translateY(0);
  background: #f3f4f6;
}

.btn-oauth-apple {
  background: #000000;
  color: #ffffff !important;
  border: 1px solid #000000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-oauth-apple:hover {
  background: #1f2937;
  border-color: #1f2937;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn-oauth-apple:active {
  transform: translateY(0);
  background: #111827;
}

.oauth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.oauth-divider span {
  padding: 0 0.85rem;
}

/* User Menu Dropdown */
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background-color: var(--brand-light);
  color: var(--brand-primary);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-border);
  object-fit: cover;
}

/* Badges & Status Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-fully-visible {
  background-color: var(--bg-success);
  color: var(--color-success);
  border: 1px solid var(--border-success);
}

.badge-building {
  background-color: var(--bg-warning);
  color: var(--color-warning);
  border: 1px solid var(--border-warning);
}

.badge-verified-customer {
  background-color: var(--brand-light);
  color: var(--brand-primary);
  border: 1px solid var(--brand-border);
}

.badge-caution {
  background-color: var(--bg-danger);
  color: var(--color-danger);
  border: 1px solid var(--border-danger);
}

.badge-established {
  background-color: var(--bg-info);
  color: var(--color-info);
  border: 1px solid var(--border-info);
}

/* Flash Messages */
.flash-messages-container {
  max-width: var(--container-max);
  margin: 1.25rem auto 0;
  padding: 0 1.5rem;
}

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.alert-success {
  background-color: var(--bg-success);
  color: #065f46;
  border: 1px solid var(--border-success);
}

.alert-danger {
  background-color: var(--bg-danger);
  color: #991b1b;
  border: 1px solid var(--border-danger);
}

.alert-warning {
  background-color: var(--bg-warning);
  color: #92400e;
  border: 1px solid var(--border-warning);
}

.alert-info {
  background-color: var(--bg-info);
  color: #075985;
  border: 1px solid var(--border-info);
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}
.alert-close:hover { opacity: 1; }

/* Stars Rating */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--star-color);
  font-size: 1.1rem;
}

.star-rating .star-empty {
  color: var(--star-empty);
}

.rating-score {
  font-weight: 700;
  margin-left: 0.35rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

/* Card Components */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* Review Card Components */
.review-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.review-main {
  width: 100%;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.review-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Score Passed Badge & Professional Organic Tooltip Popover */
.score-pass-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.badge-score-passed {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.badge-score-passed:hover,
.badge-score-passed:focus {
  background: #e0e7ff;
  border-color: #c7d2fe;
  color: #4338ca;
  box-shadow: 0 2px 6px rgba(109, 40, 217, 0.16);
  transform: translateY(-1px);
}

.badge-score-passed svg {
  color: #7c3aed;
  transition: transform 0.2s ease;
}

.badge-score-passed:hover svg {
  transform: scale(1.15) rotate(5deg);
}

.score-pass-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 285px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 60;
  pointer-events: none;
  text-align: left;
}

.score-pass-wrapper:hover .score-pass-popover,
.score-pass-wrapper:focus-within .score-pass-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.score-pass-popover .popover-arrow {
  position: absolute;
  top: -6px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  transform: rotate(45deg);
}

.score-pass-popover .popover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #f1f5f9;
}

.score-pass-popover .organic-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.score-pass-popover .organic-tag svg {
  stroke: #059669;
}

.score-pass-popover .moderator-tag {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.score-pass-popover .popover-content {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 0.5rem;
}

.score-pass-popover .popover-content strong {
  color: #047857;
  font-weight: 700;
}

.score-pass-popover .popover-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
  padding-top: 0.45rem;
  border-top: 1px dashed #e2e8f0;
}

/* Super-Position Compact Vote Capsule (Dribbble/Linear Style) */
.vote-capsule {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  padding: 2px 3px;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
  user-select: none;
  height: 32px;
}

.vote-capsule:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.vote-capsule-btn {
  background: transparent;
  border: none;
  color: #64748b;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.vote-capsule-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vote-capsule-btn.upvote:hover:not(:disabled) {
  color: #ea580c;
  background-color: #ffedd5;
  transform: translateY(-1px);
}

.vote-capsule-btn.upvote.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(234, 88, 12, 0.35);
}

.vote-capsule-btn.upvote.active svg {
  stroke: #ffffff;
}

.vote-capsule-btn.downvote:hover:not(:disabled) {
  color: #4f46e5;
  background-color: #e0e7ff;
  transform: translateY(-1px);
}

.vote-capsule-btn.downvote.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(79, 70, 229, 0.35);
}

.vote-capsule-btn.downvote.active svg {
  stroke: #ffffff;
}

.vote-capsule-score {
  font-weight: 800;
  font-size: 0.88rem;
  font-family: var(--font-mono), var(--font-sans);
  color: #1e293b;
  min-width: 28px;
  text-align: center;
  padding: 0 4px;
  letter-spacing: -0.02em;
}

.vote-capsule-score.positive {
  color: #ea580c;
}

.vote-capsule-score.negative {
  color: #4f46e5;
}

/* Micro Progress Track towards 10 Upvotes */
.credibility-progress-track {
  width: 100%;
  height: 6px;
  background-color: #fde68a;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.credibility-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Review Main Body */
.review-main {
  flex: 1;
  padding: 1.25rem 1.5rem;
}

.review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.author-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.review-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.review-sections {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-section {
  font-size: 0.93rem;
  line-height: 1.6;
}

.review-section-label {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.label-pros { color: var(--color-success); }
.label-cons { color: var(--color-danger); }
.label-experience { color: var(--brand-primary); }

/* 70% Content Blur for Reviews with < 10 Net Upvotes */
.review-section-body.has-blur {
  position: relative;
  line-height: 1.6;
}

.content-visible {
  display: inline;
  color: var(--text-main);
}

.content-blurred {
  display: inline;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  opacity: 0.38;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  color: #64748b;
  letter-spacing: -0.01em;
  transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Building Credibility Notice Box */
.credibility-notice-box {
  background-color: var(--bg-warning);
  border: 1px solid var(--border-warning);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Company Response Box */
.company-response-box {
  background-color: #f8fafc;
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.company-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.company-response-author {
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Review Footer Line with Exact Same Font & Size Thumbs Voting */
.review-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 0.5rem;
  line-height: 1.4;
}

.review-footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.review-footer-divider {
  color: #cbd5e1;
}

.review-footer-voting {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.review-footer-voting .vote-caption {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.thumb-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.82rem;
  height: 22px;
  min-width: 24px;
  padding: 0 0.35rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
  user-select: none;
}

.thumb-vote-btn svg {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.thumb-vote-btn:hover:not(:disabled) {
  border-color: #94a3b8;
  background-color: #f1f5f9;
}

.thumb-vote-btn.upvote:hover:not(:disabled) {
  color: #ea580c;
  border-color: #fdba74;
  background-color: #fff7ed;
}

.thumb-vote-btn.upvote.active {
  background-color: #fff7ed;
  border-color: #ea580c;
  color: #ea580c;
  font-weight: 700;
}

.thumb-vote-btn.upvote.active svg {
  fill: #ea580c;
  stroke: #ea580c;
}

.thumb-vote-btn.downvote:hover:not(:disabled) {
  color: #4f46e5;
  border-color: #c7d2fe;
  background-color: #eef2ff;
}

.thumb-vote-btn.downvote.active {
  background-color: #eef2ff;
  border-color: #4f46e5;
  color: #4f46e5;
  font-weight: 700;
}

.thumb-vote-btn.downvote.active svg {
  fill: #4f46e5;
  stroke: #4f46e5;
}

.thumb-vote-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.thumb-vote-score {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  min-width: 20px;
  text-align: center;
  padding: 0 0.1rem;
  font-family: inherit;
}

.thumb-vote-score.positive {
  color: #ea580c;
}

.thumb-vote-score.negative {
  color: #4f46e5;
}

.review-footer-author-vote {
  font-size: 0.82rem;
  color: var(--text-subtle);
  font-style: italic;
}

.review-footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Trust Score Widget */
.trust-widget {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.trust-score-circle {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 1rem;
  border: 4px solid var(--brand-primary);
  color: var(--brand-primary);
  background-color: var(--brand-light);
}

.trust-score-circle .number { font-size: 1.8rem; line-height: 1; }
.trust-score-circle .out-of { font-size: 0.75rem; opacity: 0.7; }

.trust-score-circle.verified { border-color: var(--color-success); color: var(--color-success); background-color: var(--bg-success); }
.trust-score-circle.caution { border-color: var(--color-danger); color: var(--color-danger); background-color: var(--bg-danger); }
.trust-score-circle.under_review { border-color: var(--color-warning); color: var(--color-warning); background-color: var(--bg-warning); }

/* Rating Breakdown Bar Chart */
.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.rating-bar-track {
  flex: 1;
  height: 8px;
  background-color: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background-color: var(--star-color);
  border-radius: var(--radius-full);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Interactive Star Picker */
.star-picker {
  display: inline-flex;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 1.8rem;
}

.star-picker .star-item {
  color: var(--star-empty);
  transition: transform 0.1s ease, color 0.1s ease;
}

.star-picker .star-item.selected,
.star-picker .star-item.hovered {
  color: var(--star-color);
}

.star-picker .star-item:hover {
  transform: scale(1.15);
}

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  text-decoration: none !important;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--brand-primary);
}

.tab-btn.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table th, .data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: var(--bg-muted);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.data-table tr:hover td {
  background-color: #f8fafc;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* ==========================================================================
   Clean, Organized World-Class Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  overflow-x: clip !important;
  overflow-y: visible !important;
  z-index: 50;
  background: radial-gradient(100% 70% at 50% 0%, rgba(37, 99, 235, 0.07) 0%, rgba(248, 250, 252, 0.6) 60%, #ffffff 100%);
  padding: 5rem 0 4.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.03) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

@media (max-width: 768px) {
  .hero-section::before {
    display: none !important;
  }
}

.hero-container {
  position: relative;
  z-index: 55;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  margin-bottom: 1.25rem;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6);
  animation: pulse-green 2s infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-accent {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #1d4ed8 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}

/* Unified Command Search Bar */
.hero-search-container {
  position: relative;
  z-index: 60;
  max-width: 740px;
  margin: 0 auto 3rem;
}

.hero-search-box {
  position: relative;
  z-index: 65;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 9999px;
  padding: 0.4rem 0.5rem 0.4rem 0.9rem;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.12), 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-search-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 24px 50px -12px rgba(37, 99, 235, 0.22), 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.hero-search-select-wrapper select {
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  padding: 0.6rem 0.4rem;
  outline: none;
  cursor: pointer;
}

.hero-search-divider {
  width: 1px;
  height: 26px;
  background: #e2e8f0;
  margin: 0 0.5rem;
  flex-shrink: 0;
}

.hero-search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.hero-search-icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex-shrink: 0;
}

.hero-search-input-wrapper input {
  width: 100%;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.7rem 0.25rem;
  box-shadow: none !important;
}

.hero-search-input-wrapper input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.hero-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.65rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.hero-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.hero-search-btn:active {
  transform: translateY(0);
}

.hero-trending-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  font-size: 0.84rem;
  color: #64748b;
}

.hero-trending-title {
  font-weight: 600;
  color: #94a3b8;
  margin-right: 0.2rem;
}

.hero-trending-row a {
  color: #475569;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.15s ease;
}

.hero-trending-row a:hover {
  color: var(--brand-primary);
  text-decoration: underline !important;
}

.trending-dot {
  color: #cbd5e1;
  font-size: 0.75rem;
}

/* Minimalist Clean Trust Metrics Strip */
.hero-trust-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  box-shadow: 0 6px 20px -5px rgba(15, 23, 42, 0.05);
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.trust-stat-item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.trust-stat-number {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.trust-stat-desc {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.trust-stat-divider {
  width: 1px;
  height: 18px;
  background: #e2e8f0;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.category-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.category-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Side by side comparison grid */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.compare-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* =====================================================================
   Mobile Navigation Drawer & Hamburger Menu System
   ===================================================================== */

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 9px 8px;
  cursor: pointer;
  z-index: 60;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--bg-muted);
  border-color: #cbd5e1;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

.mobile-write-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

/* Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.drawer-close {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  width: 34px;
  height: 34px;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.drawer-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* In-Drawer Search */
.drawer-search {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.25rem 0.35rem 0.25rem 0.75rem;
}

.drawer-search:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.drawer-search-icon {
  color: var(--text-subtle);
  font-size: 0.95rem;
  margin-right: 0.5rem;
}

.drawer-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  color: var(--text-main);
}

.drawer-search-btn {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* User Card in Drawer */
.drawer-user-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.drawer-avatar-fallback {
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
}

.drawer-user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.2;
}

.drawer-user-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Guest Card in Drawer */
.drawer-guest-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.drawer-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.drawer-primary-cta {
  font-size: 0.92rem;
  padding: 0.65rem 1rem;
}

/* Navigation Groups in Drawer */
.drawer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
  padding-left: 0.5rem;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.drawer-nav-item:hover,
.drawer-nav-item:active {
  background: var(--bg-muted);
  color: var(--brand-primary);
}

.drawer-nav-icon {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
}

.drawer-nav-highlight {
  color: var(--brand-primary);
  background: rgba(37, 99, 235, 0.06);
  font-weight: 600;
}

.drawer-nav-danger {
  color: #ef4444;
}
.drawer-nav-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.drawer-footer {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.drawer-trust-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.trust-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  display: inline-block;
  flex-shrink: 0;
}

/* Utilities */
.btn-block {
  width: 100%;
}
.btn-xs {
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
}

/* =====================================================================
   Tablet & Mobile Responsive Breakpoints
   ===================================================================== */

/* Tablet Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-header-actions {
    display: flex;
  }

  .header-search {
    max-width: 260px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Compare Grid on Tablet */
  .compare-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
  }

  .compare-card {
    min-width: 260px;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .header-search {
    display: none;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .site-header {
    height: 60px;
  }

  .header-inner {
    height: 60px;
    gap: 0.75rem;
  }

  .brand-logo .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .brand-logo .brand-name {
    font-size: 1.15rem;
  }

  .hero-title {
    font-size: 2rem !important;
    line-height: 1.25 !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }

  .site-header-wrapper {
    top: 8px;
    padding: 0 0.5rem;
  }

  .site-header-capsule {
    padding: 0.4rem 0.55rem 0.4rem 0.85rem;
    border-radius: 9999px;
  }

  .hero-search-box {
    flex-direction: column !important;
    border-radius: 18px !important;
    padding: 0.75rem !important;
    gap: 0.65rem !important;
  }

  .hero-search-divider {
    display: none !important;
  }

  .hero-search-select-wrapper {
    width: 100% !important;
  }

  .hero-search-select-wrapper select {
    width: 100% !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
  }

  .hero-search-input-wrapper {
    width: 100% !important;
  }

  .hero-search-btn {
    width: 100% !important;
    justify-content: center;
  }

  .hero-trust-strip {
    border-radius: 16px;
    padding: 1rem;
    gap: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-stat-divider {
    display: none;
  }

  /* Footer on Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Review Cards on Mobile */
  .review-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.85rem;
  }

  .review-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .voting-capsule {
    min-height: 38px;
  }

  /* Tabs Navigation Horizontal Touch Scroll */
  .tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    gap: 0.35rem;
  }

  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    white-space: nowrap !important;
    padding: 0.65rem 0.95rem;
    font-size: 0.85rem;
  }

  /* Tables Touch Scroll Container */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
  }

  .table-responsive table {
    min-width: 600px;
  }

  /* Card padding on mobile */
  .card {
    padding: 1.25rem !important;
  }

  /* Modals on Mobile */
  .modal-card {
    max-width: 95vw !important;
    padding: 1.25rem !important;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
  .hide-small {
    display: none !important;
  }

  .hero-title {
    font-size: 1.75rem !important;
  }

  .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }

  .brand-logo .brand-name {
    font-size: 1.05rem;
  }

  .mobile-drawer {
    width: 90vw;
  }
}

/* =====================================================================
   Business Portal Responsive Styles
   ===================================================================== */
.business-hero-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border: none;
  margin-bottom: 2rem;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
}

.business-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.business-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

.business-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.business-request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.business-claim-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.review-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.response-author-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.preview-sticky-box {
  position: sticky;
  top: 85px;
}

@media (max-width: 1024px) {
  .business-request-layout,
  .business-claim-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .preview-sticky-box {
    position: static !important;
  }

  .business-hero-actions {
    align-items: flex-start !important;
  }
}

@media (max-width: 768px) {
  .business-hero-card {
    padding: 1.5rem 1.25rem !important;
  }

  .business-hero-inner {
    flex-direction: column !important;
  }

  .business-hero-inner h1 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  .business-hero-features {
    flex-direction: column !important;
    gap: 0.65rem !important;
  }

  .business-hero-actions {
    width: 100% !important;
    align-items: stretch !important;
  }

  .business-hero-actions form {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .business-hero-actions select {
    width: 100% !important;
  }

  .form-row-2col,
  .form-row-3col,
  .review-pros-cons-grid,
  .response-author-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .business-hero-card {
    padding: 1.25rem 1rem !important;
  }

  .business-hero-inner h1 {
    font-size: 1.35rem !important;
  }
}


/* =====================================================================
   SUPER SHOWCASE SECTIONS: CATEGORIES, BUSINESSES, SOFTWARE, CONSUMER
   ===================================================================== */
.showcase-section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 10;
}
.showcase-section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.65rem;
}
.eyebrow-directory {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.18);
}
.eyebrow-verified {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.eyebrow-saas {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.2);
}
.eyebrow-consumer {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.2);
}
.section-headline {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 0.45rem 0;
  letter-spacing: -0.02em;
}
.section-subtext {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  max-width: 650px;
  line-height: 1.5;
}
.section-header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.section-header-link:hover {
  color: #2563eb;
  border-color: #93c5fd;
  background: #f8fafc;
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.section-header-link svg {
  transition: transform 0.2s ease;
}
.section-header-link:hover svg {
  transform: translateX(3px);
}

/* 1. Category Grid & Cards */
.cat-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.cat-card-modern {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  overflow: hidden;
}
.cat-card-modern:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}
.cat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.cat-card-modern:hover .cat-card-icon {
  transform: scale(1.08);
}
.cat-card-info {
  flex: 1;
  min-width: 0;
}
.cat-card-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}
.cat-card-modern:hover .cat-card-name {
  color: #2563eb;
}
.cat-card-meta {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}
.cat-card-arrow {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.cat-card-modern:hover .cat-card-arrow {
  color: #2563eb;
  transform: translateX(3px);
}

/* 2. Top-Rated Verified Businesses Grid & Cards */
.super-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.biz-card-modern {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.biz-card-modern:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}
.biz-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.biz-pill-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}
.biz-pill-established {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}
.biz-cat-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.biz-card-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.biz-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  flex-shrink: 0;
}
.biz-identity-text {
  min-width: 0;
}
.biz-company-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-company-name a {
  color: #0f172a;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.biz-company-name a:hover {
  color: #2563eb;
}
.biz-domain-link {
  font-size: 0.78rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.biz-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}
.biz-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.biz-rating-block {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.biz-star-icon {
  color: #f59e0b;
  font-size: 1rem;
}
.biz-rating-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}
.biz-rating-count {
  font-size: 0.78rem;
  color: #94a3b8;
}
.biz-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}

/* 3. Trending Software & SaaS Cards */
.sw-card-modern {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.sw-card-modern:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}
.sw-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.sw-logo-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.sw-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sw-title-area {
  min-width: 0;
}
.sw-product-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.15rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sw-product-name a {
  color: #0f172a;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.sw-product-name a:hover {
  color: #2563eb;
}
.sw-company-by {
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sw-tagline {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}
.sw-badges-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}
.sw-pill-pricing {
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: capitalize;
}
.sw-pill-trial {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.sw-pill-free {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.sw-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sw-cta-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}
.sw-cta-link:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* 4. Consumer & Local Services Cards */
.consumer-card-modern {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.consumer-card-modern:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}
.consumer-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.consumer-logo-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.consumer-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.consumer-title-area {
  min-width: 0;
}
.consumer-store-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.15rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.consumer-store-name a {
  color: #0f172a;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.consumer-store-name a:hover {
  color: #059669;
}
.consumer-meta-loc {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.consumer-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}
.consumer-badges-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}
.consumer-pill-verified {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.consumer-pill-price {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.consumer-pill-hours {
  font-size: 0.72rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.consumer-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.consumer-cta-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}
.consumer-cta-link:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .cat-grid-modern {
    grid-template-columns: repeat(3, 1fr);
  }
  .super-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .cat-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
  .super-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cat-grid-modern {
    grid-template-columns: 1fr;
  }
  .super-grid-4 {
    grid-template-columns: 1fr;
  }
  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =====================================================================
   SUPER CONSUMER DIRECTORY SECTION & EPIC CARDS (V3 TRUSTPILOT / MICHELIN)
   ===================================================================== */
.consumer-showcase-wrapper {
  padding: 4.75rem 0 5rem;
  background: radial-gradient(80% 50% at 50% 0%, rgba(240, 253, 244, 0.45) 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}
.eyebrow-consumer-epic {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.consumer-header-btn:hover {
  color: #047857 !important;
  border-color: #6ee7b7 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12) !important;
}
.consumer-epic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.consumer-card-epic {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px -6px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.consumer-card-epic:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 22px 40px -12px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}
.consumer-card-media {
  height: 155px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}
.consumer-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.consumer-card-epic:hover .consumer-media-img {
  transform: scale(1.08);
}
.consumer-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.05) 45%, rgba(15, 23, 42, 0.45) 100%);
  pointer-events: none;
}
.consumer-floating-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.consumer-pill-dark {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.consumer-pill-verified-glow {
  background: rgba(5, 150, 105, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
}
.consumer-avatar-badge {
  position: absolute;
  bottom: -22px;
  left: 16px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 3px solid #ffffff;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.18);
  z-index: 3;
}
.consumer-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.consumer-body-epic {
  padding: 1.85rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.consumer-meta-row-epic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.consumer-tag-category {
  font-size: 0.73rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.consumer-loc-chip {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.consumer-name-epic {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 0.35rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.consumer-name-epic a {
  color: #0f172a;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.consumer-name-epic a:hover {
  color: #059669;
}
.consumer-desc-epic {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 0.95rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}
.consumer-proofs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}
.consumer-proof-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #065f46;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.consumer-hours-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.consumer-footer-epic {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.consumer-rating-group {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.consumer-star-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.consumer-star-pill .star-icon {
  color: #f59e0b;
  font-size: 1rem;
}
.consumer-star-pill .score-val {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
}
.consumer-reviews-total {
  font-size: 0.76rem;
  color: #94a3b8;
}
.consumer-btn-reviews {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.consumer-btn-reviews:hover {
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
  transform: translateY(-1px);
}
.consumer-btn-reviews svg {
  transition: transform 0.2s ease;
}
.consumer-btn-reviews:hover svg {
  transform: translateX(2px);
}

@media (max-width: 1200px) {
  .consumer-epic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .consumer-epic-grid {
    grid-template-columns: 1fr;
  }
}


/* =====================================================================
   LIVE INSTANT AUTOCOMPLETE SEARCH SYSTEM (SCORE & TOTAL REVIEWS)
   ===================================================================== */
.hero-search-container {
  position: relative;
  z-index: 60;
}
.hero-search-box {
  position: relative;
  z-index: 65;
}
.header-quick-search {
  position: relative;
  z-index: 100;
}
.drawer-search {
  position: relative;
  z-index: 100;
}
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.05);
  z-index: 999999 !important;
  overflow: hidden;
  display: none;
  text-align: left;
  animation: acSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-quick-search .search-autocomplete-dropdown {
  left: auto;
  right: 0;
  width: min(370px, calc(100vw - 32px));
}
@keyframes acSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.ac-header-tag {
  padding: 0.55rem 0.95rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa;
}
.ac-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  max-height: 380px;
  overflow-y: auto;
}
.ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  text-decoration: none !important;
  color: #0f172a;
  transition: all 0.15s ease;
  cursor: pointer;
}
.ac-item:hover,
.ac-item.ac-selected {
  background: #f1f5f9;
}
.ac-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}
.ac-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ac-info {
  min-width: 0;
  flex: 1;
}
.ac-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}
.ac-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-name mark {
  background: #fef08a;
  color: #854d0e;
  border-radius: 3px;
  padding: 0 0.15rem;
}
.ac-pill-verified {
  font-size: 0.66rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 9999px;
  padding: 0.08rem 0.4rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.ac-subtext {
  font-size: 0.76rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}
.ac-rating-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}
.ac-star {
  color: #f59e0b;
  font-size: 0.92rem;
}
.ac-review-count {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
}
.ac-trust-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  white-space: nowrap;
}
.ac-footer {
  border-top: 1px solid #f1f5f9;
  padding: 0.6rem 0.95rem;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
}
.ac-footer-action {
  font-weight: 600;
  color: #2563eb;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.ac-footer-action:hover {
  text-decoration: underline !important;
}
.ac-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
}
.ac-loading {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.84rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .search-autocomplete-dropdown {
    border-radius: 14px;
    top: calc(100% + 6px);
  }
  .ac-list {
    max-height: 320px;
  }
  .ac-item {
    padding: 0.6rem 0.65rem;
    gap: 0.5rem;
  }
  .ac-logo {
    width: 36px;
    height: 36px;
  }
  .ac-name {
    font-size: 0.86rem;
  }
  .ac-subtext {
    font-size: 0.72rem;
  }
  .ac-rating-row {
    font-size: 0.78rem;
  }
  .ac-review-count {
    font-size: 0.7rem;
  }
  .ac-footer {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    padding: 0.6rem 0.75rem;
  }
}

/* ==========================================================================
   MASTER FULL-PLATFORM RESPONSIVE ENGINE (MOBILE, TABLET, LAPTOP, DESKTOP)
   Guaranteed flawless fluid presentation across all 28 views & components
   ========================================================================== */

/* Laptop & Large Tablet Fluid Normalization (1025px - 1280px) */
@media (max-width: 1280px) {
  .container {
    max-width: 100%;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Tablet Landscape & Portrait (769px - 1024px) */
@media (max-width: 1024px) {
  .site-header-wrapper {
    top: 8px;
    padding: 0 0.75rem;
  }

  .directory-layout,
  .responsive-catalog-grid,
  .two-col-layout,
  .company-metrics-grid,
  div[style*="grid-template-columns: 280px 1fr"],
  div[style*="grid-template-columns:280px 1fr"],
  div[style*="grid-template-columns: 260px 1fr"],
  div[style*="grid-template-columns:260px 1fr"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns:2fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 0.8fr"],
  div[style*="grid-template-columns:1.2fr 0.8fr"],
  div[style*="grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.9fr)"],
  div[style*="grid-template-columns:minmax(0, 1.8fr) minmax(320px, 0.9fr)"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .filters-sidebar,
  aside.card {
    width: 100% !important;
  }

  /* Grid Canvas Tablet Scaling */
  .grid-canvas-container,
  div[style*="aspect-ratio: 16/10"] {
    aspect-ratio: 16 / 11 !important;
  }
}

/* Mobile Devices & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  html {
    font-size: 16px !important;
  }
  body {
    font-size: 15.5px !important;
    line-height: 1.55 !important;
  }
  input, select, textarea {
    font-size: 16px !important;
  }
  /* Prevent any inline min-widths from pushing content past screen */
  [style*="min-width: 2"],
  [style*="min-width:2"],
  [style*="min-width: 3"],
  [style*="min-width:3"],
  [style*="min-width: 18"],
  [style*="min-width:18"],
  [style*="min-width: 17"],
  [style*="min-width:17"],
  [style*="min-width: 16"],
  [style*="min-width:16"],
  [style*="min-width: 15"],
  [style*="min-width:15"],
  [style*="min-width: 14"],
  [style*="min-width:14"] {
    min-width: 0 !important;
  }
  /* Ensure sidebar and action boxes collapse cleanly without side-borders */
  div[style*="border-left: 1px solid var(--border-color)"],
  div[style*="border-left:1px solid var(--border-color)"],
  div[style*="border-left: 1px solid #e2e8f0"],
  div[style*="border-left:1px solid #e2e8f0"] {
    border-left: none !important;
    border-top: 1px solid var(--border-color) !important;
    padding-left: 0 !important;
    padding-top: 1rem !important;
    width: 100% !important;
    text-align: left !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Header & Navigation */
  .site-header-wrapper {
    top: 6px;
    padding: 0 0.5rem;
  }

  .site-header-capsule {
    padding: 0.35rem 0.5rem 0.35rem 0.85rem !important;
  }

  /* Global Typography Scaling */
  h1, .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
  }

  h2, .section-headline {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }

  h3 {
    font-size: 1.15rem !important;
  }

  /* Company Profile Page */
  .company-profile-header-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.25rem !important;
  }

  .company-profile-main {
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .company-profile-main img {
    width: 56px !important;
    height: 56px !important;
  }

  /* Star Rating Breakdown Bars */
  .rating-bars {
    width: 100% !important;
  }

  /* Search & Filter Forms across Search, Consumer, Software */
  .search-filters-form,
  .consumer-hero-search,
  form[action*="search"],
  form[action*="consumer"] {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.65rem !important;
  }

  .search-filters-form input,
  .search-filters-form select,
  .search-filters-form button,
  .consumer-hero-search input,
  .consumer-hero-search select,
  .consumer-hero-search button,
  form[action*="search"] input,
  form[action*="search"] select,
  form[action*="search"] button {
    width: 100% !important;
    min-width: 0 !important;
  }

  .consumer-hero-search > div {
    border-left: none !important;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid #e2e8f0;
    width: 100% !important;
  }

  /* Comparison Engine Tables */
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
  }

  .table-responsive table {
    min-width: 650px !important;
  }

  /* Grid Canvas on Mobile */
  .grid-canvas-container,
  div[style*="aspect-ratio: 16/10"] {
    aspect-ratio: 1 / 1 !important;
    min-height: 360px !important;
  }

  .grid-product-pin {
    padding: 3px 6px !important;
    gap: 3px !important;
  }

  .grid-product-pin span {
    font-size: 0.7rem !important;
  }

  /* Review Submission Form */
  #review-submission-form div[style*="grid-template-columns:1fr 1fr"],
  #review-submission-form div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Review Cards & Voting */
  .review-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .review-header-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Tabs Horizontal Touch Scrolling */
  .tabs-nav,
  .tabs-header,
  div[style*="overflow-x:auto"],
  div[style*="overflow-x: auto"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
  }

  .tabs-nav::-webkit-scrollbar,
  div[style*="overflow-x:auto"]::-webkit-scrollbar {
    display: none;
  }

  .tab-btn,
  .nav-pill-link {
    white-space: nowrap !important;
    flex-shrink: 0;
  }

  /* Modals */
  .modal-card {
    width: 95vw !important;
    max-width: 95vw !important;
    padding: 1.25rem 1rem !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    margin: 1rem auto !important;
  }
}

/* Small SmartPhones (<= 480px) */
@media (max-width: 480px) {
  .company-profile-main {
    flex-direction: column !important;
    text-align: center !important;
  }

  .company-profile-main div[style*="display:flex"] {
    justify-content: center !important;
  }

  .star-rating {
    justify-content: center !important;
  }

  .btn {
    padding: 0.55rem 0.95rem !important;
    font-size: 0.85rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.15rem !important;
  }

  .voting-capsule {
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-trust-strip {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.65rem !important;
  }
}
