.app {
  --accent: #f52500;
  --accent-light: #ff7340;
  --accent-bg: #fff8f3;
  --accent-border: #ffcdc4;
  --accent-shadow: #ffccc3;
  --accent-glow: rgba(255, 74, 14, 0.4);
  --accent-grad-light: #ffcbc2;
  --bar-1: rgb(255, 160, 120);
  --bar-2: rgb(255, 130, 90);
  --bar-3: rgb(255, 105, 60);
  --bar-4: rgb(240, 75, 30);
  --bar-5: rgb(220, 50, 5);
  width: 100%;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 50%;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.agents-flip-card,
.partners-flip-card {
  background-color: transparent;
  width: 340px;
  height: 340px;
  margin: 10px;
  perspective: 1100px;

  @media (max-width: 1024px) {
    width: 300px;
    height: 300px;
  }

  @media (max-width: 568px) {
    width: 280px;
    height: auto;
  }
}

.flip {
  transform: rotateY(180deg);
}

.partner_chart {
  padding: 25px 40px;
  overflow: hidden;
  border-radius: 32px;
  background-color: #f4f3ff;
  max-width: 1000px;
  margin: 0 auto;
}

.referral_agent {
  background: #f4f3ff;
}

.partner_agent {
  background: #fff8f3;
}

.partners-flip-card + span {
  font-size: 20px;
  font-weight: bold;
  color: #090773;
}

.flip_content {
  padding-top: 100%;
  width: 100%;
}

.flip_content > img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}

.flip-card-back .text_flip > img {
  max-width: 60px;
  margin-bottom: 10px;
}

.flip-card-inner h4 {
  font-size: clamp(14px, 1.2rem, 24px);
  text-transform: uppercase;
  font-weight: bold;

  @media (max-width: 768px) {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.2;
  }
}

.flip_content label {
  font-weight: 600;
}

.flip-card-front .text_flip > img {
  max-width: 90px;
  margin-bottom: 10px;
}

.partners-flip-card {
  & .flip-card-back {
    & span {
      color: #611ce3;
      line-height: 18px;
      font-weight: 600;
      width: 60%;
      display: block;
      margin: 0 auto;

      @media (max-width: 1024px) {
        font-size: 14px;
        line-height: 1.2;
      }

      @media (max-width: 768px) {
        font-size: 12px;
        line-height: 1.2;
      }
    }
  }
}

.agents-flip-card {
  & .flip-card-back {
    & span {
      color: #f7645a;
      line-height: 18px;
      font-weight: 600;
      width: 60%;
      display: block;
      margin: 0 auto;

      @media (max-width: 1024px) {
        font-size: 14px;
        line-height: 1.2;
      }

      @media (max-width: 768px) {
        font-size: 12px;
        line-height: 1.2;
      }
    }
  }
}

.text_flip p {
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 500;
}

.text_flip {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 75%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  right: 0;
  margin: 0 auto;
}

.app.theme-purple {
  --accent: #3600bf;
  --accent-light: #6a3ce0;
  --accent-bg: #f5f0ff;
  --accent-border: #d4c4ff;
  --accent-shadow: #d4c4ff;
  --accent-glow: rgba(54, 0, 191, 0.4);
  --accent-grad-light: #d4c4ff;
  --bar-1: rgb(180, 160, 255);
  --bar-2: rgb(150, 120, 240);
  --bar-3: rgb(110, 80, 220);
  --bar-4: rgb(80, 40, 200);
  --bar-5: rgb(54, 0, 191);
}

.partner-card {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 22px;
  box-shadow: 0px 0px 10px var(--accent-shadow);
  padding: 10px;
  width: 100%;
  display: flex;
  align-items: stretch;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

/* LEFT PANEL */
.partner-card .left {
  flex: 0 0 55%;
  max-width: 55%;
  min-width: 0;
  padding: 10px 30px 0px 10px;
}

.partner-card .title-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.partner-card .icon-wrap {
  background: var(--accent);
  border-radius: 50%;
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0px 6px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.25s;

  @media (max-width: 768px) {
    display: none;
  }
}

.icon-wrap svg {
  width: 45px;
  height: 45px;
  fill: #fff;
}

.partner-card .title-text h2 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  color: #111;
}

.partner-card .title-text h2 span {
  color: var(--accent);
  transition: color 0.25s;
}

.partner-card .subtitle {
  font-size: 14px;
  color: #000000;
  line-height: 1;
  margin-top: 6px;
  margin-bottom: 20px;
}

.partner-card .label {
  font-size: 14px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 12px;
}

