:root {
  --bg: #eef1f4;
  --white: #fff;
  --text: #1d2939;
  --muted: #667085;
  --blue: #1a73e8;
  --blue-dark: #1558c0;
  --navy: #1b1f4b;
  --green: #12d18e;
  --line: #e4e7ec;
  --card-border: #eceff3;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 8px 12px 8px 16px;
  background: var(--white);
  border-bottom: 1px solid #edf0f3;
}
.logo-heart {
  width: 36px;
  height: 36px;
  justify-self: start;
  object-fit: contain;
}
.btn-recharges {
  justify-self: center;
}
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header button,
.site-header a,
.terms a,
.site-footer a {
  pointer-events: none;
  cursor: default;
}
.terms .toggle,
.pay-btn,
.payment-option input {
  pointer-events: auto;
  cursor: pointer;
}
.btn-recharges {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 6px;
  height: 36px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--blue);
}
.icon-btn img { width: 26px; height: 26px; }
.menu-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--blue);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 8px;
  color: var(--muted);
  font-size: 13px;
}
.crumb svg { width: 16px; height: 16px; }
.crumb .sep { opacity: .55; }

.hero {
  margin: 0 0 10px;
  padding: 22px 20px 26px;
  background: #f3f5f8;
  text-align: center;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.4px;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.panel {
  background: var(--white);
  padding: 18px 16px 8px;
}
.panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.phone-box {
  display: flex;
  align-items: stretch;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  min-height: 48px;
}
.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 0 10px;
  color: #98a2b3;
  background: #f7f8fc;
  border-right: 1px solid #e6eaf0;
  font-size: 15px;
}
.phone-box input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 12px;
  font-size: 15px;
  color: var(--text);
  background: transparent;
}
.phone-box input::placeholder { color: #98a2b3; }
.phone-box.valid {
  border-color: #12b76a;
}
.phone-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 9px 10px 9px 0;
  border-radius: 50%;
  background: #12b76a;
  flex: 0 0 28px;
}
.phone-check svg { width: 16px; height: 16px; }
.hint {
  margin: 10px 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.email-field { margin-top: 16px; }
.email-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.email-box {
  display: flex;
  align-items: stretch;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  min-height: 48px;
}
.email-box svg {
  width: 18px;
  height: 18px;
  margin: 15px 10px 15px 14px;
  color: #98a2b3;
  flex: 0 0 18px;
}
.email-box input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 12px 0 0;
  font-size: 15px;
  color: var(--text);
  background: transparent;
}
.email-box input::placeholder { color: #98a2b3; }

.row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}
.row-title h2 { margin: 0; }
.amount-clear {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}
.amount-clear button {
  border: 0;
  background: transparent;
  padding: 0;
}
.amount-clear img { width: 18px; height: 20px; opacity: .55; }

.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px 10px;
  position: relative;
  white-space: nowrap;
}
.tab.active {
  color: var(--text);
  background: #f4f6f8;
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 3px;
  background: #3d2b66;
  border-radius: 2px 2px 0 0;
}

.fade-track {
  height: 10px;
  margin: 10px 0 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eaf4ff, #f6f9fc);
}
.country-bar {
  margin: 10px 0 14px;
  padding: 10px;
  border-radius: 12px;
  background: #eef5ff;
}
.country-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6edf5;
  background: #fff;
  color: #344054;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
  cursor: default;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.country-picker svg {
  width: 14px;
  height: 14px;
  opacity: .7;
}

.plan-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(29, 41, 57, .62);
  backdrop-filter: blur(1px);
}
.plan-loader.is-visible {
  display: flex;
}
body.loader-open {
  overflow: hidden;
}
.plan-loader video {
  width: 96px;
  height: 96px;
  pointer-events: none;
}
.panel.disabled .tabs,
.panel.disabled .country-bar,
.panel.disabled .fade-track,
.panel.disabled .cards {
  opacity: .45;
  pointer-events: none;
  user-select: none;
  filter: grayscale(.35);
}
.panel.disabled .amount-clear button { pointer-events: none; }

.cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }

.plan-card,
.credit-card {
  flex: 0 0 128px;
  border: 1px solid #eceff3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  padding: 12px 10px 12px 12px;
  text-align: left;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.plan-card {
  flex: 0 0 128px;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  min-height: 108px;
  overflow: hidden;
  border-left: 4px solid var(--green);
  cursor: pointer;
}
.plan-card.selected {
  flex: 0 0 300px;
  flex-direction: row;
  min-height: 132px;
}
.plan-card.no-data {
  border-left-color: transparent;
}
.plan-card.selected,
.credit-card.selected {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
}
.plan-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 10px;
  background: #fff;
}
.plan-card.selected .plan-main {
  flex: 0 0 34%;
  background: #2c68d8;
  border-right: 1px solid rgba(255, 255, 255, .15);
}
.plan-card.no-data .plan-main {
  justify-content: flex-end;
}
.plan-card.no-data.selected .plan-main {
  flex: 0 0 38%;
}
.plan-inclus {
  flex: 1;
  padding: 10px 12px 10px 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.plan-inclus-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1d2939;
}
.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.plan-features li {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #667085;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-features.expanded li {
  white-space: normal;
  overflow: visible;
}
.plan-more {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2c68d8;
  cursor: pointer;
  pointer-events: auto;
  align-self: flex-start;
}
.plan-card.selected .plan-inclus-title,
.plan-card.selected .plan-features li {
  color: #475467;
}
.plan-card.selected .plan-more {
  color: #2c68d8;
}

