:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-2: #eef4ff;
  --text: #163047;
  --muted: #667b8f;
  --line: #d9e3ef;
  --primary: #0f6ad8;
  --primary-2: #0d56af;
  --accent: #12a87d;
  --danger: #c54646;
  --shadow: 0 10px 24px rgba(18, 47, 76, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.page { padding: 24px 0 40px; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(244, 247, 251, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 24px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 1.1rem; font-weight: 700; }
.brand-badge { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: var(--shadow); }
.main-nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.main-nav a { padding: 10px 12px; border-radius: 12px; color: var(--muted); }
.main-nav a.is-active, .main-nav a:hover { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: stretch; margin-bottom: 24px; }
.card { background: var(--panel); border: 1px solid rgba(217, 227, 239, 0.8); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.panel-soft { background: linear-gradient(180deg, #f8fbff, #eef5ff); }
.hero h1, h1 { margin: 0 0 10px; font-size: 2rem; }
h2 { margin: 0 0 14px; font-size: 1.2rem; }
h3 { margin: 0 0 12px; font-size: 1rem; }
p { margin: 0 0 14px; line-height: 1.45; color: var(--muted); }
.auth-grid, .grid-3 { display: grid; gap: 20px; }
.auth-grid { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 320px 1fr 320px; }
label { display: block; font-size: .87rem; font-weight: 700; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text);
  min-height: 46px; padding: 12px 14px; outline: none; font-size: .95rem;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,106,216,0.08); }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 14px; min-height: 46px; padding: 0 18px; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-secondary { background: #edf3fa; color: var(--text); }
.btn-success { background: var(--accent); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.kpi strong { display: block; font-size: 1.4rem; margin-bottom: 6px; }
.kpi span { color: var(--muted); font-size: .92rem; }
.flash-row { margin-bottom: 16px; }
.flash { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.flash-error { background: #fff2f2; border-color: #f2c1c1; color: #7e1f1f; }
.flash-success { background: #eefcf7; border-color: #bcebd7; color: #145941; }
.list { display: grid; gap: 14px; }
.match-card, .list-card { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 18px; }
.match-head, .row-between { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.meta { color: var(--muted); font-size: .93rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { background: #eef5ff; color: #254a6d; border: 1px solid #d7e6fb; border-radius: 999px; padding: 7px 10px; font-size: .84rem; }
.layout-title { margin-bottom: 16px; }
.empty { border: 1px dashed var(--line); border-radius: 16px; padding: 22px; background: #fbfdff; }
.helper { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.simple-panel { padding-top: 60px; }
.centered-card { max-width: 520px; margin: 0 auto; text-align: center; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-size: .85rem; font-weight: 700; }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #edf3fa; color: #31516d; }
.badge-open, .badge-active { background: #eefcf7; color: #0d7858; }
.badge-pending { background: #fff8e8; color: #8a6515; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1080px) {
  .grid-3, .hero, .auth-grid { grid-template-columns: 1fr; }
}
