/* Ateş Elektromarket account center, 2026-09-11. */
html.aem-global-ui[class*="route-account-"] {
  --acx-navy: #07345f;
  --acx-navy-2: #0a4d82;
  --acx-blue: #0f6caf;
  --acx-yellow: #ffc62f;
  --acx-ink: #142f49;
  --acx-muted: #6b7f91;
  --acx-line: #dce7ef;
  --acx-soft: #f3f7fa;
  --acx-surface: #fff;
  --acx-green: #19835c;
  --acx-red: #c94b5b;
  --acx-radius: 20px;
}

html.aem-global-ui[class*="route-account-"] body {
  background:
    radial-gradient(circle at 8% 18%, rgba(25, 113, 176, .07), transparent 25%),
    linear-gradient(180deg, #f4f8fb 0%, #eef4f8 100%) !important;
  color: var(--acx-ink) !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] {
  width: min(1500px, calc(100% - 48px)) !important;
  max-width: none !important;
  margin: 28px auto 58px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.aem-global-ui[class*="route-account-"] .profile-container {
  display: grid !important;
  grid-template-columns: 286px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 24px !important;
  min-height: 680px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html.aem-global-ui[class*="route-account-"] .profile-container > .sidebar {
  position: sticky !important;
  top: 88px !important;
  width: 286px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--acx-line) !important;
  border-radius: var(--acx-radius) !important;
  background: #fff !important;
  box-shadow: 0 18px 45px rgba(17, 53, 83, .11) !important;
}

html.aem-global-ui[class*="route-account-"] .sidebar .user-info {
  position: relative !important;
  padding: 28px 20px 24px !important;
  overflow: hidden !important;
  border: 0 !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 198, 47, .2), transparent 27%),
    linear-gradient(135deg, var(--acx-navy), var(--acx-navy-2)) !important;
  color: #fff !important;
  text-align: center !important;
}

html.aem-global-ui[class*="route-account-"] .sidebar .user-info::after {
  content: '';
  position: absolute;
  right: -42px;
  bottom: -82px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  pointer-events: none;
}

html.aem-global-ui[class*="route-account-"] .avatar-wrapper {
  position: relative !important;
  z-index: 1 !important;
  width: 88px !important;
  height: 88px !important;
  margin: 0 auto 14px !important;
}

html.aem-global-ui[class*="route-account-"] .avatar {
  display: grid !important;
  width: 88px !important;
  height: 88px !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 3px solid rgba(255, 255, 255, .88) !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 12px 26px rgba(0, 23, 48, .25) !important;
}

html.aem-global-ui[class*="route-account-"] .avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

html.aem-global-ui[class*="route-account-"] .avatar-upload {
  right: -6px !important;
  bottom: -5px !important;
  display: grid !important;
  width: 32px !important;
  height: 32px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 3px solid var(--acx-navy) !important;
  border-radius: 11px !important;
  background: var(--acx-yellow) !important;
  color: var(--acx-navy) !important;
  box-shadow: 0 7px 16px rgba(0, 20, 42, .24) !important;
}

html.aem-global-ui[class*="route-account-"] .sidebar .user-info h3 {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
}

html.aem-global-ui[class*="route-account-"] .balance-wrapper {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 7px !important;
}

html.aem-global-ui[class*="route-account-"] .balance-wrapper > div,
html.aem-global-ui[class*="route-account-"] .user-info > .balance {
  display: inline-flex !important;
  min-height: 28px !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #d9e8f3 !important;
  font-size: 10px !important;
}

html.aem-global-ui[class*="route-account-"] .sidebar-menu {
  display: block !important;
  padding: 14px !important;
  background: #fff !important;
}

html.aem-global-ui[class*="route-account-"] .menu-group {
  margin: 0 0 13px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid #edf2f6 !important;
}

html.aem-global-ui[class*="route-account-"] .menu-group:last-of-type {
  margin-bottom: 5px !important;
}

