/* ============ NAV ============ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-decoration: none;
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: 0.2s;
}

/* Push body content below fixed nav */
body { padding-top: 64px; }

/* Landing page: remove padding-top so hero fills screen */
.hero { margin-top: -64px; padding-top: calc(80px + 64px); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  padding: 12px 24px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #e55a28;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.2);
}

.btn-sm { font-size: 13px; padding: 8px 18px; }
.btn-lg { font-size: 17px; padding: 16px 32px; }
.btn-block { width: 100%; }

/* ============ MARKETPLACE ============ */
.marketplace-hero {
  background: var(--bg);
  padding: 80px 8% 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.marketplace-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.marketplace-hero-inner { max-width: 700px; position: relative; }
.marketplace-hero-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 20px 0 16px;
}

.marketplace-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 200px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4%;
  gap: 0;
}

/* ============ FILTERS SIDEBAR ============ */
.filters-sidebar {
  padding: 32px 0 32px;
  border-right: 1px solid var(--border);
  padding-right: 28px;
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.filter-group { margin-bottom: 32px; }

.filter-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.filter-options { display: flex; flex-direction: column; gap: 2px; }

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--fg-muted);
  transition: all 0.15s;
  position: relative;
}
.filter-option input { display: none; }
.filter-option:hover { background: var(--bg-elevated); color: var(--fg); }
.filter-option.active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }

.filter-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--bg-elevated);
  padding: 2px 7px;
  border-radius: 100px;
}

/* ============ CREATOR GRID ============ */
.creators-main { padding: 32px 0 32px 28px; }

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.results-count {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.creator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.creator-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.creator-card-samples {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.creator-sample-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.creator-card:hover .creator-sample-img { transform: scale(1.04); }

.creator-sample-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sample-initial {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
}

.creator-card-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.niche-pill {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: var(--fg);
}

.creator-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.creator-card-header { display: flex; align-items: center; gap: 12px; }

.creator-avatar-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
}
.creator-avatar-ring img { width: 100%; height: 100%; object-fit: cover; }

.creator-avatar-initial {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
}

.creator-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.creator-handle { font-size: 13px; color: var(--fg-muted); }

.creator-bio { font-size: 14px; color: var(--fg-muted); line-height: 1.5; flex: 1; }

.creator-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.creator-location { font-size: 13px; color: var(--fg-muted); }
.creator-price { font-size: 14px; font-weight: 700; color: var(--accent); }

.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--fg-muted);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); font-size: 22px; color: var(--fg); margin-bottom: 8px; }
.empty-state a { color: var(--accent); }

/* ============ CREATOR PROFILE ============ */
.profile-shell { max-width: 1100px; margin: 0 auto; padding: 0 5% 80px; }

.profile-header {
  position: relative;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}

.profile-header-bg { position: absolute; inset: 0; }
.profile-bg-img { width: 100%; height: 100%; object-fit: cover; }
.profile-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.4) 60%, transparent 100%);
}

.profile-header-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  gap: 28px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-initial {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
}

.profile-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.profile-handle { font-size: 15px; color: var(--fg-muted); margin-bottom: 12px; }

.profile-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.profile-meta-item { font-size: 14px; color: var(--fg-muted); }

.profile-socials { display: flex; gap: 14px; flex-wrap: wrap; }
.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.social-link:hover { color: var(--accent); }

.profile-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.profile-section { margin-bottom: 48px; }

.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.profile-bio-text { color: var(--fg-muted); font-size: 17px; line-height: 1.7; }

.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.sample-item {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.sample-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.sample-item:hover img { transform: scale(1.05); }
.sample-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s;
}
.sample-item:hover .sample-play-icon { opacity: 1; }

.packages-sticky { position: sticky; top: 80px; }

.packages-list { display: flex; flex-direction: column; gap: 16px; }

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}
.package-card:hover { border-color: rgba(255, 107, 53, 0.3); }

.package-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.package-type-badge.single { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(255,107,53,0.25); }
.package-type-badge.retainer { background: rgba(255, 210, 63, 0.1); color: var(--accent-secondary); border: 1px solid rgba(255,210,63,0.25); }

.package-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.package-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.5; margin-bottom: 12px; }

.package-deliverables {
  font-size: 13px;
  color: var(--fg-muted);
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-radius: 8px;
  margin-bottom: 16px;
  font-style: italic;
}

