/* public/css/coaches.css
   Styles for /coaches directory and /coaches/:slug profile pages.
   Follows the Spotlight dark-first design system. */

/* =============================
   Directory page layout
   ============================= */

.coaches-page {
  padding-bottom: 3rem;
}

.coaches-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.coaches-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.coaches-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.coaches-subtitle {
  margin: 0.5rem 0 0;
  color: #9ca3af;
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================
   Filters
   ============================= */

.coaches-filters {
  margin-bottom: 1.25rem;
}

.coaches-filter-form {
  background: #0f0f14;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 16px;
}

.coaches-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.coaches-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 180px;
}

.coaches-filter-group label {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 500;
}

.coaches-input,
.coaches-select {
  background: #050816;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 8px 12px;
  color: #f9fafb;
  font-size: 0.9rem;
}

.coaches-input::placeholder {
  color: #6b7280;
}

.coaches-input:focus,
.coaches-select:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.coaches-filter-actions {
  display: flex;
  gap: 8px;
  flex-direction: row;
  align-items: flex-end;
  flex: 0 0 auto;
}

.coaches-filter-btn {
  padding: 8px 16px;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Results count */
.coaches-results-meta {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

/* =============================
   Coach cards grid
   ============================= */

.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

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

.coaches-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
}

/* =============================
   Individual coach card
   ============================= */

.coach-card {
  background: #0f0f14;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.coach-card:hover {
  border-color: #2a2a2a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Featured card highlight */
.coach-card--featured {
  border-color: rgba(14, 165, 233, 0.35);
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.04) 0%, #0f0f14 100%);
}

.coach-card--featured:hover {
  border-color: rgba(14, 165, 233, 0.55);
}

.coach-featured-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #051018;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.coach-verified-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Photo */
.coach-card-photo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.coach-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.4rem;
  font-weight: 700;
  color: #9ca3af;
  background: #111827;
}

/* Card body text */
.coach-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coach-card-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.coach-card-name a {
  color: #f9fafb;
  text-decoration: none;
}

.coach-card-name a:hover {
  color: #38bdf8;
}

.coach-card-headline {
  margin: 0;
  color: #d1d5db;
  font-size: 0.88rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coach-card-location {
  font-size: 0.82rem;
  color: #9ca3af;
}

/* Tags (offering types) */
.coach-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.coach-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 500;
}

/* Specialties */
.coach-card-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.coach-specialty {
  padding: 2px 8px;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid #1f2937;
  color: #d1d5db;
  font-size: 0.72rem;
}

.coach-specialty--more {
  color: #9ca3af;
}

/* Rate */
.coach-card-rate {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.coach-rate {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f9fafb;
}

.coach-rate--package {
  font-weight: 400;
  color: #9ca3af;
  font-size: 0.82rem;
}

.coach-card-remote {
  font-size: 0.78rem;
  color: #22c55e;
}

/* Card actions */
.coach-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.coach-btn {
  font-size: 0.85rem;
  padding: 7px 14px;
}

/* Save button states */
.coach-save-btn--saved {
  border-color: #0ea5e9;
  color: #38bdf8;
}

/* =============================
   Pagination
   ============================= */

.coaches-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 2rem 0;
}

.coaches-page-info {
  font-size: 0.88rem;
  color: #9ca3af;
}

.coaches-page-btn {
  font-size: 0.85rem;
}

/* =============================
   Advertise CTA section
   ============================= */

.coaches-advertise {
  margin-top: 2.5rem;
  padding: 2rem 0;
}

.coaches-advertise-inner {
  background: #0f0f14;
  border: 1px solid #1f1f1f;
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
}

.coaches-advertise-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.coaches-advertise-text {
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

/* Tier comparison cards */
.coaches-advertise-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

@media (max-width: 600px) {
  .coaches-advertise-tiers {
    grid-template-columns: 1fr;
  }
}

.coaches-tier-card {
  background: #050816;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 1.25rem;
  text-align: left;
  position: relative;
}

.coaches-tier-card--featured {
  border-color: rgba(14, 165, 233, 0.4);
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.06) 0%, #050816 100%);
}

.coaches-tier-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #051018;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.coaches-tier-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.coaches-tier-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.75rem;
}

.coaches-tier-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.6;
}

.coaches-advertise-actions {
  margin-top: 0.5rem;
}

/* =============================
   Individual coach profile page
   ============================= */

.coach-profile-page {
  padding-bottom: 3rem;
}

.coach-profile-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.coach-profile-back {
  padding: 1rem 0;
}

/* Banner */
.coach-profile-banner {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  max-height: 220px;
}

