/* ==========================================================================
   PROFILE REDESIGN STYLES - GenFunders
   Harmonized dashboard typography matching offers.css design system
   Independent vertical scrolling with hidden / zero-opacity scrollbars
   ========================================================================== */

@import url("../components/hero-card.css?v=20261026sharepadding");

/* The profile is a set of white cards on the shell's grey, not one white panel. This has to
   beat the shell's `.main > .founders_dashboard_body` rule. */
.main > .founders_dashboard_body.founders_dashboard_my_profile_body {
  background: var(--shell-bg);
}

/* Another member's profile uses the same grey canvas, whichever tab opened it. */
.main > .founders_dashboard_body:has(.profile-collab-page) {
  background: var(--shell-bg);
}

/* Main Profile Page Container */
.profile-redesign-page {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: auto;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: var(--gf-font);
  color: #101828;
  overflow: visible;
}

/* Two-Column Master Layout with Independent Scrolling */
.profile-layout-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  gap: 20px;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  overflow: visible;
}

/* Left Column: Hero Card + Main Content Card */
.profile-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 40px 0;
  gap: 20px;
  flex: 1 1 0%;
  min-width: 0;
  height: auto;
  overflow-y: visible;
  overflow-x: visible;
  box-sizing: border-box;
}

.profile-left-col::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Right Column: Sidebar Cards */
.profile-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 40px 0;
  gap: 20px;
  width: 310px;
  min-width: 280px;
  flex-shrink: 0;
  height: auto;
  overflow-y: visible;
  overflow-x: visible;
  box-sizing: border-box;
}

.profile-right-col::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 1100px) {
  .profile-redesign-page {
    height: auto;
    overflow: visible;
  }

  .profile-layout-row {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .profile-left-col,
  .profile-right-col {
    width: 100%;
    min-width: 0;
    height: auto;
    overflow-y: visible;
    padding-right: 0;
  }
}

/* ==========================================================================
   1. HERO CARD
   ========================================================================== */

.profile-hero-card {
  width: 100%;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 12px;
  box-sizing: border-box;
  box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.04);
  flex-shrink: 0;
}

.profile-hero-inner {
  width: 100%;
  background: #FFFFFF;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

/* Cover section */
.profile-cover-wrap {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  background: #101828;
}

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

.profile-image-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.profile-image-upload-status {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 164px;
  z-index: 5;
  padding: 9px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.profile-image-upload-status__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #344054;
  font-size: var(--gf-text-body-strong);
  line-height: var(--gf-leading-body-strong);
}

.profile-image-upload-status__top strong {
  color: #2966f4;
  font-size: var(--gf-text-body-strong);
}

.profile-image-upload-status__track {
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaecf0;
}

.profile-image-upload-status__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2966f4;
  transition: width 160ms cubic-bezier(0.2, 0, 0, 1);
}

/* Cover Edit Button */
.profile-cover-edit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #0A0A0A;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-sizing: border-box;
  padding: 0;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1), background-color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.profile-cover-edit-btn:hover {
  background: #1f2937;
  transform: scale(1.05);
}

/* Avatar */
.profile-avatar-wrapper {
  position: absolute;
  left: 20px;
  top: 95px;
  width: 105px;
  height: 105px;
  z-index: 3;
}

.profile-avatar-img {
  width: 105px;
  height: 105px;
  border: 4px solid #FFFFFF;
  border-radius: 50%;
  object-fit: cover;
  background: #EEF1F5;
  box-sizing: border-box;
  display: block;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08);
}

/* Avatar Edit Button */
.profile-avatar-edit-btn {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  background: #0A0A0A;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1), background-color 160ms cubic-bezier(0.2, 0, 0, 1);
  z-index: 4;
}

.profile-avatar-edit-btn:hover {
  background: #1f2937;
  transform: scale(1.05);
}

/* Hero Meta and Actions Bar */
.profile-hero-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 14px 132px;
  gap: 12px;
  box-sizing: border-box;
  flex-wrap: nowrap;
  min-height: 76px;
}

@media (max-width: 820px) {
  .profile-avatar-wrapper {
    position: relative;
    left: auto;
    top: auto;
    margin: -50px auto 10px 16px;
  }
  .profile-hero-info {
    padding: 12px 16px;
  }
}

.profile-hero-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

/* Name & Badge Row */
.profile-name-badge-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-user-name {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  color: #0A0A0A;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Account-type badge (Fo / Se / Iv). Shared by every profile header and the collaboration cards,
   which scale it down in assets/css/dashboard/collaboration.css. */
.gf-user-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-chip);
  font-weight: var(--gf-weight-bold);
  line-height: 1;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  box-sizing: border-box;
}

.gf-user-type-badge.is-founder {
  color: #FFFFFF;
  background: #2966F4;
  border-color: #2966F4;
}

.gf-user-type-badge.is-seeker {
  color: #FFFFFF;
  background: #15803D;
  border-color: #15803D;
}

.gf-user-type-badge.is-investor {
  color: #FFFFFF;
  background: #C2410C;
  border-color: #C2410C;
}

