/* ====== HALAMAN AKUN ====== */

.account-main {
  min-height: calc(100vh - 127px);
}

.account-section {
  width: 100%;
  min-height: calc(100vh - 127px);
  padding: 62px 70px 90px;
}

.account-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}


/* ====== JUDUL HALAMAN ====== */

.account-title {
  margin: 0 0 72px;
  color: var(--brand-color);
  font-size: 34px;
  font-weight: 800;
  text-align: center;
}


/* ====== LAYOUT HALAMAN AKUN ====== */

.account-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  align-items: start;
  gap: 55px;
}


/* ====== SIDEBAR AKUN ====== */

.account-sidebar {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
}

.sidebar-menu {
  width: 100%;
  min-height: 76px;
  padding: 0 34px;

  display: flex;
  align-items: center;
  gap: 17px;

  color: var(--brand-color);
  background: #ffffff;

  font-size: 24px;
  font-weight: 500;
  text-align: left;

  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.sidebar-menu img {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  object-fit: contain;
}

.sidebar-menu:hover,
.sidebar-menu.active {
  color: #ffffff;
  background: #612c0f;
}

.sidebar-menu:hover img,
.sidebar-menu.active img {
  filter: brightness(0) invert(1);
}

/* ====== ICON LOGOUT ====== */

.logout-icon {
  width: 31px;
  height: 31px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  font-size: 30px;
  line-height: 1;
}

/* ====== ISI HALAMAN AKUN ====== */

.account-content {
  min-width: 0;
}

.account-content-section {
  display: none;
}

.account-content-section.active {
  display: block;
}

/* ====== CARD PROFIL ====== */

.profile-card {
  width: 100%;
  min-height: 790px;
  padding: 42px 50px 52px;

  border-radius: 24px;
  background: #ffffff;
}

.profile-card-title {
  margin: 0 0 29px;

  color: var(--brand-color);
  font-size: 30px;
  font-weight: 800;
}

.profile-divider {
  width: calc(100% + 100px);
  height: 1px;
  margin: 0 0 31px -50px;

  background: var(--brand-color);
}


/* ====== DATA PROFIL ====== */

.profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 30px;

  margin-bottom: 43px;
}

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

.profile-label {
  color: var(--brand-color);
  font-size: 25px;
  font-weight: 400;
}

.profile-value {
  color: var(--brand-color);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;

  overflow-wrap: anywhere;
}

.address-row {
  margin-bottom: 83px;
}

.address-value {
  max-width: 760px;
}


/* ====== TOMBOL CHANGE ====== */

.change-btn {
  margin-top: 8px;
  padding: 5px;

  color: var(--brand-color);

  font-size: 16px;
  font-weight: 400;
}

.change-btn:hover {
  color: var(--button-color);
}


/* ====== CHANGE PASSWORD ====== */

.change-password {
  display: inline-flex;

  color: var(--brand-color);

  font-size: 27px;
  font-weight: 800;

  transition: color 0.3s ease;
}

.change-password:hover {
  color: var(--button-color);
}


/* ====== TAB TRANSACTIONS ====== */

.transaction-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;

  margin: -53px 0 20px;
}

.transaction-tab {
  position: relative;

  padding: 12px 10px;

  color: var(--brand-color);

  font-size: 23px;
  font-weight: 500;
  text-align: center;
}

.transaction-tab::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 4px;

  width: 0;
  height: 2px;

  background: var(--brand-color);

  transform: translateX(-50%);

  transition: width 0.3s ease;
}

.transaction-tab:hover::after,
.transaction-tab.active::after {
  width: 42px;
}

.transaction-tab.active {
  font-weight: 700;
}


/* ====== DAFTAR TRANSACTIONS ====== */

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.transaction-card {
  width: 100%;
  overflow: hidden;

  padding: 30px 42px 36px;

  border-radius: 24px;
  background: #ffffff;
}


/* ====== INFORMASI TRANSAKSI ====== */

