/* =========================================
   ACC — Design System
   Sky & Water Light — Liquid Glass
   ========================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;900&family=DM+Sans:wght@400;500&display=swap');

/* --- Custom Properties --- */
:root {
  --sky-base:      #B8E0F7;
  --sky-deep:      #0B2D4A;
  --accent:        #FFD166;
  --glass-surface: rgba(255, 255, 255, 0.22);
  --glass-border:  rgba(255, 255, 255, 0.45);
  --text-dark:     #0D2B42;
  --text-muted:    #4a7a9b;

  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  --radius-card:   20px;
  --radius-pill:   50px;
  --transition:    0.2s ease;
  --nav-height:    73px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--sky-base);
  color: var(--text-dark);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); }

/* --- Glass Mixin (applied via class) --- */
.glass {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 32px rgba(0, 60, 100, 0.10);
}

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(184, 224, 247, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}
.nav.scrolled {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  opacity: 0.75;
  transition: opacity var(--transition);
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active {
  opacity: 1;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  z-index: 99;
  background: rgba(184, 224, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.nav-mobile.open {
  max-height: 300px;
  opacity: 1;
}
.nav-mobile ul {
  list-style: none;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sky-deep);
  text-transform: uppercase;
}
.nav-mobile a.active { text-decoration: underline; }

/* =========================================
   HERO (full-viewport)
   ========================================= */
.hero {
  position: relative;
  min-height: 100svh; /* avoids iOS Safari address-bar overlap */
  min-height: 100vh;  /* fallback for browsers without svh support */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/IMG_0666.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kenBurns 12s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,45,74,0.58) 0%, rgba(20,80,120,0.38) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.blob-1 {
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.12);
  top: -100px; right: -80px;
  animation: blobDrift1 12s ease-in-out infinite alternate;
}
.blob-2 {
  width: 400px; height: 400px;
  background: rgba(100,200,255,0.14);
  bottom: -60px; left: -60px;
  animation: blobDrift2 10s ease-in-out infinite alternate;
}
.blob-3 {
  width: 280px; height: 280px;
  background: rgba(255,209,102,0.08);
  top: 40%; left: 15%;
  animation: blobDrift1 14s ease-in-out infinite alternate-reverse;
}
@keyframes blobDrift1 {
  from { transform: translate(0, 0); }
  to   { transform: translate(30px, 20px); }
}
@keyframes blobDrift2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-20px, -30px); }
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease-out 0.1s forwards;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: white;
  letter-spacing: 0.03em;
  line-height: 0.95;
  text-shadow: 0 4px 30px rgba(0,0,0,0.25);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease-out 0.2s forwards;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out 0.35s forwards;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease-out 0.5s forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-glass {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 20px rgba(0,0,0,0.18);
  transition: transform var(--transition), box-shadow var(--transition);
  display: inline-block;
}
.btn-glass:hover {
  transform: scale(1.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 10px 30px rgba(0,0,0,0.25);
}

.btn-accent {
  background: var(--accent);
  border: 1px solid rgba(255,209,102,0.6);
  color: var(--sky-deep);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,209,102,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
  display: inline-block;
}
.btn-accent:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(255,209,102,0.45);
}

/* =========================================
   SECTIONS (below hero)
   ========================================= */
.sections {
  background: linear-gradient(180deg, #e8f4fc 0%, #f4faff 100%);
  padding: 60px 48px 48px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
}

/* =========================================
   CARDS
   ========================================= */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 48px;
  align-items: start;
}

.card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 8px 32px rgba(0,60,100,0.10);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.card.visible { opacity: 1; transform: translateY(0); }
.cards-grid .card:nth-child(2) { margin-top: -24px; transition-delay: 0.1s; }
.cards-grid .card:nth-child(3) { transition-delay: 0.2s; }

