:root {
  color-scheme: dark;
  --bg: #0a0c11;
  --surface: #14171f;
  --surface-hover: #1b1f2a;
  --border: #262b38;
  --text: #eef0f4;
  --muted: #8b93a6;
  --accent: #ff6b35;
  --accent-2: #ff9142;
  --accent-glow: rgba(255, 107, 53, 0.25);
  --purple: #8847ff;
  --green: #3ddc84;
  --blue: #4a9eff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 107, 53, 0.08), transparent),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

/* Visible only when focused (keyboard/AT users tabbing from the top of the
   page) - lets them jump past the header (brand, game switcher, auth) straight
   to <main>. */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #100a05;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 11;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 17, 0.85);
  backdrop-filter: blur(10px);
}

.site-header__auth {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.site-header__auth:hover {
  color: var(--text);
}

.site-header__brand {
  order: 1;
}

.site-header__account {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  order: 2;
}

/* Sits between the brand and auth links on desktop (order set below); on a
   narrow header it doesn't fit alongside both, so it drops to its own
   full-width line under them instead (order: 3, flex-basis: 100%). */
.game-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  order: 3;
  flex-basis: 100%;
}

@media (min-width: 880px) {
  .game-switcher {
    order: 2;
    flex-basis: auto;
    flex: 1 1 auto;
  }

  .site-header__account {
    order: 3;
  }
}

.game-switcher__link {
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.game-switcher__link:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.game-switcher__link--active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #100a05;
}

.game-switcher__link--active:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #100a05;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.site-header__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #100a05;
  font-weight: 900;
  box-shadow: 0 0 20px var(--accent-glow);
}

main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

/* Catalog: sidebar (filters) + content, side by side once there's room for
   both without squeezing the grid below its 2-column breakpoint. */
.catalog-layout {
  display: block;
}

@media (min-width: 960px) {
  .catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: start;
    gap: 1.25rem;
  }

  /* 80px clears .site-header (sticky, ~61px tall) plus a small gap once
     scrolled past .game-switcher, which isn't sticky itself. */
  .catalog-sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
}

.catalog-content {
  /* Lets .skin-grid react to the space actually left by the sidebar,
     not the viewport width - see the @container rules below. */
  container-type: inline-size;
}

@media (min-width: 960px) {
  .catalog-sidebar .filters-form {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-sidebar .filters-form input[type="search"],
  .catalog-sidebar .filters-form select,
  .catalog-sidebar .filters-form button {
    flex: 1 1 auto;
    width: 100%;
  }

  .catalog-sidebar .chips {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    margin-bottom: 1.5rem;
  }

  .catalog-sidebar .chip {
    text-align: center;
  }
}

/* Hero */

.hero {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, #c9cddb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Landing page */

.landing-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.landing-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, #c9cddb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero__subtitle {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
}

.landing-hero__marketplaces {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.landing-hero__marketplaces .badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
}

.game-card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .game-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .game-card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .game-card {
    padding: 1.75rem 1.25rem;
  }

  .game-card__count-number {
    font-size: 1.6rem;
  }
}

.game-card {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-accent, var(--accent));
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* Soft glow blob in the top-right corner, tinted per game via --card-accent -
   pure CSS, no artwork needed for a per-game visual identity. */
