html {
  height: 100%;
}

body.profile-body {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.profile-body > .profile-page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

body.profile-body > footer {
  margin-top: auto;
  flex-shrink: 0;
}

.profile-page.fit-margin {
  padding-top: 20px;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
}

.profile-page {
  padding-bottom: 56px;
}

.profile-view {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px 32px;
  align-items: start;
}

.profile-view-aside {
  text-align: center;
}

.profile-view-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  background: #f2f4f2;
  margin-bottom: 16px;
}

.profile-view-aside h1 {
  margin: 0 0 6px;
  color: #111;
  font-family: "AvenirNext-DemiBold", "Avenir Next", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.profile-view-meta {
  margin: 0 0 16px;
  color: #9a9a9a;
  font-size: 14px;
}

.profile-edit-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 28px;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  font-family: "AvenirNext-DemiBold", "Avenir Next", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.profile-edit-link:hover,
.profile-edit-link:focus {
  color: #fff;
}

.profile-aside-block {
  text-align: left;
  margin-bottom: 22px;
}

.profile-aside-block h3 {
  margin: 0 0 10px;
  color: #111;
  font-size: 16px;
  font-weight: 700;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef6d8;
  color: #3d5c10;
  font-size: 13px;
  font-weight: 500;
}

.profile-chip button {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7a8f4a;
  font-size: 14px;
  line-height: 1;
  box-shadow: none;
}

.profile-media {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.profile-media-tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ececec;
  min-height: 180px;
}

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

.profile-media-tile.is-showreel img {
  filter: brightness(0.82);
}

.profile-media-play {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-media-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
}

.profile-media-caption strong,
.profile-media-caption span {
  display: block;
}

.profile-media-caption strong {
  font-size: 16px;
}

.profile-media-caption span {
  font-size: 13px;
  opacity: 0.9;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.profile-facts strong,
.profile-facts span {
  display: block;
}

.profile-facts strong {
  color: #111;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-facts span {
  color: #9a9a9a;
  font-size: 13px;
}

.profile-bio-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  margin-bottom: 28px;
}

.profile-bio-row p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats strong {
  color: #111;
  font-size: 22px;
  font-weight: 700;
}

.profile-stats span {
  color: #9a9a9a;
  font-size: 13px;
}

.profile-movies-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.profile-movies-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.profile-movies-add {
  color: #7ebc11;
  font-size: 15px;
  font-weight: 600;
}

.profile-movies-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.profile-movies-grid img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}

.profile-edit {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px 36px;
  align-items: start;
  width: 100%;
}

.profile-edit-main,
.profile-edit-main > [data-tab-panel] {
  min-width: 0;
  width: 100%;
  max-width: none;
}

.profile-edit-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-edit-nav button {
  width: 100%;
  margin: 0;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #222;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  line-height: 1.2;
}

.profile-edit-nav button.is-active {
  border-color: #7ebc11;
  color: #111;
}

.profile-edit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.profile-edit-top h2 {
  margin: 0;
  color: #06200d;
  font-size: 26px;
  font-weight: 700;
}

.profile-save {
  border: 0;
  background: transparent;
  color: #7ebc11;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
}

.profile-edit-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.profile-edit-photo-wrap {
  text-align: center;
}

.profile-edit-photo {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  background: #f2f4f2;
  display: block;
  margin: 0 auto 14px;
}

.profile-upload {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 22px;
}

.profile-upload input {
  display: none;
}

.profile-subtabs {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
}

.profile-subtabs button {
  border: 0;
  background: transparent;
  padding: 0 0 8px;
  margin: 0;
  color: #888;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.profile-subtabs button.is-active {
  color: #111;
  box-shadow: inset 0 -3px 0 #7ebc11;
}

.profile-hint {
  color: #9a9a9a;
  font-size: 13px;
  margin: 0 0 12px;
}

.profile-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-portfolio-item,
.profile-portfolio-add {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f5f1;
}

.profile-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-portfolio-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #666;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.profile-portfolio-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d5d5d5;
  color: #888;
  font-size: 12px;
  cursor: pointer;
}

.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-field.is-full {
  grid-column: 1 / -1;
}

.profile-field label {
  color: #333;
  font-size: 13px;
  font-weight: 600;
}

.profile-field input,
.profile-field select,
.profile-field textarea {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e4e4e4;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 8px 0;
  height: auto;
  font-size: 15px;
  color: #222;
}

.profile-field textarea {
  min-height: 120px;
  resize: vertical;
  border: 1px solid #ececec;
  border-radius: 4px;
  padding: 12px;
}

.profile-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-interest {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #f4f7ee;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  margin: 0;
}

.profile-interest input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid #cfd6c4;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.profile-interest input:checked {
  border-color: #7ebc11;
  background: #7ebc11;
  box-shadow: inset 0 0 0 3px #fff;
}

.profile-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-stepper button {
  width: 36px;
  height: 36px;
  border: 1.5px solid #7ebc11;
  border-radius: 50%;
  background: #fff;
  color: #7ebc11;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  margin: 0;
}

.profile-stepper span {
  flex: 1;
  text-align: center;
  border-bottom: 1px solid #e4e4e4;
  padding: 8px 0;
  font-weight: 600;
}

.profile-unit {
  display: inline-flex;
  gap: 0;
  margin-left: auto;
}

