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

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

:root {
  --primary: #1B7FD4;
  --primary-dark: #1460A8;
  --navy: #0E2346;
  --accent: #4aaee8;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e2e2e2;
  --bg: #f2f2f2;
  --card: #fff;
  --radius: 0px;
  --radius-sm: 0px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
  background: #fff;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 9100;
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  height: 100%;
  min-height: 64px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .25s;
}

.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: translateY(100%);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  z-index: -1;
}

.nav-links a:not(.btn-primary):hover { color: #fff !important; }
.nav-links a:not(.btn-primary):hover::after { transform: translateY(0); }

.btn-primary {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 11px 28px;
  border-radius: 0;
  font-weight: 600 !important;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .2s;
}

.btn-primary:hover { background: var(--primary-dark) !important; }

/* Tekst przycisków zawsze biały — zapobiega dziedziczeniu koloru linka (var(--primary)) na hover/focus */
.btn-primary:hover, .btn-primary:focus { color: #fff !important; }
.login-btn:hover, .login-btn:focus { color: #fff; }

/* Admin panel buttons */
.btn-danger {
  background: #e53e3e;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-right: 8px;
  transition: background .2s;
}
.btn-danger:hover { background: #c53030; }

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
}
.btn-secondary:hover { background: #f5f5f5; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  background-image: url('background.png');
  background-size: cover;
  background-position: center 40%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ── SEARCH BAR ──────────────────────────────────── */
.search-bar {
  background: #fff;
  border-radius: 0;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 32px rgba(0,0,0,.22);
  width: 100%;
  max-width: 820px;
  height: 62px;
}

.search-field {
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 10px;
  flex: 1;
  height: 100%;
  border-right: 1px solid var(--border);
}

.search-field:last-of-type { border-right: none; }

.search-field svg { flex-shrink: 0; color: #aaa; }

.search-field input,
.search-field select {
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  width: 100%;
  cursor: pointer;
}

.search-field input::placeholder { color: #999; }

.search-field .field-label {
  font-size: 11px;
  color: #888;
  line-height: 1;
  display: block;
  margin-bottom: 2px;
}

.search-field .field-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── Custom Select ───────────────────────────────── */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  color: #999;
  padding: 0;
  user-select: none;
}

.custom-select-trigger.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-arrow {
  flex-shrink: 0;
  color: #aaa;
  transition: transform .2s;
}

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -18px;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  z-index: 100;
  overflow: hidden;
}

.custom-select-dropdown.open {
  display: block;
}

.custom-select-option {
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background .15s;
}

.custom-select-option:hover {
  background: #f5f5f5;
}

.custom-select-option.selected {
  color: var(--primary);
  font-weight: 600;
}

.search-field select {
  font-size: 14px;
  -webkit-appearance: none;
}

.search-btn-wrap {
  padding: 8px 10px 8px 10px;
  flex-shrink: 0;
}

.search-btn-wrap button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 0 36px;
  height: 46px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
}

.search-btn-wrap button:hover { background: var(--primary-dark); }

/* ── TRAINERS SECTION ────────────────────────────── */
.trainers-section {
  background: #fff;
  padding: 48px 40px 64px;
  border-radius: 0;
  margin-top: -8px;
  position: relative;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.section-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.trainers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── TRAINER CARD ────────────────────────────────── */
.trainer-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}

.trainer-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.trainer-card-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.trainer-card-photo-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #c9d9ea 0%, #a0b8d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  letter-spacing: 1px;
}

.trainer-card-body {
  padding: 18px 18px 22px;
  background: #f7f7f7;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trainer-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.trainer-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.1;
}

.trainer-card-city {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

.trainer-card-city svg { flex-shrink: 0; }

.trainer-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  background: #f5f5f5;
  border: none;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 400;
  color: #444;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.trainer-card-divider {
  border: none;
  border-top: 1px solid #dedede;
  margin: 2px 0;
}

.trainer-card-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-label {
  font-size: 12px;
  color: var(--text-muted);
}

.price-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.trainer-card-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: background .2s;
  margin-top: auto;
}

.trainer-card-btn:hover { background: var(--primary-dark); }

/* ── TRAINER PROFILE PAGE ────────────────────────── */
.profile-hero {
  background-image: url('background.png');
  background-size: cover;
  background-position: center 40%;
  min-height: 220px;
  padding-bottom: 0;
  position: relative;
}

.profile-hero-spacer { height: 180px; }

.profile-card-wrap {
  padding: 0 40px;
  position: relative;
  margin-top: -80px;
}

.profile-card {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  padding: 28px 36px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.profile-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.profile-photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #c9d9ea, #a0b8d0);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
}

.profile-info { flex: 1; min-width: 0; }

.profile-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 42px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1;
  margin-bottom: 6px;
}

