
  /* ═══════════════════════════════════════════════════
     ENKEPHALIN — corrected selectors for prosilver 3.3.x
     ═══════════════════════════════════════════════════ */

  @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

  :root {
      --bg:           #171717;
      --bg-content:   #202020;
      --bg-secondary: #2b2b2b;
      --bg-header:    #0d0d0d;
      --text:         #ededed;
      --text-muted:   #868686;
      --border:       #810000;
      --border-dim:   #404040;
      --link:         #b88d00;
      --link-hover:   #e4af00;
      --alert:        #ce0018;
      --body-font:    'Nunito', sans-serif;
      --display-font: 'Bebas Neue', sans-serif;
      --mono-font:    'JetBrains Mono', monospace;
  }

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

  body#phpbb {
      background: var(--bg) !important;
      color: var(--text) !important;
      font-family: var(--body-font) !important;
      font-size: 15px !important;
  }
  
  #wrap {
      background: var(--bg) !important;
      border: none !important;
      box-shadow: none !important;
      max-width: 1140px;
      margin: 0 auto;
  }

  a { color: var(--link) !important; }
  a:hover { color: var(--link-hover) !important; }
  a:visited { color: #9a7a00 !important; }

  /* ── Header ──────────────────────────────────────── */
  #page-header,
  .headerbar {
      background: var(--bg-header) !important;
      background-image: none !important;
      border-bottom: 2px solid var(--border) !important;
      box-shadow: none !important;
  }

  .headerbar .inner {
      background: transparent !important;
  }

  #site-description,
  .site-description {
      background: transparent !important;
      padding: 1rem 1.5rem !important;
  }

  a#logo {
      font-family: var(--display-font) !important;
      font-size: 2.5rem !important;
      letter-spacing: 0.15em !important;
      color: #ffffff !important;
      text-decoration: none !important;
      background: transparent !important;
      line-height: 1 !important;
  }

  a#logo:hover { color: var(--link-hover) !important; }

  /* Hide default phpBB logo image */
  a#logo .site_logo { display: none !important; }

  #search-box {
      background: transparent !important;
  }
  
  #search-box input.inputbox {
      background: rgba(255,255,255,0.08) !important;
      border: 1px solid var(--border-dim) !important;
      color: var(--text) !important;
      border-radius: 2px !important;
  }
  
  /* ── Navigation bar ──────────────────────────────── */
  .navbar {
      background: var(--bg-content) !important;
      border-bottom: 1px solid var(--border-dim) !important;
      border-top: none !important;
      box-shadow: none !important;
  }

  .navbar .inner {
      background: transparent !important;
      padding: 0 !important;
  }

  ul#nav-main.nav-main > li > a,
  ul#nav-main.nav-main > li > span {
      font-family: var(--display-font) !important;
      font-size: 0.85rem !important;
      letter-spacing: 0.1em !important;
      color: var(--text-muted) !important;
      padding: 0.55rem 1rem !important;
      border-right: 1px solid var(--border-dim) !important;
      text-decoration: none !important;
  }

  ul#nav-main.nav-main > li > a:hover {
      color: var(--link-hover) !important;
      background: var(--bg-secondary) !important;
  }

  /* Dropdown menus */
  .dropdown .dropdown-contents {
      background: var(--bg-content) !important;
      border: 1px solid var(--border-dim) !important;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
  }

  .dropdown-contents li a {
      color: var(--text-muted) !important;
  }

  .dropdown-contents li a:hover {
      background: var(--bg-secondary) !important;
      color: var(--link-hover) !important;
  }

  /* ── Breadcrumbs ─────────────────────────────────── */
  .navlinks,
  #nav-breadcrumbs {
      background: transparent !important;
      border-bottom: 1px solid var(--border-dim) !important;
      padding: 0.5rem 0 !important;
      font-size: 0.78rem !important;
      font-family: var(--mono-font) !important;
      color: var(--text-muted) !important;
  }
  
  .navlinks a { color: var(--link) !important; }
  .navlinks a:hover { color: var(--link-hover) !important; }

  /* ── Page body ───────────────────────────────────── */
  #page-body {
      background: transparent !important;
      padding: 1rem 0 !important;
  }
  
  /* ── Forum category boxes ────────────────────────── */
  .forabg {
      background: var(--bg-content) !important;
      border: 1px solid var(--border) !important;
      border-radius: 0 !important;
      margin-bottom: 1.2rem !important;
      box-shadow: none !important;
  }

  .forabg .header,
  .forabg li.header {
      background: var(--bg-secondary) !important;
      border-bottom: 1px solid var(--border) !important;
      padding: 0.6rem 1rem !important;
  }

  .forabg .header a,
  .forabg .header span,
  .forabg li.header a,
  .forabg li.header span {
      font-family: var(--display-font) !important;
      font-size: 1rem !important;
      letter-spacing: 0.12em !important;
      color: var(--text) !important;
      text-decoration: none !important;
      text-transform: uppercase !important;
  }

  /* Forum rows */
  .forumbg { background: transparent !important; }

  li.row,
  ul.topiclist li.row {
      background: transparent !important;
      border-bottom: 1px solid var(--border-dim) !important;
      padding: 0.75rem 1rem !important;
  }
  
  li.row:hover { background: var(--bg-secondary) !important; }
  li.row:last-child { border-bottom: none !important; }

  /* Forum and topic titles */
  .forumtitle a,
  .topictitle a {
      font-weight: 700 !important;
      color: var(--text) !important;
      text-decoration: none !important;
  }
  
  .forumtitle a:hover,
  .topictitle a:hover { color: var(--link-hover) !important; }
  .topictitle a:visited { color: #9a9a9a !important; }

  .forum-description,
  .topiclist .topic-poster,
  dd.posts, dd.topics, dd.lastpost {
      color: var(--text-muted) !important;
      font-size: 0.82rem !important;
      font-family: var(--mono-font) !important;
  }
  
  dd.lastpost a { color: var(--text-muted) !important; }
  dd.lastpost a:hover { color: var(--link-hover) !important; }

  /* ── Posts ───────────────────────────────────────── */
  .post {
      background: var(--bg-content) !important;
      border: 1px solid var(--border-dim) !important;
      margin-bottom: 0.8rem !important;
      box-shadow: none !important;
  }
  
  .post:target {
      border-color: var(--border) !important;
  }

  .postbody {
      color: var(--text) !important;
      font-size: 0.95rem !important;
      line-height: 1.7 !important;
  }

  .postprofile {
      background: var(--bg-secondary) !important;
      border-right: 1px solid var(--border-dim) !important;
  }

  .username, .username-coloured {
      color: var(--link-hover) !important;
      font-weight: 700 !important;
  }

  blockquote {
      background: rgba(129,0,0,0.07) !important;
      border-left: 2px solid var(--border) !important;
      color: var(--text-muted) !important;
  }
  
  code {
      background: var(--bg-secondary) !important;
      color: var(--link-hover) !important;
      border: 1px solid var(--border-dim) !important;
      font-family: var(--mono-font) !important;
  }

  pre {
      background: var(--bg-secondary) !important;
      border: 1px solid var(--border-dim) !important;
      color: var(--text-muted) !important;
      font-family: var(--mono-font) !important;
  }
  
  /* ── Buttons ─────────────────────────────────────── */
  .button, input[type="submit"], button[type="submit"] {
      background: var(--bg-secondary) !important;
      border: 1px solid var(--border) !important;
      color: var(--text) !important;
      font-family: var(--display-font) !important;
      letter-spacing: 0.08em !important;
      box-shadow: none !important;
      border-radius: 0 !important;
      transition: background 0.15s, color 0.15s !important;
  }

  .button:hover, input[type="submit"]:hover, button[type="submit"]:hover {
      background: var(--border) !important;
      color: #fff !important;
  }

  /* ── Inputs ──────────────────────────────────────── */
  input[type="text"], input[type="password"],
  input[type="email"], textarea, select {
      background: var(--bg-secondary) !important;
      border: 1px solid var(--border-dim) !important;
      color: var(--text) !important;
      font-family: var(--body-font) !important;
      border-radius: 0 !important;
      box-shadow: none !important;
  }

  input:focus, textarea:focus, select:focus {
      border-color: var(--border) !important;
      outline: none !important;
      box-shadow: 0 0 0 2px rgba(129,0,0,0.2) !important;
  }

  /* ── Panels (who is online, stats, etc.) ─────────── */
  .panel,
  #page-body .panel {
      background: var(--bg-content) !important;
      border: 1px solid var(--border-dim) !important;
      box-shadow: none !important;
  }
  
  .panel .inner {
      background: transparent !important;
      color: var(--text-muted) !important;
  }

  /* Section headers (WHO IS ONLINE, STATISTICS etc.) */
  .panel h3,
  .panel dl.details dt,
  .panel .list-categories dt {
      color: var(--link) !important;
      font-family: var(--display-font) !important;
      letter-spacing: 0.1em !important;
      font-size: 0.85rem !important;
      border-bottom: 1px solid var(--border-dim) !important;
  }

  /* ── Notifications / alerts ──────────────────────── */
  .successbox {
      background: rgba(40,80,40,0.2) !important;
      border: 1px solid #3a6e3a !important;
      color: #7ec87e !important;
  }

  .errorbox, .error {
      background: rgba(129,0,0,0.15) !important;
      border: 1px solid var(--border) !important;
      color: #e06060 !important;
  }

  .warnbox {
      background: rgba(184,141,0,0.1) !important;
      border: 1px solid var(--link) !important;
      color: var(--link-hover) !important;
  }

  /* ── Pagination ──────────────────────────────────── */
  .pagination span strong,
  .pagination a {
      background: var(--bg-secondary) !important;
      border: 1px solid var(--border-dim) !important;
      color: var(--text-muted) !important;
      font-family: var(--mono-font) !important;
      font-size: 0.78rem !important;
      border-radius: 0 !important;
      box-shadow: none !important;
  }

  .pagination a:hover { border-color: var(--link) !important; color: var(--link-hover) !important; }
  .pagination span strong { border-color: var(--border) !important; color: var(--alert) !important; }

  /* ── Footer ──────────────────────────────────────── */
  #page-footer {
      background: var(--bg) !important;
      border-top: 1px solid var(--border-dim) !important;
      color: var(--text-muted) !important;
      font-family: var(--mono-font) !important;
      font-size: 0.7rem !important;
      text-align: center !important;
      padding: 1.5rem 0 !important;
      box-shadow: none !important;
  }
  
  #page-footer::before {
      content: 'ENKEPHALIN.ORG';
      display: block;
      font-family: var(--display-font);
      font-size: 1rem;
      letter-spacing: 0.3em;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
  }

  #page-footer a { color: var(--text-muted) !important; }
  #page-footer a:hover { color: var(--link-hover) !important; }

  /* ── Scrollbar ───────────────────────────────────── */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border-dim); }
  ::-webkit-scrollbar-thumb:hover { background: var(--border); }

  /* ── Selection ───────────────────────────────────── */
  ::selection { background: var(--border); color: #fff; }