/* SLIDER */
.partner-card .slider-wrap {
  position: relative;
  margin-bottom: 12px;
}

.partner-card .slider-track {
  position: relative;
  height: 6px;
  background: #e8e8e8;
  border-radius: 99px;
  margin-bottom: 36px;
}

.partner-card .slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  border-radius: 99px;
  transition: width 0.1s, background 0.25s;
}

.partner-card input[type=range] {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  margin: 0;

  &:focus {
    outline: none !important;
    box-shadow: none !important;
  }
}

.partner-card input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: transform 0.15s, background 0.25s, box-shadow 0.25s;
}

.partner-card input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.partner-card input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}

.partner-card .merchant-count {
  background-color: #fff;
  box-shadow: 0px 0px 3px #c9c9c9;
  padding: 2px 10px;
  position: absolute;
  top: 18px;
  left: 0;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #111;
  white-space: nowrap;
  pointer-events: none;
  transition: left 0.05s linear;
  border-radius: 4px;
}

.partner-card .merchant-count::before {
  content: '';
  z-index: -1;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #fff;
  box-shadow: -1px -1px 2px rgba(201, 201, 201, 0.5);
}

/* RIGHT PANEL */
.partner-card .right {
  flex: 0 0 45%;
  max-width: 45%;
  min-width: 0;
  position: relative;
  height: 100%;
  background: #fff;
  padding: 30px 30px 10px 30px;
  border: 1px solid #ededed;
  border-radius: 16px;
}

/* Arrow */
.partner-card .arrow-wrap {
  position: absolute;
  pointer-events: none;
  transform: translateX(-50%);
  left: 50%;
  top: 15%;

  @media (min-width: 768px) {
    left: 35%;
    top: 15%;
  }
}

.partner-card .arrow-wrap svg {
  width: 220px;
  height: 100%;
}

/* Chart */
.partner-card .chart {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  min-height: 152px;
  justify-content: center;


  @media (max-width: 768px) {
    padding-top: 10px;
    gap: 8px;
    min-height: 200px;
    justify-content: center;
    align-items: self-end;
  }
}

.partner-card .bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  min-height: 152px;
  max-width: 65px;

  @media (min-width: 768px) {
    max-width: 100%;
  }
}

.partner-card .bar-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.partner-card .bar-value {
  font-size: 12px;
  font-weight: 900;
  color: #111;
  margin-bottom: 2px;
  white-space: nowrap;
  min-height: 14px;
  line-height: 1;
}

.partner-card .bar {
  width: 100%;
  transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
  position: relative;
}

.partner-card .bar.b1 {
  background: var(--bar-1);
}

.partner-card .bar.b2 {
  background: var(--bar-2);
}

.partner-card .bar.b3 {
  background: var(--bar-3);
}

.partner-card .bar.b4 {
  background: var(--bar-4);
}

.partner-card .bar.b5 {
  background: var(--bar-5);
}

.partner-card .arrow-fill {
  fill: var(--accent);
  transition: fill 0.25s;
}

.partner-card .arrow-stop-light {
  stop-color: var(--accent-grad-light);
  transition: stop-color 0.25s;
}

.partner-card .arrow-stop-dark {
  stop-color: var(--accent);
  transition: stop-color 0.25s;
}

.partner-card .bar-label {
  font-size: 10px;
  color: #000;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.partner-card .bar-label sup {
  font-size: 8px;
}

.choose-the-program {
  font-size: 14px;
  color: #555;
  margin-bottom: 0.5rem;
}

.prog-header-wrap {
  position: relative;
  max-width: 920px;
  margin: 0 auto;

  &.is-agent {
    & .prog-arrow--left {
      & svg {
        & path {
          stroke: #f52500;
        }
      }
    }

    & .prog-arrow--right {
      & svg {
        & path {
          stroke: #f52500;
        }
      }
    }
  }

  &.is-referral {
    & .prog-arrow--left {
      & svg {
        & path {
          stroke: #3600bf;
        }
      }
    }
  }

  &.is-referral {
    & .prog-arrow--right {
      & svg {
        & path {
          stroke: #3600bf;
        }
      }
    }
  }
}

.prog-header-center {
  text-align: center;
  position: relative;
  z-index: 2;

  & h2.is-referral,
  h2.is-agent {
    @media (max-width: 668px) {
      font-size: 16px !important;
    }
  }

  & span.choose-the-program {
    @media (max-width: 668px) {
      font-size: 12px;
      line-height: 1.2;
    }
  }
}

