/* ============================================================
   trainer-public-profile.css — /trainers/{slug}
   Base rules are the approved mockup's, unchanged; the ADDITIONS block
   at the end holds everything new (modals, lightbox, states).
   ============================================================ */
/* ================= 3. HERO MASTER CARD ================= */
.hero-master-card {
  position: relative; background: #0b1329; border-radius: var(--radius-lg);
  overflow: hidden; margin: 6px 0 14px; color: #fff; box-shadow: var(--shadow-card);
  width: 100%; max-width: 100%; min-width: 0;
}
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,19,41,0.85) 0%, rgba(11,19,41,0.98) 100%);
}
@media (min-width: 768px) {
  .hero-bg-overlay {
    background: linear-gradient(90deg, rgba(11,19,41,0.98) 0%, rgba(11,19,41,0.88) 52%, rgba(11,19,41,0.35) 100%);
  }
}
.hero-bg-img {
  position: absolute; right: 0; top: 0; bottom: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.3; z-index: 0;
}
@media (min-width: 768px) { .hero-bg-img { width: 60%; opacity: 0.45; } }

.hero-content-grid {
  position: relative; z-index: 2; padding: 16px;
  display: flex; flex-direction: column; gap: 14px; width: 100%; min-width: 0;
}
@media (min-width: 768px) {
  .hero-content-grid {
    display: grid; grid-template-columns: 135px minmax(0, 1fr);
    padding: 24px 28px; gap: 24px; align-items: center;
  }
}

.hero-avatar-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; width: 100%; }
@media (min-width: 768px) { .hero-avatar-wrap { display: block; width: auto; } }

.hero-avatar-box {
  width: 80px; height: 90px; border-radius: var(--radius-md);
  overflow: hidden; border: 2.5px solid rgba(255,255,255,0.25);
  flex-shrink: 0; background: #1e293b; position: relative;
}
@media (min-width: 768px) { .hero-avatar-box { width: 135px; height: 150px; } }
.hero-avatar-box img { width: 100%; height: 100%; object-fit: cover; }

.hero-flag-badge {
  position: absolute; bottom: 4px; right: 4px; background: #fff;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25); overflow: hidden;
}
.hero-flag-badge img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (min-width: 768px) { .hero-flag-badge { width: 28px; height: 28px; bottom: 6px; right: 6px; } }

.hero-mobile-title { min-width: 0; flex: 1; overflow: hidden; }
@media (min-width: 768px) { .hero-mobile-title { display: none; } }

.hero-info-col { min-width: 0; width: 100%; }
.hero-desktop-title { display: none; }
@media (min-width: 768px) { .hero-desktop-title { display: block; } }

