.app-site-header {
  --app-header-line: rgba(122, 162, 199, 0.18);
  --app-header-text: #e7f1ff;
  --app-header-muted: #91a8bd;
  --app-header-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --app-header-glow: 0 0 28px rgba(49, 195, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  margin-bottom: 14px;
  border: 1px solid var(--app-header-line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 25, 43, 0.82), rgba(11, 20, 34, 0.56));
  box-shadow: var(--app-header-shadow);
  color: var(--app-header-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 12px 14px;
  backdrop-filter: blur(18px);
}

.app-site-brand {
  min-width: 280px;
  color: inherit;
  text-decoration: none;
}

.app-site-brand h1 {
  margin: 0;
  color: var(--app-header-text);
  font-size: 24px;
  line-height: 1.15;
}

.app-site-brand p {
  margin: 5px 0 0;
  color: var(--app-header-muted);
  font-size: 14px;
  line-height: 1.45;
}

.app-site-header-actions,
.app-site-tabs,
.app-site-tab,
.app-site-control,
.app-site-disclaimer {
  display: flex;
  align-items: center;
}

.app-site-header-actions {
  min-width: 0;
  gap: 10px;
}

.app-site-tabs {
  flex: 0 0 auto;
  gap: 4px;
  border: 1px solid var(--app-header-line);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.7);
  padding: 4px;
}

.app-site-tab {
  justify-content: center;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9db7ca;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.app-site-tab:hover {
  color: #e7f1ff;
}

.app-site-tab.active {
  background: linear-gradient(135deg, rgba(49, 195, 255, 0.96), rgba(33, 209, 137, 0.88));
  color: #04101d;
  box-shadow: var(--app-header-glow);
}

.app-site-disclaimer {
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(247, 201, 72, 0.28);
  border-radius: 999px;
  background: rgba(247, 201, 72, 0.1);
  color: #ffe8a3;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.app-site-control {
  justify-content: center;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(8, 19, 38, 0.44);
  color: var(--app-header-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.app-site-poster {
  min-height: 32px;
  border-color: rgba(255, 93, 115, 0.28);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 93, 115, 0.14), rgba(49, 195, 255, 0.08)),
    rgba(8, 19, 38, 0.42);
  color: #ffe9ee;
  padding: 0 12px;
}

.app-site-contact {
  gap: 6px;
  min-height: 32px;
  border-color: rgba(45, 212, 191, 0.24);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(49, 195, 255, 0.06));
  padding: 0 10px;
}

.app-site-contact span {
  color: var(--app-header-muted);
}

.app-site-contact strong {
  color: #91f5e4;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.app-site-poster:hover {
  border-color: rgba(255, 93, 115, 0.52);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 93, 115, 0.16);
}

.app-site-pv {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
}

.app-site-account {
  min-width: 72px;
  min-height: 40px;
  max-width: 150px;
  overflow: hidden;
  border-radius: 7px;
  color: #7dd3fc;
  padding: 0 15px;
  text-overflow: ellipsis;
  cursor: pointer;
}

.app-site-account:hover {
  border-color: rgba(49, 195, 255, 0.48);
  color: #ffffff;
}

@media (max-width: 1120px) {
  .app-site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .app-site-brand {
    min-width: 0;
  }

  .app-site-header-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .app-site-header {
    gap: 14px;
    padding: 14px;
  }

  .app-site-brand h1 {
    font-size: 20px;
  }

  .app-site-brand p {
    font-size: 12px;
  }

  .app-site-header-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .app-site-tabs,
  .app-site-disclaimer,
  .app-site-contact {
    grid-column: 1 / -1;
  }

  .app-site-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .app-site-tab {
    min-width: 0;
    padding: 0 6px;
    font-size: 13px;
  }

  .app-site-disclaimer {
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    font-size: 12px;
  }

  .app-site-contact {
    min-height: 36px;
  }

  .app-site-control {
    min-width: 0;
    width: 100%;
    padding-right: 6px;
    padding-left: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
