/* =============================================
   amino.css — Custom styles for amino.reviews
   Loads AFTER Bootstrap 5.3.8 via CDN

   TABLE OF CONTENTS:
   1. CSS Variables (colors, fonts, spacing)
   2. Base & Typography (body, headings, links)
   3. Bootstrap Overrides (buttons, cards, tables, forms, badges)
   4. Layout (sidebar, topbar, main content, public nav, footer)
   5. Components (star ratings, review cards, vendor cards, filter bar)
   6. Pages (vendor detail, comparison, review form, dashboard)
   7. Utilities (spacing helpers, text helpers)
   8. Responsive (all media queries, organized by breakpoint)
   ============================================= */

/* =============================================
   1. CSS VARIABLES
   ============================================= */
:root {
  /* Primary — Deep navy */
  --amino-primary: #1B2559;
  --amino-primary-hover: #141C45;
  --amino-primary-light: #E8EAF2;
  --amino-primary-50: rgba(27, 37, 89, 0.05);

  /* Accent — Warm amber */
  --amino-accent: #E8913A;
  --amino-accent-hover: #D47E2E;
  --amino-accent-light: #FDF3E7;

  /* Star colors */
  --amino-star-1: #D94A38;
  --amino-star-2: #E87B30;
  --amino-star-3: #E8B730;
  --amino-star-4: #68A844;
  --amino-star-5: #1B8B4B;
  --amino-star-empty: #DDE1E6;

  /* Neutrals */
  --amino-text: #1A1A2E;
  --amino-text-secondary: #5A6072;
  --amino-text-muted: #8E95A7;
  --amino-border: #E2E5EB;
  --amino-border-light: #F0F2F5;
  --amino-bg: #FFFFFF;
  --amino-bg-subtle: #F8F9FB;
  --amino-bg-hover: #F2F4F7;

  /* Status */
  --amino-success: #1B8B4B;
  --amino-warning: #E8B730;
  --amino-danger: #D94A38;
  --amino-info: #2B7BC2;

  /* Badges */
  --amino-verified-bg: #E6F4ED;
  --amino-verified-text: #1B8B4B;
  --amino-invited-bg: #E8EAF2;
  --amino-invited-text: #1B2559;
  --amino-pending-bg: #FFF8E6;
  --amino-pending-text: #9A7B1F;

  /* Fonts */
  --amino-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --amino-font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;

  /* Shadows — restrained, never heavy */
  --amino-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --amino-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --amino-shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* =============================================
   2. BASE & TYPOGRAPHY
   ============================================= */
body {
  font-family: var(--amino-font);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--amino-text);
  background: var(--amino-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

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

::selection {
  background: var(--amino-primary-light);
  color: var(--amino-primary);
}

.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }
.fw-medium { font-weight: 500; }

/* =============================================
   3. BOOTSTRAP OVERRIDES
   ============================================= */

/* --- Buttons --- */
.btn {
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1.125rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  letter-spacing: -0.005em;
}
.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--amino-primary-light);
}
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}
.btn-primary {
  background: var(--amino-primary);
  border-color: var(--amino-primary);
  color: #FFFFFF;
}
.btn-primary:hover,
.btn-primary:active {
  background: var(--amino-primary-hover);
  border-color: var(--amino-primary-hover);
  color: #FFFFFF;
}
.btn-accent {
  background: var(--amino-accent);
  border-color: var(--amino-accent);
  color: #FFFFFF;
}
.btn-accent:hover,
.btn-accent:active {
  background: var(--amino-accent-hover);
  border-color: var(--amino-accent-hover);
  color: #FFFFFF;
}
.btn-outline-secondary {
  border-color: var(--amino-border);
  color: var(--amino-text-secondary);
}
.btn-outline-secondary:hover {
  background: var(--amino-bg-subtle);
  border-color: var(--amino-border);
  color: var(--amino-text);
}

