/* Portal de plăți – stil propriu, fără resurse externe */
:root {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f5f7fb;
    --accent: #4f46e5;
    --accent-2: #06b6d4;
    --ok: #16a34a;
    --radius: 18px;
}
html, body { background: var(--bg); color: var(--ink); }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh; display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

.test-ribbon { background: #fef3c7; color: #92400e; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px; }

.portal-header { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 1rem; }
.brand-sub { color: var(--muted); font-weight: 600; }
.secure-pill { font-size: .8rem; color: var(--ok); background: #f0fdf4; border: 1px solid #bbf7d0; padding: 5px 12px; border-radius: 999px; font-weight: 600; }

/* pași */
.stepper { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 auto 2rem; max-width: 640px; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; color: var(--muted); font-size: .82rem; font-weight: 600; }
.stepper li::before { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.active::before { background: var(--accent); }
.stepper .dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: flex; align-items: center;
    justify-content: center; position: relative; z-index: 1; margin-bottom: 6px; font-weight: 700; }
.stepper li.active { color: var(--ink); }
.stepper li.active .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px rgba(79, 70, 229, .12); }
.stepper li.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }

/* carduri */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(15, 23, 42, .05); }
.panel h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }
.panel .lead-sm { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.form-label { font-size: .8rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: 10px; padding: .65rem .85rem; border-color: #cbd5e1; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.section-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 1.25rem 0 .75rem; }

.btn-pay { background: linear-gradient(135deg, var(--accent), #6366f1); border: 0; color: #fff; font-weight: 700; padding: .95rem 1.25rem;
    border-radius: 12px; font-size: 1.05rem; box-shadow: 0 10px 24px rgba(79, 70, 229, .3); transition: transform .15s, box-shadow .15s; }
.btn-pay:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(79, 70, 229, .35); }
.btn-pay:disabled { opacity: .7; }

/* rezumat comandă */
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); position: sticky; top: 20px; }
.summary-head { background: radial-gradient(120% 140% at 0% 0%, #6366f1 0%, #4338ca 45%, #1e1b4b 100%); color: #fff; padding: 22px 24px; }
.summary-head .app-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.summary-head .origin { font-size: .82rem; opacity: .8; margin-top: 2px; }
.summary-body { padding: 22px 24px; }
.plan-name { font-weight: 700; font-size: 1.05rem; }
.features { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; font-size: .9rem; }
.features i { color: var(--accent); margin-right: 6px; }
.license-box { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 12px 14px; font-size: .84rem; display: grid; gap: 4px; }
.license-box code { color: var(--ink); background: transparent; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; font-weight: 600; }
.total-row .total { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }

.card-brands { display: flex; gap: 8px; flex-wrap: wrap; }
.card-brands span { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: .75rem; font-weight: 700; color: #334155; background: #fff; }

/* pagini rezultat */
.result-card { max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 32px; text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.result-icon { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 2.2rem; }
.result-icon.ok { background: #dcfce7; color: var(--ok); }
.result-icon.fail { background: #fee2e2; color: #dc2626; }
.result-icon.warn { background: #fef3c7; color: #d97706; }
.result-meta { background: #f8fafc; border-radius: 12px; padding: 14px 16px; text-align: left; font-size: .88rem; display: grid; gap: 6px; margin: 22px 0; }
.result-meta div { display: flex; justify-content: space-between; gap: 12px; }
.result-meta span:first-child { color: var(--muted); }

.redirect-spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid #e0e7ff; border-top-color: var(--accent); animation: spin 1s linear infinite; margin: 0 auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

.portal-footer { border-top: 1px solid var(--line); background: #fff; padding: 18px 0; font-size: .82rem; color: var(--muted); }
.portal-footer .trust { display: flex; gap: 18px; flex-wrap: wrap; }
.portal-footer .trust i { color: var(--ok); }
.portal-footer .help a { color: var(--ink); text-decoration: none; margin-left: 12px; font-weight: 600; }

@media (max-width: 991px) {
    .summary-card { position: static; }
    .panel { padding: 22px; }
    .stepper .label { font-size: .72rem; }
}