.profile-3d-badge {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-3d-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Verified Pill */
.profile-verified-badge {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 10px;
  gap: 6px;
  background: #F2F4F7;
  border-radius: 20px;
  height: 28px;
  box-sizing: border-box;
}

.profile-verified-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.profile-verified-badge span {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body-strong);
  line-height: var(--gf-leading-body-strong);
  color: #0A0A0A;
}

/* Unverified members get the same pill, faint red and with a warning mark. */
.profile-verified-badge.is-unverified {
  background: rgba(240, 68, 56, 0.08);
  box-shadow: inset 0 0 0 1px rgba(240, 68, 56, 0.22);
}

.profile-verified-badge.is-unverified svg {
  color: #d92d20;
}

.profile-verified-badge.is-unverified span {
  color: #b42318;
}

/* Meta subtitle */
.profile-subtitle-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-subtitle-meta .meta-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.profile-subtitle-meta .meta-label {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body-strong);
  line-height: var(--gf-leading-body-strong);
  color: #2966F4;
}

.profile-subtitle-meta .meta-value {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body-strong);
  line-height: var(--gf-leading-body-strong);
  color: #101828;
}

/* Header Actions */
.profile-header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.profile-icon-actions-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* 36px Action Circles */
.profile-action-circle-btn {
  width: 36px;
  height: 36px;
  background: #F2F4F7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #0A0A0A;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  padding: 0;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
}

.profile-action-circle-btn svg {
  width: 16px;
  height: 16px;
}

.profile-action-circle-btn:hover {
  background: #E9EDF2;
  transform: translateY(-1px);
}

/* Edit Profile Pill */
.profile-edit-pill-btn {
  height: 40px;
  padding: 8px 18px;
  background: #F2F4F7;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #0A0A0A;
  box-sizing: border-box;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.profile-edit-pill-btn svg {
  width: 16px;
  height: 16px;
}

.profile-edit-pill-btn:hover {
  background: #E9EDF2;
  transform: translateY(-1px);
}

/* ==========================================================================
   2. MAIN CONTENT CARD (Frame 269)
   ========================================================================== */

.profile-main-card {
  width: 100%;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  box-sizing: border-box;
  box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.04);
  border: 1px solid #EEF1F5;
  flex: none;
  order: 1;
  align-self: stretch;
  flex-grow: 0;
  min-height: 1008px;
}

/* Optional segmented layout: the tab bar and its content share one white surface, while
   the top hero card and every right-hand card sit separately on the page grey. */
.profile-main-card--segmented {
  background: #FFFFFF;
  border: 0;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
  gap: 16px;
  min-height: 0;
}

.profile-main-card--segmented .profile-content-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.profile-tab-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Subnavigation Tab Bar */
.profile-subnav-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 5px;
  gap: 6px;
  background: #F2F4F7;
  border-radius: 14px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.profile-subnav-tab {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 14px;
  gap: 8px;
  height: 38px;
  flex: 1 1 0%;
  border-radius: 10px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.1px;
  color: #667085;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.profile-subnav-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.profile-subnav-tab:hover {
  color: #0A0A0A;
  background: rgba(255, 255, 255, 0.6);
}

.profile-subnav-tab.is-active {
  background: #FFFFFF;
  color: #0A0A0A;
  font-weight: var(--gf-weight-semibold);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

/* Shared Content Section Block */
.profile-content-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 14px;
  box-sizing: border-box;
}

/* Section Headings with Blue Text & Blue Edit Icon */
.profile-section-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 8px;
  width: 100%;
}

.profile-section-head h2 {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  letter-spacing: -0.1px;
  color: #2966F4;
  margin: 0;
}

.profile-section-edit-btn {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #2966F4;
  cursor: pointer;
  padding: 0;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1), opacity 160ms cubic-bezier(0.2, 0, 0, 1);
}

.profile-section-edit-btn svg {
  width: 16px;
  height: 16px;
}

.profile-section-edit-btn:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* Description Section */
.profile-description-block {
  width: 100%;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #344054;
}

.profile-bio-text {
  margin: 0 0 12px 0;
  color: #344054;
  /* The description is the member's summary and extended bio joined by a blank line. */
  white-space: pre-line;
}

/* A description longer than five lines is clamped; shorter ones are left whole and show no toggle. */
.gf-bio {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}

.gf-bio.is-expanded {
  display: block;
  overflow: visible;
}

.profile-drives-title {
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  margin: 14px 0 6px 0;
  font-size: var(--gf-text-card);
}

.profile-drives-list {
  margin: 0 0 12px 0;
  padding-left: 18px;
  list-style-type: disc;
}

.profile-drives-list li {
  margin-bottom: 4px;
}

/* See All Button */
.profile-see-all-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #0A0A0A;
  margin-top: 6px;
}

.profile-see-all-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

/* Invested in / Companies */
.profile-invested-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  gap: 8px;
  width: 100%;
  /* Company cards continue on the next line instead of running off the panel. */
  flex-wrap: wrap;
}

.profile-company-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 12px;
}

.profile-company-logo-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.profile-company-logo-box.bg-sizemug {
  background: #0A0A0A;
}

.profile-company-logo-box.bg-techwave {
  background: #D4F7D4;
}

