@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Rajdhani:wght@500;600;700&display=swap');

:root{
  --bg:#070b14;
  --panel:rgba(15,22,38,.65);
  --panel-strong:rgba(10,16,30,.92);

  --stroke:rgba(255,255,255,.08);
  --stroke-strong:rgba(74,163,255,.35);

  --text:#eaf1ff;
  --muted:rgba(234,241,255,.65);

  --accent:#4aa3ff;

  --good:#2ecc71;
  --bad:#ff4d4d;
  --warn:#ffcc66;

  --radius:18px;
  --radius-sm:12px;

  --shadow:0 25px 80px rgba(0,0,0,.55);
  --glow:0 0 40px rgba(74,163,255,.25);
}

/* RESET */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html,body{
  height:100%;
  font-family:"Inter", system-ui, sans-serif;
  color:var(--text);
}

/* BACKGROUND */
body{
  background:var(--bg);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;

  background:
    radial-gradient(1000px 700px at 20% 10%, rgba(74,163,255,.22), transparent 60%),
    radial-gradient(800px 600px at 80% 20%, rgba(124,92,255,.16), transparent 55%),
    radial-gradient(700px 500px at 50% 90%, rgba(46,204,113,.10), transparent 60%),
    linear-gradient(180deg, #050811, #0b1220 60%, #050811);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;

  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:60px 60px;
  opacity:.12;

  mask-image: radial-gradient(circle, black 40%, transparent 80%);
}

/* TYPO */
h1,h2,h3,.brand h1{
  font-family:"Rajdhani", sans-serif;
  letter-spacing:.4px;
}

/* CONTAINER */
.container{
  max-width:1150px;
  margin:auto;
  padding:30px 18px;
}

/* HEADER */
.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;

  padding:18px 20px;
  border-radius:var(--radius);

  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--stroke);

  backdrop-filter: blur(14px);
  box-shadow:var(--shadow);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand img{
  width:56px;
  height:56px;
  border-radius:14px;
  border:1px solid var(--stroke-strong);
  box-shadow:var(--glow);
}

.brand p{
  font-size:12px;
  color:var(--muted);
}

/* TOPBAR */
.topbar{
  display:flex;
  align-items:center;
  gap:10px;
}

/* BADGE */
.badge{
  display:flex;
  align-items:center;
  gap:8px;

  padding:10px 14px;
  border-radius:999px;

  border:1px solid var(--stroke);
  background:rgba(0,0,0,.25);

  font-size:12px;
  color:var(--muted);
}

.dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--good);
  box-shadow:0 0 10px rgba(46,204,113,.6);
}

.dot.warn{
  background:var(--warn);
}

/* CARD */
.card{
  margin-top:18px;

  border-radius:var(--radius);
  background:var(--panel);

  border:1px solid var(--stroke);

  backdrop-filter: blur(16px);
  box-shadow:var(--shadow);

  overflow:hidden;
}

.card-inner{
  padding:20px;
}

.card-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.card-title small{
  color:var(--muted);
}

.hr{
  height:1px;
  margin:14px 0;
  background:linear-gradient(90deg, transparent, var(--stroke), transparent);
}

/* GRID */
.tabs{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

@media(max-width:900px){
  .tabs{grid-template-columns:1fr;}
}

/* BUTTONS */
.btn{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:16px 18px;

  border-radius:var(--radius-sm);
  border:1px solid var(--stroke);

  background:rgba(255,255,255,.03);
  color:var(--text);
  text-decoration:none;

  transition:.25s ease;
  position:relative;
  overflow:hidden;
}

.btn:hover{
  transform:translateY(-3px);
  border-color:rgba(74,163,255,.35);
  box-shadow:0 20px 40px rgba(0,0,0,.4);
}

/* PRIMARY */
.btn-primary{
  background:linear-gradient(180deg, rgba(74,163,255,.18), rgba(74,163,255,.06));
  border-color:rgba(74,163,255,.3);
}

/* TEXT */
.meta{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.meta strong{
  font-size:14px;
  font-weight:700;
}

.meta span{
  font-size:12px;
  color:var(--muted);
}

.chev{
  font-size:18px;
  opacity:.6;
}

/* INPUTS */
input,select,textarea{
  width:100%;
  padding:12px 14px;

  border-radius:14px;
  border:1px solid var(--stroke);

  background:rgba(0,0,0,.25);
  color:var(--text);

  outline:none;
}

input:focus{
  border-color:var(--stroke-strong);
  box-shadow:0 0 0 4px rgba(74,163,255,.12);
}

/* STATUS */
.status{
  padding:10px 12px;
  border-radius:12px;

  border:1px dashed var(--stroke);
  color:var(--muted);
  background:rgba(0,0,0,.2);
}

/* LOCK SCREEN FIXED */
.lock{
  position:fixed;
  inset:0;
  display:none;

  align-items:center;
  justify-content:center;

  backdrop-filter: blur(25px);
  background:rgba(0,0,0,.6);
}

.lock.show{
  display:flex;
}

.lock-panel{
  width:min(520px, 95%);

  border-radius:var(--radius);
  background:var(--panel-strong);

  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
}

.lock-head{
  padding:16px;
  border-bottom:1px solid var(--stroke);
}

.lock-body{
  padding:18px;

  display:flex;
  flex-direction:column;
  gap:14px; /* 🔥 FIX NACHODZENIA */
}

.lock-body > div{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.lock-body input{
  height:44px;
}

/* BUTTON LOGIN */
.lock-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:6px;
}
