/* =====================================================================
   Arena storefront theme for InstantRefill, version 5
   Every selector is prefixed .ar- so the existing page styles (product
   forms, login, cookie bar) keep working inside the arena shell.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* surfaces */
  --ar-bg: #07111f;
  --ar-bg-2: #0b1830;
  --ar-surface: #10243f;
  --ar-surface-2: #16325a;
  --ar-surface-3: #1d3f6e;
  --ar-line: rgba(201, 212, 228, .10);
  --ar-line-2: rgba(201, 212, 228, .20);

  /* text: cream on navy */
  --ar-text: #f6f1e4;
  --ar-text-2: #c9d4e4;
  --ar-text-3: #8ea0b8;

  /* brand: gold on navy */
  --ar-accent: #d4b06a;
  --ar-accent-hover: #e6c98a;
  --ar-accent-text: #f0d48a;
  --ar-accent-soft: rgba(212, 176, 106, .16);
  --ar-accent-line: rgba(212, 176, 106, .45);
  --ar-on-accent: #10243f;
  --ar-price: #7ee0c8;
  --ar-success: #7ee0c8;
  --ar-warning: #fcd34d;
  --ar-info: #93c5fd;
  --ar-danger: #fca5a5;

  /* shape and motion */
  --ar-r-lg: 18px;
  --ar-r: 14px;
  --ar-r-sm: 10px;
  --ar-shadow: 0 10px 30px -12px rgba(0, 0, 0, .65);
  --ar-glow: 0 0 0 1px var(--ar-accent-line), 0 12px 30px -10px rgba(212, 176, 106, .35);
  --ar-ease: cubic-bezier(.2, .7, .2, 1);

  /* layout */
  --ar-max: 1280px;
  --ar-gutter: 24px;
  --ar-top-h: 72px;
  --ar-nav-h: 0px;
  --ar-tab-h: 84px;

  --ar-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ar-font-ar: "IBM Plex Sans Arabic", "Inter", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- 2. Base ---------- */
html.ar-html { background: var(--ar-bg); scroll-padding-top: calc(var(--ar-top-h) + var(--ar-nav-h) + 12px); }
html.ar-html body.ar-body {
  margin: 0;
  min-height: 100vh;
  font: 400 15px/1.55 var(--ar-font);
  color: var(--ar-text);
  background:
    radial-gradient(1000px 520px at 85% -12%, rgba(212, 176, 106, .14), transparent 62%),
    radial-gradient(800px 520px at -10% 25%, rgba(30, 74, 122, .35), transparent 60%),
    linear-gradient(180deg, var(--ar-bg) 0%, var(--ar-bg-2) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.ar-rtl body.ar-body { font-family: var(--ar-font-ar); }
.ar-body *, .ar-body *::before, .ar-body *::after { box-sizing: border-box; }
.ar-body img { max-width: 100%; }
.ar-body :where(a) { color: inherit; text-decoration: none; }
.ar-body [hidden] { display: none !important; }
.ar-body :where(h1, h2, h3) { color: var(--ar-text); margin: 0; letter-spacing: -.015em; line-height: 1.2; }
.ar-body :focus-visible { outline: 2px solid var(--ar-accent-text); outline-offset: 2px; border-radius: 8px; }
bdi[dir="ltr"] { unicode-bidi: isolate; }

.ar-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar-skip { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 200; background: var(--ar-accent); color: var(--ar-on-accent); padding: 10px 14px; border-radius: 10px; transform: translateY(-200%); }
.ar-skip:focus { transform: none; }
.ar-muted { color: var(--ar-text-2); margin: 0; }
.ar-small { font-size: 13px !important; }

.ar-container { width: 100%; max-width: var(--ar-max); margin: 0 auto; padding: 0 var(--ar-gutter); }

/* ---------- 3. Buttons and small controls ---------- */
.ar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: 600 14.5px/1 inherit; font-family: inherit; white-space: nowrap; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .12s var(--ar-ease), border-color .15s;
}
.ar-btn:active { transform: translateY(1px); }
.ar-btn--primary { color: var(--ar-on-accent) !important; background: var(--ar-accent); box-shadow: 0 8px 22px -10px rgba(212, 176, 106, .55); }
.ar-btn:disabled, .ar-btn.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.ar-btn--primary:hover { background: var(--ar-accent-hover); }
.ar-btn--ghost { color: var(--ar-text) !important; background: var(--ar-surface-2); border-color: var(--ar-line-2); }
.ar-btn--ghost:hover { background: var(--ar-surface-3); }
.ar-btn--quiet { color: var(--ar-text-2) !important; background: transparent; border-color: var(--ar-line-2); }
.ar-btn--quiet:hover { color: var(--ar-text) !important; border-color: var(--ar-text-3); }
.ar-btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.ar-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.ar-btn--block { width: 100%; }
.ar-btn[disabled], .ar-btn.is-disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.ar-icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--ar-line); background: var(--ar-surface); color: var(--ar-text-2);
  transition: color .15s, border-color .15s, background .15s;
}
.ar-icon-btn:hover { color: var(--ar-text); border-color: var(--ar-line-2); background: var(--ar-surface-2); }
.ar-icon-btn--sm { width: 32px; height: 32px; border-radius: 9px; }

.ar-link { color: var(--ar-accent-text); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.ar-link:hover { color: #fff6dc; text-decoration: underline; text-underline-offset: 3px; }

.ar-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ar-text-2); background: var(--ar-surface); border: 1px solid var(--ar-line); padding: 6px 12px; border-radius: 99px; }

.ar-status {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.ar-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ar-status--pending { color: var(--ar-warning); background: rgba(252, 211, 77, .12); }
.ar-status--info    { color: var(--ar-info); background: rgba(147, 197, 253, .12); }
.ar-status--success { color: var(--ar-success); background: rgba(94, 234, 212, .12); }
.ar-status--danger  { color: var(--ar-danger); background: rgba(252, 165, 165, .12); }
.ar-status--muted   { color: var(--ar-text-2); background: rgba(255, 255, 255, .07); }

.ar-chip-btn {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
  color: #f6f1e4 !important; background: var(--ar-accent-soft); border: 1px solid rgba(212, 176, 106, .35);
}
.ar-chip-btn:hover { background: rgba(212, 176, 106, .28); }
.ar-chip-btn--quiet { color: var(--ar-text-2) !important; background: transparent; border-color: var(--ar-line-2); }

.ar-fallback { display: inline-grid; place-items: center; flex: none; background: linear-gradient(135deg, #10243f, #1d3f6e); color: #f6f1e4; font-weight: 800; }

/* Inputs */
.ar-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ar-text-2); }
.ar-input, .ar-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .ar-form select, .ar-form textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  background: var(--ar-bg); border: 1px solid var(--ar-line-2); color: var(--ar-text);
  font: 500 15px inherit; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.ar-form textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.ar-input::placeholder, .ar-form input::placeholder, .ar-form textarea::placeholder { color: var(--ar-text-3); }
.ar-input:focus, .ar-form input:focus, .ar-form select:focus, .ar-form textarea:focus { outline: 0; border-color: var(--ar-accent-line); box-shadow: 0 0 0 4px var(--ar-accent-soft); }
.ar-form { display: grid; gap: 14px; }
.ar-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ar-text-2); }
.ar-form small { color: var(--ar-text-3); font-weight: 500; }
.ar-form .ar-btn { justify-self: start; }
.ar-check { display: flex !important; align-items: center; gap: 10px; font-size: 14px !important; font-weight: 500 !important; color: var(--ar-text) !important; cursor: pointer; min-height: 32px; }
.ar-check input[type="checkbox"] { width: 18px !important; height: 18px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; accent-color: var(--ar-accent); flex: none; }

/* Panels */
.ar-panel { background: var(--ar-surface); border: 1px solid var(--ar-line); border-radius: var(--ar-r); padding: 20px; }
.ar-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ar-panel__title { font-size: 17px !important; font-weight: 700; margin: 0 0 14px !important; }
.ar-panel__head .ar-panel__title { margin: 0 !important; }

.ar-flash { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: rgba(94, 234, 212, .1); border: 1px solid rgba(94, 234, 212, .3); color: #a7f3e4; font-weight: 600; }

/* ---------- 4. Header (single bar + pill nav) ---------- */
.ar-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 17, 31, .78); backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid var(--ar-line);
}
.ar-top__bar { display: flex; align-items: center; gap: 14px; height: var(--ar-top-h); }
.ar-logo { display: inline-flex; align-items: center; flex: none; color: var(--ar-text); text-decoration: none; }
.ar-logo__text { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 22px; letter-spacing: -0.04em; line-height: 1; color: var(--ar-text); }
.ar-logo__text .is-accent { color: var(--ar-accent); }
.ar-top__search { flex: 1; min-width: 160px; max-width: 460px; }
.ar-top .ar-search { height: 42px; border-radius: 999px; background: rgba(16, 36, 63, .72); }
.ar-top__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex: none; }
.ar-top__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 999px;
  color: var(--ar-text-2); font-weight: 600; font-size: 14px; border: 1px solid transparent;
}
.ar-top__link:hover, .ar-top__link.is-active { color: var(--ar-text); background: var(--ar-surface); border-color: var(--ar-line); }
.ar-top__actions .ar-btn { min-height: 42px; border-radius: 999px; }
.ar-top__mobile { display: none; }