.profile-company-logo-box.bg-finanexus {
  background: #EAF0FF;
}

.profile-company-logo-box.bg-medisphere {
  background: #2054CC;
}

.profile-company-logo-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.profile-company-name {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #101828;
}

/* See More Button */
.profile-see-more-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 18px;
  height: 48px;
  background: #F2F4F7;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #101828;
  gap: 8px;
  flex-shrink: 0;
  transition: background-color 160ms cubic-bezier(0.2, 0, 0, 1), transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.profile-see-more-btn svg {
  width: 16px;
  height: 16px;
}

.profile-see-more-btn:hover {
  background: #E9EDF2;
  transform: translateX(2px);
}

/* Upcoming Events */
.profile-events-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

@media (max-width: 1200px) {
  .profile-events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .profile-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .profile-events-grid {
    grid-template-columns: 1fr;
  }
}

.profile-event-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0;
  height: 340px;
  min-height: 340px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border: 1px solid #D0D5DD;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1), box-shadow 240ms cubic-bezier(0.2, 0, 0, 1);
}

.profile-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px -4px rgba(16, 24, 40, 0.2);
}

.event-card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
}

/* Card Content */
.event-card-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  z-index: 2;
}

.event-meta-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 10px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  color: #FFFFFF;
}

.event-meta-line svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.event-title {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  color: #FFFFFF;
  margin: 4px 0;
}

.event-stats-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 10px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #F2F4F7;
}

.event-stats-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #D9D9D9;
  flex-shrink: 0;
}

.event-friends-pile {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}

.avatar-stack {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  /* The stack sits beside "1 friend is attending" in a flex row. Without this it
     shrinks with the text, and a 30x30 avatar squeezed to 22px wide is an egg. */
  flex: 0 0 auto;
}

.stack-avatar {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  object-fit: cover;
  margin-left: -8px;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  /* The stack shrink-to-fits at 30px minus the -8px overlap, and the global
     img { max-width: 100% } then clamps the avatar to that 22px - squashing it.
     The width is explicit, so the clamp has nothing to protect. */
  max-width: none;
}

.stack-avatar:first-child {
  margin-left: 0;
}

.friends-text {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #F2F4F7;
}

/* ==========================================================================
   3. RIGHT COLUMN SIDEBAR CARDS
   ========================================================================== */

.profile-sidebar-card {
  width: 100%;
  min-width: 0;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  box-sizing: border-box;
  box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.04);
  flex-shrink: 0;
}

.profile-sidebar-title-dark {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  letter-spacing: -0.1px;
  color: #0A0A0A;
  margin: 0;
}

/* Account Completion Radial */
.completion-radial-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  padding: 2px 2px;
  gap: 16px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.completion-donut-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;
}

.completion-donut-wrap svg {
  display: block;
  transform: rotate(-90deg);
  width: 56px;
  height: 56px;
}

.completion-donut-wrap .donut-bg {
  stroke: #F2F4F7;
  stroke-width: 5;
  fill: none;
}

.completion-donut-wrap .donut-progress {
  stroke: #12B76A;
  stroke-width: 5;
  stroke-linecap: round;
  fill: none;
  transition: stroke-dashoffset 400ms cubic-bezier(0.2, 0, 0, 1);
}

.completion-donut-wrap .donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: 1;
  color: #101828;
}

.completion-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 2px 0;
  gap: 4px;
}

.completion-recommended {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #101828;
}

.completion-hint {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body-strong);
  line-height: var(--gf-leading-body-strong);
  color: #667085;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Interests Section */
.profile-tags-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  padding: 0;
  gap: 6px;
  width: 100%;
}

.profile-pill-tag {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 5px 12px;
  gap: 8px;
  height: 30px;
  border: 1px solid #D0D5DD;
  border-radius: 20px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body-strong);
  line-height: var(--gf-leading-body-strong);
  color: #101828;
  background: #FFFFFF;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.profile-pill-tag:hover {
  border-color: #98A2B3;
  background: #F9FAFB;
}

/* Social Links Section */
.profile-social-icons-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  padding: 0;
  gap: 8px;
  width: 100%;
}

.profile-social-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1), filter 160ms cubic-bezier(0.2, 0, 0, 1);
  box-sizing: border-box;
  flex-shrink: 0;
}

.profile-social-circle-btn svg {
  width: 16px;
  height: 16px;
}

.profile-social-circle-btn:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.profile-social-circle-btn.social-sizemug {
  width: 32px;
  height: 32px;
  background: #0A0A0A;
}

.profile-social-circle-btn.social-facebook {
  background: linear-gradient(180deg, #18ACFE 0%, #2054CC 99.7%);
}

.profile-social-circle-btn.social-linkedin {
  background: #1275B1;
}

.profile-social-circle-btn.social-instagram {
  background: radial-gradient(75% 75% at 35.71% 75%, #B13589 0%, #C62F94 79.31%, #8A3AC8 100%);
  border-radius: 8px;
}

.profile-social-circle-btn.social-stackoverflow {
  background: #F48024;
}

.profile-social-circle-btn.social-dribbble {
  background: #E84C88;
}

.profile-social-circle-btn.social-behance {
  background: #2966F4;
}

/* Education Section */
.profile-education-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.profile-education-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.edu-school {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #101828;
}

.edu-degree {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-normal);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #667085;
}

.edu-years {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-normal);
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  color: #98A2B3;
}

