/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   hulensdata.dk â€” Global Stylesheet
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0e0e0e;
  --surface:    #161616;
  --surface2:   #1f1f1f;
  --border:     #2a2a2a;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --text:       #f0ece3;
  --muted:      #888;
  --red:        #e05252;
  --green:      #5ec98a;
  --radius:     10px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}

/* â”€â”€ SCROLLBAR â”€â”€ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* â”€â”€ SHARED NAV â”€â”€ */
.site-header {
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header .wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.site-header .wordmark span { color: var(--gold); }

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* â”€â”€ FILTERS â”€â”€ */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  align-items: center;
}

.filters label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.filters select,
.filters input {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.filters select:focus,
.filters input:focus { border-color: var(--gold); }

/* â”€â”€ TABLE â”€â”€ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }

thead tr { background: var(--surface); border-bottom: 1px solid var(--border); }

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

thead th:hover { color: var(--gold); }
thead th .sort-icon { margin-left: 4px; opacity: 0.4; }
thead th.sorted .sort-icon { opacity: 1; color: var(--gold); }

tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface2); }

td { padding: 11px 16px; vertical-align: middle; white-space: nowrap; }

/* â”€â”€ BADGES â”€â”€ */
.season-badge {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.68rem;
  padding: 2px 7px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold-light);
  border-radius: 4px;
  font-size: 0.68rem;
  padding: 2px 7px;
}

.val-up   { color: var(--green); }
.val-down { color: var(--red); }

/* â”€â”€ CARDS â”€â”€ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* â”€â”€ PAGE LAYOUT â”€â”€ */
.page-main {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.page-title span { color: var(--gold); }

/* â”€â”€ BACK BUTTON â”€â”€ */
.back-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 32px;
  display: inline-block;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.back-btn:hover { border-color: var(--gold); color: var(--gold); }

/* â”€â”€ EMPTY STATE â”€â”€ */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* â”€â”€ TABLE COUNT â”€â”€ */
.table-count {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* â”€â”€ STAT PILLS (header) â”€â”€ */
.header-stats { display: flex; gap: 32px; flex-wrap: wrap; }

.stat-pill { text-align: right; }
.stat-pill .val {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-pill .lbl {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* â”€â”€ INVESTOR CARDS â”€â”€ */
.investor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.investor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.investor-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.investor-card--active {
  border-color: rgba(201,168,76,0.4);
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, var(--surface) 60%);
}

.active-lion-badge {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}

.inv-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-right: 24px;
}

.inv-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

.inv-stat:last-of-type { border-bottom: none; }
.inv-stat .k { color: var(--muted); }
.inv-stat .v { font-weight: 500; color: var(--gold-light); }

.investor-section-header {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.inv-section-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold);
  border-radius: 20px;
  padding: 2px 10px;
  font-weight: 400;
}

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

/* â”€â”€ COMPANY CARDS â”€â”€ */
.co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.co-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
}

.co-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.3); }

.co-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding-right: 24px; }

.co-status-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.co-status-dot.aktiv   { background: var(--green); box-shadow: 0 0 6px rgba(94,201,138,0.5); }
.co-status-dot.inaktiv { background: var(--red); }
.co-status-dot.ukendt  { background: var(--muted); }

.co-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; line-height: 1.2; }

.co-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.co-badge { font-size: 0.68rem; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border); color: var(--muted); }
.co-badge.gold { background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.25); color: var(--gold-light); }

/* â”€â”€ CHARTS â”€â”€ */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.chart-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 20px;
}

.chart-card h3 span { color: var(--gold); }

.chart-container { position: relative; height: 280px; }

/* â”€â”€ KPI ROWS â”€â”€ */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.kpi-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 8px;
}

.kpi-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

/* â”€â”€ ANIMATIONS â”€â”€ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 700px) {
  .site-header { padding: 16px 20px; }
  .page-main { padding: 24px 20px; }
  .chart-grid { grid-template-columns: 1fr; }
  .site-nav a { padding: 8px 10px; font-size: 0.72rem; }
}