/* Support4u Admin v14 — polish UI */
:root{
  --bg:#020817;
  --panel:#0f172a;
  --panel2:#091225;
  --text:#f8fafc;
  --muted:#94a3b8;
  --line:rgba(148,163,184,.16);
  --accent:#38bdf8;
  --accent2:#8ee35d;
  --danger:#991b1b;
  --success:#047857;
  --radius:24px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(56,189,248,.10), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(142,227,93,.07), transparent 30%),
    var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

a{color:inherit}
button,input,textarea,select{font:inherit}

.admin-top{
  position:sticky;
  top:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:18px 42px;
  background:rgba(2,8,23,.86);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(18px);
}

.admin-top strong{
  display:block;
  font-size:18px;
  font-weight:900;
}

.admin-top span{
  display:block;
  color:var(--muted);
  margin-top:4px;
  font-size:13px;
}

.admin-top nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.admin-top nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  background:#091225;
  border:1px solid var(--line);
  color:#e2e8f0;
  text-decoration:none;
  font-weight:800;
  font-size:14px;
  transition:.22s ease;
}

.admin-top nav a:hover,
.admin-top nav a.active{
  background:var(--accent);
  color:#001018;
  border-color:var(--accent);
  transform:translateY(-1px);
}

.admin-wrap{
  width:min(1180px,94vw);
  margin:34px auto 130px;
}

.cms-nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:24px;
}

.cms-nav a{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  background:#091225;
  border:1px solid var(--line);
  color:#fff;
  text-decoration:none;
  font-weight:900;
  transition:.22s ease;
}

.cms-nav a:hover,
.cms-nav a.active{
  background:var(--accent);
  color:#001018;
  border-color:var(--accent);
  transform:translateY(-2px);
  box-shadow:0 14px 36px rgba(56,189,248,.18);
}

.panel{
  position:relative;
  background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(8,17,32,.96));
  border:1px solid var(--line);
  border-radius:28px;
  padding:28px;
  margin-bottom:22px;
  box-shadow:0 18px 60px rgba(0,0,0,.22);
}

.panel::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(circle at 18% 0%, rgba(56,189,248,.08), transparent 32%);
  pointer-events:none;
}

.panel>*{
  position:relative;
  z-index:1;
}

.panel h2{
  margin:0 0 18px;
  font-size:28px;
  letter-spacing:-.03em;
}

.panel h3{
  margin:0 0 14px;
  font-size:20px;
}

.panel p,
.helper,
.muted{
  color:var(--muted);
  line-height:1.65;
}

.panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.grid2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

.wide{
  grid-column:1/-1;
}

label{
  display:block;
  color:#dbeafe;
  font-weight:800;
  font-size:14px;
}

input,
textarea,
select{
  width:100%;
  margin-top:8px;
  background:#020817;
  border:1px solid rgba(148,163,184,.20);
  color:#fff;
  border-radius:16px;
  padding:14px 16px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea{
  min-height:108px;
  resize:vertical;
}

input:focus,
textarea:focus,
select:focus{
  border-color:rgba(56,189,248,.65);
  box-shadow:0 0 0 4px rgba(56,189,248,.10);
  background:#030b1c;
}

.notice{
  padding:16px 18px;
  margin-bottom:20px;
  border-radius:18px;
  background:rgba(4,120,87,.18);
  border:1px solid rgba(52,211,153,.28);
  color:#bbf7d0;
  font-weight:900;
}

.notice.error{
  background:rgba(153,27,27,.22);
  border-color:rgba(248,113,113,.32);
  color:#fecaca;
}

.small-btn,
.save,
button.small-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border:0;
  border-radius:999px;
  background:var(--accent);
  color:#001018;
  cursor:pointer;
  font-weight:900;
  transition:.22s ease;
}

.small-btn:hover,
.save:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 38px rgba(56,189,248,.22);
}

.delete{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:0;
  border-radius:16px;
  background:rgba(153,27,27,.9);
  color:#fff;
  padding:0 16px;
  cursor:pointer;
  font-weight:900;
  transition:.22s ease;
}

.delete:hover{
  transform:translateY(-1px);
  background:#b91c1c;
}

.row,
.content-row,
.project-edit{
  background:#091225;
  border:1px solid rgba(148,163,184,.13);
  border-radius:22px;
  padding:16px;
  margin-bottom:14px;
}

.service-row{
  display:grid;
  grid-template-columns:90px 1fr 2fr auto;
  gap:12px;
  align-items:start;
}

.project-fields{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

.thumbs{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.thumb{
  width:160px;
  background:#020817;
  border:1px solid rgba(148,163,184,.16);
  border-radius:18px;
  padding:8px;
}

.thumb img{
  width:100%;
  height:112px;
  object-fit:cover;
  display:block;
  border-radius:14px;
  margin-bottom:8px;
}

.check{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  background:#020817;
  border:1px solid rgba(148,163,184,.14);
  border-radius:16px;
  padding:12px 14px;
}

.check input{
  width:auto;
  margin:0;
}

.savebar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:120;
  display:grid;
  place-items:center;
  padding:16px;
  background:rgba(2,8,23,.86);
  border-top:1px solid var(--line);
  backdrop-filter:blur(18px);
}

.save{
  min-width:220px;
  min-height:52px;
  font-size:16px;
}

.login-screen{
  display:grid;
  place-items:center;
  min-height:100vh;
}

.login-box{
  width:min(430px,92vw);
  background:linear-gradient(180deg,#0f172a,#081120);
  border:1px solid var(--line);
  border-radius:30px;
  padding:34px;
  box-shadow:0 30px 90px rgba(0,0,0,.35);
}

.login-box h1{
  margin:0 0 24px;
  font-size:30px;
}

.login-box button{
  width:100%;
  min-height:52px;
  margin-top:18px;
  border:0;
  border-radius:999px;
  background:var(--accent);
  color:#001018;
  cursor:pointer;
  font-weight:900;
}

.error{
  color:#fecaca;
}

@media(max-width:900px){
  .admin-top{
    align-items:flex-start;
    flex-direction:column;
    padding:16px;
  }

  .admin-top nav{
    justify-content:flex-start;
  }

  .grid2,
  .project-fields,
  .service-row{
    grid-template-columns:1fr;
  }

  .panel-head{
    flex-direction:column;
  }

  .admin-wrap{
    margin-top:22px;
  }
}

@media(max-width:560px){
  .panel{
    padding:20px;
    border-radius:22px;
  }

  .admin-top nav a,
  .cms-nav a{
    width:100%;
    justify-content:center;
  }

  .cms-nav{
    gap:8px;
  }

  .save{
    width:100%;
  }
}