.game-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--card-accent, var(--accent));
  opacity: 0.16;
  filter: blur(10px);
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent, var(--accent));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.game-card--cs2 { --card-accent: var(--accent); }
.game-card--rust { --card-accent: #c96a3a; }
.game-card--tf2 { --card-accent: var(--blue); }
.game-card--dota2 { --card-accent: var(--purple); }

.game-card__name {
  position: relative;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.game-card__count {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.game-card__count-number {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--card-accent, var(--accent));
}

.game-card__count-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.game-card__cta {
  position: relative;
  font-weight: 700;
  color: var(--card-accent, var(--accent));
}

/* Landing page skins showcase */

.home-showcase {
  padding-bottom: 3rem;
}

.home-showcase__title {
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.home-showcase__game {
  margin-bottom: 2rem;
  /* .skin-grid's @container rules (below, shared with the catalog) only kick
     in under a container-type: inline-size ancestor - without one they never
     match in a browser that supports container queries, leaving the grid
     stuck at one column regardless of viewport width. */
  container-type: inline-size;
}

.home-showcase__game-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.home-showcase__game-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-showcase__game-link {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-2);
  text-decoration: none;
}

.home-showcase__game-link:hover {
  text-decoration: underline;
}

.hero__subtitle {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
}

/* Category chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: #3a4152;
  color: var(--text);
}

.chip--active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #100a05;
}

/* Filters */

.filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 2rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.filters-form input[type="search"] {
  flex: 1 1 100%;
  min-width: 0;
}

.filters-form select {
  flex: 1 1 160px;
  min-width: 140px;
}

.filters-form button {
  flex-shrink: 0;
}

.filters-form input[type="search"],
.filters-form select {
  padding: 0.65rem 0.8rem;
  background: #0e1017;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  font-size: 0.9rem;
}

.filters-form input[type="search"]:focus,
.filters-form select:focus {
  outline: none;
  border-color: var(--accent);
}

.filters-form__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.9rem;
  cursor: pointer;
}

.filters-form__toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filters-form__toggle-track {
  position: relative;
  width: 40px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  /* #333a4d/#454d63 previously here read at ~1.6:1/~2.1:1 against --surface -
     under WCAG 1.4.11's 3:1 minimum for UI components, so the unchecked switch
     was nearly invisible. */
  background: #5f6980;
  border: 1px solid #7b859c;
  transition: background 0.2s, border-color 0.2s;
}

.filters-form__toggle-track::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef0f4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background 0.2s;
}

.filters-form__toggle input:checked + .filters-form__toggle-track {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: var(--accent);
}

.filters-form__toggle input:checked + .filters-form__toggle-track::before {
  transform: translateX(16px);
  background: #ffffff;
}

.filters-form__toggle-label {
  color: var(--text);
}

.filters-form__toggle input:focus-visible + .filters-form__toggle-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filters-form button {
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #100a05;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.filters-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* Price slider: two overlapping native <input type="range"> thumbs (browsers
   only support one handle per <input>), positioned on a log scale in
   views/catalog.js/public/app.js - prices span cents to tens of thousands of
   euros, and a linear scale would bunch almost everything at the left edge. */
.price-slider {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.price-slider__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--muted);
}

.price-slider__value {
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
}

.price-slider__track {
  position: relative;
  height: 28px;
}

.price-slider__track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #0e1017;
  border: 1px solid var(--border);
}

.price-slider__fill {
  position: absolute;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.price-slider__range {
  position: absolute;
  top: 0;
  /* A native range thumb's travel is inset by half its own width from the
     input's edges (its center never reaches the input's bounds) - widen the
     input by the thumb's radius on each side so position 0/1000 lands the
     thumb exactly on the track's edges instead of ~8px short of them. */
  left: -8px;
  width: calc(100% + 16px);
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

.price-slider__range--min {
  z-index: 1;
}

.price-slider__range--max {
  z-index: 2;
}

.price-slider__range::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  background: transparent;
  border: none;
  box-shadow: none;
  /* -webkit-appearance: none drops Chrome's own track sizing, so without an
     explicit height here the thumb's margin-top below (used to center it,
     since Chrome positions a webkit thumb from the track's top rather than
     centering it automatically) is centering against an undefined height
     instead of this input's actual 28px. */
  height: 28px;
}

.price-slider__range::-moz-range-track {
  background: transparent;
  border: none;
}

.price-slider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--accent);
  cursor: pointer;
  /* The ring is the same orange as the fill it sits on, so without this halo
     the ring's edge facing the filled side of the track visually disappears
     into it - looks like an off-center thumb even though it's centered. */
  box-shadow: 0 0 0 3px var(--surface), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.price-slider__range::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--surface), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.price-slider__range:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.price-slider__range:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skin grid + cards */

