/* Codedetox — online SMS recharge section + payment result pages (loaded with homepage.css) */
.rc-card { position: relative; max-width: 980px; margin: 0 auto; padding: 28px 22px 30px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(11, 37, 64, .12); }
.rc-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* stepper */
.rc-steps { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0 10px; }
.rc-steps li { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--muted); font-weight: 600; font-size: .92rem; }
.rc-steps li b { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #e8eef4; color: var(--muted); transition: background .4s, color .4s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.rc-steps li.is-active { color: var(--ink); }
.rc-steps li.is-active b { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; transform: scale(1.12); box-shadow: 0 8px 18px rgba(8, 145, 178, .4); }
.rc-steps li.is-done b { background: #16a34a; color: #fff; }
.rc-steps li.is-done b::after { content: "✓"; }
.rc-steps li.is-done b { font-size: 0; }
.rc-steps li.is-done b::after { font-size: 1rem; }
.rc-progress { height: 4px; margin: 0 0 24px; background: #e8eef4; border-radius: 4px; overflow: hidden; }
.rc-progress i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .6s cubic-bezier(.2, .7, .2, 1); }

/* panels */
.rc-panel { display: none; }
.rc-panel.is-active { display: block; animation: rcIn .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes rcIn { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.rc-panel label, .rc-buy label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); font-size: .92rem; }
.rc-panel input[type="text"], .rc-panel input[type="tel"], .rc-buy input { width: 100%; padding: .85rem 1rem; font: inherit; font-size: 1.05rem; color: var(--text); background: #fff; border: 1.5px solid #cbd5e1; border-radius: 12px; }
.rc-panel input:focus, .rc-buy input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8, 145, 178, .18); }
.rc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rc-row input { flex: 1 1 220px; }
.rc-hint { margin: 10px 0 0; color: var(--muted); font-size: .88rem; }
.rc-msg { min-height: 1.3em; margin: 12px 0 0; font-weight: 600; }
.rc-msg.is-error { color: #b91c1c; }
.rc-msg.is-ok { color: #15803d; }
.rc-notice { margin: 20px 0 0; padding: 12px 16px; background: #fff7ed; border-left: 4px solid var(--accent); border-radius: 8px; color: #7c2d12; font-size: .92rem; }

.rc-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 20px; padding: 12px 16px; background: var(--tint); border-radius: 12px; }
.rc-code { color: var(--muted); font-size: .9rem; }
.rc-link { margin-left: auto; background: none; border: 0; color: var(--primary-dark); font: 600 .9rem var(--font); text-decoration: underline; cursor: pointer; }
.rc-grid { display: grid; gap: 28px; }

/* pricing chart */
.rc-chart h3 { font-size: 1.05rem; margin-bottom: 10px; }
.rc-chart table { width: 100%; border-collapse: collapse; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.rc-chart th { padding: .7rem 1rem; text-align: left; background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.rc-chart td { padding: .75rem 1rem; border-top: 1px solid var(--line); font-size: .95rem; transition: background .25s, color .25s; }
.rc-chart .r { text-align: right; }
.rc-chart tbody tr { animation: rowIn .5s ease backwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rowIn { from { opacity: 0; translate: -12px 0; } to { opacity: 1; translate: 0 0; } }
.rc-chart tbody tr.is-hit td { background: #fff1e0; color: #7c2d12; font-weight: 700; }
.rc-chart tbody tr.is-hit td:first-child { box-shadow: inset 4px 0 0 var(--accent); }

/* buy form */
.rc-buy { padding: 20px; background: var(--tint); border-radius: 16px; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.rc-chips button { padding: .45rem .95rem; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; color: var(--ink); font: 600 .9rem var(--font); cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.rc-chips button:hover { transform: translateY(-2px); border-color: var(--primary); background: #ecfeff; }
.rc-mobile { margin-bottom: 14px; }
.rc-preview { min-height: 118px; margin-bottom: 14px; padding: 14px 16px; text-align: center; background: #fff; border: 1px dashed #b6c7d6; border-radius: 14px; display: flex; flex-direction: column; justify-content: center; }
.rc-prev-empty { color: var(--muted); }
.rc-prev-err { color: #b91c1c; font-weight: 600; }
.rc-big { font-size: 2.1rem; font-weight: 800; color: var(--ink); line-height: 1.1; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.rc-big small { font-size: 1rem; color: var(--primary-dark); }
@keyframes pop { from { scale: .8; opacity: .4; } to { scale: 1; opacity: 1; } }
.rc-line { color: var(--muted); }
.rc-line.small { font-size: .82rem; margin-top: 4px; }
.rc-pay { margin-top: 6px; font-size: 1.1rem; color: var(--ink); }
.rc-pay strong { color: #c2410c; font-size: 1.35rem; }
.rc-secure { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.rc-secure svg { flex: none; margin-top: 2px; color: #16a34a; }
.rc-buy .btn[disabled] { opacity: .55; cursor: not-allowed; }

.rc-go { display: grid; place-items: center; gap: 14px; padding: 40px 0; color: var(--muted); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #d6e6ee; border-top-color: var(--primary); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
  .rc-card { padding: 34px 40px 38px; }
  .rc-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 575.98px) {
  .rc-steps li span { display: none; }
  .rc-steps li.is-active span { display: inline; }
  .rc-row .btn { width: 100%; }
}

/* ---------- result / mock pages ---------- */
.pay-page { min-height: 100vh; background: linear-gradient(160deg, #eaf4f9, #f8fbfd); }
.pay-result { display: grid; justify-items: center; gap: 22px; padding-top: 104px; padding-bottom: 48px; }
.result-card { width: 100%; max-width: 520px; padding: 34px 26px; text-align: center; background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(11, 37, 64, .14); border-top: 5px solid var(--primary); }
.result-card.is-ok { border-top-color: #16a34a; }
.result-card.is-fail { border-top-color: #dc2626; }
.result-card.is-review { border-top-color: var(--accent); }
.result-ico { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 14px; }
.result-ico svg { width: 84px; height: 84px; }
.is-ok .result-ico { color: #16a34a; }
.is-fail .result-ico { color: #dc2626; }
.is-review .result-ico { color: var(--accent); }
.is-ok .result-ico svg path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .7s ease .2s forwards; }
.is-ok .result-ico svg circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.result-card h1 { font-size: 1.7rem; }
.result-facts { margin: 22px 0; padding: 4px 0; text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; }
.result-facts div + div { border-top: 1px dashed var(--line); }
.result-facts dt { color: var(--muted); }
.result-facts dd { margin: 0; font-weight: 700; word-break: break-all; text-align: right; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 14px; }
.small { font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  .rc-panel.is-active, .rc-chart tbody tr, .rc-big, .spinner { animation: none; }
  .is-ok .result-ico svg path, .is-ok .result-ico svg circle { animation: none; stroke-dashoffset: 0; }
  .rc-progress i { transition: none; }
}

/* the recharge page: content starts below the fixed header */
.rc-main .rc-page { padding-top: 112px; min-height: calc(100vh - 90px); }
.rc-main .section-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); letter-spacing: -.01em; }
