:root {
  --bg: #f4f5f2;
  --panel: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: rgba(17,24,39,.10);
  --brand: #111827;
  --accent: #d8ff3e;
  --soft: #eef3ea;
  --danger: #ef4444;
  --radius: 28px;
  --shadow: 0 22px 60px rgba(17, 24, 39, .08);
}
* { box-sizing: border-box; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; background: radial-gradient(circle at top left, rgba(216,255,62,.22), transparent 32%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 292px 1fr; }
.sidebar { position: sticky; top:0; height:100vh; padding: 28px; border-right: 1px solid var(--line); background: rgba(255,255,255,.72); backdrop-filter: blur(20px); }
.brand { display:flex; gap:14px; align-items:center; margin-bottom: 32px; }
.logo-box { width:64px; height:64px; border-radius: 22px; background: var(--brand); color: var(--accent); display:grid; place-items:center; font-weight:950; box-shadow: var(--shadow); overflow:hidden; }
.logo-box img { width:100%; height:100%; object-fit:cover; }
.brand h1 { font-size:20px; line-height:1.05; margin:0; }
.brand p { color:var(--muted); margin:6px 0 0; font-size:14px; }
.pill { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--line); border-radius:999px; font-size:11px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); background:white; }
.nav { display:grid; gap:8px; }
.nav button, .nav a { border:0; background:transparent; text-align:left; padding:16px 18px; border-radius:999px; font-weight:900; cursor:pointer; color:var(--text); }
.nav button.active { background:var(--brand); color:var(--accent); }
.sidebar-footer { position:absolute; left:28px; right:28px; bottom:24px; color:var(--muted); font-size:12px; line-height:1.35; }
.main { padding: 36px; max-width: 1240px; width:100%; }
.topbar { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:28px; }
.title h2 { font-size:42px; line-height:.95; margin:0; letter-spacing:-.05em; }
.title p { color: var(--muted); margin:12px 0 0; font-size:18px; }
.actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.btn { border:1px solid var(--line); border-radius:999px; padding:14px 18px; background:white; font-weight:900; cursor:pointer; box-shadow: 0 8px 28px rgba(17,24,39,.05); }
.btn.primary { background:var(--brand); color:var(--accent); border-color:transparent; }
.btn.danger { color:var(--danger); border-color:rgba(239,68,68,.25); background:#fff5f5; }
.grid { display:grid; gap:22px; }
.cards { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); min-width:0; }
.card h3 { margin:0 0 10px; font-size:15px; color:var(--muted); }
.metric { font-size:34px; font-weight:950; letter-spacing:-.04em; overflow-wrap:anywhere; }
.card p { color:var(--muted); margin:8px 0 0; }
.section { display:none; }
.section.active { display:block; }
.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; }
label { display:grid; gap:7px; font-weight:900; color:var(--muted); font-size:13px; }
input, select, textarea { width:100%; border:1px solid var(--line); border-radius:18px; background:#f9fafb; padding:14px 15px; color:var(--text); outline:none; }
textarea { min-height: 96px; resize: vertical; }
.table-wrap { max-height: 360px; overflow:auto; border:1px solid var(--line); border-radius:22px; background:white; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th, td { padding:13px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; }
th { position:sticky; top:0; background:#f9fafb; color:var(--muted); font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
.toast { position:fixed; right:24px; bottom:24px; background:var(--brand); color:var(--accent); border-radius:22px; padding:16px 18px; box-shadow:var(--shadow); max-width: 420px; z-index:100; display:none; font-weight:900; }
.toast.show { display:block; }
.login-card, .landing { min-height:100vh; display:grid; place-items:center; padding:28px; }
.login-inner, .landing-inner { width:min(100%, 980px); background:rgba(255,255,255,.78); border:1px solid var(--line); border-radius:34px; box-shadow:var(--shadow); padding:32px; backdrop-filter:blur(18px); }
.module-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:24px; }
.module-card { background:white; border:1px solid var(--line); border-radius:28px; padding:24px; box-shadow:var(--shadow); display:grid; gap:12px; }
.module-card strong { font-size:22px; line-height:1.05; }
.module-card span { color:var(--muted); line-height:1.4; }
.public-wrap { min-height:100vh; padding:28px; display:grid; place-items:start center; }
.public-card { width:min(100%, 920px); margin-top:20px; background:rgba(255,255,255,.82); border:1px solid var(--line); border-radius:34px; box-shadow:var(--shadow); padding:28px; backdrop-filter: blur(20px); }
.lang { display:flex; gap:8px; justify-content:flex-end; }
.lang button { padding:9px 12px; border-radius:999px; border:1px solid var(--line); background:white; font-weight:900; }
.option-list { display:grid; gap:10px; margin:16px 0; }
.option { border:1px solid var(--line); border-radius:20px; padding:14px; background:white; display:flex; justify-content:space-between; gap:14px; align-items:center; }
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position:relative; height:auto; }
  .sidebar-footer { position:relative; left:auto; right:auto; bottom:auto; margin-top:24px; }
  .main { padding:24px; }
  .cards, .two, .three, .module-grid, .form-grid { grid-template-columns:1fr; }
  .topbar { flex-direction:column; }
  .title h2 { font-size:34px; }
  .btn { width:100%; min-height:52px; }
}
