:root {
  /* --- Farver: Premium Phoenix Green --- */
  --bg-body: #050505; 
  --bg-card: rgba(18, 18, 20, 0.7); 
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --primary: #39FF4D;       
  --primary-dark: #2ab539;  
  --primary-glow: rgba(57, 255, 77, 0.4);
  --text-on-primary: #000000;
  --danger: #ff4444;
  --success: #39FF4D;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --radius: 10px;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ✅ Sticky footer base (robust) */
html, body { height: 100%; }

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-main);
  margin: 0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 100%; height: 500px; background: radial-gradient(ellipse at center, rgba(57, 255, 77, 0.08), transparent 70%);
  z-index: -1; pointer-events: none;
}
body::after {
  content: ''; position: fixed; top: 10%; left: -10%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(57, 255, 77, 0.06), transparent 60%);
  z-index: -2; filter: blur(60px); animation: float 25s infinite ease-in-out alternate;
}
.wrap::before {
  content: ''; position: fixed; bottom: -10%; right: -10%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 160, 255, 0.04), transparent 60%);
  z-index: -2; filter: blur(50px); animation: floatReverse 30s infinite ease-in-out alternate; pointer-events: none;
}
@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(40px, 40px); } }
@keyframes floatReverse { 0% { transform: translate(0, 0); } 100% { transform: translate(-40px, -40px); } }

h1, h2, h3 { margin: 0 0 1rem 0; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: 2.5rem; color: #fff; text-shadow: 0 0 30px rgba(57, 255, 77, 0.2); }
h2 { font-size: 1.25rem; color: #fff; margin-bottom: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem 0; color: var(--text-muted); }
.sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 600px; line-height: 1.7; }
.small { font-size: 0.85rem; color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; transition: 0.2s; font-weight: 600; }
a:hover { color: #fff; text-decoration: underline; }

/* ✅ OPDATERET WRAP (sticky footer) */
.wrap{
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 2rem;

  /* NYT: gør .wrap til flex-column så footer kan skubbes ned */
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  flex: 1;
  position: relative;
  z-index: 1;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 2rem; margin-top: 2rem; }
.card { background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--bg-card-border); border-radius: var(--radius); padding: 2.5rem; transition: transform 0.3s ease, border-color 0.3s ease; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.card:hover { border-color: rgba(57, 255, 77, 0.3); transform: translateY(-4px); }

/* KNAPPER */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 2rem; border-radius: 8px; font-weight: 800; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; border: none; text-decoration: none !important; text-transform: uppercase; letter-spacing: 0.03em; position: relative; overflow: hidden; color: var(--text-on-primary) !important; background: linear-gradient(180deg, var(--primary), var(--primary-dark)); box-shadow: 0 4px 15px rgba(57, 255, 77, 0.2); }
.btn::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-20deg); transition: 0.5s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 25px var(--primary-glow); filter: brightness(1.05); }
.btn:hover::after { left: 150%; transition: 0.7s ease-in-out; }

.btn.secondary { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff !important; box-shadow: none; }
.btn.secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn.danger { background: rgba(255, 68, 68, 0.1); color: var(--danger) !important; border: 1px solid rgba(255, 68, 68, 0.3); box-shadow: none; }
.btn.danger:hover { background: var(--danger); color: #fff !important; }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.brand { display: flex; align-items: center; gap: 1rem; }
.brand > div:first-child { background: linear-gradient(180deg, var(--primary), var(--primary-dark)) !important; border: 1px solid rgba(255,255,255,0.2) !important; box-shadow: 0 0 15px rgba(57, 255, 77, 0.3) !important; border-radius: 8px !important; }
.badge { background: rgba(57, 255, 77, 0.1); border: 1px solid var(--primary); padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: var(--primary); display: inline-block; margin-top: 4px; }

.input { width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255,255,255,0.15); padding: 0.9rem 1.1rem; border-radius: 8px; color: #fff; font-family: var(--font-main); font-size: 1rem; margin-top: 0.5rem; box-sizing: border-box; transition: 0.2s; }
.input:focus { outline: none; border-color: var(--primary); background: rgba(0,0,0,0.5); box-shadow: 0 0 0 3px rgba(57, 255, 77, 0.1); }
input[type="file"]::file-selector-button { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.15); padding: 0.6rem 1rem; border-radius: 6px; cursor: pointer; margin-right: 1rem; transition: 0.2s; font-weight: 600; }
input[type="file"]::file-selector-button:hover { background: var(--primary); border-color: var(--primary); color: #000; }

.list { padding-left: 1.2rem; color: var(--text-muted); }
.list li { margin-bottom: 0.6rem; }
.list li b { color: #fff; font-weight: 600; }
.kpi { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0; }
.pill { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 0.4rem 0.9rem; border-radius: 50px; font-size: 0.85rem; color: #e0e0e0; }
.hr { height: 1px; background: rgba(255,255,255,0.1); margin: 2rem 0; width: 100%; }
.row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.flash { padding: 1.2rem; border-radius: 8px; margin-bottom: 2rem; background: rgba(255,255,255,0.05); border-left: 4px solid #fff; }
.flash.ok { border-left-color: var(--success); background: rgba(57, 255, 77, 0.1); color: #aaffb0; }
.flash.error { border-left-color: var(--danger); background: rgba(255, 68, 68, 0.1); color: #ffcece; }

/* ✅ Footer (sticky) */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  margin-top: auto; /* push-to-bottom (virker nu pga .wrap flex-column) */
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  flex-shrink: 0;
}

@media (max-width: 768px) { .wrap { padding: 1.5rem; } .card { padding: 1.5rem; } .topbar { flex-direction: column; align-items: flex-start; gap: 1.5rem; } .topbar .row { width: 100%; justify-content: space-between; } .btn { width: 100%; } .row .btn { width: auto; } }

/* ===== Language switch (flags + first-visit modal) ===== */
.lang-switch{display:flex;gap:10px;align-items:center;}
.lang-flag{
  width:34px;height:24px;border-radius:6px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  padding:0; display:inline-flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.lang-flag img{width:100%;height:100%;object-fit:cover;display:block;}

.lang-modal{
  position:fixed; inset:0; z-index:9999;
  background: rgba(0,0,0,.75);
  display:none; align-items:center; justify-content:center;
  padding:18px;
}
.lang-modal.show{display:flex;}
.lang-modal .box{
  width:min(420px, 100%);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border:1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 12px 45px rgba(0,0,0,.55);
}
.lang-modal .flags{display:flex;gap:14px;margin-top:14px;}
.lang-modal .pick{
  flex:1;
  display:flex;align-items:center;justify-content:center;gap:10px;
  padding:14px;border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.03em;
  transition: transform .2s ease, border-color .2s ease;
  text-decoration:none !important;
}
.lang-modal .pick:hover{
  border-color: rgba(57,255,77,.3);
  transform: translateY(-2px);
}
.lang-modal .pick img{
  width:34px;height:24px;border-radius:6px;
  border:1px solid rgba(255,255,255,.16);
}