.coach-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profile header */
.coach-profile-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .coach-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.coach-profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.coach-profile-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-profile-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.2rem;
  font-weight: 700;
  color: #9ca3af;
  background: #111827;
}

.coach-profile-info {
  flex: 1;
}

.coach-profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.coach-profile-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.coach-profile-headline {
  margin: 0.25rem 0 0;
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.4;
}

.coach-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.coach-profile-meta-item::before {
  content: "";
}

.coach-profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 0.75rem;
}

/* Two-column body */
.coach-profile-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 800px) {
  .coach-profile-body {
    grid-template-columns: 1fr;
  }
}

.coach-profile-section {
  margin-bottom: 1.5rem;
}

.coach-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #1f1f1f;
}

/* Bio */
.coach-bio {
  color: #d1d5db;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Offerings grid */
.coach-offerings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 500px) {
  .coach-offerings-grid {
    grid-template-columns: 1fr;
  }
}

.coach-offering-item {
  padding: 8px 14px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #d1d5db;
}

/* Specialties list */
.coach-specialties-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Reel */
.coach-reel-wrap {
  border-radius: 14px;
  overflow: hidden;
}

.coach-reel-video {
  display: block;
  width: 100%;
  border-radius: 14px;
}

/* Services list */
.coach-services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coach-service-card {
  background: #050816;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
}

.coach-service-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.coach-service-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.coach-service-price {
  font-weight: 700;
  color: #38bdf8;
  font-size: 1rem;
  white-space: nowrap;
}

.coach-service-desc {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.4;
}

.coach-service-meta {
  display: flex;
  gap: 10px;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.coach-service-delivery {
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  font-size: 0.72rem;
}

/* Rates card */
.coach-rates-card {
  background: #050816;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
}

.coach-rate-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.coach-rate-row + .coach-rate-row {
  border-top: 1px solid #1e293b;
}

.coach-rate-label {
  color: #9ca3af;
  font-size: 0.88rem;
}

.coach-rate-value {
  font-weight: 700;
  font-size: 1rem;
}

.coach-rate-contact {
  color: #9ca3af;
  font-size: 0.88rem;
  margin: 0;
}

/* Links list */
.coach-links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coach-link-item {
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.9rem;
}

.coach-link-item:hover {
  text-decoration: underline;
}

/* =============================
   Dashboard saved coaches tab
   ============================= */

.db-saved-coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.db-saved-coach-card {
  background: #050816;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-saved-coach-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.db-saved-coach-photo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.db-saved-coach-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-saved-coach-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.1rem;
  font-weight: 700;
  color: #9ca3af;
  background: #111827;
}

.db-saved-coach-info {
  flex: 1;
}

.db-saved-coach-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.db-saved-coach-name a {
  color: #f9fafb;
  text-decoration: none;
}

.db-saved-coach-name a:hover {
  color: #38bdf8;
}

.db-saved-coach-headline {
  font-size: 0.82rem;
  color: #9ca3af;
  margin: 2px 0 0;
}

.db-saved-coach-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.db-saved-coach-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.db-saved-coach-actions .btn {
  font-size: 0.8rem;
  padding: 5px 10px;
}

/* Empty state for saved coaches */
.db-coaches-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #9ca3af;
}

.db-coaches-empty a {
  color: #38bdf8;
}

/* =============================
   Home page coaching teaser
   ============================= */

.home-coaches-teaser {
  margin-top: 1.5rem;
}

.home-coaches-inner {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.06) 0%, #0f0f14 100%);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 700px) {
  .home-coaches-inner {
    flex-direction: column;
    text-align: center;
  }
}

.home-coaches-copy {
  flex: 1;
}

.home-coaches-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.home-coaches-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.home-coaches-text {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.home-coaches-cta {
  flex-shrink: 0;
}

/* =============================
   Light mode overrides
   ============================= */

html[data-theme="light"] .coach-card {
  background: #fff;
  border-color: #e5e7eb;
}

html[data-theme="light"] .coach-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .coach-card--featured {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.04) 0%, #fff 100%);
}

html[data-theme="light"] .coaches-filter-form {
  background: #fff;
  border-color: #e5e7eb;
}

html[data-theme="light"] .coaches-input,
html[data-theme="light"] .coaches-select {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #111827;
}

html[data-theme="light"] .coach-card-name a {
  color: #111827;
}

html[data-theme="light"] .coach-photo-placeholder,
html[data-theme="light"] .coach-profile-photo-placeholder,
html[data-theme="light"] .db-saved-coach-photo-placeholder {
  background: #f3f4f6;
  color: #6b7280;
}

