.site-shell-header,
.site-shell-footer {
  width: calc(100vw - 12px);
  margin: 0 auto;
  padding: 0 6px;
}

[data-site-shell-header]:empty,
[data-site-shell-footer]:empty {
  display: none;
}

.site-shell-header {
  margin-top: 8px;
}

.site-shell-header-inner,
.site-shell-footer-inner {
  border: 1px solid rgba(120, 148, 191, 0.18);
  background: rgba(10, 16, 26, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.site-shell-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 18px;
}

.site-shell-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.site-shell-brand-link {
  color: #eef4ff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-shell-brand-link:hover,
.site-shell-nav a:hover,
.site-shell-legal a:hover {
  text-decoration: underline;
}

.site-shell-page-title {
  color: #d9e7ff;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-shell-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.site-shell-nav,
.site-shell-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-shell-nav a,
.site-shell-legal a {
  color: #90f2ff;
  text-decoration: none;
  font-size: 0.88rem;
}

.site-shell-legal a.site-shell-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(69, 216, 255, 0.25);
  background: rgba(69, 216, 255, 0.12);
  color: #dff7ff;
  font-weight: 800;
  font-family: "Oxanium", "Space Grotesk", sans-serif;
}

.site-shell-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(69, 216, 255, 0.25);
  background: rgba(69, 216, 255, 0.12);
  color: #a7efff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-shell-footer {
  margin: 12px auto 0;
  padding-bottom: 24px;
}

.site-shell-footer-inner {
  padding: 12px 14px;
  border-radius: 18px;
  overflow-x: auto;
  overflow-y: hidden;
}

.site-shell-footer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: max-content;
}

.site-shell-footer-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
  margin-right: auto;
}

.site-shell-footer-brand {
  color: #dce7fb;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-shell-footer-mail {
  color: #8ea3c8;
  font-size: 0.84rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-shell-footer-mail:hover,
.site-shell-legal a:hover,
.site-shell-legal-button:hover {
  text-decoration: underline;
}

.site-shell-footer-share,
.site-shell-legal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.site-shell-share-btn,
.site-shell-stats-btn {
  appearance: none;
  border: 1px solid rgba(98, 124, 165, 0.20);
  background: rgba(14, 21, 34, 0.92);
  color: #dce7fb;
  cursor: pointer;
  font: inherit;
}

.site-shell-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-shell-stats-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #8ea3c8;
  font-size: 0.84rem;
}

.site-shell-share-btn:hover,
.site-shell-stats-btn:hover {
  border-color: rgba(69, 216, 255, 0.28);
  background: rgba(69, 216, 255, 0.10);
}

.site-shell-legal-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #90f2ff;
  text-decoration: none;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.site-shell-legal-button.site-shell-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(69, 216, 255, 0.25);
  background: rgba(69, 216, 255, 0.12);
  color: #dff7ff;
  font-weight: 800;
  font-family: "Oxanium", "Space Grotesk", sans-serif;
}

@media (max-width: 900px) {
  .site-shell-footer-row {
    gap: 8px;
  }

  .site-shell-footer-identity {
    margin-right: 0;
  }
}

.site-shell-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.site-shell-modal.is-open {
  display: flex;
}

.site-shell-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 6, 12, 0.78);
  backdrop-filter: blur(10px);
}

.site-shell-modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(82vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(120, 148, 191, 0.24);
  background: linear-gradient(180deg, rgba(12, 19, 30, 0.98), rgba(8, 13, 22, 0.99));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.site-shell-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid rgba(120, 148, 191, 0.18);
  background: rgba(10, 16, 26, 0.96);
}

.site-shell-modal-title {
  margin: 0;
  font-family: "Oxanium", sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: #eef4ff;
}

.site-shell-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(98, 124, 165, 0.24);
  background: rgba(16, 24, 38, 0.96);
  color: #eef4ff;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

.site-shell-modal-body {
  padding: 20px 22px 24px;
  overflow: auto;
}

.site-shell-legal-content h3 {
  margin: 18px 0 10px;
  font-family: "Oxanium", sans-serif;
  font-size: 1rem;
  color: #a7efff;
}

.site-shell-legal-content p,
.site-shell-legal-content li {
  margin: 0 0 12px;
  color: #dce7fb;
  line-height: 1.55;
}

.site-shell-legal-content ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

body.site-shell-modal-open {
  width: 100%;
  overflow: hidden;
}

@media (max-width: 820px) {
  .site-shell-header,
  .site-shell-footer {
    width: calc(100vw - 8px);
    padding: 0 4px;
  }

  .site-shell-header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-shell-right {
    justify-content: flex-start;
  }

  .site-shell-page-title {
    white-space: normal;
  }

  .site-shell-modal {
    padding: 12px;
  }

  .site-shell-modal-head,
  .site-shell-modal-body {
    padding-left: 14px;
    padding-right: 14px;
  }
}
