/* GloryBanger account center: header balance, user menu, account dialog.
   Uses the lobby tokens (lobby.css :root). No inline styles (strict style-src 'self'). */

/* ---------- header: signed-in area ---------- */
html[data-signed] .top-actions > [data-auth] { display: none; }
.me { display: flex; align-items: center; gap: 10px; }
.me-bal {
  display: inline-flex; align-items: baseline; gap: 6px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: inherit; cursor: pointer; white-space: nowrap; transition: border-color .15s, background-color .15s;
}
.me-bal:hover { border-color: var(--line-2); background: var(--surface-2); }
.me-bal-amt { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.me-bal-cur { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.tag-test {
  align-self: center; display: inline-block; margin-left: 4px; padding: 2px 6px; border-radius: 6px;
  background: #fff3cd; color: #7a5200; font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1.3;
}
.me-dep { height: 44px; }

.me-wrap { position: relative; }
.me-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 6px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.me-btn:hover, .me-btn[aria-expanded="true"] { border-color: var(--line-2); background: var(--surface-2); }
.me-av {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(180deg, var(--blue), var(--blue-600)); color: #fff; font-weight: 800; font-size: 14px;
}
.me-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-chev { width: 16px; height: 16px; color: var(--ink-3); transition: transform .15s; }
.me-btn[aria-expanded="true"] .me-chev { transform: rotate(180deg); }

.me-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 260px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  animation: pop .18s var(--ease);
}
.me-menu-head { display: grid; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.me-menu-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-menu-id { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.me-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font: inherit; font-weight: 500; text-align: left; cursor: pointer;
}
.me-item svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.me-item:hover, .me-item:focus-visible { background: var(--surface-2); outline: none; }
.me-soon { margin-left: auto; padding: 2px 7px; border-radius: 6px; background: var(--blue-50); color: var(--blue); font-size: 11px; font-weight: 700; }
.me-sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.me-out, .me-out svg { color: var(--red); }

@media (max-width: 719px) {
  .me { gap: 6px; }
  .me-dep, .me-name, .me-chev, .me-bal-cur { display: none; }
  .me-bal { padding: 0 10px; }
  .me-btn { padding: 0 6px; }
  .me-menu { position: fixed; left: 12px; right: 12px; top: calc(var(--top-h) + 6px); width: auto; }
}

/* ---------- account dialog ---------- */
.acct {
  display: none; width: min(980px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 32px)); padding: 0;
  border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); overflow: hidden;
}
.acct[open] { display: grid; grid-template-columns: 236px minmax(0, 1fr); animation: pop .25s var(--ease); }
.acct::backdrop { background: rgba(3, 10, 36, .56); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.acct-side { padding: 24px 14px; background: var(--surface-2); border-right: 1px solid var(--line); overflow-y: auto; }
.acct-title { padding: 0 10px 14px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.acct-nav { display: grid; gap: 2px; }
.acct-nav button {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 12px;
  background: none; color: var(--ink-2); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.acct-nav button svg { width: 20px; height: 20px; flex: none; }
.acct-nav button:hover { background: var(--surface); color: var(--ink); }
.acct-nav button[aria-current="page"] { background: var(--blue-50); color: var(--blue); }
.acct-main { position: relative; min-width: 0; overflow-y: auto; }
.acct-main:focus { outline: none; }
.acct-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.acct-body { padding: 28px 32px 32px; }
.acct-loading, .acct-empty { color: var(--ink-3); padding: 18px 0; }
.acct-muted { color: var(--ink-3); font-size: 13px; margin-top: 14px; }

.acct-view { display: grid; gap: 18px; }
.acct-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; padding-right: 44px; }
.acct-head p { margin-top: 4px; color: var(--ink-2); }
.acct-alert { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r); font-size: 14px; }
.acct-alert.is-test { background: #fff8e1; color: #6b4a00; border: 1px solid #f6dd94; }
.acct-alert.is-error { background: #fdecec; color: #8d1d22; border: 1px solid #f5c2c4; }

.acct-sub { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); justify-self: start; }
.acct-sub button { height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; }
.acct-sub button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: .5; cursor: default; }

/* deposit */
.dep { display: grid; gap: 22px; }
.dep-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.dep-qr { padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); align-self: start; }
.qr { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.dep-info { display: grid; gap: 10px; align-content: start; min-width: 0; }
.dep-label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.dep-net { font-size: 14px; color: var(--ink-2); }
.dep-addr {
  display: block; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  font: 600 15px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; user-select: all; color: var(--ink);
}
.dep-actions { display: flex; gap: 8px; }
.dep-rules { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; display: grid; gap: 5px; }
.dep-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dep-recent h4, .sec-block h4, .acct-soon h4 { font-size: 16px; font-weight: 700; }

/* transactions */
.tx-list, .sess-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tx { display: grid; grid-template-columns: 38px 1fr auto auto 28px; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.tx:first-child, .sess:first-child { border-top: 0; }
.tx-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
.tx-ico svg { width: 18px; height: 18px; }
.tx-ico.is-in { background: #e7f7ee; color: #157347; }
.tx-main { display: grid; min-width: 0; }
.tx-main small, .sess-main small { color: var(--ink-3); font-size: 12.5px; }
.tx-status { display: inline-flex; align-items: center; gap: 4px; }
.tx-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-amt.is-in { color: #157347; }
.tx-link { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--ink-3); }
.tx-link svg { width: 16px; height: 16px; }
a.tx-link:hover { background: var(--surface-2); color: var(--blue); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.is-ok { background: #e7f7ee; color: #157347; }

/* balance */
.bal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bal-card { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.bal-card span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.bal-card b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bal-card small { color: var(--ink-3); font-size: 12px; }

.acct-soon { display: grid; gap: 10px; padding: 22px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); }
.acct-soon p { color: var(--ink-2); }

/* account */
.prof { display: flex; align-items: center; gap: 14px; }
.prof-av { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(180deg, var(--blue), var(--blue-600)); color: #fff; font-size: 22px; font-weight: 800; }
.prof div { display: grid; }
.prof small { color: var(--ink-3); }
.kv-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; }
.kv span { color: var(--ink-3); }
.kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* security */
.sec-block { display: grid; gap: 10px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sess { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.sess-main { display: grid; min-width: 0; }

/* support */
.faq { border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; }
.faq summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.faq p { padding: 0 0 14px; color: var(--ink-2); }

/* phones: full-screen sheet, tabs on top */
@media (max-width: 719px) {
  .acct { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
  .acct[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .acct-side { min-width: 0; padding: 14px 12px 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
  .acct-title { padding: 0 4px 10px; padding-right: 48px; }
  .acct-nav { grid-auto-flow: column; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .acct-nav button { padding: 9px 12px; white-space: nowrap; }
  .acct-nav button svg { display: none; }
  .acct-close { top: 8px; right: 8px; position: fixed; }
  .acct-body { padding: 18px 16px 28px; }
  .acct-head h3 { font-size: 20px; }
  .dep-card { grid-template-columns: 1fr; justify-items: center; }
  .dep-info { width: 100%; }
  .bal-grid { grid-template-columns: 1fr; }
  .acct-sub { justify-self: stretch; }
  .acct-sub button { flex: 1; padding: 0 8px; }
  .tx { grid-template-columns: 34px 1fr auto; }
  .tx-status, .tx-link { display: none; }
}

/* mailto linkleri destek siklarinin icinde */
.faq p a { color: var(--blue); font-weight: 700; }
.faq p a:hover { text-decoration: underline; }

/* --- cekim (Payout) yuzeyi --- */
.tx-ico.is-out { background: #eef1f6; color: #33445c; }
.tx-amt.is-out { color: var(--ink); }
.pill.is-muted { background: #eef1f6; color: #5a6b82; }
.pill.is-error { background: #fdecec; color: #8d1d22; }
.wd-h4 { margin: 22px 0 10px; font-size: 16px; font-weight: 800; color: var(--ink); }
.wd-h4:first-of-type { margin-top: 6px; }
.wd-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 12px 0 6px; }
.wd-inp { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; }
.wd-inp-sm { flex: 0 1 150px; }
.wd-inp > span { font-size: 12px; font-weight: 600; color: var(--muted, #5a6b82); }
.wd-inp input, .wd-inp select {
  height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border, #d9e0ea);
  background: #fff; color: var(--ink); font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.wd-inp select { font-family: inherit; }
.wd-inp input:focus, .wd-inp select:focus { outline: 2px solid var(--accent, #2f6fed); outline-offset: 1px; }
.wd-addr-list { display: flex; flex-direction: column; gap: 8px; }
.wd-addr { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border, #d9e0ea); border-radius: 12px; background: #fbfcfe; }
.wd-addr-a { flex: 1 1 auto; font: 600 13px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.wd-addr .btn-ghost { flex: 0 0 auto; }
.acct-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted, #5a6b82); }
