:root {
  --bg: #ffffff;
  --panel: #fbfdff;
  --line: #e6ebf2;
  --text: #0f172a;
  --muted: #5b6477;
  --accent: #ad00ff;
  --accent-soft: #faf2ff;
  --font-latin: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-latin);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand-logo { width: 210px; height: auto; display: block; }

.meta { color: var(--muted); font-size: 14px; letter-spacing: 0.02em; }

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px 40px;
}

.hero {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  font-weight: 500;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: 82ch;
}

.funds-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tabs {
  margin-top: 18px;
  display: flex;
  gap: 8px;
}

.tab-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.tab-btn.active {
  color: #7d06b6;
  border-color: #e6c6f9;
  background: var(--accent-soft);
}

.tab-panel { margin-top: 2px; }

.fund-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.fund-card:hover {
  border-color: #e8c5fb;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
  transform: translateY(-1px);
}

.fund-title {
  margin: 0;
  color: var(--accent);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
}

.fund-updated, .fund-stats {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.fund-link {
  margin-top: auto;
  display: inline-block;
  text-decoration: none;
  width: fit-content;
  font-size: 13px;
  color: #7d06b6;
  background: var(--accent-soft);
  border: 1px solid #eed4fc;
  border-radius: 999px;
  padding: 6px 10px;
}

.fund-link:hover { background: #f3e4fe; }

.empty {
  border: 1px dashed #d8dfea;
  border-radius: 12px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .meta { display: none; }
  .page { padding: 14px; }
  .funds-grid { grid-template-columns: 1fr; }
}
