/* =====================================================
   PLAN CARDS — Dopamine-positive fintech style
   White cards, colored badges, orange CTAs, savings pills
   ===================================================== */

/* ===== BASE CARD ===== */
.plan-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow-card);
}

.plan-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* ===== RECOMMENDATION BADGE (top-left pill) ===== */
.plan-card__rec-badge {
  position: absolute;
  top: -12px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-badge);
  white-space: nowrap;
}

.plan-card__rec-badge--top-pick {
  background: var(--color-orange);
  color: #fff;
}

.plan-card__rec-badge--popular {
  background: var(--color-blue);
  color: #fff;
}

.plan-card__rec-badge--value {
  background: var(--color-green);
  color: #fff;
}

.plan-card__rec-badge--deal {
  background: var(--color-purple);
  color: #fff;
}

.plan-card__rec-badge svg,
.plan-card__rec-badge .badge-icon {
  width: 14px;
  height: 14px;
}

/* ===== CARD BODY ===== */
.plan-card__body {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ===== PROVIDER ROW ===== */
.plan-card__provider-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.plan-card__logo {
  height: 28px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.plan-card__network-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  margin-left: auto;
}

.plan-card__network-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
}

.plan-card__title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
  position: relative;
  padding-right: 60px; /* Prevent text from overlapping the top-right network dot */
}

.plan-card__title-row .plan-card__network-dot {
  position: absolute;
  top: 0;
  right: 0;
}

.plan-card__opaque-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}

.plan-card__opaque-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ===== PLAN NAME / DATA PILL ===== */
.plan-card__plan-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.plan-card__data-pill {
  display: inline-block;
  background: #FEE2E2; /* Light Red */
  color: #B91C1C; /* Dark Red */
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
}

.plan-card__feature-badge {
  display: inline-flex;
  align-items: center;
  background: #FFF7ED;
  border: 1px solid var(--color-orange);
  color: var(--color-orange);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan-card__feature-badge svg {
  width: 14px;
  height: 14px;
}

/* ===== PRICE BLOCK ===== */
.plan-card__price-block {
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
}

.plan-card__price-dollar {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-right: 2px;
}

.plan-card__price-amount {
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan-card__price-period {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  margin-left: 2px;
}

.plan-card__price-original {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* Savings pill */
.plan-card__savings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-green-light);
  color: var(--color-green);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.plan-card__secret-tooltip {
  cursor: pointer;
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(59, 130, 246, 0.4);
  transition: all 0.2s;
}

.plan-card__secret-tooltip:hover {
  color: var(--color-blue-dark);
  text-decoration-color: var(--color-blue);
}

/* ===== DATA ROW ===== */
.plan-card__data-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  margin-bottom: 12px;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.plan-card__data-item {
  display: flex;
  flex-direction: column;
}

.plan-card__data-value {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.plan-card__data-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

/* ===== FEATURES LIST ===== */
.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
}

.plan-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.plan-card__feature-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background: #1A1C20;
  color: #FFFFFF;
}

.plan-card__feature-icon--green {
  /* No longer need light green background */
}

.plan-card__feature-icon svg {
  width: 12px;
  height: 12px;
}

/* ===== NO HIDDEN FEES ===== */
.plan-card__trust-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 14px;
  font-weight: var(--font-weight-medium);
}

/* ===== CTA BUTTON ===== */
.plan-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-card__cta--orange {
  background: var(--color-orange);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.plan-card__cta--orange:hover {
  background: var(--color-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,0,0.35);
}

.plan-card__cta--blue {
  background: var(--color-blue);
  color: #fff;
}

.plan-card__cta--blue:hover {
  background: var(--color-blue-hover);
}

.plan-card__cta--green {
  background: var(--color-green);
  color: #fff;
}

.plan-card__cta--green:hover {
  background: #15803D;
}

.plan-card__cta-arrow {
  font-size: 1.1em;
}

/* ===== WHY WE RECOMMEND ===== */
.plan-card__why {
  text-align: center;
  margin-top: 12px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: color 0.2s;
}

.plan-card__why:hover {
  color: var(--color-blue);
}

/* ===== SPEED VISUALIZATION (Internet) ===== */
.plan-card__speed-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.plan-card__speed-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.plan-card__speed-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.plan-card__speed-value {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-primary);
}

.plan-card__speed-unit {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

/* Speed bar gauge */
.plan-card__speed-bar {
  width: 100%;
  height: 6px;
  background: var(--color-border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.plan-card__speed-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.plan-card__speed-bar-fill--green { background: var(--color-green); }
.plan-card__speed-bar-fill--blue { background: var(--color-blue); }
.plan-card__speed-bar-fill--orange { background: var(--color-orange); }

/* ===== FEATURE ICONS ROW (Internet) ===== */
.plan-card__icon-features {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.plan-card__icon-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.plan-card__icon-feature svg {
  width: 16px;
  height: 16px;
  color: var(--color-blue);
}

/* ===== SECURITY: SPECS GRID ===== */
.plan-card__specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border-light);
  margin-bottom: 14px;
}

.plan-card__spec {
  padding: 10px 0;
  text-align: center;
  border-right: 1px solid var(--color-border-light);
}

.plan-card__spec:last-child {
  border-right: none;
}

.plan-card__spec-label {
  font-size: 10px;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.plan-card__spec-value {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

/* Star ratings */
.plan-card__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-yellow);
}

/* ===== GRID LAYOUT ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding-top: 16px;
}

/* ===== FEATURED BORDER ===== */
.plan-card--featured {
  border-color: var(--color-orange);
  border-width: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .plan-card__body {
    padding: 24px 20px 20px;
  }

  .plan-card__price-amount {
    font-size: 2rem;
  }

  .plan-card__specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-card__spec {
    border-bottom: 1px solid var(--color-border-light);
  }
}

/* ===== VARIANT B (Horizontal Wide) ===== */
.plan-card--variant-b {
  width: 100%;
}
.plan-card__body-b {
  padding: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.plan-card__col-b {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.plan-card__col-b--specs {
  flex: 2;
  align-items: flex-start;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding: 0 24px;
}
.plan-card__col-b--action {
  flex: 0 0 auto;
}
@media (max-width: 768px) {
  .plan-card__body-b {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .plan-card__col-b--specs {
    border-left: none; border-right: none;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    align-items: center;
  }
  .plan-card__col-b {
    align-items: center;
  }
}

/* ===== VARIANT C (Compact Grid) ===== */
.plan-card--variant-c {
  max-width: 300px;
}
.plan-card__body-c {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
