:root {
  --bg: #0f172a;
  --card: #1e293b;
  --card-2: #273449;
  --border: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #0ea5e9;
  --accent-2: #38bdf8;
  --good: #34d399;
  --warn: #fbbf24;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 30px; height: 30px; }
.brand h1 { font-size: 18px; margin: 0; font-weight: 600; color: #fff; }

.btn-logout {
  background: var(--card-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}
.btn-logout:hover { background: var(--border); }

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px;
}

.welcome { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.section-title { font-size: 16px; margin: 0 0 14px; color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.module {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.module:hover { border-color: var(--accent); transform: translateY(-2px); }

.module-icon { width: 34px; height: 34px; flex-shrink: 0; }
.module-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.module-name { font-size: 15px; font-weight: 600; color: #fff; }
.module-desc { font-size: 12px; color: var(--muted); }
.module-arrow { font-size: 22px; color: var(--muted); }