@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.92rem;
  background: #f2f4f7;
  color: #1c1c1c;
  line-height: 1.6;
}

a { color: #00b67a; text-decoration: none; }
a:hover { color: #008a5c; }

/* ── Header ─────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e4e6eb;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header-brand:hover { text-decoration: none; }
.header-logo {
  width: 36px;
  height: 36px;
  background: #00b67a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}
.header-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1c1c;
  line-height: 1.2;
}
.header-brand-tagline {
  font-size: 0.68rem;
  color: #888;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-outline:hover { border-color: #00b67a; color: #00b67a; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 8px 22px;
  background: #00b67a;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-primary:hover { background: #008a5c; color: #fff; text-decoration: none; }

/* ── Star ratings ────────────────────────── */
.stars {
  display: inline-flex;
  gap: 2px;
  line-height: 1;
}
.stars-sm .star { font-size: 0.85rem; }
.stars-md .star { font-size: 1.15rem; }
.stars-lg .star { font-size: 1.6rem; }
.star { color: #d1d5db; }
.star.filled { color: #00b67a; }
.star.half {
  position: relative;
  color: #d1d5db;
}
.star.half::before {
  content: '★';
  position: absolute;
  left: 0;
  color: #00b67a;
  width: 50%;
  overflow: hidden;
}

/* ── Page layout ─────────────────────────── */
.page-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  gap: 32px;
}
.sidebar {
  width: 300px;
  flex-shrink: 0;
}
.main-content {
  flex: 1;
  min-width: 0;
}

/* ── Company card (sidebar) ──────────────── */
.company-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: sticky;
  top: 80px;
}
.company-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.company-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00b67a, #00d68f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}
.company-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1c1c;
  line-height: 1.3;
  margin-bottom: 2px;
}
.company-claim {
  font-size: 0.72rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}
.company-claim-icon {
  display: inline-flex;
  width: 16px; height: 16px;
  background: #00b67a;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.55rem;
}
.company-rating-big {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f2f5;
}
.company-rating-number {
  font-size: 2rem;
  font-weight: 800;
  color: #1c1c1c;
  line-height: 1;
}
.company-rating-stars { font-size: 0.9rem; }
.company-rating-count {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}
.company-info-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.4;
}
.company-info-icon {
  flex-shrink: 0;
  width: 18px;
  color: #999;
  font-size: 0.85rem;
}
.company-desc {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
}
.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.company-tag {
  background: #eef7f2;
  color: #00b67a;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ── Rating distribution ─────────────────── */
.rating-dist {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f0f2f5;
}
.rating-dist-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 10px;
}
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.78rem;
}
.rating-bar-label {
  width: 32px;
  font-weight: 600;
  color: #555;
  text-align: right;
}
.rating-bar-track {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: #00b67a;
  border-radius: 4px;
  transition: width 0.3s;
}
.rating-bar-count {
  width: 28px;
  color: #999;
  text-align: left;
  font-size: 0.72rem;
}

/* ── Review header bar ───────────────────── */
.review-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.review-header-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1c1c1c;
}
.review-header-sort {
  font-size: 0.82rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.review-header-sort strong {
  color: #1c1c1c;
}

/* ── Review card ─────────────────────────── */
.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.review-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.review-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
}
.review-author-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1c1c1c;
  line-height: 1.3;
}
.review-author-meta {
  font-size: 0.72rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}
.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  color: #00b67a;
  font-weight: 600;
}
.review-date {
  font-size: 0.78rem;
  color: #999;
  white-space: nowrap;
}
.review-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.review-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 8px;
  line-height: 1.4;
}
.review-body {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 14px;
}
.review-pros-cons {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.review-pros,
.review-cons {
  flex: 1;
  background: #fafbfc;
  border-radius: 8px;
  padding: 14px 16px;
}
.review-pros-title,
.review-cons-title {
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.review-pros-title { color: #00b67a; }
.review-cons-title { color: #ef4444; }
.review-pros-text,
.review-cons-text {
  font-size: 0.83rem;
  color: #555;
  line-height: 1.5;
}
.review-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
}
.review-helpful {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
  border: none;
  background: none;
  font-family: inherit;
  padding: 4px 0;
  transition: color 0.15s;
}
.review-helpful:hover { color: #00b67a; }
.review-helpful-icon {
  font-size: 1rem;
  line-height: 1;
}
.review-share {
  font-size: 0.8rem;
  color: #888;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.review-share:hover { color: #00b67a; }

/* ── Review detail page ──────────────────── */
.review-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}
.review-detail-back {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.review-detail-back:hover { color: #00b67a; }
.review-detail-company {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e4e6eb;
}
.review-detail-company-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00b67a, #00d68f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.review-detail-company-name {
  font-weight: 700;
  font-size: 1rem;
  color: #1c1c1c;
}
.review-detail-company-rating {
  font-size: 0.78rem;
  color: #888;
}
.review-detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.review-detail-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1c1c1c;
  margin-bottom: 4px;
  line-height: 1.3;
}
.review-detail-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.review-detail-body {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 28px;
  white-space: pre-wrap;
}
.review-detail-pros-cons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.review-detail-pros,
.review-detail-cons {
  flex: 1;
  background: #fafbfc;
  border-radius: 10px;
  padding: 18px 20px;
}

/* ── Pagination ──────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e4e6eb;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover { border-color: #00b67a; color: #00b67a; }
.page-btn.active { background: #00b67a; color: #fff; border-color: #00b67a; }

/* ── Footer ──────────────────────────────── */
.site-footer {
  border-top: 1px solid #e4e6eb;
  padding: 32px 24px;
  background: #fff;
  font-size: 0.82rem;
  color: #888;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: #666; font-size: 0.82rem; }
.footer-links a:hover { color: #1c1c1c; }

/* ── Auth modal ──────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-card {
  background: #fff;
  border-radius: 16px;
  width: 400px;
  max-width: 95vw;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  overflow: hidden;
}
.modal-tabs {
  display: flex;
  align-items: center;
  background: #fafbfc;
  border-bottom: 1px solid #e4e6eb;
}
.modal-tab {
  flex: 1;
  padding: 16px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: #888;
  text-align: center;
  border-bottom: 2px solid transparent;
}
.modal-tab:hover { color: #555; }
.modal-tab.active { color: #00b67a; border-bottom-color: #00b67a; }
.modal-close {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 1.3rem;
  color: #888;
}
.modal-close:hover { color: #ef4444; }
.modal-body { padding: 24px; }
.modal-body label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin: 12px 0 4px;
}
.modal-body input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: inherit;
}
.modal-body input:focus {
  outline: none;
  border-color: #00b67a;
  box-shadow: 0 0 0 3px rgba(0,182,122,0.1);
}

/* ── Empty state ─────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}
.empty-state h3 { font-size: 1.1rem; color: #555; margin-bottom: 6px; }
.empty-state p { font-size: 0.88rem; color: #999; }

/* ── Breadcrumb ──────────────────────────── */
.breadcrumb {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 20px;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #00b67a; }
.breadcrumb-sep { color: #ccc; }
.breadcrumb-curr { color: #1c1c1c; font-weight: 600; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 860px) {
  .page-inner {
    flex-direction: column;
    padding: 20px 16px 32px;
  }
  .sidebar {
    width: 100%;
    position: static;
  }
  .company-card {
    position: static;
  }
  .review-pros-cons,
  .review-detail-pros-cons {
    flex-direction: column;
  }
  .review-detail {
    padding: 24px 16px 32px;
  }
}