.footer-logo img,
.navbar__logo img {
  display: none;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.navbar__logo .sapphire-mark {
  width: 1.35em;
  height: 1.35em;
  margin-right: 0;
  flex-shrink: 0;
  vertical-align: 0;
}

.navbar__logo-text {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  line-height: 1;
  transform: translateY(0.04em);
}

.auth-modal__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: #fff;
}

.auth-modal__logo .sapphire-mark {
  width: 26px;
  height: 26px;
  margin-right: 0;
  color: var(--gaming-accent-light);
}

.product-card__link,
.pgrid-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-card__link:hover,
.pgrid-card__link:hover {
  text-decoration: none;
}

.page-content {
  min-width: 0;
  overflow-x: clip;
}

body.is-cabinet .page-content {
  padding-bottom: 0;
}

body.is-cabinet {
  --ds2-offset: var(--nav-height, 72px);
  --ds2-mobilebar-h: 49px;
}

body.is-cabinet .ds2-app {
  margin-top: var(--ds2-offset);
  min-height: calc(100vh - var(--ds2-offset));
}

body.is-cabinet .ds2-app .ds2-sidebar {
  top: var(--ds2-offset);
  height: calc(100vh - var(--ds2-offset));
  height: calc(100dvh - var(--ds2-offset));
}

/* Cabinet: navbar always solid (same as scrolled state on other pages) */
body.is-cabinet #navbar.navbar {
  padding: 0.7rem 0;
  background: rgba(6, 9, 18, 0.92);
  border-bottom-color: var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

/* Unified navbar action order (profile = catalog) */
.navbar__actions .navbar__balance { order: 1; }
.navbar__actions .lang-switch { order: 2; }
.navbar__actions > a.navbar__icon-btn[href="/profile"] { order: 3; }
.navbar__actions .notif-wrap { order: 4; }
.navbar__actions .cart-wrap { order: 5; }
.navbar__actions .navbar__support { order: 6; }
.navbar__actions .navbar__cta { order: 7; }
.navbar__actions .navbar__signin { order: 7; }
.navbar__actions .menu__opener { order: 8; }

/* Sidebar user mini-card — rounded */
.ds2-sidebar__user {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 0.35rem 0.65rem;
  padding: 0.65rem 0.55rem;
  border-bottom: none;
}

/* Homepage background photos (hero + CTA) — explicit web-root paths */
.home-page .hero__bg {
  background-image: url('/hero-bg.webp');
  background-image: image-set(url('/hero-bg.webp') type('image/webp'), url('/hero-bg.jpg') type('image/jpeg'));
}
.home-page .cta--fullbleed > .cta__bg {
  background-image: url('/second-bg.webp');
  background-image: image-set(url('/second-bg.webp') type('image/webp'), url('/second-bg.jpg') type('image/jpeg'));
}

:root {
  --nav-height: 72px;
}

.products-page {
  padding-top: var(--nav-height);
  min-height: auto;
  padding-bottom: 4rem;
}

.detail-page {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.howto-page {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.ppage-hero {
  padding-top: 1.75rem;
}

.pgrid--few {
  grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
  justify-content: start;
}

.catalog-sparse-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(0, 207, 255, 0.04));
}

.catalog-sparse-cta__title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.catalog-sparse-cta__sub {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 52ch;
}

.catalog-sparse-cta__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.products__intro {
  margin-bottom: 0.5rem;
}

.section__header--catalog {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 2rem;
  align-items: end;
  max-width: 100%;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.products__intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.products__intro-stat {
  text-align: center;
}

.products__intro-stat-num {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.products__intro-stat-unit {
  font-size: 0.75em;
}

.products__intro-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.products__stage--grid {
  padding-top: 0.5rem;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 1rem;
  justify-content: center;
  max-width: 1040px;
  margin: 0 auto;
}

.products__grid .pgrid-card {
  height: 100%;
}


@media (max-width: 900px) {
  .section__header--catalog {
    grid-template-columns: 1fr;
  }

  .products__intro-stats {
    max-width: 420px;
  }
}

body.menu-open {
  overflow: hidden;
}

.auth-error {
  color: #ef4444;
  font-size: 0.82rem;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
#signin-error,
#signup-error,
#cart-upsell {
  display: none;
}
.navbar__cart-badge,
#cart-count-label {
  display: none;
}
.navbar__cart-badge.is-visible,
#cart-count-label.is-visible {
  display: flex;
}
#topup-crypto-bonus:not(.is-visible),
#topup-crypto-bonus[hidden] {
  display: none !important;
}
#topup-crypto-bonus.is-visible {
  display: flex;
}
#topup-bonus-text {
  line-height: 1.4;
}
.topup-method-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  min-width: 0;
  text-align: left;
}
.topup-method-btn .topup-method-btn__label {
  display: block;
  line-height: 1.2;
}
.topup-method-btn .topup-method-btn__sub {
  display: block;
  line-height: 1.2;
}
.topup-confirm-btn {
  margin-top: 0.25rem;
}
.topup-redeem {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.auth-modal__logo img {
  max-height: 32px;
}
.repair-form .error_info {
  display: none;
  margin: 0 0 0.25rem;
}
.repair-form .error_info.active {
  display: block;
}
.repair-form {
  margin-top: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.repair-form__switch {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  text-align: center;
}
.repair-form__switch a {
  color: #00cfff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.repair-form__switch a:hover {
  opacity: 0.85;
  color: #00cfff;
}
.st-card--narrow {
  max-width: 440px;
}
.st-card--repair {
  padding: 2.4rem 2rem 2.1rem;
}
.st-card--repair .st-badge {
  margin-bottom: 1rem;
}
.st-card--repair .st-title {
  font-size: 1.55rem;
  margin-bottom: 0.6rem;
}
.st-card--repair .st-sub {
  margin-bottom: 1.6rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 38ch;
  line-height: 1.65;
}
.st-card--repair .repair-form .auth-field {
  gap: 0.5rem;
}
.st-card--repair .repair-form .auth-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0;
}
.st-card--repair .repair-form .auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}
.auth-page-spacer {
  min-height: 40vh;
}

.dash-settings-form .is-error {
  border-color: rgba(239, 68, 68, 0.6);
}
.dash-settings-form .dash-field {
  margin-bottom: 1rem;
}
.dash-settings-form .dash-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.dash-settings-form .dash-field input {
  width: 100%;
}

.ds2-ov-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 768px) {
  .ds2-ov-cards {
    grid-template-columns: 1fr;
  }
}
.ds2-ov-cards .ds2-ov-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color 0.2s;
}
.ds2-ov-cards .ds2-ov-card:hover {
  border-color: rgba(0, 207, 255, 0.25);
  text-decoration: none;
}
.ds2-ov-cards .ds2-ov-card__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ds2-ov-cards .ds2-ov-card__val {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  line-height: 1;
}
.ds2-ov-cards .ds2-ov-card__val--green { color: rgba(16, 217, 160, 0.9); }
.ds2-ov-cards .ds2-ov-card__val--amber { color: rgba(245, 158, 11, 0.9); }
.ds2-ov-cards .ds2-ov-card__val--cyan { color: rgba(0, 207, 255, 0.9); }
.ds2-ov-cards .ds2-ov-card__link {
  font-size: 0.78rem;
  color: rgba(0, 207, 255, 0.7);
}

.ords-link {
  color: rgba(0, 207, 255, 0.9);
  text-decoration: none;
  font-size: 0.82rem;
}
.ords-link:hover {
  color: #00cfff;
}

