/* Leskamas: sell kamas pages (sell/sell, sell/server, account/sell). Everything is scoped under .kx. */
.kx {
  --kx-text: #1D1D1F;
  --kx-text-2: #424245;
  --kx-muted: #6E6E73;
  --kx-line: #D2D2D7;
  --kx-line-2: #E8E8ED;
  --kx-soft: #F5F5F7;
  --kx-white: #FFFFFF;
  --kx-accent: #0071E3;
  --kx-accent-ink: #0058B0;
  --kx-link: #0066CC;
  --kx-green: #248A3D;
  --kx-green-ink: #1B6B2F;
  --kx-red: #B3261E;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  color: var(--kx-text);
  background: var(--kx-white);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.47;
}
.kx *, .kx *::before, .kx *::after { box-sizing: border-box; }
.kx a { color: var(--kx-link); text-decoration: none; }
.kx a:hover { color: #004A99; text-decoration: underline; }
.kx h1, .kx h2, .kx h3 { font-family: inherit; color: var(--kx-text); margin: 0; font-weight: 700; }
.kx p { margin: 0; }
.kx button, .kx input, .kx select { font: inherit; color: var(--kx-text); }
.kx :focus-visible { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; }
.kx .kx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kx .kx-wrap { max-width: 1080px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.kx .kx-narrow { max-width: 820px; margin: 0 auto; }
.kx .kx-num { font-variant-numeric: tabular-nums; }
.kx .kx-muted { color: var(--kx-muted); }
[hidden] { display: none !important; }

/* Breadcrumb */
.kx-crumbs { padding-top: 18px; font-size: 13px; color: var(--kx-muted); }
.kx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kx-crumbs li + li::before { content: "›"; margin-right: 8px; }
.kx-crumbs a { color: var(--kx-muted); }
.kx-crumbs [aria-current] { color: var(--kx-text); }

/* Hero */
.kx-hero { padding: 40px 22px 32px; text-align: center; }
.kx-kicker { font-size: 17px; font-weight: 600; color: var(--kx-green); }
.kx-hero h1 { margin-top: 10px; font-size: 64px; line-height: 1.05; letter-spacing: -.03em; }
.kx-hero h1 span { color: var(--kx-muted); }
.kx-hero .kx-lead { margin: 16px auto 0; max-width: 620px; font-size: 21px; line-height: 1.45; color: var(--kx-muted); }

/* Two columns: steps + sticky order panel */
.kx-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-bottom: 64px; }
.kx-main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.kx-side { flex: 1 1 340px; min-width: 0; position: sticky; top: 76px; }

.kx-card { background: var(--kx-soft); border-radius: 22px; padding: 28px; }
.kx-card h2, .kx-panel h2 { font-size: 22px; letter-spacing: -.01em; }
.kx-card h2 .kx-n, .kx-panel h2 .kx-n { color: var(--kx-muted); }
.kx-card-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.kx-note { margin-top: 14px; font-size: 13px; color: var(--kx-muted); }
.kx .kx-card p.kx-note { margin-top: 16px; }

/* Game tabs (segmented control) */
.kx-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--kx-line-2); border-radius: 10px; }
.kx-tabs button { font-size: 14px; padding: 0 14px; min-height: 36px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.kx-tabs button[aria-selected="true"] { background: var(--kx-white); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* Server tiles */
.kx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kx-tile { text-align: left; min-height: 72px; padding: 12px 14px; border: 2px solid transparent; border-radius: 14px; background: var(--kx-white); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.kx-tile:hover { border-color: var(--kx-line); }
.kx-tile b { font-weight: 600; font-size: 15px; }
.kx-tile span { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kx-tile[aria-checked="true"] { border-color: var(--kx-accent); }
.kx-tile[aria-checked="true"] span { color: var(--kx-accent); font-weight: 700; }

/* Quantity */
.kx-qty-row { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }
.kx-stepper { display: inline-flex; align-items: stretch; background: var(--kx-white); border: 1px solid var(--kx-line); border-radius: 12px; overflow: hidden; }
.kx-stepper button { font-size: 22px; width: 48px; min-height: 48px; border: 0; background: var(--kx-white); cursor: pointer; }
.kx-stepper button:first-child { border-right: 1px solid var(--kx-line-2); }
.kx-stepper button:last-child { border-left: 1px solid var(--kx-line-2); }
.kx-stepper input { width: 96px; font-size: 19px; font-weight: 600; text-align: center; padding: 0 6px; min-height: 48px; border: 0; background: transparent; }
.kx-stepper .kx-unit { display: flex; align-items: center; padding-right: 10px; font-weight: 600; color: var(--kx-muted); }
.kx-stepper.kx-wide { display: flex; }
.kx-stepper.kx-wide input { flex: 1; min-width: 0; width: auto; }
.kx-slider { flex: 1 1 240px; min-width: 0; }
.kx-slider input { width: 100%; height: 28px; margin: 0; accent-color: var(--kx-accent); cursor: pointer; }
.kx-slider-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--kx-muted); }
.kx-slider-ticks { display: block; position: relative; height: 18px; margin: 0 9px; }
.kx-slider-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.kx-slider-ticks span:first-child { transform: none; margin-left: -9px; }
.kx-slider-ticks span:last-child { transform: translateX(-100%); margin-left: 9px; }
@media (max-width: 560px) { .kx-slider-ticks .kx-tick-minor { display: none; } }
.kx-info { margin-top: 8px; font-size: 13px; color: var(--kx-accent-ink); }

/* How it works */
.kx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kx-steps li { border: 1px solid var(--kx-line-2); border-radius: 18px; padding: 18px; }
.kx-steps .kx-badge { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--kx-soft); align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.kx-steps b { display: block; margin-top: 10px; font-weight: 600; font-size: 16px; }
.kx-steps p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--kx-muted); }
.kx-h2 { font-size: 22px; letter-spacing: -.01em; margin: 8px 0 14px; }