/* One-line fields truncate instead of wrapping; the full value appears in a popover on hover
   (only when the text really is clipped). */
/* The x-for item wrapper carries no class; without this the nowrap rows stretch the sidebar. */
.profile-education-list > div {
  width: 100%;
  min-width: 0;
}

/* The x-for item wrapper carries no class; without this the nowrap rows stretch the sidebar. */
.profile-education-list > div {
  width: 100%;
  min-width: 0;
}

.gf-tip {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gf-tip__text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gf-tip__pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: max-content;
  max-width: 260px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #101828;
  color: #FFFFFF;
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  line-height: var(--gf-leading-caption);
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.18);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.gf-tip.is-truncated:hover .gf-tip__pop {
  opacity: 1;
  transform: none;
}

.profile-education-divider {
  width: 100%;
  height: 1px;
  background: #EEF1F5;
  border: none;
  margin: 6px 0;
}

/* Brainstorming Media Card */
.profile-brainstorming-card {
  width: 100%;
  height: 380px;
  min-height: 380px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  box-sizing: border-box;
  background: #101828;
  flex-shrink: 0;
}

.brainstorming-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.brainstorming-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
  z-index: 2;
}

.brainstorming-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 4px;
  z-index: 3;
}

.brainstorming-title {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-bold);
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.brainstorming-date {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   PROFILE SUB-TABS EXPANDED VIEWS (Companies, Events, Tutorials, Jobs)
   ========================================================================== */

.profile-tab-blue-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  font-weight: var(--gf-weight-semibold);
  color: #2966F4;
  margin: 0 0 16px 0;
}

.profile-tab-blue-heading .tab-blue-edit-icon {
  width: 18px;
  height: 18px;
  stroke: #2966F4;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.profile-tab-blue-heading .tab-blue-edit-icon:hover {
  transform: scale(1.1);
}

/* --- Companies Tab Full Grid --- */
.profile-companies-full-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .profile-companies-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .profile-companies-full-grid {
    grid-template-columns: 1fr;
  }
}

.profile-company-card-full {
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  min-height: 170px;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1), box-shadow 160ms cubic-bezier(0.2, 0, 0, 1);
}

.profile-company-card-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -4px rgba(16, 24, 40, 0.08);
}

.profile-company-card-full.card-bg-sizemug {
  background-color: #EEEEEE;
}

.profile-company-card-full.card-bg-techwave {
  background-color: #98F7C6;
}

.profile-company-card-full.card-bg-finanexus {
  background-color: #C3C6FA;
}

.profile-company-card-full.card-bg-medisphere {
  background-color: #B6D4FE;
}

.profile-company-card-full-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-full-logo-box {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.company-full-logo-box img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.company-full-name {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
}

.company-full-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body-strong);
  line-height: var(--gf-leading-body-strong);
  color: #344054;
  margin: 0;
}

/* --- Events Tab Featured Row --- */
.profile-events-section-block {
  margin-bottom: 28px;
  width: 100%;
}

.profile-featured-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1050px) {
  .profile-featured-events-grid {
    grid-template-columns: 1fr;
  }
}

.profile-featured-event-card {
  position: relative;
  height: 270px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
  background: #101828;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1), box-shadow 160ms cubic-bezier(0.2, 0, 0, 1);
}

.profile-featured-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(16, 24, 40, 0.15);
}

.featured-event-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.featured-event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 2;
  pointer-events: none;
}

.featured-event-edit-btn {
  position: relative;
  z-index: 3;
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1), transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.featured-event-edit-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.featured-event-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.featured-event-title {
  font-family: var(--gf-font);
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #FFFFFF;
  margin: 0;
  line-height: var(--gf-leading-card);
}

.featured-event-stats {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.featured-event-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.featured-event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body-strong);
  font-weight: var(--gf-weight-medium);
  color: #FFFFFF;
}

.featured-event-meta-item svg {
  width: 16px;
  height: 16px;
  stroke: #2966F4;
  fill: none;
  flex-shrink: 0;
}

/* --- Tutorials Tab: the shared tutorial card (.tut-card) in the same wrapping
   grid the Tutorials hub uses, so both places look identical. --- */
.profile-tutorials-grid {
  width: 100%;
  box-sizing: border-box;
}

/* --- Jobs Tab Grid --- */
.profile-jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* The shared job card's Alpine host must not become the grid item. */
.profile-job-card-host {
  display: contents;
}

.profile-jobs-empty {
  grid-column: 1 / -1;
  width: 100%;
}

