/* Havuzmalzemem — giriş yapmış hesap sayfaları */

body#my-account #main,
body#identity #main,
body#addresses #main,
body#address #main,
body#history #main,
body#order-detail #main,
body#order-slip #main,
body#discount #main,
body#order-follow #main,
body#guest-tracking #main {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.hm-account {
  margin-bottom: 2rem;
}

.hm-account-hero {
  background: linear-gradient(145deg, #0d3b66 0%, #145a8a 42%, #0a1628 100%);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(10, 22, 40, 0.22);
  color: #fff;
  margin-bottom: 1.5rem;
  overflow: hidden;
  padding: 1.75rem 1.5rem 1.55rem;
  position: relative;
}

.hm-account-hero--compact {
  padding: 1.25rem 1.25rem 1.15rem;
}

.hm-account-hero__wave {
  background-image:
    url("../img/hm-header-nav-wave.svg"),
    url("../img/hm-header-nav-wave-2.svg");
  background-position: 0 bottom, 80px bottom;
  background-repeat: repeat-x;
  background-size: 520px 100%, 640px 100%;
  bottom: 0;
  left: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

@supports (animation: hm-account-wave 18s linear infinite) {
  .hm-account-hero__wave {
    animation: hm-account-wave 18s linear infinite;
  }
}

@keyframes hm-account-wave {
  from { background-position: 0 bottom, 80px bottom; }
  to { background-position: -520px bottom, -560px bottom; }
}

.hm-account-hero__eyebrow,
.hm-account-hero__title,
.hm-account-hero__text {
  color: #fff !important;
  position: relative;
  z-index: 1;
}

.hm-account-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.35rem;
  opacity: 0.85;
  text-transform: uppercase;
}

.hm-account-hero__title {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.hm-account-hero__text {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.92;
}

.hm-account-grid {
  display: grid !important;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  justify-content: stretch !important;
}

/* Tema .page-my-account #content .links a { display:inline-block } üstüne yaz */
body#my-account #content .hm-account-grid.links,
body#my-account .page-content .hm-account-grid.links,
body#my-account .hm-account-grid.links {
  display: grid !important;
  flex-wrap: unset !important;
  justify-content: stretch !important;
}

.hm-account-card,
body#my-account #content .hm-account-grid.links a.hm-account-card,
body#my-account .hm-account-grid.links a.hm-account-card,
body#my-account .hm-account-grid a.hm-account-card,
body#my-account .hm-account-grid.links > a[class*="col-"] {
  align-items: center !important;
  background: linear-gradient(165deg, rgba(13, 59, 102, 0.96) 0%, rgba(10, 22, 40, 0.98) 100%) !important;
  border: 1px solid rgba(186, 230, 253, 0.22);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(13, 59, 102, 0.16);
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  gap: 0.2rem;
  height: auto !important;
  justify-content: center !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 78px;
  padding: 0.45rem 0.7rem !important;
  position: relative;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  width: auto !important;
}

/* KVKK kartı hesap sayfasında gösterilmez */
body#my-account .hm-account-grid #psgdpr-link,
body#my-account .hm-account-grid a[id="psgdpr-link"] {
  display: none !important;
}

.hm-account-card::after {
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35), transparent);
  bottom: 0;
  content: "";
  height: 2px;
  left: 12%;
  opacity: 0;
  position: absolute;
  right: 12%;
  transition: opacity 0.18s ease;
}

.hm-account-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 34px rgba(13, 59, 102, 0.28);
  color: #fff !important;
  transform: translateY(-3px);
}

.hm-account-card:hover::after {
  opacity: 1;
}

.hm-account-card--accent {
  background: linear-gradient(165deg, #1a6b9a 0%, #0d3b66 55%, #0a1628 100%);
}

.hm-account-card__icon,
body#my-account .hm-account-card .hm-account-card__icon {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex !important;
  flex-shrink: 0;
  height: 34px;
  justify-content: center !important;
  margin: 0 auto 0.25rem !important;
  padding: 0 !important;
  width: 34px;
}

