
/* Card */
.plan-card {
  position: relative;
  border-radius: 28px;
  
  background: #ffffff;
}

/* Dark header (demo only) */
.plan-card__top {
  background: #2b2b2b;
  color: #ffffff;
  padding: 40px 48px;
  font-size: 28px;
  line-height: 1.45;

  /* prevents overlap with ribbon */
  padding-right: 120px;
}

/* Price band (demo only) */
.plan-card__price {
  background: #f2c98a;
  padding: 24px;
  font-size: 42px;
  font-weight: 800;
  text-align: center;
}

/* ============================= */
/* Diagonal corner ribbon badge */
/* ============================= */
.corner-badge {
  position: absolute;
  top: 0;
  right: 0;
overflow: hidden;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 3;
}

/* Ribbon strip */
.corner-badge::before {
  content: "";
  position: absolute;
  top: 28px;
  right: -46px;

  width: 180px;
  height: 29px;

  background: linear-gradient(135deg, #E03D38 0%, #B41D1B 100%);

  transform: rotate(45deg);
  transform-origin: center;
}


/* Optional text version (enable if needed) */
.corner-badge::after {
  content: "MOST POPULAR";
  position: absolute;
      top: 33px;
    right: -46px;
  width: 180px;
  height: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  font-size: 11px;          /* was 10px */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transform: rotate(45deg);
}


/* Mobile tuning */
@media (max-width: 480px) {
  .corner-badge {
    width: 110px;
    height: 110px;
  }

  .corner-badge::before,
  .corner-badge::after {
    width: 150px;
    height: 29px;
    font-size: 11px;
  }

  .plan-card__top {
    padding-right: 96px;
  }
  .corner-badge::after{
    top: 23px;
    right: -38px;
  }
  .corner-badge::before, .corner-badge::after{
            font-size: 10px;
  }
  .corner-badge::before{
        top: 28px;
  }
}