.baji-rewards {
  --bajr-ink: #392334;
  --bajr-plum: #502940;
  --bajr-blush: #f5e6e8;
  --bajr-gold: #e7c88c;
  --bajr-line: #e3d3d5;
  --bajr-paper: #fffaf4;
  color: var(--bajr-ink);
}
.baji-rewards [hidden] { display: none !important; }
.baji-rewards .bajr-launch {
  position: fixed;
  inset: 50% clamp(8px, 2vw, 24px) auto auto;
  z-index: 900;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  margin: 0;
  padding: 5px 13px 5px 5px;
  padding-inline: 5px 13px;
  border: 1px solid #c89b71;
  border-radius: 999px;
  color: #fff8eb;
  background: linear-gradient(125deg, #613454, #3b223e 72%);
  font: 700 12px/1.3 system-ui, sans-serif;
  box-shadow: inset 0 1px #ffffff24, 0 4px 16px #30213249;
  transition: box-shadow 180ms ease;
  cursor: pointer;
}
.baji-rewards .bajr-launch:hover {
  box-shadow: inset 0 1px #ffffff30, 0 5px 18px #30213265, 0 0 0 3px #aa75973d;
}
.baji-rewards .bajr-launch:focus-visible { outline: 2px solid #9b527c; outline-offset: 4px; }
.bajr-launch-wheel {
  display: grid;
  place-items: center;
  position: relative;
  inline-size: 31px;
  aspect-ratio: 1;
  border: 2px solid #eec281;
  border-radius: 50%;
  background: conic-gradient(#9a477d 0 25%, #dab16c 25% 50%, #287365 50% 75%, #8872b5 75%);
  box-shadow: inset 0 0 0 1px #fff6dc;
}
.bajr-launch-wheel::before {
  content: "";
  position: absolute;
  inset: -5px auto auto 50%;
  translate: -50% 0;
  inline-size: 10px;
  block-size: 12px;
  background: #ffe1ab;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.bajr-launch-wheel > span { inline-size: 10px; aspect-ratio: 1; border: 1px solid #fee6b9; border-radius: 50%; background: #4b2d55; }
.baji-rewards[data-has-invite] .bajr-launch { border-color: #afe0c6; }
.baji-rewards[dir="rtl"] .bajr-launch, .baji-urdu .baji-rewards .bajr-launch { inset: 50% auto auto clamp(8px, 2vw, 24px); }
.bajr-dialog {
  position: fixed;
  inset: 0;
  width: min(570px, calc(100% - 26px));
  max-width: none;
  max-height: calc(100dvh - 30px);
  margin: auto;
  contain: layout;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d3bdc1;
  border-radius: 16px;
  background: var(--bajr-paper);
  color: var(--bajr-ink);
  box-shadow: 0 22px 90px #23132670;
  font-family: inherit;
}
.bajr-dialog::backdrop { background: #281d298d; }
.bajr-dialog-scroll { max-height: inherit; overflow: auto; overscroll-behavior: contain; }
.bajr-hero {
  min-height: clamp(118px, 21vh, 160px);
  position: relative;
  display: flex;
  align-items: end;
  isolation: isolate;
  padding: 16px 22px;
  background: #573246;
}
.bajr-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.bajr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #2e142bbf 4%, #3b233a00 84%);
}
.bajr-hero h2 {
  color: #fff8ec;
  margin: 0;
  font-family: inherit;
  font-size: clamp(27px, 5vw, 38px);
  line-height: 1.25;
  font-weight: 700;
  text-shadow: 0 2px 8px #251725a8;
}
.bajr-hero h2:focus { outline: 0; }
.baji-rewards .bajr-dialog .bajr-close {
  position: absolute;
  inset: 12px 12px auto auto;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #f5d299;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf2, #f1dfdc);
  color: #452340;
  box-shadow: 0 4px 12px #27172d4d;
  transform: none;
  cursor: pointer;
}
.bajr-close > span { position: relative; display: block; inline-size: 18px; block-size: 18px; }
.bajr-close > span::before, .bajr-close > span::after {
  content: "";
  position: absolute;
  inset: 8px 0 auto;
  block-size: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.bajr-close > span::after { transform: rotate(-45deg); }
.baji-rewards .bajr-dialog .bajr-close:hover { background: #fff7e6; color: #752b60; }
.baji-rewards :is(.bajr-close, .bajr-glow):focus-visible { outline: 2px solid #8c4679; outline-offset: 4px; }
.bajr-main { padding: 15px clamp(12px, 4vw, 23px) 18px; }
.bajr-nav { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 4px; background: var(--bajr-blush); border-radius: 10px; padding: 4px; margin-block-end: 13px; }
.bajr-nav button, .bajr-games button {
  min-height: 42px;
  padding: 4px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--bajr-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.bajr-nav button[aria-pressed="true"] {
  background: var(--bajr-paper);
  box-shadow: 0 1px 4px #4627372b;
  font-weight: 700;
}
.bajr-box {
  margin-block: 0 10px;
  padding: 13px 15px;
  border: 1px solid var(--bajr-line);
  border-radius: 10px;
  background: #fffdf8;
}
.bajr-box h3 { margin: 0 0 4px; font-family: inherit; color: inherit; font-size: clamp(18px, 4vw, 22px); }
.bajr-box p, .bajr-result p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.bajr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.baji-rewards :is(.bajr-primary, .bajr-secondary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 5px 10px;
  border: 1px solid var(--bajr-line);
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.baji-rewards .bajr-primary { background: var(--bajr-plum); color: #fff9f0; border-color: var(--bajr-plum); }
.baji-rewards .bajr-secondary { background: #fffdf8; color: var(--bajr-plum); }
.baji-rewards :is(.bajr-primary, .bajr-secondary):hover { box-shadow: 0 1px 5px #57364c2e; }
.bajr-status { margin: 0; color: #84284e; font-size: 13px; }
.bajr-status:not(:empty) { margin-block-end: 9px; }
.bajr-fine { margin: 9px 0; font-size: 12px; color: #654b5f; line-height: 1.65; }
.bajr-weekly { display: grid; gap: 6px; margin-block-end: 12px; }
.bajr-weekly p { margin: 0; color: #654b5f; font-size: 12px; font-weight: 700; line-height: 1.5; }
.bajr-weekly ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.bajr-weekly .bajr-badge {
  --bajr-badge-ink: #165448;
  --bajr-badge-icon: #1e6255;
  --bajr-badge-edge: #bedacf;
  --bajr-badge-fill: #e8f4ee;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 5px 13px 5px 6px;
  padding-inline: 6px 13px;
  border: 1px solid var(--bajr-badge-edge);
  border-radius: 999px;
  background: linear-gradient(120deg, #fffefa, var(--bajr-badge-fill) 90%);
  color: var(--bajr-badge-ink);
  box-shadow: inset 0 1px #fff, 0 2px 5px #3223330b;
  font-size: 12px;
  line-height: 1.4;
}
.bajr-badge[data-kind="prize"] {
  --bajr-badge-ink: #6c3e22;
  --bajr-badge-icon: #7e4b29;
  --bajr-badge-edge: #e4ca9b;
  --bajr-badge-fill: #fff1d9;
}
.bajr-badge-icon {
  display: grid;
  flex: 0 0 27px;
  block-size: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--bajr-badge-icon);
  color: #fffbf3;
  font: 700 14px/1 system-ui, sans-serif;
  box-shadow: inset 0 1px #ffffff38;
}
.bajr-badge-icon::before { content: "✦"; }
.bajr-badge-content { display: grid; min-width: 0; gap: 1px; overflow-wrap: anywhere; }
.bajr-badge-content strong { color: inherit; font-size: 13px; }
.bajr-badge-content > span { font-size: 11px; }
.bajr-badge-content > span:empty { display: none; }
.baji-urdu .bajr-badge-content { line-height: 1.9; }
.bajr-games, .bajr-boxes, .bajr-tiers, .bajr-balances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.bajr-games button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 65px;
  padding-block: 7px;
  border: 1px solid var(--bajr-line);
  background: #fffdf9;
  line-height: 1.4;
}
.bajr-games button[aria-pressed="true"] { border-color: #8d587c; background: #f3e2ec; }
.bajr-icon { color: #6c3d5b; font-size: 20px; }
.bajr-spin {
  display: grid;
  grid-template-columns: minmax(128px, 1.1fr) minmax(99px, .85fr);
  align-items: center;
  justify-items: center;
  gap: clamp(8px, 2vw, 16px);
  max-width: 410px;
  margin-inline: auto;
  padding: 6px 0 3px;
}
.bajr-spin-actions { display: grid; justify-items: center; gap: 6px; text-align: center; }
.bajr-spin-ready { margin: 0; color: #652252; font-size: 13px; font-weight: 700; }
.bajr-wheel-wrap {
  position: relative;
  display: grid;
  direction: ltr;
  width: min(100%, var(--bajr-wheel-desktop, 196px));
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #f8dd9c 0 62%, #d7a362 63% 67%, #edc47e 68%);
  box-shadow: 0 6px 16px #56324b40, inset 0 0 0 2px #fff3d3;
}
.bajr-wheel-pointer, .bajr-wheel-wrap > span:empty {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  inline-size: 21px;
  block-size: 26px;
  background: linear-gradient(135deg, #fff4cf 0%, #f1ad58 72%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 2px 2px #46283778);
}
.bajr-wheel {
  position: relative;
  border: 2px solid #552349;
  box-shadow: inset 0 0 0 3px #fff4db;
  border-radius: 50%;
  aspect-ratio: 1;
  background: #6d4368;
}
.bajr-wheel::before { content: ""; position: absolute; inset: 5px; border: 2px dotted #fff3d6ba; border-radius: inherit; }
.bajr-wheel .bajr-sector-label {
  position: absolute;
  display: grid;
  justify-items: center;
  inline-size: 34%;
  min-inline-size: 0;
  color: #fffaf0;
  text-align: center;
  font: 800 clamp(10px, 1.6vw, 16px)/1.05 system-ui, sans-serif;
  text-shadow: 0 1px 3px #22162c9c;
  overflow-wrap: anywhere;
  transform: translate(-50%, -50%);
}
.bajr-wheel .bajr-sector-label[data-kind="preview"] { color: #402d3c; font-size: 10px; text-shadow: none; }
.bajr-sector-label small { font-size: 8px; font-weight: 700; }
.bajr-wheel-rules ul { margin: 4px 0 0; padding-inline-start: 17px; font-size: 12px; line-height: 1.55; }
.bajr-wheel-rules li[data-kind="preview"] { color: #675464; }
.bajr-wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  inline-size: 27%;
  aspect-ratio: 1;
  border: 2px solid #ffe6aa;
  border-radius: 50%;
  box-shadow: 0 2px 11px #4126406b;
  background: linear-gradient(135deg, #6e315d, #361b44);
  color: #fff0d0;
  font: 800 clamp(9px, 1.8vw, 13px)/1 system-ui, sans-serif;
  transform: translate(-50%, -50%);
}
.bajr-boxes button, .bajr-tiers button {
  min-height: 62px;
  padding: 6px;
  border: 1px solid var(--bajr-line);
  border-radius: 9px;
  background: #fbf0ee;
  color: var(--bajr-plum);
  font: inherit;
  cursor: pointer;
}
.bajr-boxes button:nth-child(2) { background: #e8eee4; }
.bajr-boxes button:nth-child(3) { background: #f6ebd9; }
.bajr-present {
  display: grid;
  place-items: center;
  inline-size: 39px;
  block-size: 33px;
  margin: auto;
  border-radius: 4px;
  background: linear-gradient(90deg, #98607f 43%, #edd59e 43% 57%, #98607f 57%);
  color: #3a2636;
  box-shadow: 0 -4px 0 1px #754462;
}
.bajr-tiers button { display: grid; gap: 4px; justify-items: center; }
.bajr-tiers > p { grid-column: 1 / -1; margin-block: 5px; }
.bajr-tiers strong { font: 700 26px/1.15 system-ui, sans-serif; }
.bajr-tiers span { font-size: 13px; }
.bajr-result {
  position: relative;
  margin-block: 8px;
  padding: 12px 14px;
  border: 1px solid #d2a9bf;
  border-radius: 10px;
  background: linear-gradient(110deg, #f3e1ed, #fcf4e1);
}
.bajr-result > strong { display: block; font-weight: 800; font-size: 22px; }
.bajr-code {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px dashed #a77a93;
  border-radius: 4px;
  background: #fffcf7;
  color: var(--bajr-plum);
  font: 700 12px/1.6 system-ui, sans-serif;
  overflow-wrap: anywhere;
  user-select: text;
}
.bajr-invite form, form[data-rewards-claim] { display: flex; flex-wrap: wrap; gap: 7px; align-items: flex-end; margin-block-start: 7px; }
.bajr-share-note { flex: 1 0 100%; font-size: 12px; color: #654b5f; }
.bajr-dialog form label { flex: 1 1 200px; display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.bajr-dialog input:not([type="checkbox"]), .bajr-copy-field { width: 100%; min-height: 40px; border: 1px solid var(--bajr-line); border-radius: 7px; padding: 5px 8px; color: var(--bajr-ink); background: #fff; font-size: 16px; }
.bajr-balances { grid-template-columns: 1fr 1fr; }
.bajr-balances div {
  display: grid; gap: 2px; padding: 10px 12px;
  border: 1px solid var(--bajr-line);
  border-radius: 9px;
  background: #f8ebee;
}
.bajr-balances div + div { background: #f0eee3; }
.bajr-balances span { font-size: 13px; }
.bajr-balances strong { font-size: 24px; line-height: 1.2; }
.baji-urdu .bajr-dialog :is(p,label,button,a) { line-height: 1.9; }
.baji-urdu .bajr-hero h2 { line-height: 1.7; }
.baji-rewards .bajr-primary.bajr-glow { position: relative; }
.baji-rewards .bajr-primary.bajr-glow {
  gap: 8px;
  min-height: 44px;
  padding-inline: 15px;
  border-color: #cc9f79;
  background: linear-gradient(110deg, #752954, #453779 45%, #1a6357 83%, #752954) 0 50% / 235% 100%;
  color: #fffaf4;
  animation: bajr-glow 2.4s ease-in-out 3;
}
@keyframes bajr-glow {
  0%, 100% { background-position: 0 50%; box-shadow: 0 2px 8px #6b325831; }
  50% { background-position: 87% 50%; box-shadow: 0 3px 16px #9562b76b; }
}
.bajr-petals { position: absolute; inset: 0; pointer-events: none; }
.bajr-petals > i {
  position: absolute;
  left: 50%;
  top: 50%;
  inline-size: 7px;
  block-size: 5px;
  border-radius: 85% 14% 80% 12%;
  background: var(--bajr-petal-color);
  animation: bajr-petal 830ms cubic-bezier(.18,.65,.34,1) both;
}
@keyframes bajr-petal {
  from { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  18% { opacity: .95; }
  to { transform: translate(var(--bajr-petal-x), var(--bajr-petal-y)) rotate(var(--bajr-petal-turn)) scale(.75); opacity: 0; }
}
@media (max-width: 355px) {
  .bajr-spin { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .bajr-wheel-wrap { width: min(100%, var(--bajr-wheel-mobile, 160px)); }
  .baji-rewards .bajr-launch { min-width: 46px; padding: 6px; }
  .bajr-launch-label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bajr-dialog { max-height: calc(100dvh - 18px); }
}
@media (prefers-reduced-motion: reduce) {
  .baji-rewards :is(.bajr-launch, .bajr-primary.bajr-glow) { animation: none; transition: none; }
  .bajr-petals { display: none; }
}

.bajr-stat-pause {
  justify-self: start;
  min-height: 28px;
  padding: 0 6px;
  border: 0;
  color: #633650;
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.bajr-checkout-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px 14px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #dcc3cf;
  border-radius: 12px;
  color: #42263a;
  background: linear-gradient(105deg, #f8e8ef, #fff4d9);
}
.bajr-checkout-offer[hidden] { display: none !important; }
.bajr-checkout-offer p { margin: 3px 0 0; font-size: 13px; }
.bajr-checkout-offer button {
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid #7b4061;
  border-radius: 7px;
  background: #612f4c;
  color: #fff9ee;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.baji-rewards[data-checkout="1"] :is(.bajr-nav, .bajr-games) { display: none; }
