/* ── RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #f8f9fa; color: #1a1a2e; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #c4960e; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.logo { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: #1a1a2e; }
.logo img { height: 32px; }
.logo span { color: #c4960e; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link { color: #6b7280; font-size: 14px; font-weight: 500; }
.nav-link:hover { color: #1a1a2e; text-decoration: none; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 8px; cursor: pointer; font-weight: 600;
  font-size: 14px; transition: all 0.15s;
}
.btn-primary { background: #F5C518; color: #000; padding: 10px 20px; font-weight: 700; }
.btn-primary:hover { background: #FFD84D; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-outline {
  background: transparent; border: 1px solid #d1d5db; color: #374151;
  padding: 8px 16px;
}
.btn-outline:hover { border-color: #F5C518; color: #F5C518; }
.btn-ghost { background: transparent; color: #F5C518; padding: 8px 16px; }
.btn-ghost:hover { background: rgba(245, 197, 24, 0.08); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px; text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}
/* Hero layout */
.hero-layout { display: flex; align-items: center; gap: 48px; text-align: left; }
.hero-text { flex: 1; }
.hero-illustration { flex-shrink: 0; }
@media (max-width: 768px) {
  .hero-layout { flex-direction: column; text-align: center; }
  .hero-illustration { display: none; }
}
.hero h1 { font-size: 48px; font-weight: 800; color: #1a1a2e; line-height: 1.15; margin-bottom: 16px; }
.hero-sub { font-size: 18px; color: #6b7280; max-width: 640px; margin: 0 0 40px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 32px; color: #1a1a2e; font-weight: 700; }
.hero-stat span { font-size: 13px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 24px; }
  .hero-stat strong { font-size: 24px; }
}

/* ── FILTERS ─────────────────────────────────────────────────── */
.filters-section { padding: 32px 0 16px; }
.filters-bar { display: flex; flex-direction: column; gap: 16px; }
.search-input {
  width: 100%; padding: 12px 16px; font-size: 15px;
  background: #fff; border: 1px solid #d1d5db; border-radius: 10px;
  color: #1a1a2e; outline: none; transition: border-color 0.15s;
}
.search-input:focus { border-color: #F5C518; }
.search-input::placeholder { color: #9ca3af; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: #fff; border: 1px solid #d1d5db; color: #6b7280;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.chip:hover { border-color: #9ca3af; color: #1a1a2e; }
.chip.active { background: #FFF8E1; border-color: #F5C518; color: #8B6914; }
.chip-divider { width: 1px; background: #d1d5db; margin: 0 4px; }
.results-count { font-size: 13px; color: #9ca3af; margin-top: 8px; }

/* ── PACKS ───────────────────────────────────────────────────── */
.packs-section { padding: 40px 0; }
.packs-section h2 { font-size: 24px; color: #1a1a2e; margin-bottom: 4px; }
.section-sub { color: #9ca3af; font-size: 14px; margin-bottom: 24px; }
.packs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .packs-grid { grid-template-columns: 1fr; } }
.pack-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 24px; transition: all 0.2s; cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.pack-card:hover { border-color: #F5C518; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(245,197,24,0.15); }
.pack-card .pack-badge {
  position: absolute; top: 12px; right: 12px;
  background: #1a4731; color: #3fb950; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
.pack-card h3 { font-size: 18px; color: #1a1a2e; margin-bottom: 6px; }
.pack-card .pack-desc { font-size: 13px; color: #6b7280; margin-bottom: 16px; line-height: 1.4; }
.pack-card .pack-price {
  font-size: 28px; font-weight: 700; color: #1a1a2e;
}
.pack-card .pack-price .original {
  font-size: 16px; color: #9ca3af; text-decoration: line-through; margin-left: 8px; font-weight: 400;
}
.pack-card .pack-count { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.pack-popular { border-color: #F5C518; box-shadow: 0 4px 16px rgba(245,197,24,0.15); }
.pack-buy-btn {
  display: block; width: 100%; margin-top: 16px; padding: 12px;
  background: #F5C518; color: #000; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.15s;
}
.pack-buy-btn:hover { background: #FFD84D; }

/* ── HOW IT WORKS ────────────────────────────────────────────── */
.how-it-works { padding: 56px 0; background: #fff; }
.how-it-works h2 { font-size: 28px; color: #1a1a2e; text-align: center; margin-bottom: 4px; }
.hiw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 768px) { .hiw-grid { grid-template-columns: 1fr; gap: 16px; } }
.hiw-step {
  text-align: center; background: #FFFEF5; border: 1px solid #F5C51840; border-radius: 16px;
  padding: 28px 24px; position: relative;
}
.hiw-step:hover { border-color: #F5C518; box-shadow: 0 4px 16px rgba(245,197,24,0.1); }
.hiw-num {
  width: 44px; height: 44px; border-radius: 50%; background: #F5C518; color: #000;
  font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.hiw-illustration { height: 100px; margin-bottom: 12px; object-fit: contain; }
.hiw-step h3 { font-size: 18px; color: #1a1a2e; margin-bottom: 8px; }
.hiw-step p { font-size: 13px; color: #6b7280; line-height: 1.6; }

/* ── FEATURES GRID ───────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
.feature-item {
  text-align: left; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 20px; transition: border-color 0.15s;
}
.feature-item:hover { border-color: #F5C518; }
.feature-icon { margin-bottom: 10px; width: 44px; height: 44px; background: #FFF8E1; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.feature-item h3 { font-size: 15px; color: #1a1a2e; margin-bottom: 4px; }
.feature-item p { font-size: 13px; color: #6b7280; line-height: 1.5; }

/* ── FEATURED TESTERS ────────────────────────────────────────── */
.featured-testers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 768px) { .featured-testers { grid-template-columns: repeat(2, 1fr); } }
.featured-tester {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 16px; text-align: center; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.featured-tester:hover { border-color: #F5C518; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(245,197,24,0.12); }
.featured-tester img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; border: 2px solid #e5e7eb; }
.featured-tester .ft-name { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.featured-tester .ft-title { font-size: 11px; color: #6b7280; margin-bottom: 4px; }
.featured-tester .ft-meta { font-size: 11px; color: #9ca3af; }

/* ── SECTION HEADINGS ────────────────────────────────────────── */
h2 { text-align: center; }
.section-sub { text-align: center; }

/* ── TEST TYPES ──────────────────────────────────────────────── */
.test-types-section { padding: 40px 0; }
.test-type-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 20px; text-align: center; transition: all 0.2s; display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.test-type-card:hover { border-color: #F5C518; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(245,197,24,0.12); text-decoration: none; }
.test-type-card h3 { font-size: 16px; color: #1a1a2e; margin-bottom: 6px; }
.test-type-card p { font-size: 12px; color: #6b7280; line-height: 1.4; }

/* ── TESTER GRID ─────────────────────────────────────────────── */
.testers-section { padding: 16px 0 80px; }
.testers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.tester-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 20px; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tester-card:hover { border-color: #F5C518; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,197,24,0.12); }

.tester-card .card-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.tester-card .avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid #e5e7eb; flex-shrink: 0;
}
.tester-card .card-info { flex: 1; min-width: 0; }
.tester-card .card-name { font-size: 15px; font-weight: 600; color: #1a1a2e; margin-bottom: 2px; }
.tester-card .card-title { font-size: 12px; color: #6b7280; line-height: 1.3; }
.tester-card .card-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
  font-size: 12px; color: #9ca3af;
}
.tester-card .rating { color: #f5a623; font-weight: 600; }
.tester-card .device-badge {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 500; background: #f3f4f6; color: #6b7280;
}
.tester-card .specialties {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px;
}
.tester-card .spec-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: #f3f4f6; color: #6b7280;
}
.tester-card .card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid #e5e7eb;
}
.tester-card .price { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.tester-card .price span { font-size: 12px; color: #9ca3af; font-weight: 400; }
.tester-card .hire-btn {
  padding: 6px 16px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: #F5C518; color: #000; border: none; cursor: pointer;
  transition: background 0.15s;
}
.tester-card .hire-btn:hover { background: #FFD84D; }

.no-results { text-align: center; padding: 60px 0; color: #9ca3af; }

/* ── MODAL ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: #9ca3af; font-size: 24px;
  cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.modal-close:hover { background: #f3f4f6; color: #1a1a2e; }
.modal-content { padding: 32px; }

/* Modal: profile header */
.profile-header { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.profile-header .avatar-lg { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #e5e7eb; }
.profile-header .profile-info { flex: 1; }
.profile-header .profile-name { font-size: 22px; font-weight: 700; color: #1a1a2e; }
.profile-header .profile-title { font-size: 14px; color: #6b7280; }
.profile-header .profile-location { font-size: 13px; color: #9ca3af; margin-top: 2px; }

/* Modal: stats */
.profile-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.profile-stat {
  background: #f3f4f6; border-radius: 10px; padding: 12px; text-align: center;
}
.profile-stat .stat-val { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.profile-stat .stat-lbl { font-size: 11px; color: #9ca3af; text-transform: uppercase; }

/* Modal: sections */
.profile-section { margin-bottom: 24px; }
.profile-section h3 { font-size: 14px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.profile-bio { font-size: 15px; color: #374151; line-height: 1.6; }
.profile-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-spec {
  padding: 4px 12px; border-radius: 8px; font-size: 13px;
  background: #FFF8E1; color: #8B6914; font-weight: 500; border: 1px solid #F5C518;
}

/* Modal: device info */
.profile-device {
  display: flex; gap: 16px; align-items: center;
  background: #f3f4f6; border-radius: 10px; padding: 14px 16px;
}
.profile-device .device-icon { font-size: 28px; }
.profile-device .device-details { flex: 1; }
.profile-device .device-type { font-size: 14px; font-weight: 600; color: #1a1a2e; text-transform: capitalize; }
.profile-device .device-viewport { font-size: 12px; color: #9ca3af; }
.profile-device .device-style {
  display: inline-block; padding: 2px 10px; border-radius: 10px;
  font-size: 12px; background: #f3f4f6; color: #6b7280; text-transform: capitalize;
}

/* Modal: reviews */
.review {
  background: #f3f4f6; border-radius: 10px; padding: 16px; margin-bottom: 10px;
}
.review-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.review-author { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.review-company { font-size: 12px; color: #9ca3af; }
.review-stars { color: #f5a623; font-size: 13px; }
.review-text { font-size: 14px; color: #374151; line-height: 1.5; }
.review-date { font-size: 11px; color: #9ca3af; margin-top: 6px; }

/* Modal: CTA */
.profile-cta {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid #e5e7eb;
}
.profile-price { font-size: 24px; font-weight: 700; color: #1a1a2e; }
.profile-price span { font-size: 14px; color: #9ca3af; font-weight: 400; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid #e5e7eb; padding: 24px 0; text-align: center;
  font-size: 13px; color: #9ca3af;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .testers-grid { grid-template-columns: 1fr; }
  .packs-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-cta { flex-direction: column; text-align: center; }
  .hero { padding: 48px 0 40px; }
}

/* ── STAR HELPER ─────────────────────────────────────────────── */
.stars { color: #f5a623; font-size: 13px; letter-spacing: 1px; }

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0e17; }
::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d1d5db; }
