.pg-offers {
  --offer-gap: 8px;
  margin: 12px 0 18px;
  border: 1px solid var(--line2, rgba(148, 163, 184, .22));
  border-radius: 7px;
  background: var(--panel, #12181f);
  color: var(--ink, #e8eef3);
  overflow: hidden;
}

.pg-offers[hidden] { display: none; }

.pg-offers__header {
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line2, rgba(148, 163, 184, .22));
}

.pg-offers__heading {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.pg-offers__heading h2 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0;
}

.pg-offers__heading p {
  margin: 0;
  color: var(--muted, #a6b3c1);
  font-size: 10.5px;
  line-height: 1.35;
}

.pg-offers__status,
.pg-offers__controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pg-offers__status { gap: 7px; }

.pg-offers__pages {
  min-width: 28px;
  color: var(--muted, #a6b3c1);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.pg-offers__control {
  width: 27px;
  height: 27px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line2, rgba(148, 163, 184, .22));
  border-radius: 4px;
  background: var(--surface-2, #0b1015);
  color: var(--ink, #e8eef3);
  font: 600 15px/1 system-ui, sans-serif;
  cursor: pointer;
}

.pg-offers__control:hover {
  border-color: var(--accent, #2ee6a6);
  color: var(--accent-hi, #7bf3c9);
  background: var(--accent-dim, rgba(46, 230, 166, .10));
}

.pg-offers__control:focus-visible,
.pg-offers__cta:focus-visible {
  outline: 2px solid var(--accent, #2ee6a6);
  outline-offset: 2px;
}

.pg-offers__viewport { overflow: hidden; }

.pg-offers__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--offer-gap) * 2)) / 3);
  gap: var(--offer-gap);
  padding: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.pg-offers__track::-webkit-scrollbar { display: none; }

.pg-offers__card {
  min-width: 0;
  min-height: 238px;
  padding: 13px 12px 11px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid var(--line2, rgba(148, 163, 184, .22));
  border-top: 3px solid var(--offer-accent, var(--accent, #2ee6a6));
  border-radius: 6px;
  background: var(--panel2, #151c24);
}

.pg-offers__card[data-availability="caution"] { background: #1d1a16; }

.pg-offers__kicker {
  min-height: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--offer-accent, var(--accent-hi, #7bf3c9));
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.pg-offers__kicker span:last-child {
  color: var(--muted, #a6b3c1);
  font-size: 8.5px;
  font-weight: 600;
  text-transform: none;
}

.pg-offers__brand {
  height: 39px;
  margin: 8px 0 5px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 6px;
  background: #f7faf9;
}

.pg-offers__brand img {
  display: block;
  width: auto;
  max-width: 150px;
  height: 32px;
  object-fit: contain;
  object-position: left center;
}

.pg-offers__brand--the5ers {
  height: 45px;
  color: #10211f;
}

.pg-offers__the5ers { display: block; width: 130px; height: 26px; }

.pg-offers__brand--the5ers img {
  height: 40px;
  max-width: 112px;
}

.pg-offers__brand--tradingview img { height: 27px; max-width: 158px; }
.pg-offers__brand--exness img { height: 30px; max-width: 126px; }

.pg-offers__ftmo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #101820;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.pg-offers__ftmo > span {
  width: 8px;
  height: 25px;
  background: #9fc400;
  transform: skew(-12deg);
}

.pg-offers__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #101820;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.pg-offers__wordmark::before {
  content: "";
  width: 23px;
  height: 23px;
  border: 6px solid #13b98a;
  border-left-color: #ff315f;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.pg-offers__internal-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}

.pg-offers__internal-mark .gauge-mark { width: 28px; height: 28px; }

.pg-offers__card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0;
}

.pg-offers__description {
  min-height: 39px;
  margin: 5px 0 7px;
  color: var(--muted, #a6b3c1);
  font-size: 10px;
  line-height: 1.4;
}

.pg-offers__highlights {
  min-height: 22px;
  margin: 0 0 7px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
  list-style: none;
}

.pg-offers__highlights li {
  padding: 3px 5px;
  border: 1px solid var(--line2, rgba(148, 163, 184, .22));
  border-radius: 3px;
  background: var(--surface-2, #0b1015);
  color: var(--muted, #a6b3c1);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
}

.pg-offers__detail {
  margin: 0 0 9px;
  color: var(--ink, #e8eef3);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.pg-offers__cta {
  min-height: 30px;
  margin-top: auto;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--offer-accent, var(--accent, #2ee6a6));
  border-radius: 4px;
  color: var(--ink, #e8eef3);
  background: var(--surface-2, #0b1015);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
}

.pg-offers__cta:hover {
  color: #07110e;
  background: var(--offer-accent, var(--accent, #2ee6a6));
}

.pg-offers__disclosure {
  margin: 0;
  padding: 7px 10px 8px;
  border-top: 1px solid var(--line2, rgba(148, 163, 184, .22));
  color: var(--muted, #a6b3c1);
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .pg-offers__track { grid-auto-columns: calc((100% - var(--offer-gap)) / 2); }
}

@media (max-width: 640px) {
  .pg-offers { margin: 10px 0 14px; }
  .pg-offers__header { min-height: 48px; padding: 7px 8px; }
  .pg-offers__heading { display: block; }
  .pg-offers__heading p {
    margin-top: 2px;
    max-width: 32ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pg-offers__pages { display: none; }
  .pg-offers__track { grid-auto-columns: 100%; padding: 7px; }
  .pg-offers__card { min-height: 232px; padding: 12px 11px 10px; }
  .pg-offers__description { min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-offers__track { scroll-behavior: auto !important; }
}