.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card-accent { width: 28px; height: 2px; background: var(--accent); margin-bottom: 14px; border-radius: 2px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.card-meta {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.card-description:empty { display: none; }

/* Hold page team cards */
.teams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

/* =========================================
   ABOUT BLOCK
   ========================================= */
.about-block {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.about-text {
  flex: 1;
  min-width: 0;
  max-width: 50%;
  margin: 0 auto;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1em;
  color: var(--text-muted);
}

.about-text ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

.about-text li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 0.4em;
}

.about-videos {
  width: 50%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.about-videos .section-label {
  text-align: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.sponsor-logos {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.sponsor-logos img {
  height: auto;
  width: 10%;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.sponsor-logos img:hover { opacity: 1; }

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.5);
  padding: 48px 48px 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-tagline { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }
.footer-nav { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: var(--text-muted); transition: color var(--transition); }
.footer-nav a:hover { color: var(--text-dark); }

.footer-sponsors { border-top: 1px solid rgba(0,60,100,0.08); padding-top: 28px; }
.sponsor-tier { margin-bottom: 20px; }
.sponsor-tier-label {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.sponsor-tier-year {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0.6;
  text-transform: uppercase;
}
.footer-bottom {
  margin-top: 32px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-legal-nav { list-style: none; display: flex; gap: 20px; }
.footer-legal-nav a { font-size: 0.75rem; color: var(--text-muted); transition: color var(--transition); }
.footer-legal-nav a:hover { color: var(--text-dark); }

/* =========================================
   LEGAL / SALGSBETINGELSER
   ========================================= */
.legal-content {
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.75;
  color: var(--text-dark);
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--sky-deep);
  margin-bottom: 1.5rem;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-top: 2rem;
  margin-bottom: .5rem;
}
.legal-content hr { border: none; border-top: 1px solid rgba(0,60,100,0.1); margin: 1.5rem 0; }
.legal-content p { margin-bottom: 1rem; font-size: .95rem; }
.legal-content a { color: var(--sky-deep); text-decoration: underline; }

/* =========================================
   PRODUKTER PAGE
   ========================================= */
.product-card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.7);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
}
.product-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--sky-deep);
  margin-bottom: .35rem;
}
.product-desc { font-size: .875rem; color: var(--text-muted); max-width: 480px; }
.product-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sky-deep);
  white-space: nowrap;
}

/* =========================================
   CONTENT SECTIONS (SÆL / Skolewakeboard)
   ========================================= */
.content-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
}
.content-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.content-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.content-section img {
  border-radius: 16px;
  margin: 24px 0;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,60,100,0.12);
}

/* SÆL page intro */
.sael-intro {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dark);
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  font-style: italic;
}

/* Alternating image + text blocks */
.media-block {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 64px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.media-block.reverse {
  flex-direction: row-reverse;
}
.media-block img {
  flex: 0 0 48%;
  width: 48%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,60,100,0.12);
  object-fit: cover;
  aspect-ratio: 4/3;
  margin: 0;
}
.media-text {
  flex: 1;
}
.media-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
  margin-top: 0;
}
.media-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* SÆL contact block */
.sael-contact {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-top: 16px;
}
.sael-contact h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sael-contact p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.sael-contact a {
  color: var(--sky-deep);
  text-decoration: underline;
}

/* Skolewakeboard stat block */
.skole-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  margin: 0 auto 64px;
}
.skole-stat-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  color: var(--text-muted);
  line-height: 1;
}
.skole-stat-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 8px;
}

/* Skolewakeboard sponsors + schools sections */
.skole-sponsors,
.skole-schools {
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 0 24px;
  text-align: center;
}
.skole-sponsors-heading {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.skole-sponsors-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.skole-sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.skole-sponsor-logos img {
  height: 128px;
  width: auto;
  object-fit: contain;
}
.skole-schools-img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 16px auto 0;
  border-radius: 16px;
}
.content-section ul {
  list-style: none;
  padding: 0;
}
.content-section ul li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0,60,100,0.06);
}
.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* =========================================
   REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .blob { animation: none; }
  .hero-eyebrow, .hero h1, .hero-tagline, .hero-buttons {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .card { opacity: 1; transform: none; transition: none; }
  .nav { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}

/* =========================================
   RESPONSIVE — 768px breakpoint
   ========================================= */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }
  .media-block,
  .media-block.reverse { flex-direction: column; }
  .media-block img { flex: none; width: 100%; aspect-ratio: 16/9; }

  .sections { padding: 48px 20px 32px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid .card:nth-child(2) { margin-top: 0; }
  .teams-grid { grid-template-columns: 1fr; }

  .about-block { flex-direction: column; }
  .about-videos { width: 100%; }

  footer { padding: 32px 20px 24px; }
  .footer-top { flex-direction: column; }

  .hero { padding: 100px 20px 60px; }
}