@media (max-width: 1600px) {
  .profile-jobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .profile-jobs-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HERO JOURNEY COMPONENT STYLES
   Main Grid, Drafts View, Rearrange Modal, and Create Hero Studio
   ========================================================================== */

.hero-journey-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Top Action Toolbar */
.hero-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-toolbar-left,
.hero-toolbar-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.hero-btn-rearrange,
.hero-btn-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #344054;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.hero-btn-rearrange:hover,
.hero-btn-sort:hover {
  background: #F2F4F7;
  color: #101828;
}

.hero-btn-drafts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
  padding: 12px 22px;
  box-sizing: border-box;
  white-space: nowrap;
  background: #F2F4F7;
  border: none;
  border-radius: 24px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #344054;
  cursor: pointer;
  box-shadow: none;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.hero-btn-drafts:hover {
  background: #E4E7EC;
  border-color: transparent;
  color: #101828;
}

.hero-btn-create {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
  padding: 12px 24px;
  box-sizing: border-box;
  white-space: nowrap;
  background: #2966F4;
  border: none;
  border-radius: 24px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #FFFFFF;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: none;
}

.hero-btn-create:hover {
  background: #2054CC;
  box-shadow: none;
  transform: none;
}

/* The Sort control is the shared dropdown component with a labelled, icon-led
   trigger (components/dropdown-menu/menu.html); these rules only size that
   trigger like the neighbouring toolbar buttons. */
.gf-menu__trigger.hero-btn-sort {
  width: auto;
  height: auto;
  min-height: 40px;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  border-radius: 10px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #344054;
}

.gf-menu__trigger.hero-btn-sort .gf-menu__trigger-icon,
.gf-menu__trigger.hero-btn-sort .gf-menu__trigger-icon svg {
  width: 18px;
  height: 18px;
}

.gf-menu__trigger.hero-btn-sort .gf-menu__chevron,
.gf-menu__trigger.hero-btn-sort .gf-menu__chevron svg {
  width: 16px;
  height: 16px;
}

.gf-menu__trigger.hero-btn-sort .gf-menu__chevron {
  margin-left: 0;
  color: currentColor;
  opacity: 0.7;
}

/* Hero Cards Grid */
.hero-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .hero-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .hero-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* ==========================================================================
   REARRANGE HERO MODAL
   ========================================================================== */
.hero-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.hero-rearrange-dialog {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: heroModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroModalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-rearrange-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px 28px;
}

.hero-rearrange-head h2 {
  font-family: var(--gf-font);
  color: #101828;
  margin: 0;
}

/* The dialogs' titles take their size, leading and weight from the one modal-title standard
   (assets/css/dashboard/modal-titles.css, class `dashboard-modal-title`). */

.hero-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F2F4F7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475467;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.hero-modal-close-btn:hover {
  background: #EEF1F5;
  color: #101828;
}

.hero-rearrange-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 28px 24px 28px;
  max-height: 55vh;
  overflow-y: auto;
}

.hero-rearrange-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid #F2F4F7;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1), border-color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.hero-rearrange-item:hover {
  background: #F9FAFB;
  border-color: #EEF1F5;
}

.hero-rearrange-item.is-drag-over {
  border-color: #2966F4;
  background: #F5F8FF;
}

.hero-drag-handle {
  color: #98A2B3;
  cursor: grab;
  display: flex;
  align-items: center;
  padding: 4px;
  flex-shrink: 0;
}

.hero-drag-handle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.hero-drag-handle:active {
  cursor: grabbing;
}

.hero-rearrange-nudge {
  display: grid;
  place-items: center;
  padding: 2px;
  border: 0;
  background: none;
  color: #98A2B3;
  cursor: pointer;
  border-radius: 6px;
  transition: color 160ms cubic-bezier(0.2, 0, 0, 1), background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.hero-rearrange-nudge:hover:not(:disabled) {
  color: #101828;
  background: #EEF1F5;
}

.hero-rearrange-nudge:disabled {
  opacity: 0.45;
  cursor: default;
}

.hero-rearrange-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-rearrange-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.hero-rearrange-meta strong {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-rearrange-meta span {
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  font-weight: var(--gf-weight-normal);
  color: #667085;
}

.hero-rearrange-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid #F2F4F7;
  background: #FFFFFF;
}

.hero-btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 0 24px;
  border-radius: 999px;
  background: #F2F4F7;
  border: none;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #344054;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.hero-btn-cancel:hover {
  background: #EEF1F5;
  color: #101828;
}

.hero-btn-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 0 24px;
  border-radius: 999px;
  background: #2966F4;
  border: none;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #FFFFFF;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 2px 8px rgba(41, 112, 255, 0.25);
}

.hero-btn-save:hover {
  background: #2054CC;
}

/* ==========================================================================
   CREATE HERO STUDIO
   ========================================================================== */
.create-hero-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: calc(100dvh - 24px);
  min-height: 0;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.28);
  overflow: hidden;
  animation: heroModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-create-overlay {
  align-items: center;
  padding: 12px;
}

/* Header */
.create-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 14px 24px;
  border-bottom: 1px solid #EEF1F5;
}

.create-hero-head h1 {
  margin: 0;
  font-family: var(--gf-font);
  color: #101828;
}

.create-hero-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.create-hero-draft-btn,
.create-hero-publish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1), color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.create-hero-draft-btn {
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  color: #344054;
}

.create-hero-draft-btn:hover {
  background: #F9FAFB;
  color: #101828;
}

.create-hero-draft-btn svg {
  width: 18px;
  height: 18px;
}

