.profile-view {
  --profile-accent: #ffd400;
  --profile-bg: #08090b;
  --profile-surface: #141519;
  --profile-surface-soft: #191b20;
  --profile-line: rgba(255, 255, 255, .09);
  --profile-text: #f4f5f7;
  --profile-muted: #9297a3;
  --profile-strong: #e7e9ed;
  --profile-nav-text: #d8dbe1;
  --profile-icon: #666c78;
  --profile-input: #202228;
  --profile-input-focus: #24272d;
  --profile-placeholder: #696e79;
  --profile-control-text: #cfd2d8;
  --profile-row-hover: rgba(255, 255, 255, .018);
  --profile-check-border: #555b66;
  --profile-poster: #202228;
  --profile-check-mark: #08090b;
  --profile-radius: 12px;
  background: var(--profile-bg);
  color: var(--profile-text);
}

html[data-theme="white"] .profile-view {
  --profile-accent: #a87900;
  --profile-bg: #f5f6f8;
  --profile-surface: #ffffff;
  --profile-surface-soft: #f0f2f5;
  --profile-line: rgba(20, 27, 38, .11);
  --profile-text: #171a20;
  --profile-muted: #697180;
  --profile-strong: #252a33;
  --profile-nav-text: #343a46;
  --profile-icon: #8a92a0;
  --profile-input: #f1f3f6;
  --profile-input-focus: #ffffff;
  --profile-placeholder: #8a92a0;
  --profile-control-text: #454c59;
  --profile-row-hover: rgba(17, 24, 39, .035);
  --profile-check-border: #a5acb8;
  --profile-poster: #e8ebef;
  --profile-check-mark: #171a20;
}

.profile-page {
  box-sizing: border-box;
  display: block;
  margin: 0 auto 56px;
  max-width: 1600px;
  padding: 86px 34px 0;
  width: calc(100% - 110px);
}

.profile-hero {
  animation: profile-rise .48s ease-out both;
  background-position: center 38%;
  background-size: cover;
  height: 280px;
  overflow: hidden;
  position: relative;
  border-radius: var(--profile-radius) var(--profile-radius) 0 0;
}

.profile-hero__shade {
  background: linear-gradient(90deg, rgba(7, 8, 10, .95) 0%, rgba(7, 8, 10, .72) 40%, rgba(7, 8, 10, .18) 76%),
              linear-gradient(0deg, rgba(7, 8, 10, .92) 0%, transparent 58%);
  inset: 0;
  position: absolute;
}