/* Fixed column counts (all divisors of the page size, 30 skins/page) so the
   last row of a full page never ends half-empty while more pages remain. */
.skin-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@container (min-width: 480px) {
  .skin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@container (min-width: 680px) {
  .skin-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@container (min-width: 900px) {
  .skin-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Outside .catalog-content (no container-size ancestor, e.g. if reused
   elsewhere) container queries never match - fall back to viewport-based
   breakpoints so the grid still responds. */
@supports not (container-type: inline-size) {
  @media (min-width: 560px) {
    .skin-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 760px) {
    .skin-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (min-width: 1000px) {
    .skin-grid {
      grid-template-columns: repeat(5, 1fr);
    }
  }
}

.skin-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.skin-card:hover {
  transform: translateY(-3px);
  border-color: #3a4152;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.skin-card__media {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #1c2130, #0d0f15);
  padding: 0.75rem;
}

.skin-card__img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  display: block;
}

.skin-card__img--placeholder {
  background: linear-gradient(135deg, #1a1e29, #12141c);
  border-radius: 6px;
}

.skin-card__body {
  padding: 0.85rem 0.9rem 0.4rem;
  flex: 1;
}

.skin-card__weapon {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.skin-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.skin-card__wear {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.skin-card__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--border);
}

.skin-card__label {
  color: var(--muted);
  font-size: 0.75rem;
}

.skin-card__price {
  color: var(--accent-2);
  font-weight: 800;
  font-size: 1.05rem;
}

.skin-card__price--none {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.skin-card--no-offer .skin-card__media {
  opacity: 0.6;
}

.skin-card__offers-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.75);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge--game {
  background: var(--surface-hover);
  color: var(--muted);
  border: 1px solid var(--border);
}

.badge--stattrak {
  background: rgba(255, 145, 66, 0.15);
  color: var(--accent-2);
}

.badge--souvenir {
  background: rgba(255, 209, 102, 0.15);
  color: #ffd166;
}

.badge--best {
  background: rgba(61, 220, 132, 0.15);
  color: var(--green);
}

.badge--provider {
  background: var(--surface-hover);
  color: var(--text);
  border: 1px solid var(--border);
}

.badge--skinport {
  border-color: rgba(255, 107, 53, 0.4);
  color: var(--accent-2);
}

.badge--waxpeer {
  border-color: rgba(61, 220, 132, 0.4);
  color: var(--green);
}

.badge--cstrade {
  border-color: rgba(74, 158, 255, 0.4);
  color: var(--blue);
}

.badge--lootfarm {
  border-color: rgba(136, 71, 255, 0.4);
  color: var(--purple);
}

.badge--marketcsgo {
  border-color: rgba(232, 185, 35, 0.4);
  color: #e8b923;
}

.badge--dmarket {
  border-color: rgba(0, 194, 203, 0.4);
  color: #00c2cb;
}

/* Pagination */

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination__link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.pagination__link:hover {
  text-decoration: underline;
}

/* Skin detail */

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.detail-header .back-link {
  margin-bottom: 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.skin-hero {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.skin-hero__img {
  width: 180px;
  height: 140px;
  object-fit: contain;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 30%, #1c2130, #0d0f15);
  border-radius: 10px;
}

.skin-hero__weapon {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.skin-hero__info h1 {
  margin: 0 0 0.2rem;
  font-size: 1.7rem;
}

.skin-hero__wear {
  color: var(--muted);
  font-size: 0.9rem;
}

.skin-hero__best {
  margin-top: 0.8rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-2);
}

.skin-hero__best span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.freshness-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.price-history {
  margin-top: 1.5rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.price-history__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.price-history__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.price-history__tabs {
  display: flex;
  gap: 0.4rem;
}

.price-history__tabs button {
  background: var(--surface-hover);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.price-history__tabs button[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--accent);
}

.price-history__chart {
  margin-top: 0.9rem;
}

.price-history__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.price-history__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.price-history__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.price-history__plot {
  display: flex;
  gap: 0.5rem;
}

.price-history__y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 10px 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.price-history__plot-area {
  position: relative;
  flex: 1;
  min-width: 0;
}

.price-history__plot-area svg {
  width: 100%;
  height: 220px;
  display: block;
  cursor: crosshair;
}

.price-history__gridline {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.price-history__x-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.price-history__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  pointer-events: none;
}

.price-history__tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.6rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.price-history__tooltip[hidden] {
  display: none;
}

.price-history__tooltip-provider,
.price-history__tooltip-date {
  color: var(--muted);
}

.offer-row--best {
  border-color: rgba(61, 220, 132, 0.4);
  background: linear-gradient(90deg, rgba(61, 220, 132, 0.06), transparent 40%), var(--surface);
}

.offer-row__provider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 180px;
}

.offer-row__price {
  font-weight: 800;
  font-size: 1.1rem;
  flex: 1;
  text-align: right;
}

.offer-row__price-converted {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted, #8a8f98);
}

.offer-row__cta {
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #100a05;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.offer-row__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 2rem;
}

.price-alert {
  margin-top: 1.5rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.price-alert h2 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.price-alert p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-alert__message {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.price-alert__message--ok {
  background: rgba(61, 220, 132, 0.1);
  color: var(--text);
}

.price-alert__message--error {
  background: rgba(220, 61, 61, 0.1);
  color: var(--text);
}

.price-alert__form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.9rem;
}

.price-alert__form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.price-alert__form input,
.price-alert__form select {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  color: var(--text);
  font-size: 0.9rem;
}

.price-alert__form button {
  padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #100a05;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-alert__form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.price-alert__legal {
  margin-top: 0.7rem;
  font-size: 0.75rem;
}

.price-alert__legal a {
  color: var(--muted);
}

/* Portfolio */

.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.2rem 0;
}

.portfolio-summary__card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.portfolio-summary__label {
  color: var(--muted);
  font-size: 0.8rem;
}

.portfolio-summary__value {
  font-weight: 800;
  font-size: 1.3rem;
}

.portfolio-summary__value small {
  margin-left: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}

.badges-section {
  margin: 1.2rem 0;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.9rem;
}

.badge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}

.badge-card__info {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.badge-card__info summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.badge-card__info summary::-webkit-details-marker {
  display: none;
}

.badge-card__info summary::marker {
  content: "";
}

.badge-card__info summary:hover,
.badge-card__info[open] summary {
  color: var(--text);
}

.badge-card__info p {
  position: absolute;
  top: 1.6rem;
  right: 0;
  z-index: 5;
  width: 180px;
  margin: 0;
  padding: 0.55rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
  text-align: left;
}

.badge-card__icon {
  font-size: 1.6rem;
  filter: grayscale(1);
  opacity: 0.5;
}

.badge-card__name {
  font-weight: 700;
}

.badge-card__tier {
  font-size: 0.8rem;
  color: var(--muted);
}

.badge-card__progress {
  font-size: 0.75rem;
  color: var(--muted);
}

.badge-card--bronze .badge-card__icon,
.badge-card--silver .badge-card__icon,
.badge-card--gold .badge-card__icon,
.badge-card--platinum .badge-card__icon {
  filter: none;
  opacity: 1;
}

.badge-card--bronze .badge-card__tier {
  color: #cd7f32;
}

.badge-card--silver .badge-card__tier {
  color: #b0b8c1;
}

.badge-card--gold .badge-card__tier {
  color: #ffd166;
}

.badge-card--platinum .badge-card__tier {
  color: var(--accent-2);
}

.portfolio-pnl--positive {
  color: var(--green);
}

.portfolio-pnl--negative {
  color: #ff6b6b;
}

.portfolio-items {
  margin-top: 1.5rem;
}

.portfolio-items h2 {
  font-size: 1.05rem;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 2.4fr repeat(5, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.portfolio-item--head {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0 0.9rem;
}

/* Clickable column header (see views/market.js sortHeaderLink) - a <button>
   (form="market-filters", same reasoning as gameChips/periodChips: submitting
   the filter form's live field values instead of a stale <a href>), reset to
   read as plain header text until hovered/active so a sortable column doesn't
   visually shout over the others. */
.portfolio-item__col-sort {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.portfolio-item__col-sort:hover {
  color: var(--text);
}

.portfolio-item__col-sort--active {
  color: var(--text);
  font-weight: 700;
}

.portfolio-item__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.portfolio-item__img {
  width: 44px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.portfolio-item__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}

.portfolio-item__game {
  color: var(--muted);
  font-size: 0.72rem;
}

.portfolio-item__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-item__col {
  text-align: right;
}

.portfolio-item__col small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Same row style as the portfolio, but with only a name column plus
   Variation/Volatility (see views/market.js) - no quantity/price/date/actions
   columns, so the grid needs fewer tracks than the base .portfolio-item. */
.portfolio-item--market {
  grid-template-columns: 2.4fr 1fr 1fr;
}

/* Same idea as .portfolio-item--market, but for the price-spread section (see
   views/market.js spreadItem) - one extra column (low price+source, high
   price+source, spread%), and the price cells get more room since each holds
   a price plus a provider badge. */
.portfolio-item--spread {
  grid-template-columns: 2.2fr 1.3fr 1.3fr 0.8fr;
}

/* "Plus fortes variations" vs. "Écarts de prix" - only one section renders
   at a time (see views/market.js marketPage), switched via these tabs rather
   than shown side by side or stacked, since each table needs full width to
   not crowd its own columns. */
.market-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.market-tabs__tab {
  padding: 0.75rem 1rem;
  margin-bottom: -1px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.market-tabs__tab:hover {
  color: var(--text);
}

.market-tabs__tab--active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.portfolio-item__remove {
  margin: 0;
}

.portfolio-item__remove button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.portfolio-item__remove button:hover {
  color: #ff6b6b;
  border-color: #ff6b6b;
}

/* Shares the grid's last (auto-width) column with the remove button, in place
   of that button alone - the "Modifier" disclosure and the × both belong to the
   same trailing action slot. */
.portfolio-item {
  position: relative;
}

.portfolio-item__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portfolio-item__edit {
  position: relative;
}

.portfolio-item__edit summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
  list-style: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.portfolio-item__edit summary::-webkit-details-marker {
  display: none;
}

.portfolio-item__edit summary:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Floats below-right instead of pushing the row's height/grid around when
   opened - same idea as a dropdown menu, positioned off the disclosure itself
   rather than the whole row so it stays anchored next to where it was opened. */
.portfolio-item__edit .price-alert__form {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 5;
  margin-top: 0.5rem;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  min-width: 280px;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .portfolio-summary {
    grid-template-columns: 1fr;
  }

  .portfolio-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .portfolio-item__col {
    text-align: left;
  }

  .portfolio-item--head {
    display: none;
  }

  .portfolio-item__actions {
    justify-content: space-between;
  }

  /* The row already stacks to one column here, so the popover positioning
     above (meant to float clear of a multi-column row) would just overflow off
     the edge of a narrow screen - drop back to a plain inline block instead. */
  .portfolio-item__edit .price-alert__form {
    position: static;
    margin-top: 0.6rem;
    min-width: 0;
    box-shadow: none;
  }
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 2.5rem 2.4fr repeat(3, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.leaderboard-row--head {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0 0.9rem;
}

.leaderboard-row__rank {
  color: var(--muted);
  font-weight: 600;
}

.leaderboard-row__player {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.leaderboard-row__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.leaderboard-row__avatar--placeholder {
  background: var(--border);
}

.leaderboard-row__col {
  text-align: right;
}

.leaderboard-row__col--gain {
  color: #6fcf97;
  font-weight: 600;
}

.leaderboard-row__col--loss {
  color: #eb5757;
  font-weight: 600;
}

@media (max-width: 720px) {
  .leaderboard-row {
    grid-template-columns: 2rem 1fr;
    text-align: left;
  }

  .leaderboard-row__col {
    text-align: left;
  }

  .leaderboard-row--head {
    display: none;
  }
}

.alert-status {
  max-width: 480px;
  margin: 3rem auto;
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* Player profile ("carte de visite") */

.player-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.player-header__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.player-sniper {
  margin-top: 1.5rem;
}

.public-profile-section {
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.public-profile-section p {
  color: var(--muted);
  margin: 0.3rem 0 0.8rem;
}

/* API B2B */

.api-b2b__intro {
  padding: 2rem 0 1rem;
  text-align: center;
  position: relative;
}

.api-b2b__lang {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.api-b2b__lang a {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: var(--muted);
}

.api-b2b__lang a[aria-current="true"] {
  color: var(--text);
  background: var(--surface-hover);
  font-weight: 700;
}

.api-b2b__intro h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.api-b2b__intro p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
}

.api-b2b__plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.api-b2b__plan {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.api-b2b__plan--highlight {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.api-b2b__plan h2 {
  margin: 0 0 0.5rem;
}

.api-b2b__price {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  font-weight: 800;
}

.api-b2b__price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.api-b2b__features {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.api-b2b__manage,
.api-b2b__docs {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.api-b2b__docs h3 {
  margin-top: 1.5rem;
}

.api-b2b__docs pre {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

.api-b2b__docs code {
  font-family: "Consolas", "Menlo", monospace;
}

.api-b2b__endpoints {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.api-b2b__endpoints th,
.api-b2b__endpoints td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

/* Reference page (views/proDocs.js) - reuses the .api-b2b__docs card and
   .api-b2b__endpoints table from the landing, adds what only the long-form
   reference needs: a table of contents, per-endpoint blocks and value chips. */
.api-doc__back {
  color: var(--accent);
}

.api-doc__toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  font-size: 0.9rem;
}

.api-doc__toc a {
  color: var(--muted);
  text-decoration: none;
}

.api-doc__toc a:hover {
  color: var(--accent);
}

.api-doc__endpoint {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  /* Anchored from the table of contents and from the email, so keep the heading
     clear of the sticky-free but still cramped viewport top. */
  scroll-margin-top: 1rem;
}

.api-doc__endpoint h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 1rem;
}

.api-doc__endpoint h4 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.05rem;
}

.api-doc__endpoint h5 {
  margin: 1.4rem 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.api-doc__method {
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.api-doc__callout {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--surface-hover);
  font-size: 0.9rem;
}

.api-doc__chips {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.api-doc__chips strong {
  min-width: 11rem;
  color: var(--muted);
  font-weight: 500;
}

.api-doc__chips code {
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-hover);
  font-size: 0.8rem;
}

.api-b2b__docs-cta {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.api-b2b__docs-cta:hover {
  text-decoration: underline;
}

.api-b2b__form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.9rem;
}

.api-b2b__form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}

.api-b2b__form input {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  color: var(--text);
  font-size: 0.9rem;
}

.api-b2b__form button {
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #100a05;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.api-b2b__message {
  margin-top: 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.api-b2b__message--error {
  background: rgba(220, 61, 61, 0.1);
  color: var(--text);
}

.api-b2b__message--success {
  background: rgba(76, 175, 80, 0.12);
  color: var(--text);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer__languages {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--border);
}

.site-footer__languages a[aria-current="true"] {
  color: var(--text);
  font-weight: 600;
}

main h2 {
  margin-top: 1.5rem;
}

@media (max-width: 560px) {
  .skin-hero {
    flex-direction: column;
    text-align: center;
  }

  .offer-row {
    flex-wrap: wrap;
  }

  .offer-row__price {
    text-align: left;
  }

  .filters-form select,
  .filters-form__toggle,
  .filters-form button {
    flex: 1 1 100%;
  }
}
