/* Pricing Page — matches index.html auth styling */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    color: #0f172a;
}

.pricing-container {
    width: 100%;
    max-width: 640px;
    text-align: center;
}

.pricing-header h1 {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.pricing-header .tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.pricing-description {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto 2rem;
    text-align: left;
}

/* Plans */
.pricing-plans {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.plan-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    flex: 1;
    max-width: 280px;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-2px);
}

.plan-card.featured {
    border: 2px solid #667eea;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.85rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
}

.plan-price {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
}

.plan-period {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
}

.plan-usd {
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
    margin-top: 0.15rem;
}

.plan-tax {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0.25rem 0 1rem;
}

.plan-savings {
    font-size: 0.82rem;
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plan-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: auto;
}

.plan-btn:hover {
    opacity: 0.9;
}

/* Features */
.pricing-features {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.pricing-features ul {
    list-style: none;
    text-align: left;
}

.pricing-features li {
    color: #fff;
    font-size: 0.9rem;
    padding: 0.35rem 0;
}

.pricing-features li::before {
    content: '\2713';
    color: #a5f3fc;
    font-weight: 700;
    margin-right: 0.6rem;
}

/* Trial */
.pricing-trial {
    margin-bottom: 1rem;
}

.pricing-trial p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Links */
.pricing-links {
    margin-bottom: 1.5rem;
}

.pricing-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
}

.pricing-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.pricing-links span {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

/* Footer */
.pricing-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.pricing-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.pricing-footer a:hover {
    color: #fff;
}

/* ── Moneris Checkout Modal ────────────────────────────────────────── */

.moneris-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.moneris-modal {
    background: #fff;
    border-radius: 1rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.moneris-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.moneris-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.moneris-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
}

.moneris-close:hover { color: #0f172a; }

.moneris-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.moneris-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.moneris-req {
    color: #dc2626;
}

/* Secure card section */
.moneris-secure-section {
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    background: #f8fafc;
}

.moneris-secure-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
}

.moneris-iframe-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}

.moneris-iframe-wrap iframe {
    width: 100%;
    height: 195px;
    border: none;
}

.moneris-secure-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Form groups */
.moneris-form-group {
    margin-bottom: 0.75rem;
}

.moneris-form-group input,
.moneris-form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: #0f172a;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}

.moneris-form-group input:focus,
.moneris-form-group select:focus {
    outline: none;
    border-color: #6b3fa0;
    box-shadow: 0 0 0 2px rgba(107, 63, 160, 0.15);
}

.moneris-form-row {
    display: flex;
    gap: 0.75rem;
}

.moneris-billing-header {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin: 1rem 0 0.75rem;
}

/* Tax summary */
.moneris-tax-summary {
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.moneris-tax-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #475569;
    padding: 0.2rem 0;
}

.moneris-tax-total {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
}

.moneris-status {
    font-size: 0.85rem;
    color: #475569;
    min-height: 1.2em;
}

.moneris-status-error { color: #dc2626; }
.moneris-status-success { color: #16a34a; }

.moneris-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.moneris-btn-cancel {
    padding: 0.6rem 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    color: #475569;
    font-size: 0.9rem;
    cursor: pointer;
}

.moneris-btn-cancel:hover { background: #f8fafc; }

.moneris-btn-submit {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.moneris-btn-submit:hover { opacity: 0.9; }
.moneris-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.moneris-test-badge {
    position: absolute;
    top: 8px;
    right: 60px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
}

/* ── AccountModal plan cards ──────────────────────────────────────── */

.account-plan-cards {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.account-plan-card {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    position: relative;
}

.account-plan-featured {
    border-color: #667eea;
}

.account-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 0.75rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.account-plan-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.account-plan-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

.account-plan-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: #64748b;
}

.account-plan-tax {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.15rem 0 0.5rem;
}

.account-plan-savings {
    font-size: 0.78rem;
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Mobile */
@media (max-width: 560px) {
    .pricing-plans {
        flex-direction: column;
        align-items: center;
    }
    .plan-card {
        max-width: 100%;
        width: 100%;
    }
    .pricing-header h1 {
        font-size: 1.8rem;
    }
}