/* --- Cards --- */
.card {
  border: 1px solid var(--amino-border);
  border-radius: 8px;
  box-shadow: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
a.card:hover,
a.card:focus {
  border-color: var(--amino-primary-light);
  box-shadow: var(--amino-shadow-card-hover);
  text-decoration: none;
  color: inherit;
}
.card-body {
  padding: 1.25rem;
}

/* --- Badges --- */
.badge {
  font-weight: 500;
  font-size: 0.6875rem;
  padding: 0.25em 0.625em;
  border-radius: 4px;
  letter-spacing: 0.01em;
}
.badge-verified {
  background: var(--amino-verified-bg);
  color: var(--amino-verified-text);
}
.badge-invited {
  background: var(--amino-invited-bg);
  color: var(--amino-invited-text);
}
.badge-pending {
  background: var(--amino-pending-bg);
  color: var(--amino-pending-text);
}
.badge-danger {
  background: #FDECEA;
  color: var(--amino-danger);
}

/* --- Tables --- */
.table {
  font-size: 0.875rem;
  --bs-table-bg: transparent;
  margin-bottom: 0;
}
.table th {
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amino-text-muted);
  border-bottom: 1px solid var(--amino-border);
  padding: 0.625rem 0.75rem;
}
.table td {
  vertical-align: middle;
  border-bottom: 1px solid var(--amino-border-light);
  padding: 0.75rem;
  color: var(--amino-text-secondary);
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table tbody tr:hover td {
  background: var(--amino-bg-subtle);
}

/* --- Forms --- */
.form-control,
.form-select {
  border-radius: 6px;
  border: 1px solid var(--amino-border);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  color: var(--amino-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--amino-primary);
  box-shadow: 0 0 0 3px var(--amino-primary-light);
}
.form-control::placeholder {
  color: var(--amino-text-muted);
}
.form-control:disabled,
.form-control[readonly] {
  background: var(--amino-bg-subtle);
  color: var(--amino-text-muted);
}
.form-label {
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--amino-text-secondary);
  margin-bottom: 0.375rem;
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* --- Breadcrumbs --- */
.breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: 0;
  padding: 0;
  background: none;
}
.breadcrumb-item a {
  color: var(--amino-primary);
  font-weight: 500;
}
.breadcrumb-item a:hover {
  color: var(--amino-primary-hover);
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: var(--amino-text-muted);
}
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--amino-text-muted);
  content: "/";
  padding: 0 0.375rem;
}

/* --- Alerts --- */
.alert {
  border-radius: 6px;
  font-size: 0.875rem;
  border: none;
}

/* =============================================
   4. LAYOUT
   ============================================= */

/* --- Public Navigation --- */
.navbar {
  padding: 0.75rem 0;
  background: var(--amino-bg);
  border-bottom: 1px solid var(--amino-border) !important;
}
.navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--amino-primary);
  letter-spacing: -0.02em;
}
.navbar .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--amino-text-secondary);
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.navbar .nav-link:hover {
  color: var(--amino-text);
  background: var(--amino-bg-subtle);
}

/* --- Hero Section --- */
.hero-section {
  background: var(--amino-bg-subtle);
  border-bottom: 1px solid var(--amino-border-light);
}
.hero-section h1 {
  font-size: 2rem;
  letter-spacing: -0.025em;
}
.hero-section p {
  color: var(--amino-text-secondary);
  font-size: 0.9375rem;
}

/* --- Sidebar (Authenticated) --- */
.sidebar {
  width: 250px;
  min-height: 100vh;
  background: var(--amino-primary);
  padding: 1.5rem 0;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  z-index: 1040;
}
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
.sidebar .brand {
  padding: 0 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.sidebar .brand a {
  color: #FFFFFF;
  text-decoration: none;
}
.sidebar .nav-label {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1.25rem 1.25rem 0.375rem;
}
.sidebar .nav-link {
  padding: 0.4375rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: all 0.15s ease;
  position: relative;
}
.sidebar .nav-link i {
  font-size: 0.9375rem;
  width: 1.25rem;
  text-align: center;
  opacity: 0.75;
}
.sidebar .nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}
.sidebar .nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 500;
}
.sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.375rem;
  bottom: 0.375rem;
  width: 3px;
  background: var(--amino-accent);
  border-radius: 0 2px 2px 0;
}
.sidebar .nav-link.active i {
  opacity: 1;
}

