/* Ortak üst menü aksiyonları + Hesabım paneli (SiteChrome) — renk: --hx-accent (admin) */
.hx { --hx-accent: #ff0f50; position: relative; }
.hx .hx-actions { display: flex !important; align-items: center; gap: 10px !important; }
.hx .hx-ic { flex-shrink: 0; }

/* Giriş öncesi: KAYIT OL | GİRİŞ YAP */
.hx-guest, .hx-user { display: flex; align-items: center; gap: 10px; }
.hx[data-auth="1"] .hx-guest { display: none !important; }
.hx[data-auth="0"] .hx-user { display: none !important; }
.hx-guest {
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px 3px 3px 0;
}
.hx-guest button[hidden] { display: inline-flex !important; }
.hx-reg, .hx-login {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap;
}
.hx-reg { background: transparent; color: var(--hx-accent); padding: 10px 18px 10px 22px; }
.hx-reg:hover { filter: brightness(1.15); }
.hx-login {
  background: var(--hx-accent); color: #fff;
  border-radius: 999px; padding: 11px 22px;
}
.hx-login:hover { filter: brightness(1.08); }

/* Giriş sonrası */
.hx-user [hidden] { display: inline-flex !important; }
.hx-user .hx-bell__dot[hidden] { display: none !important; }
.hx-bal {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  border: 1.5px solid var(--hx-accent); border-radius: 999px;
  padding: 10px 20px; cursor: pointer; font: inherit; font-weight: 800; font-size: 15px;
  white-space: nowrap;
}
.hx-bal__val { color: inherit; font: inherit; }
.hx-cash {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 3px;
}
.hx-cash button, .hx-acc {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer; font: inherit;
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
}
.hx-cash__wd { background: transparent; color: #fff; padding: 10px 16px 10px 18px; border-radius: 999px; }
.hx-bal .hx-ic, .hx-cash__wd .hx-ic { color: var(--hx-accent); }
.hx-cash__dep { background: var(--hx-accent); color: #fff; padding: 11px 22px; border-radius: 999px; }
.hx-cash__wd:hover { filter: brightness(1.15); }
.hx-cash__dep:hover { filter: brightness(1.08); }
.hx-acc {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.85); border-radius: 999px; padding: 10px 20px;
}
.hx-acc:hover { border-color: var(--hx-accent); color: var(--hx-accent); }
.hx-bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 50%;
}
.hx-bell .hx-ic { width: 22px; height: 22px; }
.hx-bell:hover { color: var(--hx-accent); }
.hx-bell__dot {
  position: absolute; top: 6px; right: 7px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--hx-accent); box-shadow: 0 0 0 2px #010028;
}
.hx-notice {
  position: absolute; right: 24px; top: calc(100% - 6px); z-index: 300;
  width: min(340px, calc(100vw - 24px));
  background: #141a2c; color: #e8ebf5; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 14px 16px; font-size: 14px; line-height: 1.5;
}

