:root{
  --bg:#070A12;
  --panel:rgba(15,18,30,.72);
  --panel2:rgba(20,24,40,.82);
  --stroke:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --accent:#7C5CFF;
  --accent2:#22D3EE;
  --danger:#FF4D6D;
  --ok:#34D399;
  --shadow: 0 12px 40px rgba(0,0,0,.55);
  --radius:18px;
  --radius2:24px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1000px 600px at 20% 20%, rgba(124,92,255,.18), transparent 60%),
              radial-gradient(900px 500px at 80% 30%, rgba(34,211,238,.14), transparent 55%),
              radial-gradient(800px 600px at 50% 90%, rgba(255,77,109,.08), transparent 60%),
              var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

.bg-lights{
  position:fixed; inset:0;
  pointer-events:none;
  filter: blur(26px) saturate(1.2);
  opacity:.9;
}
.light{
  position:absolute;
  width:420px; height:420px;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.55), transparent 60%);
  animation: floaty 12s ease-in-out infinite;
}
.light.c2{
  width:520px; height:520px;
  background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.45), transparent 60%);
  animation-duration: 16s;
}
.light.c3{
  width:480px; height:480px;
  background: radial-gradient(circle at 30% 30%, rgba(255,77,109,.22), transparent 60%);
  animation-duration: 18s;
}
@keyframes floaty{
  0%{ transform: translate3d(0,0,0) scale(1) }
  50%{ transform: translate3d(80px,-60px,0) scale(1.07) }
  100%{ transform: translate3d(0,0,0) scale(1) }
}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:28px 18px 60px;
  position:relative;
}

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  padding:10px 14px;
  border:1px solid var(--stroke);
  border-radius:999px;
  background:rgba(0,0,0,.20);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.brand .dot{
  width:10px;height:10px;border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(124,92,255,.6);
}
.brand b{letter-spacing:.5px}
.nav{
  display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end;
}
.btn{
  appearance:none;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  text-decoration:none;
  display:inline-flex; align-items:center; gap:8px;
}
.btn:hover{ transform: translateY(-1px); background:rgba(255,255,255,.06); border-color:rgba(124,92,255,.35)}
.btn.danger:hover{ border-color: rgba(255,77,109,.55)}
  .btn.primary{
    background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(34,211,238,.12));
    align-items: center;
    border-color: rgba(124,92,255,.35);
  }
.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  color:var(--muted);
  font-size:12px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
@media (min-width: 1000px){
  .grid{ grid-template-columns: 1.4fr .6fr; }
}

.card{
  border:1px solid var(--stroke);
  background: var(--panel);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow:hidden;
}
.card .hd{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 16px 10px;
}
.card .hd h2{
  margin:0; font-size:16px; letter-spacing:.4px;
}
.card .bd{ padding: 12px 16px 18px; }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid var(--stroke);
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:14px;
}
.table th{
  text-align:left;
  color:var(--muted);
  font-weight:600;
  background: rgba(0,0,0,.18);
}
.table tr:hover td{ background: rgba(255,255,255,.02); }

.form{
  display:grid;
  gap:10px;
}
.row{
  display:grid;
  gap:10px;
}
@media (min-width: 680px){
  .row{ grid-template-columns: 1fr 1fr; }
}
.input, select{
  width:100%;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
}
label{ color:var(--muted); font-size:12px; letter-spacing:.3px }
.small{ font-size:12px; color:var(--muted) }
.badge{ font-size:12px; padding:4px 8px; border-radius:999px; border:1px solid var(--stroke); color:var(--muted) }

.footerMark{
  position: fixed;
  right: 14px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--stroke);
  color: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  letter-spacing: .4px;
}

.toast{
  position:fixed;
  top:14px;
  right:14px;
  background: rgba(0,0,0,.55);
  border:1px solid var(--stroke);
  padding:10px 12px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: var(--text);
  display:none;
}

.tableWrap{
  width:100%;
  overflow:auto;
  border-radius: 14px;
  border:1px solid var(--stroke);
}
.tableWrap .table{
  border:none;
  min-width: 980px;
}
.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: rgba(255,255,255,.78);
}
pre.pre{
  margin:0;
  padding:12px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border:1px solid var(--stroke);
  max-height: 55vh;
  overflow:auto;
  white-space: pre-wrap;
  word-break: break-word;
}
/* SADECE login ekranı */
.btn-login{
  padding: 8px 18px;
  font-size: 14px;
  min-height: auto;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* =========================
   Mobile fixes (non-breaking)
   ========================= */
@media (max-width: 720px){
  .wrap{ padding:18px 12px 90px; }

  .topbar{
    flex-direction: column;
    align-items: stretch;
    gap:10px;
  }

  .brand{
    justify-content: center;
    width: 100%;
  }

  .nav{
    justify-content: center;
    gap:8px;
  }
  .nav .btn{
    flex: 1 1 auto;
    justify-content: center;
  }

  /* Dashboard 4’lü kutular telefon ekranında taşmasın */
  .row[style*="repeat(4"]{
    grid-template-columns: 1fr 1fr !important;
  }

  /* Tablo taşarsa yatay kaydır */
  .tableWrap{ overflow:auto; }
  .table{ min-width: 760px; }

  /* Modal telefon ekranına sığsın */
  #modal, #modalPass, #logModal{
    width: 94vw !important;
    max-height: 88vh;
    overflow: auto;
  }

  /* Sağ alttaki “khyra” etiketi ekranı kaplamasın */
  .footerMark{
    right: 10px;
    bottom: 10px;
    font-size: 12px;
    padding: 7px 10px;
  }
}
