@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Syne:wght@400;600;700;800&display=swap');

:root{
  --bg:#09090F;
  --panel:#0D0D16;
  --panel2:#11111C;
  --line:#1C1C2E;
  --line2:#22223A;
  --text:#E4E4F0;
  --text2:#B4B4CC;
  --muted:#7878A0;
  --muted2:#4A4A6A;
  --brand:#72D95B;
  --brand2:#A3E890;
  --brand-bg:#0E2D14;
  --brand-bdr:#1A4A20;
  --green:#72D95B;
  --red:#F87171;
  --yellow:#F59E0B;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:'Syne',sans-serif;
  background:#09090F;
  color:#E4E4F0;
}

a{color:#A3E890;text-decoration:none}
a:hover{text-decoration:underline;color:#72D95B}

.wrap{width:min(1180px,calc(100% - 32px));margin:0 auto}

/* Topbar */
.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(9,9,15,.93);
  backdrop-filter:blur(12px);
  border-bottom:1px solid #1C1C2E;
}
.topbar-inner{
  display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 0;
}
.brand strong{
  font-size:18px;font-weight:800;color:#E4E4F0;
  font-family:'DM Mono',monospace;letter-spacing:2px;text-transform:uppercase;
}
.brand span{font-size:11px;color:#4A4A6A;font-family:'DM Mono',monospace;letter-spacing:1px}

.nav{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.nav a{
  font-size:12px;font-weight:700;color:#7878A0;
  padding:5px 11px;border-radius:6px;border:1px solid transparent;
  transition:all .15s;font-family:'DM Mono',monospace;
}
.nav a:hover{
  background:#11111C;border-color:#22223A;
  color:#E4E4F0;text-decoration:none;
}

/* Hero */
.hero{padding:44px 0 20px}
.hero h1{margin:0 0 10px;font-size:clamp(28px,5vw,52px);line-height:1.04;font-weight:800;color:#E4E4F0}
.hero p{margin:0;max-width:840px;color:#7878A0;font-size:17px}

/* Grid / Cards */
.grid{display:grid;grid-template-columns:2fr 1fr;gap:20px;padding:20px 0 50px}

.card{
  background:#0D0D16;
  border:1px solid #22223A;
  border-radius:14px;
  padding:22px;
  box-shadow:0 8px 32px rgba(0,0,0,.3);
}

/* Buttons */
.btn,button{
  display:inline-flex;align-items:center;justify-content:center;
  padding:8px 14px;
  border:1px solid #22223A;
  background:#11111C;
  color:#B4B4CC;
  border-radius:10px;
  font-weight:700;cursor:pointer;
  font-family:'Syne',sans-serif;font-size:12px;
  transition:all .15s;
}
.btn:hover,button:hover{
  background:#161622;border-color:#2E2E4A;
  color:#E4E4F0;text-decoration:none;
}
.btn-primary{
  background:#0E2D14;
  color:#72D95B;
  border-color:#1A4A20;
}
.btn-primary:hover{background:#122518;color:#A3E890}

/* Inputs */
input,textarea,select{
  width:100%;
  padding:10px 13px;
  border-radius:10px;
  border:1px solid #22223A;
  background:#0C0C14;
  color:#E4E4F0;
  font-family:'DM Mono',monospace;
  font-size:13px;
  transition:border-color .2s;
  outline:none;
}
input:focus,textarea:focus,select:focus{border-color:#72D95B}
textarea{min-height:160px;resize:vertical}

.field{margin-bottom:15px}
label{
  display:block;margin-bottom:7px;font-weight:700;
  font-size:11px;text-transform:uppercase;letter-spacing:1.2px;color:#4A4A6A;
}

/* Sidebar layout */
.sidebar-layout{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 58px)}
.sidebar{
  padding:18px 12px;
  border-right:1px solid #1C1C2E;
  background:#0D0D16;
}
.sidebar a{
  display:block;padding:8px 12px;border-radius:8px;
  color:#7878A0;margin-bottom:4px;font-size:12px;font-weight:700;
  font-family:'DM Mono',monospace;letter-spacing:.5px;
  border:1px solid transparent;transition:all .15s;
}
.sidebar a.active,
.sidebar a:hover{
  background:#0E2D14;color:#72D95B;
  border-color:#1A4A20;text-decoration:none;
}

.content{padding:24px}

/* Text helpers */
.meta{color:#4A4A6A;font-size:12px;font-family:'DM Mono',monospace}
.small{font-size:11px;color:#7878A0;font-family:'DM Mono',monospace}

/* Post list */
.post-list{display:grid;gap:14px}
.post-item{padding-bottom:14px;border-bottom:1px solid #1C1C2E}
.post-item:last-child{border-bottom:0;padding-bottom:0}

/* Notices */
.notice,.danger{padding:10px 14px;border-radius:10px;margin-bottom:14px;font-size:13px}
.notice{background:rgba(114,217,91,.08);border:1px solid rgba(114,217,91,.22);color:#A3E890}
.danger{background:rgba(248,113,113,.08);border:1px solid rgba(248,113,113,.22);color:#F87171}

/* Table */
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid #1C1C2E;vertical-align:top;font-size:13px}
th{font-family:'DM Mono',monospace;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#4A4A6A}

/* Feed */
.feed-card{display:grid;gap:12px}
.feed-head{display:flex;justify-content:space-between;gap:12px}
.feed-body{line-height:1.68;white-space:pre-wrap;font-size:14px}
.comment{padding:10px 0;border-top:1px solid #1C1C2E}
.comment:first-child{border-top:0;padding-top:0}

/* Files */
.file-row{
  display:flex;justify-content:space-between;gap:12px;
  padding:10px 0;border-bottom:1px solid #1C1C2E;align-items:center;
}
.file-row:last-child{border-bottom:0}

/* Footer */
.footer{color:#4A4A6A;padding:28px 0 44px;font-size:12px;font-family:'DM Mono',monospace;letter-spacing:.5px}

/* Images */
.cover{width:100%;border-radius:12px;border:1px solid #22223A;margin-bottom:16px}

/* Layout */
.split{display:grid;grid-template-columns:1.4fr .6fr;gap:20px}
ul{margin:0;padding-left:18px}

/* Scrollbar */
::-webkit-scrollbar{width:4px;height:4px}
::-webkit-scrollbar-thumb{background:#22223A;border-radius:2px}

@media(max-width:960px){
  .grid,.split,.sidebar-layout{grid-template-columns:1fr}
  .sidebar{border-right:0;border-bottom:1px solid #1C1C2E}
}