.transaction-summary {
  display: grid;

  grid-template-columns:
    minmax(145px, 1fr)
    minmax(190px, 1.25fr)
    minmax(145px, 0.9fr)
    130px;

  align-items: start;
  gap: 25px;

  padding-bottom: 27px;
}

.summary-data {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-data span {
  color: var(--brand-color);
  font-size: 17px;
  font-weight: 500;
}

.summary-data strong {
  color: var(--brand-color);
  font-size: 17px;
  font-weight: 700;
}


/* ====== STATUS PESANAN ====== */

.status-badge {
  min-width: 118px;
  padding: 5px 17px;

  border-radius: 999px;

  color: #ffffff;

  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.status-badge.processed {
  background: #ffc800;
}

.status-badge.done {
  background: #2fc45b;
}


/* ====== DAFTAR PRODUK TRANSAKSI ====== */

.transaction-products {
  width: calc(100% + 84px);
  margin-left: -42px;
  padding: 15px 52px 0;

  border-top: 1px solid var(--brand-color);
}

.transaction-product {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  gap: 24px;

  margin-bottom: 24px;
}

.transaction-product-image {
  width: 105px;
  height: 135px;

  border-radius: 25px;

  object-fit: cover;
  object-position: center;
}

.transaction-product-info {
  min-width: 0;
}

.transaction-product-info strong {
  display: block;

  margin-bottom: 8px;

  color: var(--brand-color);

  font-size: 14px;
  font-weight: 700;
}

.product-detail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 18px 31px;

  color: var(--brand-color);

  font-size: 14px;
}


/* ====== TOMBOL TRANSAKSI ====== */

.transaction-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 4px;
}

