/* Header public — același stil ca aplicația (login, landing) */
:root {
  --guest-topbar-h: 60px;
  --guest-indigo: #6366F1;
  --guest-indigo-d: #4F46E5;
  --guest-surface: #F1F5F9;
  --guest-border: #E2E8F0;
  --guest-white: #FFFFFF;
  --guest-ink: #0F172A;
  --guest-ink-3: #64748B;
}

[data-theme="dark"] {
  --guest-surface: #060D1A;
  --guest-border: #1E3A5F;
  --guest-white: #0A1628;
  --guest-ink: #E8F4FD;
  --guest-ink-3: #8BAFC7;
}

.guest-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--guest-topbar-h);
  min-height: var(--guest-topbar-h);
  background: var(--guest-white);
  border-bottom: 1px solid var(--guest-border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  overflow: visible;
  flex-shrink: 0;
}

/* Reset stiluri globale de pe login/landing (button { width:100% } etc.) */
.guest-topbar button,
.guest-mobile-search-bar button {
  width: auto;
  margin-top: 0;
  margin-bottom: 0;
  background: unset;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  border-radius: unset;
  min-height: unset;
}

.guest-topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--guest-ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.guest-topbar-dot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--guest-indigo), #F97316);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-topbar-search {
  flex: 1;
  min-width: 0;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--guest-surface);
  border: 1px solid var(--guest-border);
  border-radius: 100px;
  padding: 8px 14px;
  box-sizing: border-box;
}

.guest-topbar-search svg {
  width: 16px;
  height: 16px;
  color: #94A3B8;
  flex-shrink: 0;
}

.guest-topbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  min-width: 0;
  color: inherit;
}

.guest-topbar-search:focus-within {
  border-color: var(--guest-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.guest-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.guest-topbar .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--guest-white);
  border: 1.5px solid var(--guest-border);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
  flex-shrink: 0;
  width: 78px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.guest-topbar .theme-toggle-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  color: #FBBF24;
  opacity: .55;
  transition: background .2s, opacity .2s, box-shadow .2s;
  flex-shrink: 0;
  box-shadow: none;
}

.guest-topbar .theme-toggle-btn .theme-ico {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.guest-topbar .theme-toggle-btn.active {
  opacity: 1;
  color: #FDE68A;
  background: var(--guest-indigo);
  box-shadow: 0 2px 8px rgba(99, 102, 241, .4);
}

[data-theme="dark"] .guest-topbar .theme-toggle-btn.active {
  background: linear-gradient(135deg, #1E3A8A, #6366F1);
}

.guest-topbar-cta {
  background: var(--guest-indigo);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(99, 102, 241, .35);
  transition: background .2s, transform .15s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.guest-topbar-cta .cta-short {
  display: none;
}

.guest-topbar-cta:hover {
  background: var(--guest-indigo-d);
  color: #fff;
  transform: translateY(-1px);
}

.guest-topbar-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--guest-ink-3);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.guest-topbar-link:hover {
  color: var(--guest-ink);
  background: rgba(99, 102, 241, .08);
}

.guest-nav-links {
  display: none;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.guest-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--guest-ink-3);
  text-decoration: none;
}

.guest-nav-links a:hover {
  color: var(--guest-ink);
}

.guest-nav-burger,
.guest-mobile-search-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--guest-border);
  background: var(--guest-surface);
  color: var(--guest-ink-3);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.guest-mobile-search-btn svg {
  width: 18px;
  height: 18px;
}

.guest-mobile-search-bar {
  display: none;
  padding: 10px 16px;
  background: var(--guest-surface);
  border-bottom: 1px solid var(--guest-border);
}

.guest-mobile-search-bar.open {
  display: block;
}

.guest-mobile-search-bar form {
  display: flex;
  gap: 8px;
}

.guest-mobile-search-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--guest-border);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: var(--guest-white);
  color: var(--guest-ink);
}

.guest-mobile-search-bar button {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: var(--guest-indigo);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
}

.guest-nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--guest-white);
  border-bottom: 1px solid var(--guest-border);
  padding: 8px 16px 12px;
}

.guest-nav-mobile.open {
  display: flex;
}

.guest-nav-mobile a {
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--guest-ink-3);
  text-decoration: none;
}

.guest-nav-mobile a:hover {
  color: var(--guest-indigo);
}

@media (min-width: 1100px) {
  .guest-nav-links {
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 0 20px;
  }
}

@media (max-width: 900px) {
  .guest-topbar-search {
    display: none;
  }

  .guest-mobile-search-btn,
  .guest-nav-burger {
    display: inline-flex;
  }

  .guest-topbar {
    padding: 0 14px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .guest-topbar-brand {
    display: none;
  }

  .guest-topbar-link {
    display: none;
  }

  .guest-topbar .theme-toggle {
    width: 68px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    padding: 3px;
  }

  .guest-topbar .theme-toggle-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
  }

  .guest-topbar-actions {
    gap: 6px;
  }
}

@media (max-width: 400px) {
  .guest-topbar-cta .cta-long {
    display: none;
  }

  .guest-topbar-cta .cta-short {
    display: inline;
  }

  .guest-topbar-cta {
    padding: 8px 12px;
    min-width: 44px;
  }
}
