:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --accent: #00b894;
  --accent-soft: rgba(0, 184, 148, 0.12);
  --accent-gold: #f1c40f;
  --text: #f5f7fb;
  --muted: #8f9bb3;
  --border: #20263a;
  --danger: #e74c3c;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.6);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --nav-height: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.site-body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #102038 0, #050816 45%, #02040a 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to right, rgba(5,8,22,0.95), rgba(11,16,32,0.95));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.logo-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05);
}

.user-pill img {
  width: 26px;
  height: 26px;
  border-radius: 999px;
}

/* Buttons */
.btn {
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #00cec9);
  color: #02040a;
  box-shadow: 0 10px 30px rgba(0, 206, 201, 0.4);
}

.btn.secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.btn.ghost {
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: var(--text);
}

/* Main layout */
.site-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 1.5rem auto 2rem;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.hero-content {
  padding: 1.75rem;
  border-radius: 26px;
  background: radial-gradient(circle at top left, rgba(0,184,148,0.18), transparent 55%),
              linear-gradient(135deg, rgba(11,16,32,0.96), rgba(5,8,22,0.98));
  box-shadow: var(--shadow-soft);
}

.hero-content h1 {
  font-size: clamp(2.1rem, 2.8vw, 2.6rem);
  margin: 0 0 0.5rem;
}

.hero-content p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-status {
  padding: 1.5rem;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(10,18,36,0.95), rgba(3,8,18,0.98));
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow-soft);
}

.hero-status h2 {
  margin-top: 0;
}

.hero-small {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-small code {
  background: rgba(0,0,0,0.4);
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
}

.status-online {
  color: var(--accent);
}

.status-offline {
  color: var(--danger);
}

/* Cards & grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(145deg, rgba(10,16,36,0.96), rgba(5,8,22,0.98));
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: var(--shadow-soft);
}

.card h2 {
  margin-top: 0;
}

/* Lists */
.task-list,
.log-list,
.link-list,
.small-list,
.thread-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-list li,
.log-list li,
.thread-list li {
  margin-bottom: 0.6rem;
}

.task-title {
  display: block;
  font-weight: 600;
}

.task-meta,
.thread-meta,
.log-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.log-message {
  display: block;
  font-size: 0.9rem;
}

.link-list li a {
  color: var(--accent);
  text-decoration: none;
}

.link-inline {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
}

/* Pages */
.page {
  background: linear-gradient(145deg, rgba(10,16,36,0.96), rgba(5,8,22,0.98));
  border-radius: 26px;
  padding: 1.7rem 1.9rem;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: var(--shadow-soft);
}

.page h1 {
  margin-top: 0;
}

.page ul {
  padding-left: 1.3rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Forums */
.forum-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.forum-category {
  display: block;
  padding: 1rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  background: rgba(11,18,34,0.95);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
}

.forum-category h2 {
  margin: 0 0 0.3rem;
}

.forum-category p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.thread-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.thread-list li a {
  color: var(--text);
  text-decoration: none;
}

.forum-new-thread,
.forum-reply {
  margin: 1.2rem 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.forum-new-thread input,
.forum-new-thread textarea,
.forum-reply textarea {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(6,10,24,0.96);
  color: var(--text);
  padding: 0.65rem 0.75rem;
}

.forum-post {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(7,11,24,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.7rem;
}

.main-post {
  border-color: var(--accent-soft);
  background: radial-gradient(circle at top left, rgba(0,184,148,0.2), rgba(7,11,24,0.96));
}

/* Dev board */
.dev-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.dev-column {
  background: rgba(6,10,24,0.96);
  border-radius: 18px;
  padding: 0.8rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.dev-column h2 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.dev-task-card {
  background: rgba(11,18,34,0.96);
  border-radius: 14px;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.dev-task-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.dev-task-card p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.dev-status-form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.dev-status-form select {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(5,8,22,0.96);
  color: var(--text);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

/* Logs */
.log-stream {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.log-item {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.log-item .log-message {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
}

/* Auth page */
.auth-page {
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(3,5,14,0.96);
  padding: 0.7rem 1.5rem 0.9rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

/* Responsive */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .site-header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav {
    order: 3;
  }
}

/* Dev new task form styling */
.dev-new {
  margin-top: 1.3rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: rgba(6, 10, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dev-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.dev-form input,
.dev-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 10, 24, 0.96);
  color: var(--text);
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}

.dev-form textarea {
  resize: vertical;
}

.dev-form select {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 8, 22, 0.96);
  color: var(--text);
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.dev-form-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.dev-form-row .btn {
  white-space: nowrap;
}

/* Dev task actions (update + delete) */
.dev-task-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.task-action-row {
  margin-top: 0.45rem;
}

/* Make delete button feel like part of the bubble */
.dev-delete-form {
  margin: 0;
}

.dev-delete-btn {
  width: 100%;
  text-align: center;
  display: block;
}

/* Danger button style */
.btn.danger {
  background: linear-gradient(135deg, var(--danger), #ff7675);
  color: #fff;
  box-shadow: 0 10px 24px rgba(231, 76, 60, 0.4);
}