html.aem-global-ui[class*="route-account-"] .menu-title {
  display: block !important;
  margin: 0 0 7px !important;
  padding: 0 10px !important;
  color: #8a9aa8 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

html.aem-global-ui[class*="route-account-"] .menu-item {
  display: grid !important;
  min-height: 42px !important;
  grid-template-columns: 30px minmax(0, 1fr) 16px !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 2px 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #435d73 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background .16s ease, color .16s ease, transform .16s ease !important;
}

html.aem-global-ui[class*="route-account-"] .menu-item::after {
  content: '\203A';
  color: #9aabb9;
  font-size: 18px;
  line-height: 1;
}

html.aem-global-ui[class*="route-account-"] .menu-item i {
  display: grid !important;
  width: 27px !important;
  height: 27px !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: #eef4f8 !important;
  color: #476b87 !important;
  font-size: 12px !important;
}

html.aem-global-ui[class*="route-account-"] .menu-item:hover {
  background: #f0f6fa !important;
  color: var(--acx-navy) !important;
  transform: translateX(2px) !important;
}

html.aem-global-ui[class*="route-account-"] .menu-item.active {
  background: linear-gradient(100deg, var(--acx-navy), #0c5e9a) !important;
  color: #fff !important;
  box-shadow: 0 9px 20px rgba(7, 52, 95, .18) !important;
}

html.aem-global-ui[class*="route-account-"] .menu-item.active i {
  background: rgba(255, 255, 255, .13) !important;
  color: var(--acx-yellow) !important;
}

html.aem-global-ui[class*="route-account-"] .menu-item.active::after { color: #fff !important; }

html.aem-global-ui[class*="route-account-"] .menu-item.logout {
  color: var(--acx-red) !important;
}

html.aem-global-ui[class*="route-account-"] .menu-item.logout i {
  background: #fff1f2 !important;
  color: var(--acx-red) !important;
}

html.aem-global-ui[class*="route-account-"] .main-content {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html.aem-global-ui[class*="route-account-"] .welcome-header {
  position: relative !important;
  min-height: 150px !important;
  margin: 0 0 18px !important;
  padding: 30px 34px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: var(--acx-radius) !important;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 198, 47, .24), transparent 24%),
    linear-gradient(120deg, var(--acx-navy), #0a548b) !important;
  box-shadow: 0 18px 40px rgba(7, 52, 95, .16) !important;
}

html.aem-global-ui[class*="route-account-"] .welcome-header::after {
  content: '';
  position: absolute;
  right: 8%;
  bottom: -110px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}

html.aem-global-ui[class*="route-account-"] .welcome-header h2 {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: clamp(27px, 3vw, 38px) !important;
  font-weight: 900 !important;
  letter-spacing: -.035em !important;
  line-height: 1.12 !important;
}

html.aem-global-ui[class*="route-account-"] .welcome-header p {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 !important;
  color: #cde0ef !important;
  font-size: 14px !important;
}

html.aem-global-ui[class*="route-account-"] .welcome-header strong { color: var(--acx-yellow) !important; }

html.aem-global-ui[class*="route-account-"] .stats-cards,
html.aem-global-ui[class*="route-account-"] .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 0 18px !important;
}

html.aem-global-ui[class*="route-account-"] .stat-card {
  position: relative !important;
  display: grid !important;
  min-height: 108px !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 13px !important;
  padding: 18px !important;
  overflow: hidden !important;
  border: 1px solid var(--acx-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(18, 58, 88, .075) !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}

html.aem-global-ui[class*="route-account-"] .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--acx-blue), var(--acx-yellow));
}

html.aem-global-ui[class*="route-account-"] .stat-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 34px rgba(18, 58, 88, .12) !important;
}

html.aem-global-ui[class*="route-account-"] .stat-icon {
  display: grid !important;
  width: 48px !important;
  height: 48px !important;
  place-items: center !important;
  border-radius: 14px !important;
  background: #eaf4fb !important;
  color: var(--acx-blue) !important;
  font-size: 18px !important;
}