.hm-account-card__icon .material-icons,
body#my-account .hm-account-card .hm-account-card__icon .material-icons,
body#my-account #content .hm-account-grid.links a.hm-account-card i.material-icons {
  color: #e0f2fe !important;
  display: inline-flex !important;
  font-size: 18px !important;
  height: auto !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

.hm-account-card__title,
.hm-account-card__desc,
.hm-account-card span,
body#my-account .hm-account-card .hm-account-card__title,
body#my-account .hm-account-card .hm-account-card__desc {
  color: #fff !important;
  display: block !important;
  text-align: center !important;
  width: 100%;
}

.hm-account-card__title,
body#my-account .hm-account-card .hm-account-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.hm-account-card__desc,
body#my-account .hm-account-card .hm-account-card__desc {
  font-size: 0.74rem;
  font-weight: 500;
  opacity: 0.85;
  text-transform: none !important;
}

body#my-account #content .hm-account-grid.links a.hm-account-card:hover,
body#my-account .hm-account-card:hover {
  color: #fff !important;
}

body#my-account #content .hm-account-grid.links a.hm-account-card:hover i {
  color: #e0f2fe !important;
}

/* Modül kartları (istek listesi / KVKK) için eski col / link-item düzenini nötrle */
.hm-account-grid > a[class*="col-"] {
  float: none !important;
  max-width: none !important;
  padding: 0.85rem 0.7rem !important;
  width: auto !important;
}

.hm-account-card .link-item,
body#my-account .hm-account-grid a .link-item,
body#my-account .hm-account-grid a[class*="col-"] .link-item {
  align-items: center !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem;
  height: auto !important;
  justify-content: center !important;
  padding: 0 !important;
  text-align: center !important;
  width: 100%;
}

/* Eski markup ikonu (i.material-icons doğrudan link içinde) — ortala ve küçült */
body#my-account .hm-account-grid a .link-item i.material-icons,
body#my-account .hm-account-grid a[class*="col-"] i.material-icons {
  color: #e0f2fe !important;
  display: block !important;
  font-size: 20px !important;
  margin: 0 auto 0.2rem !important;
  padding: 0 !important;
  text-align: center !important;
  width: 100% !important;
}

.hm-account-logout {
  margin-top: 1.5rem;
}

.hm-account-logout__btn {
  background: transparent;
  border: 1px solid rgba(13, 59, 102, 0.35);
  border-radius: 999px;
  color: #0d3b66 !important;
  display: inline-block;
  font-weight: 700;
  padding: 0.55rem 1.35rem;
  text-decoration: none !important;
}

.hm-account-logout__btn:hover {
  background: #0d3b66;
  color: #fff !important;
}