.transaction-action {
  min-height: 39px;
  padding: 4px 13px;

  border: 1px solid var(--brand-color);
  border-radius: 9px;

  color: var(--brand-color);
  background: #ffffff;

  font-size: 17px;
  font-weight: 700;

  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.transaction-action:hover {
  color: #ffffff;
  background: var(--brand-color);
}


/* ====== TRANSAKSI KOSONG ====== */

.empty-transaction {
  display: none;

  padding: 60px 25px;

  border-radius: 24px;
  background: #ffffff;

  color: var(--brand-color);

  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.empty-transaction.active {
  display: block;
}


/* ====== TOMBOL AKUN HEADER ====== */

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.2s ease;
}

.account-btn:hover {
  transform: translateY(-2px);
}

.account-btn img {
  width: 38px;
  height: 38px;

  object-fit: contain;
}


/* ====== DROPDOWN AKUN ====== */

.account-dropdown {
  position: fixed;
  top: 145px;
  right: 48px;
  z-index: 1100;

  display: none;

  width: 375px;
  padding: 34px 25px 32px;

  border-radius: 24px;

  background: #ffffff;

  box-shadow:
    7px 8px 0 rgba(255, 238, 191, 0.65),
    0 12px 30px rgba(81, 40, 16, 0.08);
}

.account-dropdown.active {
  display: block;
}

/* ====== DATA USER DROPDOWN ====== */

.dropdown-user {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 19px;
}

.dropdown-user-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.dropdown-user-icon img {
  width: 52px;
  height: 52px;

  display: block;
  object-fit: contain;

  filter: none;
}

.dropdown-user-data {
  min-width: 0;
}

.dropdown-user-data h2 {
  margin: 0;

  color: var(--brand-color);

  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.dropdown-user-data p {
  margin: 2px 0 0;

  color: var(--brand-color);

  font-size: 16px;
  line-height: 1.35;

  overflow-wrap: anywhere;
}


/* ====== MENU DROPDOWN AKUN ====== */

.dropdown-account-menu {
  width: 100%;
  min-height: 56px;

  display: flex;
  align-items: center;
  gap: 18px;

  color: var(--brand-color);

  font-size: 23px;
  font-weight: 500;
  text-align: left;

  transition: color 0.3s ease;
}

.dropdown-account-menu:hover {
  color: var(--button-color);
}

.dropdown-account-menu img {
  width: 31px;
  height: 31px;

  flex-shrink: 0;

  object-fit: contain;
}


/* ====== RESPONSIVE LAPTOP ====== */

@media (max-width: 1350px) {
  .account-main {
    min-height: calc(100vh - 95px);
  }

  .account-section {
    min-height: calc(100vh - 95px);
    padding: 55px 48px 75px;
  }

  .account-title {
    margin-bottom: 55px;
    font-size: 31px;
  }

  .account-layout {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 38px;
  }

  .sidebar-menu {
    min-height: 68px;
    padding: 0 25px;

    font-size: 20px;
  }

  .profile-card {
    min-height: 700px;
    padding: 38px 42px 45px;
  }

  .profile-divider {
    width: calc(100% + 84px);
    margin-left: -42px;
  }

  .profile-label {
    font-size: 21px;
  }

  .profile-value {
    font-size: 22px;
  }

  .change-password {
    font-size: 23px;
  }

  .transaction-tab {
    font-size: 19px;
  }

  .account-btn img {
    width: 28px;
    height: 28px;
  }

  .account-dropdown {
    top: 112px;
    right: 48px;
  }
}


/* ====== RESPONSIVE TABLET ====== */

@media (max-width: 900px) {
  .account-section {
    padding: 45px 24px 65px;
  }

  .account-title {
    margin-bottom: 40px;
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .account-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .sidebar-menu {
    justify-content: center;

    min-height: 64px;
    padding: 0 12px;

    font-size: 17px;
  }

  .sidebar-menu img {
    width: 25px;
    height: 25px;
  }

  .transaction-icon,
  .logout-icon {
    width: 25px;
    height: 25px;

    font-size: 25px;
  }

  .profile-card {
    min-height: 650px;
  }

  .transaction-tabs {
    margin: 0 0 20px;
  }

  .transaction-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-badge {
    justify-self: start;
  }

  .account-dropdown {
    top: 108px;
    right: 24px;

    width: min(375px, calc(100% - 48px));
  }

  .account-btn img {
    width: 24px;
    height: 24px;
  }
}


/* ====== RESPONSIVE MOBILE ====== */

@media (max-width: 520px) {
  .account-section {
    padding: 35px 15px 55px;
  }

  .account-title {
    margin-bottom: 30px;
    font-size: 27px;
  }

  .account-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-menu {
    justify-content: flex-start;

    min-height: 58px;
    padding: 0 24px;
  }

  .profile-card {
    min-height: auto;
    padding: 30px 25px 38px;
  }

  .profile-card-title {
    font-size: 25px;
  }

  .profile-divider {
    width: calc(100% + 50px);
    margin-left: -25px;
  }

  .profile-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;

    margin-bottom: 35px;
  }

  .profile-label {
    font-size: 18px;
  }

  .profile-value {
    font-size: 19px;
  }

  .change-btn {
    font-size: 12px;
  }

  .address-row {
    margin-bottom: 55px;
  }

  .change-password {
    font-size: 20px;
  }

  .transaction-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 12px;

    overflow-x: auto;

    padding-bottom: 5px;
  }

  .transaction-tab {
    min-width: max-content;

    padding: 10px 15px;

    font-size: 16px;
  }

  .transaction-card {
    padding: 25px 20px 30px;
  }

  .transaction-summary {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .transaction-products {
    width: calc(100% + 40px);
    margin-left: -20px;
    padding: 20px 20px 0;
  }

  .transaction-product {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 15px;
  }

  .transaction-product-image {
    width: 90px;
    height: 115px;

    border-radius: 18px;
  }

  .transaction-product-info strong {
    font-size: 12px;
  }

  .product-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;

    font-size: 12px;
  }

  .transaction-actions {
    justify-content: stretch;
  }

  .transaction-action {
    width: 100%;

    font-size: 14px;
  }

  .account-dropdown {
    top: 95px;
    right: 15px;
    left: 15px;

    width: auto;

    padding: 27px 22px;
  }

  .dropdown-user-data h2 {
    font-size: 19px;
  }

  .dropdown-user-data p {
    font-size: 13px;
  }

  .dropdown-account-menu {
    min-height: 52px;

    font-size: 19px;
  }

  .account-btn img {
    width: 22px;
    height: 22px;
  }
}

/* ====== BADGE WISHLIST DAN CART ACCOUNT ====== */

.wishlist-link,
.cart-link {
  position: relative;
}

.wishlist-count-badge,
.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -9px;

  min-width: 20px;
  height: 20px;
  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e84c3d;
  border: 2px solid #ffffff;
  border-radius: 100px;

  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  pointer-events: none;
}