.package-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.package-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.price-period { font-size: 15px; font-weight: 500; color: var(--fg-muted); }
.package-turnaround { font-size: 13px; color: var(--fg-muted); }

/* ============ BOOKING FORM ============ */
.booking-shell { padding: 60px 5% 80px; }

.booking-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}

.back-link { display: inline-block; font-size: 14px; color: var(--fg-muted); text-decoration: none; margin-bottom: 24px; transition: color 0.2s; }
.back-link:hover { color: var(--accent); }

.booking-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.booking-subtitle { color: var(--fg-muted); font-size: 17px; margin-bottom: 32px; }

.booking-form { display: flex; flex-direction: column; gap: 24px; }

.booking-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 80px;
}

.summary-creator { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.summary-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.summary-avatar img { width: 100%; height: 100%; object-fit: cover; }
.summary-creator-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.summary-creator-handle { font-size: 13px; color: var(--fg-muted); }
.summary-divider { height: 1px; background: var(--border); margin: 20px 0; }
.summary-package-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 8px 0; }
.summary-package-desc { font-size: 14px; color: var(--fg-muted); margin-bottom: 12px; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: 15px;
}
.summary-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.summary-turnaround { font-size: 13px; color: var(--fg-muted); margin-top: 6px; }

/* ============ FORMS ============ */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.label-hint { font-size: 12px; font-weight: 400; color: var(--fg-muted); }

.form-input, .form-textarea, .form-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  outline: none;
  appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--fg-muted); opacity: 0.6; }
.form-textarea { resize: vertical; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a39e97' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }

.input-with-prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-elevated); transition: border-color 0.2s, box-shadow 0.2s; }
.input-with-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15); }
.input-prefix { padding: 12px 14px; font-size: 15px; color: var(--fg-muted); background: var(--bg-card); border-right: 1px solid var(--border); flex-shrink: 0; }
.input-with-prefix .form-input { border: none; border-radius: 0; box-shadow: none; }

.form-error-banner {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: #f87171;
}

.payment-note {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
  margin-top: -8px;
}

/* ============ CHECKBOX GRID ============ */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--fg-muted);
  transition: all 0.15s;
}
.checkbox-option:hover { border-color: rgba(255,107,53,0.3); color: var(--fg); }
.checkbox-option input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
.checkbox-option:has(input:checked) { border-color: rgba(255,107,53,0.4); color: var(--fg); background: var(--accent-glow); }

/* ============ SUCCESS PAGE ============ */
.success-shell {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 5%;
}

.success-inner {
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.success-icon { font-size: 56px; margin-bottom: 24px; }

.success-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.success-message { font-size: 17px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 36px; }

.success-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  margin-bottom: 36px;
}

.success-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.success-detail-row:last-child { border-bottom: none; }
.success-detail-row span:first-child { color: var(--fg-muted); flex-shrink: 0; }
.success-detail-row span:last-child { text-align: right; font-weight: 500; }

.status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.status-badge.paid { background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.status-badge.pending { background: rgba(245,158,11,0.1); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }

.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ APPLY PAGE ============ */
.apply-shell { padding: 60px 5% 80px; }
.apply-inner { max-width: 700px; margin: 0 auto; }
.apply-header { margin-bottom: 48px; }
.apply-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 20px 0 16px;
}
.apply-form { display: flex; flex-direction: column; gap: 24px; }

.apply-success { text-align: center; padding: 80px 0; }
.apply-success h1 { font-family: var(--font-display); font-size: 40px; font-weight: 800; margin-bottom: 16px; }
.apply-success p { font-size: 17px; color: var(--fg-muted); }
.apply-success a { color: var(--accent); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .marketplace-shell { grid-template-columns: 1fr; }
  .filters-sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    max-height: none;
  }
  .creators-main { padding-left: 0; }
  .profile-content { grid-template-columns: 1fr; }
  .packages-sticky { position: static; }
  .booking-inner { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .creator-grid { grid-template-columns: 1fr 1fr; }
  .marketplace-hero { padding: 60px 6% 40px; }
  .profile-header { height: 240px; }
  .profile-header-inner { padding: 24px; }
  .profile-avatar { width: 72px; height: 72px; }
  .success-actions { flex-direction: column; }
}

@media (max-width: 420px) {
  .creator-grid { grid-template-columns: 1fr; }
}