@media (max-width: 900px) {
  .detail-body {
    grid-template-columns: 1fr;
  }
  .detail-buy-mobile {
    display: block;
  }
}
@media (min-width: 901px) {
  .detail-buy-mobile {
    display: none;
  }
}

@media (max-width: 560px) {
  .pgrid {
    grid-template-columns: 1fr !important;
  }
}

.products__stage .owl-carousel .product-card {
  margin: 0 0.75rem;
  width: 100%;
}

.products__slider--sparse .owl-item {
  opacity: 0.86;
  transform: scale(0.92) translateY(8px);
  filter: none;
}
.products__slider--sparse .owl-item.active {
  opacity: 0.92;
}
.products__slider--sparse .owl-item.active.center,
.products__slider--sparse .owl-item {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.products__slider--sparse .owl-item.active:not(.center) {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Мало карточек — держим группу по центру, без пустоты слева */
.products__slider--centered .owl-stage-outer {
  display: flex;
  justify-content: center;
}
.products__slider--centered .owl-stage {
  margin: 0 auto;
}

.products__slider--flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1.5rem 0 2rem;
}
.products__slider--flex .product-card {
  flex: 0 1 340px;
  max-width: 380px;
  width: 100%;
  margin: 0;
  opacity: 1;
  transform: none;
  filter: none;
}

.pgrid-card__art .product-card__art-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: auto;
  inset: auto;
  transform: translate(-50%, -50%);
  filter: none;
}

.pgrid-card {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.pgrid-card__art {
  background: transparent !important;
}
.pgrid-card__art--empty {
  background: linear-gradient(160deg, #ef4444 0%, #b91c1c 48%, #7f1d1d 100%) !important;
}

.pgrid-card:hover {
  box-shadow: none;
}

.pgrid-card__art .product-card__art-grid {
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 30%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 30%, transparent 92%);
}

.catalog__grid--sparse {
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.footer > .footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Seamless join with page content / CTA above */
.page-content + .footer {
  margin-top: 0;
  border-top: none;
}

.footer__container {
  padding-bottom: 1.5rem;
}

.footer__pay-panel {
  margin-top: 0;
  border-top: none;
  padding-top: 1.25rem;
}

/* Why nodes track — transparent on desktop (grid children pass through) */
.why__nodes-track {
  display: contents;
}

@media (max-width: 1024px) {
  .why__diagram {
    display: flex !important;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.5rem 0;
    min-width: 0;
  }
  .why__nodes-track {
    display: flex !important;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
  }
  .why__node,
  .why__node--top,
  .why__node--left,
  .why__node--right,
  .why__node--bottom,
  .why__center {
    grid-column: auto !important;
    grid-row: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    justify-self: stretch !important;
  }
  .why__center {
    order: -1;
  }
}

.footer__tile nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer__tile--brand .footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.footer__tile--brand .footer__logo .sapphire-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.home-more-link,
.paginator__wrapper--spaced {
  margin-top: 2rem;
  text-align: center;
}
.ppage-stat__unit {
  font-size: 0.6em;
}
.is-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .ords-table thead th:nth-child(3),
  .ords-table tbody td:nth-child(3) {
    display: none;
  }
}

.seo-text {
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
  line-height: 1.8;
}
.status-empty {
  color: var(--gaming-text-muted);
  font-family: var(--body);
  font-size: 0.9rem;
}

/* Status page: missing row state badges */
.sprod-row[data-state="testing"] .sprod-row__badge {
  color: rgb(var(--sc-warn));
  background: rgba(var(--sc-warn), 0.1);
  border: 1px solid rgba(var(--sc-warn), 0.25);
}
.sprod-row[data-state="down"] .sprod-row__badge {
  color: rgb(var(--sc-bad));
  background: rgba(var(--sc-bad), 0.1);
  border: 1px solid rgba(var(--sc-bad), 0.25);
}
.sprod-row__name {
  text-decoration: none;
  transition: color 0.15s;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 0.75rem;
}
.sprod-row__name:hover {
  color: rgba(255, 255, 255, 0.92);
}
.sprod-row__badge {
  flex-shrink: 0;
}
.status-section--infra {
  padding-bottom: 5rem;
}

.legal-section {
  padding-top: 7rem;
  padding-bottom: 5rem;
}
.legal-container {
  max-width: 800px;
}
.legal-badge {
  margin-bottom: 1.5rem;
  display: inline-flex;
}
.legal-title {
  font-family: var(--display, 'Unbounded', sans-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
}
.legal-updated {
  color: var(--gaming-text-muted);
  margin: 0 0 2.5rem;
}
.legal-lang-note {
  background: rgba(255, 180, 0, 0.07);
  border: 1px solid rgba(255, 180, 0, 0.25);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 0 0 1.5rem;
  color: var(--gaming-text-muted);
  font-size: 0.88rem;
  display: none;
}
.legal-body {
  color: var(--gaming-text);
  line-height: 1.8;
  font-size: 0.94rem;
}
.legal-intro {
  background: rgba(117, 72, 210, 0.1);
  border: 1px solid rgba(117, 72, 210, 0.25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0 0 2.5rem;
  color: var(--gaming-text-muted);
}
.legal-section-block {
  margin-bottom: 2.5rem;
}
.legal-section-block--last {
  margin-bottom: 2rem;
}
.legal-section-block__heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gaming-accent-light);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.legal-section-block__heading--error {
  color: var(--gaming-error);
}
.legal-body a {
  color: var(--gaming-accent-light);
}
.legal-body strong {
  color: var(--gaming-text);
}
.legal-cms {
  color: rgba(255, 255, 255, 0.75);
}
.legal-cms h2,
.legal-cms h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gaming-accent-light);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.legal-cms p,
.legal-cms li {
  color: var(--gaming-text-muted);
}
.legal-cms ul,
.legal-cms ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
}
.legal-cms a {
  color: var(--gaming-accent-light);
}

.blog_hero {
  padding: 7rem 1.5rem 2.5rem;
  text-align: center;
}
.blog_hero-container {
  max-width: 720px;
  margin: 0 auto;
}
.blog_hero-title {
  font-family: var(--display, 'Unbounded', sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
}
.blog_hero-description {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}
.blog-posts {
  padding: 0 1.5rem 4rem;
}
.blog-container {
  max-width: 1100px;
  margin: 0 auto;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.post-card {
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover {
  border-color: rgba(0, 207, 255, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
}
.post-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.08), rgba(167, 139, 250, 0.08));
  overflow: hidden;
}
.post-image--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-content {
  padding: 1.25rem;
}
.post-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}
.post-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}
.post-excerpt {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}
.post-link {
  font-size: 0.78rem;
  color: rgba(0, 207, 255, 0.8);
}

.blog-article {
  padding: 6rem 1.5rem 4rem;
}
.blog-article__head {
  max-width: 760px;
  margin: 0 auto 2rem;
}
.blog-article__back {
  display: inline-block;
  font-size: 0.82rem;
  color: rgba(0, 207, 255, 0.8);
  text-decoration: none;
  margin-bottom: 1rem;
}
.blog-article__title {
  font-family: var(--display, 'Unbounded', sans-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
}
.blog-article__date {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}
.blog-article__body {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  font-size: 0.95rem;
}
.blog-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.acc_store {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
@media (max-width: 900px) {
  .acc_store {
    grid-template-columns: 1fr;
  }
  .acc_store .sidebar {
    display: none;
  }
}
.acc_store .sidebar {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  height: fit-content;
}
.acc_store .sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.75rem;
}
.acc_store .sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.acc_store .sidebar-item a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.acc_store .sidebar-item.active a,
.acc_store .sidebar-item a:hover {
  background: rgba(0, 207, 255, 0.08);
  color: #fff;
}
.acc-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.acc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
}
.acc-expand {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.acc-card.open .acc-expand {
  display: block;
}
.acc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  padding: 1rem;
}
@media (max-width: 768px) {
  .acc-detail {
    grid-template-columns: 1fr;
  }
}
.content-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ch-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.ch-count {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}
.tb-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.tb-search {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  outline: none;
  font-size: 0.88rem;
}