.wishlist-count-badge:not(.is-hidden),
.cart-count-badge:not(.is-hidden) {
  animation: accountBadgePop 0.3s ease;
}

@keyframes accountBadgePop {
  0% {
    transform: scale(0.5);
  }

  70% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* ==================================================
   PREMIUM DASHBOARD MOTION — ACCOUNT
================================================== */

/* ====== BACKGROUND CAHAYA HALUS ====== */

.account-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.account-section::before,
.account-section::after {
  content: "";
  position: absolute;
  z-index: -1;

  width: 380px;
  height: 380px;

  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
}

.account-section::before {
  top: -170px;
  left: -150px;

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0)
  );

  animation: accountGlowLeft 8s ease-in-out infinite alternate;
}

.account-section::after {
  right: -170px;
  bottom: -180px;

  background: radial-gradient(
    circle,
    rgba(168, 106, 45, 0.2),
    rgba(168, 106, 45, 0)
  );

  animation: accountGlowRight 9s ease-in-out infinite alternate;
}


/* ====== JUDUL MY PROFIL ====== */

.account-title {
  position: relative;
  opacity: 0;

  animation: accountTitleEnter 0.75s ease forwards;
}

.account-title::after {
  content: "";
  display: block;

  width: 0;
  height: 3px;
  margin: 13px auto 0;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent,
    #a86a2d,
    transparent
  );

  animation: accountTitleLine 0.75s ease 0.45s forwards;
}


/* ====== SIDEBAR MASUK DARI KIRI ====== */

