/* ProHub Nexus — dev-forum style (navy / slate, after Telegram in switcher) */
html.pl-theme-prohub,
body.pl-theme-prohub {
  --ph-bg: #0f172a;
  --ph-elev: #1e293b;
  --ph-card: #1e293b;
  --ph-hover: #334155;
  --ph-text: #f1f5f9;
  --ph-muted: #94a3b8;
  --ph-accent: #3b82f6;
  --ph-accent2: #1e3a5f;
  --ph-border: #334155;
  --ph-side: 260px;
  --ph-top: 56px;
  --bg: #0f172a !important;
  --bg-elevated: #1e293b !important;
  --card: #1e293b !important;
  --border: #334155 !important;
  --text: #f1f5f9 !important;
  --text-dim: #94a3b8 !important;
  --accent-1: #3b82f6 !important;
  --accent-2: #60a5fa !important;
  background: var(--ph-bg) !important;
  color: var(--ph-text) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
}

body.pl-theme-prohub header,
body.pl-theme-prohub .header,
body.pl-theme-prohub .navbar,
body.pl-theme-prohub .site-header {
  background: var(--ph-elev) !important;
  border-bottom: 1px solid var(--ph-border) !important;
  color: var(--ph-text) !important;
}

body.pl-theme-prohub .card,
body.pl-theme-prohub .forum-post,
body.pl-theme-prohub .panel,
body.pl-theme-prohub .comment {
  background: var(--ph-card) !important;
  border: 1px solid var(--ph-border) !important;
  border-radius: 12px !important;
  color: var(--ph-text) !important;
}

body.pl-theme-prohub .btn-primary {
  background: var(--ph-accent) !important;
  border-color: var(--ph-accent) !important;
  color: #fff !important;
  border-radius: 10px !important;
}
body.pl-theme-prohub .btn-outline {
  border-color: var(--ph-border) !important;
  color: var(--ph-text) !important;
  border-radius: 10px !important;
}
body.pl-theme-prohub a { color: var(--ph-accent); }
body.pl-theme-prohub input,
body.pl-theme-prohub textarea,
body.pl-theme-prohub select {
  background: #0f172a !important;
  border: 1px solid var(--ph-border) !important;
  color: var(--ph-text) !important;
  border-radius: 10px !important;
}

.ph-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--ph-side);
  background: var(--ph-elev); z-index: 10020; transform: translateX(-105%);
  transition: transform .22s ease; overflow-y: auto; padding: 14px 10px;
  border-right: 1px solid var(--ph-border); box-sizing: border-box;
}
.ph-sidebar.open { transform: translateX(0); }
.ph-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.65); z-index: 10010;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.ph-backdrop.open { opacity: 1; pointer-events: auto; }
.ph-nav-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ph-muted); padding: 12px 12px 6px; font-weight: 600;
}
.ph-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; color: var(--ph-text); text-decoration: none; font-size: 14px;
}
.ph-nav-item:hover, .ph-nav-item.active { background: var(--ph-hover); }
.ph-menu-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ph-border);
  background: var(--ph-elev); color: var(--ph-text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.ph-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; height: 56px;
  background: var(--ph-elev); border-top: 1px solid var(--ph-border);
  display: flex; z-index: 10005; padding-bottom: env(safe-area-inset-bottom, 0);
}
.ph-bottom-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; color: var(--ph-muted); text-decoration: none;
}
.ph-bottom-item.active, .ph-bottom-item:hover { color: var(--ph-accent); }
body.pl-theme-prohub { padding-bottom: 60px; }
@media (min-width: 900px) {
  body.pl-theme-prohub { padding-left: var(--ph-side); padding-bottom: 0; }
  .ph-sidebar { transform: none !important; }
  .ph-backdrop { display: none !important; }
  .ph-bottom { display: none !important; }
  .ph-menu-btn { display: none !important; }
}
.ph-badge {
  display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 6px;
  background: var(--ph-accent2); color: #93c5fd; margin-left: 6px; font-weight: 600;
}
