:root{
  --bg:#07101c;
  --card:#0b132055;
  --card2:#0b132099;
  --line:#ffffff1f;
  --text:#e9f2ff;
  --muted:#b7c6dd;

  /* SMURD vibe */
  --blue:#2e6cff;
  --red:#ff3b3b;
  --gold:#ffb020;

  --ok:#2bd47b;
  --warn:#ffb020;
  --danger:#ff3b3b;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);

  background-image: url("./assets/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #07101c;
}

/* overlay peste background (asta “inchide” poza, nu blur real) */
.bg{
  position:fixed; inset:0;
  background:
    radial-gradient(1100px 700px at 20% 0%, rgba(46,108,255,.18), rgba(7,16,28,.70) 55%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
  pointer-events:none;
  z-index:-1;
}

/* ===== TOPBAR: GRID (stanga | centru | dreapta) ===== */
.topbar{
  position: sticky;
  top: 0;

  display: grid;
  grid-template-columns: 1fr auto 1fr; /* brand | nav | auth */
  align-items: center;
  gap: 16px;

  padding: 14px 18px;
  background: rgba(7,16,28,.72);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

/* stanga */
.brand{
  justify-self: start;
  display:flex;
  align-items:center;
  gap:12px;
}
.brandLogo{
  width:72px; height:72px;
  object-fit:contain;
  border-radius:12px;
  padding:6px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
}
.brandText .title{ font-weight:1000; letter-spacing:.2px; }
.brandText .sub{ font-size:12px; color:var(--muted); }

/* centru */
.nav{
  justify-self: center;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.nav a{
  color:var(--text);
  text-decoration:none;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(11,19,32,.30);
  font-size:13px;
  transition:.15s;
}
.nav a:hover{ transform: translateY(-1px); background:rgba(46,108,255,.18); }
.nav a.active{ border-color:#ffffff35; background:rgba(46,108,255,.22); }

/* dreapta */
.authBox{
  justify-self: end;
  display:flex;
  align-items:center;
  gap:10px;
}

.authRow{ display:flex; align-items:center; gap:10px; }
.userTag{
  padding:8px 10px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(11,19,32,.30);
  font-size:13px;
  line-height:1.2;
}
.userTag b{ font-weight:1000; }
.userTag .muted{ color:var(--muted); font-size:12px; }

/* ===== UI ===== */
.btn{
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(46,108,255,.85);
  color:white;
  cursor:pointer;
  font-weight:900;
  transition:.15s;
}
.btn:hover{ transform:translateY(-1px); }
.btn.secondary{ background:rgba(11,19,32,.40); }
.btn.danger{ background:rgba(255,59,59,.85); }
.btn:disabled{ opacity:.55; cursor:not-allowed; transform:none; }

/* IMPORTANT: ca sa nu “para ca nu apare nimic” peste background */
.container{ padding:18px; position:relative; z-index:1; }

.card{
  max-width:1100px;
  margin:0 auto;
  padding:18px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(11,19,32,.52);
  backdrop-filter: blur(5px);
  box-shadow: 0 28px 110px rgba(0,0,0,.50);
  position:relative;
  z-index:1;
}

.footer{
  padding:18px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}

.h1{ font-size:26px; font-weight:1000; margin:0 0 8px; }
.p{ margin:0 0 14px; color:var(--muted); }
.t{ font-weight:1000; }
.small{ font-size:12px; color:var(--muted); }

.hr{ height:1px; background:var(--line); margin:12px 0; }

.grid{ display:grid; gap:12px; }
.grid.cols2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 900px){ .grid.cols2{ grid-template-columns: 1fr; } }

.panel{
  padding:14px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(11,19,32,.35);
}

.row{ display:flex; gap:10px; }
@media (max-width: 700px){ .row{ flex-direction:column; } }

.input{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(7,16,28,.60);
  color:var(--text);
  outline:none;
}

.tag{ padding:5px 10px; border-radius:999px; font-weight:1000; font-size:11px; border:1px solid var(--line); }
.tag.ok{ background:rgba(43,212,123,.15); color:#bff6d7; }
.tag.warn{ background:rgba(255,176,32,.15); color:#ffe0a6; }
.tag.bad{ background:rgba(255,59,59,.15); color:#ffd0d0; }
.tag.staff{ background:rgba(46,108,255,.18); }
.tag.lead{ background:rgba(255,176,32,.16); }

.kpi{
  display:flex; justify-content:space-between; align-items:flex-start; gap:12px;
  padding:12px; border-radius:18px;
  border:1px solid var(--line);
  background:rgba(11,19,32,.25);
}

.timer-text{ font-size:28px; font-weight:1000; letter-spacing:1px; }

.timebar, .progbar{
  width:100%; height:10px; border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
}
.timebar-fill, .progbar-fill{ height:100%; width:0%; background:rgba(46,108,255,.85); }

.locked-panel{
  filter: grayscale(1);
  opacity: .75;
}

.mentor-card{
  padding:12px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(11,19,32,.25);
}
.mentor-top{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.mentor-name{ font-weight:1000; }
.mentor-ind{ color:var(--muted); font-weight:900; margin-left:6px; }
.mentor-meta{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:6px; }
.mentor-actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; align-items:center; }

.conducereBox{
  border:1px solid rgba(255,176,32,.30);
  background:rgba(255,176,32,.08);
}

.fraud-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.72);
  display:flex; align-items:center; justify-content:center;
  z-index:9999;
}
.fraud-box{
  width:min(520px, 92vw);
  border-radius:22px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(7,16,28,.95);
  padding:18px;
  text-align:center;
}
.fraud-title{ font-weight:1000; font-size:18px; }
.fraud-text{ color:var(--muted); margin-top:10px; }
.fraud-count{ font-size:42px; font-weight:1000; margin-top:10px; }

/* bell */
.bellWrap{ position:relative; }
.bell-btn{
  position:relative;
  border:1px solid var(--line);
  background:rgba(11,19,32,.35);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
}
.bell-badge{
  position:absolute; top:-6px; right:-6px;
  background:rgba(255,59,59,.95);
  color:white;
  font-weight:1000;
  font-size:11px;
  border-radius:999px;
  padding:2px 7px;
  border:1px solid rgba(255,255,255,.25);
}
.bell-panel{
  position:absolute;
  right:0; top:46px;
  width:340px;
  max-height:420px;
  overflow:auto;
  padding:10px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(7,16,28,.92);
  backdrop-filter: blur(5px);
  z-index:99;
}
.notif-item{
  border:1px solid var(--line);
  background:rgba(11,19,32,.35);
  border-radius:14px;
  padding:10px;
  margin-bottom:10px;
}

/* login hero */
.loginHero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:14px;
  border-radius:20px;
  border:1px solid var(--line);
  background: rgba(11,19,32,.30);
  backdrop-filter: blur(5px);
}
.loginHeroLeft{ display:flex; gap:14px; align-items:flex-start; }
.loginHeroLogo{
  width:72px;
  height:72px;
  object-fit:contain;
  border-radius:18px;
  padding:8px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
}
.loginHeroTitle{ font-weight:1000; font-size:18px; line-height:1.2; }
.loginHeroSub{ margin-top:4px; font-size:12px; color:var(--muted); }

.drop{
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(11,19,32,.30);
  padding:10px 12px;
}
.drop summary{ cursor:pointer; font-weight:1000; }
.dropBody{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--line);
}

.pdf-box {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}
.pdf-box:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
}

.vezi-poza-btn{
  margin-left:8px;
  padding:4px 10px;
  border-radius:8px;
  border:1px solid rgba(46,108,255,.6);
  background:rgba(46,108,255,.15);
  color:#7fb3ff;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  transition:.2s;
}

.vezi-poza-btn:hover{
  background:rgba(46,108,255,.35);
  transform:scale(1.05);
}

.learn-highlight{
  animation: learnPulse 1.8s ease;
}

@keyframes learnPulse{
  0%   { box-shadow: 0 0 0 rgba(46,108,255,0); transform: scale(1); }
  20%  { box-shadow: 0 0 28px rgba(46,108,255,.9); transform: scale(1.02); }
  40%  { box-shadow: 0 0 10px rgba(46,108,255,.4); transform: scale(1); }

  60%  { box-shadow: 0 0 28px rgba(46,108,255,.9); transform: scale(1.02); }
  80%  { box-shadow: 0 0 10px rgba(46,108,255,.4); transform: scale(1); }

  100% { box-shadow: 0 0 0 rgba(46,108,255,0); transform: scale(1); }
}

/* ===== IMAGE VIEWER (LIGHTBOX) ===== */
.learn-img {
  cursor: zoom-in;
}

.imgModalOverlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.80);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 99999;
  padding: 18px;
}

