/* Mirrors react-app/src/index.scss plan cards, features, pricing, CTA, exclusive offer.
   Scoped under .plans-app-host so it does not clash with legacy .plan-card on other pages. */

.plans-app-host {
  --awap-accent: #ff8a1f;
  --awap-accent-2: #ffb347;
  --awap-accent-rgb: 255, 138, 31;
}

.plans-app-inner {
  width: 100%;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.plans-app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .plans-app-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plans-app-host .plans-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  padding: 1.4rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

/* API-driven cards (no feature list): shorter card */
.plans-app-host .plans-card.plans-card--no-features {
  min-height: 0;
}

.plans-app-host .plans-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 50% at 0% 0%, rgba(var(--awap-accent-rgb), 0.05), transparent 70%);
}

.plans-app-host .plans-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.plans-app-host .plans-card:hover::before {
  background: radial-gradient(ellipse 65% 50% at 0% 0%, rgba(var(--awap-accent-rgb), 0.08), transparent 70%);
}

.plans-app-host .plans-card-title {
  position: relative;
  margin: 0 0 1.1rem;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.plans-app-host .plans-feature-list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.6rem;
}

.plans-app-host .plans-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(234, 240, 255, 0.9);
}

.plans-app-host .plans-feature-icon {
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: var(--awap-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plans-app-host .plans-feature-icon svg {
  width: 0.875rem;
  height: 0.875rem;
  display: block;
}

.plans-app-host .plans-feature-item--off {
  color: rgba(180, 190, 215, 0.38);
}

.plans-app-host .plans-feature-item--off .plans-feature-icon {
  color: rgba(180, 190, 215, 0.3);
}

.plans-app-host .plans-price-wrap {
  position: relative;
  margin-top: auto;
  padding-top: 1.5rem;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.plans-app-host .plans-price-line {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  color: #f5f8ff;
}

.plans-app-host .plans-sol-amount {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plans-app-host .plans-sol-amount--strike {
  text-decoration: line-through;
  opacity: 0.45;
}

.plans-app-host .plans-sol-unit {
  font-size: 0.93rem;
  line-height: 1.15;
  margin-bottom: 0.28rem;
  color: rgba(225, 232, 248, 0.75);
  font-weight: 300;
}

.plans-app-host .plans-sol-unit--strike {
  text-decoration: line-through;
  opacity: 0.45;
}

.plans-app-host .plans-usd-price {
  font-size: 0.86rem;
  color: rgba(210, 218, 238, 0.65);
  font-weight: 300;
  margin-top: 0.2rem;
}

.plans-app-host .plans-actions {
  position: relative;
  margin-top: 1rem;
  width: 100%;
}

.plans-app-host .plans-cta-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  color: #0b0d12;
  text-decoration: none;
  background: linear-gradient(135deg, var(--awap-accent), var(--awap-accent-2));
  box-shadow: 0 10px 24px rgba(var(--awap-accent-rgb), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.plans-app-host .plans-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.plans-app-host .plans-cta-btn:active {
  transform: translateY(0);
}

/* Exclusive offer box */
.plans-app-host .plans-price-wrap > .excl-offer {
  margin-top: 1rem;
}

.plans-app-host .excl-offer {
  border: 1px solid rgba(var(--awap-accent-rgb), 0.22);
  background: linear-gradient(180deg, rgba(var(--awap-accent-rgb), 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.plans-app-host .excl-offer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.plans-app-host .excl-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(var(--awap-accent-rgb), 0.35);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  background: rgba(var(--awap-accent-rgb), 0.08);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.plans-app-host .excl-offer-badge-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--awap-accent);
  letter-spacing: -0.01em;
}

.plans-app-host .excl-offer-badge-label {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(var(--awap-accent-rgb), 0.7);
  letter-spacing: 0.02em;
}

.plans-app-host .excl-offer-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.plans-app-host .excl-offer-original {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: line-through;
  line-height: 1;
}

.plans-app-host .excl-offer-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.plans-app-host .excl-offer-amount {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
}

.plans-app-host .excl-offer-amount.line-through {
  text-decoration: line-through;
}

.plans-app-host .excl-offer-unit {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.1rem;
}

.plans-app-host .excl-offer-usd {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  margin-top: 0;
}

.plans-app-host .excl-offer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
}

.plans-app-host .excl-offer-until {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.plans-app-host .excl-offer-countdown-cells {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.plans-app-host .excl-offer-cell {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  transition: opacity 0.2s ease;
}

.plans-app-host .excl-offer-cell--hidden {
  opacity: 0;
  pointer-events: none;
}

.plans-app-host .excl-offer-cell-value {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
  min-width: 1.4ch;
  text-align: right;
}

.plans-app-host .excl-offer-cell-unit {
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.05rem;
}

.plans-app-host .plans-app-error {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(248, 113, 113, 0.9);
  font-size: 0.9rem;
}

.plans-app-host .plans-app-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(180, 190, 215, 0.5);
  font-size: 0.9rem;
}

/* Activity selector (mirrors react-app PlansGrid) */
.plans-app-activity-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.plans-app-activity-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #52525b;
  user-select: none;
}

.plans-app-activity-bar {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 36rem;
  border: 1px solid #27272a;
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .plans-app-activity-bar {
    flex-direction: row;
  }

  .plans-app-activity-bar > .plans-app-activity-btn + .plans-app-activity-btn {
    border-left: 1px solid #27272a;
    border-top: none;
  }
}

.plans-app-activity-bar > .plans-app-activity-btn + .plans-app-activity-btn {
  border-top: 1px solid #27272a;
}

.plans-app-activity-btn {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: #09090b;
  border: none;
  cursor: pointer;
  outline: none;
  color: inherit;
  transition: background 0.2s ease;
}

.plans-app-activity-btn:hover {
  background: rgba(24, 24, 27, 0.6);
}

.plans-app-activity-btn--active {
  background: #18181b;
}

.plans-app-activity-btn--active::before {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}

@media (min-width: 640px) {
  .plans-app-activity-btn--active::before {
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fb923c, transparent);
  }
}

@media (max-width: 639px) {
  .plans-app-activity-btn--active::before {
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, #fb923c, transparent);
  }
}

.plans-app-activity-btn-icon {
  position: relative;
  flex-shrink: 0;
  display: flex;
  color: #52525b;
  transition: color 0.2s ease;
}

.plans-app-activity-btn--active .plans-app-activity-btn-icon {
  color: #fff;
}

.plans-app-activity-btn:hover:not(.plans-app-activity-btn--active) .plans-app-activity-btn-icon {
  color: #a1a1aa;
}

.plans-app-activity-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.plans-app-activity-icon--rug {
  width: 1.85rem;
  height: 1.85rem;
}

.plans-app-activity-btn-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.plans-app-activity-btn-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #a1a1aa;
  transition: color 0.2s ease;
}

.plans-app-activity-btn--active .plans-app-activity-btn-title {
  color: #fff;
}

.plans-app-activity-btn:hover:not(.plans-app-activity-btn--active) .plans-app-activity-btn-title {
  color: #d4d4d8;
}

.plans-app-activity-btn-desc {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #52525b;
}