/* Hesabım paneli */
.hx-overlay { position: fixed; inset: 0; z-index: 990; background: rgba(0, 0, 0, 0.5); }
.hx-drawer {
  --hx-accent: #ff0f50;
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000;
  width: min(360px, 100vw);
  background: #141a2c; color: #e8ebf5;
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(105%); transition: transform .22s ease;
  display: flex; flex-direction: column;
  font-family: inherit;
}
.hx-drawer.is-open { transform: translateX(0); }
.hx-drawer__head {
  display: flex; align-items: center; justify-content: center; position: relative;
  min-height: 60px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hx-drawer__x {
  position: absolute; left: 0; top: 0; width: 52px; height: 52px;
  background: var(--hx-accent); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-size: 20px; font-weight: 900; border-bottom-right-radius: 14px;
}
.hx-drawer__user { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.hx-drawer__user .user-chip { all: unset; }
.hx-drawer__scroll { flex: 1; overflow-y: auto; padding: 16px 18px 24px; }
.hx-sum { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 10px; margin-bottom: 14px; }
.hx-sum__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.hx-sum__row span { flex: 1; }
.hx-sum__row strong { font-weight: 800; }
.hx-sum__row[hidden] { display: none; }
.hx-sum__row.is-main { color: var(--hx-accent); font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 10px; margin-bottom: 4px; }
.hx-sec { margin-bottom: 14px; }
.hx-sec summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--hx-accent); font-weight: 800; font-size: 14px; letter-spacing: .02em; padding: 8px 0;
}
.hx-sec summary::-webkit-details-marker { display: none; }
.hx-sec summary::after { content: '⌃'; font-size: 14px; transition: transform .15s; }
.hx-sec:not([open]) summary::after { transform: rotate(180deg); }
.hx-sec__list { display: flex; flex-direction: column; gap: 8px; }
.hx-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: #222a40; color: #fff; border: 0; border-radius: 16px;
  padding: 14px 18px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em; text-align: left;
}
.hx-item:hover { background: #2b3452; }
.hx-drawer__foot { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.hx-support, .hx-logout {
  display: flex !important; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px !important; padding: 14px 18px !important;
  font: inherit; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; border: 0 !important;
}
.hx-support { background: #16a34a; color: #fff; }
.hx-logout { background: #b91c3c !important; color: #fff !important; width: 100%; }
.hx-logout[hidden] { display: none !important; }
.hx-support:hover, .hx-logout:hover { filter: brightness(1.1); }
.hx-back { background: transparent; border: 0; color: var(--hx-accent); font: inherit; font-weight: 800; cursor: pointer; padding: 4px 0 10px; font-size: 14px; }
.hx-sub__title { margin: 0 0 12px; font-size: 15px; font-weight: 800; text-transform: uppercase; }
.hx-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #1b2236; border-radius: 12px; padding: 10px 14px; margin-bottom: 6px; font-size: 13px;
}
.hx-row > div { display: flex; flex-direction: column; min-width: 0; }
.hx-row > div span { font-weight: 700; overflow-wrap: anywhere; }
.hx-row small { color: rgba(232, 235, 245, 0.6); font-size: 11.5px; margin-top: 2px; }
.hx-row strong { white-space: nowrap; font-weight: 800; }
.is-plus { color: #22c55e; }
.is-minus { color: #f87171; }
.hx-empty { color: rgba(232, 235, 245, 0.6); font-size: 13px; padding: 10px 0; }
.hx-form { display: flex; flex-direction: column; gap: 10px; }
.hx-form input {
  background: #1b2236; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
  color: #fff; padding: 12px 14px; font: inherit; font-size: 14px;
}
.hx-form__btn { background: var(--hx-accent); color: #fff; border: 0; border-radius: 999px; padding: 12px; font: inherit; font-weight: 800; cursor: pointer; }
.hx-form__msg { margin: 0; font-size: 13px; min-height: 18px; }
.hx-form__msg.is-ok { color: #22c55e; }
.hx-form__msg.is-err { color: #f87171; }

/* Dar ekran: yazılar kısalır, simgeler kalır */
@media (max-width: 1200px) {
  .hx-cash__wd span, .hx-acc span { display: none; }
  .hx-cash__wd { padding: 10px 12px; }
  .hx-acc { padding: 10px 12px; }
}
@media (max-width: 900px) {
  .hx .hx-actions { gap: 6px !important; }
  .hx-user { gap: 6px; }
  .hx-bal { padding: 8px 12px; font-size: 13px; }
  .hx-cash__dep { padding: 9px 12px; }
  .hx-cash__dep span { display: none; }
  .hx-bell { width: 32px; height: 32px; }
  .hx-reg { padding: 8px 12px 8px 14px; font-size: 12px; }
  .hx-login { padding: 9px 14px; font-size: 12px; }
  .hx-notice { right: 8px; }
}
@media (max-width: 480px) {
  .hx-reg span { display: none; }
  .hx-reg { padding: 8px 10px; }
}
