.reid-cr { max-width: 800px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1e293b; display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; padding: 0; }

/* User link banner */
.reid-cr-user-link { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: .375rem; padding: .6rem 1rem; margin: 0 12px; font-size: .85rem; color: #0369a1; text-align: center; flex-shrink: 0; }
.reid-cr-user-link a { color: #6d28d9; font-weight: 600; text-decoration: underline; }

/* Steps indicator */
.reid-cr-steps { display: flex; gap: .5rem; margin-bottom: 0; padding: .75rem 12px; border-bottom: 2px solid #e2e8f0; flex-shrink: 0; }
.reid-cr-step { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: #94a3b8; padding: .25rem .5rem; border-radius: .25rem; }
.reid-cr-step.active { color: #6d28d9; font-weight: 600; }
.reid-cr-step.done { color: #059669; }
.reid-cr-step-num { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #e2e8f0; color: #64748b; font-size: .75rem; font-weight: 700; }
.reid-cr-step.active .reid-cr-step-num { background: #6d28d9; color: #fff; }
.reid-cr-step.done .reid-cr-step-num { background: #059669; color: #fff; }

/* Status banner */
.reid-cr-status { flex-shrink: 0; margin: 0 12px; }

/* Toast */
.reid-cr-toast { flex-shrink: 0; margin: 0 12px; }

/* Panes */
.reid-cr-pane { display: none; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.reid-cr-pane.active { display: flex; }
.reid-cr-pane h3 { margin: 0 0 1rem; font-size: 1.15rem; color: #6d28d9; }
.reid-cr-pane-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 8px 12px 4px; }
.reid-cr-pane-scroll::-webkit-scrollbar { width: 6px; }
.reid-cr-pane-scroll::-webkit-scrollbar-track { background: transparent; }
.reid-cr-pane-scroll::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 3px; }
.reid-cr-pane-scroll::-webkit-scrollbar-thumb:hover { background: #999; }

/* Fields */
.reid-cr-field { margin-bottom: .75rem; }
.reid-cr-field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .25rem; color: #475569; }
.reid-cr-field label .req { color: #ef4444; }
.reid-cr-input { width: 100%; padding: .45rem .6rem; border: 1px solid #cbd5e1; border-radius: .375rem; font-size: .85rem; background: #fff; box-sizing: border-box; }
.reid-cr-input:focus { outline: none; border-color: #6d28d9; box-shadow: 0 0 0 2px rgba(109,40,217,.15); }
textarea.reid-cr-input { resize: vertical; }
select.reid-cr-input { appearance: auto; }
.reid-cr-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* Navigation */
.reid-cr-nav { display: flex; justify-content: space-between; margin-top: 0; padding: .75rem 12px; border-top: 1px solid #e2e8f0; flex-shrink: 0; }

/* Buttons */
.reid-cr-btn { padding: .45rem 1rem; border: 1px solid #cbd5e1; border-radius: .375rem; background: #f8fafc; color: #475569; font-size: .82rem; cursor: pointer; font-weight: 500; }
.reid-cr-btn:hover { background: #e2e8f0; }
.reid-cr-btn.primary { background: #6d28d9; color: #fff; border-color: #6d28d9; }
.reid-cr-btn.primary:hover { background: #5b21b6; }
.reid-cr-btn.primary:disabled { opacity: .5; cursor: not-allowed; }
.reid-cr-btn.success { background: #059669; color: #fff; border-color: #059669; }
.reid-cr-btn.success:hover { background: #047857; }
.reid-cr-btn.success:disabled { opacity: .5; cursor: not-allowed; }

/* Toast */
.reid-cr-toast { padding: .6rem .8rem; border-radius: .375rem; font-size: .82rem; margin-bottom: .75rem; }
.reid-cr-toast-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.reid-cr-toast-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.reid-cr-toast-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Status banner */
.reid-cr-status { padding: .75rem 1rem; border-radius: .5rem; font-size: .85rem; margin-bottom: 1rem; }
.reid-cr-status-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.reid-cr-status-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.reid-cr-status-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Guest / empty */
.reid-cr-guest, .reid-cr-empty { text-align: center; padding: 2rem 1rem; color: #64748b; }
.reid-cr-guest a { color: #6d28d9; }

/* Plans */
.reid-cr-plans { margin: .75rem 0; }
.reid-cr-tier { margin-bottom: 1rem; }
.reid-cr-tier-name { font-size: .9rem; font-weight: 700; color: #6d28d9; margin-bottom: .5rem; padding-bottom: .25rem; border-bottom: 1px solid #e2e8f0; }
.reid-cr-tier-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.reid-cr-plan { border: 2px solid #e2e8f0; border-radius: .5rem; padding: .75rem; position: relative; transition: border-color .2s; }
.reid-cr-plan:hover { border-color: #a78bfa; }
.reid-cr-plan.selected { border-color: #6d28d9; background: #faf5ff; }
.reid-cr-plan-name { font-size: .85rem; font-weight: 700; color: #1e293b; }
.reid-cr-plan-price { font-size: 1rem; font-weight: 700; color: #6d28d9; margin: .25rem 0; display: flex; flex-direction: column; gap: 1px; }
.reid-cr-price-line { display: flex; align-items: baseline; gap: .25rem; }
.reid-cr-price-main { font-size: .95rem; font-weight: 700; }
.reid-cr-price-ex { font-size: .65rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .3px; }
.reid-cr-price-inc { font-size: .7rem; font-weight: 500; color: #64748b; }
.reid-cr-vat-note { font-size: .78rem; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: .375rem; padding: .4rem .6rem; margin-top: .5rem; margin-bottom: .35rem; }
.reid-cr-plan-desc { font-size: .75rem; color: #64748b; margin-bottom: .35rem; }
.reid-cr-plan-features { list-style: none; padding: 0; margin: .35rem 0; font-size: .75rem; color: #475569; }
.reid-cr-plan-features li { padding: .1rem 0; }
.reid-cr-plan-features li::before { content: '\2713'; color: #059669; margin-right: .35rem; font-weight: 700; }
.reid-cr-plan-badge { position: absolute; top: .5rem; right: .5rem; font-size: .65rem; padding: .15rem .4rem; border-radius: .25rem; font-weight: 700; text-transform: uppercase; }
.reid-cr-plan-badge.early { background: #fef3c7; color: #92400e; }
.reid-cr-plan-badge.promo { background: #dbeafe; color: #1e40af; }
.reid-cr-plan-pricing-opts { margin: .4rem 0; padding: .4rem; background: #f8fafc; border-radius: .25rem; border: 1px solid #e2e8f0; }
.reid-cr-pricing-label { font-size: .7rem; font-weight: 600; color: #64748b; display: block; margin-bottom: .25rem; }
.reid-cr-pricing-opt { display: flex; align-items: center; gap: .35rem; font-size: .75rem; padding: .15rem 0; cursor: pointer; }
.reid-cr-pricing-opt input[type="radio"] { margin: 0; }
.reid-cr-pricing-date { font-size: .65rem; color: #94a3b8; }
.reid-cr-plan-badge-inline { font-size: .6rem; padding: .1rem .3rem; border-radius: .2rem; font-weight: 700; text-transform: uppercase; }
.reid-cr-plan-badge-inline.early { background: #fef3c7; color: #92400e; }
.reid-cr-plan-badge-inline.promo { background: #dbeafe; color: #1e40af; }
.reid-cr-plan-select { width: 100%; margin-top: .5rem; padding: .35rem; font-size: .78rem; }
.reid-cr-plan-select.selected { background: #6d28d9; color: #fff; border-color: #6d28d9; }

/* Review */
.reid-cr-review-table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-bottom: .75rem; }
.reid-cr-review-table th { text-align: left; padding: .5rem .4rem .25rem; color: #6d28d9; font-size: .8rem; border-bottom: 1px solid #e2e8f0; }
.reid-cr-review-table td { padding: .3rem .4rem; border-bottom: 1px solid #f1f5f9; }
.reid-cr-review-table td:first-child { font-weight: 500; color: #64748b; width: 120px; }
.reid-cr-invoice-note { font-size: .78rem; color: #64748b; font-style: italic; margin-top: .5rem; }

/* Terms & Conditions box */
.reid-cr-terms-box { max-height: 400px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: .5rem; padding: 1rem 1.25rem; background: #fafbfc; font-size: .82rem; line-height: 1.7; color: #334155; }
.reid-cr-terms-box h2 { font-size: 1.1rem; color: #6d28d9; margin: 0 0 .75rem; }
.reid-cr-terms-box h3 { font-size: .92rem; color: #1e293b; margin: 1rem 0 .4rem; }
.reid-cr-terms-box p { margin: 0 0 .5rem; }

/* Loading / error */
.reid-cr-loading { text-align: center; padding: 1.5rem; color: #94a3b8; font-size: .85rem; }
.reid-cr-error { color: #991b1b; padding: .75rem; background: #fef2f2; border-radius: .375rem; font-size: .82rem; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .reid-cr { color: #e2e8f0; }
    .reid-cr-input { background: #1e293b; border-color: #475569; color: #e2e8f0; }
    .reid-cr-input:focus { border-color: #a78bfa; box-shadow: 0 0 0 2px rgba(167,139,250,.25); }
    .reid-cr-steps { border-color: #334155; }
    .reid-cr-step { color: #64748b; }
    .reid-cr-step-num { background: #334155; color: #94a3b8; }
    .reid-cr-nav { border-color: #334155; }
    .reid-cr-btn { background: #1e293b; color: #cbd5e1; border-color: #475569; }
    .reid-cr-btn:hover { background: #334155; }
    .reid-cr-plan { border-color: #334155; }
    .reid-cr-plan:hover { border-color: #7c3aed; }
    .reid-cr-plan.selected { border-color: #a78bfa; background: rgba(109,40,217,.15); }
    .reid-cr-plan-name { color: #f1f5f9; }
    .reid-cr-plan-price { color: #a78bfa; }
    .reid-cr-price-ex { color: #64748b; }
    .reid-cr-price-inc { color: #94a3b8; }
    .reid-cr-vat-note { background: rgba(180,83,9,.15); color: #fbbf24; border-color: rgba(180,83,9,.3); }
    .reid-cr-plan-desc { color: #94a3b8; }
    .reid-cr-plan-features { color: #cbd5e1; }
    .reid-cr-tier-name { color: #a78bfa; border-color: #334155; }
    .reid-cr-review-table th { color: #a78bfa; border-color: #334155; }
    .reid-cr-review-table td { border-color: #1e293b; }
    .reid-cr-review-table td:first-child { color: #94a3b8; }
    .reid-cr-status-success { background: rgba(5,150,105,.15); color: #6ee7b7; border-color: rgba(5,150,105,.3); }
    .reid-cr-status-info { background: rgba(59,130,246,.15); color: #93c5fd; border-color: rgba(59,130,246,.3); }
    .reid-cr-status-error { background: rgba(220,38,38,.15); color: #fca5a5; border-color: rgba(220,38,38,.3); }
    .reid-cr-toast-success { background: rgba(5,150,105,.15); color: #6ee7b7; border-color: rgba(5,150,105,.3); }
    .reid-cr-toast-error { background: rgba(220,38,38,.15); color: #fca5a5; border-color: rgba(220,38,38,.3); }
    .reid-cr-toast-info { background: rgba(59,130,246,.15); color: #93c5fd; border-color: rgba(59,130,246,.3); }
    .reid-cr-field label { color: #94a3b8; }
    .reid-cr-pane h3 { color: #a78bfa; }
    .reid-cr-guest { color: #94a3b8; }
    .reid-cr-plan-pricing-opts { background: #0f172a; border-color: #334155; }
    .reid-cr-pricing-label { color: #94a3b8; }
    .reid-cr-pricing-date { color: #64748b; }
    .reid-cr-terms-box { background: #0f172a; border-color: #334155; color: #cbd5e1; }
    .reid-cr-terms-box h2 { color: #a78bfa; }
    .reid-cr-terms-box h3 { color: #e2e8f0; }
    .reid-cr-pane-scroll::-webkit-scrollbar-thumb { background: #555; }
}

/* Mobile */
@media (max-width: 600px) {
    .reid-cr-row { grid-template-columns: 1fr; }
    .reid-cr-tier-plans { grid-template-columns: 1fr; }
    .reid-cr-steps { flex-wrap: wrap; }
}