.ar-nav {
  display: flex; align-items: center; gap: 2px; flex: none;
  padding: 4px; border-radius: 999px;
  background: rgba(16, 36, 63, .72); border: 1px solid var(--ar-line);
}
.ar-nav__link, .ar-nav__more summary {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px;
  color: var(--ar-text-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.ar-nav__link svg, .ar-nav__more summary svg { flex: none; }
.ar-nav__link:hover, .ar-nav__more summary:hover { color: var(--ar-text); background: rgba(246, 241, 228, .06); }
.ar-nav__link.is-active { color: var(--ar-on-accent); background: var(--ar-accent); }
.ar-nav__more { position: relative; }
.ar-nav__more summary { list-style: none; }
.ar-nav__more summary::-webkit-details-marker { display: none; }
.ar-nav__more[open] summary { color: var(--ar-text); background: rgba(246, 241, 228, .06); }
.ar-nav__more ul {
  position: absolute; inset-inline-start: 0; top: calc(100% + 10px); min-width: 180px; z-index: 60;
  list-style: none; margin: 0; padding: 6px; border-radius: 16px;
  background: var(--ar-surface-2); border: 1px solid var(--ar-line-2); box-shadow: var(--ar-shadow);
}
.ar-nav__more ul a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ar-text-2); font-size: 14px; font-weight: 600; }
.ar-nav__more ul a:hover, .ar-nav__more ul a.is-active { background: var(--ar-accent-soft); color: var(--ar-text); }

/* Language menu */
.ar-lang { position: relative; }
.ar-lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ar-text-2); font-size: 14px; font-weight: 600;
}
.ar-lang summary::-webkit-details-marker { display: none; }
.ar-lang summary:hover, .ar-lang[open] summary { color: var(--ar-text); background: var(--ar-surface); }
.ar-lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 170px; z-index: 60;
  list-style: none; margin: 0; padding: 6px; border-radius: 14px;
  background: var(--ar-surface-2); border: 1px solid var(--ar-line-2); box-shadow: var(--ar-shadow);
}
.ar-lang ul a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ar-text-2); font-size: 14px; }
.ar-lang ul a:hover, .ar-lang ul a.is-active { background: var(--ar-accent-soft); color: var(--ar-text); }

/* ---------- 5. Search (header, hero, overlay) ---------- */
.ar-finder { position: relative; }
.ar-search {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 14px;
  background: var(--ar-surface); border: 1px solid var(--ar-line-2); border-radius: 14px; color: var(--ar-text-3);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.ar-search:focus-within { border-color: var(--ar-accent-line); box-shadow: 0 0 0 4px var(--ar-accent-soft); background: var(--ar-surface-2); }
.ar-search input {
  flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0;
  color: var(--ar-text); font: 500 15px inherit; font-family: inherit;
}
.ar-search input::placeholder { color: var(--ar-text-3); }
.ar-search input::-webkit-search-cancel-button { filter: invert(.75); }
.ar-search__key { font: 600 12px var(--ar-font); color: var(--ar-text-3); border: 1px solid var(--ar-line-2); border-radius: 6px; padding: 2px 7px; }
.ar-search__close { display: none; }

.ar-results {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 70;
  list-style: none; margin: 0; padding: 8px; max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--ar-surface-2); border: 1px solid var(--ar-line-2); border-radius: 16px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8);
}
.ar-results a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: 12px; color: var(--ar-text); font-size: 15px; font-weight: 600; }
.ar-results a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-results a em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--ar-price); unicode-bidi: isolate; }
.ar-results a:hover, .ar-results a.is-active { background: var(--ar-accent-soft); }
.ar-results img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; background: var(--ar-surface-3); }
.ar-results__none { padding: 14px 12px; color: var(--ar-text-2); font-size: 14px; }
.ar-results__more a { justify-content: center; color: var(--ar-accent-text); font-size: 14px; min-height: 44px; }
.ar-results__head { padding: 8px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ar-text-3); }

/* ---------- 6. Main area ---------- */
.ar-main { padding: 28px 0 56px; min-height: 60vh; }
.ar-page { min-width: 0; }
.ar-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.ar-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ar-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ar-section__head h2 { font-size: 22px; font-weight: 800; }
.ar-section__head p { margin: 4px 0 0; color: var(--ar-text-2); font-size: 14.5px; }
.ar-section__count { display: inline-block; margin-inline-start: 8px; font-size: 13px; font-weight: 700; color: var(--ar-text-3); background: rgba(255, 255, 255, .06); padding: 2px 9px; border-radius: 99px; vertical-align: 3px; }
.ar-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 13.5px; color: var(--ar-text-3); }
.ar-crumbs a { color: var(--ar-text-2); }
.ar-crumbs a:hover { color: var(--ar-text); text-decoration: underline; }
.ar-page-title { display: grid; gap: 6px; }
.ar-page-title h1 { font-size: 30px; font-weight: 800; }

/* ---------- 7. Hero ---------- */
.ar-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 24px;
  padding: 40px 44px; border-radius: 24px;
  background:
    radial-gradient(520px 260px at 95% 10%, rgba(212, 176, 106, .28), transparent 70%),
    radial-gradient(420px 260px at 10% 120%, rgba(30, 74, 122, .45), transparent 70%),
    linear-gradient(125deg, #0c1c33 0%, #122a4a 55%, #1a3a62 100%);
  border: 1px solid rgba(212, 176, 106, .28);
}
.ar-hero h1 { font-size: 40px; font-weight: 800; line-height: 1.1; }
.ar-hero__lead { margin: 12px 0 22px; font-size: 17px; color: #d7e0ee; max-width: 520px; }
.ar-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ar-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.ar-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #f6f1e4; }
.ar-trust svg { color: var(--ar-price); flex: none; }
.ar-hero__art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; justify-self: end; width: min(100%, 420px); }
.ar-hero__art a { display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .8); transition: transform .25s var(--ar-ease); }
.ar-hero__art a:nth-child(3n+2) { transform: translateY(-14px); }
.ar-hero__art a:hover { transform: translateY(-4px) scale(1.03); }
.ar-hero__art img, .ar-hero__art .ar-fallback { width: 100%; height: 100%; object-fit: cover; display: block; font-size: 32px; }

