body { font: clamp(14px, 1.5vw, 18px)/1.6 monospace; margin: 0; padding: 86px 30px 30px; background: #111; color: #eee; min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; }
h1 { text-align: center; margin: 0; font-size: 1.55em; }
.logo { display: block; margin: 0 auto 20px; height: 4em; }
body > a:last-of-type:not(.brand-site) { margin-top: auto; }
body > a:last-of-type:not(.brand-site) .logo { margin-top: 40px; margin-bottom: 0; }
.navbar {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 30px;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #333;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.navbar-brand { display: flex; align-items: flex-start; gap: 2px; color: #eee; text-decoration: none; }
.navbar-brand sup { font-size: 0.6em; line-height: 1; opacity: 0.7; }
.navbar-logo { display: block; height: 2em; }
.navbar-item { color: #888; text-decoration: none; }
.navbar-item:hover { color: #eee; }
.navbar-item[aria-current] { color: #eee; text-decoration: underline; text-underline-offset: 6px; }
.nav-led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 6px #3fb950;
  margin-right: 0.45rem;
  vertical-align: middle;
  animation: nav-blink 1.4s ease-in-out infinite;
}
@keyframes nav-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
#navbar-login { margin-left: auto; }
.anmelde-btn {
  margin-left: auto;
  padding: 6px 16px;
  background: #d93c3c;
  border-radius: 7px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85em;
}
.anmelde-btn:hover { background: #f04b4b; color: #fff; }
.nav-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: #f7931a; color: #0d1117; font-weight: 700; font-size: .65em;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; flex: none;
}
.nav-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nd-item {
  display: block; padding: .5rem .7rem; border-radius: 8px; color: #e6edf3;
  text-decoration: none; font-size: .85rem; font-family: inherit;
}
.nd-item:hover { background: #21262d; color: #fff; }
.nd-npub { margin-top: .15rem; }
.nd-namelink { padding: .1rem .2rem; }
#navbar-login { margin-left: auto; }

/* Profil-Dropdown (identisch zu Mitglieder-Seite) */
.avatar { width:44px; height:44px; border-radius:50%; object-fit:cover; background:#f7931a; flex:none; overflow:hidden; position:relative; }
.avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.avatar.initial { display:flex; align-items:center; justify-content:center; font-weight:700; color:#0d1117; font-size:1.25rem; }
.profrow { display:flex; justify-content:space-between; gap:1rem; padding:.4rem 0; border-top:1px solid #21262d; font-size:.85rem; color:#8b949e; }
.profrow span:first-child { flex: none; }
.mono { font-family:ui-monospace,Menlo,monospace; }
.cp { cursor: pointer; }
.btn { display:inline-block; margin:.25rem .3rem .25rem 0; padding:.5rem 1rem; border-radius:8px;
  border:1px solid #30363d; background:#21262d; color:#e6edf3; font:inherit; cursor:pointer; }
.btn:hover { border-color:#f7931a; }

#navbar-logout {
  margin-left: auto;
  padding: 4px 12px;
  background: #333;
  border: 1px solid #444;
  color: #eee;
  cursor: pointer;
  font: inherit;
  font-size: 0.8em;
}
#navbar-logout:hover { background: #444; }
.grid { display: flex; flex-wrap: wrap; gap: 48px; justify-content: center; max-width: 1048px; margin: 0 auto; }
.last-updated { text-align: center; color: #666; font-size: 0.8em; margin-bottom: 24px; }
.last-updated.stale { color: #fa0; }
.last-updated.invisible { visibility: hidden; }
#log-show, #log-controls, #logs { max-width: 1048px; width: 100%; margin: 0 auto; }
.hidden { display: none !important; }
.column { border: 1px solid #444; padding: 20px 30px; width: 500px; box-sizing: border-box; }
.column-full { width: 1048px; }
.column h2 { margin: 0 0 15px; font-size: 1.22em; }
.column h3 { margin: 15px 0 10px; font-size: 1.11em; color: #888; border-top: 1px solid #444; padding-top: 15px; text-align: center; }
.row { display: flex; justify-content: space-between; }
.row a { color: inherit; text-decoration: none; }
.row a:hover { text-decoration: underline; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
table th, table td { padding: 12px 16px; text-align: left; }
.compact-table th, .compact-table td { padding: 4px 16px; }
.compact-table td.sub { padding-left: 2em; }
hr.divider { border: none; border-top: 1px solid #444; margin: 24px 0; }
hr.divider + table { margin-top: 0; }
.tab-bar { display: flex; gap: 8px; margin-bottom: 15px; }
#log-show,
#log-controls button,
.tab-bar button {
  background: #333;
  border: 1px solid #444;
  color: #eee;
  padding: 8px 16px;
  cursor: pointer;
  font: inherit;
}
#log-show:hover, #log-controls button:hover, .tab-bar button:hover { background: #444; }
.tab-bar button.active { background: #14231a; border-color: #4a3; color: #6d8; }
table th { color: #888; font-weight: normal; border-bottom: 1px solid #444; }
table td { border-bottom: 1px solid #333; }
table tbody tr:hover { background: #1a1a1a; }
.connected { color: #4f4; }
.pending { color: #fa0; }
.in_mempool { color: #fd5; }
.disconnected { color: #f44; }
.fulfilled { color: #6cf; }
.cancelled { color: #888; }
.expired { color: #f84; }
.flagged { color: #f44; font-weight: bold; }
.cleared { color: #888; }
.order-link { color: inherit; text-decoration: none; display: block; margin: -12px -16px; padding: 12px 16px; }
.order-progress {
  position: relative;
  width: 120px;
  height: 18px;
  overflow: hidden;
  background: #111;
  border: 1px solid #444;
}
.order-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: #2d7a2d;
}
.order-progress-label {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 18px;
  text-align: center;
  color: #eee;
  font-size: 0.9em;
}
.copyable { cursor: pointer; position: relative; z-index: 10; }
.copyable:hover { background: #222; outline: 1px solid #444; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.copyable.copied[data-full]:hover::after { content: 'Copied!'; }
.copyable[data-full]:hover::after {
  content: attr(data-full);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  border: 1px solid #444;
  padding: 4px 8px;
  white-space: nowrap;
  color: #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
  z-index: 1000;
  pointer-events: none;
}
#txids a { color: #eee; text-decoration: none; }
#txids a:hover { text-decoration: underline; }
.wrapper { width: fit-content; margin: 0 auto; }
#log-show {
  display: block;
  margin: 40px auto 0;
}
#log-controls {
  margin-top: 40px;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
#log-controls input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #eee;
  padding: 8px 12px;
  font: inherit;
}
#log-controls input::placeholder { color: #666; }
#log-controls button.paused { background: #4a3; color: #111; }
#log-level-controls { position: relative; }
#log-level-options { position: absolute; bottom: 100%; left: 0; display: flex; flex-direction: column; gap: 2px; padding-bottom: 4px; }
#log-controls + #logs { margin-top: 0; }
#logs {
  height: 450px;
  overflow-y: auto;
  overflow-x: auto;
  background: #0a0a0a;
  border: 1px solid #444;
  padding: 10px;
  font-size: 0.67em;
  box-sizing: border-box;
  scrollbar-color: #444 #1a1a1a;
}
#logs div { white-space: pre; }
#logs::-webkit-scrollbar { width: 8px; }
#logs::-webkit-scrollbar-track { background: #1a1a1a; }
#logs::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
#logs::-webkit-scrollbar-thumb:hover { background: #666; }
.log-error { color: #f55; }
.log-warn { color: #fa0; }
.log-info { color: #4f4; }
.log-debug { color: #88f; }
.filter-table table th { white-space: nowrap; }
.filter-table table td { vertical-align: middle; white-space: nowrap; }
.filter-table .table-scroll { overflow-x: auto; }
.filter-table .table-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
  font-size: 0.9em;
}
.filter-table .table-toolbar.two-filters {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
}
.filter-table .toolbar-search { grid-column: 1 / -1; }
.filter-table .table-toolbar label,
.filter-table .toolbar-label { color: #888; font-size: 1em; }
.filter-table .table-toolbar input[type="search"],
.filter-table .table-toolbar select,
.filter-table .multi-select-toggle,
.filter-table .table-reset {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 7px 10px;
  height: 38px;
  background: #111;
  border: 1px solid #444;
  color: #eee;
  font: inherit;
}
.filter-table .multi-select { position: relative; }
.filter-table .multi-select-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}
.filter-table .multi-select-toggle::after { content: "\25BE"; color: #888; margin-left: 10px; }
.filter-table .multi-select-options {
  position: absolute;
  z-index: 1500;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  background: #111;
  border: 1px solid #444;
}
.filter-table .multi-select-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 4px;
  color: #eee;
  cursor: pointer;
}
.filter-table .multi-select-options label:hover { background: #222; }
.filter-table .table-reset {
  width: auto;
  min-width: 80px;
  margin-top: 0;
  background: #333;
  cursor: pointer;
}
.filter-table .table-reset:hover { background: #444; }
.filter-table th[data-sort] { cursor: pointer; user-select: none; }
.filter-table th[data-sort]:hover { color: #eee; }
.filter-table th[data-sort]::after {
  content: "";
  display: inline-block;
  width: 1em;
  margin-left: 4px;
  color: #ccc;
}
.filter-table th[data-sort].sort-asc::after { content: "\25B2"; }
.filter-table th[data-sort].sort-desc::after { content: "\25BC"; }
.filter-table th.col-flex,
.filter-table td.col-flex {
  width: 100%;
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-table .table-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: #888;
  font-size: inherit;
}
.filter-table .table-pagination button {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font: inherit;
  padding: 4px 8px;
}
.filter-table .table-pagination button:hover { color: #eee; }
.filter-table .table-pagination button:disabled { opacity: 0.3; cursor: not-allowed; }
.filter-table .page-status { text-align: center; }
@media (max-width: 1140px) {
  body { padding: 76px 20px 20px; }
  .navbar { padding: 10px 20px; gap: 16px; }
  .wrapper { width: auto; }
  .columns { flex-direction: column; gap: 30px; align-items: center; }
  .grid { gap: 30px; }
  .column { width: 100%; max-width: 500px; }
  .column-full { width: 100%; max-width: 500px; }
  #log-controls { flex-wrap: wrap; }
  #log-controls input { width: 100%; flex: none; margin-bottom: 10px; }
  #log-controls button { flex: 1; }
  .filter-table .table-toolbar { grid-template-columns: 1fr; }
  .filter-table table { font-size: 0.75em; }
}
@media (max-width: 560px) {
  body { padding: 66px 10px 10px; }
  .navbar { padding: 8px 12px; gap: 12px; }
  .column { padding: 15px 20px; }
}
.git-info { text-align: center; font-size: 0.7em; color: #666; margin-top: 20px; }
.git-info a { color: inherit; text-decoration: none; }
.git-info a:hover { text-decoration: underline; }

footer.powered { display:flex; align-items:center; justify-content:center; gap:14px; margin:2.5rem auto 1rem; opacity:.9; }
footer.powered span { color:#8b949e; font-size:14px; letter-spacing:.05em; text-transform:lowercase; }
footer.powered .powered-club { height:44px; width:auto; }
footer.powered .powered-pool { height:34px; width:auto; border-radius:8px; }
@font-face{font-family:"Orbitron";src:url(/static/orbitron.woff2) format("woff2");font-weight:400 900;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url(/static/space-grotesk.woff2) format("woff2");font-weight:300 700;font-display:swap}
nav.navbar .navbar-brand { font-family:"Orbitron",sans-serif; letter-spacing:.04em; }
.navbar-brand img { vertical-align:middle; }
h1.brand-h1 { font-family:"Space Grotesk",sans-serif; font-weight:500; font-size:2.6rem; letter-spacing:.02em; }
body::after { content:""; position:fixed; z-index:1; inset:0;
 background:#111;
 opacity:1; pointer-events:none; }
body:has(.pool-page) h1.brand-h1 {
  color:#ff9a20;
  background:linear-gradient(0deg,#ff4b00 0%,#ff7a00 28%,#ffd34d 54%,#fff2bd 68%,#ff8a16 82%,#ff3d00 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 5px rgba(255,92,0,.85)) drop-shadow(0 0 15px rgba(255,126,0,.65));
  animation:pool-flame .85s ease-in-out infinite alternate;
}
@keyframes pool-flame {
  from { filter:drop-shadow(0 0 4px rgba(255,70,0,.75)) drop-shadow(0 0 12px rgba(255,126,0,.5)); }
  to { filter:drop-shadow(0 -2px 8px rgba(255,196,64,.95)) drop-shadow(0 0 22px rgba(255,80,0,.8)); }
}
 .wrapper, footer, .git-info, .powered { position:relative; z-index:2; }
nav.navbar { position: fixed; z-index: 1000; }

/* Zurück-Button in der Navbar (zentriert, transparent + orange) */
.navbar-back {
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  padding: 6px 22px;
  background: transparent;
  border: 1px solid #f7931a;
  border-radius: 12px;
  font-family: inherit;
  letter-spacing: .05em;
  text-decoration: none;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: .35em;
  font-size: 1rem;
}
.navbar-back .nb-k {
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.navbar-back .nb-z {
  font-family: "Space Grotesk",sans-serif;
  color: #f7931a;
  font-size: 1rem;
  font-weight: 700;
}
.navbar-back:hover { border-color: #ffb54d; box-shadow: 0 0 14px rgba(247,147,26,.25); }
.navbar-back:hover .nb-z { color: #ffb54d; }

/* Dropdown-Profilname als abgerundete graue Box, orange beim Hover */
#drop-namelink { transition: background .15s ease, color .15s ease; }
a#drop-namelink:hover { background: #f7931a !important; color: #10151c !important; }

.brand-site { display:block; text-align:center; text-decoration:none; margin:.5rem 0 1.9rem;
  font-family:"Space Grotesk",sans-serif; letter-spacing:.02em;
  font-size:clamp(2rem,6vw,3.1rem); line-height:1.15;
  filter:drop-shadow(0 2px 3px rgba(11,14,19,.9)) drop-shadow(0 0 18px rgba(247,147,26,.35)); }
.brand-site .brand-shine,.brand-site .brand-tld {
  background-size:240% 100%; background-repeat:no-repeat;
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  animation:brandcoin 10s ease-in-out infinite; }
.brand-site .brand-shine { color:#f7931a; background-image:linear-gradient(105deg,#f7931a 0%,#f7931a 38%,#ffd894 46%,#fff4de 50%,#ffd894 54%,#f7931a 62%,#f7931a 100%); }
.brand-site .brand-tld { color:#dbe3ea; background-image:linear-gradient(105deg,#dbe3ea 0%,#dbe3ea 38%,#fff 46%,#fff 50%,#fff 54%,#dbe3ea 62%,#dbe3ea 100%); }
@keyframes brandcoin { 0% { background-position:0% 0; } 100% { background-position:100% 0; } }
