:root {
    --primary: #2563eb;
    --bg: #f5f7fb;
    --card: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
    --muted: #64748b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--border); }
.topbar nav a { margin-left: 16px; font-size: 14px; }
.brand { font-weight: 700; font-size: 18px; color: var(--text) !important; }
.container { max-width: 1000px; margin: 0 auto; padding: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
h1 { font-size: 22px; } h2 { font-size: 18px; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 22px; font-weight: 700; }
form.stacked label { display: block; margin: 12px 0 4px; font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-family: inherit; }
button, .btn { display: inline-block; background: var(--primary); color: #fff; border: none; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; margin-top: 12px; }
.btn-secondary { background: #64748b; }
.btn-danger { background: #dc2626; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-active, .badge-paid { background: #dcfce7; color: #166534; }
.badge-inactive, .badge-pending { background: #fef3c7; color: #92400e; }
.badge-expired, .badge-cancelled, .badge-suspended, .badge-failed { background: #fee2e2; color: #991b1b; }
.badge-refunded { background: #e0e7ff; color: #3730a3; }
.pkg-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.pkg-card { border: 2px solid var(--border); border-radius: 10px; padding: 18px; text-align: center; cursor: pointer; }
.pkg-card.selected { border-color: var(--primary); }
code, pre { background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 8px; display: block; overflow-x: auto; font-size: 13px; }
.progress-track { background: #e2e8f0; border-radius: 999px; height: 8px; width: 100%; overflow: hidden; margin: 8px 0; }
.progress-fill { background: var(--primary); height: 100%; border-radius: 999px; }
.progress-fill.at-limit { background: #dc2626; }
.upgrade-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 14px; margin-top: 12px; font-size: 14px; }
