:root{
  --primary:#4b7cff;
  --bg:#0b0d12;
  --bg2:#0f1326;
  --panel:#151a30;
  --panel2:#121626;
  --border:#1f2450;
  --text:#eaeaff;
  --muted:#9aa0b3;
  --danger:#ff4b4b;
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
}

/* RESET */
*{
  box-sizing:border-box;
  max-width:100%;
}
html,body{
  height:100%;
  width:100%;
  margin:0;
  padding:0;
}
body{
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #11163a 0%, var(--bg) 45%, #07080d 100%);
  color:var(--text);
  overflow-x:hidden; /* 🔒 HARTER LOCK */
}

/* Links */
a{ color:inherit; text-decoration:none; }
a:visited{ color:inherit; }

/* APP */
.app{
  min-height:100vh;
  width:100%;
}

/* SIDEBAR */
.sidebar{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:260px;
  background: linear-gradient(180deg, var(--bg2), #0a0c12);
  padding:22px 18px;
  border-right:1px solid rgba(255,255,255,0.06);
  overflow:hidden;
}

.sidebar-header h2{
  margin:0 0 18px 0;
  color:var(--primary);
}

.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.sidebar-nav a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:12px;
  transition:.2s;
}

.sidebar-nav a i{
  width:20px;
  text-align:center;
  flex-shrink:0;
}

.sidebar-nav a:hover{
  background: rgba(75,124,255,0.15);
}

.sidebar-nav a.active{
  background: var(--primary);
  box-shadow: 0 10px 26px rgba(75,124,255,.35);
}

/* USER BOX */
.sidebar-user{
  position:absolute;
  bottom:18px;
  left:18px;
  right:18px;
  display:flex;
  gap:12px;
  align-items:center;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:14px;
}

.sidebar-user img{
  width:46px;
  height:46px;
  border-radius:50%;
  flex-shrink:0;
}

/* MAIN */
.main{
  margin-left:260px;
  padding:28px 32px;
  width:calc(100% - 260px); /* 🔑 DAS IST DER FIX */
  overflow-x:hidden;
}

/* PAGE HEADER */
.page-header{
  margin-bottom:24px;
}
.page-header h1{
  margin:0 0 6px 0;
}
.page-header p{
  margin:0;
  color:var(--muted);
}

/* DASHBOARD GRID */
.dashboard-grid{
  margin-top:20px;
}

/* CARDS */
.card{
  background: linear-gradient(180deg, rgba(21,26,48,.96), rgba(13,16,30,.96));
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  padding:22px;
  box-shadow:var(--shadow);
  margin-bottom:20px;
  overflow:hidden;
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
  width:100%;
}

/* OVERVIEW CARDS */
.overview-card{
  display:flex;
  gap:14px;
  align-items:center;
  background: linear-gradient(145deg, rgba(20,26,58,.95), rgba(10,12,22,.95));
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  padding:20px;
  transition:.2s;
  width:100%;
}

.overview-card i{
  font-size:22px;
  color:var(--primary);
  width:26px;
  flex-shrink:0;
}

.overview-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 45px rgba(75,124,255,.25);
}

/* FORMS */
input, select, textarea{
  width:100%;
  background:var(--panel2);
  color:var(--text);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:12px;
}

button, .btn{
  background:var(--primary);
  color:#fff;
  border:none;
  border-radius:12px;
  padding:12px 16px;
  font-weight:700;
  cursor:pointer;
}

.btn-danger{
  background:var(--danger);
}

/* MOBILE */
@media(max-width:900px){
  .sidebar{
    position:relative;
    width:100%;
    height:auto;
  }

  .main{
    margin-left:0;
    width:100%;
    padding:18px;
  }
}

/* =========================
   LOGIN (PrimeVision)
   ========================= */
.login-body{
  overflow:hidden;
  background: radial-gradient(circle at top, #121733 0%, #070812 65%, #05050a 100%);
}

.login-wrapper{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  position:relative;
}

/* Glowing Orbs */
.login-bg-orb{
  position:absolute;
  width:520px;
  height:520px;
  border-radius:999px;
  filter: blur(60px);
  opacity:0.55;
  pointer-events:none;
  animation: floaty 8s ease-in-out infinite;
}

.orb-1{
  background: rgba(75,124,255,0.55);
  top:-140px;
  left:-140px;
}

.orb-2{
  background: rgba(120,75,255,0.45);
  bottom:-180px;
  right:-160px;
  animation-delay: -2s;
}

/* Noise overlay */
.login-noise{
  position:absolute;
  inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity:0.14;
  pointer-events:none;
}

/* Card */
.login-card{
  width:100%;
  max-width:520px;
  background: linear-gradient(180deg, rgba(21,26,48,0.92), rgba(10,12,22,0.92));
  border:1px solid rgba(255,255,255,0.10);
  border-radius:26px;
  padding:34px 32px;
  box-shadow: 0 45px 120px rgba(0,0,0,0.7);
  position:relative;
  overflow:hidden;
}

/* subtle highlight */
.login-card:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(circle at 20% 0%, rgba(75,124,255,0.22), transparent 55%),
              radial-gradient(circle at 80% 120%, rgba(120,75,255,0.18), transparent 60%);
  pointer-events:none;
}

/* Brand */
.login-brand{
  display:flex;
  align-items:center;
  gap:14px;
  position:relative;
}

.brand-mark{
  width:48px;
  height:48px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(75,124,255,0.16);
  border: 1px solid rgba(75,124,255,0.35);
  box-shadow: 0 18px 40px rgba(75,124,255,0.18);
}

.brand-mark i{
  color: var(--primary);
  font-size:20px;
}

.brand-title{
  font-size:28px;
  font-weight:900;
  letter-spacing:0.2px;
  line-height:1.1;
}
.brand-title span{ color: var(--primary); }

.brand-sub{
  color: var(--muted);
  font-size:14px;
  margin-top:4px;
}

/* Divider */
.login-divider{
  height:1px;
  background: rgba(255,255,255,0.10);
  margin:18px 0 18px 0;
}

/* Info list */
.login-info{
  display:grid;
  gap:10px;
  margin-bottom:18px;
  position:relative;
}

.info-item{
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(234,234,255,0.92);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius:14px;
  padding:12px 14px;
}

.info-item i{
  width:22px;
  text-align:center;
  color: var(--primary);
}

/* Discord button */
.discord-login-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 16px;
  border-radius:16px;
  font-weight:900;
  letter-spacing:0.2px;
  color:#fff;
  background: linear-gradient(135deg, #5865F2, var(--primary));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 50px rgba(75,124,255,0.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  position:relative;
  z-index:1;
}

.discord-login-btn i.fa-arrow-right{
  opacity:0.85;
  font-size:14px;
}

.discord-login-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(75,124,255,0.50);
  filter: brightness(1.03);
}

/* Footer */
.login-footer{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color: var(--muted);
  font-size:13px;
}

/* Animation */
@keyframes floaty{
  0%,100%{ transform: translateY(0px); }
  50%{ transform: translateY(18px); }
}

/* Mobile */
@media (max-width:520px){
  .login-card{
    padding:28px 22px;
    border-radius:22px;
  }
  .brand-title{ font-size:24px; }
}
