/* TicketSure — Booking rewards (commission + markup + scratch card).
   Same section as the home page, shared here for the Become-agent page. */

/* ---------- Booking rewards — earning model (commission + markup + scratch card) ----------
   Logo palette only: navy #081838, red #e01820, deep red #b0141c, white. */
.earn-x {
  --ex-navy: #081838;
  --ex-blue: #b0141c;
  --ex-teal: #e01820;
  --ex-text: rgba(8, 24, 56, 0.74);
  --ex-line: rgba(8, 24, 56, 0.12);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: calc(var(--header) + 1.25rem) clamp(1rem, 3vw, 3rem) 1.5rem;
  overflow: clip;
  color: var(--ex-navy);
  background:
    radial-gradient(ellipse 45% 55% at 70% 50%, rgba(224, 24, 32, 0.13), transparent 70%),
    radial-gradient(ellipse 35% 45% at 0% 0%, rgba(176, 20, 28, 0.07), transparent 70%),
    #ffffff;
}

.earn-x-grid {
  width: min(1480px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.34fr);
  grid-template-areas:
    "head lab"
    "streams lab";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 1.4rem;
  align-items: start;
}

/* ---- Heading ---- */
.earn-x-head {
  grid-area: head;
}

.earn-x-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  font-size: var(--fs-kicker, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ex-navy);
}

.earn-x-kicker::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--ex-teal);
  -webkit-mask: url("../assets/Favicon%20Black.png") center / contain no-repeat;
  mask: url("../assets/Favicon%20Black.png") center / contain no-repeat;
}

.earn-x-head h2 {
  font-size: var(--fs-h2, clamp(2.05rem, 3.6vw, 3rem));
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ex-navy);
}

.earn-x-head h2 span {
  color: var(--ex-blue);
}

.earn-x-slogan {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-tagline, 1.45rem);
  line-height: 1.25;
  color: var(--ex-blue);
}

/* ---- Three earning streams ---- */
.earn-x-streams {
  grid-area: streams;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  counter-reset: none;
}

.earn-stream {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ex-line);
  box-shadow: 0 14px 30px -24px rgba(8, 24, 56, 0.5);
  transition: border-color 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.earn-stream::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--stream, var(--ex-teal));
}

.earn-stream[data-stream="commission"] {
  --stream: var(--ex-teal);
}

.earn-stream[data-stream="markup"] {
  --stream: var(--ex-blue);
}

.earn-stream[data-stream="scratch"] {
  --stream: var(--ex-navy);
}

.earn-stream.is-pulse {
  border-color: var(--stream);
  transform: translateX(4px);
  box-shadow: 0 18px 36px -22px rgba(8, 24, 56, 0.55);
}

.earn-stream-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--stream);
}

.earn-stream-ico svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.earn-stream-no {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ex-blue);
}

.earn-stream b {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ex-navy);
}

.earn-stream div>span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ex-text);
}

.earn-stream strong {
  color: var(--ex-navy);
}

.earn-stream-amt {
  font-style: normal;
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(224, 24, 32, 0.12);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ex-navy);
}

.earn-stream-amt b {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.earn-stream--hot {
  background: var(--ex-navy);
  border-color: var(--ex-navy);
  overflow: hidden;
}

.earn-stream--hot::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.07);
  -webkit-mask: url("../assets/Favicon%20Black.png") center / contain no-repeat;
  mask: url("../assets/Favicon%20Black.png") center / contain no-repeat;
  pointer-events: none;
}

.earn-stream--hot .earn-stream-ico {
  background: var(--ex-teal);
}

.earn-stream--hot .earn-stream-no {
  color: var(--ex-teal);
}

.earn-stream--hot b,
.earn-stream--hot strong {
  color: #fff;
}

.earn-stream--hot div>span {
  color: rgba(255, 255, 255, 0.75);
}

.earn-stream--hot .earn-stream-amt {
  position: relative;
  z-index: 1;
  background: var(--ex-teal);
  color: #fff;
}

/* ---- The earning model panel ---- */
.earn-x-lab {
  grid-area: lab;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 0%, rgba(224, 24, 32, 0.28), transparent 45%),
    linear-gradient(160deg, var(--ex-blue), var(--ex-navy) 55%);
  color: #fff;
  box-shadow: 0 40px 80px -36px rgba(8, 24, 56, 0.7);
  isolation: isolate;
  overflow: hidden;
}