html.aem-global-ui[class*="route-account-"] .stat-icon svg {
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
}

html.aem-global-ui[class*="route-account-"] .stat-info,
html.aem-global-ui[class*="route-account-"] .stat-content {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
}

html.aem-global-ui[class*="route-account-"] .stat-value,
html.aem-global-ui[class*="route-account-"] .stat-number {
  overflow: hidden !important;
  color: var(--acx-ink) !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html.aem-global-ui[class*="route-account-"] .stat-label {
  margin-top: 6px !important;
  color: var(--acx-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

html.aem-global-ui[class*="route-account-"] .recent-orders,
html.aem-global-ui[class*="route-account-"] .content-card,
html.aem-global-ui[class*="route-account-"] .section-card,
html.aem-global-ui[class*="route-account-"] .returns-section,
html.aem-global-ui[class*="route-account-"] .transaction-history {
  overflow: hidden !important;
  border: 1px solid var(--acx-line) !important;
  border-radius: var(--acx-radius) !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(18, 58, 88, .08) !important;
}

html.aem-global-ui[class*="route-account-"] .section-header,
html.aem-global-ui[class*="route-account-"] .card-header,
html.aem-global-ui[class*="route-account-"] .page-header {
  display: flex !important;
  min-height: 76px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 18px 22px !important;
  border: 0 !important;
  border-bottom: 1px solid #e7eef4 !important;
  background: linear-gradient(100deg, #fbfdff, #f3f8fb) !important;
}

html.aem-global-ui[class*="route-account-"] .card-header { justify-content: flex-start !important; }

html.aem-global-ui[class*="route-account-"] .header-icon,
html.aem-global-ui[class*="route-account-"] .page-icon {
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  place-items: center !important;
  border-radius: 13px !important;
  background: var(--acx-navy) !important;
  color: var(--acx-yellow) !important;
  font-size: 17px !important;
}

html.aem-global-ui[class*="route-account-"] :is(.section-header, .card-header, .page-header) h2,
html.aem-global-ui[class*="route-account-"] :is(.section-header, .card-header, .page-header) h3,
html.aem-global-ui[class*="route-account-"] .page-title-text {
  margin: 0 !important;
  color: var(--acx-ink) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: -.015em !important;
}

html.aem-global-ui[class*="route-account-"] .header-text p {
  margin: 4px 0 0 !important;
  color: var(--acx-muted) !important;
  font-size: 11px !important;
}

html.aem-global-ui[class*="route-account-"] .view-all {
  display: inline-flex !important;
  min-height: 36px !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  background: #eaf3f9 !important;
  color: var(--acx-blue) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .card-body,
html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .section-content,
html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .form-container {
  padding: 22px !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .orders-table-wrapper,
html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .table-responsive {
  width: 100% !important;
  overflow-x: auto !important;
  border: 1px solid #e4ebf1 !important;
  border-radius: 14px !important;
  background: #fff !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.orders-table, .transaction-table, .returns-table, .table) {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  background: #fff !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.orders-table, .transaction-table, .returns-table, .table) th {
  padding: 13px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--acx-line) !important;
  background: #f3f7fa !important;
  color: #61798d !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-align: left !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.orders-table, .transaction-table, .returns-table, .table) td {
  padding: 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf2f5 !important;
  color: #435b70 !important;
  font-size: 11px !important;
  vertical-align: middle !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.orders-table, .transaction-table, .returns-table, .table) tbody tr:hover td {
  background: #f8fbfd !important;
}

html.aem-global-ui[class*="route-account-"] .order-id,
html.aem-global-ui[class*="route-account-"] .return-id,
html.aem-global-ui[class*="route-account-"] .transaction-amount {
  color: var(--acx-navy) !important;
  font-weight: 900 !important;
}

html.aem-global-ui[class*="route-account-"] :is(.order-status, .status-badge) {
  display: inline-flex !important;
  min-height: 27px !important;
  align-items: center !important;
  padding: 0 9px !important;
  border: 1px solid #cfe7dc !important;
  border-radius: 999px !important;
  background: #edf8f3 !important;
  color: var(--acx-green) !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

html.aem-global-ui[class*="route-account-"] .pagination-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 16px 0 0 !important;
  color: var(--acx-muted) !important;
  font-size: 11px !important;
}

html.aem-global-ui[class*="route-account-"] :is(.no-orders, .empty-state, .empty-content, .empty-history) {
  display: flex !important;
  min-height: 290px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  padding: 42px 20px !important;
  color: var(--acx-muted) !important;
  text-align: center !important;
}

html.aem-global-ui[class*="route-account-"] :is(.no-orders, .empty-state, .empty-content, .empty-history) > i,
html.aem-global-ui[class*="route-account-"] :is(.empty-icon, .empty-state-icon) {
  display: grid !important;
  width: 68px !important;
  height: 68px !important;
  place-items: center !important;
  margin: 0 0 15px !important;
  border-radius: 20px !important;
  background: #eaf3f9 !important;
  color: var(--acx-blue) !important;
  font-size: 25px !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.btn-details, .btn-shop, .btn-continue, .btn-action, .btn-save, .btn-edit, .btn-primary, .acc-btn-save) {
  display: inline-flex !important;
  min-height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(105deg, var(--acx-navy), #0a5b96) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  box-shadow: 0 9px 20px rgba(7, 52, 95, .17) !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.btn-secondary, .btn-cancel, .acc-btn-cancel, .btn-default) {
  display: inline-flex !important;
  min-height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 16px !important;
  border: 1px solid var(--acx-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #49647a !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.btn-remove, .btn-delete, .btn-danger) {
  border-color: #f0d6da !important;
  background: #fff1f2 !important;
  color: var(--acx-red) !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.form-grid, .acc-form-row) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.form-section, .acc-form-section) {
  margin: 0 0 18px !important;
  padding: 20px !important;
  border: 1px solid #e3ebf1 !important;
  border-radius: 15px !important;
  background: #fbfdfe !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.form-section, .acc-form-section) > h3,
html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] fieldset legend {
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 0 0 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #e5edf3 !important;
  color: var(--acx-navy) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.form-group, .acc-form-group) label,
html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .form-label {
  margin-bottom: 6px !important;
  color: #405a70 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.form-control, .acc-form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea) {
  min-height: 46px !important;
  padding: 10px 13px !important;
  border: 1px solid #d3e0e9 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--acx-ink) !important;
  font-size: 12px !important;
  box-shadow: none !important;
  transition: border-color .16s ease, box-shadow .16s ease !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.form-control, .acc-form-control, input, select, textarea):focus {
  border-color: var(--acx-blue) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(15, 108, 175, .11) !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .input-icon > i {
  left: 14px !important;
  color: #8497a8 !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .input-icon .acc-form-control { padding-left: 40px !important; }

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.form-actions, .acc-form-actions, .action-buttons, .buttons) {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  margin-top: 18px !important;
  padding-top: 18px !important;
  border-top: 1px solid #e7edf2 !important;
}

html.aem-global-ui[class*="route-account-"] .address-list,
html.aem-global-ui[class*="route-account-"] .return-card,
html.aem-global-ui[class*="route-account-"] .return-overview {
  display: grid !important;
  gap: 14px !important;
}

html.aem-global-ui[class*="route-account-"] .address-card,
html.aem-global-ui[class*="route-account-"] .return-row,
html.aem-global-ui[class*="route-account-"] .info-row {
  padding: 17px !important;
  border: 1px solid #e0e9f0 !important;
  border-radius: 14px !important;
  background: #fbfdfe !important;
  box-shadow: none !important;
}

html.aem-global-ui[class*="route-account-"] .address-icon,
html.aem-global-ui[class*="route-account-"] .order-icon,
html.aem-global-ui[class*="route-account-"] .return-id-icon,
html.aem-global-ui[class*="route-account-"] .order-date-icon {
  border-radius: 11px !important;
  background: #eaf3f9 !important;
  color: var(--acx-blue) !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .alert {
  padding: 13px 16px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .alert-success { border-color: #bfe5d5 !important; background: #edf9f4 !important; color: #176747 !important; }
html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .alert-danger { border-color: #f0cbd1 !important; background: #fff1f3 !important; color: #a83b4a !important; }

/* Login, registration and stock account forms. */
html.aem-global-ui[class*="route-account-"] :is(.ac-login-page, .ac-reg-page) {
  width: min(1120px, calc(100% - 48px)) !important;
  margin: 28px auto 58px !important;
  padding: 0 !important;
  background: transparent !important;
}

html.aem-global-ui[class*="route-account-"] :is(.ac-login-card, .ac-reg-card) {
  overflow: hidden !important;
  border: 1px solid var(--acx-line) !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 24px 64px rgba(13, 51, 82, .14) !important;
}

html.aem-global-ui[class*="route-account-"] .ac-login-benefits {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 198, 47, .2), transparent 24%),
    linear-gradient(145deg, var(--acx-navy), #0a4f84) !important;
}

html.aem-global-ui[class*="route-account-"] .ac-tabs {
  border-color: #dce6ee !important;
  border-radius: 12px !important;
  background: #f2f6f9 !important;
}

html.aem-global-ui[class*="route-account-"] .ac-tab.active {
  background: #fff !important;
  color: var(--acx-navy) !important;
  box-shadow: 0 5px 14px rgba(20, 55, 82, .1) !important;
}

html.aem-global-ui[class*="route-account-"] .ac-btn-primary {
  background: linear-gradient(105deg, var(--acx-navy), #0a5b96) !important;
  box-shadow: 0 11px 24px rgba(7, 52, 95, .2) !important;
}

html.aem-global-ui[class*="route-account-"] .site-wrapper > .page-title {
  width: min(1500px, calc(100% - 48px)) !important;
  margin: 28px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--acx-ink) !important;
  font-size: clamp(28px, 3vw, 40px) !important;
  font-weight: 900 !important;
  letter-spacing: -.035em !important;
  line-height: 1.15 !important;
}

@media (max-width: 1180px) {
  html.aem-global-ui[class*="route-account-"] .profile-container { grid-template-columns: 244px minmax(0, 1fr) !important; }
  html.aem-global-ui[class*="route-account-"] .profile-container > .sidebar { width: 244px !important; }
  html.aem-global-ui[class*="route-account-"] .stats-cards,
  html.aem-global-ui[class*="route-account-"] .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 820px) {
  html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] { width: calc(100% - 20px) !important; margin-top: 18px !important; }
  html.aem-global-ui[class*="route-account-"] .profile-container { display: block !important; min-height: 0 !important; }
  html.aem-global-ui[class*="route-account-"] .profile-container > .sidebar {
    position: static !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    border-radius: 17px !important;
  }
  html.aem-global-ui[class*="route-account-"] .sidebar .user-info {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px !important;
    text-align: left !important;
  }
  html.aem-global-ui[class*="route-account-"] .avatar-wrapper,
  html.aem-global-ui[class*="route-account-"] .avatar { width: 58px !important; height: 58px !important; margin: 0 !important; border-radius: 17px !important; }
  html.aem-global-ui[class*="route-account-"] .avatar-upload { width: 25px !important; height: 25px !important; border-width: 2px !important; }
  html.aem-global-ui[class*="route-account-"] .sidebar .user-info h3 { margin: 0 !important; }
  html.aem-global-ui[class*="route-account-"] .balance-wrapper { grid-column: 2 !important; justify-content: flex-start !important; }
  html.aem-global-ui[class*="route-account-"] .sidebar-menu {
    display: flex !important;
    gap: 7px !important;
    padding: 10px !important;
    overflow-x: auto !important;
    scrollbar-width: thin !important;
  }
  html.aem-global-ui[class*="route-account-"] .menu-group { display: contents !important; }
  html.aem-global-ui[class*="route-account-"] .menu-title { display: none !important; }
  html.aem-global-ui[class*="route-account-"] .menu-item {
    display: flex !important;
    min-width: max-content !important;
    flex: 0 0 auto !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 11px !important;
  }
  html.aem-global-ui[class*="route-account-"] .menu-item::after { display: none !important; }
  html.aem-global-ui[class*="route-account-"] .welcome-header { min-height: 130px !important; padding: 25px !important; }
}

@media (max-width: 620px) {
  html.aem-global-ui[class*="route-account-"] .stats-cards,
  html.aem-global-ui[class*="route-account-"] .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  html.aem-global-ui[class*="route-account-"] .stat-card { min-height: 94px !important; grid-template-columns: 38px minmax(0, 1fr) !important; gap: 10px !important; padding: 13px !important; }
  html.aem-global-ui[class*="route-account-"] .stat-icon { width: 38px !important; height: 38px !important; border-radius: 11px !important; }
  html.aem-global-ui[class*="route-account-"] .stat-value,
  html.aem-global-ui[class*="route-account-"] .stat-number { font-size: 17px !important; }
  html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.form-grid, .acc-form-row) { grid-template-columns: 1fr !important; }
  html.aem-global-ui[class*="route-account-"] :is(.section-header, .card-header, .page-header) { min-height: 68px !important; padding: 14px !important; }
  html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .card-body,
  html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .section-content,
  html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] .form-container { padding: 14px !important; }
  html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.form-section, .acc-form-section) { padding: 14px !important; }
  html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(.form-actions, .acc-form-actions, .action-buttons, .buttons) > * { flex: 1 1 auto !important; }
  html.aem-global-ui[class*="route-account-"] :is(.ac-login-page, .ac-reg-page) { width: calc(100% - 20px) !important; margin-top: 18px !important; }
  html.aem-global-ui[class*="route-account-"] :is(.ac-login-card, .ac-reg-card) { border-radius: 18px !important; }
}

@media (max-width: 420px) {
  html.aem-global-ui[class*="route-account-"] .stats-cards,
  html.aem-global-ui[class*="route-account-"] .stats-grid { grid-template-columns: 1fr !important; }
  html.aem-global-ui[class*="route-account-"] .welcome-header h2 { font-size: 25px !important; }
  html.aem-global-ui[class*="route-account-"] .balance-wrapper { flex-wrap: wrap !important; }
}

html.aem-dark[class*="route-account-"] body { background: #0e151d !important; }
html.aem-dark[class*="route-account-"] :is(.profile-container > .sidebar, .sidebar-menu, .stat-card, .recent-orders, .content-card, .section-card, .returns-section, .transaction-history, .card-body, .section-content) { border-color: #293846 !important; background: #151e27 !important; }
html.aem-dark[class*="route-account-"] :is(.section-header, .card-header, .page-header) { border-color: #293846 !important; background: #18232d !important; }
html.aem-dark[class*="route-account-"] :is(.section-header, .card-header, .page-header) h2,
html.aem-dark[class*="route-account-"] :is(.section-header, .card-header, .page-header) h3,
html.aem-dark[class*="route-account-"] .stat-value { color: #edf4f9 !important; }

@media (prefers-reduced-motion: reduce) {
  html.aem-global-ui[class*="route-account-"] :is(.menu-item, .stat-card),
  html.aem-global-ui[class*="route-account-"] .site-wrapper > [id^="account-"] :is(input, select, textarea) { transition: none !important; }
}
