.top-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: var(--banner-height);
  background: linear-gradient(90deg, #0a4d3a 0%, #0d6e4f 50%, #0a4d3a 100%);
  font-size: 12px;
  color: var(--text-primary);
  padding: 0 40px;
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid var(--green-accent);
}

.top-banner a {
  color: var(--green-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.top-banner a:hover {
  color: #fff;
}

.banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.banner-close:hover {
  color: var(--text-primary);
}

.header-bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 20px;
  flex-shrink: 0;
  flex-grow: 0;
  border-bottom: 1px solid #2B3540;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  z-index: 100;
}

.wallet-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.wallet-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.wallet-logo-spin {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-signin,
.btn-signup {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wallet-btn svg {
  width: 12px;
  height: 12px;
  color: var(--text-secondary);
}

.btn-signin {
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  background: transparent;
}

.btn-signin:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.btn-signup {
  padding: 6px 16px;
  background: var(--green-accent);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #000;
  font-weight: 600;
  transition: background var(--transition-fast);
  border: none;
}

.btn-signup:hover {
  background: #17c28d;
}

@media (max-width: 768px) {
  .top-banner {
    font-size: 11px;
    padding: 0 12px;
    gap: 2px;
  }
  .top-banner span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-bar {
    padding: 0 12px;
    height: 56px;
    gap: 6px;
  }
  .wallet-btn {
    font-size: 12px;
    padding: 4px 8px 4px 4px;
  }
  .btn-signin,
  .btn-signup {
    font-size: 12px;
    padding: 5px 12px;
  }
}

@media (max-width: 480px) {
  .top-banner a {
    display: none;
  }
  .btn-signin {
    display: none;
  }
}