.earn-x-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.earn-x-lab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.earn-x-live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.earn-x-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ex-teal);
  animation: earnLive 1.8s ease-out infinite;
}

@keyframes earnLive {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 24, 32, 0.7);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(224, 24, 32, 0);
  }
}

.earn-x-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.earn-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.earn-tab svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.earn-tab:hover {
  color: #fff;
}

.earn-tab.is-active {
  background: #fff;
  color: var(--ex-navy);
}

.earn-x-lab-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: stretch;
}

/* Customer ticket */
.earn-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: #fff;
  color: var(--ex-navy);
}

.earn-ticket::before,
.earn-ticket::after {
  content: "";
  position: absolute;
  bottom: 62px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ex-navy);
}

.earn-ticket::before {
  left: -8px;
}

.earn-ticket::after {
  right: -8px;
}

.earn-ticket-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.7rem;
  border-bottom: 1.5px dashed rgba(8, 24, 56, 0.16);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ex-blue);
}

.earn-ticket-brand img {
  width: 24px;
  height: 24px;
}

.earn-ticket-brand em {
  margin-left: auto;
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.875rem;
  color: var(--ex-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.earn-field {
  display: grid;
  gap: 0.45rem;
  cursor: pointer;
}

.earn-field>span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ex-text);
}

.earn-field b {
  font-size: 1.125rem;
  color: var(--ex-navy);
}

/* Range sliders — filled track in brand teal */
.earn-x input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ex-teal) var(--p, 50%), rgba(8, 24, 56, 0.12) var(--p, 50%));
  outline: none;
  cursor: pointer;
}

.earn-x input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--ex-navy);
  box-shadow: 0 4px 10px rgba(8, 24, 56, 0.35);
  transition: transform 0.2s ease;
}

.earn-x input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--ex-navy);
  box-shadow: 0 4px 10px rgba(8, 24, 56, 0.35);
}

.earn-x input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

.earn-x input[type="range"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(224, 24, 32, 0.45);
}

.earn-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(224, 24, 32, 0.1);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ex-navy);
}

.earn-ticket-row b {
  color: var(--ex-blue);
}

.earn-ticket-pays {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1.5px dashed rgba(8, 24, 56, 0.16);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ex-text);
}

.earn-ticket-pays strong {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ex-navy);
}

/* Scratch card */
.earn-scratch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.earn-scratch-label {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.scratch-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ex-navy);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.95),
    0 24px 50px -18px rgba(0, 0, 0, 0.45);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.scratch-prize {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 70% at 50% 55%, rgba(224, 24, 32, 0.35), transparent 70%),
    linear-gradient(160deg, var(--ex-blue), var(--ex-navy));
}

.scratch-prize::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(224, 24, 32, 0.5);
  border-radius: 14px;
  pointer-events: none;
}

.scratch-prize-top {
  position: absolute;
  top: 1.05rem;
  left: 1.2rem;
  right: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scratch-prize-top span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ex-teal);
}

.scratch-prize-top img {
  width: 18px;
  height: 18px;
}

.scratch-prize-top em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.6);
}

.scratch-prize-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
}

.scratch-prize-amt {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ex-teal);
}

.scratch-prize-amt b {
  font-weight: inherit;
}