/* Sidebar footer (user info) */
.sidebar-footer {
  padding: 1.5rem 1.25rem 0;
}
.sidebar-footer-inner {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}
.sidebar-footer .email {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-footer .signout {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}
.sidebar-footer .signout:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* --- Main Content (Authenticated) --- */
.main-content {
  margin-left: 250px;
  padding: 2rem;
  min-height: 100vh;
  background: var(--amino-bg-subtle);
}

/* --- Mobile Topbar --- */
.mobile-topbar {
  border-bottom: 1px solid var(--amino-border);
  padding: 0.75rem 1rem;
  background: var(--amino-bg);
}

/* --- Footer --- */
.public-footer {
  border-top: 1px solid var(--amino-border);
  padding: 2rem 0;
  margin-top: 3rem;
}
.public-footer .footer-copyright {
  font-size: 0.75rem;
  color: var(--amino-text-muted);
}
.public-footer .footer-link {
  font-size: 0.75rem;
  color: var(--amino-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.public-footer .footer-link:hover {
  color: var(--amino-text-secondary);
}

/* =============================================
   5. COMPONENTS
   ============================================= */

/* --- Star Rating Display --- */
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars .bi-star-fill {
  color: var(--amino-accent);
}
.stars .bi-star {
  color: var(--amino-star-empty);
}

/* Star background blocks (Trustpilot-style) */
.star-block {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  gap: 4px;
}
.star-block--1 { background: var(--amino-star-1); color: #fff; }
.star-block--2 { background: var(--amino-star-2); color: #fff; }
.star-block--3 { background: var(--amino-star-3); color: #fff; }
.star-block--4 { background: var(--amino-star-4); color: #fff; }
.star-block--5 { background: var(--amino-star-5); color: #fff; }

.star-block .bi {
  font-size: 0.6875rem;
}

/* --- Rating Breakdown Bars --- */
.rating-breakdown .breakdown-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.rating-breakdown .breakdown-label {
  font-size: 0.75rem;
  color: var(--amino-text-muted);
  width: 44px;
  flex-shrink: 0;
}
.rating-breakdown .breakdown-bar {
  flex-grow: 1;
  height: 8px;
  background: var(--amino-border-light);
  border-radius: 4px;
  overflow: hidden;
}
.rating-breakdown .breakdown-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.15s ease;
}
.rating-breakdown .breakdown-count {
  font-size: 0.75rem;
  color: var(--amino-text-muted);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* --- Vendor Card --- */
.vendor-card {
  border: 1px solid var(--amino-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--amino-bg);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.vendor-card:hover {
  border-color: var(--amino-primary-light);
  box-shadow: var(--amino-shadow-card-hover);
  color: inherit;
  text-decoration: none;
}
.vendor-card .vendor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--amino-primary-50);
  color: var(--amino-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.vendor-card .vendor-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--amino-text);
}
.vendor-card .vendor-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.125rem;
}
.vendor-card .vendor-chevron {
  color: var(--amino-text-muted);
  font-size: 0.875rem;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.vendor-card:hover .vendor-chevron {
  transform: translateX(2px);
}

/* --- Review Card --- */
.review-card {
  border: 1px solid var(--amino-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--amino-bg);
}
.review-card .review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.review-card .review-date {
  font-size: 0.75rem;
  color: var(--amino-text-muted);
}
.review-card .review-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--amino-text);
}
.review-card .review-author {
  font-size: 0.75rem;
  color: var(--amino-text-muted);
  margin-bottom: 0.5rem;
}
.review-card .review-body {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--amino-text-secondary);
  margin: 0;
}
.review-card .vendor-response {
  margin-top: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--amino-bg-subtle);
  border-radius: 6px;
  border-left: 3px solid var(--amino-primary);
}
.review-card .vendor-response-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--amino-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}
.review-card .vendor-response-body {
  font-size: 0.8125rem;
  color: var(--amino-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- Review Product Tags --- */
.review-products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}
.review-product-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.1875rem 0.5rem;
  border-radius: 4px;
  background: var(--amino-primary-50);
  color: var(--amino-primary);
  text-decoration: none;
  transition: background 0.15s ease;
}
.review-product-tag:hover {
  background: var(--amino-primary-light);
  color: var(--amino-primary);
  text-decoration: none;
}

/* --- Review Owner Actions --- */
.review-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--amino-border-light);
}
.btn-review-action {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--amino-text-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease;
}
.btn-review-action:hover {
  color: var(--amino-primary);
}
.btn-review-action--danger:hover {
  color: var(--amino-danger);
}

/* --- Stat Cards (Dashboard) --- */
.stat-card {
  border: 1px solid var(--amino-border);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--amino-bg);
}
.stat-card .stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amino-accent);
  margin-bottom: 0.375rem;
}
.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--amino-text);
}

/* --- Vendor Detail Header --- */
.vendor-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.vendor-header .vendor-logo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--amino-primary-50);
  color: var(--amino-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.vendor-header .vendor-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.vendor-header .vendor-website {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--amino-primary);
}
.vendor-header .vendor-description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--amino-text-secondary);
  line-height: 1.6;
}

/* --- Empty States --- */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.empty-state .empty-icon {
  font-size: 2rem;
  color: var(--amino-border);
  margin-bottom: 0.75rem;
}
.empty-state .empty-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--amino-text-muted);
  margin-bottom: 0.375rem;
}
.empty-state .empty-description {
  font-size: 0.8125rem;
  color: var(--amino-text-muted);
  margin-bottom: 1rem;
}

