.account-page {
  padding: 46px 0 82px;
  background:
    radial-gradient(circle at 8% 8%, rgba(0, 119, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 52%);
  min-height: 100vh;
}

/* LAYOUT */
.account-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  align-items: flex-start;
}

/* SIDEBAR */
.account-sidebar {
  position: sticky;
  top: 105px;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

.account-sidebar-top {
  display: block;
  text-align: center;
  padding: 22px 14px 26px;
  margin-bottom: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
  border: 1px solid #dbeafe;
}

.account-avatar {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077ff, #005fe0);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 950;
  box-shadow: 0 18px 35px rgba(0, 119, 255, 0.25);
}

.account-sidebar h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 950;
  color: #071327;
  line-height: 1.1;
}

.account-sidebar-top p {
  color: #64748b;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.account-tab {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  margin-bottom: 12px;
  border: 1px solid #e5efff;
  border-radius: 18px;
  background: #ffffff;
  color: #172033;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  transition: 0.28s ease;
}

.account-tab:hover,
.account-tab.active {
  background: linear-gradient(135deg, #0077ff, #005fe0);
  color: #ffffff;
  border-color: #0077ff;
  /* box-shadow: 0 16px 32px rgba(0, 119, 255, 0.22); */
}

.logout-tab {
  margin-top: 16px;
  color: #dc2626;
  background: #fff5f5;
  border-color: none;
}
.logout-tab:hover {
  background: #dc2626;
  color: #fff5f5;
  border-color: #dc2626;
}
/* CONTENT */
.account-content {
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.06),
    0 4px 14px rgba(0, 119, 255, 0.03);
}

.account-panel {
  display: none;
}

.account-panel.active {
  display: block;
  animation: fadePanel 0.35s ease;
}

@keyframes fadePanel {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-panel h3 {
  margin-bottom: 28px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -1px;
  color: #071327;
}

/* PROFILE */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.profile-grid div {
  padding: 24px;
  border-radius: 24px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  transition: 0.28s ease;
}

.profile-grid div:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 119, 255, 0.08);
}

.profile-grid span {
  display: block;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.profile-grid strong {
  color: #071327;
  font-size: 18px;
  font-weight: 900;
  word-break: break-word;
}

/* ADDRESS */
.address-list,
.order-list {
  display: grid;
  gap: 18px;
}

.address-card,
.order-card {
  padding: 24px;
  border-radius: 24px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  transition: 0.28s ease;
}

.address-card:hover,
.order-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 119, 255, 0.08);
}

.address-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.address-top strong {
  font-size: 18px;
  color: #071327;
}

.address-top span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0077ff;
  font-size: 12px;
  font-weight: 900;
}

.address-card p {
  margin-top: 8px;
  color: #64748b;
  line-height: 1.7;
  font-size: 15px;
}

/* ORDERS */
.order-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  align-items: center;
  gap: 18px;
}

.order-card span {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.order-card strong {
  color: #071327;
  font-size: 16px;
  font-weight: 900;
}

.order-card p {
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0077ff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.track-btn {
  min-width: 110px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0077ff, #005fe0);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  transition: 0.28s ease;
}

.track-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 119, 255, 0.22);
}

/* EMPTY */
.empty-text {
  padding: 24px;
  border-radius: 22px;
  background: #f8fbff;
  border: 1px dashed #cfe3ff;
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
}

/* LOGIN REQUIRED */
.account-login-required {
  max-width: 760px;
  margin: 0 auto;
  padding: 90px 34px;
  border-radius: 38px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 119, 255, 0.08);
}

.account-login-icon {
  width: 132px;
  height: 132px;
  margin: 0 auto 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077ff, #005fe0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 50px rgba(0, 119, 255, 0.28);
}

.account-login-icon svg {
  width: 60px;
  height: 60px;
  fill: #ffffff;
}

.account-login-required h3 {
  margin-bottom: 14px;
  font-size: 46px;
  font-weight: 950;
  color: #071327;
}

.account-login-required p {
  margin-bottom: 34px;
  color: #64748b;
  font-size: 18px;
  line-height: 1.7;
}

.account-login-required a {
  min-width: 230px;
  height: 60px;
  padding: 0 34px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0077ff, #005fe0);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 18px 35px rgba(0, 119, 255, 0.22);
}

/* LOGOUT POPUP */
.logout-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.logout-popup.active {
  opacity: 1;
  visibility: visible;
}

.logout-popup-box {
  width: 100%;
  max-width: 430px;
  padding: 42px 30px 32px;
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #dbeafe;
  text-align: center;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: 0.3s ease;
}

.logout-popup.active .logout-popup-box {
  transform: translateY(0) scale(1);
}

.logout-popup-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f87171, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 22px 42px rgba(239, 68, 68, 0.22);
}

.logout-popup-icon svg {
  width: 50px;
  height: 50px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
}

.logout-popup-box h3 {
  margin-bottom: 12px;
  font-size: 34px;
  font-weight: 950;
  color: #071327;
}

.logout-popup-box p {
  margin-bottom: 28px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
}

.logout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.logout-actions button,
.logout-actions a {
  height: 54px;
  border-radius: 16px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
}

.logout-actions button {
  background: #f1f5f9;
  color: #071327;
}

.logout-actions a {
  background: linear-gradient(135deg, #f87171, #dc2626);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.24);
}

.logout-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.32);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .order-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .account-panel h3 {
    font-size: 34px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .account-content {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .account-page {
    padding: 28px 0 55px;
  }

  .account-sidebar,
  .account-content {
    padding: 18px;
    border-radius: 24px;
  }

  .account-sidebar-top {
    margin-bottom: 22px;
  }

  .account-avatar {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 24px;
  }

  .account-sidebar h2 {
    font-size: 24px;
  }

  .account-tab {
    min-height: 52px;
    font-size: 15px;
  }

  .account-panel h3 {
    font-size: 28px;
  }

  .order-card {
    grid-template-columns: 1fr;
  }

  .logout-actions {
    grid-template-columns: 1fr;
  }

  .account-login-required {
    padding: 65px 22px;
    border-radius: 28px;
  }

  .account-login-required h3 {
    font-size: 34px;
  }

  .account-login-required p {
    font-size: 15px;
  }

  .logout-popup-box {
    padding: 34px 22px 26px;
    border-radius: 28px;
  }

  .logout-popup-box h3 {
    font-size: 28px;
  }
}