.profile-unit button {
  border: 0;
  background: #f1f1f1;
  color: #888;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  cursor: pointer;
}

.profile-unit button.is-active {
  background: #e1b41d;
  color: #fff;
}

.profile-field-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

[hidden],
.profile-portfolio-grid[hidden],
.profile-showreel-wrap[hidden],
.profile-company-step[hidden],
.profile-modal[hidden],
.profile-edit-top[hidden],
[data-tab-panel][hidden],
[data-subpanel][hidden] {
  display: none !important;
}

.profile-showreel-wrap {
  text-align: left;
}

.profile-showreel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-showreel-item {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.profile-showreel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}

.profile-showreel-item .profile-media-play {
  top: 50%;
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.profile-upload-reels {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.profile-upload-reels input {
  display: none;
}

.profile-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 16px;
}

.profile-work-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  margin-bottom: 10px;
}

.profile-work-card h4 {
  margin: 0 0 4px;
  color: #111;
  font-size: 16px;
  font-weight: 700;
}

.profile-work-card p {
  margin: 0;
  color: #888;
  font-size: 13px;
}

.profile-company-banner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  min-height: 180px;
  margin-bottom: 28px;
}

.profile-company-banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.45);
}

.profile-company-banner div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.profile-company-banner h3 {
  margin: 0 0 6px;
  font-size: 36px;
  font-weight: 700;
}

.profile-company-banner p {
  margin: 0;
  font-size: 16px;
}

.profile-company-head,
.profile-password {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

.profile-password form,
.profile-password .profile-field,
.profile-password .profile-field label {
  text-align: left;
}

.profile-company-head h2,
.profile-password h2,
.profile-kyc-head h2 {
  margin: 0 0 8px;
  color: #111;
  font-size: 26px;
  font-weight: 700;
}

.profile-company-head p,
.profile-password p,
.profile-kyc-head p {
  margin: 0 0 22px;
  color: #888;
  font-size: 15px;
}

.profile-company-form,
.profile-password form {
  width: 100%;
  max-width: none;
  margin: 0;
}

.profile-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-role {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
}

.profile-role input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid #cfd6c4;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.profile-role:has(input:checked) {
  background: #f4f7ee;
}

.profile-role input:checked {
  border-color: #7ebc11;
  background: #7ebc11;
  box-shadow: inset 0 0 0 3px #fff;
}

.profile-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.profile-address-grid input {
  width: 100%;
  margin: 0;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: none;
  padding: 10px 12px;
  height: auto;
}

.profile-terms {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 8px 0 18px;
  color: #333;
  font-size: 14px;
}

.profile-terms input {
  accent-color: #7ebc11;
  margin: 0;
}

.profile-terms a {
  color: #7ebc11;
}

.profile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  margin: 0 auto;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(to right, #7ebc11, #e1b41d);
  color: #fff;
  padding: 12px 36px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

.profile-company-form .profile-cta,
.profile-password .profile-cta,
.profile-modal-card .profile-cta,
.profile-company-head .profile-cta {
  display: flex;
}

.profile-kyc-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0 0 8px;
  text-align: left;
}

.profile-icon-btn {
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.profile-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border: 1.5px dashed #d8d8d8;
  border-radius: 12px;
  background: #fafafa;
  color: #888;
  padding: 20px;
  cursor: pointer;
}

.profile-dropzone strong {
  color: #333;
  font-size: 16px;
}

.profile-form-status {
  margin: 0 0 12px;
  color: #c0392b;
  font-size: 13px;
  text-align: left;
}

.profile-form-status.is-error {
  color: #c0392b;
}

.profile-form-status.is-ok {
  color: #7ebc11;
}

.profile-password .profile-field input,
.profile-password .profile-field input::placeholder,
.profile-password .profile-field input::-webkit-input-placeholder {
  border: 0;
  border-bottom: 1px solid #e4e4e4;
  border-radius: 0;
  text-align: left;
  padding-left: 0;
}

.profile-password .profile-field:last-of-type input {
  border-bottom: 0;
}

.profile-password .profile-cta {
  display: inline-flex;
  width: auto;
  margin: 20px 0 0;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  padding: 24px;
}

.profile-modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  padding: 32px 36px 28px;
  text-align: center;
}

.profile-modal-card h2 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 700;
}

.profile-modal-card > p {
  margin: 0 0 22px;
  color: #888;
}

.profile-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.profile-addwork-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  text-align: left;
  margin-bottom: 16px;
}

.profile-addwork-photo {
  text-align: center;
}

.profile-addwork-photo img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  margin-bottom: 10px;
}

.profile-addwork-photo .profile-upload {
  margin-bottom: 0;
}

body.profile-modal-open {
  overflow: hidden;
}

.profile-tab-soon {
  color: #888;
  font-size: 16px;
  padding: 48px 0;
}

.profile-save-status {
  margin: 0 16px 0 auto;
  color: #7ebc11;
  font-size: 13px;
}

@media only screen and (max-width: 1100px) {
  .profile-view,
  .profile-edit,
  .profile-edit-body,
  .profile-bio-row,
  .profile-facts,
  .profile-media,
  .profile-movies-grid,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .profile-facts,
  .profile-media,
  .profile-movies-grid,
  .profile-work-grid,
  .profile-role-grid,
  .profile-address-grid,
  .profile-addwork-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-company-banner h3 {
    font-size: 28px;
  }
}
