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

html, body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  overflow-x: hidden;
  background: transparent;
}

/* Wallpaper-lag (hvis sat) */
.bg-wallpaper {
  position: fixed; inset: 0; z-index: -4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: none;
}
body.has-wallpaper .bg-wallpaper { display: block; }

/* Mesh gradient (bruges som fallback eller supplement) */
.bg-mesh {
  position: fixed; inset: 0; z-index: -3;
  background-color: var(--bg-base, #0a0a0f);
  background-image:
    radial-gradient(at 20% 20%, var(--c1, #ff5f6d) 0px, transparent 50%),
    radial-gradient(at 80% 15%, var(--c2, #4f46e5) 0px, transparent 50%),
    radial-gradient(at 75% 80%, var(--c3, #06b6d4) 0px, transparent 50%),
    radial-gradient(at 15% 85%, var(--c4, #a855f7) 0px, transparent 50%),
    radial-gradient(at 50% 50%, var(--c5, #ec4899) 0px, transparent 60%);
}
body.has-wallpaper .bg-mesh { display: none; }

/* Dim-lag over wallpaper */
.bg-dim {
  position: fixed; inset: 0; z-index: -2;
  background: rgba(0,0,0,var(--dim, 0.35));
  display: none;
}
body.has-wallpaper .bg-dim { display: block; }

/* Frosted blur-lag */
.bg-blur {
  position: fixed; inset: 0; z-index: -1;
  -webkit-backdrop-filter: blur(var(--bg-blur, 60px)) saturate(1.5);
  backdrop-filter: blur(var(--bg-blur, 60px)) saturate(1.5);
  background: rgba(10, 10, 20, 0.15);
}
body.has-wallpaper .bg-blur { background: transparent; }

/* Korn */
.grain {
  position: fixed; inset: 0; z-index: 0;
  opacity: 0.15; pointer-events: none;
  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.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
body.no-grain .grain { display: none; }

/* Indhold over baggrund */
.launchpad, .admin-wrap { position: relative; z-index: 1; }

.launchpad { max-width: 1100px; margin: 0 auto; padding: 80px 40px 140px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 40px 20px;
  justify-items: center;
}

.app {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: #fff; width: 120px;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.app:hover { transform: scale(1.12); }
.app:active { transform: scale(1.05); }

.icon {
  width: 90px; height: 90px;
  border-radius: 22.5%;
  background: rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 2px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon-letter { font-size: 40px; font-weight: 600; opacity: 0.9; }

.label {
  font-size: 13px; font-weight: 500; text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  max-width: 110px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; letter-spacing: -0.01em;
}

.empty { text-align: center; margin-top: 80px; font-size: 15px; opacity: 0.7; }
.empty a { color: #fff; text-decoration: underline; }

.dock {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; padding: 8px 12px;
  background: rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  z-index: 10;
}
.dock-btn {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-size: 20px;
  transition: transform 0.2s, background 0.2s;
}
.dock-btn:hover { transform: scale(1.1); background: rgba(255,255,255,0.2); }