.profile-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.gsa-badge-short { display: none; }
.gsa-badge-full  { display: inline; }

/* ── GSA Verified Badge ─────────────────────────── */
.gsa-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #EEF6FF;
  color: var(--primary);
  border: 1.5px solid #B8D9F7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 3px 9px 3px 6px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gsa-badge svg {
  flex-shrink: 0;
}

/* inline badge on trainer card (smaller) */
.gsa-badge-card {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EEF6FF;
  color: var(--primary);
  border: 1.5px solid #B8D9F7;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px 2px 5px;
  border-radius: 20px;
  margin-top: 4px;
  white-space: nowrap;
}

.profile-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
}

.star { color: #f5b200; font-size: 20px; }

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  background: #f5f5f5;
  border: none;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2px;
  text-transform: lowercase;
  color: #444;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.profile-contacts { margin-left: auto; display: flex; flex-direction: column; gap: 14px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  word-break: break-all;
  overflow-wrap: break-word;
}

.contact-item:hover { color: var(--primary); }

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: #eef4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── PROFILE CONTENT ─────────────────────────────── */
.profile-content {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.content-card {
  background: #f7f7f7;
  border-radius: var(--radius);
  padding: 32px 30px;
}

.content-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: .3px;
}

.bio-text {
  font-size: 14px;
  line-height: 1.75;
  color: #333;
}

.bio-text p + p { margin-top: 14px; }

.cert-item { margin-bottom: 24px; }

.cert-item:last-child { margin-bottom: 0; }

.cert-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.cert-company {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cert-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #444;
}

/* ── HAMBURGER ───────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all .25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── TABLET (≤1100px) ────────────────────────────── */
@media (max-width: 1100px) {
  .trainers-grid { grid-template-columns: repeat(2, 1fr); }

  .search-bar { max-width: 680px; height: auto; flex-wrap: wrap; }
  .search-field {
    flex: 1 1 45%;
    min-width: 0;
    height: 56px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .search-field:last-of-type { border-bottom: none; }
  .search-btn-wrap { width: 100%; padding: 10px 12px; }
  .search-btn-wrap button { width: 100%; }

  .profile-contacts { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-left: 0; margin-top: 16px; }
  .profile-card { flex-wrap: wrap; }
}

/* ── MOBILE (≤700px) ─────────────────────────────── */
@media (max-width: 700px) {
  /* Navbar */
  .navbar { padding: 0 16px; height: 60px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    z-index: 99;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 13px 20px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child { border-bottom: none; }

  .btn-primary {
    margin: 10px 20px 0;
    text-align: center;
    border-radius: 0 !important;
  }

  /* Hero search */
  .hero { padding: 28px 12px; min-height: 0; }

  .search-bar {
    flex-direction: column;
    height: auto;
    max-width: 100%;
  }

  .search-field {
    flex: unset;
    width: 100%;
    height: 52px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .search-field:last-of-type { border-bottom: none; }

  .search-btn-wrap { width: 100%; padding: 10px 12px; }
  .search-btn-wrap button { width: 100%; }

  /* Trainers */
  .trainers-section { padding: 28px 12px 40px; }
  .trainers-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }

  /* Trainer profile */
  .profile-hero-spacer { height: 120px; }
  .profile-card-wrap { padding: 0 12px; margin-top: -60px; }

  .profile-card {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .profile-photo,
  .profile-photo-placeholder {
    width: 100%;
    height: 220px;
  }

  .profile-name { font-size: 32px; }
  .gsa-badge-full { display: none; }
  .gsa-badge-short { display: inline; }

  .profile-info { width: 100%; }
  .profile-rating { flex-wrap: wrap; row-gap: 4px; }
  .profile-rating button { margin-left: 0 !important; }

  .profile-contacts {
    flex-direction: column;
    margin-left: 0;
    width: 100%;
  }

  .profile-content {
    grid-template-columns: 1fr;
    padding: 0 12px;
    margin: 20px auto;
  }

  .content-card { padding: 24px 20px; }
  .content-card-title { font-size: 24px; }

  /* Login */
  .login-card { padding: 28px 20px 24px; }
  .login-title { font-size: 28px; }
}

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 56px 40px 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand-logo {
  display: inline-block;
  margin-bottom: 16px;
  background: #fff;
  padding: 10px 14px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  max-width: 240px;
}

.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: rgba(255,255,255,.72);
  transition: color .18s;
}

.footer-links a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: border-color .18s, color .18s;
  flex-shrink: 0;
}

.footer-social a:hover {
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.35);
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 700px) {
  .site-footer { padding: 40px 16px 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 36px;
  }

  .footer-brand-desc { max-width: 100%; }
  .footer-bottom { font-size: 12px; }
}