.create-hero-publish-btn {
  background: #2966F4;
  color: #FFFFFF;
}

.create-hero-publish-btn:hover {
  background: #2054CC;
}

/* While a hero is uploading and saving, both buttons read as busy and cannot be pressed again. */
.create-hero-draft-btn:disabled,
.create-hero-publish-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.create-hero-draft-btn:disabled:hover,
.create-hero-publish-btn:disabled:hover {
  background: #2966F4;
}

.create-hero-draft-btn:disabled:hover {
  background: #FFFFFF;
}

.create-hero-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: create-hero-spin 700ms linear infinite;
}

.create-hero-draft-btn .create-hero-spinner {
  border-color: rgba(52, 64, 84, 0.25);
  border-top-color: #344054;
}

@keyframes create-hero-spin {
  to { transform: rotate(360deg); }
}

.create-hero-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1), color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.create-hero-close-btn:hover {
  background: #F2F4F7;
  color: #101828;
}

.create-hero-close-btn svg {
  width: 20px;
  height: 20px;
}

/* Body: stage + details rail */
.create-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 371px);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.create-hero-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  min-height: 0;
  padding: 16px 24px 20px;
}

.create-hero-canvas-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 240px;
  border-radius: 18px;
  background: #06080D;
  overflow: hidden;
}

.create-hero-canvas-media-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.create-hero-canvas-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.create-hero-canvas-media.is-contain {
  object-fit: contain;
}

/* An empty stage reads as a drop zone: dashed outline, cloud icon, the whole box clickable. */
.create-hero-canvas-wrap.is-empty {
  box-sizing: border-box;
  border: 2px dashed #D0D5DD;
  background: #F9FAFB;
  transition: border-color 160ms cubic-bezier(0.2, 0, 0, 1), background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.create-hero-canvas-wrap.is-empty:hover {
  border-color: #B2CCF8;
  background: #F4F7FE;
}

.create-hero-canvas-wrap.is-empty.is-dragover {
  border-color: #2966F4;
  background: #EEF4FF;
}

.create-hero-stage-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--gf-font);
  color: #667085;
  cursor: pointer;
}

.create-hero-stage-empty:focus-visible {
  outline: 2px solid #2966F4;
  outline-offset: -8px;
  border-radius: 16px;
}

.create-hero-dropzone-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #2966F4;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.create-hero-dropzone-icon svg {
  width: 28px;
  height: 28px;
}

.create-hero-dropzone-title {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
}

.create-hero-dropzone-hint {
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  font-weight: var(--gf-weight-normal);
  color: #667085;
}

/* Top overlay tools */
.create-hero-top-tools {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 15;
}

.create-hero-slide-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.65);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  white-space: nowrap;
}

.create-hero-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.65);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1), opacity 160ms cubic-bezier(0.2, 0, 0, 1);
}

.create-hero-tool-btn svg {
  width: 18px;
  height: 18px;
}

.create-hero-tool-btn:hover:not(:disabled) {
  background: rgba(16, 24, 40, 0.85);
}

.create-hero-tool-btn.is-active {
  background: #2966F4;
}

.create-hero-tool-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Playback bar (video slides) */
.create-hero-player-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
  z-index: 10;
}

.create-hero-scrub-track {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.create-hero-scrub-track:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 4px;
}

.create-hero-scrub-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: #FFFFFF;
}

.create-hero-playback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
}

.create-hero-playback-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.create-hero-player-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
}

.create-hero-player-icon svg {
  width: 16px;
  height: 16px;
}

.create-hero-player-rate {
  padding: 2px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
}

.create-hero-player-rate:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Slide reel */
.create-hero-reel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  --hero-reel-size: 100px;
}

.create-hero-reel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.create-hero-reel::-webkit-scrollbar {
  display: none;
}

.reel-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--hero-reel-size);
  height: var(--hero-reel-size);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #2966F4;
  color: #FFFFFF;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.reel-add-btn svg {
  width: 34px;
  height: 34px;
}

.reel-add-btn:hover {
  background: #2054CC;
}

.reel-thumb-item {
  position: relative;
  width: var(--hero-reel-size);
  height: var(--hero-reel-size);
  border-radius: 16px;
  border: 3px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
  box-sizing: border-box;
  background: #F2F4F7;
  transition: border-color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.reel-thumb-item.is-selected {
  border-color: #2966F4;
}

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

.reel-thumb-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #FFFFFF;
  color: #E02D3C;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.2);
}

.reel-thumb-delete svg {
  width: 15px;
  height: 15px;
}

.reel-thumb-delete:disabled {
  display: none;
}

.reel-thumb-play {
  position: absolute;
  bottom: 6px;
  left: 6px;
  display: inline-flex;
  color: #FFFFFF;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.reel-thumb-play svg {
  width: 20px;
  height: 20px;
}

.reel-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--hero-reel-size);
  height: var(--hero-reel-size);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #F2F4F7;
  color: #344054;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.reel-nav-btn:hover {
  background: #EAECF0;
  color: #101828;
}

.reel-nav-btn svg {
  width: 28px;
  height: 28px;
}

/* --------------------------------------------------------------------------
   Create Hero crop overlay + video trimmer
   -------------------------------------------------------------------------- */
