/* trust429: the price page and the refund-policy page of the game website. Loaded AFTER web403.css and built only from
   its tokens (--bg --panel --panel2 --line --line2 --text --muted --gold --gold2 --gold3 --shadow --r), so day
   (parchment + navy) and night (navy + gold) follow the same switch as /<lang>/web/. Logical properties everywhere
   (ar / he / fa / ur read right to left). One column on phones, never wider than the screen. */
.t429w-tabs { display: none; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line2); background: var(--panel); }
.t429w-tabs::-webkit-scrollbar { display: none; }
.t429w-tabs a { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text); text-decoration: none; font-weight: 700; font-size: 13px; white-space: nowrap; }
.t429w-tabs a[aria-current], .t429w .w403-nav a[aria-current] { border-color: var(--line); color: var(--gold2); background: var(--line2); }
:root[data-theme='light'] .t429w-tabs a[aria-current], :root[data-theme='light'] .t429w .w403-nav a[aria-current] { color: var(--gold3); }
.t429w .w403-barplay { margin-inline-start: 0; min-height: 40px; padding: 6px 14px; white-space: nowrap; }

.t429w-main { width: min(980px, 100%); margin: 0 auto; padding: 18px 14px 40px; display: grid; gap: 16px; }
.t429w-head { text-align: center; padding: 10px 6px 2px; }
.t429w-head h1 { margin: 0 0 6px; font: 700 clamp(24px, 5vw, 36px)/1.2 'w403serif', Georgia, 'Noto Serif', serif; color: var(--gold2); text-wrap: balance; overflow-wrap: anywhere; }
:root[data-theme='light'] .t429w-head h1 { color: var(--navy); }
.t429w-head p { margin: 0 auto; max-width: 64ch; color: var(--muted); text-wrap: pretty; }
.t429w-upd { font-size: 13px; }

.t429w-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 16px 18px; min-width: 0; }
.t429w-card > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); font-size: 19px; line-height: 1.3; color: var(--gold2); overflow-wrap: anywhere; }
:root[data-theme='light'] .t429w-card > h2 { color: var(--gold3); }
.t429w-card > h2 svg { width: 22px; height: 22px; flex: 0 0 auto; }
.t429w-card h3 { margin: 16px 0 8px; font-size: 15px; color: var(--text); }
.t429w-card h3:first-of-type { margin-top: 4px; }
.t429w-sub, .t429w-note { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.t429w-note { margin: 12px 0 0; }
.t429w-big { margin: 0 0 4px; font-size: clamp(22px, 5vw, 30px); font-weight: 800; color: var(--text); }
.t429w-empty { margin: 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.t429w-g { font-weight: 800; color: var(--gold2); font-variant-numeric: tabular-nums; }
:root[data-theme='light'] .t429w-g { color: var(--gold3); }
.t429w-thb { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t429w .num { font-variant-numeric: tabular-nums; }

/* top-up methods */
.t429w-meth { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.t429w-meth li { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); min-width: 0; }
.t429w-meth b { overflow-wrap: anywhere; }
.t429w-meth small { color: var(--muted); }

/* tables (category list, VIP) */
.t429w-tbl { border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.t429w-tr { display: grid; grid-template-columns: minmax(0, 1.2fr) 70px minmax(0, 1.6fr); gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line2); }
.t429w-tr:first-child { border-top: 0; }
.t429w-tr > span { min-width: 0; overflow-wrap: anywhere; }
.t429w-tr > span:nth-child(2) { text-align: end; }
.t429w-th { background: var(--line2); font-weight: 700; font-size: 13px; color: var(--muted); }
.t429w-tr:nth-child(odd):not(.t429w-th) { background: rgba(127, 127, 127, .05); }
.t429w-vip .t429w-tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.t429w-cta { margin: 14px 0 0; text-align: center; }

/* packs: name on the first line, option chips under it */
.t429w-packs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.t429w-packs li { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); min-width: 0; }
.t429w-packs li > b { overflow-wrap: anywhere; line-height: 1.35; }
.t429w-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.t429w-opt { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13.5px; max-width: 100%; }
.t429w-opt i { font-style: normal; color: var(--muted); }

.t429w-cat { border: 1px solid var(--line2); border-radius: 12px; margin-top: 8px; background: rgba(127, 127, 127, .04); }
.t429w-cat > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 14px; cursor: pointer; list-style: none; }
.t429w-cat > summary::-webkit-details-marker { display: none; }
.t429w-cat > summary::after { content: '▾'; color: var(--gold); margin-inline-start: 4px; }
.t429w-cat[open] > summary::after { content: '▴'; }
.t429w-cat > summary b { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.t429w-cat > summary small { color: var(--muted); font-variant-numeric: tabular-nums; }
.t429w-cat > .t429w-packs { padding: 0 10px 10px; }

/* policy text */
.t429w-policy { line-height: 1.7; overflow-wrap: anywhere; }
.t429w-policy h2 { margin: 20px 0 8px; font-size: 18px; color: var(--gold2); }
:root[data-theme='light'] .t429w-policy h2 { color: var(--gold3); }
.t429w-policy h2:first-child { margin-top: 0; }
.t429w-policy p { margin: 0 0 10px; }
.t429w-policy ul { margin: 0 0 10px; padding-inline-start: 22px; }
.t429w-policy li { margin: 3px 0; }
.t429w-contact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.t429w-contact a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); text-decoration: none; font-weight: 700; min-width: 0; }
.t429w-contact a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.t429w-links { margin: 0; text-align: center; }
.t429w .w403-foot p:first-child { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

@media (max-width: 760px) {
  .t429w .w403-nav { display: none; }
  .t429w-tabs { display: flex; }
  .t429w-main { padding: 14px 10px 32px; gap: 12px; }
  .t429w-card { padding: 14px 12px 16px; }
  .t429w-tr { grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1.3fr); padding: 9px 10px; font-size: 14px; }
  .t429w-packs, .t429w-meth, .t429w-contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .t429w .w403-barplay { display: none; }
  .t429w .w403-lang summary span { max-width: 84px; }
}