/* ── STARS ───────────────────────────────────────── */
.stars-amber {
  color: #F59E0B;
  letter-spacing: 1px;
  font-style: normal;
}

.rating-count {
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Compact stars on trainer cards */
.card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.card-rating .stars-amber { font-size: 12px; letter-spacing: .5px; }
.card-rating .card-rating-value { font-weight: 600; color: var(--text); }

/* ── REVIEWS SECTION ─────────────────────────────── */
.reviews-section {
  background: #fff;
  padding: 0 40px 64px;
}

.reviews-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 28px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.reviews-header .content-card-title { margin-bottom: 0; }

.reviews-sort {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
}

.sort-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.sort-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* ── CERTIFICATES ──────────────────────────────────── */
.certs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cert-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  width: 140px;
  cursor: pointer;
  transition: transform .15s;
}

.cert-thumb:hover { transform: translateY(-2px); }

.cert-thumb canvas {
  width: 140px;
  height: auto;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  display: block;
}

.cert-thumb-fallback {
  width: 140px;
  height: 180px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
}

.cert-thumb-label {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dashboard cert rows */
.cert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: #f7f7f7;
  margin-bottom: 8px;
}

.cert-delete-btn:hover { color: #e53e3e !important; }

/* ── REVIEWS ───────────────────────────────────────── */
.review-card {
  border: 1px solid var(--border);
  background: #f7f7f7;
  padding: 20px 24px;
  margin-bottom: 14px;
}

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

.review-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.review-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.review-card-stars-row {
  color: #F59E0B;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 10px;
}

.review-card-stars {
  color: #F59E0B;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}

.review-card-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.review-card-comment {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
}

.review-card-no-comment {
  font-size: 13px;
  color: #aaa;
  font-style: italic;
}

.reviews-empty {
  color: var(--text-muted);
  font-size: 15px;
  padding: 32px 0 8px;
}

/* ── REVIEW MODAL ────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #fff;
  width: 100%;
  max-width: 480px;
  padding: 36px 36px 32px;
  position: relative;
  box-shadow: 0 8px 48px rgba(0, 0, 0, .3);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 8px;
  transition: color .15s;
}

.modal-close:hover { color: var(--text); }

.modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.modal-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  display: block;
}

/* Star picker */
.star-picker {
  display: flex;
  gap: 2px;
  margin-bottom: 28px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 40px;
  cursor: pointer;
  color: #ddd;
  line-height: 1;
  padding: 0 3px;
  transition: color .1s, transform .1s;
}

.star-btn:hover,
.star-btn.lit { color: #F59E0B; }

.star-btn:hover { transform: scale(1.1); }

.modal-input {
  width: 100%;
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}

.modal-input:focus {
  border-color: var(--primary);
}

.modal-textarea {
  width: 100%;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color .2s;
  background: #fff;
}

.modal-textarea:focus { border-color: var(--primary); }
.modal-textarea::placeholder { color: #aaa; }

.modal-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
  margin-top: 20px;
}

.modal-submit:hover:not(:disabled) { background: var(--primary-dark); }
.modal-submit:disabled { opacity: .6; cursor: not-allowed; }

.modal-msg {
  display: none;
  padding: 11px 14px;
  font-size: 14px;
  margin-top: 14px;
}

.modal-msg.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.modal-msg.success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

@media (max-width: 700px) {
  .reviews-section   { padding: 0 12px 40px; }
  .modal-card        { padding: 28px 20px 24px; }
  .star-btn          { font-size: 34px; }
}
