/* SBCGuard Checkout — shared styles (dark theme matching sbcguard.com) */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(160deg, #0a0f1a 0%, #0d1426 60%, #101230 100%);
    min-height: 100vh;
    padding: 24px 16px;
    color: #e2e8f0;
}

.card {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 480px;
    margin: 24px auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}
@media (max-width: 520px) { .card { padding: 22px 18px; } }

.accent-stripe {
    height: 3px;
    border-radius: 3px;
    margin: -28px -28px 24px;
}
@media (max-width: 520px) { .accent-stripe { margin: -22px -18px 20px; } }

.checkout-header { text-align: center; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.checkout-header .logo-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.checkout-header h1 { font-size: 17px; font-weight: 900; color: white; letter-spacing: 0.12em; text-transform: uppercase; }
.checkout-header .brand-sub { font-size: 9px; color: #475569; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; }
.plan-badge {
    display: inline-block; font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 20px; margin-top: 12px;
}
.save-badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 99px; margin-top: 8px;
    background: rgba(34,197,94,0.12); color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}

.product-row {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
}
.product-row .plan-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.product-row .product-name { font-weight: 700; color: white; font-size: 15px; }
.product-row .product-sub { font-size: 12px; color: #64748b; margin-top: 2px; }
.product-row .product-price { margin-left: auto; font-weight: 800; font-size: 18px; color: white; text-align: right; }
.product-row .product-per { font-size: 11px; color: #64748b; font-weight: 500; }

.total-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 2px; border-top: 1px solid rgba(255,255,255,0.07); margin-bottom: 20px;
}
.total-row .label { font-size: 15px; font-weight: 700; color: white; }
.total-row .amount { font-size: 22px; font-weight: 900; }

.field-label { font-size: 12px; font-weight: 600; color: #94a3b8; margin-bottom: 8px; display: block; }
.email-input {
    width: 100%; padding: 12px 14px;
    background: rgba(0,0,0,0.4); border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px; font-size: 15px; color: white;
    margin-bottom: 6px; transition: border-color 0.2s; outline: none;
}
.email-input:focus { border-color: var(--accent, #6366f1); }
.email-hint { font-size: 11px; color: #475569; margin-bottom: 18px; line-height: 1.5; }

.section-title { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }

.payment-option {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px; border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s;
    background: rgba(255,255,255,0.02);
}
.payment-option:hover { border-color: var(--accent, #6366f1); }
.payment-option.selected { border-color: var(--accent, #6366f1); background: rgba(99,102,241,0.08); }
.payment-option input[type="radio"] { width: 16px; height: 16px; accent-color: var(--accent, #6366f1); flex-shrink: 0; }
.payment-option .opt-name { font-size: 14px; font-weight: 700; color: white; }
.opt-save {
    display: inline-block; font-size: 10px; font-weight: 800;
    padding: 2px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 1px;
    background: rgba(34,197,94,0.12); color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}
.payment-option .opt-sub { font-size: 11px; color: #64748b; margin-top: 2px; }

.pay-btn {
    width: 100%; padding: 15px; margin-top: 18px;
    color: white; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 800; letter-spacing: 0.03em; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pay-btn:hover { transform: translateY(-1px); }
.pay-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.security-note { text-align: center; color: #475569; font-size: 11px; margin-top: 14px; }

.features { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.06); }
.features-title { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.feature-item { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; color: #cbd5e1; }
.feature-item .check { color: #22c55e; font-size: 13px; flex-shrink: 0; font-weight: 800; }

.loading-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.65); z-index: 999;
    align-items: center; justify-content: center;
}
.loading-overlay.active { display: flex; }
.loading-box { background: #0f172a; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 32px 40px; text-align: center; }
.spinner {
    border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid var(--accent, #6366f1);
    border-radius: 50%; width: 40px; height: 40px;
    animation: spin 0.9s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-message {
    margin-top: 18px; padding: 16px; border-radius: 10px; display: none;
    font-size: 13px; line-height: 1.6;
}
.status-message.success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.status-message.error   { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }
.status-message.draft   { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }
.status-message.active  { display: block; }
.payment-link { margin-top: 12px; padding: 12px; background: rgba(0,0,0,0.35); border-radius: 8px; word-break: break-all; border: 1px solid rgba(34,197,94,0.25); }
.payment-link a { color: #4ade80; font-weight: 600; text-decoration: none; font-size: 12px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: #64748b; text-decoration: none; font-size: 13px; margin-bottom: 4px; }
.back-link:hover { color: #94a3b8; }