html[data-theme="light"] .coach-offering-item,
html[data-theme="light"] .coach-service-card,
html[data-theme="light"] .coach-rates-card,
html[data-theme="light"] .db-saved-coach-card {
  background: #f9fafb;
  border-color: #e5e7eb;
}

html[data-theme="light"] .coaches-advertise-inner {
  background: #fff;
  border-color: #e5e7eb;
}

html[data-theme="light"] .coaches-tier-card {
  background: #f9fafb;
  border-color: #e5e7eb;
}

html[data-theme="light"] .home-coaches-inner {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.04) 0%, #fff 100%);
  border-color: rgba(14, 165, 233, 0.15);
}

/* =============================
   Endorsement badges
   ============================= */

/* Small badge — shown on cards and inline in profile name row */
.coach-endorsements {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.coach-endorsement-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: #7c3aed;           /* default purple — overridden per org via inline style */
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: default;
  line-height: 1.6;
  white-space: nowrap;
}

/* Slightly larger version for the profile page header */
.coach-endorsement-badge--lg {
  font-size: 0.72rem;
  padding: 2px 10px;
}

/* Row of large badges on the profile page, with a label */
.coach-profile-endorsements {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.coach-endorsements-label {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-left: 2px;
}

/* =============================
   Free consult section (profile page)
   ============================= */

.coach-consult-section {
  margin-bottom: 1.25rem;
}

.coach-consult-card {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coach-consult-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #22c55e;
}

.coach-consult-desc {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.4;
}

/* =============================
   Card indicators row (remote + free consult)
   ============================= */

.coach-card-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.coach-indicator {
  font-size: 0.78rem;
  color: #22c55e;
}

.coach-indicator--consult {
  color: #a78bfa;   /* soft purple to visually distinguish from "remote" */
}

/* =============================
   Pricing tier refinements
   ============================= */

/* 3-column tier grid for the updated advertise section */
.coaches-advertise-tiers {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 860px;
}

@media (max-width: 720px) {
  .coaches-advertise-tiers {
    grid-template-columns: 1fr;
  }
}

/* Annual cycle label (small, de-emphasised) */
.coaches-tier-cycle {
  font-size: 1rem;
  font-weight: 400;
  color: #9ca3af;
}

/* Monthly equivalent note under the annual price */
.coaches-tier-monthly {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
}

/* =============================
   Light mode — new additions
   ============================= */

html[data-theme="light"] .coach-consult-card {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.2);
}

html[data-theme="light"] .coach-endorsements-label {
  color: #6b7280;
}

html[data-theme="light"] .coaches-tier-monthly {
  color: #9ca3af;
}

/* =============================================================
   Coach profile EDIT page
   ============================================================= */

.coach-edit-page {
  padding: 2.5rem 0 5rem;
  min-height: 70vh;
}

.coach-edit-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Page header ── */
.coach-edit-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1e2a3a;
}

.coach-edit-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #f1f5f9;
}

.coach-edit-sub {
  color: #64748b;
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.coach-edit-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #4f87f5;
  text-decoration: none;
  font-weight: 500;
}
.coach-edit-preview-link:hover { text-decoration: underline; }

/* ── Alert banners ── */
.coach-edit-alert {
  padding: 13px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 500;
}
.coach-edit-alert--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}
.coach-edit-alert--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* ── Section cards ── */
.coach-edit-section {
  background: #0d1520;
  border: 1px solid #1e2d3d;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.coach-edit-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4f87f5;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.coach-edit-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #1e2d3d;
}