/* ---------- 8. Game cards and grids ---------- */
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
/* Homepage grids: fixed columns so 12 items make two full rows */
.ar-grid--tight { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1180px) { .ar-grid--tight { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ar-grid--tight > :nth-child(n+5) { display: none; } }
a.ar-card { color: inherit; text-decoration: none; }
.ar-card {
  position: relative; display: flex; min-width: 0;
  border-radius: var(--ar-r); background: var(--ar-surface); border: 1px solid var(--ar-line);
  transition: transform .2s var(--ar-ease), box-shadow .2s, border-color .2s, background .2s;
}
.ar-card:hover, .ar-card:focus-within { transform: translateY(-3px); border-color: var(--ar-accent-line); box-shadow: var(--ar-glow); background: var(--ar-surface-2); }
.ar-card__link { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 8px; border-radius: inherit; }
.ar-card__link:focus-visible { outline-offset: -2px; }
.ar-card__media { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--ar-surface-2); }
.ar-card__media img, .ar-card__media .ar-fallback { width: 100%; height: 100%; object-fit: cover; display: grid; font-size: 40px; transition: transform .35s var(--ar-ease); }
.ar-card:hover .ar-card__media img { transform: scale(1.04); }
.ar-card__body { display: flex; flex-direction: column; flex: 1; gap: 2px; padding: 10px 4px 2px; min-width: 0; }
.ar-card__name {
  font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ar-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.ar-card__cat { display: none; font-size: 13px; color: var(--ar-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.ar-card__price { font-size: 16px; font-weight: 800; color: var(--ar-price); white-space: nowrap; line-height: 1.2; }
.ar-card__price small { display: block; font-size: 12px; font-weight: 600; color: var(--ar-text-3); }
.ar-card__price--none { font-size: 14px; font-weight: 700; color: var(--ar-text-2); }
.ar-card__go {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
  color: var(--ar-text-2); background: var(--ar-surface-2); border: 1px solid var(--ar-line);
  transition: background .2s, color .2s, border-color .2s;
}
.ar-card:hover .ar-card__go { color: #fff; background: var(--ar-accent); border-color: var(--ar-accent); }

/* Favorite star */
.ar-fav {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(8, 10, 28, .62); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .15s var(--ar-ease), background .15s, color .15s;
}
.ar-fav svg { fill: none; }
.ar-fav:hover { background: rgba(8, 10, 28, .85); transform: scale(1.06); }
.ar-fav.is-on { color: #fcd34d; border-color: rgba(252, 211, 77, .5); }
.ar-fav.is-on svg { fill: currentColor; }
.ar-fav.is-pop { animation: ar-pop .3s var(--ar-ease); }
@keyframes ar-pop { 50% { transform: scale(1.25); } }

/* List view */
.ar-grid.is-list { grid-template-columns: minmax(0, 1fr) !important; gap: 8px; }
.ar-grid.is-list .ar-card:hover { transform: none; }
.ar-grid.is-list .ar-card__link { flex-direction: row; align-items: center; gap: 14px; padding: 10px 60px 10px 12px; }
.ar-rtl .ar-grid.is-list .ar-card__link { padding: 10px 12px 10px 60px; }
.ar-grid.is-list .ar-card__media { width: 56px; height: 56px; flex: none; aspect-ratio: auto; }
.ar-grid.is-list .ar-card__media .ar-fallback { font-size: 22px; }
.ar-grid.is-list .ar-card__body { flex-direction: row; align-items: center; padding: 0; gap: 16px; }
.ar-grid.is-list .ar-card__name { flex: 1; -webkit-line-clamp: 1; }
.ar-grid.is-list .ar-card__cat { display: block; width: 170px; flex: none; }
.ar-grid.is-list .ar-card__foot { margin: 0; padding: 0; gap: 16px; }
.ar-grid.is-list .ar-fav { top: 50%; margin-top: -18px; inset-inline-end: 12px; }

/* Category tiles */
.ar-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ar-cat {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: var(--ar-r);
  background: var(--ar-surface); border: 1px solid var(--ar-line); transition: border-color .2s, background .2s, transform .2s var(--ar-ease);
}
.ar-cat:hover { border-color: var(--ar-accent-line); background: var(--ar-surface-2); transform: translateY(-2px); }
.ar-cat__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none; overflow: hidden; color: #f6f1e4; background: linear-gradient(135deg, rgba(212, 176, 106, .35), rgba(30, 74, 122, .35)); }
.ar-cat__icon img { width: 100%; height: 100%; object-fit: cover; }
.ar-cat__text { display: grid; min-width: 0; }
.ar-cat__text strong { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-cat__text span { font-size: 13.5px; color: var(--ar-text-3); }

/* Category tabs, toolbar */
.ar-toolbar {
  position: sticky; top: calc(var(--ar-top-h) + var(--ar-nav-h)); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 calc(var(--ar-gutter) * -1); padding: 12px var(--ar-gutter);
  background: rgba(7, 17, 31, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ar-line);
}
.ar-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.ar-tabs::-webkit-scrollbar { display: none; }
.ar-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 99px; cursor: pointer; text-decoration: none;
  font: 600 14px inherit; font-family: inherit; color: var(--ar-text-2); background: var(--ar-surface); border: 1px solid var(--ar-line);
}
.ar-tab span { font-size: 12.5px; color: var(--ar-text-3); }
.ar-tab:hover { color: var(--ar-text); border-color: var(--ar-line-2); }
.ar-tab.is-active { color: var(--ar-on-accent); background: var(--ar-accent); border-color: var(--ar-accent); }
.ar-tab.is-active span { color: #3d3120; }
.ar-toolbar__right { display: flex; align-items: center; gap: 8px; flex: none; }
.ar-select select {
  min-height: 40px; padding: 0 34px 0 12px; border-radius: 10px; cursor: pointer;
  font: 600 14px inherit; font-family: inherit; color: var(--ar-text);
  background: var(--ar-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23c0c4e6' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--ar-line-2); -webkit-appearance: none; appearance: none;
}
.ar-rtl .ar-select select { padding: 0 12px 0 34px; background-position: left 12px center; }
.ar-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--ar-surface); border: 1px solid var(--ar-line-2); }
.ar-seg button { display: grid; place-items: center; width: 38px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--ar-text-3); cursor: pointer; }
.ar-seg button:hover { color: var(--ar-text); }
.ar-seg button.is-active { background: var(--ar-surface-3); color: #fff; }
.ar-grid__empty { margin: 0; padding: 48px 16px; text-align: center; color: var(--ar-text-2); font-size: 15px; border: 1px dashed var(--ar-line-2); border-radius: var(--ar-r); }

/* Continue section (returning visitors) */
.ar-continue { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ar-quick {
  display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px; border-radius: var(--ar-r);
  background: var(--ar-surface); border: 1px solid var(--ar-line); transition: border-color .2s, background .2s;
}
.ar-quick:hover { border-color: var(--ar-accent-line); background: var(--ar-surface-2); }
.ar-quick img, .ar-quick .ar-fallback { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; font-size: 18px; }
.ar-quick__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ar-quick__text strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-quick__text small { font-size: 13px; color: var(--ar-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.ar-quick__go { font-size: 13.5px; font-weight: 700; color: var(--ar-accent-text); white-space: nowrap; }

/* How it works strip */
.ar-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.ar-steps li { position: relative; padding: 20px; border-radius: var(--ar-r); background: var(--ar-surface); border: 1px solid var(--ar-line); counter-increment: step; }
.ar-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px;
  font-weight: 800; color: #fff; background: var(--ar-accent);
}
.ar-steps strong { display: block; font-size: 16px; margin-bottom: 4px; }
.ar-steps span { font-size: 14px; color: var(--ar-text-2); line-height: 1.5; }

/* ---------- 9. Product checkout panel ---------- */
.ar-buy { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-bottom: 32px; }
.ar-buy__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.ar-buy__head { display: flex; align-items: center; gap: 20px; }
.ar-buy__img { width: 112px; height: 112px; border-radius: 22px; object-fit: cover; flex: none; border: 1px solid var(--ar-line-2); box-shadow: var(--ar-shadow); }
.ar-buy__head .ar-fallback { width: 112px; height: 112px; border-radius: 22px; font-size: 44px; }
.ar-buy__title { display: grid; gap: 8px; min-width: 0; }
.ar-buy__title h1 { font-size: 30px; font-weight: 800; }
.ar-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ar-text-2); background: var(--ar-surface); border: 1px solid var(--ar-line); }
.ar-badge svg { color: var(--ar-price); }

.ar-step { padding: 20px; border-radius: var(--ar-r-lg); background: var(--ar-surface); border: 1px solid var(--ar-line); }
.ar-step__title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 18px; font-weight: 800; }
.ar-step__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 14px; font-weight: 800; color: #fff; background: var(--ar-accent); flex: none; }
.ar-step__title small { margin-inline-start: auto; font-size: 13px; font-weight: 600; color: var(--ar-text-3); }

.ar-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ar-pack {
  position: relative; display: grid; gap: 4px; padding: 16px 14px 14px; min-height: 84px; border-radius: 14px; cursor: pointer; text-align: start;
  background: var(--ar-bg); border: 1.5px solid var(--ar-line-2); color: var(--ar-text); font: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .12s var(--ar-ease);
}
.ar-pack:hover { border-color: var(--ar-text-3); }
.ar-pack.is-selected { border-color: var(--ar-accent-text); background: rgba(212, 176, 106, .14); box-shadow: 0 0 0 3px var(--ar-accent-soft); }
.ar-pack__name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.ar-pack__price { font-size: 17px; font-weight: 800; color: var(--ar-price); }
.ar-pack__unit { font-size: 12.5px; color: var(--ar-text-3); }
.ar-pack__check { position: absolute; top: 10px; inset-inline-end: 10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ar-line-2); }
.ar-pack.is-selected .ar-pack__check { border-color: var(--ar-accent-text); background: var(--ar-accent-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2310243f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.ar-best {
  position: absolute; top: -11px; inset-inline-start: 12px; z-index: 2;
  padding: 3px 10px; border-radius: 99px; font: 800 11.5px/1.4 var(--ar-font); letter-spacing: .02em;
  color: #053b35; background: linear-gradient(135deg, #5eead4, #a7f3d0); box-shadow: 0 6px 14px -6px rgba(94, 234, 212, .8);
  pointer-events: none; white-space: nowrap;
}
.ar-rtl .ar-best { font-family: var(--ar-font-ar); }

.ar-idfield { display: grid; gap: 12px; }
.ar-idfield .ar-input { min-height: 52px; font-size: 16px; }
.ar-idfield.has-error .ar-input { border-color: var(--ar-danger); box-shadow: 0 0 0 4px rgba(252, 165, 165, .15); }
.ar-idfield__error { margin: 0; color: var(--ar-danger); font-size: 14px; font-weight: 600; }
.ar-help { margin: 0; font-size: 13.5px; color: var(--ar-text-3); }
.ar-ids { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: inherit; }
.ar-ids__label { width: 100%; font-size: 12.5px; font-weight: 700; color: var(--ar-text-3); text-transform: uppercase; letter-spacing: .06em; }
.ar-id-chip {
  min-height: 38px; padding: 0 14px; border-radius: 99px; cursor: pointer; unicode-bidi: plaintext;
  font: 600 14px inherit; font-family: inherit; color: #f6f1e4; background: var(--ar-accent-soft); border: 1px solid rgba(212, 176, 106, .35);
}
.ar-id-chip:hover, .ar-id-chip.is-active { background: rgba(212, 176, 106, .32); border-color: var(--ar-accent-text); }
.ar-ids__hint { font-size: 14px; color: var(--ar-accent-text) !important; font-weight: 600; }

.ar-more { border-top: 1px solid var(--ar-line); padding-top: 14px; margin-top: 4px; }
.ar-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; font-weight: 700; color: var(--ar-accent-text); }
.ar-more > summary::-webkit-details-marker { display: none; }
.ar-more > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.ar-more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.ar-batch { display: grid; gap: 10px; margin-top: 10px; }
.ar-batch textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }
.ar-batch__ids { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-batch__id { padding: 4px 10px; border-radius: 8px; font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ar-text-2); background: var(--ar-bg); border: 1px solid var(--ar-line); unicode-bidi: plaintext; }
.ar-batch__id.is-done { color: var(--ar-text-3); text-decoration: line-through; }
.ar-batch__id.is-now { color: #fff; border-color: var(--ar-accent-text); background: var(--ar-accent-soft); }
.ar-batch__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.ar-summary { position: sticky; top: calc(var(--ar-top-h) + var(--ar-nav-h) + 20px); display: grid; gap: 16px; padding: 20px; border-radius: var(--ar-r-lg); background: var(--ar-surface); border: 1px solid var(--ar-line-2); box-shadow: var(--ar-shadow); }
.ar-summary h2 { font-size: 18px; font-weight: 800; }
.ar-summary dl { margin: 0; display: grid; gap: 10px; }
.ar-summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.ar-summary dt { color: var(--ar-text-2); }
.ar-summary dd { margin: 0; font-weight: 700; text-align: end; min-width: 0; overflow-wrap: anywhere; }
.ar-summary__total { padding-top: 12px; border-top: 1px solid var(--ar-line); font-size: 16px !important; }
.ar-summary__total dd { font-size: 22px; color: var(--ar-price); }
.ar-summary__note { margin: 0; font-size: 13px; color: var(--ar-text-3); text-align: center; }
.ar-qty { display: inline-flex; align-items: center; border: 1px solid var(--ar-line-2); border-radius: 10px; overflow: hidden; }
.ar-qty button { width: 36px; height: 36px; border: 0; background: var(--ar-surface-2); color: var(--ar-text); font-size: 18px; cursor: pointer; }
.ar-qty button:hover { background: var(--ar-surface-3); }
.ar-qty input { width: 8.5rem; height: 36px; border: 0; text-align: center; background: var(--ar-bg); color: var(--ar-text); font: 700 15px inherit; font-family: inherit; -moz-appearance: textfield; }
.ar-qty-list { min-height: 36px; min-width: 8.5rem; padding: 0 10px; border-radius: 10px; border: 1px solid var(--ar-line-2); background: var(--ar-bg); color: var(--ar-text); font: 700 15px inherit; }
.ar-qty-fixed { font-weight: 700; }
.ar-qty-hint { display: block; margin-top: 6px; color: var(--ar-text-3); font-size: 12px; font-weight: 600; }
.ar-qty input::-webkit-outer-spin-button, .ar-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ar-assure { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--ar-line); display: grid; gap: 8px; }
.ar-assure li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ar-text-2); }
.ar-assure svg { color: var(--ar-price); flex: none; }

/* When the arena panel drives the page, the old purchase block is hidden */
/* Visually removed but still working, so pop-ups opened by the original
   checkout (payment, confirmation) still appear. */
.ar-page { position: relative; }
.ar-buy-ready .ar-legacy-buy {
  position: absolute !important; top: 0 !important; inset-inline-start: 0 !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; min-height: 0 !important;
}

/* Mobile summary bar */
.ar-buybar { display: none; }

@keyframes ar-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ar-shake { animation: ar-shake .35s ease 2; }

/* ---------- 10. Account, track order, admin ---------- */
.ar-account { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ar-welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px; border-radius: 22px;
  background: radial-gradient(520px 220px at 100% 0%, rgba(212, 176, 106, .24), transparent 70%), linear-gradient(120deg, #0c1c33, #1a3a62);
  border: 1px solid rgba(212, 176, 106, .28);
}
.ar-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ar-accent-text); }
.ar-welcome h1 { font-size: 28px; font-weight: 800; }
.ar-welcome__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ar-balance { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .12); font-weight: 800; font-size: 18px; color: var(--ar-price); }
.ar-balance small { font-size: 13px; font-weight: 600; color: #d7e0ee; }
.ar-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ar-stat { padding: 18px; border-radius: var(--ar-r); background: var(--ar-surface); border: 1px solid var(--ar-line); display: grid; gap: 4px; }
.ar-stat span { font-size: 14px; color: var(--ar-text-2); }
.ar-stat strong { font-size: 26px; font-weight: 800; }
.ar-stat strong.is-live { color: var(--ar-warning); }
.ar-account__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.ar-account__side { display: grid; gap: 16px; }
.ar-order-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ar-order { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 14px 0; border-top: 1px solid var(--ar-line); }
.ar-order:first-child { border-top: 0; padding-top: 0; }
.ar-order__img, .ar-order .ar-fallback { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; grid-row: span 2; }
.ar-order__main { min-width: 0; display: grid; gap: 2px; }
.ar-order__main strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-order__pack { color: var(--ar-text-2); font-weight: 500; }
.ar-order__meta { font-size: 13px; color: var(--ar-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; text-align: start; }
.ar-order__side { display: grid; justify-items: end; gap: 6px; }
.ar-order__amount { font-weight: 800; font-size: 15px; }
.ar-order__actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.ar-empty { display: grid; justify-items: start; gap: 14px; padding: 6px 0; color: var(--ar-text-2); }
.ar-empty p { margin: 0; }
.ar-saved { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.ar-saved li { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: 12px; }
.ar-saved li:hover { background: var(--ar-surface-2); }
.ar-saved img, .ar-saved .ar-fallback { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; }
.ar-saved__text { flex: 1; min-width: 0; display: grid; }
.ar-saved__text strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-saved__text span { font-size: 13px; color: var(--ar-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-saved code { font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: #d7dcff; background: none; padding: 0; unicode-bidi: plaintext; }
.ar-inline-form { margin: 0; }
.ar-add > summary { cursor: pointer; list-style: none; min-height: 36px; display: inline-flex; align-items: center; color: var(--ar-accent-text); font-weight: 700; font-size: 14px; }
.ar-add > summary::-webkit-details-marker { display: none; }
.ar-add > summary::before { content: "+"; margin-inline-end: 6px; font-size: 18px; }
.ar-add[open] > summary { margin-bottom: 12px; }
.ar-links { list-style: none; margin: 0; padding: 0; display: grid; }
.ar-links a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 10px; margin: 0 -10px; border-radius: 10px; font-weight: 600; color: var(--ar-text-2); }
.ar-links a:hover { background: var(--ar-surface-2); color: var(--ar-text); }
.ar-links svg { color: var(--ar-text-3); }

.ar-track { max-width: 680px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ar-track h1 { font-size: 30px; font-weight: 800; }
.ar-track__form { display: flex; gap: 10px; }
.ar-search--lg { flex: 1 1 auto; height: 52px; min-height: 52px; }
.ar-track__none { display: grid; gap: 4px; }
.ar-track__none span { color: var(--ar-text-2); font-size: 14px; }
.ar-track__card { display: grid; gap: 20px; }
.ar-track__head { display: flex; align-items: center; gap: 14px; }
.ar-track__head img, .ar-track__head .ar-fallback { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; }
.ar-track__head div { flex: 1; min-width: 0; display: grid; }
.ar-track__head strong { font-size: 18px; }
.ar-track__head div span { color: var(--ar-text-2); font-size: 14px; }
.ar-track__stopped { margin: 0; color: var(--ar-text-2); }
.ar-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.ar-progress li { position: relative; display: grid; justify-items: center; gap: 10px; font-size: 14px; color: var(--ar-text-3); text-align: center; }
.ar-progress li span { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--ar-surface-3); border: 4px solid var(--ar-surface); box-shadow: 0 0 0 1px var(--ar-line-2); }
.ar-progress li::before { content: ""; position: absolute; top: 9px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--ar-surface-3); }
.ar-progress li:first-child::before { display: none; }
.ar-progress li.is-done { color: var(--ar-text); font-weight: 700; }
.ar-progress li.is-done span { background: var(--ar-accent-text); box-shadow: 0 0 0 1px var(--ar-accent-text), 0 0 14px rgba(212, 176, 106, .55); }
.ar-progress li.is-done::before { background: var(--ar-accent-text); }
.ar-track__facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ar-track__facts div { padding: 12px 14px; border-radius: 12px; background: var(--ar-bg); border: 1px solid var(--ar-line); }
.ar-track__facts dt { font-size: 13px; color: var(--ar-text-3); }
.ar-track__facts dd { margin: 4px 0 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; }
.ar-track .ar-btn { justify-self: start; }
.ar-live { margin: 0; font-size: 13px; color: var(--ar-text-3); }
.ar-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ar-success); margin-inline-end: 8px; vertical-align: 1px; animation: ar-pulse 2s infinite; }
@keyframes ar-pulse { 50% { opacity: .3; } }
.ar-copy { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--ar-line-2); background: transparent; color: var(--ar-text-3); cursor: pointer; }
.ar-copy:hover { color: var(--ar-text); }

.ar-admin { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ar-admin h1 { font-size: 28px; font-weight: 800; }
.ar-admin__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ar-admin__save { grid-column: 1 / -1; position: sticky; bottom: 16px; z-index: 5; }
.ar-pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: pick; }
.ar-pick-list li { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--ar-bg); border: 1px solid var(--ar-line); counter-increment: pick; }
.ar-pick-list li::before { content: counter(pick); font-size: 12px; font-weight: 800; color: var(--ar-text-3); width: 18px; }
.ar-pick-list li span { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ar-table th { text-align: start; font-size: 12px; font-weight: 800; color: var(--ar-text-3); text-transform: uppercase; letter-spacing: .06em; padding: 10px 8px; border-bottom: 1px solid var(--ar-line); }
.ar-table td { padding: 12px 8px; border-bottom: 1px solid var(--ar-line); }
.ar-table td:nth-child(2) { font-weight: 800; color: var(--ar-warning); }

/* ---------- 11. Footer ---------- */
.ar-footer { margin-top: 24px; border-top: 1px solid var(--ar-line); background: rgba(8, 9, 24, .5); }
.ar-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 40px 0 28px; }
.ar-footer__brand { display: grid; gap: 12px; align-content: start; }
.ar-footer__brand .ar-logo__text { font-size: 24px; }
.ar-footer__brand p { margin: 0; color: var(--ar-text-2); font-size: 14.5px; max-width: 320px; }
.ar-footer h3 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ar-text-3); margin: 0 0 12px; }
.ar-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ar-footer ul a { display: inline-flex; min-height: 34px; align-items: center; color: var(--ar-text-2); font-size: 14.5px; }
.ar-footer ul a:hover { color: var(--ar-text); }
.ar-footer__bottom { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; border-top: 1px solid var(--ar-line); color: var(--ar-text-3); font-size: 13.5px; }

