/* header.css - Shared header styles for all pages */

/* Nav topbar */
.nav.topbar-style {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 16, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav.topbar-style .nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav.topbar-style .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.nav.topbar-style .brand:hover { opacity: 0.9; }
.nav.topbar-style .logoimg {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}
.nav.topbar-style .titlewrap {
  display: flex;
  flex-direction: column;
}
.nav.topbar-style .slogan {
  color: #cfd8e3;
  font-size: 12px;
  letter-spacing: 0.25px;
}

/* Token input with eye toggle */
.join-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.token-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: rgba(255,255,255,0.5);
  line-height: 1;
  flex-shrink: 0;
}
.token-toggle:hover {
  color: rgba(255,255,255,0.8);
}
.token-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}
.join-inline input#ml-join-input {
  font-size: 12px;
  min-width: 195px;
  width: 195px;
  padding: 8px 10px;
  background: #0f1227;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 12px;
}
.join-inline input#ml-join-input:focus {
  outline: none;
  border-color: #6C5CE7;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.2);
}
.join-inline input#ml-join-input::placeholder {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.join-inline button#ml-join-submit {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav.topbar-style .nav__inner { flex-wrap: wrap; }
  .nav.topbar-style .menu { width: 100%; order: 2; }
  .join-inline { width: 100%; }
  .join-inline input#ml-join-input { flex: 1; min-width: 0; width: auto; font-size: 16px; }
  .join-inline input#ml-join-input::placeholder { font-size: 16px; }
}

/* Modal for errors */
.ml-modal { position: fixed; inset: 0; z-index: 2147483647; display: none; }
.ml-modal.is-open { display: block !important; }
.ml-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.ml-modal__dialog {
  position: relative;
  max-width: 420px;
  margin: 12vh auto 0;
  background: #14162b;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 24px 20px;
  border: 1px solid rgba(255,255,255,0.1);
}
.ml-modal__title { margin: 0 0 .5rem 0; font-size: 1.25rem; color: #fff; }
.ml-modal__message { margin: .25rem 0 1rem 0; color: #fff; }
.ml-modal__actions { display: flex; justify-content: flex-end; gap: .5rem; }
.ml-modal__actions .btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.ml-modal__actions .btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
}

/* Footer */
.footer { border-top: 1px solid rgba(255,255,255,0.08); }
.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9ca3af;
  text-align: center;
  flex-wrap: wrap;
}
.footer__sep { opacity: 0.5; }
.footer__link { color: #9ca3af; transition: color 0.2s; }
.footer__link:hover { color: #fff; opacity: 1; }
.footer__coffee { color: #FFDD00; transition: all 0.2s; }
.footer__coffee:hover { color: #fff; text-shadow: 0 0 8px rgba(255,221,0,0.5); }