/* ── Form fields ── */
.coach-edit-input,
.coach-edit-textarea {
  width: 100%;
  background: #070e1a;
  border: 1px solid #1e2d3d;
  border-radius: 10px;
  padding: 11px 14px;
  color: #e2e8f0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.coach-edit-input::placeholder,
.coach-edit-textarea::placeholder { color: #334155; }
.coach-edit-input:focus,
.coach-edit-textarea:focus {
  border-color: #4f87f5;
  box-shadow: 0 0 0 3px rgba(79, 135, 245, 0.12);
}
.coach-edit-textarea {
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
  min-height: 110px;
}

.coach-edit-hint {
  font-size: 0.78rem;
  color: #475569;
  margin-top: 7px;
  line-height: 1.45;
}

/* ── Labels ── */
.coach-edit-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 2px;
  display: block;
}

/* ── Headshot ── */
.coach-edit-photo-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.coach-edit-photo-preview {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #111d2e;
  border: 2px solid #1e2d3d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coach-edit-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coach-edit-photo-placeholder {
  font-size: 2.5rem;
  font-weight: 700;
  color: #334155;
}

.coach-edit-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coach-edit-photo-hint {
  font-size: 0.76rem;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

/* ── Location row ── */
.coach-edit-location-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.coach-edit-location-field {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Services editor ── */
.coach-services-editor {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.coach-service-row {
  border-bottom: 1px solid #1a2535;
  padding: 14px 4px;
}
.coach-service-row:last-child { border-bottom: none; }
.coach-service-row:first-child { padding-top: 4px; }

.coach-service-row-top {
  display: flex;
  align-items: center;
}

.coach-service-check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  user-select: none;
  width: 100%;
}
.coach-service-check-label:hover { color: #f1f5f9; }
.coach-service-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4f87f5;
  cursor: pointer;
  flex-shrink: 0;
}

.coach-service-row-pricing {
  margin-top: 12px;
  padding: 14px 16px;
  background: #070e1a;
  border: 1px solid #1a2535;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.coach-service-row-pricing.hidden { display: none !important; }

.coach-service-price-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.coach-service-price-label {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
  font-weight: 500;
}
.coach-edit-price-input {
  width: 110px;
  background: #0d1520;
  border: 1px solid #1e2d3d;
  border-radius: 8px;
  padding: 7px 10px;
  color: #e2e8f0;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}
.coach-edit-price-input::placeholder { color: #334155; }
.coach-edit-price-input:focus {
  border-color: #4f87f5;
  box-shadow: 0 0 0 2px rgba(79, 135, 245, 0.1);
}

.coach-service-showprice-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
}
.coach-service-showprice-label input[type="checkbox"] {
  accent-color: #4f87f5;
}

/* ── Submit row ── */
.coach-edit-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding-top: 4px;
}

/* ── Service price contact label (show page) ── */
.coach-service-price-contact {
  font-size: 0.82rem;
  color: #6b7280;
  font-style: italic;
}

/* ── Profile page: owner edit/back bar ── */
.coach-edit-btn-bar {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Setup banner on show page (new coach, empty profile) ── */
.coach-setup-banner {
  background: #0a1628;
  border: 1px dashed #2a4a6a;
  border-radius: 14px;
  margin-bottom: 24px;
  padding: 22px 24px;
}
.coach-setup-banner-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.coach-setup-banner-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}
.coach-setup-banner-inner > div {
  flex: 1;
  min-width: 200px;
}
.coach-setup-banner-inner strong {
  font-size: 1rem;
  color: #e2e8f0;
}
.coach-setup-banner-inner p {
  margin: 5px 0 0;
  font-size: 0.87rem;
  color: #64748b;
  line-height: 1.45;
}

/* ── Light-mode overrides: edit page ── */
html[data-theme="light"] .coach-edit-header {
  border-color: #e2e8f0;
}
html[data-theme="light"] .coach-edit-title { color: #0f172a; }
html[data-theme="light"] .coach-edit-sub   { color: #94a3b8; }

html[data-theme="light"] .coach-edit-section {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .coach-edit-section-title { color: #3b6cf5; }
html[data-theme="light"] .coach-edit-section-title::after { background: #e2e8f0; }

html[data-theme="light"] .coach-edit-input,
html[data-theme="light"] .coach-edit-textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
html[data-theme="light"] .coach-edit-input::placeholder,
html[data-theme="light"] .coach-edit-textarea::placeholder { color: #94a3b8; }
html[data-theme="light"] .coach-edit-input:focus,
html[data-theme="light"] .coach-edit-textarea:focus {
  border-color: #3b6cf5;
  box-shadow: 0 0 0 3px rgba(59, 108, 245, 0.1);
}

html[data-theme="light"] .coach-edit-label { color: #475569; }
html[data-theme="light"] .coach-edit-hint  { color: #94a3b8; }

html[data-theme="light"] .coach-edit-photo-preview {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html[data-theme="light"] .coach-edit-photo-placeholder { color: #94a3b8; }

html[data-theme="light"] .coach-service-row { border-color: #e2e8f0; }
html[data-theme="light"] .coach-service-check-label { color: #334155; }
html[data-theme="light"] .coach-service-check-label:hover { color: #0f172a; }

html[data-theme="light"] .coach-service-row-pricing {
  background: #f8fafc;
  border-color: #e2e8f0;
}
html[data-theme="light"] .coach-edit-price-input {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .coach-edit-alert--success { color: #16a34a; }
html[data-theme="light"] .coach-edit-alert--error   { color: #dc2626; }

html[data-theme="light"] .coach-setup-banner {
  background: #f0f7ff;
  border-color: #93c5fd;
}
html[data-theme="light"] .coach-setup-banner-inner strong { color: #0f172a; }
html[data-theme="light"] .coach-setup-banner-inner p { color: #64748b; }
