  /* =======================
     GRID WRAPPER
  ======================= */
 /* .plan-wrapper.compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  @media (max-width: 900px) {
    .plan-wrapper.compact {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
  }

  @media (max-width: 600px) {
    .plan-wrapper.compact {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
    }
  }

  @media (max-width: 360px) {
    .plan-wrapper.compact {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 5px;
    }
  }*/

  .plan-wrapper.compact{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:calc((100% - 20px) / 3);
    gap:10px;
    align-items: center;
    overflow-x:scroll;
    /*overflow-x:auto;*/
    overflow-y:hidden;
    padding-bottom:6px;
    -webkit-overflow-scrolling:touch;
  }

  .plan-wrapper.compact::-webkit-scrollbar{
    height:6px;
  }

  .plan-wrapper.compact::-webkit-scrollbar-thumb{
    background: var(--accent-glow);
    border-radius:4px;
  }

  .plan-wrapper.compact::-webkit-scrollbar-track{
    background:#eee;
  }

  /* =======================
     CARD
  ======================= */
  .plan-card.compact {
    position: relative;
    display: block;
    min-width: 0;
    overflow: visible;

    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    height: fit-content;
    cursor: pointer;
    user-select: none;

    transition: all 0.2s ease;
  }

  /* hover */
  .plan-card.compact:hover {
    border-color: #6366f1;
    background: #f9fafb;
    transform: translateY(1px);
  }

  /* =======================
     RADIO (full clickable card)
  ======================= */
  .plan-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
  }

  /* =======================
     CONTENT
  ======================= */
  .plan-inner {
    padding: 20px 10px 10px; /* space for badge */
    text-align: center;
  }

  .plan-inner h4 {
    font-size: 14px;
    line-height: 1.2;
    margin: 0 0 4px;
    color: #111827;
  }

  .reg-price {
    font-size: 16px;
    font-weight: 700;
    color: #EA580C;

    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
  }

  /* main reg-price (₹ value) */
  .reg-price::first-line {
    font-weight: 700;
  }

  /* duration text */
  .reg-price-period {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.2px;
  }

  @media (max-width: 480px){
  .reg-price-period{
    font-size: 12px;
  }
  .plan-inner {
    padding: 20px 5px 8px;
  }
}
  /* =======================
     SELECTED STATE (IMPORTANT FIX)
  ======================= */
  .plan-card input:checked ~ .plan-inner {
    background: #eef2ff;
    box-shadow: 0 0 0 2px var(--accent) inset;
    border-radius: 10px;
  }

  .badge {
    position: absolute;
    top: 2px;
    right: 2px;

    background: var(--accent-hover);
    color: #fff;

    font-size: 10px;
    line-height: 1;

    padding: 3px 7px;
    border-radius: 999px;

    z-index: 10;

    white-space: nowrap;
    pointer-events: none;
  }

  .plan-saving{
    display:block;
    font-size:10px;
    color:#16a34a;
    font-weight:600;
  }

  .price-plan-saving{
    display:block;
    font-size:14px;
    color:#16a34a;
    font-weight:600;
  }

  @media (max-width: 480px) {
    .plan-inner {
      padding: 16px 4px 8px;
    }

    .plan-inner h4 {
      font-size: 13px;
      margin-top: 5px;
    }

    .reg-price {
      font-size: 12px;
    }

    .badge {
      font-size: 11px;
      padding: 2px 8px;
      top: 2px;
      right: 2px;
    }
  }