/* 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:not(:has(button:not([hidden]))) { display: none !important; }
.hx-reg, .hx-login, .hx-code-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-guest button[hidden] { display: none !important; }
.hx-reg { background: transparent; color: var(--hx-accent); padding: 10px 18px 10px 22px; }
.hx-reg:hover { filter: brightness(1.15); }
.hx-login, .hx-code-login {
  background: var(--hx-accent); color: #fff;
  border-radius: 999px; padding: 11px 22px;
}
.hx-login:hover, .hx-code-login:hover { filter: brightness(1.08); }
.hx[data-member-auth="0"] .hx-reg,
.hx[data-member-auth="0"] .hx-login { display: none !important; }
.hx[data-member-auth="1"] .hx-code-login { display: none !important; }
@media (max-width: 720px) {
  .hx-reg, .hx-login, .hx-code-login {
    font-size: 11.5px; gap: 5px; padding: 9px 14px;
  }
  .hx-reg { padding-left: 14px; padding-right: 12px; }
  .hx-guest { padding: 2px; }
}

/* Giriş sonrası */
.hx-user [hidden] { display: inline-flex !important; }
.hx-user .hx-bell__dot[hidden], .hx-user .hx-bell[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(420px, 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; }

/* Yatırım / çekim geçmişi: yatırım yeşil, çekim mavi, iptal kırmızı */
.hx-pay { border-left: 4px solid transparent; }
.hx-pay--dep { border-left-color: #22c55e; background: linear-gradient(90deg, rgba(34,197,94,.13), #1b2236 55%); }
.hx-pay--wd { border-left-color: #3b9eff; background: linear-gradient(90deg, rgba(59,158,255,.14), #1b2236 55%); }
.hx-pay--no { border-left-color: #f87171; background: linear-gradient(90deg, rgba(248,113,113,.13), #1b2236 55%); }
.hx-pay--dep > div:first-child span { color: #4ade80; }
.hx-pay--wd > div:first-child span { color: #6cb8ff; }
.hx-pay--no > div:first-child span { color: #fca5a5; }
.hx-pay .hx-pay__r { align-items: flex-end; flex: 0 0 auto; gap: 4px; }
.hx-pay--dep strong { color: #4ade80; }
.hx-pay--wd strong { color: #6cb8ff; }
.hx-pay--no strong { color: rgba(232,235,245,.5); text-decoration: line-through; }
.hx-pay__st {
  font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1;
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.hx-pay__st.is-wait { background: rgba(250,204,21,.16); color: #facc15; }
.hx-pay__st.is-ok { background: rgba(34,197,94,.16); color: #4ade80; }
.hx-pay__st.is-no { background: rgba(248,113,113,.18); color: #f87171; }
@media (max-width: 360px) {
  .hx-pay { padding: 9px 10px; gap: 8px; }
  .hx-pay strong { font-size: 12.5px; }
}

/* Kupon kartları — maç / oran / skor / sonuç */
.hx-bet {
  background: #1b2236; border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
}
.hx-bet__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.hx-bet__code { display: block; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.hx-bet__head small { display: block; color: rgba(232,235,245,.55); font-size: 11px; margin-top: 2px; }
.hx-bet__sum { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.hx-bet__sum strong { font-size: 13px; font-weight: 800; }
.hx-bet__st, .hx-bet__legst {
  display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08);
}
.hx-bet__st.is-plus, .hx-bet__legst.is-plus { background: rgba(34,197,94,.18); color: #4ade80; }
.hx-bet__st.is-minus, .hx-bet__legst.is-minus { background: rgba(248,113,113,.18); color: #f87171; }
.hx-bet__st.is-live, .hx-bet__legst.is-live { background: rgba(255,15,80,.18); color: #ff6b9a; }
.hx-bet__st.is-void, .hx-bet__legst.is-void { color: rgba(232,235,245,.7); }
.hx-bet__meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0 8px;
  font-size: 12px; color: rgba(232,235,245,.7);
}
.hx-bet__meta b { color: #fff; font-weight: 800; }
.hx-bet__legs { display: flex; flex-direction: column; gap: 6px; }
.hx-bet__leg {
  background: #141a2c; border-radius: 10px; padding: 8px 10px;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
}
.hx-bet__match { font-weight: 700; font-size: 12.5px; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hx-bet__score {
  font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px;
  background: rgba(255,255,255,.1); color: #fff;
}
.hx-bet__pick { font-size: 11.5px; color: rgba(232,235,245,.75); }
.hx-bet__pick b { color: #fff; }
.hx-bet__legst { justify-self: end; }

@media (min-width: 900px) {
  .hx-drawer { width: min(480px, 42vw); }
}
@media (max-width: 640px) {
  .hx-drawer { width: 100vw; }
  .hx-bet__leg { grid-template-columns: 1fr; }
  .hx-bet__legst { justify-self: start; margin-top: 4px; }
}

.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; }
}
