.local-note{margin-top:18px;padding:14px 16px;border-radius:12px;background:#eef8ff;color:#294256;line-height:1.55;font-size:14px}.local-note.danger{background:#fff0f0;color:#aa1f1f}.local-note.ok{background:#ecfff4;color:#0b7d42}.simulate-form{margin-top:12px;text-align:center}.simulate-btn{border:0;background:#eef4fb;color:#1755a6;border-radius:999px;padding:12px 18px;font-weight:800;cursor:pointer}.result-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f7fbff;padding:30px}.result-card{max-width:560px;background:#fff;border-radius:24px;box-shadow:0 24px 80px rgba(23,47,75,.12);padding:34px;text-align:center}.result-card h1{margin:0 0 12px;font-size:32px}.result-card p{color:#526274;line-height:1.6}.big-check{width:68px;height:68px;border-radius:50%;display:inline-grid;place-items:center;background:#33c26f;color:#fff;font-weight:900;font-size:36px;margin-bottom:18px}.failed{border-top:6px solid #ef4444}.success{border-top:6px solid #22c55e}.agree.small{display:inline-flex;text-decoration:none;max-width:220px;margin-top:18px}.muted{font-size:13px;opacity:.75}.debug-box{text-align:left;background:#101827;color:#e8f2ff;border-radius:14px;padding:16px;max-height:280px;overflow:auto;font-size:12px}.admin-local{padding:36px;min-height:100vh;background:#f7fbff}.admin-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.admin-local h1{font-size:30px}.orders-table{width:100%;border-collapse:separate;border-spacing:0 10px}.orders-table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;padding:10px}.orders-table td{background:#fff;padding:14px 10px;border-top:1px solid #e9eef6;border-bottom:1px solid #e9eef6}.orders-table tr td:first-child{border-left:1px solid #e9eef6;border-radius:14px 0 0 14px}.orders-table tr td:last-child{border-right:1px solid #e9eef6;border-radius:0 14px 14px 0}.status{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#273f8b;font-weight:800;font-size:12px}.status.pending_checkout,.status.creating{background:#fff7e6;color:#a16207}.status.success_return,.status.simulated_paid{background:#dcfce7;color:#15803d}.status.failed_return,.status.api_error,.status.api_rejected{background:#fee2e2;color:#b91c1c}@media(max-width:800px){.admin-local{padding:18px}.orders-table{font-size:12px;display:block;overflow:auto}.result-card{padding:24px}}
.status.paid_return,.status.paid_webhook,.status.webhook_received{background:#dcfce7;color:#15803d}
.renewal.compact{background:#eaf7ff;margin-top:18px}


/* Live admin polish */
.admin-subtitle{margin:8px 0 0;color:#64748b;font-size:14px}.admin-actions{display:flex;gap:12px;align-items:center}.admin-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:#eaf4ff;color:#0a6ebd;text-decoration:none;font-weight:800}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.stat-card{background:#fff;border:1px solid #e4edf6;border-radius:18px;padding:18px;box-shadow:0 10px 28px rgba(31,69,105,.06)}.stat-card span{display:block;color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:800}.stat-card strong{display:block;color:#1f2937;font-size:30px;margin-top:8px}.table-wrap{width:100%;overflow:auto}.admin-login .agree.small{border:0}.admin-password-input{width:100%;height:54px;border:1.5px solid #d1dbe8;border-radius:12px;padding:0 16px;font-size:17px;margin:12px 0 8px}.result-card code,.local-note code{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:3px 7px;color:#0f172a}.status.paid_return,.status.paid_webhook,.status.webhook_paid,.status.success_return,.status.simulated_paid{background:#dcfce7;color:#15803d}.status.pending_checkout,.status.creating{background:#fff7e6;color:#a16207}.status.failed_return,.status.api_error,.status.api_rejected{background:#fee2e2;color:#b91c1c}@media(max-width:900px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-head{align-items:flex-start;flex-direction:column}.stat-card strong{font-size:24px}}

.status.failed_webhook,.status.webhook_mismatch{background:#fee2e2;color:#b91c1c}.status.webhook_received{background:#eef2ff;color:#273f8b}