.hero-name {
  font-size: clamp(1.2rem, 3.2vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-name i { color: #38bdf8; font-size: 1.05em; flex-shrink: 0; }

.hero-role-line {
  font-size: 0.8rem; color: #93c5fd; font-weight: 600; margin: 2px 0 6px; line-height: 1.35;
}
@media (min-width: 768px) { .hero-role-line { font-size: 0.88rem; margin: 4px 0 8px; } }

.hero-tagline-p {
  font-size: 0.78rem; color: #cbd5e1; line-height: 1.45; margin-bottom: 12px;
}
@media (min-width: 768px) { .hero-tagline-p { font-size: 0.82rem; margin-bottom: 16px; max-width: 720px; } }

/* 4 Stats in Hero */
.hero-stats-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md); padding: 10px 8px; text-align: center;
  margin-bottom: 12px; width: 100%; min-width: 0;
}
@media (min-width: 480px) { .hero-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .hero-stats-grid {
    display: flex; align-items: center; gap: 30px; background: none; border: none; padding: 0; text-align: left;
  }
}
.hero-stat-cell { min-width: 0; }
.hero-stat-cell strong {
  display: block; font-size: 1.05rem; font-weight: 800; color: #ffffff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 768px) { .hero-stat-cell strong { font-size: 1.25rem; } }
.hero-stat-cell.rating strong { color: #fbbf24; }
.hero-stat-cell span {
  font-size: 0.7rem; color: #94a3b8; font-weight: 600; display: block; line-height: 1.2;
}
@media (min-width: 768px) { .hero-stat-cell span { font-size: 0.72rem; } }

.hero-skills-row { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; min-width: 0; }
.hero-skill-chip {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; color: #e2e8f0; white-space: nowrap;
}

/* ================= 4. QUICK CONTACT BAR ================= */
.quick-info-bar {
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 14px; margin-bottom: 14px; box-shadow: var(--shadow-subtle);
  display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 100%; min-width: 0;
}
@media (min-width: 860px) {
  .quick-info-bar { flex-direction: row; align-items: center; justify-content: space-between; }
}
.quick-info-items { display: flex; flex-direction: column; gap: 6px; min-width: 0; width: 100%; }
@media (min-width: 640px) {
  .quick-info-items { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
}
.quick-contact-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600;
  color: var(--text-main); min-width: 0; max-width: 100%; cursor: pointer;
}
.quick-contact-pill i { color: var(--text-muted); font-size: 0.9rem; flex-shrink: 0; }
.quick-contact-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.quick-contact-pill:hover span { color: var(--primary); }

.quick-social-group { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.social-btn-round {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 0.82rem; transition: var(--transition);
}
.social-btn-round.in { background: #0a66c2; }
.social-btn-round.tw { background: #000000; }
.social-btn-round.yt { background: #ff0000; }
.social-btn-round.wb { background: #334155; }
.social-btn-round:active { transform: scale(0.92); }

/* ================= 5. MAIN 2-COLUMN LAYOUT ================= */
.desktop-main-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start;
  width: 100%; max-width: 100%; min-width: 0;
}
@media (min-width: 1024px) {
  .desktop-main-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .sticky-aside-column {
    position: sticky; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 16px; min-width: 0;
  }
}

.left-main-column { width: 100%; max-width: 100%; min-width: 0; }

/* Cards */
.card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 14px; box-shadow: var(--shadow-subtle); margin-bottom: 14px;
  width: 100%; max-width: 100%; min-width: 0; overflow: hidden;
}
@media (min-width: 768px) { .card { padding: 20px; } }
.card:last-child { margin-bottom: 0; }

.card-head-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; width: 100%; min-width: 0;
}
.card-title-lockup {
  display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 800; color: var(--text-main); min-width: 0;
}
.card-title-lockup i { font-size: 1.1rem; color: var(--accent-amber-text, #b45309); flex-shrink: 0; }
.card-title-lockup span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-all-link { font-size: 0.78rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }

/* Info rows (About / Industry / Competency / Domain) */
.info-block-row {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); width: 100%; min-width: 0;
}
.info-block-row:first-child { padding-top: 0; }
.info-block-row:last-child { border-bottom: none; padding-bottom: 0; }
.amber-icon-badge {
  width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.info-block-content { min-width: 0; flex: 1; }
.info-block-content h3 { font-size: 0.84rem; font-weight: 800; margin-bottom: 2px; color: var(--text-main); }
.info-block-content p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* 2 Split Boxes */
.split-two-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; width: 100%; min-width: 0;
}
@media (min-width: 600px) { .split-two-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split-box-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; display: flex; gap: 10px; align-items: flex-start;
  box-shadow: var(--shadow-subtle); width: 100%; min-width: 0;
}
.split-box-card h4 { font-size: 0.82rem; font-weight: 800; color: var(--text-main); margin-bottom: 2px; }
.split-box-card p { font-size: 0.76rem; color: var(--text-muted); line-height: 1.35; }

/* ================= 6. POPULAR WORKSHOPS (auto-scrolling carousel — same engine as index.html) ================= */
.carousel-wrap-rel { position: relative; }
.carousel-arrow-btn {
  display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
  align-items: center; justify-content: center; color: var(--text-main); font-size: 1.1rem;
  box-shadow: var(--shadow-hover); transition: var(--transition); cursor: pointer;
}
.carousel-arrow-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-arrow-btn.left-arr { left: -8px; }
.carousel-arrow-btn.right-arr { right: -8px; }
@media (min-width: 640px) { .carousel-arrow-btn { display: flex; } }

.workshops-3col-grid {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; width: 100%; min-width: 0;
}
.workshops-3col-grid::-webkit-scrollbar { display: none; }
.workshop-single-card {
  flex: 0 0 80%; scroll-snap-align: start; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-subtle);
  display: flex; flex-direction: column; transition: var(--transition); min-width: 0;
}
@media (min-width: 640px) { .workshop-single-card { flex: 0 0 260px; } }
.workshop-single-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.workshop-single-thumb { height: 110px; width: 100%; object-fit: cover; }
.workshop-single-body { padding: 10px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.workshop-single-body h4 { font-size: 0.82rem; font-weight: 800; margin-bottom: 4px; line-height: 1.3; }
.workshop-single-body p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.35; margin-bottom: 8px; }
.workshop-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-light);
  font-size: 0.76rem; font-weight: 800; color: var(--primary);
}

/* ================= 7. BOOKS & E-BOOKS SECTION (auto-scrolling carousel) ================= */
.books-author-grid {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; width: 100%; min-width: 0;
}
.books-author-grid::-webkit-scrollbar { display: none; }
.book-author-card {
  flex: 0 0 75%; scroll-snap-align: start; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-subtle);
  display: flex; flex-direction: column; transition: var(--transition); min-width: 0;
}
@media (min-width: 640px) { .book-author-card { flex: 0 0 220px; } }
.book-author-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.book-cover-container {
  position: relative; height: 140px; background: #1e1b4b; overflow: hidden;
}
.book-cover-container img { width: 100%; height: 100%; object-fit: cover; }
.book-format-chip {
  position: absolute; top: 8px; left: 8px; background: var(--accent-purple); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 4px;
}
.book-author-body { padding: 12px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.book-author-title { font-size: 0.84rem; font-weight: 800; color: var(--text-main); margin-bottom: 3px; line-height: 1.3; }
.book-author-meta { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.book-author-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-light);
}
.book-price-box strong { font-size: 0.95rem; font-weight: 800; color: var(--text-main); }
.book-price-box small { font-size: 0.7rem; color: var(--text-subtle); text-decoration: line-through; margin-left: 3px; }
.btn-buy-book {
  background: var(--accent-purple); color: #fff; font-size: 0.74rem; font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-xs); transition: var(--transition);
}
.btn-buy-book:hover { background: #6b21a8; }

/* ================= 8. GALLERY (6 ITEMS) ================= */
.gallery-screenshot-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; min-width: 0;
}
@media (min-width: 600px) { .gallery-screenshot-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } }
.gal-thumb-item {
  aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; width: 100%;
}
.gal-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb-item.more-overlay {
  background: #0f172a; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gal-thumb-item.more-overlay strong { font-size: 1.1rem; font-weight: 800; }
.gal-thumb-item.more-overlay span { font-size: 0.7rem; color: #cbd5e1; }

/* ================= 9. MILESTONES ================= */
.milestones-timeline-wrap {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 1px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; width: 100%; max-width: 100%; min-width: 0;
}
.milestones-timeline-wrap::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
  .milestones-timeline-wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
}
.milestone-node {
  flex: 0 0 130px; scroll-snap-align: start; text-align: center;
  background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 8px; display: flex; flex-direction: column; align-items: center; min-width: 0;
}
@media (min-width: 640px) { .milestone-node { flex: auto; } }
.milestone-node-circle {
  width: 32px; height: 32px; border-radius: 50%; background: #fff;
  border: 2px solid var(--accent-yellow); color: var(--accent-amber-text, #b45309);
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem; margin-bottom: 6px; flex-shrink: 0;
}
.milestone-node h5 { font-size: 0.74rem; font-weight: 800; margin-bottom: 2px; line-height: 1.25; }
.milestone-node p.org { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 2px; line-height: 1.25; }
.milestone-node p.year { font-size: 0.7rem; font-weight: 800; color: var(--primary); }

/* ================= 10. WHAT PEOPLE SAY (WITH WRITE A REVIEW BUTTON) ================= */
.testimonials-split-row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; max-width: 100%; min-width: 0;
}
@media (min-width: 768px) { .testimonials-split-row { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr); } }

.reviews-2up-col { display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; }

/* Write Review Trigger Button */
.btn-write-review {
  background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe; font-size: 0.72rem;
  font-weight: 700; padding: 4px 10px; border-radius: var(--radius-xs); display: inline-flex; align-items: center; gap: 4px;
}
.btn-write-review:hover { background: var(--primary); color: #fff; }

/* Google My Business Style Review Card */
.g-review-card {
  background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px;
  width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 8px;
}
.g-review-header { display: flex; align-items: center; gap: 10px; width: 100%; }
.g-avatar-circle {
  width: 34px; height: 34px; border-radius: 50%; font-weight: 800; font-size: 0.85rem; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.g-user-info { min-width: 0; flex: 1; }
.g-user-info strong { display: block; font-size: 0.8rem; font-weight: 800; color: var(--text-main); }
.g-user-info span { font-size: 0.7rem; color: var(--text-muted); }

.g-stars-row {
  display: flex; align-items: center; gap: 3px; color: #f59e0b; font-size: 0.85rem;
}
.g-verified-tag {
  font-size: 0.68rem; font-weight: 700; color: var(--accent-green-text, #047857); background: #ecfdf5;
  padding: 2px 6px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3px; margin-left: auto;
}
.g-review-text { font-size: 0.78rem; color: var(--text-main); line-height: 1.45; }

.hire-box-gold {
  background: var(--primary-light); border: 1px solid #bfdbfe; border-radius: var(--radius-md);
  padding: 16px 14px; text-align: center; display: flex; flex-direction: column; justify-content: center;
  width: 100%; min-width: 0;
}
.hire-box-gold h4 { font-size: 0.92rem; font-weight: 800; color: var(--text-main); margin-bottom: 2px; }
.hire-box-gold p { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 12px; }
.btn-gold {
  background: var(--primary); color: #fff; font-weight: 800; padding: 9px 12px;
  border-radius: var(--radius-sm); font-size: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 8px; width: 100%; transition: var(--transition);
}
.btn-gold:hover { background: var(--primary-hover); }
.btn-gold:active { transform: scale(0.97); }
.btn-white-deck {
  background: #fff; border: 1px solid var(--border); color: var(--text-main);
  font-weight: 700; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.76rem;
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
}

/* ================= 11. SIDEBAR ================= */
.article-item-row {
  display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-light);
  cursor: pointer; width: 100%; min-width: 0;
}
.article-item-row:first-child { padding-top: 0; }
.article-item-row:last-child { border-bottom: none; padding-bottom: 0; }
.article-item-thumb { width: 50px; height: 50px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.article-item-info { min-width: 0; flex: 1; }
.article-item-info h5 { font-size: 0.76rem; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.article-item-info span { font-size: 0.68rem; color: var(--text-subtle); }

.companies-logos-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; min-width: 0;
}
.brand-logo-pill {
  background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm);
  height: 42px; display: flex; align-items: center; justify-content: center; font-size: 0.74rem; font-weight: 800; color: #1e293b;
}

.side-contact-line {
  display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.76rem; color: var(--text-main);
  width: 100%; min-width: 0;
}
.side-contact-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.social-links-list { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; }
.social-link-row {
  display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--text-muted); font-weight: 600;
  padding: 6px 8px; border-radius: var(--radius-sm); background: #f8fafc; transition: var(--transition); width: 100%; min-width: 0;
}
.social-link-row:hover { background: var(--primary-light); color: var(--primary); }
.social-icon-box {
  width: 22px; height: 22px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.72rem; flex-shrink: 0;
}
.social-link-row span.val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ================= 13. DUAL BOTTOM BARS ================= */
.mobile-sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0; right: 0; z-index: 1900;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
  width: 100%; max-width: 100vw;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 1024px) { .mobile-sticky-action-bar { display: none !important; } }

.mobile-bar-inner-container {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; width: 100%; max-width: 1200px; margin: 0 auto;
}
.mobile-rate-info { min-width: 0; }
.mobile-rate-info strong { font-size: 0.9rem; font-weight: 800; display: block; line-height: 1.2; color: #0f172a; }
.mobile-rate-info span { font-size: 0.68rem; color: var(--text-muted); }
.mobile-cta-btn {
  background: var(--primary); color: #fff; padding: 9px 18px; border-radius: var(--radius-md);
  font-size: 0.82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 14px rgba(37,99,235,0.28); flex-shrink: 0;
}
.mobile-cta-btn:active { transform: scale(0.95); }


/* ================= 14. WRITE REVIEW MODAL ================= */
.modal-backdrop-custom {
  position: fixed; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(4px);
  z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal-backdrop-custom.open { opacity: 1; pointer-events: auto; }
.modal-review-card {
  background: #fff; width: 100%; max-width: 480px; border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-float); transform: scale(0.95); transition: transform 0.25s ease;
}
.modal-backdrop-custom.open .modal-review-card { transform: scale(1); }
.modal-review-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.star-select-row {
  display: flex; gap: 6px; font-size: 1.6rem; color: #cbd5e1; margin: 10px 0 14px; cursor: pointer;
}
.star-select-row i.active { color: #f59e0b; }
.review-input-ctrl {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-family: inherit; font-size: 0.84rem; margin-bottom: 10px; outline: none;
}
.review-input-ctrl:focus { border-color: var(--primary); }


/* ================================================================
   ADDITIONS — everything below is new relative to the static mockup
   ================================================================ */

body.has-sticky-bar { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body.has-sticky-bar { padding-bottom: 0; } }

/* Hero: tile count follows the data (a new trainer has fewer tiles) */
@media (min-width: 480px) { .hero-stats-grid { grid-template-columns: repeat(var(--stat-cols, 4), minmax(0, 1fr)); } }
.hero-avatar-box img { background: #e2e8f0; }
.hero-bg-img { background: #1e293b; }
.hero-name-text { min-width: 0; }

/* Owner preview banner */
.owner-preview-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--primary-light); border: 1px solid #bfdbfe; color: #1e40af;
  border-radius: var(--radius-md); padding: 10px 14px; margin: 4px 0 12px; font-size: 0.78rem; font-weight: 600;
}
.owner-preview-bar span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.owner-preview-bar .btn { padding: 6px 14px; font-size: 0.75rem; }

/* Quick-contact pills are real buttons now (keyboard + screen-reader friendly) */
.quick-contact-pill { text-align: left; font-family: inherit; }
.quick-contact-pill.is-static { cursor: default; }
.quick-contact-pill.is-static:hover span { color: inherit; }
.lock-hint {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 800; color: var(--primary); background: var(--primary-light);
  border-radius: 99px; padding: 2px 8px; margin-left: 2px;
}
.quick-social-group .social-btn-round.ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.quick-social-group .social-btn-round.fb { background: #1877f2; }
.social-icon-box.in { background: #0a66c2; } .social-icon-box.tw { background: #000; } .social-icon-box.yt { background: #ff0000; }
.social-icon-box.wb { background: #334155; } .social-icon-box.ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); } .social-icon-box.fb { background: #1877f2; }

/* Long copy stays tidy */
.info-block-content p.multiline { white-space: pre-line; }
.split-box-card > div:last-child { min-width: 0; }

/* Workshop cards: real interactive elements */
.workshop-single-card { cursor: pointer; text-align: left; }
.workshop-single-card:focus-visible { outline-offset: 3px; }
.workshop-single-thumb.ph {
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
}
.workshop-meta-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  background: #f1f5f9; padding: 2px 8px; border-radius: 99px; margin-bottom: 6px; align-self: flex-start;
}
.workshop-meta-chip.live { color: #047857; background: #ecfdf5; }
.workshop-card-bottom span:first-child { font-weight: 800; }
.workshop-single-body h4, .book-author-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.workshop-single-body p {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Books */
.book-cover-container.ph {
  display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #c4b5fd;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}
a.btn-buy-book, button.btn-buy-book { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.btn-buy-book[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* Gallery */
button.gal-thumb-item { display: block; padding: 0; border: 0; background: #e2e8f0; }
.gal-thumb-item img { transition: transform 0.35s ease; }
.gal-thumb-item:hover img { transform: scale(1.06); }
.gal-thumb-item.more-overlay { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0f172a; color: #fff; }
@media (max-width: 599px) { .gallery-screenshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Milestones: column count follows the data */
@media (min-width: 640px) { .milestones-timeline-wrap { grid-template-columns: repeat(var(--ms-cols, 5), minmax(0, 1fr)); } }
.milestone-node h5 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Reviews */
.g-avatar-circle { overflow: hidden; }
.g-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.g-stars-row .empty { color: #cbd5e1; }
.g-stars-row .score { font-size: 0.75rem; font-weight: 800; color: #0f172a; margin-left: 4px; }
.g-review-date { font-size: 0.66rem; color: var(--text-subtle); margin-left: 6px; font-weight: 600; }
.reviews-empty {
  border: 1.5px dashed var(--border); border-radius: var(--radius-md); padding: 22px 16px; text-align: center; background: #f8fafc;
}
.reviews-empty i { font-size: 1.6rem; color: var(--accent-amber-text, #b45309); }
.reviews-empty strong { display: block; font-size: 0.86rem; margin: 4px 0 2px; }
.reviews-empty p { font-size: 0.75rem; color: var(--text-muted); }
.btn-write-review { font-family: inherit; }

/* Hire box */
a.btn-white-deck, a.btn-gold { text-decoration: none; }
.hire-box-gold .hire-note { font-size: 0.66rem; color: var(--text-subtle); margin-top: 8px; }

/* Sidebar */
a.article-item-row:hover h5 { color: var(--primary); }
.article-item-thumb.ph { display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: #94a3b8; font-size: 1.2rem; }
.brand-logo-pill { padding: 0 6px; text-align: center; line-height: 1.15; overflow: hidden; }
.brand-logo-pill.pc-0 { color: #1e3a8a; } .brand-logo-pill.pc-1 { color: #007cc3; } .brand-logo-pill.pc-2 { color: #812990; }
.brand-logo-pill.pc-3 { color: #047857; } .brand-logo-pill.pc-4 { color: #b45309; } .brand-logo-pill.pc-5 { color: #be123c; }
.brand-logo-pill.pc-6 { color: #0f766e; } .brand-logo-pill.pc-7 { color: #4338ca; }
.brand-logo-pill.more { cursor: pointer; color: var(--primary); background: var(--primary-light); border-color: #bfdbfe; font-family: inherit; }
.side-contact-line { font-family: inherit; text-align: left; width: 100%; }
button.side-contact-line { background: none; border: 0; padding: 0; }
.side-contact-line.is-static { cursor: default; }
a.social-link-row { text-decoration: none; }

/* Below-the-fold cards are laid out lazily (cheaper first paint) */
.cv-auto { content-visibility: auto; contain-intrinsic-size: auto 340px; }

/* ---------------- Modals / sheets (review, contact, lists) ---------------- */
.modal-backdrop-custom { visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.modal-backdrop-custom.open { visibility: visible; transition-delay: 0s; }
.modal-review-card { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.modal-close-btn {
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition);
}
.modal-close-btn:hover { background: #f1f5f9; color: var(--text-main); }
.modal-title { font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.modal-sub { font-size: 0.74rem; color: var(--text-muted); }
@media (max-width: 639px) {
  .modal-backdrop-custom { align-items: flex-end; padding: 0; }
  .modal-review-card { border-radius: 20px 20px 0 0; max-width: 100%; max-height: 90dvh; transform: translateY(28px); padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .modal-backdrop-custom.open .modal-review-card { transform: translateY(0); }
}
.review-input-ctrl { font-size: 16px; } /* 16px stops iOS from zooming the page on focus */
@media (min-width: 640px) { .review-input-ctrl { font-size: 0.84rem; } }
textarea.review-input-ctrl { resize: vertical; min-height: 92px; }
.review-input-ctrl.invalid { border-color: var(--accent-red); }
.field-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.field-hint { display: flex; justify-content: space-between; gap: 8px; font-size: 0.68rem; color: var(--text-subtle); margin: -4px 0 10px; }
.form-error {
  display: none; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 0.76rem; font-weight: 600; margin-bottom: 10px;
}
.form-error.show { display: block; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.star-select-row { gap: 4px; margin: 6px 0 12px; }
.star-select-row .star-btn { font-size: inherit; color: inherit; line-height: 1; padding: 2px; border-radius: 6px; transition: transform 0.12s ease; }
.star-select-row .star-btn:hover { transform: scale(1.12); }
.star-select-row .star-btn.active i { color: #f59e0b; }
.star-caption { font-size: 0.74rem; font-weight: 700; color: var(--text-muted); align-self: center; margin-left: 6px; }
.btn-block { width: 100%; padding: 11px; }
.btn[disabled], .btn-gold[disabled] { opacity: 0.65; cursor: progress; }
.spin { display: inline-block; animation: tp-spin 0.8s linear infinite; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
.reviewing-as {
  display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: 0.74rem; color: var(--text-muted); margin-bottom: 10px;
}
.reviewing-as i { color: var(--accent-green-text, #047857); }
.notice-box {
  display: flex; gap: 10px; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.78rem; font-weight: 600; margin-bottom: 12px;
}

/* Contact sheet */
.contact-context {
  display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: #1e40af; font-size: 0.72rem;
  font-weight: 700; padding: 5px 10px; border-radius: 99px; margin: 8px 0 2px; max-width: 100%;
}
.contact-context span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.contact-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.contact-opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); background: #fff; text-decoration: none; color: var(--text-main); transition: var(--transition); min-width: 0;
}
.contact-opt:hover { border-color: var(--primary); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.contact-opt .ico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.15rem; flex-shrink: 0; }
.contact-opt .ico.wa { background: #25d366; } .contact-opt .ico.tel { background: var(--primary); } .contact-opt .ico.mail { background: #f59e0b; }
.contact-opt .txt { min-width: 0; flex: 1; }
.contact-opt .txt strong { display: block; font-size: 0.86rem; font-weight: 800; }
.contact-opt .txt span { display: block; font-size: 0.72rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-opt > i:last-child { color: var(--text-subtle); flex-shrink: 0; }
.contact-locked { text-align: center; padding: 14px 6px 4px; }
.contact-locked .lock-ico {
  width: 54px; height: 54px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.contact-locked p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.contact-empty { text-align: center; padding: 18px 6px 6px; font-size: 0.82rem; color: var(--text-muted); }

/* "View all" list sheet */
.list-sheet-body { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.list-sheet-more { margin-top: 12px; }
.list-loading { text-align: center; color: var(--text-muted); font-size: 0.8rem; padding: 18px; }
.company-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.company-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 700; }
.company-list li i { color: var(--text-subtle); }

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 5500; background: rgba(2, 6, 23, 0.94); display: flex; flex-direction: column;
  align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.lb.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb-stage { margin: 0; max-width: min(1100px, 94vw); max-height: 80dvh; display: flex; flex-direction: column; align-items: center; gap: 10px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 74dvh; width: auto; height: auto; object-fit: contain; border-radius: 10px; background: #0f172a; user-select: none; -webkit-user-drag: none; }
.lb-cap { color: #cbd5e1; font-size: 0.8rem; text-align: center; min-height: 1.2em; }
.lb-count { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); color: #e2e8f0; font-size: 0.8rem; font-weight: 700; background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 99px; }
.lb-btn {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { top: 12px; right: 12px; } .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); } .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 639px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } .lb-prev { left: 24px; } .lb-next { right: 24px; } }

/* Mobile bar: rate copy + two actions */
.mobile-rate-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- late additions ---- */
.reviews-stack { display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; }
.g-review-text { white-space: pre-line; }
.lock-hint i { color: inherit !important; font-size: 0.72rem !important; }
.side-login-hint {
  display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.72rem; font-weight: 700; color: var(--primary);
  background: var(--primary-light); border-radius: var(--radius-sm); padding: 7px 10px;
}
.card-title-lockup { font-size: inherit; }
button.view-all-link { font-family: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button.view-all-link:hover { text-decoration: underline; }
.hero-stats-grid .hero-stat-cell strong { font-variant-numeric: tabular-nums; }

/* Carousels: snap points are the card STARTS, so the last few pixels of a track that
   barely overflows could never be reached (the snap pulled it back). Making the last
   card snap to its END makes the true end of the track a valid resting point. */
.workshops-3col-grid > :last-child, .books-author-grid > :last-child { scroll-snap-align: end; }
.carousel-arrow-btn[hidden] { display: none !important; }
.carousel-arrow-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

/* Reviews header: never truncate the title — the actions wrap under it on narrow screens */
#reviews .card-head-row { flex-wrap: wrap; row-gap: 8px; }
#reviews .card-title-lockup { flex: 1 1 auto; }
#reviews .card-title-lockup span { overflow: visible; text-overflow: clip; white-space: nowrap; }
.btn-write-review { white-space: nowrap; }