/* Plan details sheet */
body.sheet-open {
  overflow: hidden;
}
.plan-sheet {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.plan-sheet[hidden] {
  display: none !important;
}
.plan-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, .45);
}
.plan-sheet-dialog {
  position: relative;
  width: min(100%, 680px);
  max-height: min(90vh, 820px);
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 40px rgba(16, 24, 40, .18);
}
.plan-sheet-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #2c68d8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(44, 104, 216, .35);
}
.plan-sheet-close svg {
  width: 18px;
  height: 18px;
}
.plan-sheet-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  color: #344054;
}
.plan-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4e7ec;
  margin-bottom: 14px;
}
.plan-sheet-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #344054;
  flex: 1;
}
.plan-sheet-meta {
  text-align: right;
  flex-shrink: 0;
}
.plan-sheet-price {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #344054;
}
.plan-sheet-days {
  margin: 4px 0 0;
  font-size: 13px;
  color: #667085;
}
.plan-sheet-features {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.plan-sheet-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #344054;
}
.plan-sheet-features svg {
  width: 14px;
  height: 10px;
  flex: 0 0 14px;
  margin-top: 4px;
}
.plan-sheet-features li span {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .plan-sheet {
    align-items: flex-end;
    padding: 0;
  }
  .plan-sheet-dialog {
    width: 100%;
    max-height: 88vh;
    border-radius: 12px 12px 0 0;
    padding: 24px 20px 28px;
  }
  .plan-sheet-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}
.plan-sheet-terms h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #344054;
}
.plan-sheet-terms p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #667085;
}
.plan-data {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1;
  color: #1d2939;
}
.plan-card.selected .plan-data {
  color: #1d2939;
}
.plan-data .unit {
  font-size: 15px;
  margin-left: 1px;
}
.plan-price {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1d2939;
}
.plan-card.selected .plan-price,
.plan-card.selected .plan-days {
  color: #fff;
}
.plan-card.no-data .plan-price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.6px;
}
.plan-days {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.credit-card {
  position: relative;
  background: #fafbfc;
  min-height: 92px;
  padding-top: 16px;
}
.credit-card .plan-price { font-size: 22px; }
.credit-card .plan-days { font-size: 13px; }

.payment-block {
  background: #f4f6f8;
  padding: 22px 16px 18px;
}
.payment-block h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 500;
  color: #344054;
}
.payment-sub {
  margin: 0 0 14px;
  color: #878787;
  font-size: 15px;
  line-height: 17px;
}
.payment-options {
  display: flex;
  flex-direction: column;
}
.payment-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  padding: 13px 17px 10px 12px;
  background: #fafbff;
  border: 1.5px solid #dfe0f8;
  border-bottom: none;
  cursor: pointer;
}
.payment-option:last-child {
  border-bottom: 1.5px solid #dfe0f8;
}
.payment-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.payment-radio {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 2px solid #bec6d5;
  border-radius: 50%;
  background: #fff;
}
.payment-option.selected .payment-radio {
  border-color: #2c68d8;
  box-shadow: inset 0 0 0 4px #2c68d8;
}
.payment-label {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
  color: #344054;
}
.payment-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.payment-icons img {
  width: 34px;
  height: 24px;
  flex: 0 0 34px;
}
.payment-more {
  font-size: 12px;
  line-height: 1;
  color: #667085;
  margin-left: 2px;
}
.payment-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #eff8ff;
  border: 1px solid #d6e9ff;
  border-radius: 6px;
}
.payment-info svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
}
.payment-info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #667085;
}

.summary {
  background: var(--white);
  padding: 22px 16px 8px;
}
.summary h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 500;
  color: #344054;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 14px;
}
.summary-lines {
  padding: 4px 0 0;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.2;
  color: #344054;
}
.summary-line strong {
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 18px;
  margin-top: 4px;
  border-top: 1px solid #f2f2f2;
  font-size: 18px;
  font-weight: 500;
  color: #344054;
}
.total-row strong { font-size: 22px; font-weight: 500; }

.terms {
  background: var(--white);
  padding: 8px 16px 28px;
}
.terms h2 {
  margin: 0 0 16px;
  font-size: 18px;
}
.terms-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 999px;
  background: #d0d5dd;
  margin-top: 2px;
}
.toggle.on { background: #12b76a; }
.toggle i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left .18s ease;
}
.toggle.on i { left: 22px; }
.terms-copy { font-size: 14px; color: var(--text); line-height: 1.45; }
.terms-copy .note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.pay-btn {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 4px;
  height: 48px;
  background: #c5cdd6;
  color: #667085;
  font-size: 16px;
  font-weight: 600;
}
.pay-btn.enabled {
  background: var(--blue);
  color: #fff;
}

.site-footer {
  background: #161a45;
  color: #fff;
  text-align: center;
  padding: 28px 16px 36px;
}
.footer-logo {
  width: 150px;
  margin: 0 auto 14px;
}
.site-footer p {
  margin: 0 0 18px;
  font-size: 13px;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.socials img { width: 18px; height: 18px; }

@media (min-width: 720px) {
  .panel, .summary, .terms, .payment-block, .hero, .crumb {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero { border-radius: 0; }
}