.create-hero-canvas-media.is-cropping {
  object-fit: contain !important;
}

.create-hero-crop-layer {
  position: absolute;
  inset: 0;
  z-index: 22;
  touch-action: none;
}

.create-hero-crop-box {
  position: absolute;
  border: 2px solid #FFFFFF;
  box-sizing: border-box;
  cursor: move;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.create-hero-crop-grid-line {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.create-hero-crop-grid-line.is-v1,
.create-hero-crop-grid-line.is-v2 {
  top: 0;
  bottom: 0;
  width: 1px;
}

.create-hero-crop-grid-line.is-v1 { left: 33.333%; }
.create-hero-crop-grid-line.is-v2 { left: 66.666%; }

.create-hero-crop-grid-line.is-h1,
.create-hero-crop-grid-line.is-h2 {
  left: 0;
  right: 0;
  height: 1px;
}

.create-hero-crop-grid-line.is-h1 { top: 33.333%; }
.create-hero-crop-grid-line.is-h2 { top: 66.666%; }

.create-hero-crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  touch-action: none;
}

.create-hero-crop-handle.is-nw { top: -7px; left: -7px; cursor: nwse-resize; }
.create-hero-crop-handle.is-n { top: -7px; left: 50%; margin-left: -7px; cursor: ns-resize; }
.create-hero-crop-handle.is-ne { top: -7px; right: -7px; cursor: nesw-resize; }
.create-hero-crop-handle.is-e { top: 50%; right: -7px; margin-top: -7px; cursor: ew-resize; }
.create-hero-crop-handle.is-se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.create-hero-crop-handle.is-s { bottom: -7px; left: 50%; margin-left: -7px; cursor: ns-resize; }
.create-hero-crop-handle.is-sw { bottom: -7px; left: -7px; cursor: nesw-resize; }
.create-hero-crop-handle.is-w { top: 50%; left: -7px; margin-top: -7px; cursor: ew-resize; }

.create-hero-crop-actions {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.create-hero-crop-cancel,
.create-hero-crop-apply {
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  white-space: nowrap;
}

.create-hero-crop-cancel {
  background: #FFFFFF;
  color: #344054;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.create-hero-crop-apply {
  background: #2966F4;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(41, 102, 244, 0.4);
}

.create-hero-crop-apply:hover { background: #2054CC; }

.create-hero-trimmer {
  position: absolute;
  top: 64px;
  left: 50%;
  z-index: 21;
  width: min(92%, 860px);
  padding: 10px;
  border-radius: 14px;
  background: rgba(16, 24, 40, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.create-hero-trimmer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.create-hero-trimmer-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  cursor: pointer;
  flex: 0 0 auto;
}

.create-hero-trimmer-nav:hover { background: rgba(255, 255, 255, 0.2); }
.create-hero-trimmer-nav svg { width: 16px; height: 16px; }

.create-hero-trimmer-track {
  position: relative;
  flex: 1 1 auto;
  height: 58px;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #06080D;
  cursor: ew-resize;
  touch-action: none;
}

.create-hero-trimmer-frames {
  display: flex;
  width: 100%;
  height: 100%;
}

.create-hero-trimmer-frame {
  flex: 1 1 0;
  min-width: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.create-hero-trimmer-selection {
  position: absolute;
  top: 0;
  bottom: 0;
  box-sizing: border-box;
  border-left: 3px solid #FFFFFF;
  border-right: 3px solid #FFFFFF;
  background: rgba(41, 102, 244, 0.26);
}

.create-hero-trimmer-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  border-radius: 3px;
  background: #FFFFFF;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  cursor: ew-resize;
  touch-action: none;
}

.create-hero-trimmer-handle.is-start { left: -7px; }
.create-hero-trimmer-handle.is-end { right: -7px; }

.create-hero-trimmer-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.create-hero-trimmer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.create-hero-trimmer-range {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  font-weight: var(--gf-weight-medium);
}

.create-hero-trimmer-cancel,
.create-hero-trimmer-apply {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
}

.create-hero-trimmer-cancel {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.create-hero-trimmer-apply {
  background: #2966F4;
  color: #FFFFFF;
}

.create-hero-trimmer-apply:hover { background: #2054CC; }

.create-hero-trim-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
}

.create-hero-trim-trigger:hover { background: rgba(255, 255, 255, 0.28); }
.create-hero-trim-trigger svg { width: 14px; height: 14px; }

/* Right rail: details + preferences */
.create-hero-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 0;
  padding: 24px 24px 28px;
  border-left: 1px solid #EEF1F5;
  overflow-y: auto;
}

.create-hero-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Two classes: the dashboard sets a 20px h3 size that would otherwise win. */
.create-hero-body .create-hero-section-title {
  margin: 0;
  font-family: var(--gf-font);
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
}

.create-hero-field {
  width: 100%;
  align-self: stretch;
  gap: 10px;
}

/* The rail keeps the shared field height and type, so it reads like account setup. */
.create-hero-right .gf-filter-select--field .gf-filter-select__trigger,
.create-hero-right .gf-field__shell,
.create-hero-right .gf-date-field__trigger {
  min-height: 48px;
}

.create-hero-right .gf-field__hint {
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
}

.create-hero-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.create-hero-label {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  font-weight: var(--gf-weight-medium);
  color: #344054;
}

.create-hero-counter {
  color: #98A2B3;
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  font-weight: var(--gf-weight-medium);
  white-space: nowrap;
}

.create-hero-select-host {
  width: 100%;
}

/* Responsive: narrower rail, then a single column, then full screen */
/* Tablet and below: header, media, media cards, then the form — one normal flow so the
   stage can never overlap the details rail. The body itself scrolls. */
@media (max-width: 1180px) {
  .hero-create-overlay {
    align-items: stretch;
    padding: 0;
  }

  .create-hero-dialog {
    max-width: none;
    height: 100dvh;
    border-radius: 0;
  }

  .create-hero-body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .create-hero-stage {
    flex: 0 0 auto;
    gap: 12px;
    padding: 16px;
  }

  .create-hero-canvas-wrap {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .create-hero-reel-wrap {
    --hero-reel-size: 90px;
  }

  .create-hero-right {
    flex: 0 0 auto;
    border-left: 0;
    border-top: 1px solid #EEF1F5;
    overflow: visible;
    padding: 20px 16px 32px;
  }
}

@media (max-width: 960px) {
  .create-hero-reel-wrap {
    --hero-reel-size: 80px;
  }
}

@media (max-width: 560px) {
  .create-hero-head {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
  }

  .create-hero-head h1 {
    flex: 1 1 100%;
  }

  .create-hero-head-actions {
    margin-left: auto;
    gap: 6px;
  }

  .create-hero-draft-btn {
    width: 44px;
    padding: 0;
  }

  .create-hero-draft-btn span {
    display: none;
  }

  .create-hero-publish-btn {
    padding: 0 16px;
  }

  .create-hero-top-tools {
    top: 10px;
    right: 10px;
    gap: 6px;
  }

  .create-hero-tool-btn {
    width: 32px;
    height: 32px;
  }

  .create-hero-slide-badge {
    padding: 5px 10px;
  }

  .create-hero-player-bar {
    padding: 12px 14px;
  }

  .create-hero-playback-left {
    gap: 12px;
  }

  .create-hero-body .create-hero-section-title {
    font-size: var(--gf-text-card);
  }

  .create-hero-reel-wrap {
    --hero-reel-size: 70px;
  }

  .create-hero-trimmer {
    top: 52px;
    width: 96%;
    padding: 8px;
  }

  .create-hero-trimmer-track {
    height: 46px;
  }

  .create-hero-crop-actions {
    bottom: 12px;
  }

  .create-hero-crop-cancel,
  .create-hero-crop-apply {
    height: 38px;
    padding: 0 18px;
  }
}

.profile-empty-note {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  color: #667085;
  margin: 0;
  width: 100%;
  min-height: 150px;
  padding: 18px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.profile-empty-note::before {
  content: "";
  display: block;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  background: url("../../images/community-empty-state.svg") center / contain no-repeat;
}

/* ==========================================================================
   COLLABORATION PROFILE (VIEWER POV) STYLES
   ========================================================================== */

/* Blue Request Collaboration Pill Button */
.profile-request-collab-btn {
  height: 36px;
  padding: 6px 14px;
  background: #2966F4;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-control);
  line-height: var(--gf-leading-control);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  box-sizing: border-box;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.profile-request-collab-btn svg {
  width: 15px;
  height: 15px;
}

.profile-request-collab-btn:hover {
  background: #2054CC;
  transform: translateY(-1px);
}

.profile-request-collab-btn.is-requested {
  background: #E4E7EC;
  color: #344054;
}

.profile-request-collab-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
  animation: gf-collab-request-pulse 1.2s ease-in-out infinite;
}

@keyframes gf-collab-request-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.95;
  }
}

/* External Link Pill Arrow Button on Event Cards (Image 1) */
.featured-event-link-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: #2966F4;
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 3;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.15);
}

.featured-event-link-btn:hover {
  background: #2054CC;
  transform: scale(1.08);
}

/* Apply Now button on Job Card (Viewer POV, Image 2) */
.profile-job-apply-btn {
  height: 38px;
  padding: 8px 20px;
  background: #0A0A0A;
  border-radius: 20px;
  color: #FFFFFF;
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  text-decoration: none;
}

.profile-job-apply-btn:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

/* Back button in Collaboration view */
.profile-collab-back-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-collab-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #EAECF0;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-control);
  font-weight: var(--gf-weight-medium);
  color: #344054;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.profile-collab-back-btn:hover {
  background: #F9FAFB;
  border-color: #D0D5DD;
  color: #101828;
}

/* Viewer POV Hero Card Like count pill / active state (Image 4) */
.hero-like-btn-active {
  background: #FFF1F3 !important;
  color: #E02D3C !important;
  border-color: #FECDCA !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 14px !important;
  border-radius: 20px !important;
  width: auto !important;
}

.hero-like-btn-active span {
  font-family: var(--gf-font);
  font-size: var(--gf-text-control);
  font-weight: var(--gf-weight-semibold);
  color: #E02D3C;
}
