:root { --bg:#f3f4f6; --card:#ffffff; --text:#111827; --muted:#6b7280; --line:#e5e7eb; --brand:#111827; --ok:#15803d; --bad:#b91c1c; --warn:#b45309; }
* { box-sizing:border-box; }
body { margin:0; font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:var(--bg); color:var(--text); }
a { color:inherit; }
.login-page { min-height:100vh; background:#111827 url('../assets/login-bg.svg') center/cover no-repeat; display:grid; place-items:center; padding:22px; }
.login-shell { width:100%; max-width:430px; }
.login-card { background:rgba(255,255,255,.96); border:1px solid rgba(255,255,255,.5); border-radius:28px; padding:28px; box-shadow:0 28px 90px rgba(0,0,0,.28); }
.login-logo { width:190px; max-width:80%; display:block; margin:0 auto 20px; }
.login-card h1 { margin:0; font-size:28px; letter-spacing:-.04em; text-align:center; }
.login-card p { color:var(--muted); line-height:1.6; text-align:center; }
.admin-form { display:grid; gap:16px; }
.admin-form label { display:grid; gap:7px; font-size:13px; font-weight:800; color:#374151; }
.admin-form input, .admin-form select, .admin-form textarea, .filter-row input, .filter-row select { width:100%; border:1px solid #d1d5db; border-radius:14px; padding:12px 13px; background:#fff; font:inherit; color:#111827; }
.admin-form textarea { resize:vertical; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:13px; line-height:1.55; }
.primary-btn, .ghost-btn { border:0; border-radius:14px; padding:11px 16px; font-weight:900; cursor:pointer; }
.primary-btn { background:var(--brand); color:#fff; box-shadow:0 10px 24px rgba(17,24,39,.18); }
.ghost-btn { background:#fff; border:1px solid var(--line); color:#111827; }
.form-status { margin:0; border-radius:14px; padding:12px 14px; font-weight:800; }
.form-status[data-status="error"] { background:#fef2f2; color:var(--bad); }
.form-status[data-status="success"] { background:#ecfdf5; color:var(--ok); }
.form-status[data-status="loading"] { background:#eff6ff; color:#1d4ed8; }
.admin-topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 18px; background:#fff; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:12px; font-weight:900; }
.brand img { width:128px; height:auto; }
.admin-layout { max-width:1240px; margin:0 auto; padding:18px; }
.admin-tabs { display:flex; gap:10px; overflow:auto; padding-bottom:12px; }
.tab-btn { border:1px solid var(--line); background:#fff; color:#111827; font-weight:900; border-radius:999px; padding:10px 15px; white-space:nowrap; cursor:pointer; }
.tab-btn.active { background:#111827; color:#fff; border-color:#111827; }
.tab-panel { display:none; }
.tab-panel.active { display:block; }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:16px; }
.stat-card { background:#fff; border:1px solid var(--line); border-radius:22px; padding:18px; box-shadow:0 12px 30px rgba(15,23,42,.06); }
.stat-card small { display:block; color:var(--muted); font-weight:800; margin-bottom:7px; }
.stat-card strong { display:block; font-size:28px; letter-spacing:-.04em; }
.stat-card span { color:var(--muted); font-size:13px; }
.admin-card { background:#fff; border:1px solid var(--line); border-radius:24px; padding:20px; box-shadow:0 14px 34px rgba(15,23,42,.06); margin-bottom:18px; }
.admin-card h2 { margin:0 0 12px; letter-spacing:-.03em; }
.hint { background:#f8fafc; border:1px solid #e5e7eb; border-radius:16px; padding:12px 14px; color:#4b5563; line-height:1.55; }
.form-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.form-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.card-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.filter-row { display:grid; grid-template-columns:minmax(0,1fr) 190px auto; gap:10px; margin:12px 0; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:18px; }
table { width:100%; border-collapse:collapse; font-size:13px; min-width:720px; }
th, td { padding:12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { background:#f8fafc; color:#374151; font-size:12px; text-transform:uppercase; letter-spacing:.06em; }
.status { display:inline-flex; border-radius:999px; padding:5px 9px; font-weight:900; font-size:11px; background:#fef3c7; color:var(--warn); }
.status.PAID { background:#dcfce7; color:var(--ok); }
.status.CANCELLED, .status.EXPIRED, .status.FAILED { background:#fee2e2; color:var(--bad); }
.row-actions { display:flex; flex-wrap:wrap; gap:6px; }
.row-actions button { border:1px solid var(--line); border-radius:10px; background:#fff; padding:7px 9px; font-weight:800; cursor:pointer; }
@media (max-width:900px) { .stats-grid, .form-grid, .form-grid.two, .filter-row { grid-template-columns:1fr; } .admin-layout { padding:12px; } .admin-card { padding:16px; } }
