.section-account-profile {
    position: relative;
    padding: 24px 0 48px 0;
}

.section-account-profile:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 240px;
    background: #EEE4D9;
}

.account-profile {
    position: relative;
    z-index: 1;
    max-width: 712px;
    margin: 0 auto;
}

.account-profile__header {
    margin-bottom: 32px;
}

.account-profile__header .account-menu__header {
    padding: 0;
    margin: 0;
    border: none;
    gap: 0 32px;
}

.account-profile__header .account-menu__header .account-menu__avatar {
    width: 110px;
    height: 110px;
    overflow: visible;
}

.account-profile__header .account-menu__header .account-menu__avatar .account-menu__avatar-text {
    font-size: 56px;
}

.account-profile__header .account-menu__header .account-menu__avatar .upload-image {
    position: absolute;
    bottom: 0;
    right: 8px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1;
    cursor: pointer;
}

.account-profile__header .account-menu__header .account-menu__user .account-profile__label {
    color: rgba(128, 128, 128, 1);
    font-size: 15px;
    font-weight: 500;
    font-family: 'VNBDisplay';
    margin-bottom: 8px;
}

.account-profile__header .account-menu__header .account-menu__user .account-menu__name {
    font-size: 32px;
    line-height: 1.4;
}

.account-profile__header .account-menu__header .account-menu__user .account-profile__meta {
    margin-top: 8px;
    color: #808080;
    font-size: 16px;
    font-weight: 400;
}
.account-profile__tabs {
  display: flex;
  margin-bottom: 12px;
  justify-content: space-between;
  align-items: center;
}

.account-profile__tab {
  border-radius: 8px;
  padding: 4px 12px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  height: 36px;
  cursor: pointer;
  transition: all .3s;
}

.account-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.account-card__title {
  font-size: 20px;
  line-height: 1.4;
  1.4: 700;
  margin-bottom: 24px;
  color: var(--text-main);
  font-family: 'VNBDisplay';
}

.account-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-card__item {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
      align-items: flex-start;
  gap: 4px 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-1);
}

.account-card__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.account-card__label {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-main);
  display: block;
  font-weight: 600;
  font-family: 'VNBDisplay';
}

.account-card__value {
  font-size: 16px;
  color: var(--text-main);
  font-weight: 400;
  line-height: 1.4;
}

.account-card__value.is-empty {
  color: rgba(128, 128, 128, 1);
}

.account-card__edit {
  background: rgba(179, 179, 179, 1);
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  height: 24px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  width: 52px;
  margin-left: auto;
  transition: all .3s;
}

.account-profile__tab:hover {
    background: rgba(255, 255, 255, 1);
}

.account-profile__logout .account-menu__logout {
    background: transparent;
}

.account-card__edit:hover {
    background: var(--text-title);
    color: #fff;
}
.account-card__item:first-child {
    padding-top: 0;
}
.account-card__item.is-view .account-card__edit-fields,
.account-card__item.is-view .account-card__save,
.account-card__item.is-view .account-card__cancel {
  display: none;
}

/* Edit mode */
.account-card__item.is-edit .account-card__value,
.account-card__item.is-edit .account-card__edit {
  display: none;
}

.account-card__item.is-edit {
    grid-template-columns: 140px 1fr 120px;
}

.account-card__actions {
    display: flex;
    align-items: center;
    gap: 0 8px;
}

.account-card__save {
    background: #262A33;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    line-height: 1.3;
    width: 52px;
    margin-left: auto;
    transition: all .3s;
}

.account-card__cancel {
    background: #fff;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #B3B3B3;
    font-size: 15px;
    line-height: 1.3;
    transition: all .3s;
    border: 1px solid #CCCCCC;
    font-family: 'VNBDisplay';
    width: 52px;
}

.account-card__cancel:hover {
    background: #fff;
    border-color: var(--text-title);
    color: var(--text-title);
}

.account-card__save:hover {
    background: var(--text-title);
    color: #fff;
}

