:root {
  --bg: #f6f3e7;
  --surface: #ffffff;
  --text: #102018;
  --muted: #4a5a54;
  --brand: #3c505c;
  --brand-2: #2f414b;
  --accent: #6c844c;
  --border: rgba(60, 80, 92, 0.22);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-2);
  text-decoration: underline;
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

.container-nice {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 18px;
}

/* Navbar */
.navbar {
  background: var(--brand);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #fff;
  opacity: .92;
}

.navbar .nav-link:hover {
  color: #fff;
  opacity: 1;
  text-decoration: none;
}

.navbar .btn-outline-light {
  border-color: rgba(255, 255, 255, .55);
}

.navbar .btn-outline-light:hover {
  background: rgba(255, 255, 255, .10);
}

.navbar-logo,
.navbar-avatar {
  width: 32px;
  height: 32px;
}

.navbar-logo  { object-fit: contain; }
.navbar-avatar { object-fit: cover; }

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--border);
}

.dropdown-item:hover {
  background: rgba(108, 132, 76, .10);
}

/* Kort */
.card-nice {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
}

.card-nice+.card-nice {
  margin-top: 18px;
}

/* Formulär */
.form-nice {
  max-width: 480px;
}

.form-nice input,
.form-nice select,
.form-nice textarea {
  border: 1px solid var(--border);
}

.form-nice input:focus,
.form-nice select:focus,
.form-nice textarea:focus {
  outline: none;
  border-color: rgba(108, 132, 76, .85);
}

/* Knappar */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #5d7441;
  border-color: #5d7441;
}

/* Footer */
.footer {
  background: var(--brand);
  color: rgba(255, 255, 255, .92);
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer a {
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-title { font-weight: 600; margin-bottom: 10px; }
.footer-muted { color: rgba(255, 255, 255, .72); }

.footer-line {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 18px;
  padding-top: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-brand img { width: 34px; height: 34px; object-fit: contain; }

.footer ul  { margin: 0; padding-left: 0; list-style: none; }
.footer li  { margin-bottom: 10px; }

/* Klubbilder */
.club-thumb {
  width: 100%;
  max-height: 220px;
  border-radius: 6px;
  display: block;
  object-fit: cover;
}

.club-thumb-cover {
  object-fit: cover;
}

.club-thumb-small {
  width: 96px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}

.badge-rank {
  display: inline-block;
  background: #1e3a5f;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 600;
  margin: 8px 0;
}