.cart-wrap {
  position: relative;
}
.navbar__actions .cart-wrap + .navbar__cta {
  margin-left: 0;
}

@media (max-width: 1200px) {
  .navbar__actions .lang-switch {
    display: none;
  }
  .mobile_menu .lang-switch {
    display: flex;
  }

  .navbar__container {
    gap: 0.6rem;
  }
  .navbar__actions {
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
  }
  .navbar__logo {
    flex-shrink: 0;
  }
  .navbar .navbar__logo-text {
    display: none;
  }
  .navbar .navbar__logo .sapphire-mark {
    width: 34px;
    height: 34px;
    margin-right: 0;
    vertical-align: 0;
  }
  .menu__opener,
  .navbar__icon-btn,
  .navbar__balance,
  .notif-wrap {
    flex-shrink: 0;
  }

  .mobile_menu {
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
    padding:
      calc(var(--nav-height) + 1.25rem) 1.25rem
      calc(1.75rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile_menu__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-height: 0;
  }
  .mobile_menu__nav {
    gap: 0.85rem;
  }
  .mobile_menu .nav-link {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.1;
  }
  .mobile_menu__auth {
    margin-top: 0;
    width: min(100%, 300px);
  }
  .mobile_menu__cta {
    margin-top: 0;
    width: 100%;
  }
  .mobile_menu__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
    flex-shrink: 0;
    width: 100%;
  }
  .mobile_menu__meta {
    margin-top: 0;
    display: flex;
    justify-content: center;
  }
  .mobile_menu .lang-switch {
    margin-top: 0;
    align-self: center;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem 0;
  }
  .navbar.scrolled {
    padding: 0.55rem 0;
  }
  :root {
    --nav-height: 60px;
  }
  .navbar .navbar__logo .sapphire-mark {
    width: 36px;
    height: 36px;
    vertical-align: 0;
  }
  .navbar__icon-btn {
    width: 34px;
    height: 34px;
  }
  .navbar__icon-btn svg {
    width: 15px;
    height: 15px;
  }
  .navbar__balance {
    height: 34px;
    padding: 0 8px 0 7px;
    font-size: 0.72rem;
    gap: 0.25rem;
  }
  .menu__opener {
    width: 38px;
    height: 38px;
  }
  .mobile_menu__nav {
    gap: 0.7rem;
  }
  .mobile_menu .nav-link {
    font-size: 1.4rem;
    letter-spacing: 0.04em;
  }
}

/* ── Product detail page fixes ─────────────────────────────────── */
.detail-hero__inner {
  align-items: start;
}
.detail-hero__art {
  flex-shrink: 0;
  width: 100%;
  max-width: 340px;
}
.detail-hero__info {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.detail-hero__title {
  overflow-wrap: anywhere;
}
.detail-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 8px);
  align-self: start;
  z-index: 2;
}
@media (max-width: 860px) {
  .detail-hero__art {
    margin: 0 auto;
    max-width: 280px;
  }
  .detail-sidebar {
    position: static;
  }
}

.detail-page .dmedia__arrow {
  opacity: 0.85;
  pointer-events: auto;
}
.detail-page .dmedia__stage:hover .dmedia__arrow {
  opacity: 1;
}
.detail-page .dmedia__item .dmedia__img,
.detail-page .dmedia__item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dmedia__stage--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background:
    radial-gradient(ellipse at 55% 35%, rgba(var(--art-rgb), 0.22) 0%, transparent 65%),
    #070910;
}
.dmedia__placeholder-shape {
  width: min(42%, 140px);
  height: auto;
  color: rgba(var(--art-rgb), 0.55);
  opacity: 0.85;
}

.dbb__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.85rem 0 0.5rem;
}
.dbb__field label {
  display: block;
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.35rem;
}
.dbb__field input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(7, 9, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.62rem 0.8rem;
  color: #fff;
  font-family: var(--body);
  font-size: 0.88rem;
  transition: border-color 0.2s;
}
.dbb__field input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
.dbb__field input:focus {
  outline: none;
  border-color: rgba(0, 207, 255, 0.45);
}
.dbb__agg-label {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 0.45rem;
}
.dbb__agg-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.dbb__agg-btn {
  position: relative;
  cursor: pointer;
}
.dbb__agg-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dbb__agg-btn span {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.15s;
}
.dbb__agg-btn input:checked + span {
  border-color: rgba(0, 207, 255, 0.5);
  background: rgba(0, 207, 255, 0.12);
  color: #fff;
}
.dbb__aggregators {
  margin-bottom: 0.15rem;
}
.dbb__delivery {
  margin: 0.85rem 0 0.25rem;
}
.dbb__trust {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Catalog card footer — cart | price+chips | compare + Get access (grid prevents overlap) */
.products-page .pgrid-card__foot {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}
.products-page .pgrid-card__foot > .cart-add-btn {
  grid-column: 1;
  align-self: center;
}
.products-page .pgrid-card__price-block {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
  max-width: 100%;
  padding-left: 0;
  overflow: hidden;
}
.products-page .pgrid-card__price-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.04rem;
  width: 100%;
}
.products-page .pgrid-card__price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.08rem;
  line-height: 1.2;
  max-width: 100%;
  font-family: var(--display, 'Unbounded', sans-serif);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.products-page .pgrid-card__price-unit {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--body, 'Inter', sans-serif);
  font-size: 0.56rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0;
}
.products-page .pgrid-card__price-perday {
  display: block;
  width: 100%;
  font-family: var(--body, 'Inter', sans-serif);
  font-size: 0.56rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.2;
  margin-top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.products-page .pgrid-card__price.is-long {
  font-size: 0.8rem;
  letter-spacing: -0.035em;
}
.products-page .pgrid-card__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 0.2rem;
  width: 100%;
  margin-top: 0;
}
.products-page .pgrid-card__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  line-height: 1.2;
  padding: 0.15rem 0.36rem;
  font-family: var(--body, 'Inter', sans-serif);
  font-size: 0.54rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 5px;
}
.products-page .pgrid-card__chip svg {
  display: block;
  flex-shrink: 0;
  margin-top: 0;
}
.products-page .pgrid-card__actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: end;
  align-self: center;
  flex-shrink: 0;
}
.products-page .pgrid-card__compare,
.products-page .pgrid-card__cta {
  flex-shrink: 0;
}
.products-page .pgrid-card__cta {
  height: 34px;
  min-height: 34px;
  padding: 0 0.55rem;
  font-family: var(--body, 'Inter', sans-serif);
  font-size: 0.64rem;
  font-weight: 700;
  gap: 0.22rem;
  line-height: 1;
}
.products-page .pgrid-card__cta svg {
  width: 12px;
  height: 12px;
}
.products-page .pgrid-card__head {
  align-items: center;
  min-height: 1.6rem;
}
.products-page .pgrid-card__head .status-pill {
  padding: 0.28rem 0.65rem;
  font-size: 0.65rem;
  gap: 0.35rem;
  flex-shrink: 0;
}
.products-page .pgrid-card__game {
  line-height: 1.2;
  text-align: right;
}
.products-page .pgrid-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
  padding: 0.9rem 1rem 1rem;
}
.products-page .pgrid-card__foot {
  margin-top: auto;
}
.products-page .pgrid-card__dur-toggle {
  display: flex;
  gap: 3px;
  margin-bottom: 0.5rem;
}
.products-page .pgrid-card__dur-btn {
  min-height: 26px;
  padding: 4px 1px;
  font-size: 0.58rem;
  letter-spacing: 0.03em;
}
.products-page .pgrid-card__dur-toggle:has(.pgrid-card__dur-btn:nth-child(4)) .pgrid-card__dur-btn {
  font-size: 0.54rem;
  padding: 4px 0;
}
.products-page .pfilter-select {
  line-height: 1.35;
  padding: 0.45rem 2rem 0.45rem 0.8rem;
  vertical-align: middle;
}
.products-page .pfilter-controls {
  align-items: stretch;
}