.profile-hero__content {
  align-items: flex-end;
  bottom: 0;
  display: flex;
  gap: 24px;
  left: 0;
  padding: 36px 42px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.profile-avatar,
.profile-avatar .jQuery-image-upload,
.profile-avatar .jQuery-image-upload-file,
.profile-avatar .mxui-user-avat {
  border-radius: 50%;
  height: 94px;
  width: 94px;
}

.profile-avatar {
  border: 3px solid rgba(255, 255, 255, .92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  flex: 0 0 94px;
  margin: 0;
  overflow: visible;
  position: relative;
}

.profile-avatar .mxui-user-avat {
  display: block;
  object-fit: cover;
}

.profile-avatar__edit {
  background: rgba(8, 9, 11, .82);
  bottom: -7px;
  color: #fff;
  font-size: 10px;
  left: 50%;
  line-height: 22px;
  min-width: 48px;
  padding: 0 8px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 5px;
}

.profile-avatar__upload {
  background: rgba(0, 0, 0, .5);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  height: 94px;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .2s ease;
  width: 94px;
}

.profile-avatar:hover .profile-avatar__upload,
.profile-avatar:focus-within .profile-avatar__upload {
  opacity: 1;
}

.profile-identity {
  min-width: 0;
}

.profile-identity__eyebrow,
.profile-section-heading,
.profile-metric__label {
  color: var(--profile-muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-identity h1 {
  color: #fff;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  margin: 5px 0 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-identity__meta {
  align-items: center;
  color: rgba(255, 255, 255, .7);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 9px;
}

.profile-dot {
  background: rgba(255, 255, 255, .36);
  border-radius: 50%;
  height: 3px;
  width: 3px;
}

.profile-status {
  border: 1px solid rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .76);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 21px;
  padding: 0 8px;
  border-radius: 4px;
}

.profile-status--vip {
  border-color: var(--profile-accent);
  color: var(--profile-accent);
}

.profile-hero__actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.profile-action {
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff !important;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 42px;
  min-width: 110px;
  padding: 0 18px;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.profile-action:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-1px);
}

.profile-action--primary {
  background: var(--profile-accent);
  border-color: var(--profile-accent);
  color: #0a0a0a !important;
}

.profile-action--primary:hover {
  background: #ffe04a;
}

.profile-metrics {
  animation: profile-rise .48s .08s ease-out both;
  background: var(--profile-surface);
  border-bottom: 1px solid var(--profile-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 24px;
  border-radius: 0 0 var(--profile-radius) var(--profile-radius);
}

.profile-metric {
  border-right: 1px solid var(--profile-line);
  min-width: 0;
  padding: 21px 24px;
}

.profile-metric:last-child {
  border-right: 0;
}

.profile-metric strong {
  color: var(--profile-text);
  display: block;
  font-size: 17px;
  font-weight: 650;
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-workspace {
  animation: profile-rise .48s .14s ease-out both;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  padding-top: 34px;
}

.profile-nav,
.profile-details {
  background: var(--profile-surface);
  border-top: 2px solid var(--profile-line);
  border-radius: var(--profile-radius);
}

.profile-nav {
  align-self: start;
  padding: 24px 20px 20px;
}

.profile-nav .profile-section-heading {
  padding: 0 12px 14px;
}

.profile-nav__item {
  align-items: center;
  border-top: 1px solid var(--profile-line);
  color: var(--profile-nav-text) !important;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 12px;
  transition: background .18s ease, color .18s ease, padding .18s ease;
}

.profile-nav__item i {
  color: var(--profile-icon);
  font-size: 23px;
  font-style: normal;
  transition: color .18s ease, transform .18s ease;
}

.profile-nav__item:hover,
.profile-nav__item.is-current {
  background: var(--profile-surface-soft);
  color: var(--profile-text) !important;
  padding-left: 16px;
  border-radius: 7px;
}

.profile-nav__item:hover i,
.profile-nav__item.is-current i {
  color: var(--profile-accent);
  transform: translateX(2px);
}

.profile-nav__item.is-current {
  box-shadow: inset 2px 0 var(--profile-accent);
}

.profile-nav__logout {
  border: 1px solid rgba(255, 77, 94, .36);
  color: #ff6675 !important;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 20px;
  padding: 12px 14px;
  text-align: center;
  transition: background .18s ease, border-color .18s ease;
  border-radius: 7px;
}

.profile-nav__logout:hover {
  background: rgba(255, 40, 62, .09);
  border-color: rgba(255, 77, 94, .68);
}

.profile-details {
  min-width: 0;
  padding: 28px 32px 32px;
}

.profile-details__header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
}

.profile-details__header h2 {
  color: var(--profile-text);
  font-size: 24px;
  font-weight: 650;
  margin: 7px 0 0;
}

.profile-details__intro {
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 8px 0 0;
}

.profile-details__header > a {
  border-bottom: 1px solid rgba(255, 212, 0, .55);
  color: var(--profile-accent) !important;
  font-size: 13px;
  padding: 3px 0 5px;
}

.profile-data-list {
  margin: 0;
}

.profile-data-row {
  align-items: center;
  border-top: 1px solid var(--profile-line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(150px, 30%) minmax(0, 1fr);
  min-height: 62px;
}

.profile-data-row dt {
  color: var(--profile-muted);
  font-size: 13px;
}

.profile-data-row dd {
  color: var(--profile-strong);
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
}

.profile-membership-note {
  align-items: center;
  background: var(--profile-surface-soft);
  border-left: 2px solid var(--profile-accent);
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 8px;
}

.profile-membership-note span,
.profile-membership-note p {
  color: var(--profile-muted);
  font-size: 12px;
  margin: 0;
}

.profile-membership-note strong {
  color: var(--profile-text);
  display: block;
  font-size: 15px;
  margin-top: 5px;
}

.profile-membership-note > a {
  color: var(--profile-accent) !important;
  font-size: 13px;
  font-weight: 700;
}

.profile-details--form {
  padding-bottom: 0;
}

.profile-form__group {
  border-top: 1px solid var(--profile-line);
  padding: 26px 0;
}

.profile-form__group h3 {
  color: var(--profile-text);
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 7px;
}

.profile-form__help {
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 760px;
}

.profile-form__row {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(150px, 27%) minmax(0, 1fr);
  margin-top: 14px;
}

.profile-form__row label {
  color: var(--profile-muted);
  font-size: 13px;
}

.profile-form__row label em {
  color: #ff6675;
  font-style: normal;
}

.profile-form__row input {
  background: var(--profile-input);
  border: 1px solid transparent;
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--profile-text);
  font-family: inherit;
  font-size: 14px;
  height: 50px;
  outline: 0;
  padding: 0 14px;
  transition: border-color .18s ease, background .18s ease;
  width: 100%;
}

.profile-form__row input::placeholder {
  color: var(--profile-placeholder);
}

.profile-form__row input:focus {
  background: var(--profile-input-focus);
  border-color: var(--profile-accent);
}

.profile-form__static {
  color: var(--profile-strong);
  font-size: 14px;
  padding: 4px 0;
}

.profile-setting-row {
  align-items: center;
  border-top: 1px solid var(--profile-line);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  min-height: 74px;
}

.profile-setting-row:first-of-type {
  margin-top: 18px;
}

.profile-setting-row > div:first-child {
  min-width: 0;
}

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

.profile-setting-row strong {
  color: var(--profile-strong);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-setting-row > div:first-child span {
  color: var(--profile-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.profile-inline-action {
  background: transparent;
  border: 1px solid rgba(255, 212, 0, .42);
  border-radius: 7px;
  color: var(--profile-accent) !important;
  cursor: pointer;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 32px;
  padding: 0 13px;
}

.profile-inline-action--danger {
  border-color: rgba(255, 77, 94, .38);
  color: #ff6675 !important;
}

.profile-verified,
.profile-muted-state {
  color: #55d68b !important;
  font-size: 12px;
  font-weight: 700;
}

.profile-muted-state {
  color: var(--profile-muted) !important;
  font-weight: 500;
}

.profile-form__footer {
  background: var(--profile-surface-soft);
  margin: 0 -32px;
  padding: 20px 32px;
  text-align: right;
}

.profile-save-button {
  background: var(--profile-accent);
  border: 0;
  border-radius: 8px;
  color: #090909;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  min-height: 42px;
  padding: 0 24px;
}

.profile-save-button:disabled,
.profile-inline-action:disabled {
  cursor: wait;
  opacity: .6;
}

.profile-record-count {
  color: var(--profile-muted);
  font-size: 12px;
  padding-top: 10px;
}

.profile-toolbar {
  border-top: 1px solid var(--profile-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}

.profile-toolbar__button {
  background: transparent;
  border: 1px solid var(--profile-line);
  border-radius: 7px;
  color: var(--profile-control-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  min-height: 38px;
  padding: 0 12px;
}

.profile-toolbar__button:hover {
  border-color: rgba(255, 212, 0, .48);
  color: var(--profile-accent);
}

.profile-toolbar__button--danger:hover {
  border-color: rgba(255, 77, 94, .55);
  color: #ff6675;
}

.profile-media-list {
  border-bottom: 1px solid var(--profile-line);
}

.profile-media-row {
  align-items: center;
  border-top: 1px solid var(--profile-line);
  display: grid;
  gap: 18px;
  grid-template-columns: 22px 64px minmax(0, 1fr) auto;
  min-height: 108px;
  padding: 15px 0;
  transition: background .18s ease, transform .18s ease;
}

.profile-media-row:hover {
  background: var(--profile-row-hover);
  transform: translateX(2px);
}

.profile-check {
  cursor: pointer;
  height: 18px;
  position: relative;
  width: 18px;
}

.profile-check input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.profile-check span {
  border: 1px solid var(--profile-check-border);
  box-sizing: border-box;
  display: block;
  height: 16px;
  position: relative;
  width: 16px;
  border-radius: 4px;
}

.profile-check input:checked + span {
  background: var(--profile-accent);
  border-color: var(--profile-accent);
}

.profile-check input:checked + span::after {
  border: solid var(--profile-check-mark);
  border-width: 0 2px 2px 0;
  content: '';
  height: 7px;
  left: 5px;
  position: absolute;
  top: 2px;
  transform: rotate(45deg);
  width: 3px;
}

.profile-check input:focus-visible + span {
  outline: 2px solid var(--profile-accent);
  outline-offset: 3px;
}

.profile-media-row__poster {
  background: var(--profile-poster);
  display: block;
  border-radius: 7px;
  height: 84px;
  overflow: hidden;
  width: 62px;
}

.profile-media-row__poster img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-media-row__body {
  min-width: 0;
}

.profile-media-row__type,
.profile-media-row__meta {
  color: var(--profile-muted);
  display: block;
  font-size: 12px;
}

.profile-media-row__type {
  color: var(--profile-accent);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.profile-media-row__body h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-media-row__body h3 a {
  color: var(--profile-strong) !important;
}

.profile-media-row__action {
  border-bottom: 1px solid rgba(255, 212, 0, .48);
  color: var(--profile-accent) !important;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 0;
  white-space: nowrap;
}

.profile-empty {
  padding: 74px 24px;
  text-align: center;
}

.profile-empty strong {
  color: var(--profile-text);
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.profile-empty p {
  color: var(--profile-muted);
  font-size: 13px;
  margin: 0 auto 18px;
}

.profile-empty a {
  border-bottom: 1px solid rgba(255, 212, 0, .5);
  color: var(--profile-accent) !important;
  font-size: 13px;
}

.profile-pagination {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: center;
  padding-top: 24px;
}

.profile-pagination a,
.profile-pagination span {
  color: var(--profile-muted);
  font-size: 12px;
}

.profile-pagination a {
  border: 1px solid var(--profile-line);
  color: var(--profile-strong) !important;
  padding: 7px 12px;
  border-radius: 7px;
}

.profile-pagination a.is-disabled {
  opacity: .35;
  pointer-events: none;
}

.profile-action:focus-visible,
.profile-nav a:focus-visible,
.profile-details a:focus-visible {
  outline: 2px solid var(--profile-accent);
  outline-offset: 3px;
}

@keyframes profile-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .profile-page {
    padding-left: 22px;
    padding-right: 22px;
    width: calc(100% - 72px);
  }

  .profile-workspace {
    gap: 22px;
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .profile-page {
    margin-bottom: 90px;
    padding: 72px 0 0 !important;
    width: 100%;
  }

  .profile-hero {
    background-position: center center;
    height: 238px;
  }

  .profile-hero__shade {
    background: linear-gradient(0deg, rgba(7, 8, 10, .98) 0%, rgba(7, 8, 10, .5) 58%, rgba(7, 8, 10, .12) 100%);
  }

  .profile-hero__content {
    align-items: center;
    gap: 15px;
    padding: 24px 18px;
  }

  .profile-avatar,
  .profile-avatar .jQuery-image-upload,
  .profile-avatar .jQuery-image-upload-file,
  .profile-avatar .mxui-user-avat,
  .profile-avatar__upload {
    height: 72px;
    width: 72px;
  }

  .profile-avatar {
    flex-basis: 72px;
  }

  .profile-identity h1 {
    font-size: 22px;
  }

  .profile-identity__meta {
    font-size: 11px;
    gap: 7px;
  }

  .profile-hero__actions {
    display: none;
  }

  .profile-metrics {
    padding: 0;
  }

  .profile-metric {
    padding: 17px 14px;
  }

  .profile-metric strong {
    font-size: 13px;
  }

  .profile-metric__label {
    font-size: 9px;
  }

  .profile-workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 12px 0;
  }

  .profile-nav,
  .profile-details {
    border-top-color: var(--profile-line);
  }

  .profile-nav {
    align-self: stretch;
    display: flex;
    gap: 8px;
    order: 1;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
    width: auto;
  }

  .profile-details {
    order: 2;
  }

  .profile-nav::-webkit-scrollbar,
  .profile-nav .profile-section-heading,
  .profile-nav__logout {
    display: none;
  }

  .profile-nav__item {
    border: 1px solid var(--profile-line);
    border-radius: 7px;
    flex: 0 0 auto;
    font-size: 13px;
    min-height: 40px;
    padding: 0 13px;
    white-space: nowrap;
  }

  .profile-nav__item i {
    display: none;
  }

  .profile-nav__item:hover,
  .profile-nav__item.is-current {
    border-color: rgba(255, 212, 0, .55);
    box-shadow: none;
    color: var(--profile-accent) !important;
    padding-left: 13px;
  }

  .profile-details {
    padding: 25px 18px;
  }

  .profile-data-row {
    gap: 12px;
    grid-template-columns: minmax(112px, 42%) minmax(0, 1fr);
  }

  .profile-membership-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .profile-form__row {
    align-items: stretch;
    gap: 7px;
    grid-template-columns: 1fr;
  }

  .profile-form__footer {
    margin-left: -18px;
    margin-right: -18px;
    padding: 18px;
  }

  .profile-save-button {
    width: 100%;
  }

  .profile-setting-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }

  .profile-media-row {
    gap: 12px;
    grid-template-columns: 18px 54px minmax(0, 1fr);
    min-height: 94px;
    padding: 13px 0;
  }

  .profile-media-row__poster {
    height: 74px;
    width: 54px;
  }

  .profile-media-row__action {
    display: none;
  }

  .profile-toolbar {
    gap: 6px;
  }

  .profile-toolbar__button {
    flex: 1 1 calc(50% - 6px);
  }
}

@media (max-width: 420px) {
  .profile-hero {
    height: 218px;
  }

  .profile-hero__content {
    padding: 20px 14px;
  }

  .profile-status,
  .profile-dot,
  .profile-identity__meta > span:nth-child(3) {
    display: none;
  }

  .profile-metric {
    padding-left: 10px;
    padding-right: 10px;
  }

  .profile-metric strong {
    font-size: 12px;
  }

  .profile-details__header h2 {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-hero,
  .profile-metrics,
  .profile-workspace {
    animation: none;
  }

  .profile-action,
  .profile-nav__item,
  .profile-nav__item i {
    transition: none;
  }
}
