/* ══════════════════════════════════════════════════════════════════════════════
   Billing & Onboarding — Plan Selection, POS Selection, Subscription, Upgrade
   Extracted from main.css
══════════════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════════
   Onboarding Plan Selection  (Step 3 of onboarding wizard)
════════════════════════════════════════════════════════════════════════════ */

/* ── Progress bar ── */
.obp-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.obp-progress__line {
  flex: 1;
  height: 2px;
  background: #dee2e6;
}
.obp-progress__line--done { background: #28a745; }

.obp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.obp-step__badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  background: #dee2e6;
  color: #6c757d;
}
.obp-step--done  .obp-step__badge { background: #28a745; color: #fff; }
.obp-step--active .obp-step__badge { background: #f97316; color: #fff; }
.obp-step__badge--muted { background: #dee2e6; color: #6c757d; }
.obp-step__label {
  font-size: .72rem;
  margin-top: .4rem;
  color: #6c757d;
  white-space: nowrap;
}
.obp-step__label--muted { color: #adb5bd; }

/* ── Plan cards ── */
.obp-plan-card {
  cursor: pointer;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
  height: 100%;
  background: #fff;
}
.obp-plan-card:hover {
  border-color: #f97316;
  box-shadow: 0 0 0 .15rem rgba(249,115,22,.15);
}
.obp-plan-card--selected {
  border-color: #f97316;
  box-shadow: 0 0 0 .2rem rgba(249,115,22,.25);
}
.obp-plan-card--popular { border-color: #f97316; }

.obp-plan-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f97316;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .2rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.obp-plan-card__header { margin-bottom: 1rem; }
.obp-plan-tagline { font-size: .82rem; color: #6c757d; margin-bottom: 0; }

.obp-plan-price-block { margin-bottom: .75rem; }
.obp-plan-price { font-size: 2rem; font-weight: 700; line-height: 1; }
.obp-plan-price-unit { font-size: .875rem; color: #6c757d; }
.obp-plan-savings { font-size: .75rem; color: #6c757d; margin-top: .2rem; }

.obp-plan-fee-badge {
  font-size: .75rem;
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  border-radius: .375rem;
  padding: .2rem .5rem;
  display: inline-block;
  margin-bottom: .75rem;
}

.obp-plan-features { margin-bottom: 0; }
.obp-plan-feature-item {
  display: flex;
  gap: .5rem;
  align-items: baseline;
  font-size: .875rem;
  padding: .25rem 0;
  border-bottom: 1px solid #f8f9fa;
}
.obp-plan-feature-item:last-child { border-bottom: none; }
.obp-plan-feature-icon { font-size: .85rem; min-width: 16px; }
.obp-plan-feature-icon--off { color: #adb5bd; }

.obp-plan-upgrade-note { font-size: .82rem; color: #6c757d; }


/* ════════════════════════════════════════════════════════════════════════════
   Onboarding POS Selection  (Step 2 of onboarding wizard)
════════════════════════════════════════════════════════════════════════════ */

.pos-option-card {
  cursor: pointer;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  height: 100%;
  background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-align: center;
}
.pos-option-card:hover {
  border-color: #f97316;
  box-shadow: 0 0 0 .15rem rgba(249,115,22,.15);
  transform: translateY(-3px);
}
.pos-option-card--muted {
  border-color: #e9ecef;
  background: #f8f9fa;
}
.pos-option-card--muted:hover {
  border-color: #adb5bd;
  box-shadow: 0 0 0 .15rem rgba(108,117,125,.12);
}
.pos-option-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ── Restaurant Dashboard — Subscription card ── */
.rdash-plan-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.rdash-plan-icon--free    { background: #f1f3f5; color: #6c757d; }
.rdash-plan-icon--plus    { background: #dbeafe; color: #1d4ed8; }
.rdash-plan-icon--pro     { background: #fef3c7; color: #b45309; }

.rdash-badge-pro {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
}

.rdash-billing-meta {
  background: #f8f9fa;
  border-radius: .5rem;
  padding: .75rem 1rem;
}
.rdash-billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .2rem 0;
}
.rdash-billing-row + .rdash-billing-row {
  border-top: 1px solid #e9ecef;
}
.rdash-status-badge {
  font-size: .7rem;
}
.rdash-upgrade-nudge {
  background: #fffbeb;
  border-color: #fde68a;
  font-size: .875rem;
}
.rdash-icon-md {
  font-size: 2rem;
}
.rdash-cancel-link {
  font-size: .8125rem;
  text-decoration: none;
  opacity: .65;
}
.rdash-cancel-link:hover {
  opacity: 1;
  color: #dc3545 !important;
}

/* ── Upgrade Plan page — billing cycle toggle ── */
.upg-cycle-toggle {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  font-weight: 500;
}
.upg-toggle-switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
}
.upg-toggle-switch input { opacity: 0; width: 0; height: 0; }
.upg-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ced4da;
  border-radius: 1.5rem;
  transition: background .2s;
}
.upg-toggle-slider::before {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  left: .2rem;
  bottom: .2rem;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.upg-toggle-switch input:checked + .upg-toggle-slider          { background: #0d6efd; }
.upg-toggle-switch input:checked + .upg-toggle-slider::before  { transform: translateX(1.25rem); }
.upg-savings-badge {
  background: #d1fae5;
  color: #065f46;
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .45rem;
  border-radius: .25rem;
}

/* ── Upgrade Plan page — current plan card state ── */
.upg-plan-card--current {
  border: 2px solid #198754 !important;
}
.upg-current-badge {
  display: inline-block;
  background: #198754;
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: .25rem;
  margin-bottom: .5rem;
}
.upg-portal-info {
  font-size: .875rem;
}

/* ── Cancel Subscription page ── */
.csub-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #fff3cd;
}
.csub-icon {
  font-size: 2rem;
}
.csub-period-notice {
  font-size: .9rem;
}


/* ── Pricing page ── */
.pricing-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f1f5f9;
  padding: 4rem 1rem 3.5rem;
  text-align: center;
}
.pricing-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: .75rem; }
.pricing-hero p  { font-size: 1.1rem; color: #94a3b8; max-width: 560px; margin: 0 auto .75rem; }
.pricing-hero-badge { font-size: .82rem; color: #94a3b8; margin-top: 1.25rem; }
.pricing-hero-badge .bi { color: #22c55e; margin-right: .2rem; }

/* ── Pricing page — subscription plans grid ── */
.pricing-plans-section { padding: 3.5rem 1rem 2rem; background: #fff; }
.pricing-plans-container { max-width: 1020px; margin: 0 auto; }
.pricing-plan-card { cursor: default; }
.pricing-plan-note { font-size: .82rem; color: #64748b; }
.pricing-plan-note .bi { color: #f97316; }

.pricing-section-label {
  text-align: center; font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: #64748b; margin-bottom: 1.25rem;
}
.pricing-fee-section { background: #f8fafc; padding: 3.5rem 1rem; }
.pricing-fee-container { max-width: 600px; margin: 0 auto; }
.pricing-fee-card {
  background: #fff; border: 2px solid #e2e8f0; border-radius: 16px;
  padding: 2.5rem 2rem; text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.pricing-fee-main { margin-bottom: 1rem; }
.pricing-fee-amount { font-size: 3rem; font-weight: 800; color: #0f172a; line-height: 1; }
.pricing-fee-currency { font-size: 1.5rem; vertical-align: super; }
.pricing-fee-plus { font-size: 2rem; color: #64748b; }
.pricing-fee-label { font-size: .95rem; color: #64748b; margin-top: .4rem; }
.pricing-fee-explain { font-size: .88rem; color: #64748b; max-width: 400px; margin: 0 auto; }
.pricing-promo-wrap { margin-top: 2rem; }
.pricing-promo-label { margin-bottom: 1rem; }
.pricing-promo-card {
  background: #fff7ed; border: 2px solid #fed7aa; border-radius: 12px;
  padding: 1.1rem 1.5rem; margin-bottom: .75rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem;
}
.pricing-promo-badge {
  font-size: .72rem; font-weight: 700; background: #f97316;
  color: #fff; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap;
}
.pricing-promo-name { font-weight: 600; color: #0f172a; flex: 1; min-width: 140px; }
.pricing-promo-amount { font-size: 1.1rem; font-weight: 700; color: #ea580c; }
.pricing-promo-per { font-size: .8rem; color: #64748b; font-weight: 400; }
.pricing-promo-expires { font-size: .78rem; color: #92400e; width: 100%; }
.pricing-features-section { padding: 3.5rem 1rem; background: #fff; }
.pricing-features-container { max-width: 900px; margin: 0 auto; text-align: center; }
.pricing-features-heading {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
  color: #0f172a; margin-bottom: .75rem;
}
.pricing-features-sub { color: #64748b; max-width: 520px; margin: 0 auto 2.5rem; }
.pricing-feature-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; text-align: left;
}
.pricing-feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #f8fafc; border-radius: 10px; padding: 1.1rem 1.25rem;
}
.pricing-feat-icon { font-size: 1.4rem; color: #f97316; flex-shrink: 0; margin-top: .05rem; }
.pricing-feat-detail { font-size: .82rem; color: #64748b; margin-top: .2rem; }
.pricing-how-section { padding: 3.5rem 1rem; background: #f8fafc; }
.pricing-how-container { max-width: 900px; margin: 0 auto; text-align: center; }
.pricing-how-steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: .5rem; flex-wrap: wrap; margin-top: 2rem;
}
.pricing-how-step {
  background: #fff; border-radius: 12px; padding: 1.5rem 1.25rem;
  flex: 1; min-width: 200px; max-width: 260px; text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.pricing-how-num { font-size: 1.5rem; font-weight: 800; color: #f97316; margin-bottom: .5rem; }
.pricing-how-arrow { font-size: 1.5rem; color: #cbd5e1; align-self: center; flex-shrink: 0; }
.pricing-faq-section { padding: 3.5rem 1rem 4rem; background: #fff; }
.pricing-faq-container { max-width: 760px; margin: 0 auto; }
.pricing-faq-item { border-bottom: 1px solid #e2e8f0; }
.pricing-faq-q {
  font-weight: 600; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  list-style: none; color: #0f172a; padding: 1.1rem 0;
}
.pricing-faq-q::-webkit-details-marker { display: none; }
.pricing-faq-chevron { color: #94a3b8; }
.pricing-faq-a { color: #475569; font-size: .92rem; line-height: 1.65; padding-bottom: 1rem; margin-bottom: 0; }
.pricing-cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f1f5f9; padding: 4rem 1rem; text-align: center;
}
.pricing-cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: .75rem; }
.pricing-cta-inner p  { color: #94a3b8; margin-bottom: 2rem; font-size: 1.05rem; }
.pricing-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