/* Notes */
.kx-shield { background: var(--kx-soft); border-radius: 18px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--kx-text-2); }
.kx-shield svg { flex: none; }
.kx-shield strong { color: var(--kx-text); }
.kx-shield.kx-outline { background: transparent; border: 1px solid var(--kx-line); font-size: 15px; }
.kx-warn { background: #FFF4E5; border-radius: 14px; padding: 14px 18px; font-size: 15px; line-height: 1.5; color: #7A4A00; }
.kx-alert { border-radius: 14px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.kx-alert-err { background: #FCEDEC; color: var(--kx-red); }
.kx-alert-ok { background: #E8F5EC; color: var(--kx-green-ink); }

/* Order panel */
.kx-panel { background: var(--kx-white); border: 1px solid var(--kx-line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.kx-panel.kx-soft-panel { background: var(--kx-soft); }
.kx-login { background: var(--kx-soft); border-radius: 16px; padding: 24px; text-align: center; }
.kx-login h3 { font-size: 19px; margin-bottom: 6px; }
.kx-login p { margin-bottom: 14px; font-size: 14px; line-height: 1.5; color: var(--kx-muted); }
.kx-login .kx-link { display: inline-block; margin-top: 8px; font-size: 15px; }
.kx-pay { background: var(--kx-soft); border-radius: 16px; padding: 16px 18px; }
.kx-soft-panel .kx-pay { background: var(--kx-white); }
.kx-pay small { display: block; font-size: 13px; color: var(--kx-muted); }
.kx-pay strong { display: block; font-size: 38px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kx-pay .kx-bonus { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--kx-green); }

.kx-fieldset { margin: 0; border: 1px solid var(--kx-line-2); border-radius: 16px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kx-fieldset legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--kx-muted); width: auto; border: 0; margin: 0; }
.kx-field { display: flex; flex-direction: column; gap: 6px; }
.kx-field label { font-size: 13px; font-weight: 600; color: var(--kx-text-2); margin: 0; }
.kx-field label .kx-opt { font-weight: 400; color: var(--kx-muted); }
.kx-input { width: 100%; font-size: 16px; padding: 0 12px; min-height: 46px; border-radius: 12px; border: 1px solid var(--kx-line); background: var(--kx-white); box-shadow: none; }
.kx-input:focus { border-color: var(--kx-accent); outline: none; box-shadow: 0 0 0 3px rgba(0,113,227,.2); }
.kx-input[aria-invalid="true"] { border: 1.5px solid var(--kx-red); }
.kx-input.kx-valid { border: 1.5px solid #34A853; }
.kx-help { font-size: 12px; line-height: 1.45; color: var(--kx-muted); }
.kx-help strong { color: var(--kx-green); font-weight: 600; }
.kx-msg { font-size: 13px; line-height: 1.45; min-height: 0; }
.kx-msg.kx-err { color: var(--kx-red); }
.kx-msg.kx-ok { color: var(--kx-green-ink); }
.kx-msg.kx-ok::before { content: "✓ "; }
.kx-summary { border: 1px solid var(--kx-line); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.kx-summary > div { min-width: 0; }
.kx-summary small { display: block; font-size: 12px; color: var(--kx-muted); }
.kx-summary .kx-acc { font-size: 14px; overflow-wrap: anywhere; }
.kx-summary .kx-who { font-size: 13px; color: var(--kx-muted); }

.kx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 980px; background: var(--kx-accent); color: #FFFFFF; cursor: pointer; text-decoration: none; }
.kx a.kx-btn, .kx a.kx-btn:hover { color: #FFFFFF; text-decoration: none; }
.kx-btn:hover { background: #0077ED; }
.kx-btn[disabled] { background: var(--kx-line-2); color: var(--kx-muted); cursor: default; }
.kx-btn.kx-block { width: 100%; }
.kx-btn.kx-sm { font-size: 15px; min-height: 44px; padding: 0 20px; }
.kx-btn.kx-ghost { background: transparent; border: 1px solid var(--kx-accent); color: var(--kx-accent); }
.kx a.kx-btn.kx-ghost, .kx a.kx-btn.kx-ghost:hover { color: var(--kx-accent); }
.kx-btn.kx-plain { background: var(--kx-white); border: 1px solid var(--kx-line); color: var(--kx-text); font-size: 15px; min-height: 44px; padding: 0 16px; }
.kx-btn.kx-edit { background: transparent; border: 1px solid var(--kx-line); color: var(--kx-link); font-size: 13px; font-weight: 600; min-height: 40px; padding: 0 12px; border-radius: 10px; }
.kx-captcha:empty { display: none; }
.kx-captcha .form-group { margin: 0; }
.kx-captcha label { display: none; }

/* Sections */
.kx-band { background: var(--kx-soft); padding: 72px 22px; }
.kx-section { padding: 80px 22px 0; }
.kx-big { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; }
.kx-band-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.kx-band-head span { font-size: 15px; color: var(--kx-muted); }

/* Price list */
.kx-table-wrap { overflow-x: auto; background: var(--kx-white); border-radius: 18px; }
.kx-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; font-variant-numeric: tabular-nums; }
.kx-table thead tr { text-align: left; font-size: 12px; color: var(--kx-muted); border-bottom: 1px solid var(--kx-line); }
.kx-table th, .kx-table td { padding: 12px 10px; text-align: left; vertical-align: middle; }
.kx-table th:first-child { padding-left: 18px; }
.kx-table th:last-child, .kx-table td:last-child { padding-right: 18px; white-space: nowrap; }
.kx-table thead th { font-weight: 500; padding-top: 14px; padding-bottom: 14px; }
.kx-table .kx-group th { background: #FAFAFC; font-size: 13px; font-weight: 700; color: var(--kx-text); }
.kx-table tbody tr + tr { border-top: 1px solid var(--kx-line-2); }
.kx-table tbody th { font-weight: 600; }
.kx-table tbody th a { color: var(--kx-text); }
.kx-table td { color: var(--kx-text-2); }
.kx-table td.kx-main-price { font-weight: 600; color: var(--kx-text); }
.kx-dot { display: inline-flex; align-items: center; gap: 6px; }
.kx-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.kx-dot.kx-on { color: var(--kx-green); font-weight: 500; }
.kx-dot.kx-on::before { background: var(--kx-green); }
.kx-dot.kx-off { color: var(--kx-muted); }
.kx-dot.kx-off::before { border: 1.5px solid #86868B; }

/* FAQ */
.kx-faq h2 { text-align: center; margin-bottom: 24px; }
.kx-faq details { border-bottom: 1px solid var(--kx-line); }
.kx-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; font-size: 19px; font-weight: 600; }
.kx-faq summary::-webkit-details-marker { display: none; }
.kx-faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--kx-muted); }
.kx-faq details[open] summary::after { content: "−"; }
.kx-faq details p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--kx-text-2); }

.kx-about { padding: 72px 22px 96px; }
.kx-about h2 { font-size: 24px; letter-spacing: -.01em; margin-bottom: 14px; }
.kx-about .kx-prose { font-size: 16px; line-height: 1.7; color: var(--kx-text-2); display: flex; flex-direction: column; gap: 14px; }
.kx-about .kx-more { margin-top: 20px; font-size: 16px; }

/* Server landing page */
.kx-server-hero { padding-top: 28px; padding-bottom: 28px; }
.kx .kx-server-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.kx .kx-server-links a { color: var(--kx-accent); text-decoration: none; }
.kx .kx-server-links a:hover { text-decoration: underline; }
.kx-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--kx-green); }
.kx-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.kx-status.kx-closed { color: var(--kx-muted); }
.kx-server-hero h1 { margin-top: 12px; font-size: 56px; line-height: 1.02; letter-spacing: -.02em; }
.kx-stats { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.kx-main > .kx-stats { margin-top: 0; }
.kx-main > .kx-stats .kx-stat { flex: 1 1 150px; }
.kx-stat { background: var(--kx-soft); border-radius: 16px; border-top: 3px solid var(--kx-line); padding: 14px 20px; min-width: 150px; }
.kx-stat small { display: block; font-size: 12px; color: var(--kx-muted); }
.kx-stat strong { display: block; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kx-stat span { display: block; font-size: 12px; color: var(--kx-muted); }
.kx-stat.kx-today { border-top-color: var(--kx-accent); min-width: 180px; }
.kx-stat.kx-today strong { font-size: 30px; color: var(--kx-accent); }
.kx-stat.kx-today strong em { font-style: normal; font-size: 15px; color: var(--kx-muted); }
.kx-stat.kx-high { border-top-color: var(--kx-green); }
.kx-stat.kx-low { border-top-color: var(--kx-red); }
.kx-up { color: var(--kx-green); }
.kx-down { color: var(--kx-red); }
.kx-card.kx-chart { padding: 24px; }
.kx-card.kx-chart h2, .kx-sub h2 { font-size: 20px; }
.kx-ranges { display: flex; gap: 6px; }
.kx-ranges button { font-weight: 600; font-size: 13px; min-height: 36px; min-width: 48px; border: 1px solid var(--kx-line); border-radius: 980px; background: transparent; color: var(--kx-text-2); cursor: pointer; }
.kx-ranges button[aria-selected="true"] { border-color: var(--kx-accent); background: var(--kx-accent); color: #FFFFFF; }
.kx-chart svg { width: 100%; height: auto; display: block; }
.kx-chart .kx-grid-line { stroke: var(--kx-line-2); }
.kx-chart text { font-family: inherit; font-size: 12px; fill: var(--kx-muted); }
.kx-chart .kx-line { fill: none; stroke: var(--kx-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.kx-chart .kx-area { fill: var(--kx-accent); fill-opacity: .08; }
.kx-chart .kx-hi { fill: var(--kx-green); }
.kx-chart .kx-lo { fill: var(--kx-red); }
.kx-chart text.kx-hi, .kx-chart text.kx-lo { font-weight: 700; }
.kx-chart .kx-end { fill: var(--kx-accent); stroke: #FFFFFF; stroke-width: 2; }
.kx-methods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.kx-methods li { background: var(--kx-white); border-radius: 14px; padding: 14px 16px; }
.kx-methods small { display: block; font-size: 13px; color: var(--kx-muted); }
.kx-methods strong { display: block; margin-top: 4px; font-size: 20px; font-variant-numeric: tabular-nums; }
.kx-others { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.kx-others a { display: flex; flex-direction: column; gap: 4px; min-height: 64px; padding: 12px 14px; background: var(--kx-white); border: 1px solid var(--kx-line-2); border-radius: 14px; color: var(--kx-text); }
.kx-others a:hover { border-color: var(--kx-line); text-decoration: none; color: var(--kx-text); }
.kx-others b { font-weight: 600; font-size: 15px; }
.kx-others span { font-size: 14px; color: var(--kx-accent); font-variant-numeric: tabular-nums; }
.kx-others .kx-full span { color: var(--kx-muted); }
.kx-sub h2 { margin-bottom: 14px; }

/* My sales */
.kx-account { max-width: 1080px; margin: 0 auto; padding: 32px 22px 80px; }
.kx-account-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-top: 10px; }
.kx-account-head h1 { font-size: 48px; line-height: 1.08; letter-spacing: -.02em; }
.kx-total { margin-top: 28px; background: var(--kx-soft); border-radius: 18px; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.kx-total small { display: block; font-size: 13px; color: var(--kx-muted); }
.kx-total strong { font-size: 28px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kx-total strong span { font-size: 15px; font-weight: 500; color: var(--kx-muted); }
.kx-total .kx-mask { letter-spacing: .1em; color: #86868B; }
.kx-orders { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kx-order { border: 1px solid var(--kx-line-2); border-radius: 18px; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; }
.kx-order > div { flex: 1 1 220px; min-width: 0; }
.kx-order > .kx-tag-col { flex: 0 0 auto; }
.kx-order .kx-meta { font-size: 13px; color: var(--kx-muted); font-variant-numeric: tabular-nums; }
.kx-order .kx-title { margin-top: 6px; font-size: 19px; font-weight: 600; }
.kx-order .kx-sub2 { margin-top: 2px; font-size: 15px; color: var(--kx-muted); overflow-wrap: anywhere; }
.kx-order .kx-amount { margin-top: 4px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kx-order .kx-to { margin-top: 4px; font-size: 13px; color: var(--kx-muted); overflow-wrap: anywhere; }
.kx-tag { display: inline-flex; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 980px; }
.kx-tag-green { color: var(--kx-green-ink); background: #E8F5EC; }
.kx-tag-blue { color: var(--kx-accent-ink); background: #E8F1FC; }
.kx-tag-gray { color: var(--kx-text-2); background: #F0F0F3; }
.kx-tag-red { color: var(--kx-red); background: #FCEDEC; }
.kx-track { flex: 1 1 100%; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kx-track li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--kx-muted); }
.kx-track li::before { content: ""; height: 4px; border-radius: 2px; background: var(--kx-line-2); }
.kx-track li.kx-done { color: var(--kx-text); font-weight: 600; }
.kx-track li.kx-done::before { background: var(--kx-accent); }
.kx-order-note { flex: 1 1 100%; margin: -4px 0 0; padding: 10px 14px; background: #E8F1FC; border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--kx-accent-ink); }
.kx-order-note a { font-weight: 600; white-space: nowrap; }
/* My sales: filter tabs + table */
.kx-filters { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.kx .kx-filters a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 980px; background: var(--kx-soft); color: var(--kx-text); font-size: 15px; }
.kx .kx-filters a:hover { background: var(--kx-line-2); text-decoration: none; color: var(--kx-text); }
.kx-filters a span { font-size: 13px; color: var(--kx-muted); font-variant-numeric: tabular-nums; }
.kx .kx-filters a[aria-current] { background: var(--kx-text); color: #FFFFFF; }
.kx-filters a[aria-current] span { color: rgba(255, 255, 255, .7); }
.kx-sales-wrap { margin-top: 16px; border: 1px solid var(--kx-line-2); border-radius: 18px; overflow: hidden; }
.kx-sales { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.kx-sales thead th { text-align: left; font-size: 12px; font-weight: 500; color: var(--kx-muted); background: #FAFAFC; padding: 12px 14px; border-bottom: 1px solid var(--kx-line-2); white-space: nowrap; }
.kx-sales td { padding: 14px; vertical-align: top; }
.kx-sales col.kx-c-order { width: 20%; } .kx-sales col.kx-c-item { width: 19%; } .kx-sales col.kx-c-qty { width: 13%; }
.kx-sales col.kx-c-total { width: 12%; } .kx-sales col.kx-c-payout { width: 21%; } .kx-sales col.kx-c-status { width: 15%; }
.kx-sales b.kx-num { font-size: 13px; letter-spacing: -.01em; }
.kx-sales td { overflow-wrap: anywhere; }
.kx-sales td b { display: block; font-weight: 600; color: var(--kx-text); }
.kx-sales td small { display: block; margin-top: 2px; font-size: 13px; color: var(--kx-muted); overflow-wrap: anywhere; }
.kx-sales .kx-num { font-variant-numeric: tabular-nums; }
.kx-sales .kx-r { text-align: right; }
.kx-sales .kx-sum { font-size: 16px; }
.kx-sales .kx-payout small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kx-sales .kx-tag { font-size: 13px; padding: 4px 10px; line-height: 1.35; }
.kx-sale + .kx-sale { border-top: 1px solid var(--kx-line-2); }
.kx-sale-extra td { padding-top: 0; }
.kx-sale-extra .kx-order-note { margin: 0; }
.kx-sale:hover { background: #FBFBFD; }
.kx-empty { margin-top: 32px; background: var(--kx-soft); border-radius: 18px; padding: 40px 24px; text-align: center; color: var(--kx-muted); }
.kx-pages { margin-top: 24px; display: flex; justify-content: center; }
.kx-pages .pagination { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.kx-pages .pagination > li > a, .kx-pages .pagination > li > span { float: none; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: var(--kx-text); background: transparent; padding: 0 6px; margin: 0; }
.kx-pages .pagination > .active > span, .kx-pages .pagination > .active > span:hover { background: var(--kx-text); color: #FFFFFF; }

/* Sell an account */
.kx-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kx-form-grid.kx-two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kx-form-grid .kx-span { grid-column: 1 / -1; }
.kx-form-grid select.kx-input { font-size: 17px; min-height: 48px; }
.kx-level-slider { margin-top: 14px; }
.kx-input.kx-readonly { background: var(--kx-soft); border-color: var(--kx-line-2); font-weight: 600; font-variant-numeric: tabular-nums; cursor: default; }
.kx-input.kx-readonly:focus { box-shadow: none; border-color: var(--kx-line); }
.kx-estimate { margin-top: 18px; border-top: 1px solid var(--kx-line); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between; }
.kx-estimate small { display: block; font-size: 13px; color: var(--kx-muted); }
.kx-estimate strong { display: block; font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kx-estimate .kx-info { margin: 0; flex: 1 1 260px; color: #7A4A00; }
.kx-err-text { color: var(--kx-red); }
.kx-pass { display: flex; gap: 8px; }
.kx-pass .kx-input { flex: 1; min-width: 0; }
.kx-pass .kx-btn.kx-edit { min-height: 46px; flex: none; }
.kx-submit-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.kx-submit-row .kx-btn { min-width: 240px; }
.kx .kx-link-plain { font-size: 15px; }
.kx-rules { border: 1px solid var(--kx-line); border-radius: 22px; padding: 28px; }
.kx-rules h2 { font-size: 19px; margin-bottom: 16px; }
.kx-rules ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.kx-rules li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.kx-rules li svg { flex: none; margin-top: 2px; }
.kx-rules b { font-weight: 600; }
.kx-rules li span span { color: var(--kx-muted); }
.kx-steps.kx-steps-lg li { background: var(--kx-white); border: 0; padding: 22px; }

@media (max-width: 820px) {
  /* My sales: each order becomes a compact block */
  .kx-sales thead { display: none; }
  .kx-sales, .kx-sales tbody, .kx-sales tr, .kx-sales td { display: block; width: 100%; }
  .kx-sale { padding: 14px 16px; }
  .kx-sale-row { display: grid !important; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .kx-sales td { padding: 0; }
  .kx-sales td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--kx-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
  .kx-sales td:nth-child(1), .kx-sales td:nth-child(2), .kx-sales td:nth-child(5) { grid-column: 1 / -1; }
  .kx-sales td:nth-child(6) { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  .kx-sales td:nth-child(6)::before { display: none !important; }
  .kx-sales .kx-r { text-align: left; }
  .kx-sales .kx-payout small { white-space: normal; }
  .kx-sales { table-layout: auto; }
  .kx-sale-extra td { padding-top: 12px; }
}
@media (max-width: 734px) {
  .kx-hero h1 { font-size: 40px; }
  .kx-hero .kx-lead { font-size: 18px; }
  .kx-big { font-size: 30px; }
  .kx-server-hero h1, .kx-account-head h1 { font-size: 36px; }
  .kx-card { padding: 20px; }
  .kx-panel { padding: 18px; }
  .kx-side { position: static; }
  .kx-pay strong { font-size: 32px; }
  .kx-estimate strong { font-size: 32px; }
  .kx-rules { padding: 20px; }
  .kx-submit-row .kx-btn { width: 100%; }
  .kx-band { padding: 48px 16px; }
  .kx-section { padding: 56px 16px 0; }
  .kx-wrap { padding-left: 16px; padding-right: 16px; }
  .kx-order { padding: 18px; }
  .kx-track li { font-size: 11px; line-height: 1.3; }
}

/* Kamas page, one column (phones, small tablets): step 1, step 2, step 3 (the form), then "how it works" and the security note */
@media (max-width: 980px) {
  #vendre.kx-grid { flex-direction: column; align-items: stretch; gap: 20px; }
  #vendre .kx-main { display: contents; }
  #vendre .kx-main > *, #vendre .kx-side { flex: none; width: 100%; order: 1; }
  #vendre .kx-side { order: 2; position: static; }
  #vendre .kx-main > .kx-after-form { order: 3; }
}

/* Server page, one column (phones, small tablets): the sell form first, then the chart, the figures and the rest */
@media (max-width: 980px) {
  #kx-server-grid.kx-grid { flex-direction: column; align-items: stretch; gap: 24px; }
  #kx-server-grid .kx-main { display: contents; }
  #kx-server-grid .kx-main > *, #kx-server-grid .kx-side { flex: none; width: 100%; order: 2; }
  #kx-server-grid .kx-side { order: 1; position: static; }
}

/* Account sale (1.5.18): game account fields in the estimate card, "Your sale" card with method + price */
.kx .kx-sub-h { margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--kx-line); font-size: 16px; font-weight: 600; }
.kx-form-grid .kx-pay { align-self: end; padding: 10px 16px; }
.kx-form-grid .kx-pay strong { font-size: 30px; }
.kx-payout-grid { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--kx-line-2); }
#kx-acc-form .kx-info[data-kx="paused"] { margin-top: 10px; color: #7A4A00; }
.kx-login.kx-login-in { margin-top: 18px; }
#kx-acc-form .kx-card .kx-captcha:not(:empty), #kx-acc-form .kx-card .kx-alert, #kx-acc-form .kx-card .kx-submit-row { margin-top: 18px; }

/* Hero with figures on the right (1.5.21): desktop only, phones keep the hero as it was */
.kx-hero-stats { display: none; }
@media (min-width: 901px) {
  .kx-hero-split { display: flex; align-items: center; gap: 32px; }
  .kx-hero-split .kx-hero-text { flex: 1 1 auto; min-width: 0; }
  .kx-hero-stats { flex: 0 0 300px; display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; text-align: left; }
  .kx-hero-stats li { background: rgba(255, 255, 255, .8); border-radius: 12px; padding: 12px 16px; display: flex; align-items: baseline; gap: 12px; }
  .kx-hero-stats b { flex: none; min-width: 92px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--kx-accent); }
  .kx-hero-stats span { font-size: 13px; line-height: 1.4; color: var(--kx-text-2); }
}
/* Game tabs on phones: one row */
@media (max-width: 600px) {
  .kx-card-head .kx-tabs { display: flex; flex-wrap: nowrap; width: 100%; }
  .kx-card-head .kx-tabs button { flex: 1 1 auto; padding: 0 6px; white-space: nowrap; font-size: 13px; }
}
@media (min-width: 901px) {
  .kx-hero-stats { flex-basis: 330px; }
  .kx-hero-stats li { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; gap: 10px; }
  .kx-hero-stats b { min-width: 0; font-size: 18px; white-space: nowrap; }
}
@media (max-width: 380px) {
  .kx-card-head .kx-tabs button { padding: 0 4px; font-size: 12px; }
}

/* My sales (1.5.27): title, "New sale" and the total in one block; sale type select next to the status filters */
.kx-account-top { margin-top: 10px; border: 1px solid var(--kx-line-2); border-radius: 18px; padding: 22px 24px; }
.kx-account-top .kx-account-head { margin-top: 0; }
.kx-account-top .kx-total { margin-top: 16px; padding: 16px 0 0; background: transparent; border-top: 1px solid var(--kx-line-2); border-radius: 0; }
.kx-filter-bar { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.kx-filter-bar .kx-filters { margin-top: 0; }
.kx-type { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--kx-text-2); }
.kx-type .kx-input { width: auto; min-width: 140px; min-height: 40px; }

/* 1.5.29 integrated trade-scam warning (My sales) */
.kx-shield-text { flex: 1; min-width: 0; }
.kx-shield-text p { margin: 0; }
.kx-shield-text .kx-trade-warn { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.08); font-size: 14px; line-height: 1.55; color: #3A3A3C; }
.kx-shield-text .kx-trade-warn strong { color: #B42318; }