/* ---------- 12. Mobile tab bar, sheet, search overlay, toast ---------- */
.ar-tabbar { display: none; }
.ar-sheet, .ar-scrim { display: none; }
.ar-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 18px; border-radius: 12px; background: #f2f3ff; color: #14183a; font-weight: 700; font-size: 14px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); transition: opacity .2s, transform .2s var(--ar-ease); pointer-events: none;
}
.ar-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1100px) {
  .ar-hero { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .ar-hero__art { display: none; }
  .ar-buy { grid-template-columns: minmax(0, 1fr) 320px; }
  .ar-account__grid { grid-template-columns: minmax(0, 1fr); }
  .ar-account__side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .ar-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .ar-nav__label, .ar-top__link span, .ar-lang summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ar-nav__link, .ar-nav__more summary { padding: 0 10px; }
  .ar-top__link, .ar-lang summary { padding: 0 10px; }
}

@media (max-width: 860px) {
  :root { --ar-gutter: 16px; --ar-top-h: 60px; --ar-nav-h: 0px; }
  .ar-nav, .ar-top__actions, .ar-top__search { display: none; }
  .ar-top__bar { gap: 10px; }
  .ar-logo__text { font-size: 18px; }
  .ar-top__mobile { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
  .ar-main { padding: 20px 0 calc(var(--ar-tab-h) + 32px); }
  .ar-stack { gap: 32px; }

  /* floating bottom dock */
  .ar-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 60;
    inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    height: 64px; padding: 6px; border-radius: 22px;
    background: rgba(16, 36, 63, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--ar-line-2); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .75);
  }
  .ar-tabbar a, .ar-tabbar button {
    display: grid; place-items: center; align-content: center; gap: 2px; border: 0; background: none; cursor: pointer;
    color: var(--ar-text-3); font: 600 11px inherit; font-family: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding: 0 2px;
    border-radius: 16px;
  }
  .ar-tabbar svg { width: 22px; height: 22px; }
  .ar-tabbar .is-active { color: var(--ar-on-accent); background: var(--ar-accent); }
  .ar-tabbar .is-active svg { color: var(--ar-on-accent); }

  /* full-screen search */
  body.ar-search-open { overflow: hidden; }
  body.ar-search-open .ar-top__search {
    display: block; position: fixed; inset: 0; z-index: 120; max-width: none; padding: 12px 16px;
    background: var(--ar-bg);
  }
  body.ar-search-open .ar-top__search .ar-search { height: 52px; }
  body.ar-search-open .ar-search__close { display: inline-grid; }
  body.ar-search-open .ar-search__key { display: none; }
  body.ar-search-open .ar-results { position: static; margin-top: 12px; max-height: calc(100vh - 100px); border: 0; box-shadow: none; background: transparent; padding: 0; }

  /* more sheet */
  .ar-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(4, 5, 16, .6); }
  body.ar-sheet-open .ar-scrim { display: block; }
  .ar-sheet {
    display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 100; max-height: 85vh; overflow-y: auto;
    padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0;
    background: var(--ar-surface); border-top: 1px solid var(--ar-line-2); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .8);
    transform: translateY(105%); transition: transform .25s var(--ar-ease); visibility: hidden;
  }
  body.ar-sheet-open .ar-sheet { transform: none; visibility: visible; }
  body.ar-sheet-open { overflow: hidden; }
  .ar-sheet__grip { width: 44px; height: 5px; border-radius: 3px; background: var(--ar-line-2); margin: 0 auto 14px; }
  .ar-sheet h2 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ar-text-3); margin: 14px 4px 6px; }
  .ar-sheet a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 12px; border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--ar-text); }
  .ar-sheet a:hover, .ar-sheet a.is-active { background: var(--ar-surface-2); }

  .ar-hero { padding: 24px 20px; border-radius: 20px; }
  .ar-hero h1 { font-size: 28px; }
  .ar-hero__lead { font-size: 15.5px; margin-bottom: 18px; }
  .ar-hero__cta .ar-btn { flex: 1; }
  .ar-trust { gap: 8px 14px; }
  .ar-trust li { font-size: 13px; }
  .ar-section__head h2 { font-size: 19px; }
  .ar-grid, .ar-grid--tight { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ar-grid--tight > :nth-child(n+5) { display: none; }
  .ar-card__name { font-size: 14.5px; }
  .ar-card__go { width: 30px; height: 30px; }
  .ar-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ar-cat { min-height: 64px; padding: 12px; gap: 10px; }
  .ar-cat__icon { width: 38px; height: 38px; }
  .ar-cat__text strong { font-size: 14.5px; }
  .ar-steps { grid-template-columns: minmax(0, 1fr); }
  .ar-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 16px; }
  .ar-steps li::before { margin: 0; grid-row: span 2; }

  .ar-toolbar { top: var(--ar-top-h); }
  .ar-toolbar__right { width: 100%; justify-content: space-between; }
  .ar-grid.is-list .ar-card__body { grid-template-columns: minmax(0, 1fr) auto; }
  .ar-grid.is-list .ar-card__cat { display: none; }
  .ar-page-title h1 { font-size: 24px; }

  /* product */
  .ar-buy { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ar-buy__head { gap: 14px; }
  .ar-buy__img, .ar-buy__head .ar-fallback { width: 80px; height: 80px; border-radius: 18px; font-size: 32px; }
  .ar-buy__title h1 { font-size: 23px; }
  .ar-step { padding: 16px; }
  .ar-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ar-summary { position: static; box-shadow: none; }
  body.ar-has-buybar .ar-tabbar { display: none; }
  .ar-buybar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 65; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(18, 21, 48, .97); border-top: 1px solid var(--ar-line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: transform .2s var(--ar-ease);
  }
  .ar-buybar.is-hidden { transform: translateY(110%); }
  .ar-buybar__info { flex: 1; min-width: 0; display: grid; }
  .ar-buybar__info strong { font-size: 13px; color: var(--ar-text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ar-buybar__info span { font-size: 18px; color: var(--ar-price); font-weight: 800; }
  .ar-buybar .ar-btn { min-width: 132px; }
  body.ar-has-buybar .ar-main { padding-bottom: 110px; }

  .ar-welcome { padding: 20px; }
  .ar-welcome h1 { font-size: 22px; }
  .ar-welcome__actions { width: 100%; }
  .ar-welcome__actions .ar-btn { flex: 1; }
  .ar-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-stat strong { font-size: 22px; }
  .ar-order { grid-template-columns: 44px minmax(0, 1fr); align-items: start; }
  .ar-order__img, .ar-order .ar-fallback { width: 44px; height: 44px; grid-row: auto; }
  .ar-order__main strong { white-space: normal; }
  .ar-order__meta { white-space: normal; }
  .ar-order__side { grid-column: 2; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .ar-order__actions { grid-column: 2; }
  .ar-track__form { flex-direction: column; }
  .ar-track h1 { font-size: 24px; }
  .ar-admin__grid { grid-template-columns: minmax(0, 1fr); }
  .ar-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 0 16px; }
  .ar-footer__bottom { flex-direction: column; }
  .ar-toast { bottom: calc(var(--ar-tab-h) + 16px); }
}


/* ================= v6 components ================= */
.ar-seg--text { padding: 3px; }
.ar-seg--text button, .ar-seg--text a {
  width: auto; height: auto; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px;
  font: 600 14px inherit; font-family: inherit; color: var(--ar-text-2); border-radius: 9px;
}
.ar-seg--text .is-active { background: var(--ar-surface-3); color: #fff; }
.ar-seg--text button:hover, .ar-seg--text a:hover { color: var(--ar-text); }
[data-ar-for] { margin: -4px 0 14px; }

.ar-buy__titlerow { display: flex; align-items: center; gap: 12px; }
.ar-fav--inline { position: static; flex: none; width: 40px; height: 40px; background: var(--ar-surface); border-color: var(--ar-line-2); color: var(--ar-text-2); }
.ar-fav--inline.is-on { color: #fcd34d; }
.ar-badge--link:hover { border-color: var(--ar-line-2); color: var(--ar-text); }
.ar-badge--ok { color: var(--ar-success); border-color: rgba(94, 234, 212, .3); background: rgba(94, 234, 212, .08); height: 24px; font-size: 12px; }

.ar-pack.is-out { opacity: .55; cursor: not-allowed; border-style: dashed; }
.ar-pack.is-out:hover { border-color: var(--ar-line-2); }
.ar-pack.is-out .ar-pack__price { color: var(--ar-text-3); text-decoration: line-through; }
.ar-pack__out { font-size: 12.5px; font-weight: 700; color: var(--ar-danger); }

.ar-gift { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--ar-bg); border: 1px dashed var(--ar-accent-line); }

/* Modal */
.ar-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; }
.ar-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 5, 16, .7); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ar-modal__box {
  position: relative; width: min(100%, 460px); max-height: calc(100vh - 32px); overflow-y: auto;
  display: grid; gap: 16px; padding: 24px; border-radius: 20px;
  background: var(--ar-surface); border: 1px solid var(--ar-line-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
  animation: ar-rise .2s var(--ar-ease);
}
.ar-modal__box:focus { outline: none; }
@keyframes ar-rise { from { transform: translateY(12px); opacity: 0; } }
.ar-modal__box h2 { font-size: 20px; font-weight: 800; }
.ar-modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.ar-modal__actions .ar-btn { flex: 1 1 140px; }
.ar-confirm { margin: 0; display: grid; gap: 0; border-radius: 14px; background: var(--ar-bg); border: 1px solid var(--ar-line); overflow: hidden; }
.ar-confirm div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--ar-line); font-size: 15px; }
.ar-confirm div:first-child { border-top: 0; }
.ar-confirm dt { color: var(--ar-text-2); }
.ar-confirm dd { margin: 0; font-weight: 700; text-align: end; overflow-wrap: anywhere; min-width: 0; }
.ar-confirm__id dd { font-size: 18px; letter-spacing: .02em; color: #fff; }
.ar-confirm__total dd { font-size: 20px; color: var(--ar-price); }
.ar-name-ok { color: var(--ar-success); }
.ar-name-bad { color: var(--ar-warning); font-weight: 600; }
.ar-warn { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--ar-warning); background: rgba(252, 211, 77, .1); border: 1px solid rgba(252, 211, 77, .35); }
.ar-warn svg { flex: none; margin-top: 1px; }
.ar-warn div { display: grid; gap: 2px; }
.ar-warn strong { color: #fde68a; }
.ar-warn span { color: var(--ar-text-2); font-size: 14px; }
body.ar-modal-open { overflow: hidden; }

/* Reviews */
.ar-extras { margin-top: 40px; }
.ar-reviews { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.ar-reviews__summary { display: grid; gap: 16px; }
.ar-reviews__score { display: grid; gap: 4px; }
.ar-reviews__score strong { font-size: 40px; font-weight: 800; line-height: 1; }
.ar-reviews__score > span:last-child { color: var(--ar-text-2); font-size: 14px; }
.ar-stars { display: inline-flex; gap: 2px; color: var(--ar-surface-3); }
.ar-stars .is-on { color: #fcd34d; }
.ar-stars svg { display: block; }
.ar-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ar-bars li { display: grid; grid-template-columns: 14px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: 13px; color: var(--ar-text-2); }
.ar-bars__track { height: 8px; border-radius: 4px; background: var(--ar-surface-3); overflow: hidden; }
.ar-bars__track span { display: block; height: 100%; border-radius: 4px; background: #fcd34d; }
.ar-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ar-review { padding: 16px 18px; border-radius: var(--ar-r); background: var(--ar-surface); border: 1px solid var(--ar-line); display: grid; gap: 8px; }
.ar-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ar-review__date { margin-inline-start: auto; font-size: 13px; color: var(--ar-text-3); }
.ar-review p { margin: 0; color: var(--ar-text); overflow-wrap: anywhere; }
.ar-rate { border: 0; margin: 0; padding: 0; min-width: 0; }
.ar-rate legend { padding: 0; font-size: 14px; font-weight: 600; color: var(--ar-text-2); margin-bottom: 6px; }
.ar-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.ar-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ar-rate label { display: grid !important; place-items: center; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: var(--ar-surface-3); }
.ar-rate label svg { width: 26px; height: 26px; }
.ar-rate label:hover, .ar-rate label:hover ~ label, .ar-rate input:checked ~ label { color: #fcd34d; }
.ar-rate input:focus-visible + label { outline: 2px solid var(--ar-accent-text); }

/* Invite + copy */
.ar-ref { display: grid; gap: 12px; }
.ar-ref .ar-panel__title { margin: 0 !important; }
.ar-copyfield { display: flex; gap: 8px; }
.ar-copyfield .ar-input { min-height: 44px; font-size: 14px; }
.ar-ref__share { display: flex; flex-wrap: wrap; gap: 8px; }

/* Dashboard */
.ar-dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ar-dash__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ar-stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ar-stat small { font-size: 12.5px; color: var(--ar-text-3); }
.ar-chart__plot { position: relative; }
.ar-chart svg { display: block; width: 100%; height: 240px; overflow: visible; }
.ar-chart__grid { stroke: var(--ar-line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ar-chart__axis { position: absolute; inset: 0; pointer-events: none; }
.ar-chart__tick { position: absolute; color: var(--ar-text-3); font: 500 12px/1 var(--ar-font); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ar-chart__tick--y { transform: translateY(-50%); }
.ar-chart__tick--x { bottom: 2px; transform: translateX(-50%); }
.ar-chart__mark { fill: #d4b06a; }
.ar-chart__hit { fill: transparent; }
.ar-chart__bar:hover .ar-chart__mark, .ar-chart__bar.is-hover .ar-chart__mark { fill: #f0d48a; }
.ar-chart__bar:hover .ar-chart__hit { fill: rgba(255, 255, 255, .04); }
.ar-chart__tip { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); padding: 6px 10px; border-radius: 8px; background: #f2f3ff; color: #14183a; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: var(--ar-shadow); }
.ar-hbars { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.ar-hbars li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 90px; align-items: center; gap: 12px; font-size: 14px; }
.ar-hbars__label { color: var(--ar-text-2); }
.ar-hbars__track { display: block; height: 12px; border-radius: 0 4px 4px 0; background: rgba(255, 255, 255, .04); }
.ar-hbars__fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: #d4b06a; }
.ar-rtl .ar-hbars__track, .ar-rtl .ar-hbars__fill { border-radius: 4px 0 0 4px; }
.ar-hbars__value { font-weight: 700; text-align: end; }
.ar-hbars__value small { display: block; font-weight: 600; font-size: 12px; color: var(--ar-text-3); }
.ar-table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.ar-table td:nth-child(2) { color: inherit; font-weight: inherit; }
.ar-table--bars .ar-table__bar { display: grid; grid-template-columns: minmax(80px, 1fr) auto; align-items: center; gap: 10px; min-width: 220px; }
.ar-table tr.is-muted td { opacity: .5; }
.ar-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ar-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ar-line); }
.ar-list li:first-child { border-top: 0; padding-top: 0; }
.ar-list li > div { display: grid; gap: 2px; min-width: 0; }
.ar-list span { color: var(--ar-text-2); font-size: 14px; }
.ar-list small { color: var(--ar-text-3); font-size: 12.5px; }
.ar-list__actions { display: flex; gap: 6px; flex: none; }

/* ================= v6 clean-up ================= */
/* Bigger touch areas for small text links */
.ar-link { min-height: 40px; }
.ar-crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.ar-logo { min-height: 44px; }
.ar-copy { width: 36px; height: 36px; border-radius: 10px; }
.ar-footer ul a { min-height: 40px; }
.ar-section__head { min-height: 40px; }

/* Old-theme content inside the arena frame (product, card, contact pages):
   remove the old big section padding, full-width containers and empty columns. */
.ar-legacy { color: var(--ar-text); }
.ar-legacy > section, .ar-legacy > div > section, .ar-legacy section[class*="padding"], .ar-legacy section[class*="section"] { padding-top: 16px !important; padding-bottom: 16px !important; margin-top: 0 !important; background: transparent !important; }
.ar-legacy .container, .ar-legacy .container-fluid, .ar-legacy .container-lg, .ar-legacy .container-xl { max-width: none !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.ar-legacy .ar-hide-empty { display: none !important; }
.ar-legacy .ar-grow { flex: 1 1 0 !important; max-width: 100% !important; width: auto !important; }
.ar-legacy [class*="banner"]:empty, .ar-legacy [class*="shape"], .ar-legacy [class*="-shape"] { display: none !important; }
.ar-legacy img { max-width: 100%; height: auto; }
.ar-legacy .ar-hide-dup { display: none !important; }

/* Account tools (tickets, wallet, profile) inside the store frame */
.ar-legacy .pagetitle { margin: 4px 0 18px; }
.ar-legacy .pagetitle h3,
.ar-legacy .pagetitle h4 { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: var(--ar-text); }
.ar-legacy .breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; background: transparent; font-size: 13px; }
.ar-legacy .breadcrumb a { color: var(--ar-accent-text); }
.ar-legacy .breadcrumb-item.active { color: var(--ar-text-3); }
.ar-legacy .card { background: var(--ar-surface); border: 1px solid var(--ar-line); border-radius: 16px; color: var(--ar-text); box-shadow: none; }
.ar-legacy .card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: transparent; border-bottom: 1px solid var(--ar-line); color: var(--ar-text); padding: 16px 18px; }
.ar-legacy .card-header h4 { margin: 0; color: var(--ar-text); font-size: 16px; font-weight: 700; }
.ar-legacy .card-body { padding: 16px 18px 20px; }
.ar-legacy .cmn-btn,
.ar-legacy .btn--base { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 12px; background: var(--ar-accent); color: var(--ar-on-accent) !important; font-weight: 700; text-decoration: none; border: 0; }
.ar-legacy .table { color: var(--ar-text); --bs-table-bg: transparent; --bs-table-color: var(--ar-text); --bs-table-striped-bg: rgba(255,255,255,.04); --bs-table-striped-color: var(--ar-text); margin-bottom: 0; }
.ar-legacy .table thead th { color: var(--ar-text-2); font-size: 13px; font-weight: 600; border-bottom-color: var(--ar-line); background: transparent; }
.ar-legacy .table td, .ar-legacy .table th { border-color: var(--ar-line); vertical-align: middle; }
.ar-legacy .form-control, .ar-legacy .form-select { background: var(--ar-surface-2); border: 1px solid var(--ar-line-2); color: var(--ar-text); border-radius: 12px; min-height: 46px; }
.ar-legacy label { color: var(--ar-text-2); font-weight: 600; }
.ar-legacy .attach-file .prev { display: none; }
.ar-legacy .table-not-found { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; gap: 8px; padding: 28px 12px; }
.ar-push { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 520px; margin-inline: auto; padding: 12px 14px; background: var(--ar-surface); border: 1px solid var(--ar-line-2); border-radius: 16px; box-shadow: var(--ar-shadow); }
.ar-push[hidden] { display: none; }
.ar-chat { position: fixed; z-index: 75; right: 16px; bottom: 24px; }
.ar-chat__toggle { position: relative; display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 2px solid #d4b06a; border-radius: 20px; background: #10243f; color: #f6f1e4; cursor: pointer; box-shadow: 0 16px 32px -14px rgba(8, 20, 40, .9); }
.ar-chat__toggle svg { display: block; }
.ar-chat__live { position: absolute; right: 8px; bottom: 8px; width: 11px; height: 11px; border-radius: 999px; background: #d4b06a; box-shadow: 0 0 0 3px rgba(212, 176, 106, .35); }
.ar-chat__toggle [data-ar-chat-badge] { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #f43f5e; color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; }
.ar-chat__toggle [data-ar-chat-badge][hidden] { display: none; }
.ar-chat__panel { position: absolute; right: 0; bottom: 60px; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100dvh - 140px)); display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--ar-surface); border: 1px solid var(--ar-line-2); border-radius: 22px; box-shadow: var(--ar-shadow); }
.ar-chat__panel[hidden] { display: none; }
.ar-chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--ar-line); }
.ar-chat__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #10243f; color: #f6f1e4; box-shadow: inset 0 0 0 1px #d4b06a; flex: none; }
.ar-chat__title { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ar-chat__title strong { color: var(--ar-text); font-size: 15px; }
.ar-chat__title span, .ar-chat__note, .ar-chat__typing { color: var(--ar-text-3); font-size: 12.5px; }
.ar-chat__note { margin: 0; padding: 10px 14px 0; line-height: 1.45; }
.ar-chat__log { flex: 1; min-height: 0; margin-top: 10px; padding: 4px 14px 12px; overflow: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ar-chat__msg { max-width: 84%; padding: 9px 12px; border-radius: 16px 16px 16px 6px; background: var(--ar-surface-2); color: var(--ar-text); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.ar-chat__msg.is-visitor { align-self: flex-end; border-radius: 16px 16px 6px 16px; background: #16325c; color: #f6f1e4; }
.ar-chat__msg small { display: block; margin-top: 4px; opacity: .8; font-size: 11px; }
.ar-chat__msg.is-system { align-self: center; max-width: 100%; background: transparent; color: var(--ar-text-3); font-size: 13px; text-align: center; padding: 2px 8px; }
.ar-chat__msg img { display: block; max-width: 200px; margin-top: 6px; border-radius: 10px; }
.ar-chat__typing { margin: 0; padding: 0 14px 8px; }
.ar-chat__typing[hidden] { display: none; }
.ar-chat__rate { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 14px 10px; padding: 8px 10px; border-radius: 14px; background: var(--ar-surface-2); color: var(--ar-text-2); font-size: 13px; }
.ar-chat__rate[hidden] { display: none; }
.ar-chat__form { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding: 12px 14px 14px; border-top: 1px solid var(--ar-line); }
.ar-chat__form textarea { width: 100%; min-height: 64px; max-height: 120px; resize: vertical; border-radius: 14px; border: 1px solid var(--ar-line-2); background: var(--ar-surface-2); color: var(--ar-text); padding: 10px 12px; }
.ar-chat__compose { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ar-chat__clip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--ar-text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.ar-chat__clip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.ar-chat__clip input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@media (max-width: 860px) {
  .ar-chat { bottom: calc(var(--ar-tab-h) + 12px + env(safe-area-inset-bottom)); }
  .ar-chat__panel { position: fixed; left: 10px; right: 10px; bottom: calc(var(--ar-tab-h) + 72px + env(safe-area-inset-bottom)); width: auto; height: min(68dvh, 560px); }
}
.ar-push p { margin: 0; color: var(--ar-text); font-size: 14px; font-weight: 600; }
.ar-push__actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 860px) { .ar-push { bottom: calc(var(--ar-tab-h) + 12px + env(safe-area-inset-bottom)); } }
.ar-legacy .no-data-img { width: 140px; height: 140px; }

@media (max-width: 1100px) {
  .ar-stats--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ar-stats--5 > * { grid-column: span 2; }
  .ar-stats--5 > :nth-child(n+4) { grid-column: span 3; }
  .ar-reviews { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ar-stats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-stats--5 > *, .ar-stats--5 > :nth-child(n+4) { grid-column: auto; }
  .ar-stats--5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ar-hbars li { grid-template-columns: 100px minmax(0, 1fr) 64px; }
  .ar-chart svg { height: 200px; }
  .ar-icon-btn--sm { width: 40px; height: 40px; }
  .ar-fav { width: 40px; height: 40px; top: 12px; inset-inline-end: 12px; }
  .ar-modal { place-items: end center; padding: 0; }
  .ar-modal__box { width: 100%; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .ar-extras { margin-top: 32px; }
}

/* ---------- 14. Right-to-left ---------- */
.ar-rtl .ar-flip, .ar-rtl .ar-card__go svg, .ar-rtl .ar-links svg, .ar-rtl .ar-link svg, .ar-rtl .ar-hero__cta svg, .ar-rtl .ar-sheet a svg { transform: scaleX(-1); }
.ar-rtl .ar-top__nav a.is-active::after { left: 12px; right: 12px; }
.ar-rtl .ar-more > summary::after { margin-inline-start: 2px; }
.ar-rtl .ar-toast { left: 50%; }

@media (prefers-reduced-motion: reduce) {
  .ar-body *, .ar-body *::before, .ar-body *::after { transition: none !important; animation: none !important; }
}
.ar-badge--link { display: inline-flex; align-items: center; min-height: 36px; }

/* Product page fallback: compact game art, selectable packs, sticky checkout */
.ar-page .ir-seo { background: transparent; padding: 4px 0 0; }
.ar-page .ir-crumbs a, .ar-page .ir-crumbs li { color: var(--ar-text-3); }
.ar-page .banner-section.ir-product-head { background: none; padding: 8px 0 6px; }
.ir-product-title { display: flex; align-items: center; gap: 16px; }
.ir-product-thumb {
  width: 84px; height: 84px; object-fit: cover; object-position: center;
  border-radius: 18px; flex: none; box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .8);
}
.ir-product-head .text-box { height: auto; min-width: 0; overflow: visible; }
.ir-product-head .title { margin: 0; font-size: 1.55rem; line-height: 1.2; }
.ir-product-head .ir-lead { margin: 6px 0 0; color: var(--ar-text-3); white-space: normal; }
.ir-product-head .ir-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: var(--ar-text-3); font-size: 13px; }
.ir-product-head .ir-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ar-page section.product-details-section { padding-top: 12px; }
.ir-block-title { margin: 0 0 12px; font-size: 1rem; }
.product-details-section .product-box2 {
  position: relative; align-items: center; min-height: 72px; padding: 16px 16px 14px;
  border-radius: 14px; background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08);
  overflow: visible;
}
.product-details-section .product-box2 .ar-best {
  top: -10px;
}
.product-details-section .product-box2.active {
  background: rgba(212, 176, 106, .14); border-color: #d4b06a; outline-color: #d4b06a;
}
.ir-checkout.sidebar-widget-area {
  background: #10243f; border: 1px solid rgba(212, 176, 106, .22); border-radius: 18px; padding: 18px;
}
.ir-checkout .cmn-list2 .item { flex-direction: column; align-items: stretch; gap: 6px; }
.ir-checkout .cmn-list2 .item.ir-row { flex-direction: row; align-items: center; justify-content: space-between; }
.ir-checkout .ir-total h5:last-child { font-size: 1.35rem; }
.ir-checkout .form-control, .ir-checkout select, .ir-checkout .nice-select { width: 100%; }
.ir-field-hint { margin: 6px 0 0; color: var(--ar-text-3); font-size: 12.5px; }
@media (min-width: 992px) {
  .ir-buy { align-items: flex-start; }
  .ir-checkout { position: sticky; top: 16px; }
  .ir-product-thumb { width: 104px; height: 104px; }
}

/* Brand accent follows the navy and gold palette. The old purple primary stays off the store. */
html.ar-html { scrollbar-color: #d4b06a #07111f; }
html.ar-html::-webkit-scrollbar,
body.ar-body::-webkit-scrollbar { width: 8px; height: 8px; }
html.ar-html::-webkit-scrollbar-thumb,
body.ar-body::-webkit-scrollbar-thumb {
  background-color: #d4b06a !important;
  border-radius: 8px;
}
.ar-body .form-check-input:checked {
  background-color: #d4b06a !important;
  border-color: #d4b06a !important;
}
.ar-body .form-check-input:focus {
  border-color: #d4b06a;
  box-shadow: 0 0 0 3px rgba(212, 176, 106, .28);
}

/* ---------- Guides ---------- */
.ar-blog, .ar-guide-layout { display: grid; gap: 18px; }
.ar-blog__search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ar-blog__search h2, .ar-guide-side h2 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.ar-blog__search input {
  flex: 1 1 220px; min-height: 46px; border-radius: 12px; border: 1px solid var(--ar-line-2);
  background: var(--ar-surface-2); color: var(--ar-text); padding: 0 14px;
}
.ar-blog__search input:focus { outline: 0; border-color: var(--ar-accent-line); box-shadow: 0 0 0 4px var(--ar-accent-soft); }
.ar-blog__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-blog__cats a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--ar-line); background: var(--ar-surface);
  color: var(--ar-text-2); font-size: 13.5px; font-weight: 650;
}
.ar-blog__cats a span { color: var(--ar-text-3); font-weight: 700; }
.ar-blog__cats a.is-active, .ar-blog__cats a:hover { background: var(--ar-accent); border-color: var(--ar-accent); color: var(--ar-on-accent); }
.ar-blog__cats a.is-active span, .ar-blog__cats a:hover span { color: var(--ar-on-accent); }
.ar-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ar-blog-card, .ar-guide {
  display: grid; gap: 8px; align-content: start; padding: 18px;
  border-radius: 16px; background: var(--ar-surface); border: 1px solid var(--ar-line); color: var(--ar-text);
}
.ar-blog-card { min-height: 168px; text-decoration: none; }
.ar-blog-card:hover { border-color: var(--ar-accent-line); background: var(--ar-surface-2); }
.ar-blog-card h2, .ar-guide h1 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--ar-text); }
.ar-guide h1 { font-size: 30px; }
.ar-blog-card p, .ar-guide__head p { margin: 0; color: var(--ar-text-2); font-size: 14.5px; line-height: 1.5; }
.ar-blog-card__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ar-accent-text); font-size: 12.5px; font-weight: 700; }
.ar-blog-card__meta time, .ar-blog-card__meta a { color: var(--ar-text-3); font-weight: 600; }
.ar-blog__empty { margin: 0; color: var(--ar-text-2); }
.ar-blog .pagination-section { margin-top: 4px; }
.ar-blog .pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ar-blog .page-link {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--ar-line); background: var(--ar-surface); color: var(--ar-text);
}
.ar-blog .page-item.active .page-link { background: var(--ar-accent); border-color: var(--ar-accent); color: var(--ar-on-accent); }
.ar-blog .page-link.disabled-link { opacity: .4; }
.ar-guide-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.ar-guide { gap: 16px; }
.ar-guide__body { color: var(--ar-text-2); font-size: 16px; line-height: 1.65; }
.ar-guide__body h2 { margin: 22px 0 8px; font-size: 20px; font-weight: 800; color: var(--ar-text); }
.ar-guide__body h3 { margin: 16px 0 6px; font-size: 16px; font-weight: 750; color: var(--ar-text); }
.ar-guide__body p { margin: 0 0 12px; }
.ar-guide__body strong { color: var(--ar-text); }
.ar-guide__body a { color: var(--ar-accent-text); }
.ar-guide__body ol, .ar-guide__body ul { margin: 0 0 14px; padding-inline-start: 1.2em; }
.ar-guide__body li + li { margin-top: 4px; }
.ar-guide__share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 8px; border-top: 1px solid var(--ar-line); }
.ar-guide__share span { color: var(--ar-text-3); font-size: 13px; font-weight: 700; }
.ar-guide__share a {
  min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px;
  border: 1px solid var(--ar-line-2); color: var(--ar-text); font-size: 13.5px; font-weight: 700;
}
.ar-guide-side { display: grid; gap: 12px; position: sticky; top: 88px; }
.ar-guide-side .ar-panel { display: grid; gap: 8px; }
.ar-guide-side__list { display: grid; gap: 8px; }
.ar-guide-side__list a { color: var(--ar-text); font-weight: 650; line-height: 1.35; }
.ar-guide-side__list a:hover { color: var(--ar-accent-text); }
@media (max-width: 860px) {
  .ar-guide-layout { grid-template-columns: minmax(0, 1fr); }
  .ar-guide-side { position: static; }
  .ar-guide h1 { font-size: 24px; }
}