/* --- CTA Card (Sidebar) --- */
.cta-card {
  text-align: center;
  padding: 1.5rem;
}
.cta-card h4 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}
.cta-card p {
  font-size: 0.8125rem;
  color: var(--amino-text-secondary);
  margin-bottom: 1rem;
}

/* --- Vendor Info Table --- */
.info-table td {
  border: none;
  padding: 0.3125rem 0;
  font-size: 0.8125rem;
}
.info-table .info-label {
  color: var(--amino-text-muted);
}
.info-table .info-value {
  text-align: right;
  color: var(--amino-text);
}

/* --- Rating Summary Block --- */
.rating-summary {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.rating-summary .rating-big {
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
}
.rating-summary .rating-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amino-text);
  letter-spacing: -0.03em;
}
.rating-summary .rating-label {
  font-size: 0.75rem;
  color: var(--amino-text-muted);
  margin-top: 0.25rem;
}

/* --- Peptide Grid Card --- */
.peptide-card {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--amino-border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--amino-text);
  text-decoration: none;
  transition: all 0.15s ease;
  background: var(--amino-bg);
  gap: 0.5rem;
}
.peptide-card:hover {
  border-color: var(--amino-primary-light);
  background: var(--amino-primary-50);
  color: var(--amino-primary);
  text-decoration: none;
}

/* --- Category Label --- */
.category-label {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--amino-text);
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

/* --- Search Input Group --- */
.search-input-group .form-control {
  border-right: none;
}
.search-input-group .btn {
  border-left: none;
  border-color: var(--amino-border);
}
.search-input-group .form-control:focus + .btn {
  border-color: var(--amino-primary);
}

/* --- Star Picker (Interactive) --- */
.star-picker .bi {
  cursor: pointer;
  font-size: 1.75rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.star-picker .bi:hover {
  transform: scale(1.1);
}
.star-picker .bi-star-fill {
  color: var(--amino-accent);
}
.star-picker .bi-star {
  color: var(--amino-star-empty);
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* --- Pagination --- */
.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--amino-text-secondary);
  border: 1px solid var(--amino-border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.pagination-link:hover {
  color: var(--amino-primary);
  border-color: var(--amino-primary-light);
  background: var(--amino-primary-50);
  text-decoration: none;
}
.pagination-link--active {
  color: #FFFFFF;
  background: var(--amino-primary);
  border-color: var(--amino-primary);
}
.pagination-link--active:hover {
  color: #FFFFFF;
  background: var(--amino-primary-hover);
}

/* --- Compare Column --- */
.compare-vendor-header {
  text-align: center;
  padding: 1.5rem;
}
.compare-vendor-header h3 a {
  color: var(--amino-primary);
  font-weight: 600;
}

/* =============================================
   6. PAGES
   ============================================= */

/* Dashboard page background */
.page-dashboard .main-content {
  background: var(--amino-bg-subtle);
}

/* Invitation star email buttons */
.invitation-stars td {
  padding: 0 4px;
}

/* =============================================
   7. UTILITIES
   ============================================= */
.gap-4 { gap: 0.25rem; }
.gap-8 { gap: 0.5rem; }
.gap-12 { gap: 0.75rem; }
.gap-16 { gap: 1rem; }
.gap-24 { gap: 1.5rem; }
.gap-32 { gap: 2rem; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.section-header h2,
.section-header h3 {
  margin-bottom: 0;
}
.section-header .section-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--amino-primary);
}

/* Truncate text */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--amino-border);
  margin: 1rem 0;
}

/* =============================================
   8. RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 1050;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0 !important;
    padding: 1.25rem;
  }
  h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 1.5rem;
  }
  .stat-card .stat-value {
    font-size: 1.5rem;
  }
  .vendor-header {
    gap: 1rem;
  }
  .vendor-header .vendor-logo {
    width: 56px;
    height: 56px;
    font-size: 1.375rem;
  }
  .rating-summary {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .rating-summary .rating-big {
    margin-bottom: 0.5rem;
  }

  /* Table card layout on mobile */
  .table-responsive-cards thead { display: none; }
  .table-responsive-cards tr {
    display: block;
    padding: 0.875rem;
    border: 1px solid var(--amino-border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: var(--amino-bg);
  }
  .table-responsive-cards td {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border: none;
  }
  .table-responsive-cards td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--amino-text-muted);
  }
}