/* Compare page — unified backgrounds like prototype (no black side blocks) */
.compare-page .cmp-grid {
  grid-template-columns: 200px repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.03);
}
.compare-page .cmp-grid > .cmp-col-head,
.compare-page .cmp-grid > .cmp-cell,
.compare-page .cmp-grid > .cmp-cta-cell {
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.compare-page .cmp-grid > :nth-child(4n) {
  border-right: none;
}
.compare-page .cmp-grid > .cmp-col-head--label {
  background: transparent;
}
.compare-page .cmp-grid > .cmp-cell--label,
.compare-page .cmp-grid > .cmp-cta-cell--label {
  background: transparent;
}
.compare-page .cmp-col-head:not(.cmp-col-head--label):not(.cmp-col-head--empty) {
  background: rgba(6, 6, 16, 0.55);
  padding-top: 1.65rem;
}
.compare-page .cmp-grid > .cmp-cell:not(.cmp-cell--label):not(.cmp-cell--group):not(.cmp-cell--group-span) {
  background: transparent;
}
.compare-page .cmp-grid > .cmp-cta-cell:not(.cmp-cta-cell--label):not(.cmp-cta-cell--empty) {
  background: rgba(255, 255, 255, 0.02);
}
.compare-page .cmp-col-head--empty {
  background: rgba(255, 255, 255, 0.01);
  border: 2px dashed rgba(255, 255, 255, 0.06);
  border-top: none;
  border-left: none;
  margin: 0;
}
.compare-page .cmp-col-head--label {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.compare-page .cmp-cell--label {
  justify-content: flex-start;
  text-align: left;
}
.compare-page .cmp-cell--center {
  justify-content: center;
  text-align: center;
}
.compare-page .cmp-cell-price {
  font-family: var(--display, 'Unbounded', sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.compare-page .cmp-cell-price span {
  font-family: var(--body, 'Inter', sans-serif);
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 2px;
}
.compare-page .cmp-table-wrap--scroll .cmp-col-head--label,
.compare-page .cmp-table-wrap--scroll .cmp-cell--label,
.compare-page .cmp-table-wrap--scroll .cmp-cta-cell--label {
  box-shadow: none;
}
.compare-page .cmp-table-wrap--scroll .cmp-col-head--label {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.compare-page .cmp-table-wrap--scroll .cmp-cell--label,
.compare-page .cmp-table-wrap--scroll .cmp-cta-cell--label {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.compare-page .cmp-table-wrap--scroll .cmp-grid {
  min-width: 720px;
}
.compare-page .cmp-check {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.compare-page .cmp-check--yes {
  background: rgba(16, 217, 160, 0.14);
  color: #10d9a0;
}
.compare-page .cmp-check--no {
  background: rgba(239, 68, 68, 0.1);
  color: rgba(239, 68, 68, 0.55);
}
.compare-page .cmp-pill {
  margin: 0 auto;
}
.compare-page .cmp-grid.diff-mode .cmp-cell--diff {
  background: rgba(251, 191, 36, 0.1) !important;
  box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.45);
}
.compare-page .cmp-grid.diff-mode .cmp-cell--label.cmp-cell--diff {
  color: rgba(251, 191, 36, 0.85);
}
.compare-page .cmp-cta-cell--empty {
  min-height: 52px;
  background: rgba(255, 255, 255, 0.005);
}

#ds2-sec-referrals .ref-balance__payout-link {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Status page — full text, no truncation (backgrounds: default style.css / prototype) */
#page-status .svc-card {
  align-items: start;
}
#page-status .svc-card__name,
#page-status .svc-card__desc {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.45;
}
#page-status .svc-card__desc {
  margin-top: 0.2rem;
}
#page-status .chlog-entry__desc,
#page-status .sincident__desc,
#page-status .sincident__tl-text {
  overflow: visible;
  text-overflow: unset;
  word-break: normal;
}

.game-tile__icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

/* How-to page — text fixes only */
#page-howto .hwgame-note__desc,
#page-howto .hwtrouble-card__a,
#page-howto .hwstep__desc {
  overflow: visible;
  text-overflow: unset;
  word-break: normal;
}
#page-howto .hwgame-tabs {
  min-height: 0;
}
#page-howto .hwgame-panel:not(.active) {
  display: none !important;
  height: 0;
  padding: 0;
  overflow: hidden;
}
#page-howto .hwgame-panel.active {
  display: block;
  height: auto;
  min-height: 0;
}
#page-howto .hwgame-panel__grid {
  align-content: start;
}

#page-howto .howto-section {
  padding: 3.25rem 0 1.5rem;
}
#page-howto .howto-section .container-max {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}
#page-howto .howto-sec-label {
  margin: 0 0 0.5rem;
}
#page-howto .howto-sec-title {
  margin: 0 0 1.75rem;
}
#page-howto .howto-sec-desc {
  margin: 0 0 2.25rem;
}
#page-howto .hwtrouble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}
#page-howto .hwtrouble-card {
  min-width: 0;
  padding: 1.5rem 1.5rem;
  box-sizing: border-box;
}
#page-howto .hwtrouble-card__q {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
#page-howto .hwtrouble-card__a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
@media (max-width: 700px) {
  #page-howto .hwtrouble-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  #page-howto .howto-section .container-max {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* FAQ page — text fixes only */
#page-faq .faq-item__a {
  overflow: visible;
  text-overflow: unset;
  word-break: normal;
}

/* Checkout — balance hint inline, xsell body */
.co2-balance-msg {
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}
.co2-balance-msg.is-visible {
  display: flex !important;
}
.co2-balance-msg svg {
  flex-shrink: 0;
}
.co2-balance-msg__text {
  line-height: 1.35;
  white-space: normal;
}
.co2-xsell__body {
  min-width: 0;
  flex: 1 1 auto;
}

