:root{
  --bg:#070a0b;
  --panel: rgba(10,18,15,0.78);
  --panel2: rgba(9,16,13,0.92);
  --line: rgba(80,255,170,0.22);
  --glow: rgba(80,255,170,0.35);
  --hot: rgba(140,255,210,0.9);
  --text: rgba(230,255,245,0.92);
  --muted: rgba(230,255,245,0.62);
  --bad: rgba(255, 90, 120, 0.9);
  --ok: rgba(70, 255, 160, 0.9);
  --warn: rgba(255, 215, 90, 0.9);
  --shadow: 0 12px 30px rgba(0,0,0,0.55);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:radial-gradient(1200px 800px at 20% -10%, rgba(70,255,160,0.10), transparent 60%),
                                 radial-gradient(900px 700px at 90% 0%, rgba(70,160,255,0.07), transparent 60%),
                                 var(--bg);
           color:var(--text);
           font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{ color:var(--hot); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{ max-width:1100px; margin:0 auto; padding:16px; }

.header{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 14px; border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(12,22,18,0.86), rgba(8,14,12,0.86));
  box-shadow: var(--shadow);
  border-radius:16px;
  position: sticky; top: 10px; z-index: 10;
  backdrop-filter: blur(8px);
}

.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 0;
}
.brand .logo{
  width:34px; height:34px; border-radius:12px;
  border:1px solid var(--line);
  background:
    radial-gradient(16px 14px at 35% 35%, rgba(130,255,210,0.45), transparent 60%),
    radial-gradient(18px 12px at 70% 65%, rgba(90,255,170,0.28), transparent 60%),
    rgba(10,18,15,0.9);
  box-shadow: 0 0 22px rgba(80,255,170,0.15);
}
.brand h1{
  font-size:16px; margin:0; letter-spacing:0.3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.brand .sub{ font-size:12px; color:var(--muted); margin-top:2px; }

.hbtn{
  border:1px solid var(--line);
  background:rgba(10,18,15,0.9);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  box-shadow: 0 0 18px rgba(80,255,170,0.08);
  font-weight: 600;
}
.hbtn:hover{ border-color: rgba(120,255,200,0.38); box-shadow: 0 0 22px rgba(80,255,170,0.14); }
.hbtn:active{ transform: translateY(1px); }
.hbtn.primary{
  background: radial-gradient(120px 60px at 30% 30%, rgba(80,255,170,0.20), transparent 60%),
              rgba(10,18,15,0.95);
  border-color: rgba(120,255,200,0.40);
}

.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.spacer{ height:14px; }

.panel{
  border:1px solid var(--line);
  background:linear-gradient(180deg, var(--panel), var(--panel2));
  border-radius:16px;
  padding:14px;
  box-shadow: var(--shadow);
}

.filters{
  display:grid;
  grid-template-columns: 1fr 160px 160px 160px;
  gap:10px;
}
@media (max-width: 900px){
  .filters{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .filters{ grid-template-columns: 1fr; }
}

.input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(120,255,200,0.18);
  background:rgba(7,12,10,0.8);
  color:var(--text);
  outline:none;
}
textarea{ min-height: 120px; resize: vertical; }

.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 980px){ .grid{ grid-template-columns: repeat(3, 1fr);} }
@media (max-width: 740px){ .grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 430px){ .grid{ grid-template-columns: 1fr;} }

.card{
  position:relative;
  border:1px solid rgba(120,255,200,0.18);
  background:rgba(8,14,12,0.85);
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
  cursor:pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(120,255,200,0.32);
  box-shadow: 0 14px 28px rgba(0,0,0,0.55);
}
.thumb{
  aspect-ratio: 4/3;
  background:
    radial-gradient(260px 120px at 30% 20%, rgba(80,255,170,0.13), transparent 60%),
    rgba(6,10,9,0.95);
  display:flex; align-items:center; justify-content:center;
  color: rgba(230,255,245,0.55);
  font-weight:700;
}
.thumb img{
  width:100%; height:100%; object-fit: cover;
  display:block;
}
.cardBody{ padding:12px; }
.title{ font-weight:800; font-size:14px; margin:0 0 6px 0; line-height:1.2; }
.meta{ color:var(--muted); font-size:12px; display:flex; justify-content:space-between; gap:8px; }
.pill{
  font-size:12px;
  border:1px solid rgba(120,255,200,0.20);
  padding:4px 8px; border-radius:999px;
  color: rgba(200,255,235,0.85);
}

.detailTop{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:12px;
}
@media (max-width: 900px){ .detailTop{ grid-template-columns: 1fr; } }

.gallery{
  border:1px solid rgba(120,255,200,0.18);
  border-radius:16px;
  overflow:hidden;
  background:rgba(6,10,9,0.9);
}
.galleryMain{
  aspect-ratio: 16/10;
  background:rgba(6,10,9,0.9);
}
.galleryMain img{ width:100%; height:100%; object-fit:cover; display:block; }
.galleryStrip{
  display:flex; gap:8px; padding:10px;
  overflow:auto;
  border-top:1px solid rgba(120,255,200,0.12);
}
.galleryStrip img{
  width:80px; height:60px; object-fit:cover;
  border-radius:10px;
  border:1px solid rgba(120,255,200,0.18);
  cursor:pointer;
}

.kv{ display:grid; grid-template-columns: 140px 1fr; gap:8px; font-size:13px; }
.kv div{ padding:6px 0; border-bottom:1px dashed rgba(120,255,200,0.10); }
.kv .k{ color: var(--muted); }

.notice{ color: var(--muted); font-size: 12px; }
.bad{ color: var(--bad); }
.ok{ color: var(--ok); }
.warn{ color: var(--warn); }

.stickyBar{
  position: sticky;
  bottom: 10px;
  display:flex;
  gap:10px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(120,255,200,0.20);
  background: rgba(8,14,12,0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

hr.sep{
  border:0;
  border-top:1px solid rgba(120,255,200,0.14);
  margin: 14px 0;
}

.msgList{
  display:flex; flex-direction:column; gap:10px;
}
.msgItem{
  border:1px solid rgba(120,255,200,0.16);
  border-radius:14px;
  padding:10px 12px;
  background: rgba(7,12,10,0.75);
}
.msgItem .top{ display:flex; justify-content:space-between; gap:10px; }
.msgItem .snip{ color: var(--muted); font-size: 12px; margin-top: 6px; }
.badge{
  font-size:12px; padding:2px 8px; border-radius:999px;
  border:1px solid rgba(120,255,200,0.20);
  background: rgba(70,255,160,0.12);
}

.chat{
  display:flex; flex-direction:column; gap:8px;
}
.bubble{
  max-width: 78%;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(120,255,200,0.14);
  background: rgba(8,14,12,0.84);
  box-shadow: 0 10px 18px rgba(0,0,0,0.35);
}
.bubble.me{
  margin-left:auto;
  border-color: rgba(120,255,200,0.22);
  background: radial-gradient(140px 80px at 30% 20%, rgba(80,255,170,0.14), transparent 60%),
              rgba(8,14,12,0.86);
}
.bubble .t{ font-size: 12px; color: var(--muted); margin-top: 6px; }