/* ── Member Dashboard ── */
.dashboard-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.dashboard-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: .75rem;
  color: var(--sky-deep);
}
.dashboard-card-status {
  font-weight: 600;
  margin-bottom: .5rem;
}
.status-active  { color: #2d7a3a; }
.status-pending { color: #8a6000; }
.status-expired { color: #7a2d2d; }
.status-none    { color: #555; }
.status-closed  { color: #999; font-style: italic; }

.team-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-green { background: rgba(45,122,58,.15); color: #2d7a3a; }
.badge-red   { background: rgba(122,45,45,.15);  color: #7a2d2d; }

/* Forms */
.form-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: .35rem;
  color: var(--sky-deep);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: .6rem .9rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,.85);
  box-sizing: border-box;
}
.flash {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: .95rem;
}
.flash-info  { background: rgba(11,45,74,.08);  border: 1px solid rgba(11,45,74,.15); }
.flash-error { background: rgba(180,30,30,.08); border: 1px solid rgba(180,30,30,.2); color: #7a1010; }

/* ── Admin ── */
.admin-page { background: #f0f4f8; min-height: 100vh; font-family: var(--font-body); }
.admin-topbar {
  background: #0b1a28;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-topbar .brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.admin-nav { display: flex; gap: 4px; }
.admin-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  text-decoration: none;
}
.admin-tab.active, .admin-tab:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-body { padding: 24px; max-width: 1100px; margin: 0 auto; }
.stat-row { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-box {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 1rem;
}
.stat-val { font-family: var(--font-display); font-size: 1.75rem; font-weight: 900; color: #0b1a28; line-height: 1; }
.stat-lbl { font-size: .7rem; color: #7a8a9a; margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; background: #fff; border-radius: 10px; overflow: hidden; }
.admin-table th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #7a8a9a; padding: 10px 16px; border-bottom: 1px solid #e8edf2; }
.admin-table td { padding: 10px 16px; border-bottom: 1px solid #f0f4f8; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.badge-sm { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: .7rem; font-weight: 600; }
.badge-sm.badge-green  { background: rgba(45,122,58,.12);  color: #2d7a3a; }
.badge-sm.badge-yellow { background: rgba(180,130,0,.12);  color: #7a5800; }
.badge-sm.badge-red    { background: rgba(122,45,45,.12);  color: #7a2d2d; }
.badge-sm.badge-gray   { background: rgba(0,0,0,.06);      color: #666; }
.action-btn {
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: .75rem;
  cursor: pointer;
  text-decoration: none;
  color: #333;
}
.action-btn:hover { background: rgba(0,0,0,.1); }

.btn-small {
  font-size: .75rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-block;
  margin-top: 4px;
}
.btn-confirm { background: #2d7a3a; color: #fff; }
.btn-confirm:hover { background: #235f2d; }
.btn-danger { background: #b83232; color: #fff; }
.btn-danger:hover { background: #922828; }

/* ── Nav Auth ── */
.nav-auth {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: .75rem;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 5px 14px 5px 5px;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background .2s;
}
.user-pill:hover { background: rgba(255,255,255,.25); }
.user-menu-wrap {
  position: relative;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  overflow: hidden;
  z-index: 200;
}
.user-dropdown.open { display: block; }
.user-dropdown-item {
  display: block;
  padding: 11px 18px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--sky-deep);
  text-decoration: none;
  transition: background .15s;
}
.user-dropdown-item:hover { background: rgba(184,224,247,.35); }
.user-dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,.07);
  margin: 4px 0;
}
.user-dropdown-item--danger { color: #b91c1c; }
.user-dropdown-item--danger:hover { background: rgba(185,28,28,.07); }
.user-initial {
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: var(--sky-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
}
.btn-glass-nav {
  font-size: .85rem;
  padding: 7px 18px;
}
@media (max-width: 768px) {
  .nav-auth { display: none; }
}

/* ── Admin responsive ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 768px) {
  .admin-topbar { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .admin-nav { flex-wrap: wrap; }
  .admin-body { padding: 12px; }
  .stat-row { gap: 8px; }
  .stat-box { min-width: 120px; padding: 10px 12px; }
  /* Hide less critical columns: E-mail (2), Hold (4), Oprettet (5), empty (6) */
  .admin-table th:nth-child(2), .admin-table td:nth-child(2),
  .admin-table th:nth-child(4), .admin-table td:nth-child(4),
  .admin-table th:nth-child(5), .admin-table td:nth-child(5),
  .admin-table th:nth-child(6), .admin-table td:nth-child(6) { display: none; }
}

/* ── MobilePay Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,.06);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: rgba(0,0,0,.12); color: #000; }
.modal-mp-header {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5a189a;
  margin-bottom: .5rem;
}
.modal-mp-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--sky-deep);
  line-height: 1;
  margin: 0 0 1rem;
}
.modal-mp-to {
  font-size: 1rem;
  color: #444;
  margin: 0 0 .4rem;
}
.modal-mp-ref {
  font-size: .85rem;
  color: #666;
  background: #f4f4f6;
  border-radius: 8px;
  padding: .5rem .75rem;
  margin: 0 0 1.5rem;
}
.modal-mp-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-bottom: 1rem;
}
.modal-mp-qr-wrap { margin-bottom: 1rem; }
.modal-mp-qr { border-radius: 10px; display: block; margin: .5rem auto 0; }
.modal-mp-scan-hint { font-size: .8rem; color: #888; margin: 0; }
.modal-mp-note {
  font-size: .8rem;
  color: #888;
  margin: 0;
}
/* Show QR on desktop, deep link button on mobile */
@media (hover: hover) and (pointer: fine) {
  .modal-mp-mobile-only { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .modal-mp-desktop-only { display: none; }
}

/* ══════════════════════════════════════════════════════
   CONTENT PAGES
══════════════════════════════════════════════════════ */

/* Hero background variants */
.hero-bg--home      { background-image: url('/assets/heroHero.webp'); }
.hero-bg--hold      { background-image: url('/assets/heroHold.webp'); }
.hero-bg--seal      { background-image: url('/assets/heroSeal.webp'); }
.hero-bg--skolewake { background-image: url('/assets/heroSkolewake.webp'); }
.hero--short        { min-height: 40vh; }

/* Base section and container */
.section    { padding: 80px 24px; }
.container  { max-width: 960px; margin-inline: auto; padding-inline: 24px; }
.container--narrow  { max-width: 480px; }
.container--medium  { max-width: 720px; }
.container--content { max-width: 680px; text-align: center; }

/* Section modifiers */
.section--content { padding-top: 6rem; padding-bottom: 4rem; }
.section--top     { padding-top: 6rem; }

/* Page typography */
.page-heading         { font-family: var(--font-display); font-size: 2.5rem; color: var(--sky-deep); margin-bottom: .5rem; }
.page-heading--spaced { margin-bottom: 2rem; }
.page-subheading      { color: #7a8a9a; margin-bottom: 3rem; }
.page-footer-note     { margin-top: 2.5rem; font-size: .85rem; color: #7a8a9a; }
.section-subheading   { margin-top: 2rem; }
.hint-text            { font-size: .9rem; color: #666; margin-bottom: 1rem; }

/* Login page */
.login-hero-content { width: 100%; max-width: 420px; }
.flash--hero  { margin-top: 2rem; color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.flash--mt    { margin-top: 2rem; }
.login-form   { margin-top: 2rem; text-align: left; }
.label--light { color: #fff; }
.login-footer { text-align: center; margin-top: 3rem; color: #fff; }
.link--light  { color: #fff; font-weight: 600; }

/* Shared form helpers */
.btn-full         { width: 100%; }
.form-footer-text { text-align: center; margin-top: 1rem; opacity: .7; }
.fb-embed         { border: none; overflow: hidden; }

/* ══════════════════════════════════════════════════════
   ADMIN — ADDITIONAL CLASSES
══════════════════════════════════════════════════════ */

.stat-val--positive { color: #2d7a3a; }

.admin-inline-form { display: flex; gap: .5rem; align-items: center; }
.admin-form-inline { display: inline; margin-top: 4px; }
.admin-form-spaced { margin-bottom: .75rem; }
.admin-create-form { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .75rem; }

.admin-label { font-size: .8rem; white-space: nowrap; }

.admin-input       { padding: 4px 6px; border: 1px solid #ccc; border-radius: 6px; }
.admin-input--w70  { width: 70px; }
.admin-input--w80  { width: 80px; }
.admin-input--w90  { width: 90px; padding: .5rem .75rem; }
.admin-input--w100 { width: 100px; padding: .5rem .75rem; }
.admin-input--flex { flex: 2; min-width: 150px; padding: .5rem .75rem; }

.create-team-details { margin-bottom: 1.5rem; }
.create-team-summary { cursor: pointer; font-weight: 600; padding: .5rem 0; }
.team-header         { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; }
.badge-ml            { margin-left: .5rem; }
.badge-ml-xs         { margin-left: .25rem; }
.admin-section-label { font-size: .8rem; font-weight: 600; color: #7a8a9a; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.admin-table--compact { font-size: .8rem; }

.td-muted     { color: rgba(0,0,0,.5); }
.td-meta      { color: #7a8a9a; font-size: .8rem; }
.td-secondary { color: #7a8a9a; }
.td-empty     { color: #aaa; font-size: .75rem; }