.account-sidebar {
  position: relative;

  opacity: 0;

  border: 1px solid rgba(81, 40, 16, 0.07);

  box-shadow:
    0 16px 40px rgba(81, 40, 16, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  animation: accountSidebarEnter 0.8s
    cubic-bezier(0.22, 1, 0.36, 1)
    0.15s forwards;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.account-sidebar:hover {
  transform: translateY(-5px);

  box-shadow:
    0 23px 48px rgba(81, 40, 16, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


/* ====== MENU SIDEBAR ====== */

.sidebar-menu {
  position: relative;
  overflow: hidden;

  transition:
    color 0.3s ease,
    background 0.3s ease,
    padding-left 0.3s ease,
    transform 0.3s ease;
}

.sidebar-menu::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;

  width: 70%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );

  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.sidebar-menu:hover::after,
.sidebar-menu.active::after {
  left: 140%;
}

.sidebar-menu:hover {
  padding-left: 42px;
}

.sidebar-menu img {
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.sidebar-menu:hover img,
.sidebar-menu.active img {
  transform: scale(1.08);
}


/* ====== ISI PROFIL DAN TRANSAKSI ====== */

.account-content-section.active {
  animation: accountSectionEnter 0.55s
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}


/* ====== CARD PROFIL ====== */

.profile-card {
  position: relative;
  overflow: hidden;

  opacity: 0;

  border: 1px solid rgba(81, 40, 16, 0.07);

  box-shadow:
    0 18px 45px rgba(81, 40, 16, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  animation: accountProfileEnter 0.85s
    cubic-bezier(0.22, 1, 0.36, 1)
    0.2s forwards;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;

  width: 80%;
  height: 4px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent,
    #a86a2d,
    transparent
  );

  opacity: 0.7;
}

.profile-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 27px 58px rgba(81, 40, 16, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}


/* ====== JUDUL PERSONAL DATA ====== */

.profile-card-title {
  opacity: 0;

  animation: accountDataEnter 0.6s ease
    0.55s forwards;
}

.profile-divider {
  transform: scaleX(0);
  transform-origin: left;

  animation: accountDividerEnter 0.8s ease
    0.65s forwards;
}


/* ====== DATA PROFIL MUNCUL BERTAHAP ====== */

.profile-row {
  opacity: 0;
  transform: translateY(18px);

  animation: accountDataEnter 0.6s ease forwards;
}

.profile-row:nth-of-type(1) {
  animation-delay: 0.7s;
}

.profile-row:nth-of-type(2) {
  animation-delay: 0.82s;
}

.profile-row:nth-of-type(3) {
  animation-delay: 0.94s;
}

.profile-row:nth-of-type(4) {
  animation-delay: 1.06s;
}


/* ====== TOMBOL CHANGE ====== */

.change-btn {
  position: relative;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.change-btn::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 1px;

  width: 0;
  height: 1px;

  background: var(--button-color);

  transition: width 0.3s ease;
}

.change-btn:hover {
  transform: translateY(-2px);
}

.change-btn:hover::after {
  width: calc(100% - 10px);
}


/* ====== CHANGE PASSWORD ====== */

.change-password {
  position: relative;
  opacity: 0;

  animation: accountDataEnter 0.6s ease
    1.15s forwards;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.change-password::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;

  width: 0;
  height: 2px;

  border-radius: 999px;
  background: var(--button-color);

  transition: width 0.35s ease;
}

.change-password:hover {
  transform: translateX(5px);
}

.change-password:hover::after {
  width: 100%;
}


/* ====== TAB TRANSAKSI ====== */

.transaction-tabs {
  opacity: 0;

  animation: accountTabsEnter 0.65s ease
    0.15s forwards;
}

.transaction-tab {
  border-radius: 12px;

  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.transaction-tab:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-3px);
}

.transaction-tab.active {
  background: rgba(255, 255, 255, 0.75);
}


/* ====== CARD TRANSAKSI ====== */

.transaction-card {
  position: relative;

  opacity: 0;
  transform: translateY(25px);

  border: 1px solid rgba(81, 40, 16, 0.07);

  box-shadow:
    0 15px 36px rgba(81, 40, 16, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  animation: accountTransactionEnter 0.65s ease forwards;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.transaction-card:nth-child(1) {
  animation-delay: 0.2s;
}

.transaction-card:nth-child(2) {
  animation-delay: 0.32s;
}

.transaction-card:nth-child(3) {
  animation-delay: 0.44s;
}

.transaction-card:nth-child(4) {
  animation-delay: 0.56s;
}

.transaction-card:nth-child(5) {
  animation-delay: 0.68s;
}

.transaction-card:hover {
  transform: translateY(-7px);

  box-shadow:
    0 24px 52px rgba(81, 40, 16, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}


/* ====== FOTO PRODUK TRANSAKSI ====== */

.transaction-product-image {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.transaction-product:hover .transaction-product-image {
  transform: scale(1.04);

  box-shadow:
    0 12px 25px rgba(81, 40, 16, 0.15);
}


/* ====== STATUS BADGE ====== */

.status-badge {
  position: relative;
  overflow: hidden;

  box-shadow: 0 6px 15px rgba(81, 40, 16, 0.12);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.status-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;

  width: 70%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );

  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.transaction-card:hover .status-badge {
  transform: translateY(-2px);

  box-shadow: 0 9px 18px rgba(81, 40, 16, 0.17);
}

.transaction-card:hover .status-badge::after {
  left: 140%;
}


/* ====== TOMBOL TRANSAKSI ====== */

.transaction-action {
  position: relative;
  overflow: hidden;

  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.transaction-action:hover {
  transform: translateY(-3px);

  box-shadow:
    0 9px 18px rgba(81, 40, 16, 0.18);
}


/* ====== DROPDOWN AKUN ====== */

.account-dropdown.active {
  transform-origin: top right;

  animation: accountDropdownEnter 0.35s
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

.dropdown-account-menu {
  border-radius: 12px;

  transition:
    color 0.3s ease,
    background 0.3s ease,
    padding-left 0.3s ease;
}

.dropdown-account-menu:hover {
  padding-left: 12px;
  background: rgba(254, 245, 215, 0.7);
}


/* ====== TRANSAKSI KOSONG ====== */

.empty-transaction.active {
  animation: accountEmptyEnter 0.55s ease both;
}


/* ====== KEYFRAMES ====== */

@keyframes accountTitleEnter {
  from {
    opacity: 0;
    transform: translateY(-18px);
    letter-spacing: 7px;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: normal;
  }
}

@keyframes accountTitleLine {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 105px;
    opacity: 1;
  }
}

@keyframes accountSidebarEnter {
  from {
    opacity: 0;
    transform: translateX(-35px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes accountProfileEnter {
  from {
    opacity: 0;
    transform: translateX(35px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes accountSectionEnter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accountDataEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accountDividerEnter {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes accountTabsEnter {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accountTransactionEnter {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accountDropdownEnter {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes accountEmptyEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accountGlowLeft {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(55px, 40px);
  }
}

@keyframes accountGlowRight {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(-50px, -35px);
  }
}


/* ====== RESPONSIVE ====== */

@media (max-width: 900px) {
  .sidebar-menu:hover {
    padding-left: 12px;
    transform: translateY(-2px);
  }

  .account-sidebar:hover,
  .profile-card:hover,
  .transaction-card:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 520px) {
  .sidebar-menu:hover {
    padding-left: 28px;
  }

  .profile-card:hover,
  .transaction-card:hover {
    transform: none;
  }
}


/* ====== AKSESIBILITAS ANIMASI ====== */

@media (prefers-reduced-motion: reduce) {
  .account-section::before,
  .account-section::after,
  .account-title,
  .account-title::after,
  .account-sidebar,
  .account-content-section.active,
  .profile-card,
  .profile-card-title,
  .profile-divider,
  .profile-row,
  .change-password,
  .transaction-tabs,
  .transaction-card,
  .account-dropdown.active,
  .empty-transaction.active {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   DATABASE TRANSACTION STATUS
========================================= */

.status-badge.waiting {
  background: #e3a900;
}

.status-badge.confirmed {
  background: #4775d1;
}

.status-badge.processing {
  background: #a86a2d;
}

.status-badge.shipped {
  background: #7252b8;
}

.status-badge.done {
  background: #2fc45b;
}

.status-badge.cancelled {
  background: #df4b42;
}


/* ====== DETAIL TRANSAKSI ====== */

.transaction-detail-wrapper {
  display: block;
}

.transaction-detail-wrapper.is-collapsed {
  display: none;
}

.transaction-detail-empty {
  padding: 24px 0;

  color: var(--brand-color);

  font-size: 14px;
  text-align: center;
}

.fashion-shipping-detail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px 30px;

  padding: 5px 0 22px;

  color: var(--brand-color);

  font-size: 13px;
}

.fashion-shipping-detail strong {
  font-weight: 700;
}


/* ====== JNE TRACKING CUSTOMER ====== */

.fashion-tracking-card {
  margin: 2px 0 22px;
  padding: 20px 22px;

  border: 1px solid rgba(81, 40, 16, 0.18);
  border-radius: 16px;

  background: #fffaf0;
}

.fashion-tracking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fashion-tracking-number {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;

  color: var(--brand-color);
}

.fashion-tracking-number span {
  font-size: 13px;
  font-weight: 500;
}

.fashion-tracking-number strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;

  overflow-wrap: anywhere;
}

.fashion-tracking-number small {
  font-size: 11px;
  line-height: 1.45;
}

.track-jne-btn {
  min-height: 40px;
  padding: 7px 15px;

  flex-shrink: 0;

  border: 1px solid var(--brand-color);
  border-radius: 9px;

  color: #ffffff;
  background: var(--brand-color);

  font-size: 12px;
  font-weight: 800;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.track-jne-btn:hover {
  transform: translateY(-1px);
}

.track-jne-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.jne-tracking-result {
  margin-top: 18px;
  padding-top: 18px;

  border-top: 1px solid rgba(81, 40, 16, 0.15);
}

.jne-tracking-result.is-hidden {
  display: none;
}

.jne-tracking-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;

  margin-bottom: 22px;
}

.jne-tracking-summary > div {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.jne-tracking-summary span {
  color: var(--brand-color);

  font-size: 11px;
  font-weight: 500;
}

.jne-tracking-summary strong {
  color: var(--brand-color);

  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;

  overflow-wrap: anywhere;
}

.jne-tracking-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.jne-tracking-event {
  position: relative;

  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;

  padding-bottom: 18px;
}

.jne-tracking-event:not(:last-child)::before {
  content: "";

  position: absolute;
  top: 12px;
  bottom: 0;
  left: 5px;

  width: 2px;

  background: rgba(81, 40, 16, 0.18);
}

.jne-tracking-dot {
  position: relative;
  z-index: 1;

  width: 12px;
  height: 12px;
  margin-top: 3px;

  border: 3px solid #fffaf0;
  border-radius: 50%;

  background: var(--brand-color);
  box-shadow: 0 0 0 1px var(--brand-color);
}

.jne-tracking-event-content {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 2px;

  color: var(--brand-color);
}

.jne-tracking-event-content strong {
  font-size: 13px;
  line-height: 1.45;
}

.jne-tracking-event-content span,
.jne-tracking-event-content small {
  font-size: 11px;
  line-height: 1.45;
}

.jne-tracking-loading,
.jne-tracking-empty,
.jne-tracking-error-message {
  margin: 0;

  color: var(--brand-color);

  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.jne-tracking-result.is-error {
  padding: 14px 16px;

  border: 1px solid rgba(223, 75, 66, 0.28);
  border-radius: 10px;

  background: rgba(223, 75, 66, 0.07);
}


/* ====== STATUS RESPONSIVE ====== */

@media (max-width: 900px) {
  .status-badge {
    min-width: 135px;
  }
}

@media (max-width: 520px) {
  .status-badge {
    min-width: 0;
    width: fit-content;

    font-size: 11px;
  }

  .fashion-shipping-detail {
    align-items: flex-start;
    flex-direction: column;

    gap: 5px;

    font-size: 12px;
  }

  .fashion-tracking-card {
    padding: 17px 15px;
  }

  .fashion-tracking-header {
    align-items: stretch;
    flex-direction: column;
  }

  .track-jne-btn {
    width: 100%;
  }

  .jne-tracking-summary {
    grid-template-columns: 1fr;
  }
}

/* ====== PROFILE DATABASE ====== */

.address-value {
  white-space: pre-line;
}

.change-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ====== MENU MOBILE PUTIH ====== */

@media (max-width: 1200px) {
  .site-nav {
    background: #ffffff !important;
  }

  .nav-list {
    background: #ffffff !important;
  }

  .nav-list li {
    width: 100%;
    background: transparent !important;
    border-radius: 0 !important;
  }

  .nav-list a {
    width: 100%;
    padding: 14px 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent !important;
    border-radius: 0 !important;
  }

  .nav-list a.active {
    font-weight: 700;
  }
}