/* ==========================================================================
   PRICING CSS
   Specific styles for the Top-up & Pricing page.
   Extends variables from serpupdate-tokens.css and ui components from landing-v2.css
   ========================================================================== */

/* Hero adjustments for Pricing */
.lv2-hero--pricing {
  padding-bottom: 40px;
}

/* ─────────────────────────────────────────────────────────────────
   WALLET EXPLANATION SECTION
   ───────────────────────────────────────────────────────────────── */
.prc-wallet-wrap {
  padding: 60px 0;
  background: var(--surface-1);
}
.prc-wallet {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 900px) {
  .prc-wallet { grid-template-columns: 1fr 1fr; align-items: center; }
}
.prc-wallet__illu {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.prc-wallet__illu-icon {
  font-size: 60px;
  line-height: 1;
  margin-bottom: 20px;
  color: var(--primary);
}
.prc-wallet__text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.prc-wallet__text p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.prc-gateways {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prc-gateway {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.prc-gateway__ic {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--primary-tint); color: var(--primary-dark);
  border-radius: 12px; font-weight: 700;
}
.prc-gateway__ic--sepay { background: #E8F5E9; color: #2E7D32; }
.prc-gateway__ic--global { background: #E3F2FD; color: #1565C0; }

.prc-gateway__info h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.prc-gateway__info p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.4; }
.prc-gateway__vat { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,0.05); }

/* ─────────────────────────────────────────────────────────────────
   PRICING TABLES / CARDS
   ───────────────────────────────────────────────────────────────── */
.prc-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.prc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.prc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.prc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.prc-card--popular {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(82, 113, 255, 0.15);
}
.prc-card__badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: 99px; letter-spacing: 0.05em; text-transform: uppercase;
}
.prc-card__title {
  font-size: 20px; font-weight: 700; margin-bottom: 8px;
}
.prc-card__desc {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 24px;
}
.prc-card__price {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text-primary); margin-bottom: 8px;
  line-height: 1;
}
.prc-card__price-sub {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; font-weight: 500;
}
.prc-card__features {
  list-style: none; padding: 0; margin: 0 0 32px; text-align: left;
  flex-grow: 1;
}
.prc-card__features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text-secondary); margin-bottom: 12px;
  line-height: 1.5;
}
.prc-card__features li svg {
  flex-shrink: 0; color: var(--primary); width: 18px; height: 18px; margin-top: 2px;
}

/* Pay as you go table */
.prc-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 40px;
}
.prc-table {
  width: 100%; border-collapse: collapse; text-align: left;
}
.prc-table th, .prc-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.prc-table th:first-child, .prc-table td:first-child {
  padding-left: 40px;
}
.prc-table th:not(:first-child), .prc-table td:not(:first-child) {
  text-align: center;
}
.prc-table th {
  background: var(--surface-2); font-weight: 700; color: var(--text-primary);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
}
.prc-table td {
  font-size: 15px; color: var(--text-secondary);
}
.prc-table tr:last-child td { border-bottom: none; }
.prc-table strong { color: var(--text-primary); font-weight: 700; }
.prc-table .highlight { color: var(--primary); font-weight: 700; }

/* ─────────────────────────────────────────────────────────────────
   TOP-UP CALCULATOR (INTERACTIVE)
   ───────────────────────────────────────────────────────────────── */
.prc-topup {
  text-align: left;
}
.prc-topup__head {
  margin-bottom: 24px;
  text-align: center;
}
.prc-topup__head h3 {
  font-size: 20px; font-weight: 800; margin-bottom: 4px;
}
.prc-topup__head p {
  font-size: 14px; color: var(--text-secondary); margin: 0;
}
.prc-topup__control {
  margin-bottom: 24px;
}
.prc-topup__control label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em;
}

.prc-topup__breakdown {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}
.prc-topup__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; color: var(--text-secondary); margin-bottom: 12px;
}
.prc-topup__row:last-child { margin-bottom: 0; }
.prc-topup__row small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.prc-topup__row span:last-child { font-weight: 600; color: var(--text-primary); font-family: var(--font-mono); }

.prc-topup__total {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 2px dashed var(--border-2);
  padding-top: 24px; margin-bottom: 32px;
}
.prc-topup__total-label {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
}
.prc-topup__total-values {
  text-align: right;
}
.prc-topup__total-values strong {
  display: block; font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -0.02em;
}
.prc-topup__total-values div {
  font-size: 14px; color: var(--text-secondary); font-weight: 600; margin-top: 6px;
}

/* Note for upcoming */
.prc-upcoming {
  background: rgba(0,0,0,0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px; text-align: center;
  margin-top: 24px;
}
.prc-upcoming h4 { font-size: 18px; margin-bottom: 8px; color: var(--text-secondary); font-weight: 700; }
