@scope (.kirana-pricing) {
/* =========================================================
   Premium Mobile App Product Selector
   ========================================================= */

.app-value-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(37, 99, 235, 0.1), transparent 55%),
    linear-gradient(180deg, #fff, #F8FAFC);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.app-value-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.app-value-copy h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-ink);
  letter-spacing: -0.02em;
}

.app-value-copy p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--brand-grey);
  max-width: 42ch;
}

.app-value-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-value-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-heading);
}

.app-value-points i {
  color: var(--green);
  font-size: 0.7rem;
}

/* Grid with OR divider */
.app-select-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.app-or {
  align-self: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-grey);
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  z-index: 1;
}

.app-pick {
  height: 100%;
  transition: transform 0.28s ease;
}

.app-pick .option-body {
  position: relative;
  width: 100%;
  min-height: 100%;
  padding: 22px 20px 20px;
  gap: 14px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  overflow: hidden;
}

.app-pick .option-body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 99, 235, 0.12), transparent 60%);
}

.app-pick:hover .option-body {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}

.app-pick:hover .option-body::before {
  opacity: 1;
}

.app-pick:hover .app-icon {
  transform: translateY(-3px) rotate(-6deg);
}

.app-pick input:checked + .option-body {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.25),
    0 18px 44px rgba(37, 99, 235, 0.16);
  transform: translateY(-3px);
}

.app-pick input:checked + .option-body::before {
  opacity: 1;
}

.app-pick input:checked + .option-body .option-price {
  transform: scale(1.04);
}

.app-pick input:checked + .option-body .check-ui {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  animation: appCheckBounce 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes appCheckBounce {
  0% { transform: scale(0.7); }
  55% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.app-pick .app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.app-pick .app-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-pick .app-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.45rem;
  margin: 0;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 12px 24px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}

.app-pick .app-icon.android {
  background: linear-gradient(160deg, rgba(74, 222, 128, 0.95), #15803d);
}

.app-pick .app-icon.apple {
  background: linear-gradient(160deg, #475569, #0f172a);
}

.app-pick .app-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.app-pick .option-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
  line-height: 1.2;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.app-badge i {
  font-size: 0.7rem;
  line-height: 1;
}

.app-badge.popular {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
}

.app-badge.popular i {
  color: #FDE68A;
}

.app-badge.premium {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #0F172A;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.28);
}

.app-badge.premium i {
  color: #0F172A;
}

.app-pick .check-ui {
  position: static;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.app-price-block {
  display: grid;
  gap: 8px;
}

.app-pick .option-price {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.04em;
  color: var(--brand-blue);
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums lining-nums;
  transition: transform 0.25s ease;
}

.app-pick .price-prefix {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--brand-grey);
}

.app-value-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 700;
}

.app-value-pill.affordable {
  color: #15803D;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.app-upgrade-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.14));
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.16);
  color: #92400E;
}

.app-upgrade-pill span {
  font-size: 0.64rem;
  font-weight: 700;
}

.app-upgrade-pill strong {
  font-size: 0.72rem;
  font-weight: 800;
  color: #B45309;
}

.app-price-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.app-price-meta em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--brand-grey);
}

.app-no-monthly {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: #15803d;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.18);
}

.app-subline {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: #475569;
}

.app-upsell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 0;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
  color: #9A3412;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.app-upsell[hidden] {
  display: none !important;
}

.app-upsell i {
  margin-top: 2px;
  color: #EA580C;
}

.app-pick[data-app="android"] .app-upsell {
  color: #1D4ED8;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}

.app-pick[data-app="android"] .app-upsell i {
  color: #2563EB;
}

.app-share {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 0;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.app-pick[data-app="ios"] .app-share {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.16);
}

.app-share-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand-grey);
}

.app-perfect-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-perfect-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-heading);
}

.app-perfect-list i {
  color: var(--green);
  font-size: 0.72rem;
}

.app-benefits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.app-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--brand-heading);
  line-height: 1.35;
}

.app-benefits i {
  color: var(--green);
  font-size: 0.72rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.1);
  flex-shrink: 0;
}

.app-best {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.app-best-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-grey);
}

.app-best-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-best-tags em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-heading);
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  padding: 4px 9px;
}

.app-both-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(255, 193, 7, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.app-both-banner[hidden] {
  display: none !important;
}

.app-both-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.app-both-banner strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 2px;
}

.app-both-banner p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--brand-grey);
}

.app-both-banner b {
  color: var(--brand-heading);
  font-weight: 700;
}

.app-recommend {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--brand-heading);
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.28);
}

.app-recommend:empty {
  display: none;
}

.app-select-status {
  margin: 6px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-grey);
}

.app-select-status.is-included {
  color: #15803d;
}

/* Hide legacy bundle hint - replaced by app-both-banner */
#bundleHint {
  display: none !important;
}

.app-select-grid.both-selected .app-pick .app-badge.popular,
.app-select-grid.both-selected .app-pick .app-badge.premium {
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
}

.app-select-grid.both-selected .app-pick[data-app="android"] .app-badge.popular::after,
.app-select-grid.both-selected .app-pick[data-app="ios"] .app-badge.premium::after {
  content: none;
}

@media (max-width: 900px) {
  .app-select-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-or {
    justify-self: center;
    margin: -2px 0;
  }

  .app-value-points {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .app-value-card {
    padding: 14px;
  }

  .app-value-points {
    grid-template-columns: 1fr;
  }

  .app-pick .option-body {
    padding: 18px 16px;
  }
}

}
