/* My account page */
.acc-main { padding-top: 26px; padding-bottom: 60px; display: grid; gap: 20px; min-height: 60vh; }
.acc-loading, .acc-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.acc-empty h1 { font: 400 1.6rem var(--font-display); color: var(--night); text-transform: uppercase; }
.acc-hero { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-areas: "hello card" "topup card"; gap: 14px 26px; align-items: center;
  background: radial-gradient(120% 140% at 100% 0%, #f3ecff 0%, #fff 55%); border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); }
.acc-hello { grid-area: hello; }
.acc-hello h1 { font: 400 clamp(1.5rem, 3.4vw, 2.2rem)/1.1 var(--font-display); color: var(--night); margin: 6px 0; text-transform: uppercase; }
.acc-hello .eyebrow { margin: 0; }
.acc-hello p { margin: 0; }
.acc-status { margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 700; }
.acc-card { grid-area: card; max-width: 380px; width: 100%; justify-self: end; }
.acc-topup { grid-area: topup; }
.acc-topup .redeem { display: grid; gap: 6px; }
.acc-topup label { font-weight: 700; font-size: .9rem; }
.acc-pill { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--night); }
.acc-pill.ok { background: #e3f7f2; color: #066b5f; } .acc-pill.warn { background: #fff2d6; color: #8a5a00; } .acc-pill.bad { background: #ffe3ec; color: #b0124f; }

.acc-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--bg-2); border-radius: 16px; position: relative; z-index: 2; }
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tabs button { flex: none; border: 0; background: transparent; padding: 10px 16px; border-radius: 12px; font: 800 .9rem var(--font-body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.acc-tabs button[aria-selected="true"] { background: #fff; color: var(--violet); box-shadow: 0 4px 12px -6px rgba(106,44,255,.45); }
.acc-panel { display: grid; gap: 16px; }
.acc-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.acc-box h2 { margin: 0; font: 400 1.1rem var(--font-display); color: var(--night); text-transform: uppercase; }
.acc-box-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.acc-box.danger { border-color: #f3c2d3; }
.acc-box.lock { grid-template-columns: auto 1fr; align-items: start; background: linear-gradient(135deg, #fffaf0, #fff); border-color: #f0d9a8; }
.acc-box.lock .lock-ic { font-size: 1.8rem; line-height: 1; }
.acc-box.lock p { margin: 0 0 10px; color: #4a4170; }
.acc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.acc-tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.acc-tile span { color: var(--muted); font-weight: 700; font-size: .82rem; }
.acc-tile strong { font: 800 1.5rem var(--font-body); color: var(--night); font-variant-numeric: tabular-nums; }
.acc-tile strong.sm { font-size: 1.05rem; }
.acc-tile small { color: var(--muted); font-size: .76rem; }
.acc-tile.accent { background: linear-gradient(135deg, #5b2bff, #a62cff 60%, #ff2e88); border: 0; }
.acc-tile.accent span, .acc-tile.accent small { color: rgba(255,255,255,.85); } .acc-tile.accent strong { color: #fff; }

.code-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.code-item { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 8px; background: linear-gradient(180deg, #fff, #fcfbff); }
.code-item.refunded { opacity: .7; }
.ci-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; }
.ci-top span { color: var(--violet); font-variant-numeric: tabular-nums; }
.ci-code { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ci-code code { font: 800 1rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: var(--bg-2); padding: 8px 12px; border-radius: 10px; color: var(--night); border: 1px dashed #cdbfff; overflow-wrap: anywhere; }
.ci-code code.masked { color: #8f86b8; }
.ci-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .8rem; align-items: center; }
.acc-search { display: flex; gap: 8px; }
.acc-search input { flex: 1; }
.acc-pager { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; color: var(--muted); }
.acc-table { overflow-x: auto; }
.acc-table table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.acc-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.acc-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.acc-table td small { color: var(--muted); overflow-wrap: anywhere; }
.acc-table .num { text-align: right; white-space: nowrap; }
.acc-table .pos { color: #077a6d; font-weight: 800; } .acc-table .neg { color: #c2185b; font-weight: 800; }
.pf { margin: 0; display: grid; }
.pf-row { display: grid; grid-template-columns: 220px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pf-row:last-child { border-bottom: 0; }
.pf dt { color: var(--muted); font-weight: 700; font-size: .88rem; }
.pf dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.acc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.acc-form label { display: grid; gap: 4px; font-weight: 700; font-size: .86rem; }
.acc-form select, .acc-box select { width: 100%; background: var(--surface); color: var(--text); border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; }
.acc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-foot .f-bottom { align-items: center; flex-wrap: wrap; gap: 12px; }
.acc-foot .f-logo { margin: 0; padding: 6px 10px; }
.acc-foot .f-logo img { height: 46px; }
.acc-foot a { color: inherit; }
@media (max-width: 860px) {
  .acc-hero { grid-template-columns: 1fr; grid-template-areas: "hello" "card" "topup"; padding: 18px; }
  .acc-card { justify-self: stretch; max-width: none; }
  .acc-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pf-row { grid-template-columns: 1fr; gap: 2px; }
  .acc-box { padding: 16px; }
  .acc-box.lock { grid-template-columns: 1fr; }
  .acc-tile strong { font-size: 1.2rem; }
}
.signin-btn { text-decoration: none; }
.code-item .linklike { justify-self: start; text-align: left; }
.code-item .wd-box { display: grid; gap: 6px; }
.acc-foot { padding-top: 0 !important; }
.acc-foot .f-bottom { border-top: 0; padding-top: 22px; padding-bottom: 22px; justify-content: space-between; }
#accApp { display: grid; gap: 16px; min-width: 0; }
.acc-main > *, .acc-panel > *, .acc-hero > * { min-width: 0; }
.acc-tabs { max-width: 100%; }
@media (max-width: 860px) { .acc-card { max-width: 360px; justify-self: center; } }
@media (max-width: 600px) {
  .acc-table thead { display: none; }
  .acc-table table, .acc-table tbody, .acc-table tr, .acc-table td { display: block; width: 100%; }
  .acc-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .acc-table td { border: 0; padding: 0; }
  .acc-table td:nth-child(1) { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
  .acc-table td:nth-child(2) { grid-column: 1; }
  .acc-table td:nth-child(3) { grid-column: 2; grid-row: 2; font-size: 1rem; }
  .acc-table td:nth-child(4) { grid-column: 2; grid-row: 3; font-size: .78rem; color: var(--muted); }
  .acc-table td:nth-child(4)::before { content: "→ "; }
}