.scratch-prize-note {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  right: 1.2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.scratch-foil,
.scratch-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scratch-foil {
  cursor: grab;
  transition: opacity 0.6s ease;
}

.scratch-foil:active {
  cursor: grabbing;
}

.scratch-card.is-done .scratch-foil {
  opacity: 0;
  pointer-events: none;
}

.scratch-confetti {
  pointer-events: none;
}

.scratch-card.is-done {
  animation: earnPop 0.6s var(--ease);
}

@keyframes earnPop {
  40% {
    transform: scale(1.04);
  }
}

.scratch-hint,
.scratch-again {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.scratch-hint[hidden],
.scratch-again[hidden] {
  display: none;
}

.scratch-hand {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(224, 24, 32, 0.25);
  color: #fff;
  animation: earnWiggle 1.6s ease-in-out infinite;
}

.scratch-hand svg {
  width: 16px;
  height: 16px;
}

@keyframes earnWiggle {

  0%,
  100% {
    transform: translateX(-4px) rotate(-8deg);
  }

  50% {
    transform: translateX(4px) rotate(8deg);
  }
}

.scratch-again {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s ease;
}

.scratch-again:hover {
  background: rgba(255, 255, 255, 0.16);
}

.scratch-again svg {
  width: 16px;
  height: 16px;
}

/* Total earning on this ticket */
.earn-x-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "bar sum"
    "legend sum";
  gap: 0.6rem 1.25rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.earn-bar {
  grid-area: bar;
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.earn-bar i {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.7s var(--ease);
}

.earn-bar-c {
  background: var(--ex-teal);
}

.earn-bar-m {
  background: #fff;
}

.earn-bar-s {
  background: repeating-linear-gradient(135deg, var(--ex-teal) 0 6px, var(--ex-blue) 6px 12px);
}

.earn-legend {
  grid-area: legend;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.earn-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.earn-legend li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.earn-legend .c::before {
  background: var(--ex-teal);
}

.earn-legend .m::before {
  background: #fff;
}

.earn-legend .s::before {
  background: repeating-linear-gradient(135deg, var(--ex-teal) 0 3px, var(--ex-blue) 3px 6px);
}

.earn-legend b {
  color: #fff;
}

.earn-sum {
  grid-area: sum;
  text-align: right;
}

.earn-sum span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.earn-sum strong {
  display: block;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ex-teal);
}

.earn-sum b {
  font-weight: inherit;
}

/* Monthly projection */
.earn-x-month {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0 0.3rem 0.1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.earn-x-month label b {
  color: #fff;
}

.earn-x-month input[type="range"] {
  background: linear-gradient(90deg, var(--ex-teal) var(--p, 50%), rgba(255, 255, 255, 0.18) var(--p, 50%));
}

.earn-x-month input[type="range"]::-webkit-slider-thumb {
  border-color: var(--ex-teal);
}

.earn-x-month input[type="range"]::-moz-range-thumb {
  border-color: var(--ex-teal);
}

.earn-x-month p {
  text-align: right;
}

.earn-x-month strong {
  font-size: 1.3rem;
  color: #fff;
}

.earn-x-month small {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.earn-x-fine {
  width: min(1480px, 100%);
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(8, 24, 56, 0.55);
}

/* Laptop / tablet */
@media (max-width: 1100px) {
  .earn-x {
    min-height: 0;
    padding: 4.5rem 1.25rem 3rem;
  }

  .earn-x-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "streams"
      "lab";
  }
}

/* Phone */
@media (max-width: 640px) {
  .earn-x {
    padding: 3.5rem 1rem 2.5rem;
  }

  .earn-stream {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .earn-stream-amt {
    grid-column: 2;
    justify-self: start;
  }

  .earn-x-lab {
    padding: 0.8rem;
    border-radius: 22px;
  }

  .earn-x-tabs {
    width: 100%;
    border-radius: 16px;
    justify-content: space-between;
  }

  .earn-tab {
    padding: 0.4rem 0.55rem;
  }

  .earn-tab span {
    display: none;
  }

  .earn-tab svg {
    width: 18px;
    height: 18px;
  }

  .earn-x-lab-body {
    grid-template-columns: 1fr;
  }

  .earn-x-total {
    grid-template-columns: 1fr;
    grid-template-areas: "sum" "bar" "legend";
  }

  .earn-sum {
    text-align: left;
  }

  .earn-x-month {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .earn-x-month p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {

  .earn-x-live i,
  .scratch-hand,
  .scratch-card.is-done {
    animation: none !important;
  }

  

.earn-x-grid,
.earn-x-fine {
  width: min(1480px, 100%);
}

/* Text colours — same rules the home page applies to this section */
.earn-x :is(p, li, span, em, small, label, strong, b, output):not(:is(h1, h2, h3, button, .btn, [class*="kicker"], [class*="slogan"], [aria-hidden="true"]), :is(h1, h2, h3, button, .btn, [class*="kicker"], [class*="slogan"], [aria-hidden="true"], svg) *) {
  color: #111111 !important;
}

.earn-x :is(.earn-stream--hot, .earn-x-lab, .scratch-card) :is(p, li, span, em, small, label, strong, b, output):not(:is(h1, h2, h3, button, .btn, [class*="kicker"], [class*="slogan"], [aria-hidden="true"]), :is(h1, h2, h3, button, .btn, [class*="kicker"], [class*="slogan"], [aria-hidden="true"], svg) *) {
  color: #ffffff !important;
}

.earn-x .earn-x-lab .earn-ticket :is(p, li, span, em, small, label, strong, b, output):not(:is(button, .btn, [aria-hidden="true"]), :is(button, .btn, [aria-hidden="true"], svg) *) {
  color: #111111 !important;
}
}