:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #122033;
  --muted: #5a6b83;
  --brand: #0d4a8d;
  --brand-2: #123968;
  --accent: #0aa06e;
  --border: #dce5f0;
  --danger: #b42318;
  --shadow: 0 10px 30px rgba(18, 57, 104, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: var(--shadow); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }
.brand { color: #fff; font-weight: 800; font-size: 1.25rem; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: #e6eef8; font-weight: 600; }
.main-content { padding: 28px 0 40px; }
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; margin-bottom: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
.hero h1, h2, h3 { margin-top: 0; }
.muted { color: var(--muted); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: linear-gradient(180deg, #f9fbff, #eef4fb); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.value { font-size: 1.4rem; font-weight: 800; margin-top: 8px; }
form label { display:block; font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
input, select, textarea, button { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); font: inherit; }
textarea { min-height: 110px; }
button, .btn { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; border: 0; cursor: pointer; display:inline-block; text-align:center; }
.btn.secondary { background: #eef4fb; color: var(--text); border: 1px solid var(--border); }
.btn.green { background: linear-gradient(135deg, #10b981, #0e8e62); }
.actions { display:flex; gap:10px; flex-wrap:wrap; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align:left; }
.badge { display:inline-block; padding:6px 10px; border-radius:999px; background:#ecfdf3; color:#067647; font-size:.82rem; font-weight:700; }
.flash { padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; }
.flash.success { background:#ecfdf3; color:#067647; border:1px solid #abefc6; }
.flash.error { background:#fef3f2; color:#b42318; border:1px solid #fecdca; }
.pair-link { display:block; padding:14px; border:1px solid var(--border); border-radius:14px; background:#f9fbff; }
.rate { font-size:1.2rem; font-weight:800; }
.quick-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap:12px; }
.quick-item { background:#f7fafc; border:1px solid var(--border); border-radius:14px; padding:14px; }
.site-footer { padding: 26px 0 40px; border-top: 1px solid var(--border); background:#fff; }
.footer-grid { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.center { text-align:center; }
.pagination { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.pagination a, .pagination span { padding:10px 14px; border:1px solid var(--border); border-radius:10px; background:#fff; }
.login-card { width:min(480px, 100%); margin: 48px auto; }
.admin-layout h1 { margin-bottom:10px; }
.inline-form { display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap:10px; }
.small { font-size:.88rem; }
@media (max-width: 900px) {
  .hero, .grid-2, .grid-3, .grid-4, .stats, .inline-form { grid-template-columns: 1fr; }
  .nav-wrap { align-items:flex-start; flex-direction:column; }
}
