:root{
  --bg:#0b0e14;
  --bg-alt:#10141d;
  --card:#151a24;
  --border:#232a38;
  --text:#e7ecf5;
  --text-dim:#8b93a7;
  --accent:#00e0b8;
  --accent-2:#7c5cff;
  --accent-grad: linear-gradient(135deg, #00e0b8 0%, #7c5cff 100%);
  --danger:#ff5c7a;
  --radius:14px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
ul{list-style:none;margin:0;padding:0;}

/* ---------- NAV ---------- */
header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(11,14,20,0.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav-wrap{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:1.3rem;
  letter-spacing:0.5px;
}
.logo-mark{
  width:34px;height:34px;border-radius:9px;
  background:var(--accent-grad);
  display:flex;align-items:center;justify-content:center;
  font-size:1rem;color:#0b0e14;font-weight:900;
}
.logo span{background:var(--accent-grad);-webkit-background-clip:text;background-clip:text;color:transparent;}

nav ul{
  display:flex;
  gap:28px;
}
nav a{
  font-size:0.95rem;
  color:var(--text-dim);
  font-weight:600;
  transition:color .2s;
  position:relative;
}
nav a:hover{color:var(--text);}
nav a.active{color:var(--text);}
nav a::after{
  content:"";
  position:absolute;
  left:0;bottom:-6px;
  width:0;height:2px;
  background:var(--accent-grad);
  transition:width .25s;
}
nav a:hover::after{width:100%;}
nav a.active::after{width:100%;}

.nav-actions{display:flex;align-items:center;gap:14px;}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 20px;
  border-radius:999px;
  font-weight:700;
  font-size:0.9rem;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .2s, box-shadow .2s, background .2s;
}
.btn-primary{
  background:var(--accent-grad);
  color:#06110d;
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 25px -8px rgba(0,224,184,0.5);}
.btn-ghost{
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent);}

.burger{display:none;}

/* ---------- USER MENU (dropdown når logget ind) ---------- */
.user-menu{position:relative;}
.user-menu-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 16px 8px 8px;
  border-radius:999px;
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
  font-weight:700;
  font-size:0.9rem;
  font-family:inherit;
  cursor:pointer;
  transition:border-color .2s, color .2s;
}
.user-menu-btn:hover{border-color:var(--accent);color:var(--accent);}
.user-menu-btn .avatar-mini{
  width:26px;height:26px;
  border-radius:50%;
  object-fit:cover;
}
.user-menu-btn .avatar-fallback{
  width:26px;height:26px;
  border-radius:50%;
  background:var(--accent-grad);
  display:flex;align-items:center;justify-content:center;
  font-size:0.75rem;
  font-weight:900;
  color:#06110d;
}
.user-menu-btn .caret{
  font-size:0.7rem;
  color:var(--text-dim);
  transition:transform .2s;
}
.user-menu-btn.open .caret{transform:rotate(180deg);}
.user-menu-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:210px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:8px;
  display:none;
  flex-direction:column;
  gap:2px;
  box-shadow:0 20px 40px -12px rgba(0,0,0,0.55);
  z-index:200;
}
.user-menu-dropdown.open{display:flex;}
.user-menu-dropdown a{
  padding:10px 12px;
  border-radius:8px;
  font-size:0.9rem;
  font-weight:600;
  color:var(--text-dim);
  transition:background .15s, color .15s;
}
.user-menu-dropdown a:hover{background:rgba(255,255,255,0.06);color:var(--text);}
.user-menu-dropdown a.danger:hover{color:var(--danger);}
.user-menu-divider{
  height:1px;
  background:var(--border);
  margin:6px 4px;
}

