:root {
    --primary: #1c4769;
    --primary-dark: #153a56;
    --success: #16a34a;
    --bg: #f8fafc;
    --card-shadow: 0 1px 6px rgba(0,0,0,.06);
}

body {
    background: var(--bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

/* Header */
.purchase-header {
    background: #1c4769;
    color: #fff;
    padding: 14px 0;
}

/* Steps Bar */
.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: background .3s;
}

.step.active .step-circle {
    background: var(--primary);
}

.step.done .step-circle {
    background: var(--success);
}

.step-label {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step.done .step-label {
    color: var(--success);
}

.step-line {
    flex: 1;
    height: 2px;
    background: #cbd5e1;
    margin: 0 8px;
    margin-bottom: 22px;
    min-width: 40px;
}

/* Package Cards */
.package-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(28, 71, 105, .15);
}

.package-card.popular {
    border-color: var(--primary);
    position: relative;
}

.package-card.popular::before {
    content: "Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 2px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.package-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.package-price {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0 4px;
}

.package-price .currency {
    font-size: 18px;
    vertical-align: top;
    line-height: 2.4;
}

.package-price .period {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
}

.package-imports {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.package-description {
    font-size: 13px;
    color: #94a3b8;
    flex: 1;
    margin-bottom: 20px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.package-features li {
    padding: 4px 0;
    font-size: 14px;
    color: #475569;
}

.package-features li::before {
    content: "\2713";
    color: var(--success);
    font-weight: 700;
    margin-right: 8px;
}

.btn-choose {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background .2s;
    margin-top: auto;
}

.btn-choose:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Step 2 - Payment form */
.card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 24px;
}

.card-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 16px 24px;
    border-radius: 0 0 12px 12px !important;
}

/* Step 3 - Confirmation */
.success-icon {
    font-size: 64px;
    color: var(--success);
}

.license-key-display {
    display: inline-flex;
    align-items: center;
    background: #f0f5f8;
    border: 2px dashed var(--primary);
    border-radius: 8px;
    padding: 14px 24px;
    margin: 8px 0;
}

.license-key-display span {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .package-price {
        font-size: 30px;
    }

    .step-label {
        font-size: 11px;
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .license-key-display {
        flex-direction: column;
        gap: 8px;
    }

    .license-key-display span {
        font-size: 16px;
    }
}
