/* ============================================
   ACTGRAM — Profile Pages
   Base layout + mobile refinements
   ============================================ */

.ag-profile-page {
  background: #F8FAFC;
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}

.ag-profile-cover {
  position: relative;
  height: 180px;
  background: #E2E8F0;
  overflow: hidden;
}

.ag-profile-cover-actions {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.ag-profile-icon-btn {
  background: rgba(255, 255, 255, 0.94);
  border: none;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1E293B;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.ag-profile-director-cover {
  height: 150px;
  background: linear-gradient(135deg, #00AEEF, #002347);
}

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

.ag-profile-cover--empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00AEEF 0%, #0095CC 55%, #002347 100%);
}

.ag-profile-edit-banner {
  position: absolute;
  bottom: 12px;
  right: 16px;
  background: rgba(15, 23, 42, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.ag-profile-edit-banner:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.ag-profile-edit-banner:active {
  transform: translateY(0) scale(0.97);
}

.ag-profile-edit-banner i {
  font-size: 14px !important;
}

/* On director/production covers the transparency badge overlaps the cover's
   bottom-right corner, so lift the Edit Banner button above it to avoid a clash. */
.ag-profile-director-cover .ag-profile-edit-banner {
  bottom: 56px;
}

.ag-profile-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 12px;
}

.ag-profile-avatar-wrap img,
.ag-profile-avatar-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  display: block;
}

.ag-profile-avatar-wrap img {
  object-fit: cover;
}

.ag-profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00AEEF;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.ag-profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #00AEEF;
  color: #fff;
  border: 2.5px solid #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.4);
  z-index: 3;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ag-profile-avatar-edit:hover {
  background: #0095CC;
  transform: scale(1.05);
}

.ag-profile-avatar-edit:active {
  transform: scale(0.92);
}

.ag-profile-avatar-edit i {
  font-size: 13px !important;
}

.ag-profile-body {
  --ag-profile-pad-x: 20px;
  padding: 0 var(--ag-profile-pad-x);
  margin-top: -45px;
  position: relative;
  z-index: 2;
}

.ag-profile-tab-content {
  padding: 16px 20px;
}

/* Shared profile components (all viewports) */
.ag-profile-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 10px;
}

.ag-profile-name {
  font-size: 22px;
  font-weight: 900;
  color: #0F172A;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin: 0;
}

.ag-profile-badge-pro {
  background: linear-gradient(135deg, #FF5E36, #FFA036);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 4px 7px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* Verified check badge that sits next to a profile name (Instagram-style). */
.ag-profile-name-verified {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.ag-profile-badge-premium {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 4px 7px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.ag-profession-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 99px;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
  width: fit-content;
}

.ag-profession-badge i {
  font-size: 13px;
}

.ag-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ag-profile-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 99px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.ag-profile-meta-chip i {
  font-size: 14px;
}

.ag-profile-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ag-profile-heat,
.ag-profile-avail {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ag-profile-heat {
  background: #FFF9E6;
  color: #D97706;
  border: 1.5px solid #FDE68A;
}

.ag-profile-avail {
  background: #E6FDF4;
  color: #059669;
  border: 1.5px solid #A7F3D0;
}

/* ---- Management / action card ---- */
.ag-profile-mgmt-card {
  background: #fff;
  border-radius: 20px;
  padding: 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-bottom: 16px;
}

.ag-profile-mgmt-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ag-profile-mgmt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ag-profile-btn {
  border-radius: 12px;
  padding: 11px 10px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  border: none;
  min-height: 44px;
  box-sizing: border-box;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ag-profile-btn:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.ag-profile-btn-outline {
  background: #fff;
  color: #0F172A;
  border: 1px solid #CBD5E1;
}

.ag-profile-btn-primary {
  background: #00AEEF;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 174, 239, 0.25);
  grid-column: 1 / -1;
  min-height: 48px;
  font-size: 13px;
}

.ag-profile-btn-muted {
  background: #F8FAFC;
  color: #334155;
  border: 1px solid #E2E8F0;
}

.ag-profile-btn-gold {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  color: #D97706;
  border: 1px solid #FDE68A;
}

/* Recruiter / visitor action rows */
.ag-profile-actions-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ag-profile-actions-row .ag-profile-btn {
  flex: 1;
  min-width: calc(50% - 4px);
}

.ag-profile-actions-row .ag-profile-btn-full {
  flex: 1 1 100%;
  width: 100%;
}

/* Bio */
.ag-profile-bio {
  border-left: 3px solid #7C3AED;
  padding-left: 14px;
  margin: 0 0 18px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

/* Stats */
.ag-profile-stats {
  display: flex;
  background: linear-gradient(135deg, #fff 0%, #F8FAFC 100%);
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 16px 0;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.ag-profile-stat {
  flex: 1;
  text-align: center;
  border-right: 1px solid #E2E8F0;
}

.ag-profile-stat:last-child {
  border-right: none;
}

.ag-profile-stat-value {
  font-size: 18px;
  font-weight: 900;
  color: #1E40AF;
  font-family: 'Outfit', sans-serif;
}

.ag-profile-stat-label {
  font-size: 10px;
  color: #64748B;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Skills / languages */
.ag-profile-section-label {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ag-profile-section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #1E40AF;
  border-radius: 50%;
  flex-shrink: 0;
}

.ag-profile-section-label.lang::before {
  background: #7C3AED;
}

.ag-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ag-profile-chip {
  background: #F8FAFC;
  color: #334155;
  border: 1px solid #E2E8F0;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Tabs — centered across actor / director / agency profiles.
   Same pill design; only alignment/full-bleed of the bar changes. */
.ag-profile-tabs {
  background: #fff;
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
  position: sticky;
  top: 0;
  z-index: 20;
  /* Break out of .ag-profile-body side padding so the bar is truly centered */
  margin-left: calc(-1 * var(--ag-profile-pad-x, 20px));
  margin-right: calc(-1 * var(--ag-profile-pad-x, 20px));
  width: calc(100% + 2 * var(--ag-profile-pad-x, 20px));
  box-sizing: border-box;
}

.ag-profile-tabs-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 12px;
  box-sizing: border-box;
  width: 100%;
}

.ag-profile-tabs-inner::-webkit-scrollbar {
  display: none;
}

.ag-profile-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748B;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.15s ease, background 0.15s ease;
}

.ag-profile-tab:hover {
  color: #1E293B;
  background: #F8FAFC;
}

.ag-profile-tab.is-active {
  font-weight: 800;
  color: #fff;
  background: #00AEEF;
  box-shadow: 0 3px 10px rgba(0, 174, 239, 0.28);
}

.ag-profile-tab.is-active:hover {
  color: #fff;
  background: #00AEEF;
}

/* Director profile specifics */
.ag-profile-transparency {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: 14px;
  padding: 6px 12px;
  text-align: center;
  flex-shrink: 0;
}

.ag-profile-avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

/* Profile posts grid — all viewports */
.ag-profile-posts-grid,
.ag-profile-reels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.ag-profile-tab-content:has(.ag-profile-posts-grid),
.ag-profile-tab-content:has(.ag-profile-reels-grid),
.ag-profile-tab-content:has(.ag-profile-thoughts-tab) {
  padding-left: 0;
  padding-right: 0;
  padding-top: 8px;
}

.ag-profile-grid-item {
  position: relative;
  display: block;
  width: 100%;
  background: #E2E8F0;
  overflow: hidden;
  /* Instagram-style portrait tiles (3:4) — square (1:1) tiles cropped
     portrait photos badly and made the grid feel tiny. Reels tab tiles
     stay 9:16 via --reel below, exactly like Instagram's Reels tab. */
  aspect-ratio: 3 / 4;
  border-radius: 4px;
}

.ag-profile-grid-item--reel {
  aspect-ratio: 9 / 16;
}

.ag-profile-grid-item-tap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: block;
}

.ag-profile-grid-menu-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 0.15s ease;
}

.ag-profile-grid-menu-btn:hover {
  background: rgba(15, 23, 42, 0.8);
}

.profile-post-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.profile-post-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0F172A;
}

.profile-post-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.profile-post-thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.3) 0%, transparent 40%);
  pointer-events: none;
  z-index: 2;
}

.profile-post-thumb-reel-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  color: #fff;
  line-height: 0;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

.profile-post-thumb-play-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.profile-post-thumb-views .profile-post-thumb-play-svg {
  width: 12px;
  height: 12px;
}

.profile-post-thumb-views {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

/* Never show home-feed reel player inside profile grids */
.ag-profile-grid-item .feed-reel-player,
.ag-profile-posts-grid .feed-reel-player,
.ag-profile-reels-grid .feed-reel-player {
  display: none !important;
}

.ag-profile-reels-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.ag-profile-grid-item--reel {
  aspect-ratio: 9 / 16;
  grid-row: span 1;
}

.profile-post-thumb-label {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 44px);
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 7px;
  border-radius: 99px;
  z-index: 3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-profile-grid-stats {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 4;
  pointer-events: none;
}

.ag-profile-grid-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ag-profile-grid-item:hover .ag-profile-grid-stats,
.ag-profile-grid-item:focus-visible .ag-profile-grid-stats,
.ag-profile-grid-item:active .ag-profile-grid-stats {
  opacity: 1;
}

.ag-profile-empty {
  text-align: center;
  padding: 48px 20px;
  color: #64748B;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.ag-profile-empty i {
  font-size: 36px;
  color: #94A3B8;
  margin: 0 auto 8px;
  display: block;
}

.ag-profile-empty span {
  display: block;
  text-align: center;
}

/* ---- Profile About tab ---- */
.ag-profile-tab-content:has(.ag-profile-about) {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.ag-profile-about {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 16px calc(var(--tab-bar-height, 72px) + 28px);
  box-sizing: border-box;
}

.ag-profile-thoughts-tab {
  padding: 4px 16px calc(var(--tab-bar-height, 72px) + 28px);
  box-sizing: border-box;
}

.ag-about-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.ag-about-card--last {
  margin-bottom: 4px;
}

.ag-about-card-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #002347;
}

.ag-about-bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  font-weight: 500;
}

.ag-about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.ag-about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ag-about-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #94A3B8;
}

.ag-about-stat-value {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
  word-break: break-word;
}

/* Editorial Comp Card, relocated into the About tab */
.ag-about-compcard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ag-about-compcard-export-btn {
  background: var(--brand-cyan-light, #E8F7FD);
  color: var(--brand-navy, #002347);
  border: none;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.ag-about-compcard-strip {
  background: #00AEEF;
  border-radius: 14px 14px 0 0;
  margin: -16px -18px 16px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ag-about-compcard-split {
  display: flex;
  gap: 16px;
  min-height: 260px;
}
.ag-about-compcard-photo {
  width: 44%;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #F1F5F9;
}
.ag-about-compcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ag-about-compcard-facts {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ag-about-compcard-row {
  font-size: 13px;
  color: #475569;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #E2E8F0;
  padding-bottom: 6px;
}
.ag-about-compcard-row strong {
  color: #0F172A;
}
.ag-about-compcard-portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.ag-about-compcard-portfolio-grid > div {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #F1F5F9;
  position: relative;
}
/* Comp-card portfolio tile: image + on-error/empty placeholder fill the box. */
.ag-cc-tile > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ag-cc-tile-empty { width: 100%; height: 100%; }
.ag-cc-tile-empty > div,
.ag-cc-tile-empty > button { width: 100%; height: 100%; border: none; }

.ag-about-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 12px;
}

.ag-about-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.ag-about-contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ag-about-contact-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ag-about-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #EFF6FF;
  color: #1E40AF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.ag-about-contact-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
}

.ag-about-contact-value {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  text-align: right;
  word-break: break-all;
  max-width: 58%;
}

.ag-about-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ag-about-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  box-sizing: border-box;
}

.ag-about-social-btn i {
  font-size: 17px;
  color: #EAB308;
}

.ag-about-social-btn--ig i {
  color: #EC4899;
}

.ag-about-empty-note {
  margin: 0;
  font-size: 13px;
  color: #94A3B8;
}

.ag-about-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.ag-about-metric {
  border-radius: 14px;
  padding: 12px 12px 10px;
  min-width: 0;
}

.ag-about-metric--heat {
  background: #00AEEF;
  color: #fff;
}

.ag-about-metric--rating {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.ag-about-metric-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

.ag-about-metric--rating .ag-about-metric-label {
  color: #64748B;
  opacity: 1;
}

.ag-about-metric-value {
  display: block;
  font-size: 22px;
  font-weight: 900;
  font-family: 'Outfit', 'DM Sans', sans-serif;
  line-height: 1.1;
  margin-bottom: 2px;
}

.ag-about-metric-value small {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
}

.ag-about-metric-sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
  line-height: 1.3;
}

.ag-about-metric--rating .ag-about-metric-sub {
  color: #64748B;
  opacity: 1;
}

.ag-about-metric-sub--ok {
  color: #059669 !important;
  font-weight: 700;
}

.ag-about-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ag-about-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 13px;
}

.ag-about-meta-row span {
  color: #64748B;
  font-weight: 600;
}

.ag-about-meta-row strong {
  color: #0F172A;
  font-weight: 800;
}

.ag-about-meta-row--last {
  border-bottom: none;
  padding-bottom: 0;
}

.ag-about-verified {
  color: #1E40AF !important;
}

/* ---- About: Introduction & Audition Videos ---- */
.ag-about-video-card {
  padding: 16px 18px 18px;
}

.ag-about-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0F172A;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.ag-about-video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ag-about-video-replace-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--brand-cyan, #00AEEF);
  background: var(--brand-cyan-light, #E8F7FD);
  color: var(--brand-cyan-dark, #0095CC);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ag-about-video-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1.5px dashed #93C5FD;
  background: var(--brand-cyan-light, #E8F7FD);
  color: var(--brand-navy, #002347);
  cursor: pointer;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  transition: opacity 0.2s;
}

.ag-about-video-upload-zone i {
  font-size: 26px;
  color: var(--brand-cyan, #00AEEF);
}

.ag-about-video-upload-zone span {
  font-size: 13px;
  font-weight: 700;
}

.ag-about-video-upload-zone small {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

.ag-about-video-upload-zone--uploading {
  opacity: 0.6;
  pointer-events: none;
}

.ag-about-video-count {
  font-size: 10px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  color: var(--brand-cyan-dark, #0095CC);
  background: var(--brand-cyan-light, #E8F7FD);
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 6px;
  vertical-align: middle;
}

.ag-about-audition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ag-about-audition-item {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #0F172A;
  cursor: pointer;
  border: 1px solid #E2E8F0;
}

.ag-about-audition-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ag-about-audition-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  background: rgba(15, 23, 42, 0.18);
}

.ag-about-audition-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.ag-about-audition-add-tile {
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  border: 1.5px dashed #93C5FD;
  background: var(--brand-cyan-light, #E8F7FD);
  color: var(--brand-cyan-dark, #0095CC);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ag-about-audition-add-tile i {
  font-size: 18px;
}

.ag-about-video-upsell-note {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-cyan-light, #E8F7FD) 0%, #FFF7E0 100%);
  border: 1px solid rgba(0, 174, 239, 0.25);
}

.ag-about-video-upsell-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #00AEEF;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

.ag-about-video-upsell-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ag-about-video-upsell-text strong {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
}

.ag-about-video-upsell-text span {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748B;
  line-height: 1.4;
}

.ag-about-video-upsell-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  background: #00AEEF;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ag-about-video-upsell-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 174, 239, 0.45);
}

/* ---- Post options dropdown (Edit / Delete) ---- */
.ag-post-options-menu {
  position: absolute;
  z-index: 9999;
  min-width: 160px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}

.ag-post-options-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  color: #0F172A;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.ag-post-options-menu button:hover {
  background: #F8FAFC;
}

.ag-post-options-menu button i {
  font-size: 16px;
  color: #64748B;
}

.ag-post-options-danger {
  color: #DC2626 !important;
}

.ag-post-options-danger i {
  color: #DC2626 !important;
}

@media (max-width: 767px) {
  :root {
    --ag-profile-pad-x: 16px;
    --ag-profile-safe-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  /* Force full-bleed — override desktop card shell if it leaks */
  #actor-profile.active-screen,
  #director-profile.active-screen {
    background: #F8FAFC !important;
  }

  #actor-profile > div,
  #director-profile > div {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .ag-profile-page {
    background: #F8FAFC;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'DM Sans', sans-serif;
    padding-bottom: calc(var(--tab-bar-height, 72px) + 12px);
    box-sizing: border-box;
  }

  /* ---- Cover ---- */
  .ag-profile-cover {
    height: 148px;
  }

  .ag-profile-cover-actions {
    position: absolute;
    top: var(--ag-profile-safe-top);
    left: var(--ag-profile-pad-x);
    right: var(--ag-profile-pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
  }

  .ag-profile-cover-actions > * {
    pointer-events: auto;
  }

  .ag-profile-edit-banner {
    right: var(--ag-profile-pad-x);
    padding: 7px 12px;
    font-size: 11px;
  }

  /* ---- Body ---- */
  .ag-profile-body {
    padding: 0 var(--ag-profile-pad-x);
    margin-top: -40px;
    position: relative;
    z-index: 2;
  }


  .ag-profile-verified-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #1E40AF;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    z-index: 2;
  }

  .ag-profile-avatar-edit {
    width: 26px;
    height: 26px;
  }

  .ag-profile-avatar-edit:active {
    transform: scale(0.92);
    background: #6D28D9;
  }

  .ag-profile-avatar-edit i {
    font-size: 12px !important;
  }

  .ag-profile-tab-content {
    padding: 16px var(--ag-profile-pad-x);
  }

  /* Director profile specifics */
  .ag-profile-director-cover {
    height: 130px;
    background: linear-gradient(135deg, #00AEEF, #002347);
    position: relative;
  }

  /* ---- Profile posts / reels / thoughts — Instagram full-bleed grid ----
     Cells looked tiny because grids sat inside BOTH:
       .ag-profile-body pad-x  +  .ag-profile-tab-content pad-x
     Zero tab padding, then break out of body padding with negative margins. */
  .ag-profile-tab-content:has(.ag-profile-posts-grid),
  .ag-profile-tab-content:has(.ag-profile-reels-grid),
  .ag-profile-tab-content:has(.ag-profile-thoughts-tab) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 4px !important;
  }

  .ag-profile-body .ag-profile-posts-grid,
  .ag-profile-body .ag-profile-reels-grid,
  .ag-profile-body .ag-thought-grid {
    margin-left: calc(-1 * var(--ag-profile-pad-x, 16px));
    margin-right: calc(-1 * var(--ag-profile-pad-x, 16px));
    width: calc(100% + 2 * var(--ag-profile-pad-x, 16px)) !important;
    max-width: none !important;
  }

  .ag-profile-posts-grid,
  .ag-profile-reels-grid {
    gap: 1px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .ag-profile-grid-item {
    border-radius: 0 !important;
    -webkit-tap-highlight-color: transparent;
  }

  .ag-profile-grid-item--reel {
    min-height: 0;
  }

  /* Compact overlays so they don't eat the thumbnail */
  .ag-profile-grid-item .ag-collab-pill--grid {
    top: 4px !important;
    left: 4px !important;
    font-size: 9px;
    padding: 1px 6px;
    gap: 2px;
  }

  .ag-profile-grid-item .ag-collab-pill--grid i {
    font-size: 10px;
  }

  .ag-profile-thoughts-tab {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .ag-profile-thoughts-tab .ag-thought-tab-cta {
    margin-left: var(--ag-profile-pad-x, 16px);
    margin-right: var(--ag-profile-pad-x, 16px);
  }

  .ag-thought-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1px !important;
  }

  .ag-thought-grid-tile {
    border-radius: 0 !important;
    border: none !important;
    padding: 12px 10px 22px !important;
    background: linear-gradient(165deg, #FFFFFF 0%, var(--brand-cyan-light, #E8F7FD) 160%) !important;
  }

  .ag-thought-grid-tile-text {
    font-size: 13px !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 5 !important;
  }

  .ag-thought-grid-tile-mark {
    font-size: 16px !important;
  }

  .ag-thought-grid-tile-stats {
    font-size: 11px !important;
  }

  .profile-post-thumb-views {
    font-size: 10px;
    bottom: 6px;
    left: 6px;
  }
}

@media (max-width: 380px) {
  .ag-profile-name {
    font-size: 20px;
  }

  .ag-profile-btn {
    font-size: 11.5px;
    padding: 10px 8px;
  }

  .ag-about-video-upsell-note {
    flex-wrap: wrap;
  }

  .ag-about-video-upsell-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   ACTGRAM — Profile Pages
   Desktop / wide-viewport premium refinements
   (visual polish only — no markup or feature changes)
   ============================================ */
@media (min-width: 768px) {
  .ag-profile-cover {
    height: 260px;
  }

  .ag-profile-director-cover {
    height: 220px;
  }

  .ag-profile-cover-actions {
    top: 20px;
    left: 20px;
    right: 20px;
  }

  .ag-profile-icon-btn {
    width: 42px;
    height: 42px;
  }

  .ag-profile-edit-banner {
    bottom: 18px;
    right: 20px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .ag-profile-body {
    --ag-profile-pad-x: 36px;
    padding: 0 var(--ag-profile-pad-x);
    margin-top: -64px;
  }

  .ag-profile-avatar-wrap {
    width: 128px;
    height: 128px;
    margin-bottom: 18px;
  }

  .ag-profile-avatar-wrap img,
  .ag-profile-avatar-fallback {
    width: 128px;
    height: 128px;
    border: 4px solid #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  }

  .ag-profile-avatar-fallback {
    font-size: 42px;
  }

  .ag-profile-avatar-edit {
    width: 34px;
    height: 34px;
    border-width: 3px;
  }

  .ag-profile-avatar-edit i {
    font-size: 15px !important;
  }

  .ag-profile-verified-dot {
    width: 24px;
    height: 24px;
  }

  .ag-profile-name {
    font-size: 30px;
  }

  .ag-profile-badge-pro,
  .ag-profile-badge-premium {
    font-size: 10.5px;
    padding: 5px 9px;
  }

  .ag-profile-meta-chip {
    font-size: 13px;
    padding: 7px 13px;
  }

  .ag-profile-heat,
  .ag-profile-avail {
    font-size: 13px;
    padding: 8px 15px;
  }

  .ag-profile-tab-content {
    padding: 24px 36px;
  }

  /* ---- Management / action card ---- */
  .ag-profile-mgmt-card {
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 24px;
  }

  .ag-profile-mgmt-label {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .ag-profile-mgmt-grid {
    gap: 14px;
  }

  .ag-profile-btn {
    border-radius: 14px;
    padding: 13px 16px;
    font-size: 13.5px;
    min-height: 48px;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  }

  .ag-profile-btn-outline:hover {
    border-color: #94A3B8;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }

  .ag-profile-btn-muted:hover {
    background: #F1F5F9;
  }

  .ag-profile-btn-gold:hover {
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.15);
  }

  .ag-profile-btn-primary {
    min-height: 52px;
    font-size: 14.5px;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
  }

  .ag-profile-btn-primary:hover {
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.38);
    transform: translateY(-1px);
  }

  /* ---- Bio ---- */
  .ag-profile-bio {
    font-size: 15px;
    padding-left: 16px;
  }

  /* ---- Stats ---- */
  .ag-profile-stats {
    border-radius: 22px;
    padding: 22px 0;
  }

  .ag-profile-stat-value {
    font-size: 24px;
  }

  .ag-profile-stat-label {
    font-size: 11px;
  }

  /* ---- Skills / languages chips ---- */
  .ag-profile-section-label {
    font-size: 12px;
  }

  .ag-profile-chip {
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 14px;
  }

  /* ---- Tabs ---- */
  .ag-profile-tabs {
    border-radius: 0;
  }

  .ag-profile-tabs-inner {
    gap: 6px;
    padding: 12px 20px;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .ag-profile-tab {
    padding: 12px 22px;
    font-size: 13.5px;
    border-radius: 12px;
  }

  /* ---- About cards ---- */
  .ag-profile-about {
    padding: 4px 36px 32px;
    gap: 16px;
  }

  .ag-about-card {
    border-radius: 20px;
    padding: 20px 24px;
  }

  .ag-about-card-title {
    font-size: 12px;
  }

  .ag-about-bio {
    font-size: 15px;
  }

  .ag-about-metric-value {
    font-size: 26px;
  }

  .ag-about-video-card {
    padding: 20px 24px;
  }

  .ag-about-audition-grid {
    gap: 12px;
  }

  .ag-about-video-upload-zone span {
    font-size: 14px;
  }

  /* ---- Posts / reels grid ---- */
  .ag-profile-posts-grid,
  .ag-profile-reels-grid {
    gap: 8px;
  }

  .ag-profile-grid-item {
    border-radius: 10px;
  }
}

/* ============================================
   MODELING AGENCY PROFILE — availability pill + scout chips
   ============================================ */
.ag-agency-avail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.2px;
  -webkit-user-select: none;
  user-select: none;
}
.ag-agency-avail i {
  font-size: 16px;
}

.ag-scout-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F1F5F9;
  color: #475569;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}
.ag-scout-chip i {
  font-size: 13px;
  color: #00AEEF;
}