/* Product detail — requirements grid like prototype */
.detail-page .detail-reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.detail-page .detail-req-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.detail-page .detail-req-card svg {
  width: 20px;
  height: 20px;
  color: rgba(167, 139, 250, 0.7);
  flex-shrink: 0;
  margin-top: 2px;
}
.detail-page .detail-req-card__body {
  min-width: 0;
  flex: 1 1 auto;
}
.detail-page .detail-req__label {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 0.25rem;
}
.detail-page .detail-req__val {
  font-family: var(--body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.45;
}
/* Referral link box — mobile URL must wrap, not bleed off-screen */
@media (max-width: 640px) {
  .ref-link-box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  .ref-link-box__info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .ref-link-box__url {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.45;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
  }
  .ref-link-box__actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .ref-copy-btn,
  .ref-share-btn {
    width: 100%;
    justify-content: center;
  }
  .ref-hero__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ref-hero__rate {
    text-align: left;
    width: 100%;
  }
  .ref-hero__title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
}

@media (max-width: 640px) {
  .detail-page .container-max {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .detail-page .detail-body {
    padding: 1.25rem 0 3rem;
    gap: 1.25rem;
  }
  .detail-page .detail-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 1.25rem;
  }
  .detail-page .detail-tabs::-webkit-scrollbar {
    display: none;
  }
  .detail-page .detail-tab {
    flex-shrink: 0;
    padding: 0.6rem 0.85rem;
    font-size: 0.78rem;
  }
  .detail-page .detail-features-grid {
    grid-template-columns: 1fr;
  }
  .detail-page .detail-section-title {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
  }
  .detail-page .dfeat-card {
    padding: 0.95rem;
  }
  .detail-page .detail-desc {
    padding-right: 0.15rem;
  }
  .detail-page .detail-reqs {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile: dashboard / profile ─────────────────────────────── */
@media (max-width: 640px) {
  body.is-cabinet {
    --ds2-offset: var(--nav-height, 60px);
    --ds2-mobilebar-h: 46px;
  }
  .ds2-mobilebar {
    padding: 0.5rem 1rem;
    gap: 0.55rem;
  }
  .ds2-menu-toggle {
    width: 36px;
    height: 36px;
  }
  .ds2-mobilebar__title {
    font-size: 0.88rem;
  }
  .ds2-content {
    padding-bottom: 2rem;
  }
  .ds2-overview-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .ds2-ov-cards {
    gap: 0.65rem;
  }
  .dash-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin: 1.25rem 0;
  }
  .dash-stat {
    padding: 0.95rem 1rem;
  }
  .dash-stat__value {
    font-size: 1.25rem;
  }
  .dash-balance {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 1.15rem;
    gap: 0.85rem;
  }
  .dash-balance__actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .dash-balance__topup,
  .dash-balance__history-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
  .dash-referral {
    padding: 1.15rem;
    gap: 1rem;
  }
  .dash-referral__stats {
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
  }
  .dash-referral__cta {
    width: 100%;
    justify-content: center;
  }
  .dash-hero {
    display: none !important;
  }
  .ds2-mobilebar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #ds2-sec-referrals .ref-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin: 1rem 0;
  }
  #ds2-sec-referrals .ref-hero {
    padding: 0.75rem 0 1rem;
  }
  #ds2-sec-referrals .ref-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  #ds2-sec-referrals .ref-hero__title {
    font-size: clamp(1.15rem, 5vw, 1.45rem);
    line-height: 1.2;
  }
  #ds2-sec-referrals .ref-hero__sub {
    font-size: 0.8rem;
    line-height: 1.45;
  }
  #ds2-sec-referrals .ref-hero__rate {
    text-align: left;
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  #ds2-sec-referrals .ref-hero__rate-val {
    font-size: 1.75rem;
  }
  #ds2-sec-referrals .ref-hero__rate-label {
    font-size: 0.68rem;
    line-height: 1.35;
  }
  #ds2-sec-referrals .ref-container {
    padding-top: 0.75rem;
    min-width: 0;
    max-width: 100%;
  }
  #ds2-sec-referrals .ref-link-box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  #ds2-sec-referrals .ref-link-box__icon {
    width: 40px;
    height: 40px;
  }
  #ds2-sec-referrals .ref-link-box__info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #ds2-sec-referrals .ref-link-box__title {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 0.45rem;
  }
  #ds2-sec-referrals .ref-link-box__url {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.45;
    font-size: 0.72rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
  }
  #ds2-sec-referrals .ref-link-box__actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  #ds2-sec-referrals .ref-copy-btn,
  #ds2-sec-referrals .ref-share-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.78rem;
  }
  #ds2-sec-referrals .ref-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1rem 1rem 0.75rem;
  }
  #ds2-sec-referrals .ref-card__body {
    padding: 0.85rem 1rem 1rem;
  }
  #ds2-sec-referrals .ref-chart-wrap {
    width: calc(100% - 0.9rem);
    max-width: 100%;
    min-width: 0;
    height: 150px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
  }
  #ds2-sec-referrals .ref-donut-wrap {
    width: calc(100% - 0.9rem);
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
  }
  #ds2-sec-referrals .ref-chart-wrap canvas,
  #ds2-sec-referrals .ref-donut-wrap canvas {
    max-width: 100%;
  }
  #ds2-sec-referrals .ref-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  #ds2-sec-referrals .ref-kpi {
    min-width: 0;
    padding: 0.75rem 0.65rem;
    overflow: hidden;
  }
  #ds2-sec-referrals .ref-kpi__val {
    font-size: 0.95rem;
  }
  #ds2-sec-referrals .ref-kpi__label,
  #ds2-sec-referrals .ref-kpi__sub {
    font-size: 0.58rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  #ds2-sec-referrals .ref-subgrid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  #ds2-sec-referrals .ref-card {
    max-width: 100%;
    box-sizing: border-box;
  }
  #ds2-sec-referrals .ref-card__body,
  #ds2-sec-referrals .ref-card__head {
    padding: 0.85rem 0.9rem;
  }
  #ds2-sec-referrals .ref-card__title {
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  #ds2-sec-referrals .ref-products__name,
  #ds2-sec-referrals .ref-activity__text {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  #ds2-sec-referrals .ref-activity__item {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem 0.5rem;
  }
  #ds2-sec-referrals .ref-activity__time {
    margin-left: auto;
    min-width: 0;
  }
  #ds2-sec-referrals .ref-all-modal__controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.75rem 0;
  }
  #ds2-sec-referrals .ref-all-modal__search {
    width: 100%;
    min-width: 0;
  }
  #ds2-sec-referrals .ref-all-modal__filter-pill {
    flex: 1 1 auto;
    text-align: center;
  }
  #ds2-sec-referrals .ref-all-modal__sort-wrap,
  #ds2-sec-referrals .ref-all-modal__filter-select {
    width: 100%;
  }
  #ds2-sec-referrals .ref-all-modal__table-area {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
  }
  #ds2-sec-referrals .ref-table {
    min-width: 520px;
  }
  #ds2-sec-referrals .ref-inline-wrap {
    min-width: 0;
    max-width: 100%;
  }
  .ds2-main {
    min-width: 0;
    overflow-x: clip;
  }
  .ds2-content {
    min-width: 0;
    max-width: 100%;
  }
  .ords-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .loyalty-card__stats {
    grid-template-columns: 1fr 1fr;
  }
  .dash-expiry-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .notif-dropdown {
    position: fixed;
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    width: auto !important;
    max-width: none;
    top: calc(var(--nav-height, 72px) + 0.35rem);
  }
  .dash-stats {
    grid-template-columns: 1fr;
  }
  #ds2-sec-referrals .ref-stats {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile: homepage ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Why diagram — style.css only repositions 2 of 4 nodes; stack all on tablet/mobile */
  .home-page .why__lines {
    display: none;
  }
  .home-page .why__diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    min-width: 0;
  }
  .home-page .why__nodes-track {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
  }
  .home-page .why__node,
  .home-page .why__center {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: stretch !important;
  }
  .home-page .why__node {
    padding: 1.1rem 1rem 0.95rem;
    gap: 0.55rem;
    overflow: hidden;
    animation: none;
    background: rgba(8, 11, 20, 0.94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 rgba(255, 255, 255, 0.04),
      inset 0 -24px 48px -28px rgba(167, 139, 250, 0.35);
  }
  .home-page .why__node::before,
  .home-page .why__node::after {
    display: none;
  }
  .home-page .why__orb {
    width: 68px;
    height: 68px;
    margin-top: -0.35rem;
    margin-bottom: 0;
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.45),
      inset 0 -4px 12px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 24px rgba(0, 207, 255, 0.35);
  }
  .home-page .why__orb::before {
    inset: -6px;
    animation: none;
  }
  .home-page .why__orb::after {
    display: none;
  }
  .home-page .why__orb svg {
    width: 28px;
    height: 28px;
  }
  .home-page .why__center {
    order: -1;
    margin-bottom: 0.5rem;
    overflow: hidden;
    gap: 0.45rem;
  }
  .home-page .why__center-orb {
    width: 88px;
    height: 88px;
    animation: none;
  }
  .home-page .why__center-orb::before,
  .home-page .why__center-orb::after {
    display: none;
  }
  .home-page .why__center-orb svg {
    width: 38px;
    height: 38px;
  }
  .home-page .why__center-title {
    font-size: 1rem;
  }
  .home-page .why__node-title {
    font-size: 1rem;
    line-height: 1.25;
  }
  .home-page .why__node-text {
    font-size: 0.82rem;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .home-page .container-max {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .home-page .section {
    padding-top: clamp(2.5rem, 8vw, 4rem);
    padding-bottom: clamp(2.5rem, 8vw, 4rem);
  }
  .home-page .section__title {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }
  .home-page .section__sub {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  /* Hero */
  .home-page .hero {
    min-height: auto;
    padding: calc(var(--nav-height, 72px) + 1.25rem) 0 2.25rem;
  }
  .home-page .hero__title {
    font-size: clamp(1.85rem, 9vw, 2.65rem);
    line-height: 1.05;
  }
  .home-page .hero__badge {
    display: inline-flex;
    flex-wrap: wrap;
    max-width: 100%;
    font-size: 0.68rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
  }
  .home-page .hero__sub {
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 36ch;
  }
  .home-page .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .home-page .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
  .home-page .hero__meta {
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
    margin-top: 0.25rem;
  }
  .home-page .hero__meta-divider {
    display: none;
  }
  .home-page .hero__meta-item {
    min-width: calc(33.333% - 0.75rem);
  }
  .home-page .hero__meta-num {
    font-size: 1.15rem;
  }
  .home-page .hero__meta-label {
    font-size: 0.62rem;
    line-height: 1.3;
  }
  .home-page .hero__scroll {
    display: none;
  }
  .home-page .hero__ticker {
    flex-wrap: wrap;
    line-height: 1.4;
  }

  /* Trust bar — 3×2 grid instead of horizontal scroll */
  .home-page .trust-bar__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    justify-content: stretch;
  }
  .home-page .trust-bar__item {
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.3rem;
    padding: 0.75rem 0.45rem;
    min-width: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .home-page .trust-bar__item:nth-child(3n) {
    border-right: none;
  }
  .home-page .trust-bar__item:nth-last-child(-n + 3) {
    border-bottom: none;
  }
  .home-page .trust-bar__item--status {
    flex-direction: column;
  }
  .home-page .trust-bar__label {
    display: block;
    font-size: 0.58rem;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }
  .home-page .trust-bar__num {
    font-size: 0.72rem;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
  .home-page .trust-bar__item svg {
    width: 16px;
    height: 16px;
  }

  /* Product carousel */
  .home-page .products__stage {
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
  }
  .home-page .products__slider .owl-stage-outer {
    overflow: hidden;
    padding: 2.5rem 0;
  }

  /* Carousel cards — no rectangular blur/glow halo behind rounded card */
  .home-page .products__slider .owl-item .product-card,
  .home-page .products__slider .owl-item.center .product-card {
    overflow: hidden !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .home-page .products__slider .owl-item .product-card::after,
  .home-page .products__slider .owl-item.center .product-card::after {
    display: none;
  }
  .home-page .products__slider .product-card__lightning {
    display: none !important;
  }
  .home-page .products__slider .product-card__art-shape {
    filter: none !important;
    animation: none !important;
  }

  .home-page .game-filter {
    gap: 0.4rem;
    margin: 1.25rem 0 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }
  .home-page .game-filter::-webkit-scrollbar {
    display: none;
  }
  .home-page .game-filter__btn {
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
  }

  /* Game library grid */
  .home-page .catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.75rem;
  }

  /* Status cards on homepage */
  .home-page .status-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.25rem 0;
  }
  .home-page .status-card {
    padding: 1.2rem 1.1rem;
    min-width: 0;
  }
  .home-page .status-card__value {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    word-break: break-word;
  }
  .home-page .status-card__label {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    line-height: 1.35;
  }
  .home-page .status-card__hint {
    font-size: 0.78rem;
    line-height: 1.45;
  }
  .home-page .status .section__header--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  /* Bento / everything section */
  .home-page .whybento__grid {
    gap: 0.75rem;
    margin-top: 1.75rem;
  }
  .home-page .wbc__visual {
    flex: 0 0 150px;
  }
  .home-page .wbc__body {
    padding: 1.15rem 1.15rem 1.35rem;
  }
  .home-page .wbc__title {
    font-size: 1.15rem;
  }
  .home-page .wbc__text {
    font-size: 0.82rem;
  }
  .home-page .wbc--stat {
    padding: 1rem 1.1rem;
  }

  /* CTA block */
  .home-page .cta__inner {
    padding: clamp(2.5rem, 8vw, 3.5rem) 1rem;
  }
  .home-page .cta__title {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }
}

@media (max-width: 480px) {
  .home-page .trust-bar__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-page .trust-bar__item:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
  .home-page .trust-bar__item:nth-child(2n) {
    border-right: none;
  }
  .home-page .trust-bar__item:nth-last-child(-n + 3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .home-page .trust-bar__item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
  .home-page .catalog__grid {
    grid-template-columns: 1fr;
  }
  .home-page .hero__meta-item {
    min-width: calc(50% - 0.55rem);
  }
}

/* ── Mobile base: 360px+ ──────────────────────────────────────── */
@media (max-width: 768px) {
  .container-max {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Trust bar — solid bg, no hero bleed-through */
  .trust-bar {
    background: rgb(8, 11, 20);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
    overflow: hidden;
  }

  /* Why nodes — vertical stack on phones (no horizontal scroll) */
  .home-page .why__nodes-track {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .home-page .why__node {
    flex: none;
    width: 100%;
    scroll-snap-align: none;
    overflow: hidden;
    padding: 1rem 0.95rem 0.9rem;
    gap: 0.5rem;
    background: rgba(8, 11, 20, 0.96);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 rgba(255, 255, 255, 0.04),
      inset 0 -20px 40px -26px rgba(167, 139, 250, 0.3);
  }
  .home-page .why__orb {
    width: 60px;
    height: 60px;
    margin-top: 0;
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.45),
      inset 0 -4px 12px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 18px rgba(0, 207, 255, 0.28);
  }
  .home-page .why__orb::before {
    display: none;
  }
  .home-page .why__orb::after {
    display: none;
  }
  .home-page .why__orb svg {
    width: 26px;
    height: 26px;
  }
  .home-page .why__node-num {
    font-size: 0.58rem;
    gap: 0.35rem;
  }
  .home-page .why__node-num::before,
  .home-page .why__node-num::after {
    width: 12px;
  }
  .home-page .why__node-title {
    font-size: 0.95rem !important;
    line-height: 1.22 !important;
  }
  .home-page .why__node-text {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    max-width: none;
  }
  .home-page .why__center {
    margin-bottom: 0.5rem;
    padding: 0;
    gap: 0.45rem;
    overflow: hidden;
  }
  .home-page .why__center-orb {
    width: 88px;
    height: 88px;
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.45),
      inset 0 -6px 18px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.16),
      0 0 28px rgba(0, 207, 255, 0.3);
    animation: none;
  }
  .home-page .why__center-orb::before,
  .home-page .why__center-orb::after {
    display: none;
  }
  .home-page .why__center-orb svg {
    width: 32px;
    height: 32px;
  }
  .home-page .why__center-title {
    font-size: 0.88rem;
    margin-bottom: 0;
  }
  .home-page .why__diagram {
    padding: 0.25rem 0 0;
    gap: 0;
  }

  /* Status cards — always 1 column on phones */
  .status-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
    padding-left: 0;
    padding-right: 0;
  }
  .status-card {
    min-width: 0;
    padding: 1.15rem 1rem;
  }
  .status-card__value {
    font-size: clamp(1.65rem, 7.5vw, 2.15rem) !important;
    overflow-wrap: anywhere;
  }
  .status-card__label {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  /* CTA fullbleed title — no horizontal clip */
  .cta--fullbleed .cta__title {
    font-size: clamp(1.55rem, 8.5vw, 2.35rem) !important;
    line-height: 1.02 !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .cta--fullbleed .cta__content {
    align-items: stretch;
    padding-left: 0;
    padding-right: 0;
  }
  .cta--fullbleed .cta__sub {
    font-size: 0.88rem;
    max-width: 100%;
  }
  .cta--fullbleed .cta__btn {
    width: 100%;
    justify-content: center;
  }

  /* Why nodes — kill sweep glow bleed on mobile */
  .why__node::before,
  .why__node::after {
    display: none;
  }

  /* Catalog filters — single scrollable row */
  .products-page .pfilter-bar .container-max.pfilter-bar__inner {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
  }
  .products-page .pfilter-bar .container-max.pfilter-bar__inner::-webkit-scrollbar {
    display: none;
  }
  .products-page .pfilter-group,
  .products-page .pfilter-search-wrap,
  .products-page .pfilter-controls {
    display: flex;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
  }
  .products-page .pfilter-pill {
    flex-shrink: 0;
    padding: 0.38rem 0.75rem;
    font-size: 0.72rem;
  }
  .products-page .pfilter-search-wrap {
    flex-shrink: 0;
  }
  .products-page .pfilter-search {
    min-width: 132px;
    width: 132px;
    flex-shrink: 0;
  }
  .products-page .pfilter-select {
    min-width: 100px;
    flex: 0 0 auto !important;
    font-size: 0.72rem;
    padding-right: 1.6rem;
  }
  .products-page .pfilter-bar {
    padding: 0.45rem 0;
    overflow: hidden;
  }

  /* Catalog product grid */
  .products-page .pgrid {
    gap: 0.85rem;
  }
  .pgrid-card {
    min-width: 0;
    isolation: isolate;
    overflow: hidden;
    border-radius: 18px;
    clip-path: inset(0 round 18px);
    box-shadow: none !important;
    transform: none !important;
  }
  .pgrid-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.08);
  }
  .pgrid-card__art {
    height: 132px;
    border-radius: 0;
    overflow: hidden;
    background: transparent !important;
  }
  .pgrid-card__art .product-card__art-grid {
    display: none;
  }
  .pgrid-card__art .product-card__art-shape {
    filter: none !important;
    width: 46%;
    max-width: 120px;
  }
  .products-page .pgrid-card {
    min-width: 0;
  }

  /* Footer tiles */
  .footer {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
  }
  .footer__container {
    grid-template-columns: 1fr !important;
    gap: 0.65rem;
    padding-bottom: 0.25rem;
  }
  .footer__tile {
    padding: 1.25rem 1rem;
    min-width: 0;
    animation: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.10),
      inset 0 -1px 0 rgba(255, 255, 255, 0.02),
      inset 0 -28px 52px -26px rgba(var(--tile-rgb), 0.5);
  }
  .footer__tile:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 rgba(255, 255, 255, 0.03),
      inset 0 -32px 58px -24px rgba(var(--tile-rgb), 0.65);
  }
  .footer__tile .footer__col-title {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
    padding-right: 2rem;
  }
  .footer__pay-panel {
    margin-top: 0;
    padding-top: 0.85rem;
    padding-bottom: 0.5rem;
  }
  .footer__bottom {
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .footer > .footer__bottom {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  .home-page .hero__title {
    font-size: clamp(1.65rem, 8.5vw, 2.35rem) !important;
    line-height: 1.02;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ── Profile drawer + charts: tablet/mobile (≤1024) ─────────── */
@media (max-width: 1024px) {
  body.is-cabinet {
    overflow-x: clip;
    --ds2-offset: var(--nav-height, 72px);
  }
  body.is-cabinet .menu__opener,
  body.is-cabinet .navbar__actions > a.navbar__icon-btn[href="/profile"] {
    display: none !important;
  }
  body.is-cabinet .ds2-app {
    overflow-x: clip;
    margin-top: var(--ds2-offset);
    min-height: calc(100vh - var(--ds2-offset));
    min-height: calc(100dvh - var(--ds2-offset));
  }
  .ds2-main {
    min-width: 0;
    overflow-x: clip;
  }
  .ds2-mobilebar {
    position: sticky;
    top: var(--ds2-offset);
    z-index: 45;
    margin: 0;
    flex-shrink: 0;
    min-height: var(--ds2-mobilebar-h);
    box-sizing: border-box;
  }
  .ds2-main .dash-hero {
    display: none !important;
  }
  .ds2-content {
    padding-top: 0.65rem;
  }
  .ds2-content,
  .ds2-main .container-max {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    min-width: 0;
    max-width: 100%;
  }
  body.is-cabinet .ds2-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(4, 6, 12, 0.72);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  body.is-cabinet .ds2-nav-backdrop--open {
    opacity: 1;
    pointer-events: auto;
  }
  body.is-cabinet .ds2-app .ds2-sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0 !important;
    left: 0;
    z-index: 120;
    width: min(280px, 88vw);
    max-width: 88vw;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0;
    padding-top: calc(var(--ds2-offset) + 0.35rem);
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 11, 20, 0.98);
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.55);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.is-cabinet .ds2-app .ds2-sidebar:not(.ds2-sidebar--open) {
    pointer-events: none;
  }
  body.is-cabinet .ds2-app .ds2-sidebar--open {
    transform: translateX(0);
  }
  body.is-cabinet .ds2-app .ds2-sidebar__user {
    padding: 0.65rem 0.55rem;
    margin: 0 0.5rem 0.65rem;
    align-items: center;
    min-width: 0;
  }
  body.is-cabinet .ds2-app .ds2-sidebar__user > div:last-child {
    min-width: 0;
    flex: 1;
  }
  body.is-cabinet .ds2-app .ds2-sidebar__name {
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.is-cabinet .ds2-app .ds2-sidebar__email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  body.is-cabinet .ds2-app .ds2-sidebar__footer {
    margin-top: auto;
    padding-top: 0.75rem;
  }
  body.ds2-nav-locked {
    overflow: hidden;
    touch-action: none;
  }
  .dash-hero {
    display: none;
  }
  .ords-analytics {
    padding: 1rem 0.85rem;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
  }
  .ords-analytics__charts {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  .ords-analytics__card {
    min-width: 0;
    overflow: hidden;
    padding: 0.85rem 0.75rem;
  }
  .ords-analytics__canvas {
    height: 150px;
    max-width: 100%;
    overflow: hidden;
  }
  .ords-analytics__canvas canvas {
    max-width: 100% !important;
  }
  .ords-analytics__donut-row {
    flex-direction: column;
    align-items: stretch;
  }
  .ords-analytics__canvas--donut {
    width: 100% !important;
    flex: none !important;
    max-width: 100%;
  }
  .ords-analytics__kpis {
    grid-template-columns: 1fr !important;
  }
  #ds2-sec-referrals .ref-chart-wrap,
  #ds2-sec-referrals .ref-donut-wrap {
    width: calc(100% - 0.9rem);
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
  }
  #ds2-sec-referrals .ref-chart-wrap {
    height: 150px;
  }
  #ds2-sec-referrals .ref-chart-wrap canvas,
  #ds2-sec-referrals .ref-donut-wrap canvas {
    max-width: 100%;
  }
  #ds2-sec-referrals .ref-card__head {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

@media (max-width: 560px) {
  .products-page .pfilter-controls {
    width: auto !important;
  }
  .products-page .pfilter-select {
    flex: 0 0 auto !important;
    min-width: 96px !important;
  }
}

/* ── Top-up modal: balance row ─────────────────────────────────── */
.topup-modal__current {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}
.topup-modal__current > svg {
  flex-shrink: 0;
}
.topup-modal__current-label {
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.topup-modal__current #topup-current-bal {
  color: #10d9a0;
  font-size: 0.9rem;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .topup-modal-bg {
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding:
      max(0.85rem, env(safe-area-inset-top, 0px))
      max(0.65rem, env(safe-area-inset-right, 0px))
      max(1rem, env(safe-area-inset-bottom, 0px))
      max(0.65rem, env(safe-area-inset-left, 0px));
  }
  .topup-modal-bg.open .topup-modal {
    transform: none;
  }
  .topup-modal {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.15rem 0.9rem 1.35rem;
    border-radius: 16px;
    box-sizing: border-box;
  }
  .topup-modal__header {
    margin-bottom: 1rem;
    padding-right: 2.25rem;
  }
  .topup-modal__title {
    font-size: 1rem;
    line-height: 1.3;
  }
  .topup-modal__sub {
    line-height: 1.45;
  }
  .topup-modal__close {
    top: 0.65rem;
    right: 0.65rem;
  }
  .topup-presets {
    gap: 0.4rem;
  }
  .topup-preset {
    flex: 1 1 calc(25% - 0.35rem);
    min-width: 0;
    padding: 0.55rem 0.25rem;
    font-size: 0.78rem;
  }
  .topup-method-btns {
    flex-direction: column;
  }
  .topup-method-btn {
    width: 100%;
  }
  .topup-confirm-btn {
    font-size: 0.88rem;
    padding: 0.85rem 0.75rem;
    line-height: 1.35;
  }
  .topup-modal__current {
    padding: 0.65rem 0.75rem;
    flex-wrap: nowrap;
  }
}

/* ── Mobile header (360px+) ───────────────────────────────────── */
@media (max-width: 480px) {
  body.is-cabinet .navbar__support {
    display: inline-flex;
  }
  body.is-cabinet .navbar__actions .cart-wrap {
    order: 5;
  }
  .navbar .container-max {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
  .navbar__container {
    gap: 0.35rem;
  }
  .navbar__actions {
    gap: 0.2rem;
  }
  .navbar__support {
    display: none;
  }
  .navbar__balance {
    order: 1;
    padding: 0 7px;
    font-size: 0.68rem;
    max-width: 4.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .navbar__balance > svg {
    display: none;
  }
  .cart-dropdown {
    position: fixed;
    left: max(0.65rem, env(safe-area-inset-left, 0px));
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    width: auto !important;
    max-width: none;
    top: calc(var(--nav-height, 60px) + 0.35rem);
  }
}

/* ── Checkout mobile ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .co2-main {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }
  .co2-steps {
    padding: 0 0.75rem;
    max-width: 100%;
  }
  .co2-step__l {
    font-size: 0.62rem;
  }
  .co2-head,
  .co2-wrap {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .co2-panel {
    padding: 1rem;
    border-radius: 16px;
  }
  .co2-item {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.85rem 0;
  }
  .co2-item__art {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    border-radius: 10px;
  }
  .co2-item__main {
    flex: 1 1 calc(100% - 52px);
    min-width: 0;
  }
  .co2-item__name {
    flex-wrap: wrap;
    font-size: 0.86rem;
    line-height: 1.35;
    gap: 0.35rem;
  }
  .co2-pill {
    font-size: 0.55rem;
    padding: 2px 6px;
  }
  .co2-durs {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .co2-dur {
    padding: 4px 8px;
    font-size: 0.68rem;
  }
  .co2-item__right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 1 1 100%;
    text-align: left;
    border-top: 1px solid var(--gaming-border);
    padding-top: 0.65rem;
    margin-top: 0.15rem;
  }
  .co2-item__rm {
    margin-top: 0;
  }
  .co2-xsell {
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .co2-xsell__add {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
  .co2-promo {
    flex-direction: column;
  }
  .co2-promo button {
    width: 100%;
    padding: 0.65rem;
  }
  .co2-sum-total .v {
    font-size: 1.45rem;
  }
}

/* ── Loyalty: 2 tiers per row on mobile ──────────────────────── */
@media (max-width: 640px) {
  .loyalty-card {
    padding: 1.1rem 1rem;
  }
  .loyalty-card__header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .loyalty-card__discount-col {
    margin-left: auto;
  }
  .loyalty-card__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }
  .loyalty-card__roadmap {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.55rem;
  }
  .loyalty-card__road-item {
    padding: 0.65rem 0.4rem;
  }
  .loyalty-card__road-name {
    font-size: 0.58rem;
    text-align: center;
  }
}

/* ── Dashboard tables: horizontal scroll ───────────────────────── */
.ords-table-wrap,
.ref-all-modal__table-area {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.ords-table {
  min-width: 520px;
}

@media (max-width: 640px) {
  #ds2-sec-referrals .ref-table {
    min-width: 480px;
  }
  #ds2-sec-referrals {
    overflow-x: hidden;
    max-width: 100%;
  }
  #ds2-sec-referrals .ref-container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  #ds2-sec-referrals .ref-grid {
    min-width: 0;
    gap: 1rem;
  }
  #ds2-sec-referrals .ref-card,
  #ds2-sec-referrals .ref-sidebar {
    min-width: 0;
    overflow: hidden;
    max-width: 100%;
  }
  #ds2-sec-referrals .ref-sidebar .ref-widget {
    max-width: 100%;
  }
  #ds2-sec-referrals .ref-funnel__top {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  #ds2-sec-referrals .ref-funnel__name,
  #ds2-sec-referrals .ref-funnel__num {
    font-size: 0.72rem;
  }
  #ds2-sec-referrals .ref-legend__row {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  #ds2-sec-referrals .ref-inline-wrap {
    margin-top: 1rem;
    max-width: 100%;
    overflow: hidden;
  }
  #ds2-sec-referrals .ref-inline-panel__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.75rem 0;
  }
  #ds2-sec-referrals div.ref-all-modal__search {
    min-width: 0;
    width: 100%;
  }
}