.account-card__field .account-card__input {
    width: 100%;
    border: 1px solid #E4DFD9;
    height: 40px;
    border-radius: 4px;
    padding: 0 16px;
    color: var(--text-main);
    font-size: 16px;
}

.account-card__birthday .account-card__edit-item .account-card__input {
    padding: 0 8px;
}

.account-card__item.is-edit .account-card__edit-fields {
    display: block;
}

.account-card__field {
    width: 100%;
}

.account-card__edit-item .account-card__label {
    color: rgba(77, 77, 77, 1);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 4px;
}

.account-card__field .account-card__input::placeholder {
    color: rgba(179, 179, 179, 1);
}

.account-card__edit-item {
    margin-bottom: 16px;
}

.account-card__edit-item:last-child {
    margin: 0;
}
.account-card__phone {
    display: flex;
    align-items: flex-start;
}

.account-card__phone-code-wrapper {
    width: 110px;
    border: 1px solid #E4DFD9;
    height: 40px;
    border-radius: 4px 0 0 4px;
    position: relative;
    border-right: 0;
}

.account-card__phone-code {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    padding: 0 4px;
    cursor: pointer;
}

.account-card__country-list {
    position: absolute;
    left: -1px;
    width: calc(100% + 2px);
    border: 1px solid #E4DFD9;
    top:calc(100% - 1px);
    background: #fff;
    z-index: 1;
    padding: 6px 8px;
    opacity: 0;
    visibility: hidden;
}

.account-card__country-list .account-card__country--text {
    line-height: 1.4;
    font-size: 16px;
    color: var(--text-main);
    cursor: pointer;
}
.account-card__birthday {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.account-card__birthday .account-card__edit-item {
    margin: 0;
}
.account-card__phone-code img {
    width: 36px;
}

.account-card__phone-code .number {
    flex: 1;
    padding: 0 4px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 400;
}

.account-card__phone-code .icon-select {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-card__phone .account-card__input {
    flex: 1;
    border-radius: 0 4px 4px 0;
}

.account-card__phone-code .icon-select img {
    filter: brightness(0);
    width: 12px;
}

.account-card__country-list.is-open {
    opacity: 1;
    visibility: visible;
}
.account-card__gender {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.account-card__radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #111;
}

/* Ẩn radio gốc */
.account-card__radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Vòng tròn ngoài */
.account-card__radio span::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1px solid #000000;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  margin-right: 4px;
  position: relative;
  top: 1px;
}
.account-card__radio span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 6px;
  height: 6px;
  background: #000000;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.account-profile__header .account-menu__header .account-menu__avatar .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}
.account-card__radio input:checked + span::after {
  opacity: 1;
}
.account-card__radio:hover span::before {
  border-color: #000000;
}


@media (max-width:767px) {
    .account-profile__header .account-menu__header {
        gap: 0 16px;
        align-items: flex-start;
    }

    .account-profile__header .account-menu__header .account-menu__avatar {
        width: 60px;
        height: 60px;
    }

    .account-profile__header .account-menu__header .account-menu__avatar .account-menu__avatar-text {
        font-size: 34px;
    }

    .account-profile__header .account-menu__header .account-menu__avatar .upload-image {
        width: 16px;
        height: 16px;
        right: 4px;
    }

    .account-profile__header .account-menu__header .account-menu__avatar .upload-image img {
        width: 10px;
    }

    .account-profile__header .account-menu__header .account-menu__user .account-menu__name {
        font-size: 22px;
    }

    .account-profile__header .account-menu__header .account-menu__user .account-profile__meta {
        margin-top: 4px;
    }

    .account-profile__header .account-menu__header .account-menu__user .account-profile__label {
        margin-bottom: 2px;
    }

 

    .account-card {
        padding: 12px;
    }


    .account-card__item {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 0;
    }

    .account-card__label {
        flex: 1;
        order: 1;
    }

    .account-card__field{
        width: 100%;
        order: 3;
    }

    .account-card__actions {
        order: 2;
    }

    .section-account-profile {
        padding: 24px 0 32px 0;
    }
    .account-card__item.is-edit .account-card__actions {
        order: 3;
    }
}