/* ---------- HERO (forside) ---------- */
.hero{
  position:relative;
  min-height:88vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:80px 24px;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(124,92,255,0.25), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(0,224,184,0.2), transparent 40%),
    linear-gradient(180deg, #0b0e14 0%, #0d1119 100%);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size:48px 48px;
  mask-image:radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events:none;
}
.hero-content{position:relative;z-index:2;max-width:760px;}
.hero-tag{
  display:inline-block;
  padding:6px 16px;
  border-radius:999px;
  background:rgba(0,224,184,0.1);
  border:1px solid rgba(0,224,184,0.35);
  color:var(--accent);
  font-size:0.8rem;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  margin-bottom:22px;
}
.hero h1{
  font-size:clamp(2.2rem, 5vw, 3.6rem);
  font-weight:900;
  margin:0 0 18px;
  line-height:1.15;
}
.hero h1 .grad{
  background:var(--accent-grad);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero p{
  color:var(--text-dim);
  font-size:1.1rem;
  max-width:600px;
  margin:0 auto 34px;
}
.hero-actions{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}
.hero-stats{
  display:flex;
  justify-content:center;
  gap:48px;
  margin-top:64px;
  flex-wrap:wrap;
}
.stat{text-align:center;}
.stat b{
  display:block;
  font-size:1.8rem;
  font-weight:900;
  background:var(--accent-grad);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.stat span{color:var(--text-dim);font-size:0.85rem;}

/* ---------- PAGE HERO (undersider, fx regler) ---------- */
.page-hero{
  position:relative;
  padding:90px 24px 60px;
  text-align:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(124,92,255,0.25), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(0,224,184,0.2), transparent 40%),
    linear-gradient(180deg, #0b0e14 0%, #0d1119 100%);
}
.page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size:48px 48px;
  mask-image:radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events:none;
}
.page-hero-content{position:relative;z-index:2;max-width:760px;margin:0 auto;}
.page-hero h1{
  font-size:clamp(2rem, 4.5vw, 3rem);
  font-weight:900;
  margin:0 0 16px;
  line-height:1.15;
}
.page-hero h1 .grad{
  background:var(--accent-grad);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.page-hero p{
  color:var(--text-dim);
  font-size:1.05rem;
  max-width:600px;
  margin:0 auto;
}

/* ---------- SECTIONS GENERAL ---------- */
section{padding:100px 24px;}
.container{max-width:1200px;margin:0 auto;}
.section-head{
  text-align:center;
  max-width:640px;
  margin:0 auto 56px;
}
.eyebrow{
  color:var(--accent);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1.5px;
  font-size:0.78rem;
  margin-bottom:12px;
  display:block;
}
.section-head h2{
  font-size:clamp(1.8rem, 3.2vw, 2.5rem);
  margin:0 0 14px;
  font-weight:900;
}
.section-head p{color:var(--text-dim);font-size:1.02rem;}

/* ---------- PHILOSOPHY ---------- */
.philosophy{
  background:var(--bg-alt);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.philo-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:60px;
  align-items:center;
}
.philo-visual{
  aspect-ratio:1/1;
  border-radius:24px;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,224,184,0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(124,92,255,0.35), transparent 55%),
    var(--card);
  border:1px solid var(--border);
  position:relative;
  display:flex;align-items:center;justify-content:center;
}
.philo-visual span{
  font-size:5rem;
  font-weight:900;
  opacity:0.15;
}
.philo-text h3{font-size:1.6rem;margin-bottom:16px;font-weight:800;}
.philo-text p{color:var(--text-dim);margin-bottom:16px;}
.philo-list{margin-top:24px;}
.philo-list li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-bottom:14px;
  color:var(--text-dim);
}
.philo-list li b{color:var(--text);}
.check{
  flex-shrink:0;
  width:22px;height:22px;
  border-radius:6px;
  background:var(--accent-grad);
  display:flex;align-items:center;justify-content:center;
  color:#06110d;
  font-size:0.75rem;
  font-weight:900;
  margin-top:2px;
}

/* ---------- FEATURES ---------- */
.features-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.feature-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:32px 26px;
  transition:transform .25s, border-color .25s;
}
.feature-card:hover{
  transform:translateY(-6px);
  border-color:rgba(0,224,184,0.4);
}
.feature-icon{
  width:46px;height:46px;
  border-radius:12px;
  background:var(--accent-grad);
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;
  margin-bottom:18px;
}
.feature-card h3{margin:0 0 10px;font-size:1.1rem;font-weight:800;}
.feature-card p{margin:0;color:var(--text-dim);font-size:0.95rem;}

/* ---------- JOBS / APPLICATIONS ---------- */
.jobs-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.job-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:30px 24px;
  text-align:center;
  transition:transform .25s, border-color .25s;
}
.job-card:hover{transform:translateY(-6px);border-color:rgba(124,92,255,0.5);}
.job-emoji{font-size:2.2rem;margin-bottom:14px;}
.job-card h4{margin:0 0 8px;font-weight:800;font-size:1.05rem;}
.job-card p{margin:0 0 18px;color:var(--text-dim);font-size:0.9rem;}
.job-tag{
  display:inline-block;
  font-size:0.75rem;
  font-weight:700;
  color:var(--accent);
  border:1px solid rgba(0,224,184,0.35);
  background:rgba(0,224,184,0.08);
  padding:4px 12px;
  border-radius:999px;
}

