:root {
  --promo-line: rgba(152, 104, 255, .34);
  --promo-muted: #c9bdf1;
  --promo-bg: #12103a;
}

body.promotions-page {
  background:
    radial-gradient(circle at 52% 0%, rgba(129, 79, 255, .38), transparent 34rem),
    linear-gradient(150deg, #12103a 0%, #24146f 46%, #171145 100%);
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}

body.promotions-page .promotions-main {
  min-width: 0;
}

.promotions-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2px 24px;
}

@media (min-width: 900px) {
  .promotions-content {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

.promotions-content h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.promotions-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--promo-line);
}

.promotions-tabs .tab {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: transparent;
  color: var(--promo-muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.promotions-tabs .tab.active,
.promotions-tabs .tab:hover {
  background: linear-gradient(135deg, rgba(141, 85, 255, .35), rgba(141, 85, 255, .18));
  color: #fff;
}

.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.promo-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(160deg, rgba(48, 32, 114, .88), rgba(24, 16, 62, .92));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .28);
}

.promo-card__thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: rgba(0, 0, 0, .25);
}

.promo-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-card__body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.promo-card__body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.promo-card__body p {
  margin: 0;
  color: var(--promo-muted);
  font-size: 13px;
  line-height: 1.5;
}

.promo-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.promo-card__claim {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #8d55ff, #a260ff);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}

.promo-card__claim:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, .12);
}

.promo-card__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.promo-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(141, 85, 255, .22);
  color: #dccaff;
}

.promo-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: var(--promo-muted);
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 16px;
}

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 5, 28, .72);
  backdrop-filter: blur(10px);
}

.promo-modal.open { display: flex; }

.promo-modal__dialog {
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--promo-line);
  background: linear-gradient(145deg, rgba(31, 22, 79, .98), rgba(18, 12, 52, .98));
  padding: 18px;
}

.promo-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.promo-modal__head h2 {
  margin: 0;
  font-size: 22px;
}

.promo-modal__close {
  border: 0;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 22px;
}

.promo-modal__img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 14px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.promo-modal__detail {
  color: #e8e0ff;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.promo-modal__meta {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
  color: var(--promo-muted);
}

.promo-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.promo-pager .page {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.promo-pager .page.active {
  background: linear-gradient(135deg, #8d55ff, #a260ff);
  border-color: transparent;
}

@media (max-width: 640px) {
  .promotions-shell { padding-bottom: 100px; }
  .promotions-tabs .tab { flex: 1 1 calc(50% - 8px); text-align: center; }
}
