:root {
  --bg: #eef3fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #101827;
  --muted: #64748b;
  --line: #dfe8f6;
  --brand: #d7a63c;
  --brand-dark: #9b7425;
  --red: #d9342b;
  --side-a: #070b12;
  --side-b: #171f2b;
  --button-bg: #ffffff;
  --shadow: 0 18px 52px rgba(15, 23, 42, .08);
}

[data-theme="dark"] {
  --bg: #09111e;
  --panel: #111b2a;
  --panel-soft: #0d1624;
  --ink: #f5f7fb;
  --muted: #a9b6c8;
  --line: #26364c;
  --brand: #89aefc;
  --brand-dark: #6389df;
  --button-bg: #0c1422;
  --shadow: 0 18px 52px rgba(0, 0, 0, .26);
}

[data-theme="logo"] {
  --bg: #090d14;
  --panel: #101722;
  --panel-soft: #151f2d;
  --ink: #fff7e8;
  --muted: #c0ad88;
  --line: #2b3442;
  --brand: #f2bd4b;
  --brand-dark: #c98c2e;
  --button-bg: #121b28;
  --shadow: 0 22px 64px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 80% 0%, rgba(242, 189, 75, .16), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(217, 52, 43, .1), transparent 28%),
    var(--bg);
  color: var(--ink);
}

.sidebar {
  min-height: 100vh;
  padding: 24px 18px;
  background: linear-gradient(180deg, var(--side-a), var(--side-b));
  color: #fff7e8;
  border-right: 1px solid rgba(255,255,255,.08);
}

.brand-logo {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  margin-bottom: 16px;
  box-shadow: 0 0 40px rgba(242, 189, 75, .32);
}

.sidebar strong { display: block; font-size: 24px; }
.sidebar span { color: #c0ad88; display: block; margin-top: 4px; }

nav { display: grid; gap: 8px; margin-top: 34px; }
nav a {
  color: #e7d6b0;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}
nav a.active,
nav a:hover { background: rgba(242, 189, 75, .16); color: #fff7e8; }

main { padding: 26px; min-width: 0; }

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 34px; letter-spacing: 0; margin-bottom: 6px; }
h2 { font-size: 30px; letter-spacing: 0; margin-bottom: 10px; }
h3 { font-size: 20px; letter-spacing: 0; margin-bottom: 10px; }
p, li, dd { color: var(--muted); line-height: 1.45; }

.theme-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

button {
  border: 1px solid var(--line);
  background: var(--button-bg);
  color: var(--ink);
  border-radius: 7px;
  padding: 10px 14px;
  min-height: 40px;
  font-weight: 800;
  cursor: pointer;
}

button:hover:not(:disabled) { border-color: var(--brand); }
button:disabled { color: var(--muted); cursor: not-allowed; opacity: .72; }
.theme-switch button { border: 0; background: transparent; color: var(--muted); }
.theme-switch button.active { background: var(--brand); color: #161007; }

.hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--panel), var(--panel-soft));
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.hero img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 0 50px rgba(242, 189, 75, .22);
}

.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.module-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.module-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.module-card.ready { border-top: 3px solid var(--brand); }
.module-card.soon { border-top: 3px solid var(--red); }

.module-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

dl { margin: 0; display: grid; gap: 8px; }
dt { font-weight: 900; color: var(--ink); }
dd { margin: 0 0 10px; word-break: break-all; }

@media (max-width: 900px) {
  body { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; }
  .topbar, .hero { grid-template-columns: 1fr; align-items: flex-start; }
  .module-grid, .split { grid-template-columns: 1fr; }
  .hero img { width: 160px; height: 160px; }
}