.prog-arrow {
  pointer-events: none;
  flex-shrink: 0;
  top: 25px;

  &.prog-arrow--left {
    width: 100px;
    height: auto;
    /* transform: scaleY(-1) rotate(40deg); */

    @media (max-width: 768px) {
      width: 50px;
    }
  }

  &.prog-arrow--right {
    width: 100px;
    height: auto;
    /* transform: rotate(220deg); */
    transform: scaleY(-1) rotate(180deg);

    @media (max-width: 768px) {
      width: 50px;
    }
  }

  & svg {
    display: block;
    width: 100%;
    height: 100%;

    @media (max-width: 768px) {
      width: 100%;
    }
  }

  @media (max-width: 768px) {
    top: 10px;
  }
}

.prog-arrow .prog-cards-wrap {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
}

.prog-arrow--agent {
  position: absolute;
  right: -100px;
  top: 45%;
  width: 90px;
  height: auto;
  transform: translateY(-50%);
}

.prog-annotation {
  position: absolute;
  right: -190px;
  top: 18%;
  max-width: 150px;
  font-size: 16px;
  line-height: 1.35;
  color: #3600bf;
  font-weight: 600;
  transform: rotate(-5deg);
  pointer-events: none;
  text-align: center;
}

.selected-badge {
  position: absolute;
  top: 10%;
  right: -5%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;

  @media (max-width: 1024px) {
    line-height: 1.2;
    position: absolute;
    top: 8%;
    right: 0%;
    padding: 5px;
    font-size: 10px;
  }

  @media (max-width: 668px) {
    position: absolute;
    top: 0%;
    right: -15%;
    padding: 5px;
    font-size: 10px;
  }
}

.partners-flip-card .selected-badge {
  color: #3600bf;
  box-shadow: 0 0 10px rgba(54, 0, 191, 0.4);
}

.agents-flip-card .selected-badge {
  color: #E0502A;
  box-shadow: 0 0 10px rgba(224, 80, 42, 0.4);
}

.text_flip p {
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 500;

  @media (max-width: 1024px) {
    font-size: 12px;
    line-height: 1.2;
  }
}


.flip_sec .section-sub-title-text {
  transition: color 0.25s ease;
}

.flip_sec .section-sub-title-text.is-referral {
  color: #3600bf;
}

.flip_sec .section-sub-title-text.is-agent {
  color: #f52500;
}


@media only screen and (max-width: 1024px) {

  .prog-header-wrap {
    padding: 0 70px;
  }

  .prog-arrow--agent {
    right: -90px;
  }

  .prog-annotation {
    right: -170px;
    max-width: 130px;
    font-size: 12px;
  }
}

@media only screen and (max-width: 860px) {
  .prog-header-wrap {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .partner-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    gap: 0;
  }

  .partner-card .left,
  .partner-card .title-row,
  .partner-card .title-text-container {
    display: contents;
  }


  .partner-card .title-text {
    order: 1;
    margin-bottom: 6px;
  }

  .partner-card .title-text h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
  }

  .partner-card .subtitle {
    order: 2;
    font-size: 13px;
    margin-top: 0;
    margin-bottom: 18px;
  }

  .partner-card .right {
    order: 3;
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 10px;
    margin-bottom: 22px;
  }

  .partner-card .bar-value {
    font-size: 11px;
  }

  .partner-card .bar-label {
    font-size: 10px;
  }

  .partner-card .label {
    order: 4;
    font-size: 14px;
    margin-bottom: 14px;
  }

  .partner-card .slider-wrap {
    order: 5;
    margin-bottom: 0;
  }

  .partner-card .slider-track {
    margin-bottom: 32px;
  }
}

@media only screen and (max-width: 650px) {

  .text_flip p,
  .flip-card-front .text_flip > img,
  .flip-card-back .text_flip > img {
    display: none;
  }

  .agents-flip-card .flip-card-inner,
  .partners-flip-card .flip-card-inner {
    padding-top: 100%;
  }

  .flip-card-front,
  .flip-card-back {
    top: 0;
  }

  .agents-flip-card,
  .partners-flip-card {
    height: auto;
  }

  .flip_content label {
    font-size: 0.8rem;
  }

}

@media screen and (max-width: 450px) {

  .flip-card-front,
  .flip-card-back {
    padding: 0;
  }

  .flip_content label {
    line-height: 1;
  }
}

@media only screen and (max-width: 390px) {

  .agents-flip-card,
  .partners-flip-card {
    zoom: 60%;
  }

  .flip_sec .container-sm {
    padding: 0 10px;
  }

  .flip-card-inner h4 {
    font-size: 1rem;
  }

  .flip_content label {
    font-size: 14px;
  }
}
