.account-details-area input,
.account-details-area textarea {
  height: 55px;
  border-radius: 4px;
  border: 1px solid #E8E8E8;
  margin-bottom: 0;
  width: 100%;
  padding: 0 15px;
  font-size: 15px;
  color: var(--color-heading-1);
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.account-details-area input:focus,
.account-details-area textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

.account-details-area input[readonly],
.account-details-area input:disabled,
.account-details-area textarea[readonly] {
  background: #F8F8F8;
  cursor: default;
  color: var(--color-body);
}

.account-details-area textarea {
  height: auto;
  min-height: 100px;
  padding: 12px 15px;
  resize: vertical;
}

.account-details-area .input-half-area {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.account-details-area .input-half-area .single-input {
  width: 100%;
}

.account-details-area .single-input {
  margin-bottom: 20px;
}

.account-details-area .single-input label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-heading-1);
  font-size: 14px;
}

.account-details-area .single-input label .required {
  color: var(--color-primary);
}

.account-profile-panel .account-profile-alert {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-size: 15px;
  font-weight: 500;
}

.account-profile-panel .account-profile-alert[hidden] {
  display: none !important;
}

.account-profile-panel .account-profile-alert.is-success {
  background: rgba(98, 157, 35, 0.12);
  border: 1px solid #629D23;
  color: #3d6216;
}

.account-profile-panel .account-profile-alert.is-error {
  background: rgba(192, 2, 8, 0.08);
  border: 1px solid var(--color-primary);
  color: var(--color-primary-2);
}

.account-profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: flex-start;
}

.account-profile-card {
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  padding: 30px 25px;
  text-align: center;
  position: sticky;
  top: 24px;
}

.account-profile-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
}

.account-profile-avatar-wrap .account-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(31, 31, 37, 0.12);
}

.account-profile-avatar-wrap .account-profile-avatar-btn {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(31, 31, 37, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.account-profile-avatar-wrap .account-profile-avatar-btn[hidden] {
  display: none !important;
}

.account-profile-avatar-wrap .account-profile-avatar-btn i {
  font-size: 22px;
}

.account-profile-panel.is-editing .account-profile-avatar-wrap:hover .account-profile-avatar-btn:not([hidden]),
.account-profile-panel.is-editing .account-profile-avatar-wrap .account-profile-avatar-btn:not([hidden]) {
  opacity: 1;
}

.account-profile-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-heading-1);
  margin-bottom: 6px;
}

.account-profile-role,
.account-profile-since {
  font-size: 14px;
  color: var(--color-body);
  margin-bottom: 4px;
  line-height: 1.5;
}

.account-profile-meta {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  text-align: left;
}

.account-profile-meta li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--color-heading-1);
  margin-bottom: 12px;
  line-height: 1.5;
}

.account-profile-meta li i {
  color: var(--color-primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.account-profile-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(192, 2, 8, 0.1);
  color: var(--color-primary);
}

.account-profile-main {
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  padding: 30px 35px;
}

.account-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ECECEC;
}

.account-profile-header .title {
  margin-bottom: 8px;
}

.account-profile-header .disc {
  margin-bottom: 0;
  color: var(--color-body);
  font-size: 15px;
  line-height: 1.6;
}

.account-profile-btn-edit {
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border: none;
}

.account-profile-btn-edit[hidden] {
  display: none !important;
}

.account-profile-btn-edit:hover {
  background: var(--color-secondary);
  color: #fff;
}

.account-profile-section {
  border: none;
  padding: 0;
  margin: 0 0 30px;
}

.account-profile-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-heading-1);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  width: 100%;
}

.account-profile-hint {
  font-size: 14px;
  color: var(--color-body);
  margin: -10px 0 18px;
}

.account-profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #ECECEC;
}

.account-profile-actions[hidden] {
  display: none !important;
}

.account-profile-actions .rts-btn {
  margin-top: 0;
}

.account-profile-btn-cancel {
  background: transparent;
  color: var(--color-heading-1);
  border: 1px solid #E2E2E2;
  border-radius: 6px;
}

.account-profile-btn-cancel:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.account-profile-panel.is-editing .account-details-area input:not([type="password"]),
.account-profile-panel.is-editing .account-details-area textarea {
  background: #fff;
  color: var(--color-heading-1);
  cursor: text;
}

@media only screen and (max-width: 991px) {
  .account-profile-layout {
    grid-template-columns: 1fr;
  }

  .account-profile-card {
    position: static;
  }
}

@media only screen and (max-width: 575px) {
  .account-details-area .input-half-area {
    flex-direction: column;
  }

  .account-profile-main {
    padding: 22px 18px;
  }

  .account-profile-header {
    flex-direction: column;
  }
}