.hm-account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hm-account-nav__link {
  align-items: center;
  background: linear-gradient(145deg, #0d3b66, #1a6b9a);
  border-radius: 999px;
  color: #fff !important;
  display: inline-flex;
  font-weight: 600;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  text-decoration: none !important;
}

.hm-account-nav__link .material-icons {
  font-size: 18px;
}

.hm-account-form-panel {
  background: #fff;
  border: 1px solid rgba(13, 59, 102, 0.1);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(13, 59, 102, 0.08);
  padding: 1.25rem 1.15rem;
}

.hm-address-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.hm-address-card,
body#addresses .address.hm-address-card {
  background: #fff;
  border: 1px solid rgba(13, 59, 102, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(13, 59, 102, 0.08);
  overflow: hidden;
}

.hm-address-card .address-body {
  padding: 1rem 1rem 0.75rem;
}

.hm-address-card .address-body h4 {
  color: #0a1628;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.hm-address-card .address-footer {
  background: linear-gradient(90deg, #0d3b66, #1a6b9a);
  display: flex;
  gap: 0.25rem;
  padding: 0.55rem 0.65rem;
}

.hm-address-card .address-footer a {
  align-items: center;
  color: #fff !important;
  display: inline-flex;
  flex: 1;
  font-weight: 600;
  gap: 0.25rem;
  justify-content: center;
  padding: 0.4rem;
  text-decoration: none !important;
}

.hm-address-card .address-footer a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.hm-add-address-btn {
  align-items: center;
  background: linear-gradient(145deg, #38bdf8 0%, #1a6b9a 52%, #0d3b66 100%);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(13, 59, 102, 0.22);
  color: #fff !important;
  display: inline-flex;
  font-weight: 700;
  gap: 0.35rem;
  padding: 0.7rem 1.25rem;
  text-decoration: none !important;
}

.hm-add-address-btn:hover {
  color: #fff !important;
  filter: brightness(1.05);
}

.hm-addresses-footer {
  margin-top: 1.25rem;
}

.hm-account-table thead th {
  background: #0d3b66;
  border-color: #0d3b66;
  color: #fff !important;
}

body#my-account #content-wrapper .page-header h1,
body#identity #content-wrapper .page-header h1,
body#addresses #content-wrapper .page-header h1,
body#address #content-wrapper .page-header h1,
body#history #content-wrapper .page-header h1 {
  color: #0a1628;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .hm-account-hero__wave,
  .hm-account-card,
  .hm-user-menu__wave,
  .hm-user-menu__foam,
  .hm-user-menu__bubble,
  .hm-user-menu__caret {
    animation: none !important;
    transition: none !important;
  }
}

/* ——— Üst bar hesap menüsü (giriş sonrası dropdown) ——— */

#header .header-nav .hm-header-utilities > .hm-user-menu {
  align-items: center;
  display: inline-flex;
  float: none;
  margin: 0;
  padding-left: 12px;
  padding-right: 0;
  position: relative;
  z-index: 12040;
}

#header .header-nav .hm-header-utilities > #_desktop_currency_selector + .hm-user-menu::before,
#header .header-nav .hm-header-utilities > .hm-header-track + .hm-user-menu::before {
  background-color: rgba(255, 255, 255, 0.28);
  content: "";
  height: 15px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
}

.hm-user-menu--guest {
  gap: 8px;
}

.hm-user-menu__trigger {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(224, 242, 254, 0.35);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(10, 22, 40, 0.2);
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  max-width: 220px;
  padding: 4px 10px 4px 4px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hm-user-menu__trigger:hover,
.hm-user-menu.is-open .hm-user-menu__trigger {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(125, 211, 252, 0.65);
  color: #fff !important;
}

.hm-user-menu__avatar {
  align-items: center;
  background: linear-gradient(145deg, #38bdf8 0%, #0d3b66 100%);
  border-radius: 50%;
  display: inline-flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 32px;
}

.hm-user-menu__avatar .material-icons {
  color: #fff !important;
  font-size: 18px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.hm-user-menu__foam {
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.85) 0 28%, transparent 32%),
    radial-gradient(circle at 70% 55%, rgba(224, 242, 254, 0.7) 0 20%, transparent 24%),
    linear-gradient(180deg, transparent 45%, rgba(255, 255, 255, 0.35) 100%);
  bottom: -2px;
  height: 18px;
  left: 0;
  opacity: 0.75;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(4px);
}

@supports (animation: hm-user-foam 2.8s ease-in-out infinite) {
  .hm-user-menu__foam {
    animation: hm-user-foam 2.8s ease-in-out infinite;
  }
}

@keyframes hm-user-foam {
  0%, 100% { transform: translateY(5px) scaleX(1); opacity: 0.65; }
  50% { transform: translateY(2px) scaleX(1.08); opacity: 0.9; }
}

.hm-user-menu__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
  text-align: left;
}

.hm-user-menu__hello,
.hm-user-menu__name {
  color: #fff !important;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-user-menu__hello {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.82;
  text-transform: uppercase;
}

.hm-user-menu__name {
  font-size: 13px;
  font-weight: 700;
}

