/* Darth Store · premium night market tokens */
:root {
  color-scheme: dark;
  --bg: #07080C;
  --surface: #12141B;
  --surface-raised: #1A1D27;
  --surface-soft: #0D1017;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .13);
  --text: #F2F5FA;
  --muted: #98A2B3;
  --blue: #2F8CFF;
  --blue-deep: #1767E0;
  --cyan: #3DD6FF;
  --success: #34D399;
  --danger: #FB7185;
  --warning: #F6C66B;
  --ice: #D7E9FF;
  --border: var(--line);
  --accent: var(--blue);
  --panel: var(--surface);
  --panel-raised: var(--surface-raised);
  --panel-soft: var(--surface-soft);
  --surface-2: var(--surface-raised);
  --line-bright: rgba(47, 140, 255, .55);
  --font-arabic: "Tajawal", Tahoma, system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --nav-height: 74px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius-card: 18px;
}

@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-arabic-400.woff2?v=p5-c209a3a81c5a") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-latin-400.woff2?v=p5-c209a3a81c5a") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-arabic-500.woff2?v=p5-c209a3a81c5a") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-latin-500.woff2?v=p5-c209a3a81c5a") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-arabic-700.woff2?v=p5-c209a3a81c5a") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-latin-700.woff2?v=p5-c209a3a81c5a") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-arabic-800.woff2?v=p5-c209a3a81c5a") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-latin-800.woff2?v=p5-c209a3a81c5a") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Base, viewport and typography */
* { box-sizing: border-box; }
html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse 27rem 31rem at 103% -5%, rgba(47, 140, 255, .30), transparent 72%),
    radial-gradient(ellipse 22rem 28rem at -12% 17%, rgba(119, 72, 204, .11), transparent 72%),
    var(--bg);
  font-family: var(--font-arabic);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
a:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
button:disabled, select:disabled { cursor: not-allowed; }
button:not(:disabled) { cursor: pointer; }
img { max-width: 100%; }
bdi, [dir="ltr"], code, .order-short-id, .wallet-request-id { unicode-bidi: isolate; }
code, .shell-balance-value, .balance-value, .wallet-amount, .order-detail-price,
.order-short-id, .topup-request-head strong, .topup-request-meta code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(26px, 7vw, 34px); font-weight: 800; line-height: 1.35; letter-spacing: -.025em; }
h2 { margin-bottom: 0; font-size: 20px; font-weight: 700; line-height: 1.45; }
h3 { margin-bottom: 7px; font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { display: block; margin-bottom: 4px; color: #9BCBFF; font-size: 13px; font-weight: 700; }
.heading-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* App shell and home topbar */
.app-shell {
  position: relative;
  width: min(100%, 620px);
  min-height: 100dvh;
  margin-inline: auto;
  border-inline: 1px solid rgba(255, 255, 255, .035);
}
.topbar {
  position: sticky;
  z-index: 8;
  top: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(7px + env(safe-area-inset-top, 0px)) 14px 7px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 12, .91);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.topbar[hidden] { display: none !important; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 11px; object-fit: cover; }
.brand strong { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; line-height: 1; direction: ltr; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1; }
.shell-identity { min-width: 0; display: flex; flex: 1; align-items: center; gap: 8px; }
.shell-avatar {
  position: relative; width: 38px; height: 38px; flex: 0 0 38px; display: grid;
  place-items: center; overflow: hidden; border: 1px solid rgba(61, 214, 255, .34);
  border-radius: 13px; color: var(--ice); background: var(--surface-raised); font-weight: 800;
}
.shell-avatar-image { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shell-name { max-width: 96px; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.price-currency-toggle {
  width: fit-content; min-height: 44px; display: inline-flex; flex: 0 0 auto;
  padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.price-currency-toggle button {
  min-width: 43px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 9px;
  color: var(--muted); background: transparent; font-size: 14px; font-weight: 700;
}
.price-currency-toggle button[aria-pressed="true"] {
  color: var(--text); background: #202B3A; box-shadow: inset 0 0 0 1px rgba(61, 214, 255, .25);
}
.shell-balance {
  min-width: 82px; min-height: 44px; display: inline-flex; flex: 0 0 auto;
  align-items: center; justify-content: center; gap: 6px; padding: 0 8px;
  border: 1px solid rgba(47, 140, 255, .34); border-radius: 12px;
  color: var(--text); background: rgba(26, 37, 54, .92);
}
.shell-balance-value { max-width: 92px; overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.shell-balance-plus { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; color: #07101D; background: #8CC7FF; font-size: 19px; font-weight: 700; line-height: 1; }
#view { min-height: calc(100dvh - 62px); padding: 18px 16px calc(var(--nav-height) + var(--safe-bottom) + 28px); }

/* Welcome, promo and home discovery */
.welcome { display: flex; align-items: center; gap: 12px; margin: 0 1px 15px; }
.welcome-bot {
  width: 68px; height: 68px; flex: 0 0 68px; padding: 2px; overflow: hidden;
  border-radius: 22px 22px 22px 7px; background: linear-gradient(140deg, var(--cyan), var(--blue-deep));
  animation: bot-float 4s ease-in-out infinite;
}
.welcome-bot img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.welcome-bubble {
  position: relative; min-width: 0; flex: 1; display: grid; gap: 3px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 16px 16px 5px 16px; background: var(--surface);
  animation: bubble-in .42s ease-out both;
}
.welcome-bubble strong { color: var(--text); font-size: 15px; font-weight: 800; }
.welcome-bubble span { color: #B7C0CE; font-size: 13px; line-height: 1.55; }
@keyframes bot-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.promo-carousel { margin: 0 0 14px; }
.promo-track {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain;
  padding: 2px 0 4px; direction: rtl; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x;
}
.promo-track::-webkit-scrollbar, .region-scroll::-webkit-scrollbar, .orders-filters::-webkit-scrollbar,
.ui-filter-chips::-webkit-scrollbar { display: none; }
.promo-slide {
  position: relative; isolation: isolate; min-width: 100%; min-height: 145px; flex: 0 0 100%;
  display: flex; align-items: center; overflow: hidden; padding: 15px 17px;
  border: 1px solid rgba(185, 211, 255, .15); border-radius: 18px 6px 18px 18px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  scroll-snap-align: start; scroll-snap-stop: always;
  --promo-start: #1C5FD8; --promo-end: #160F36;
  background: linear-gradient(120deg, var(--promo-start), var(--promo-end));
}
.promo-slide::before {
  position: absolute; z-index: -1; inset: 0; opacity: .14;
  background: linear-gradient(132deg, rgba(28,95,216,.5) 0%, rgba(12,33,80,.45) 59%, rgba(22,15,54,.5) 100%);
  content: ""; pointer-events: none;
}
.promo-slide::after {
  position: absolute; z-index: -1; inset: -40% -5% -60% 35%;
  border: 1px solid rgba(255, 255, 255, .075); transform: rotate(-28deg);
  background: repeating-linear-gradient(135deg, transparent 0 19px, rgba(255,255,255,.035) 19px 20px);
  content: ""; pointer-events: none;
}
.promo-blue { --promo-start: #2F8CFF; --promo-end: #1767E0; }
.promo-purple { --promo-start: #7455D7; --promo-end: #34235E; }
.promo-green { --promo-start: #218D70; --promo-end: #174138; }
.promo-amber { --promo-start: #A97510; --promo-end: #3E2B08; }
.promo-red { --promo-start: #C94D65; --promo-end: #5A263F; }
.promo-cyan { --promo-start: #169CB4; --promo-end: #164968; }
.promo-copy { position: relative; z-index: 1; width: 100%; min-width: 0; }
.promo-brand { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; color: rgba(239, 246, 255, .8); font: 700 9px/1 var(--font-mono); letter-spacing: .14em; }
.promo-brand-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(61,214,255,.12); }
.promo-badge { width: fit-content; max-width: 100%; min-height: 24px; display: flex; align-items: center; margin-bottom: 5px; padding: 2px 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #F2F5FA; background: rgba(4,9,22,.28); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.promo-copy h2 { margin: 0; color: #F2F5FA; font-size: 18px; line-height: 1.42; overflow-wrap: anywhere; }
.promo-copy p { max-width: 85%; margin: 3px 0 0; color: #D9E5F7; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.promo-game-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 0 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 12px; color: #111827; background: #F2F5FA; font-size: 13px; font-weight: 700; }
.promo-dots { display: flex; justify-content: center; gap: 2px; margin-top: -1px; }
.promo-dot { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; }
.promo-dot span { width: 6px; height: 6px; border-radius: 99px; background: #677384; transition: width .18s ease, background-color .18s ease; }
.promo-dot.active span { width: 18px; background: var(--cyan); }
.promo-error { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; padding: 10px 12px; border: 1px solid rgba(246,198,107,.35); border-radius: 14px; color: #F6D99B; background: rgba(71,53,22,.25); font-size: 13px; }
.promo-error button { min-height: 44px; padding: 0 11px; border: 1px solid rgba(246,198,107,.35); border-radius: 10px; color: #F6D99B; background: transparent; }
.search-box {
  height: 50px; display: flex; align-items: center; gap: 11px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 15px; color: var(--muted); background: var(--surface);
}
.search-icon { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.search-box input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 16px; }
.search-box input::placeholder { color: #9AA5B5; }
.search-box:focus-within { border-color: rgba(61,214,255,.62); box-shadow: 0 0 0 3px rgba(61,214,255,.08); }
.clear-search { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 10px; color: #D3DCE8; background: transparent; font-size: 22px; }
.search-box + .recent, .search-box + .page-heading { margin-top: 20px; }
.recent { margin-top: 19px; }
.recent-title { margin: 0 0 10px; font-size: 16px; }
.recent-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.recent-row::-webkit-scrollbar { display: none; }
.recent-item { width: 74px; min-height: 44px; flex: 0 0 74px; display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: transparent; text-align: center; }
.recent-art { position: relative; width: 74px; height: 74px; display: grid; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.recent-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recent-name { display: -webkit-box; overflow: hidden; color: #D4DCE7; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 22px 2px 13px; }
.page-heading > div:first-child, .section-head > div:first-child, .recent-title {
  border-inline-start: 3px solid var(--blue); padding-inline-start: 11px;
}
.page-heading h2, .section-head h2 { color: var(--text); }
.section-count { min-height: 28px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid rgba(61,214,255,.2); border-radius: 999px; color: #BFD5EA; background: rgba(61,214,255,.06); font-size: 12px; white-space: nowrap; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 23px 2px 12px; }
.section-head h2 { font-size: 19px; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.game-card {
  min-width: 0; min-height: 44px; display: flex; flex-direction: column; overflow: hidden;
  padding: 0 0 10px; border: 1px solid var(--line); border-radius: 18px;
  color: var(--text); text-align: right; background: var(--surface);
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}
.game-card:hover { border-color: rgba(61,214,255,.28); background: #151923; }
.game-card:active { transform: scale(.985); }
.game-card-art { position: relative; width: 100%; aspect-ratio: 1; display: grid; overflow: hidden; place-items: center; background: #171A23; }
.game-fallback { color: #AABDD3; font-family: var(--font-mono), var(--font-arabic); font-size: clamp(20px, 7vw, 30px); font-weight: 700; letter-spacing: -.06em; }
.game-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-card-title { min-height: 37px; display: -webkit-box; overflow: hidden; margin: 9px 10px 2px; color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.game-card-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 5px; margin: 0 10px; }
.game-card-from { color: var(--muted); font-size: 10px; }
.game-card-price { overflow: hidden; color: #B8D9FF; font-size: 11px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }

/* Reusable buttons and section controls */
.back-button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 9px; padding: 0 4px; border: 0; color: #B5D8FB; background: transparent; font-size: 14px; font-weight: 700; }
.back-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.primary-button, .secondary-button, .retry-button, .copy-button, .icon-button, .order-detail-open,
.wallet-balance-refresh, .wallet-history-link, .verification-button, .topup-icon-button {
  min-height: 44px; border-radius: 12px; font-weight: 700; transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.primary-button {
  min-width: 140px; min-height: 48px; padding: 0 17px; border: 1px solid transparent;
  color: #FFFFFF; background: linear-gradient(120deg, #1767E0, #0F55B8);
  box-shadow: 0 5px 17px rgba(47,140,255,.22);
  font-size: 14px; font-weight: 800;
}
.primary-button:hover:not(:disabled) { background: linear-gradient(120deg, #145DCA, #0D4DA6); }
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled) { transform: scale(.985); }
.primary-button:disabled { border-color: rgba(255,255,255,.06); color: #919AA8; background: #242832; box-shadow: none; }
.wallet-topup-button, .account-topup-cta, .balance-card-action {
  border-color: rgba(255,255,255,.48); color: #111827; background: #F2F5FA; box-shadow: none;
}
.wallet-topup-button:hover:not(:disabled), .account-topup-cta:hover:not(:disabled),
.balance-card-action:hover:not(:disabled) { color: #111827; background: #DDEBFB; }
.secondary-button, .retry-button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); color: var(--text); background: var(--surface-raised); font-size: 13px; }
.secondary-button:hover:not(:disabled), .retry-button:hover { border-color: rgba(61,214,255,.35); background: #222733; }
.copy-button { min-width: 64px; padding: 0 12px; border: 1px solid var(--line); color: #C8D6E7; background: #20242E; font-size: 12px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); color: #BFD6EF; background: var(--surface-raised); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.copy-chip { min-width: 0; max-width: 100%; min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; color: #D2E2F4; background: #1A202B; }
.copy-chip code { min-width: 0; overflow-wrap: anywhere; color: inherit; font-size: 13px; text-align: start; user-select: text; }
.copy-chip > svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy-chip-button { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 11px; color: #B9D8F8; background: var(--surface-raised); }
.copy-chip-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy-chip-button:disabled, .copy-button:disabled { opacity: .5; }
.ui-section-heading { display: flex; align-items: center; gap: 9px; margin: 24px 2px 12px; border-inline-start: 3px solid var(--blue); padding-inline-start: 11px; }
.ui-section-heading h2 { font-size: 18px; }
.ui-section-heading > span { min-width: 29px; height: 27px; display: grid; place-items: center; padding: 0 7px; border: 1px solid rgba(61,214,255,.2); border-radius: 9px; color: #C9EFFF; background: rgba(61,214,255,.07); font: 13px var(--font-mono); }
.ui-stat-card, .ui-list-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.ui-stat-card > span { display: block; color: var(--muted); font-size: 13px; }
.ui-stat-card > strong { display: block; margin-top: 8px; overflow-wrap: anywhere; font: 700 20px/1.45 var(--font-mono); }
.ui-stat-card.success strong { color: var(--success); }
.ui-stat-card.danger strong { color: var(--danger); }
.ui-list-card strong { font-size: 15px; }
.ui-list-card p, .ui-empty p, .ui-inline-error p { margin: 7px 0 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
.ui-filter-chips, .orders-filters { display: flex; max-width: 100%; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 5px; scrollbar-width: none; }
.filter-chip { min-height: 44px; flex: 0 0 auto; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: #C1CAD7; background: var(--surface); font-size: 13px; }
.filter-chip.active { border-color: rgba(61,214,255,.38); color: var(--text); background: rgba(47,140,255,.18); box-shadow: inset 0 0 0 1px rgba(61,214,255,.08); }
.ui-filter-chips button { min-height: 44px; flex: 0 0 auto; }
.ui-search { display: grid; gap: 7px; color: #C5CEDA; font-size: 13px; }
.ui-search input, .ui-date-pair input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface); font: 16px var(--font-arabic); }
.ui-date-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.ui-date-pair label { min-width: 0; display: grid; gap: 6px; color: #C5CEDA; font-size: 13px; }
.ui-date-pair input { direction: ltr; font-family: var(--font-mono); }
.ui-empty { padding: 25px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-card); color: var(--muted); text-align: center; }
.ui-empty > span { display: block; margin-bottom: 10px; color: var(--cyan); font-size: 28px; }
.ui-empty h2 { color: var(--text); font-size: 17px; }
.ui-inline-error { padding: 15px; border: 1px solid rgba(251,113,133,.32); border-radius: 16px; color: #FFD1D8; background: rgba(91,24,40,.18); }
.ui-inline-error button { min-height: 44px; margin-top: 10px; }
.ui-skeleton { display: grid; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; }
.ui-skeleton i { width: 70%; height: 12px; border-radius: 6px; background: var(--surface-raised); }
.ui-skeleton i:last-child { width: 42%; }
.ui-status.warning { border-color: rgba(246,198,107,.25); color: #F6D99B; background: rgba(122,84,20,.16); }
.ui-status.success { border-color: rgba(52,211,153,.26); color: #7CE4B7; background: rgba(20,113,77,.15); }
.ui-status.danger { border-color: rgba(251,113,133,.27); color: #FFABB9; background: rgba(129,35,55,.15); }
.ui-status.accent { border-color: rgba(47,140,255,.25); color: #C7E2FF; background: rgba(47,140,255,.13); }
.ui-status.muted { border-color: var(--line); color: var(--muted); background: rgba(255,255,255,.035); }

/* Game selection, pack grid and purchase sheet */
.game-content { min-width: 0; }
.game-banner {
  min-height: 108px; display: flex; align-items: center; gap: 14px; margin: 0 0 19px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-card);
  background: linear-gradient(115deg, var(--surface-raised), var(--surface));
}
.game-banner-art { position: relative; width: 86px; height: 86px; flex: 0 0 86px; display: grid; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: #171A23; }
.game-banner-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-fallback { color: #BDD0E7; font-size: 25px; font-weight: 800; }
.game-banner-copy { min-width: 0; }
.game-banner-copy .eyebrow { margin-bottom: 2px; }
.game-banner h1 { overflow: hidden; font-size: 19px; line-height: 1.4; text-overflow: ellipsis; }
.game-banner p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.detail-tabs { display: flex; gap: 19px; margin: 0 2px 14px; border-bottom: 1px solid var(--line); }
.detail-tab { position: relative; min-width: 60px; min-height: 44px; padding: 0 5px; border: 0; color: var(--muted); background: transparent; font-size: 14px; }
.detail-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: transparent; content: ""; }
.detail-tab.active { color: var(--text); font-weight: 700; }
.detail-tab.active::after { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.packs-heading { margin-top: 4px; margin-bottom: 12px; }
.packs-heading .eyebrow, .fields-heading .eyebrow { margin-bottom: 2px; }
.region-scroll { display: flex; gap: 8px; overflow-x: auto; margin: 1px -2px 13px; padding: 2px 2px 5px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.region-chip { min-height: 44px; flex: 0 0 auto; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: #BEC8D5; background: var(--surface); font-size: 13px; scroll-snap-align: start; }
.region-chip.active { border-color: rgba(61,214,255,.4); color: #EAF5FF; background: rgba(47,140,255,.17); }
.pack-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.pack-option { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; padding: 0 0 11px; border: 1px solid var(--line); border-radius: 17px; color: var(--text); text-align: right; background: var(--surface); transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.pack-option.active { padding-bottom: 10px; border: 2px solid var(--blue); background: #171E2A; box-shadow: inset 0 0 0 1px rgba(61,214,255,.09); }
.pack-option:active { transform: scale(.99); }
.pack-art { position: relative; display: grid; aspect-ratio: 16/10; place-items: center; overflow: hidden; color: #9EB8D4; background: radial-gradient(circle at 50% 44%, rgba(47,140,255,.2), transparent 56%), #171A23; }
.pack-art > svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1; }
.pack-art > img { width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.pack-title { min-height: 40px; display: -webkit-box; overflow: hidden; margin: 10px 10px 0; color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pack-price { display: block; margin: 6px 10px 0; color: #C5E7FF; font-size: 15px; font-weight: 800; white-space: nowrap; }
.pack-check { position: absolute; z-index: 1; top: 8px; inset-inline-start: 8px; width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: transparent; background: rgba(7,8,12,.76); }
.pack-check svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.pack-option.active .pack-check { border-color: var(--blue); color: #07101D; background: #75B6FF; }
.field-list { display: grid; gap: 14px; margin: 17px 0 25px; }
.player-field { display: block; }
.field-label { display: block; margin-bottom: 7px; color: #D3DCE8; font-size: 13px; font-weight: 700; }
.field-label b { color: #83C6FF; font-weight: 800; }
.text-input { width: 100%; height: 49px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: var(--surface-raised); direction: auto; font-size: 16px; }
.text-input::placeholder { color: #929EAE; }
.text-input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(47,140,255,.12); }
.identifier-input, .qty-input { direction: ltr; }
.identifier-warning { display: block; margin-top: 6px; color: #FFC0CA; font-size: 12px; }
.identifier-warning[hidden] { display: none !important; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 6px; }
.qty-row label { font-size: 14px; font-weight: 700; }
.qty-input { width: 112px; text-align: center; }
.instructions-panel { margin: 5px 0 24px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.instructions-panel h2 { margin-bottom: 10px; font-size: 18px; }
.instructions-panel p { margin: 0; color: #B7C0CD; font-size: 13px; line-height: 1.9; white-space: pre-wrap; }
.steps { margin: 0 0 4px; padding-inline-start: 21px; color: #C2CCD8; font-size: 13px; line-height: 2; }
.instructions-panel h2.sub { margin: 16px 0 8px; font-size: 16px; }
.buy-dock {
  position: fixed; z-index: 6; right: 0; bottom: calc(var(--nav-height) + var(--safe-bottom) + 4px);
  left: 0; width: min(100%, 620px); margin-inline: auto; padding: 10px 16px 11px;
  border-top: 1px solid var(--line); background: rgba(11,13,19,.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.buy-row { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buy-price { min-width: 0; color: var(--text); font-size: 16px; font-weight: 800; }
.buy-price small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
.buy-price span { white-space: nowrap; }
.buy-dock .primary-button { min-width: 146px; }
.dock-continue { flex: 0 0 auto; }
.order-attempt-warning { margin: 20px 0 130px; padding: 14px; border: 1px solid rgba(246,198,107,.28); border-radius: 16px; background: rgba(77,56,23,.16); }
.order-attempt-warning strong { color: #F6D99B; font-size: 14px; }
.order-attempt-warning p { margin: 7px 0 2px; color: #D3C5A3; font-size: 12px; line-height: 1.75; }
.order-attempt-warning .retry-button { margin-inline-end: 6px; margin-top: 8px; }

/* Purchase sheet + account verification states */
.sheet-layer { position: fixed; z-index: 10; inset: 0; display: flex; align-items: end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(2,4,8,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.purchase-sheet {
  position: relative; z-index: 1; width: min(100%,620px); max-height: min(91dvh, 900px);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  border-bottom: 0; border-radius: 24px 24px 0 0; background: #11141C;
  box-shadow: 0 -16px 48px rgba(0,0,0,.36); padding-bottom: var(--safe-bottom);
}
.sheet-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.sheet-header .eyebrow { margin-bottom: 1px; font-size: 11px; }
.sheet-header h2 { font-size: 19px; }
.sheet-close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: #DCE5F0; background: var(--surface-raised); font-size: 22px; }
.sheet-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 15px 16px 20px; }
.sheet-product { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; padding: 11px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.sheet-product-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; overflow: hidden; place-items: center; border-radius: 12px; background: var(--surface-raised); }
.sheet-product-icon img { width: 100%; height: 100%; object-fit: cover; }
.sheet-product-copy { min-width: 0; flex: 1; }
.sheet-product-copy strong { display: block; font-size: 14px; }
.sheet-product-price { color: #C6E6FF; font-size: 13px; font-weight: 800; }
.sheet-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; color: var(--muted); font-size: 13px; }
.sheet-total strong { color: var(--text); font: 700 16px var(--font-mono); }
.sheet-footer { display: grid; grid-template-columns: minmax(0,1fr) minmax(138px,1fr); align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: #11141C; }
.sheet-footer .primary-button, .sheet-buy { width: 100%; min-width: 0; min-height: 50px; }
.verification-panel { margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: #171A22; }
.verification-title { margin: 0 0 10px; font-size: 15px; }
.verification-panel-head { display: grid; gap: 8px; }
.account-card-waiting, .account-card-state, .verification-success {
  padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #12151C;
}
.account-card-waiting { color: #C0CAD7; }
.verification-copy { margin: 0; color: #C0CAD7; font-size: 13px; line-height: 1.65; }
.account-card-loading { display: grid; gap: 8px; }
.account-skeleton-line { display: block; width: 72%; height: 10px; border-radius: 6px; background: #303643; animation: skeleton-pulse 1.5s ease-in-out infinite; }
.account-skeleton-line.short { width: 45%; }
.account-card-loading .verification-copy { margin-top: 2px; }
.account-card-error { border-color: rgba(251,113,133,.28); background: rgba(96,26,42,.16); }
.account-card-error .verification-copy, .verification-warning { color: #FFC1CB; }
.account-card-mismatch { border-color: rgba(246,198,107,.28); background: rgba(83,61,26,.17); }
.account-card-identity { display: grid; gap: 5px; }
.account-check-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #07170F; background: var(--success); }
.account-check-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.verification-message { padding: 12px; border: 1px solid var(--line); border-radius: 13px; }
.account-player-name { color: var(--text); font-size: 16px; overflow-wrap: anywhere; }
.account-region-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; color: #D1D9E4; font-size: 12px; }
.account-region-code { padding: 2px 6px; border-radius: 6px; color: #D7EDFF; background: #222A37; font: 12px var(--font-mono); }
.account-match-copy { margin: 8px 0 0; color: var(--success); font-size: 12px; font-weight: 700; }
.verification-diagnostic { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.verification-diagnostic code { color: #C9DDF1; }
.verification-acknowledgement { margin-top: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #12151C; }
.verification-ack-label { min-height: 44px; display: flex; align-items: center; gap: 9px; color: #D9E1EA; font-size: 13px; }
.verification-ack-label input { width: 19px; height: 19px; accent-color: var(--blue); }
.verification-acknowledgement small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.verification-button { width: 100%; margin-top: 10px; border: 1px solid rgba(47,140,255,.35); color: #D9EBFF; background: rgba(47,140,255,.12); font-size: 13px; }
.verification-button:disabled { opacity: .5; }
.verification-success { border-color: rgba(52,211,153,.4); color: #D7F8E9; background: rgba(17,105,70,.2); }
.verification-success .verification-copy, .verification-success .account-region-row { color: #D7F8E9; }

/* Account/profile screen */
.account-row { display: flex; align-items: center; gap: 12px; margin: 20px 2px; }
.avatar-large { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 15px; color: #D7E9FF; background: #202B3A; font-size: 18px; font-weight: 800; }
.account-row strong { display: block; margin-bottom: 4px; font-size: 15px; }
.account-row span { color: var(--muted); font-size: 12px; }
.profile-header-card { display: flex; align-items: center; gap: 13px; margin-top: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.account-profile { background: linear-gradient(120deg, #171B25, var(--surface)); }
.profile-avatar { position: relative; width: 60px; height: 60px; flex: 0 0 60px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(61,214,255,.24); border-radius: 18px; color: #D9E9FA; background: #222B3A; font-size: 20px; font-weight: 800; }
.profile-avatar img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { position: relative; z-index: 0; }
.profile-identity { min-width: 0; }
.profile-identity > strong { display: block; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-username { width: fit-content; color: #A9D3FF; font: 13px/1.5 var(--font-mono); }
.account-id-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.account-id-copy > span { color: var(--muted); font-size: 12px; }
.account-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px 0; }
.account-stat { min-width: 0; min-height: 116px; display: flex; flex-direction: column; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.balance-stat strong { color: #D3E8FF; }
.account-stat > span { color: #BBC5D2; font-size: 12px; line-height: 1.5; }
.account-stat strong { margin-top: 8px; color: #D3E8FF; font: 700 18px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.spend-stat strong { color: #8BE5BD; }
.stat-note { margin: auto 0 0; padding-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.text-retry { min-height: 44px; margin-top: 3px; padding: 0; border: 0; color: #A8D4FF; background: transparent; font-size: 13px; text-decoration: underline; }
.account-topup-cta { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 13px; border-radius: 14px 6px 14px 14px; font-size: 16px; }
.account-topup-cta span { font: 20px/1 var(--font-mono); }
.account-preferences { margin-top: 22px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.account-preferences h2 { margin-top: 4px; font-size: 17px; }
.account-preferences .price-currency-toggle { margin-top: 10px; }
.section-kicker { color: #A8D3FF; font-size: 12px; }
.account-support { min-height: 68px; display: flex; align-items: center; gap: 12px; margin-top: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none; background: var(--surface); }
.support-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: #CAE5FF; background: #25354A; font: 700 18px var(--font-mono); }
.account-support strong, .account-support small { display: block; }
.account-support strong { font-size: 14px; }
.account-support small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.support-arrow { margin-inline-start: auto; color: #9DC9FA; font-size: 20px; }
.support-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; padding: 0 15px; text-decoration: none; }
.account-page-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.account-page-heading .back-button { margin: 0; }
.balance-card {
  position: relative; isolation: isolate; min-height: 145px; overflow: hidden;
  margin: 8px 0 20px; padding: 20px; border: 1px solid rgba(192,215,255,.17);
  background: linear-gradient(132deg,#1C5FD8 0%,#0C2150 59%,#160F36 100%);
}
.angular-card { border-radius: 18px 5px 18px 18px; clip-path: polygon(0 0,calc(100% - 24px) 0,100% 24px,100% 100%,24px 100%,0 calc(100% - 24px)); }
.balance-card::after, .wallet-balance-panel::after {
  position: absolute; z-index: -1; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(135deg,transparent 0 19px,rgba(255,255,255,.045) 19px 20px);
  content: ""; pointer-events: none;
}
.balance-label { color: #D4E5FA; font-size: 13px; }
.balance-value { position: relative; z-index: 1; margin: 9px 0 3px; color: #F2F5FA; direction: ltr; text-align: right; font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.balance-value small { margin-inline-start: 6px; color: #D2E8FF; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.balance-note { margin: 0; color: #CFD9E8; font-size: 12px; }
.balance-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.balance-card-action { min-height: 44px; }
.telegram-id-card { padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.telegram-id-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.telegram-id-row code { overflow: hidden; color: #D7E6F7; font-size: 14px; text-overflow: ellipsis; user-select: text; }
.telegram-id-card p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* Wallet balance, guidance and request history */
.wallet-screen { max-width: 620px; margin-inline: auto; padding: 4px 0 16px; }
.wallet-back-button, .account-back-button { min-height: 44px; margin: 0 0 12px; padding-inline: 0; }
.wallet-heading { margin: 0 2px 17px; }
.wallet-heading h1 { font-size: clamp(29px,8vw,36px); }
.wallet-balance-panel {
  position: relative; isolation: isolate; overflow: hidden; margin: 0 0 14px; padding: 19px;
  border: 1px solid rgba(192,215,255,.17); border-radius: 18px 5px 18px 18px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  color: var(--text); background: linear-gradient(132deg,#1C5FD8 0%,#0C2150 59%,#160F36 100%);
}
.wallet-balance-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wallet-balance-meta, .wallet-rate-heading { display: flex; align-items: center; gap: 11px; }
.wallet-balance-refresh { min-height: 44px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 5px; padding: 0 10px; border: 1px solid rgba(255,255,255,.25); color: #E4F0FF; background: rgba(8,18,32,.28); font-size: 12px; }
.wallet-balance-refresh span:first-child { font-size: 20px; line-height: 1; }
.wallet-balance-refresh:disabled { opacity: .55; }
.wallet-balance-mark, .wallet-rate-mark, .wallet-empty-mark { width: 41px; height: 41px; flex: 0 0 41px; display: grid; place-items: center; border-radius: 13px; color: #D9EDFF; background: rgba(255,255,255,.1); }
.wallet-balance-mark svg, .wallet-rate-mark svg, .wallet-empty-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wallet-kicker { color: #D1E2F7; font-size: 12px; }
.wallet-balance-panel h2, .wallet-rate-panel h2, .wallet-section h2 { margin: 2px 0 0; color: var(--text); font-size: 19px; }
.wallet-balance-content { min-height: 58px; display: flex; align-items: center; padding-block: 8px 2px; }
.wallet-amount { color: #F2F5FA; font-size: clamp(30px,8vw,39px); font-weight: 800; letter-spacing: -.04em; overflow-wrap: anywhere; }
.wallet-approx-balance { margin: 0 0 10px; color: #D7E7F8; font-size: 13px; }
.wallet-note, .wallet-rate-caption, .wallet-review-note { margin: 9px 0 0; color: #C1CBD9; font-size: 12px; line-height: 1.65; }
.wallet-topup-button { width: 100%; min-height: 49px; margin-top: 15px; }
.wallet-rate-panel, .wallet-section { margin: 0 0 19px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.wallet-rate-mark { width: 38px; height: 38px; flex-basis: 38px; color: #BDEBFF; background: rgba(61,214,255,.1); }
.wallet-rate-content { min-height: 42px; display: flex; align-items: center; padding: 10px 0 2px; }
.wallet-rate-value { color: var(--text); font: 700 19px/1.4 var(--font-mono); }
.wallet-rate-caption { margin-top: 8px; color: var(--muted); }
.wallet-approx-tag { display: inline-block; margin-inline-end: 5px; padding: 2px 7px; border-radius: 7px; color: #C9D5E4; background: #242936; font-size: 11px; }
.wallet-section { margin-bottom: 0; }
.wallet-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.wallet-section-heading h2 { font-size: 18px; }
.wallet-request-count { min-width: 32px; min-height: 32px; display: grid; place-items: center; padding: 3px 8px; border-radius: 10px; color: #D8E6F5; background: #262B37; font: 600 13px var(--font-mono); }
.wallet-request-list { display: grid; gap: 9px; }
.wallet-request-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #171A23; }
.wallet-request-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.wallet-request-amount { min-width: 0; color: var(--text); font: 700 16px/1.5 var(--font-mono); overflow-wrap: anywhere; }
.wallet-request-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.wallet-request-id { font-family: var(--font-mono); }
.wallet-request-date { direction: ltr; font-variant-numeric: tabular-nums; }
.wallet-request-credit { margin: 8px 0 0; color: #76E0B3; font-size: 13px; }
.wallet-empty { padding: 20px 15px; border: 1px dashed var(--line-strong); border-radius: 16px; text-align: center; }
.wallet-empty-mark { margin: 0 auto 10px; }
.wallet-empty h3 { margin: 0; color: var(--text); font-size: 17px; }
.wallet-empty p { margin: 7px 0 0; color: #B4BFCD; font-size: 13px; line-height: 1.65; }
.wallet-history-link { width: 100%; min-height: 46px; margin-top: 12px; border: 1px solid var(--line); color: #D6E5F5; background: #202530; font: inherit; font-size: 14px; }
.wallet-review-note { display: flex; align-items: flex-start; gap: 9px; margin: 13px 2px 0; }
.wallet-review-mark { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 6px; border-radius: 50%; background: var(--cyan); }
.wallet-loading { width: 100%; }
.wallet-request-loading { width: 100%; }
.wallet-state { margin: 0; color: #C2CCD8; font-size: 13px; }
.wallet-screen .ui-inline-error { width: 100%; }

/* Orders, filters and order detail */
.orders-page-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.orders-page-heading .back-button { margin: 0; white-space: nowrap; }
.orders-list { display: grid; gap: 11px; }
.order-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.order-skeleton-card, .orders-skeleton { min-height: 96px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.order-head { display: flex; align-items: flex-start; gap: 11px; }
.order-game-art { position: relative; width: 56px; height: 56px; flex: 0 0 56px; display: grid; overflow: hidden; place-items: center; border-radius: 14px; background: #242A36; }
.order-game-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.order-game-art .game-fallback { font-size: 17px; }
.order-main { min-width: 0; flex: 1; }
.order-title { margin-bottom: 3px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.order-subtitle { margin-bottom: 4px; color: #AAB5C4; font-size: 11px; line-height: 1.4; }
.order-date { color: var(--muted); font-size: 11px; }
.status-pill { min-height: 28px; display: inline-flex; flex: 0 0 auto; align-items: center; padding: 0 9px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-wait, .ui-status.warning { border-color: rgba(246,198,107,.25); color: #F6D99B; background: rgba(122,84,20,.16); }
.status-accept, .status-pill.success, .status-pill.approved { border-color: rgba(52,211,153,.25); color: #83E8BC; background: rgba(20,113,77,.16); }
.status-reject, .status-pill.danger, .status-pill.rejected { border-color: rgba(251,113,133,.26); color: #FFABB9; background: rgba(129,35,55,.16); }
.order-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.order-price { margin: 0; color: #D2E5F8; font-size: 14px; font-weight: 800; }
.order-short-id { color: #AAB6C5; font-size: 12px; }
.order-card-references { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.order-card-reference { min-width: 0; display: grid; gap: 4px; }
.order-card-reference > span { color: var(--muted); font-size: 11px; }
.order-card-copy { width: 100%; max-width: 100%; min-height: 44px; justify-content: space-between; padding: 5px 8px; }
.order-card-copy code { max-width: 100%; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.order-detail-open { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding: 0 11px; border: 1px solid var(--line); color: #D0E1F3; background: #202530; font: inherit; font-size: 13px; }
.history-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 14px 0; }
.history-stats > div { min-width: 0; display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.history-stats > div > span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.history-stats > div > strong { color: var(--text); font: 700 15px/1.45 var(--font-mono); overflow-wrap: anywhere; }
.history-partial-note { grid-column: 1/-1; margin: 0; color: #BCC6D3; font-size: 12px; text-align: center; }
.history-filters { display: grid; gap: 9px; margin: 14px 0; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.history-search-label { color: #C1CBD8; font-size: 13px; }
.history-search, .history-date-filters input {
  width: 100%; min-width: 0; min-height: 46px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--text);
  background: var(--surface-soft); font: 16px var(--font-arabic);
}
.history-search:focus, .history-date-filters input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,140,255,.12); }
.history-date-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.history-date-filters label { display: grid; gap: 5px; color: #C1CBD8; font-size: 12px; }
.history-date-filters input { min-height: 44px; padding: 7px; direction: ltr; font-family: var(--font-mono); }
.history-more { width: 100%; min-height: 46px; margin: 12px 0 24px; }
.order-shortcuts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.shortcut { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 6px 3px; border: 1px solid var(--line); border-radius: 14px; color: #D1DAE6; background: var(--surface); font-size: 11px; }
.shortcut-dot { width: 9px; height: 9px; border-radius: 50%; background: #9DB5D1; }
.shortcut-dot.wait { background: var(--warning); }
.shortcut-dot.accept { background: var(--success); }
.shortcut-dot.reject { background: var(--danger); }
.shortcut-count { color: var(--muted); font: 11px var(--font-mono); }
.order-detail-heading { margin: 15px 0 12px; }
.order-detail-heading h1 { margin: 5px 0; font-size: 25px; overflow-wrap: anywhere; }
.order-detail-heading p { margin: 0; color: #B2BDCB; line-height: 1.6; }
.order-detail-card { display: grid; gap: 12px; margin: 12px 0; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.order-detail-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-detail-price { color: var(--text); font-size: 17px; font-weight: 700; text-align: left; overflow-wrap: anywhere; }
.order-number, .order-reference-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; color: #C3CEDB; background: #171A23; }
.order-number code, .order-reference-row code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: #D8E9FB; font-size: 12px; }
.order-detail-date { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; margin: 0; color: #BCC6D3; }
.order-detail-section { margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.order-detail-section h2 { margin: 0 0 11px; color: var(--text); font-size: 17px; }
.order-param-list { display: grid; gap: 9px; margin: 0; }
.order-param-list > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-param-list dt { color: #BAC5D2; }
.order-param-list dd { max-width: 65%; margin: 0; color: var(--text); text-align: left; overflow-wrap: anywhere; }
.order-reference-list { display: grid; gap: 8px; }
.order-timeline { display: grid; gap: 10px; margin: 0; padding-inline-start: 18px; color: #D1DAE5; }
.order-timeline li { padding-inline-start: 3px; }
.order-timeline li::marker { color: var(--cyan); }
.order-timeline time { display: block; margin-top: 3px; color: var(--muted); direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.delivery-list { display: grid; gap: 7px; margin-top: 12px; }
.delivery-code-box { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #171A23; }
.delivery-code { min-width: 0; flex: 1; overflow-wrap: anywhere; padding: 5px; color: #D9EAFE; direction: ltr; text-align: left; font-size: 12px; user-select: all; }
.verified-player-name { margin: 0; color: #D8F7E8; overflow-wrap: anywhere; }
.refund-note { margin: 8px 0 0; color: #F4C2CC; font-size: 13px; }
.order-detail-actions { display: grid; gap: 9px; margin: 16px 0 24px; }
.order-detail-actions button { min-height: 46px; }
.order-detail-actions small { color: var(--muted); line-height: 1.6; text-align: center; }
.order-support { margin-bottom: 20px; }
.order-detail-skeleton { display: grid; gap: 12px; margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.order-detail-skeleton span, .order-detail-skeleton i { display: block; height: 22px; border-radius: 8px; background: linear-gradient(90deg,#202530,#2A303D,#202530); background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite; }
.order-detail-skeleton span { height: 72px; }
.reorder-price-note { margin: -3px 0 2px; color: #BDD9F4; font-size: 13px; line-height: 1.6; }
.orders-filters { margin: 0 0 13px; }
.orders-filters .filter-chip { font-size: 12px; }

/* Top-up method and payment flow */
.topup-screen-back { margin-bottom: 8px; }
.topup-methods-heading { margin-top: 0; }
.method-list { display: grid; gap: 10px; }
.method-card { width: 100%; min-height: 78px; display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 17px; color: var(--text); text-align: right; background: var(--surface); transition: transform .16s ease, border-color .16s ease; }
.method-card:hover { border-color: rgba(61,214,255,.3); }
.method-card:active { transform: scale(.99); }
.method-card .payment-logo { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; }
.method-copy { min-width: 0; display: grid; gap: 4px; }
.method-copy strong { font-size: 15px; }
.method-copy small { color: #B6C1CE; font-size: 12px; }
.method-chevron { margin-inline-start: auto; color: #A8D2FF; font-size: 20px; }
.methods-balance-note { margin: -8px 0 0; color: #BBC5D2; font-size: 13px; line-height: 1.6; }
.methods-balance-note button { min-height: 44px; margin-inline-start: 6px; padding: 0 5px; border: 0; color: #A8D4FF; background: transparent; text-decoration: underline; }
.manual-note { display: flex; align-items: flex-start; gap: 9px; margin: 14px 2px; color: #C1CBD7; font-size: 13px; line-height: 1.7; }
.manual-indicator { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 7px; border-radius: 50%; background: var(--warning); }
.topup-page { padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 25px); }
.topup-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; }
.topup-heading h1 { font-size: 26px; }
.topup-back { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 13px; color: #D2E5F8; background: var(--surface); font-size: 19px; }
.topup-method-card, .payment-card { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.topup-method-card .payment-logo { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 13px; object-fit: cover; }
.payment-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.payment-title-row h2 { font-size: 16px; }
.topup-method-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.payment-primary-tag { padding: 3px 8px; border: 1px solid rgba(61,214,255,.2); border-radius: 999px; color: #C7EFFF; background: rgba(61,214,255,.07); font-size: 10px; }
.topup-qr { width: min(100%, 270px); aspect-ratio: 1; display: grid; place-items: center; margin: 15px auto; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: #F2F5FA; }
.topup-qr img { width: 100%; height: 100%; object-fit: contain; }
.topup-detail-card { margin: 10px 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.topup-address-card { border-color: rgba(61,214,255,.16); }
.topup-detail-label { color: #BFC9D6; font-size: 12px; }
.topup-detail-card p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.topup-address-copy { min-width: 0; }
.holder-copy, .address-copy { width: 100%; justify-content: space-between; margin-top: 8px; }
.holder-copy code { font-size: 15px; }
.topup-rate { min-height: 24px; margin: 9px 2px; color: #BDD5ED; font-size: 13px; line-height: 1.6; }
.topup-form { display: grid; gap: 8px; margin: 13px 0 18px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.topup-form label { margin-top: 4px; color: #D5DEE9; font-size: 13px; font-weight: 700; }
.topup-form input, .topup-form select { width: 100%; min-width: 0; min-height: 48px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface-soft); font-size: 16px; }
.topup-form input[dir="ltr"] { direction: ltr; text-align: left; font-family: var(--font-mono); }
.topup-tx-wrap { display: flex; align-items: center; gap: 7px; }
.topup-tx-wrap input { min-width: 0; flex: 1; }
.topup-tx-wrap .copy-chip-button:disabled { opacity: .45; }
.topup-form input:focus, .topup-form select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(47,140,255,.12); }
.topup-form input::placeholder { color: #808B9B; }
.topup-field-hint { color: #ABB6C4; font-size: 11px; line-height: 1.55; }
.topup-error { min-height: 0; margin: 0; color: #FFB5C0; font-size: 12px; line-height: 1.5; }
.topup-error:empty { display: none; }
.topup-submit { width: 100%; margin-top: 4px; }
.topup-disclaimer { margin: 3px 0 0; color: #B3BECC; font-size: 12px; line-height: 1.65; }
.topup-history { margin-top: 21px; }
.topup-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.topup-history-heading h2 { font-size: 19px; }
.topup-icon-button { width: 44px; height: 44px; border: 1px solid var(--line); color: #D1E4F6; background: var(--surface); font-size: 20px; }
.topup-request-list { display: grid; gap: 9px; }
.topup-request-loading { width: 100%; }
.topup-request { padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.topup-request-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.topup-request-head strong { color: var(--text); font-size: 14px; }
.topup-request-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; margin-top: 8px; color: #AEB9C8; font-size: 12px; }
.topup-request-meta time { direction: rtl; }
.topup-request-meta code { color: #C7E7FF; font-size: 12px; }
.topup-credited { margin: 8px 0 0; color: #82E4B7; font-size: 13px; }
.topup-reject-reason { margin: 8px 0 0; color: #FFB6C0; line-height: 1.6; overflow-wrap: anywhere; }
.topup-list-message { min-height: 76px; display: grid; align-content: center; justify-items: center; gap: 9px; padding: 15px; border: 1px dashed var(--line-strong); border-radius: 16px; color: #B9C4D2; text-align: center; }
.topup-list-message p { margin: 0; font-size: 13px; line-height: 1.7; }
.topup-list-message .empty-mark { margin: 0; }
.topup-list-error { border-color: rgba(251,113,133,.3); background: rgba(91,24,40,.13); }
.topup-refresh { min-height: 44px; }
.topup-skeleton-list { display: grid; gap: 10px; }
.topup-skeleton { height: 86px; display: grid; align-content: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.topup-skeleton i { width: 62%; height: 11px; border-radius: 5px; background: linear-gradient(90deg,#222733,#303746,#222733); background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite; }
.topup-skeleton i:last-child { width: 42%; opacity: .7; }
.topup-status.pending { color: var(--warning); }
.topup-status.approved { color: var(--success); }
.topup-status.rejected { color: var(--danger); }
.topup-history-filters .orders-filters { margin: 2px 0 0; }
.topup-history-stats > div:last-of-type { grid-column: auto; }
.payment-steps { margin: 0; padding-inline-start: 21px; color: #BEC9D6; line-height: 1.8; }
.payment-account-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.payment-card-cta, .payment-card-link { min-height: 44px; }

/* Loading, empty, auth, errors and transient feedback */
.empty-state, .auth-state, .error-state { min-height: 240px; display: grid; align-content: center; justify-items: center; padding: 24px 18px; color: var(--muted); text-align: center; }
.empty-mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid rgba(61,214,255,.18); border-radius: 16px; color: #B5D9FB; background: rgba(47,140,255,.1); }
.empty-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; }
.empty-state h2, .error-state h2, .auth-state h2 { margin-bottom: 8px; color: var(--text); font-size: 18px; }
.empty-state p, .error-state p, .auth-state p { max-width: 290px; margin-bottom: 0; font-size: 13px; line-height: 1.8; }
.error-state { min-height: 58dvh; }
.error-state .empty-mark { color: #C4DFFF; }
.retry-button { margin-top: 15px; }
.auth-state { min-height: 60dvh; }
.auth-state .empty-mark { color: #D7E9FF; font-family: var(--font-mono); font-weight: 800; }
.empty-action { margin-top: 15px; }
.loading-state { min-height: calc(100dvh - 150px); padding-top: 4px; }
.skeleton-heading { height: 51px; display: flex; align-items: center; justify-content: space-between; margin: 5px 2px 12px; }
.skeleton-line, .skeleton-count, .skeleton-search, .skeleton-card i, .skeleton-card b { display: block; border-radius: 8px; background: #252B37; animation: skeleton-pulse 1.55s ease-in-out infinite; }
.skeleton-line { width: 118px; height: 22px; }
.skeleton-count { width: 48px; height: 13px; }
.skeleton-search { height: 49px; margin-bottom: 22px; border-radius: 14px; }
.skeleton-grid { margin-top: 0; }
.skeleton-card { overflow: hidden; padding-bottom: 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.skeleton-card > span { display: block; aspect-ratio: 1; background: #1C202A; }
.skeleton-card i { height: 11px; margin: 9px 9px 6px; }
.skeleton-card b { width: 58%; height: 9px; margin: 0 9px; }
@keyframes skeleton-pulse { 0%,100% { opacity: .56; } 50% { opacity: .9; } }
@keyframes skeleton-shimmer { 0%,100% { opacity: .62; } 50% { opacity: .94; } }
.toast {
  position: fixed; z-index: 15; right: 15px; bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  left: 15px; width: fit-content; max-width: calc(100% - 30px); margin-inline: auto; padding: 11px 15px;
  border: 1px solid rgba(61,214,255,.2); border-radius: 13px; color: #EDF5FF;
  background: rgba(26,30,40,.98); box-shadow: 0 8px 24px rgba(0,0,0,.23); font-size: 13px;
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .16s ease, transform .16s ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }

/* Four-tab floating navigation */
.bottom-nav {
  position: fixed; z-index: 7; right: 0; bottom: calc(9px + var(--safe-bottom)); left: 0;
  width: min(calc(100% - 22px), 600px); height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 4px; margin-inline: auto; padding: 6px 7px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 21px;
  background: rgba(20,22,30,.94); box-shadow: 0 9px 27px rgba(0,0,0,.28);
  backdrop-filter: blur(19px); -webkit-backdrop-filter: blur(19px);
  transition: transform .18s ease, opacity .18s ease;
}
.nav-item {
  position: relative; min-width: 0; min-height: 54px; flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; padding: 4px 3px; border: 0;
  border-radius: 15px; color: #A1AAB8; background: transparent; font-size: 11px;
}
.nav-label { max-width: 100%; overflow: hidden; color: inherit; font-size: 11px; line-height: 1.15; white-space: nowrap; }
.nav-icon { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.nav-item.active { color: #E4F4FF; background: rgba(47,140,255,.18); box-shadow: inset 0 0 0 1px rgba(61,214,255,.34); }
.nav-item.active .nav-icon { color: var(--cyan); }
.nav-badge { position: absolute; top: 1px; inset-inline-end: 5px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 99px; color: #17110A; background: var(--warning); font: 700 10px/1 var(--font-mono); }
.bottom-nav.keyboard-hidden { visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(130%); }

/* Responsive fit: layouts remain two-column at 360/390 widths */
@media (min-width: 520px) {
  #view { padding-inline: 24px; }
  .topbar { padding-inline: 22px; }
  .game-grid, .pack-grid { gap: 13px; }
  .game-card-title { margin-inline: 12px; font-size: 14px; }
  .game-card-meta { margin-inline: 12px; }
  .pack-title { font-size: 14px; }
}
@media (max-width: 390px) {
  .topbar { gap: 5px; padding-inline: 9px; }
  .shell-name { max-width: 70px; font-size: 13px; }
  .shell-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .shell-balance { min-width: 70px; gap: 4px; padding-inline: 6px; }
  .shell-balance-value { max-width: 76px; font-size: 13px; }
  .price-currency-toggle button { min-width: 44px; padding-inline: 6px; }
  #view { padding-inline: 14px; }
  .game-grid, .pack-grid { gap: 9px; }
  .game-card-title { margin-inline: 8px; font-size: 12px; }
  .game-card-meta { margin-inline: 8px; }
  .pack-title { margin-inline: 8px; font-size: 12px; }
  .pack-price { margin-inline: 8px; font-size: 14px; }
  .orders-page-heading { grid-template-columns: auto 1fr auto; gap: 5px; }
  .orders-page-heading .back-button { font-size: 12px; }
  .order-detail-card, .order-detail-section { padding: 12px; }
}
@media (max-width: 359px) {
  #view { padding-inline: 12px; }
  .shell-name { max-width: 55px; }
  .shell-balance { min-width: 63px; }
  .shell-balance-value { max-width: 61px; font-size: 12px; }
  .price-currency-toggle button { min-width: 44px; padding-inline: 5px; }
  .game-grid, .pack-grid { gap: 7px; }
  .game-card-title { margin-inline: 7px; font-size: 11px; }
  .game-card-meta { margin-inline: 7px; }
  .primary-button { min-width: 126px; padding-inline: 11px; }
  .buy-dock { padding-inline: 12px; }
  .buy-dock .primary-button { min-width: 126px; }
  .topup-form { padding: 13px; }
}
@media (max-width: 340px) {
  .shell-name { display: none; }
  .nav-label { font-size: 10px; }
  .history-stats { gap: 7px; }
  .history-stats > div { padding: 10px; }
}
@media (max-width: 540px) {
  .topup-history-stats > div:last-of-type { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