/* ---------- RULES (regler.php) ---------- */
.rules-toc{
  max-width:900px;
  margin:0 auto 60px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}
.rules-toc a{
  padding:8px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text-dim);
  font-size:0.85rem;
  font-weight:600;
  transition:border-color .2s, color .2s;
}
.rules-toc a:hover{border-color:var(--accent);color:var(--accent);}

.rules-wrap{
  max-width:900px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.rule-block{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:32px 30px;
  scroll-margin-top:100px;
}
.rule-block-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}
.rule-icon{
  flex-shrink:0;
  width:42px;height:42px;
  border-radius:12px;
  background:var(--accent-grad);
  display:flex;align-items:center;justify-content:center;
  font-size:1.2rem;
}
.rule-block h2{
  margin:0;
  font-size:1.25rem;
  font-weight:800;
}
.rule-list{display:flex;flex-direction:column;gap:12px;}
.rule-list li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  color:var(--text-dim);
  font-size:0.96rem;
}
.rule-num{
  flex-shrink:0;
  width:24px;height:24px;
  border-radius:7px;
  background:rgba(0,224,184,0.1);
  border:1px solid rgba(0,224,184,0.35);
  color:var(--accent);
  display:flex;align-items:center;justify-content:center;
  font-size:0.72rem;
  font-weight:800;
  margin-top:1px;
}
.rule-list b{color:var(--text);}
.rule-warning{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-top:22px;
  padding:16px 18px;
  border-radius:10px;
  background:rgba(255,92,122,0.08);
  border:1px solid rgba(255,92,122,0.3);
  color:var(--text-dim);
  font-size:0.9rem;
}
.rule-warning b{color:var(--danger);}

/* ---------- CTA BAND ---------- */
.cta-band{
  background:var(--accent-grad);
  border-radius:24px;
  max-width:1200px;
  margin:0 auto;
  padding:56px 40px;
  text-align:center;
  color:#06110d;
}
.cta-band h2{font-size:clamp(1.6rem,3vw,2.2rem);margin:0 0 12px;font-weight:900;}
.cta-band p{margin:0 0 28px;opacity:0.8;font-weight:600;}
.cta-band .btn-ghost{
  background:#06110d;
  color:#e7ecf5;
  border:none;
}
.cta-band .btn-ghost:hover{opacity:0.85;color:#e7ecf5;}

/* ---------- FOOTER ---------- */
footer{
  border-top:1px solid var(--border);
  padding:56px 24px 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;
  max-width:1200px;
  margin:0 auto 40px;
}
.footer-brand p{color:var(--text-dim);font-size:0.9rem;margin-top:14px;max-width:280px;}
.footer-col h5{
  font-size:0.85rem;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--text-dim);
  margin:0 0 16px;
}
.footer-col li{margin-bottom:10px;}
.footer-col a{color:var(--text);font-size:0.92rem;}
.footer-col a:hover{color:var(--accent);}
.footer-bottom{
  max-width:1200px;
  margin:0 auto;
  padding-top:24px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  color:var(--text-dim);
  font-size:0.85rem;
}