.imgModalBox{
  width: min(1100px, 96vw);
  max-height: 92vh;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(7,16,28,.95);
  overflow:hidden;
  box-shadow: 0 30px 120px rgba(0,0,0,.60);
}

.imgModalTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.imgModalTitle{
  font-weight: 1000;
  color: var(--text);
  font-size: 14px;
  opacity: .9;
}

.imgModalClose{
  border:1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight: 900;
}

.imgModalBody{
  padding: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.imgModalBody img{
  max-width: 100%;
  max-height: 80vh;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
}

.kick-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.82);
  display:flex; align-items:center; justify-content:center;
  z-index:999999;
  backdrop-filter: blur(4px);
}
.kick-box{
  width:min(520px, 92vw);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  background:rgba(14,20,32,.92);
  padding:18px 18px 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.kick-title{
  font-weight:900;
  font-size:18px;
  margin-bottom:6px;
}
.kick-text{
  font-size:14px;
  line-height:1.4;
  opacity:.92;
}
.kick-count{
  margin-top:12px;
  font-size:34px;
  font-weight:900;
  letter-spacing:.5px;
}

.zoomable-img{
  max-width: 100%;
  height: auto !important;
  display: block;
}

/* ===== IMAGINI TEST (CA LA "ELICOPTERUL") ===== */
.q-imgbox{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  overflow: hidden;

  /* arata "premium" in panel */
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.q-imgbox .zoomable-img{
  width: 100%;
  height: clamp(260px, 40vh, 520px); /* se adapteaza la ecran */
  display: block;

  /* IMPORTANT: fara crop, fara deformare */
  object-fit: contain;
  object-position: center;

  cursor: zoom-in;
  user-select: none;
} 

/* ===== LOGIN ERROR OVERLAY (ca la Aplica Acum) ===== */
.loginerr-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 18px;
}

.loginerr-box{
  width: min(720px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,18,28,.92);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  padding: 18px 18px 14px;
}

.loginerr-title{
  font-weight: 1000;
  letter-spacing: .4px;
  font-size: 18px;
  margin-bottom: 8px;
}

.loginerr-text{
  font-size: 14px;
  line-height: 1.45;
  opacity: .95;
}

.loginerr-hint{
  margin-top: 12px;
  font-size: 13px;
  opacity: .75;
}

.loginerr-actions{
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.loginerr-btn{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding: 10px 14px;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
}
.loginerr-btn:hover{
  background: rgba(255,255,255,.10);
}