.hm-user-menu__caret {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #e0f2fe;
  flex-shrink: 0;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.hm-user-menu.is-open .hm-user-menu__caret {
  transform: rotate(180deg);
}

.hm-user-menu__panel {
  background: linear-gradient(165deg, #0d3b66 0%, #145a8a 48%, #0a1628 100%);
  border: 1px solid rgba(186, 230, 253, 0.28);
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(10, 22, 40, 0.42);
  color: #fff;
  margin-top: 10px;
  min-width: 268px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  right: 0;
  top: 100%;
  transform-origin: top right;
  z-index: 14000;
}

.hm-user-menu__panel[hidden] {
  display: none !important;
}

.hm-user-menu.is-open .hm-user-menu__panel:not([hidden]) {
  animation: hm-user-panel-in 0.22s ease;
}

@keyframes hm-user-panel-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hm-user-menu__wave {
  background-image:
    url("../img/hm-header-nav-wave.svg"),
    url("../img/hm-header-nav-wave-2.svg");
  background-position: 0 100%, 40px 100%;
  background-repeat: repeat-x;
  background-size: 280px 56px, 340px 56px;
  height: 56px;
  left: 0;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

@supports (animation: hm-user-wave 14s linear infinite) {
  .hm-user-menu__wave {
    animation: hm-user-wave 14s linear infinite;
  }
}

@keyframes hm-user-wave {
  from { background-position: 0 100%, 40px 100%; }
  to { background-position: -280px 100%, -300px 100%; }
}

.hm-user-menu__bubble {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(186, 230, 253, 0.15) 55%, transparent 70%);
  border-radius: 50%;
  position: absolute;
}

.hm-user-menu__bubble--1 { height: 10px; left: 18%; top: 28px; width: 10px; }
.hm-user-menu__bubble--2 { height: 7px; left: 48%; top: 18px; width: 7px; }
.hm-user-menu__bubble--3 { height: 12px; left: 72%; top: 24px; width: 12px; }

@supports (animation: hm-user-bubble 3.6s ease-in-out infinite) {
  .hm-user-menu__bubble--1 { animation: hm-user-bubble 3.2s ease-in-out infinite; }
  .hm-user-menu__bubble--2 { animation: hm-user-bubble 2.6s ease-in-out 0.4s infinite; }
  .hm-user-menu__bubble--3 { animation: hm-user-bubble 3.8s ease-in-out 0.8s infinite; }
}

@keyframes hm-user-bubble {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-8px) scale(1.2); opacity: 0.85; }
}

.hm-user-menu__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1rem 1rem 0.85rem;
  position: relative;
  z-index: 1;
}

.hm-user-menu__eyebrow,
.hm-user-menu__welcome {
  color: #fff !important;
  margin: 0;
  position: relative;
  z-index: 1;
}

.hm-user-menu__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.25rem;
  opacity: 0.8;
  text-transform: uppercase;
}

.hm-user-menu__welcome {
  font-size: 0.98rem;
  font-weight: 700;
}

.hm-user-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.55rem 0.55rem 0.35rem;
  position: relative;
  z-index: 1;
}

.hm-user-menu__link {
  align-items: center;
  border-radius: 10px;
  color: #e8f4fc !important;
  display: flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hm-user-menu__link span {
  color: #e8f4fc !important;
}

.hm-user-menu__link .material-icons,
#header .header-nav .hm-user-menu__link .material-icons {
  color: #7dd3fc !important;
  font-size: 18px;
}

.hm-user-menu__link:hover,
.hm-user-menu__link:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  transform: translateX(2px);
}

.hm-user-menu__link:hover span,
.hm-user-menu__link:focus span {
  color: #fff !important;
}

.hm-user-menu__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.55rem 0.7rem 0.75rem;
  position: relative;
  z-index: 1;
}

.hm-user-menu__logout {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(224, 242, 254, 0.35);
  border-radius: 999px;
  color: #fff !important;
  display: flex;
  font-size: 0.88rem;
  font-weight: 700;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hm-user-menu__logout:hover,
.hm-user-menu__logout:focus {
  background: rgba(56, 189, 248, 0.28);
  border-color: #7dd3fc;
  color: #fff !important;
}

.hm-user-menu__guest-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(224, 242, 254, 0.3);
  border-radius: 999px;
  color: #fff !important;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
  padding: 0.35rem 0.7rem;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hm-user-menu__guest-link .material-icons {
  color: #e0f2fe !important;
  font-size: 15px;
}

.hm-user-menu__guest-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

.hm-user-menu__guest-link--accent {
  background: linear-gradient(145deg, #38bdf8 0%, #1a6b9a 55%, #0d3b66 100%);
  border-color: transparent;
}

.hm-user-menu__guest-link--accent:hover {
  filter: brightness(1.06);
}