/* ---------- DISCORD PROFILSIDE (discord.php) ---------- */
body.discord-body{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.discord-card{
  width:90%;
  max-width:500px;
  padding:40px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  text-align:center;
}
.discord-card .avatar{
  width:100px;
  height:100px;
  border-radius:50%;
  object-fit:cover;
  margin:0 auto 20px;
}
.discord-card h1{margin-bottom:10px;}
.discord-card .info{color:var(--text-dim);margin-bottom:30px;}
.discord-card .logout{
  display:inline-block;
  padding:12px 20px;
  background:#5865F2;
  color:white;
  text-decoration:none;
  border-radius:8px;
}

/* ---------- PROFIL (profil.php) ---------- */
.profile-card{
  position:relative;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:24px;
  overflow:hidden;
  margin-bottom:40px;
  box-shadow:0 30px 60px -30px rgba(0,0,0,0.5);
}
.profile-banner{
  height:150px;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,0.18), transparent 45%),
    var(--accent-grad);
  position:relative;
}
.profile-banner::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size:36px 36px;
  mask-image:radial-gradient(ellipse at center, black 40%, transparent 85%);
}
.profile-actions{
  position:absolute;
  top:16px;
  right:16px;
  z-index:3;
}
.btn-on-banner{
  background:rgba(6,17,13,0.35);
  border:1px solid rgba(255,255,255,0.3);
  color:#fff;
  backdrop-filter:blur(6px);
}
.btn-on-banner:hover{background:rgba(6,17,13,0.55);border-color:#fff;color:#fff;}
.profile-card-body{
  padding:0 32px 36px;
  text-align:center;
}
.profile-avatar-wrap{
  display:flex;
  justify-content:center;
  margin-top:-58px;
  position:relative;
  z-index:2;
}
.profile-avatar{
  display:block;
  flex-shrink:0;
  width:116px;
  height:116px;
  aspect-ratio:1/1;
  border-radius:50%;
  overflow:hidden;
  object-fit:cover;
  border:5px solid var(--card);
  box-shadow:0 12px 30px -10px rgba(0,0,0,0.6);
}
.profile-avatar-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--accent-grad);
  color:#06110d;
  font-size:2.4rem;
  font-weight:900;
}
.profile-name{
  margin:18px 0 6px;
  font-size:1.7rem;
  font-weight:900;
}
.profile-username{
  display:inline-block;
  color:var(--text-dim);
  font-size:0.88rem;
  font-weight:600;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--border);
  padding:5px 16px;
  border-radius:999px;
}
.profile-roles{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.role-badge{
  --role-color:#00e0b8;
  display:inline-flex;
  align-items:center;
  padding:5px 14px;
  border-radius:999px;
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.2px;
  color:var(--role-color);
  background:rgba(255,255,255,0.04);
  border:1px solid var(--role-color);
}
.profile-fields-head{
  text-align:center;
  margin-bottom:22px;
}
.profile-details-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.profile-details-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:20px 28px;
  border-bottom:1px solid var(--border);
  transition:background .15s;
}
.profile-details-row:last-child{border-bottom:none;}
.profile-details-row:hover{background:rgba(255,255,255,0.025);}
.profile-details-label{
  color:var(--text-dim);
  font-size:0.82rem;
  font-weight:600;
  letter-spacing:0.2px;
  flex-shrink:0;
}
.profile-details-value{
  font-size:0.96rem;
  font-weight:700;
  color:var(--text);
  text-align:right;
  word-break:break-word;
}

/* ---------- MINE ANSØGNINGER (mine-ansoegninger.php) ---------- */
.applications-list{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.application-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px 30px;
}
.application-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.application-title-wrap{display:flex;flex-direction:column;gap:4px;}
.application-title{
  font-size:1.1rem;
  font-weight:800;
}
.application-meta{
  color:var(--text-dim);
  font-size:0.82rem;
}
.application-note{
  color:var(--text-dim);
  font-size:0.92rem;
  padding-top:14px;
  margin-top:14px;
  border-top:1px solid var(--border);
}
.status-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 16px;
  border-radius:999px;
  font-size:0.78rem;
  font-weight:700;
  white-space:nowrap;
  flex-shrink:0;
}
.status-approved{
  color:var(--accent);
  background:rgba(0,224,184,0.1);
  border:1px solid rgba(0,224,184,0.35);
}
.status-rejected{
  color:var(--danger);
  background:rgba(255,92,122,0.1);
  border:1px solid rgba(255,92,122,0.35);
}
.status-interview{
  color:var(--accent-2);
  background:rgba(124,92,255,0.12);
  border:1px solid rgba(124,92,255,0.4);
}
.status-pending{
  color:var(--text-dim);
  background:rgba(255,255,255,0.04);
  border:1px solid var(--border);
}
.applications-empty{
  text-align:center;
  color:var(--text-dim);
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:50px 30px;
}
.applications-empty p{margin:0 0 20px;}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
  nav{display:none;}
  .burger{
    display:flex;
    width:38px;height:38px;
    border-radius:10px;
    border:1px solid var(--border);
    align-items:center;justify-content:center;
    cursor:pointer;
    font-size:1.1rem;
  }
  .philo-grid{grid-template-columns:1fr;}
  .features-grid{grid-template-columns:1fr 1fr;}
  .jobs-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:560px){
  .features-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .hero-stats{gap:28px;}
  .rule-block{padding:26px 20px;}
  .profile-avatar{width:96px;height:96px;}
  .profile-avatar-wrap{margin-top:-48px;}
  .application-head{flex-direction:column;align-items:flex-start;}
}